configure 672 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.16.2.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.16.2'
  496. PACKAGE_STRING='aria2c 0.16.2'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. SQLITE3_LIBS
  646. SQLITE3_CPPFLAGS
  647. LIBGNUTLS_CONFIG
  648. LIBGNUTLS_CFLAGS
  649. LIBGNUTLS_LIBS
  650. LIBGCRYPT_CONFIG
  651. LIBGCRYPT_CFLAGS
  652. LIBGCRYPT_LIBS
  653. OPENSSL_LIBS
  654. OPENSSL_CFLAGS
  655. LIBCARES_LIBS
  656. LIBCARES_CPPFLAGS
  657. LIBARES_LIBS
  658. LIBARES_CPPFLAGS
  659. LIBZ_LIBS
  660. LIBZ_CPPFLAGS
  661. ENABLE_MESSAGE_DIGEST_TRUE
  662. ENABLE_MESSAGE_DIGEST_FALSE
  663. ENABLE_BITTORRENT_TRUE
  664. ENABLE_BITTORRENT_FALSE
  665. ENABLE_METALINK_TRUE
  666. ENABLE_METALINK_FALSE
  667. ENABLE_LIBXML2_TRUE
  668. ENABLE_LIBXML2_FALSE
  669. ENABLE_LIBEXPAT_TRUE
  670. ENABLE_LIBEXPAT_FALSE
  671. ENABLE_ASYNC_DNS_TRUE
  672. ENABLE_ASYNC_DNS_FALSE
  673. HAVE_LIBZ_TRUE
  674. HAVE_LIBZ_FALSE
  675. HAVE_SQLITE3_TRUE
  676. HAVE_SQLITE3_FALSE
  677. ALLOCA
  678. USE_NLS
  679. GETTEXT_MACRO_VERSION
  680. MSGFMT
  681. GMSGFMT
  682. MSGFMT_015
  683. GMSGFMT_015
  684. XGETTEXT
  685. XGETTEXT_015
  686. MSGMERGE
  687. XGETTEXT_EXTRA_OPTIONS
  688. GLIBC2
  689. CFLAG_VISIBILITY
  690. HAVE_VISIBILITY
  691. PRI_MACROS_BROKEN
  692. LIBPTH
  693. LTLIBPTH
  694. LIBPTH_PREFIX
  695. LIBTHREAD
  696. LTLIBTHREAD
  697. LIBMULTITHREAD
  698. LTLIBMULTITHREAD
  699. LIBICONV
  700. LTLIBICONV
  701. INTLBISON
  702. GLIBC21
  703. INTL_MACOSX_LIBS
  704. HAVE_POSIX_PRINTF
  705. HAVE_ASPRINTF
  706. HAVE_SNPRINTF
  707. HAVE_WPRINTF
  708. WOE32DLL
  709. WOE32
  710. WINDRES
  711. LTLIBC
  712. BUILD_INCLUDED_LIBINTL
  713. USE_INCLUDED_LIBINTL
  714. CATOBJEXT
  715. DATADIRNAME
  716. INSTOBJEXT
  717. GENCAT
  718. INTLOBJS
  719. INTL_LIBTOOL_SUFFIX_PREFIX
  720. INTLLIBS
  721. LIBINTL
  722. LTLIBINTL
  723. POSUB
  724. LIBOBJS
  725. HAVE_ASCTIME_R_TRUE
  726. HAVE_ASCTIME_R_FALSE
  727. HAVE_BASENAME_TRUE
  728. HAVE_BASENAME_FALSE
  729. HAVE_GAI_STRERROR_TRUE
  730. HAVE_GAI_STRERROR_FALSE
  731. HAVE_GETADDRINFO_TRUE
  732. HAVE_GETADDRINFO_FALSE
  733. HAVE_GETTIMEOFDAY_TRUE
  734. HAVE_GETTIMEOFDAY_FALSE
  735. HAVE_INET_ATON_TRUE
  736. HAVE_INET_ATON_FALSE
  737. HAVE_LOCALTIME_R_TRUE
  738. HAVE_LOCALTIME_R_FALSE
  739. HAVE_STRPTIME_TRUE
  740. HAVE_STRPTIME_FALSE
  741. HAVE_TIMEGM_TRUE
  742. HAVE_TIMEGM_FALSE
  743. LTLIBOBJS'
  744. ac_subst_files=''
  745. ac_precious_vars='build_alias
  746. host_alias
  747. target_alias
  748. CXX
  749. CXXFLAGS
  750. LDFLAGS
  751. LIBS
  752. CPPFLAGS
  753. CCC
  754. CC
  755. CFLAGS
  756. YACC
  757. YFLAGS
  758. CXXCPP'
  759. # Initialize some variables set by options.
  760. ac_init_help=
  761. ac_init_version=false
  762. # The variables have the same names as the options, with
  763. # dashes changed to underlines.
  764. cache_file=/dev/null
  765. exec_prefix=NONE
  766. no_create=
  767. no_recursion=
  768. prefix=NONE
  769. program_prefix=NONE
  770. program_suffix=NONE
  771. program_transform_name=s,x,x,
  772. silent=
  773. site=
  774. srcdir=
  775. verbose=
  776. x_includes=NONE
  777. x_libraries=NONE
  778. # Installation directory options.
  779. # These are left unexpanded so users can "make install exec_prefix=/foo"
  780. # and all the variables that are supposed to be based on exec_prefix
  781. # by default will actually change.
  782. # Use braces instead of parens because sh, perl, etc. also accept them.
  783. # (The list follows the same order as the GNU Coding Standards.)
  784. bindir='${exec_prefix}/bin'
  785. sbindir='${exec_prefix}/sbin'
  786. libexecdir='${exec_prefix}/libexec'
  787. datarootdir='${prefix}/share'
  788. datadir='${datarootdir}'
  789. sysconfdir='${prefix}/etc'
  790. sharedstatedir='${prefix}/com'
  791. localstatedir='${prefix}/var'
  792. includedir='${prefix}/include'
  793. oldincludedir='/usr/include'
  794. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  795. infodir='${datarootdir}/info'
  796. htmldir='${docdir}'
  797. dvidir='${docdir}'
  798. pdfdir='${docdir}'
  799. psdir='${docdir}'
  800. libdir='${exec_prefix}/lib'
  801. localedir='${datarootdir}/locale'
  802. mandir='${datarootdir}/man'
  803. ac_prev=
  804. ac_dashdash=
  805. for ac_option
  806. do
  807. # If the previous option needs an argument, assign it.
  808. if test -n "$ac_prev"; then
  809. eval $ac_prev=\$ac_option
  810. ac_prev=
  811. continue
  812. fi
  813. case $ac_option in
  814. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  815. *) ac_optarg=yes ;;
  816. esac
  817. # Accept the important Cygnus configure options, so we can diagnose typos.
  818. case $ac_dashdash$ac_option in
  819. --)
  820. ac_dashdash=yes ;;
  821. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  822. ac_prev=bindir ;;
  823. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  824. bindir=$ac_optarg ;;
  825. -build | --build | --buil | --bui | --bu)
  826. ac_prev=build_alias ;;
  827. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  828. build_alias=$ac_optarg ;;
  829. -cache-file | --cache-file | --cache-fil | --cache-fi \
  830. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  831. ac_prev=cache_file ;;
  832. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  833. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  834. cache_file=$ac_optarg ;;
  835. --config-cache | -C)
  836. cache_file=config.cache ;;
  837. -datadir | --datadir | --datadi | --datad)
  838. ac_prev=datadir ;;
  839. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  840. datadir=$ac_optarg ;;
  841. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  842. | --dataroo | --dataro | --datar)
  843. ac_prev=datarootdir ;;
  844. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  845. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  846. datarootdir=$ac_optarg ;;
  847. -disable-* | --disable-*)
  848. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  851. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  852. { (exit 1); exit 1; }; }
  853. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  854. eval enable_$ac_feature=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  867. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  868. { (exit 1); exit 1; }; }
  869. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  870. eval enable_$ac_feature=\$ac_optarg ;;
  871. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  872. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  873. | --exec | --exe | --ex)
  874. ac_prev=exec_prefix ;;
  875. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  876. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  877. | --exec=* | --exe=* | --ex=*)
  878. exec_prefix=$ac_optarg ;;
  879. -gas | --gas | --ga | --g)
  880. # Obsolete; use --with-gas.
  881. with_gas=yes ;;
  882. -help | --help | --hel | --he | -h)
  883. ac_init_help=long ;;
  884. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  885. ac_init_help=recursive ;;
  886. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  887. ac_init_help=short ;;
  888. -host | --host | --hos | --ho)
  889. ac_prev=host_alias ;;
  890. -host=* | --host=* | --hos=* | --ho=*)
  891. host_alias=$ac_optarg ;;
  892. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  893. ac_prev=htmldir ;;
  894. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  895. | --ht=*)
  896. htmldir=$ac_optarg ;;
  897. -includedir | --includedir | --includedi | --included | --include \
  898. | --includ | --inclu | --incl | --inc)
  899. ac_prev=includedir ;;
  900. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  901. | --includ=* | --inclu=* | --incl=* | --inc=*)
  902. includedir=$ac_optarg ;;
  903. -infodir | --infodir | --infodi | --infod | --info | --inf)
  904. ac_prev=infodir ;;
  905. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  906. infodir=$ac_optarg ;;
  907. -libdir | --libdir | --libdi | --libd)
  908. ac_prev=libdir ;;
  909. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  910. libdir=$ac_optarg ;;
  911. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  912. | --libexe | --libex | --libe)
  913. ac_prev=libexecdir ;;
  914. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  915. | --libexe=* | --libex=* | --libe=*)
  916. libexecdir=$ac_optarg ;;
  917. -localedir | --localedir | --localedi | --localed | --locale)
  918. ac_prev=localedir ;;
  919. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  920. localedir=$ac_optarg ;;
  921. -localstatedir | --localstatedir | --localstatedi | --localstated \
  922. | --localstate | --localstat | --localsta | --localst | --locals)
  923. ac_prev=localstatedir ;;
  924. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  925. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  926. localstatedir=$ac_optarg ;;
  927. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  928. ac_prev=mandir ;;
  929. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  930. mandir=$ac_optarg ;;
  931. -nfp | --nfp | --nf)
  932. # Obsolete; use --without-fp.
  933. with_fp=no ;;
  934. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  935. | --no-cr | --no-c | -n)
  936. no_create=yes ;;
  937. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  938. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  939. no_recursion=yes ;;
  940. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  941. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  942. | --oldin | --oldi | --old | --ol | --o)
  943. ac_prev=oldincludedir ;;
  944. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  945. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  946. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  947. oldincludedir=$ac_optarg ;;
  948. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  949. ac_prev=prefix ;;
  950. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  951. prefix=$ac_optarg ;;
  952. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  953. | --program-pre | --program-pr | --program-p)
  954. ac_prev=program_prefix ;;
  955. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  956. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  957. program_prefix=$ac_optarg ;;
  958. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  959. | --program-suf | --program-su | --program-s)
  960. ac_prev=program_suffix ;;
  961. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  962. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  963. program_suffix=$ac_optarg ;;
  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. ac_prev=program_transform_name ;;
  972. -program-transform-name=* | --program-transform-name=* \
  973. | --program-transform-nam=* | --program-transform-na=* \
  974. | --program-transform-n=* | --program-transform-=* \
  975. | --program-transform=* | --program-transfor=* \
  976. | --program-transfo=* | --program-transf=* \
  977. | --program-trans=* | --program-tran=* \
  978. | --progr-tra=* | --program-tr=* | --program-t=*)
  979. program_transform_name=$ac_optarg ;;
  980. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  981. ac_prev=pdfdir ;;
  982. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  983. pdfdir=$ac_optarg ;;
  984. -psdir | --psdir | --psdi | --psd | --ps)
  985. ac_prev=psdir ;;
  986. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  987. psdir=$ac_optarg ;;
  988. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  989. | -silent | --silent | --silen | --sile | --sil)
  990. silent=yes ;;
  991. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  992. ac_prev=sbindir ;;
  993. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  994. | --sbi=* | --sb=*)
  995. sbindir=$ac_optarg ;;
  996. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  997. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  998. | --sharedst | --shareds | --shared | --share | --shar \
  999. | --sha | --sh)
  1000. ac_prev=sharedstatedir ;;
  1001. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1002. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1003. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1004. | --sha=* | --sh=*)
  1005. sharedstatedir=$ac_optarg ;;
  1006. -site | --site | --sit)
  1007. ac_prev=site ;;
  1008. -site=* | --site=* | --sit=*)
  1009. site=$ac_optarg ;;
  1010. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1011. ac_prev=srcdir ;;
  1012. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1013. srcdir=$ac_optarg ;;
  1014. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1015. | --syscon | --sysco | --sysc | --sys | --sy)
  1016. ac_prev=sysconfdir ;;
  1017. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1018. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1019. sysconfdir=$ac_optarg ;;
  1020. -target | --target | --targe | --targ | --tar | --ta | --t)
  1021. ac_prev=target_alias ;;
  1022. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1023. target_alias=$ac_optarg ;;
  1024. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1025. verbose=yes ;;
  1026. -version | --version | --versio | --versi | --vers | -V)
  1027. ac_init_version=: ;;
  1028. -with-* | --with-*)
  1029. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  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=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1041. { (exit 1); exit 1; }; }
  1042. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1043. eval with_$ac_package=no ;;
  1044. --x)
  1045. # Obsolete; use --with-x.
  1046. with_x=yes ;;
  1047. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1048. | --x-incl | --x-inc | --x-in | --x-i)
  1049. ac_prev=x_includes ;;
  1050. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1051. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1052. x_includes=$ac_optarg ;;
  1053. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1054. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1055. ac_prev=x_libraries ;;
  1056. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1057. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1058. x_libraries=$ac_optarg ;;
  1059. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1060. Try \`$0 --help' for more information." >&2
  1061. { (exit 1); exit 1; }; }
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1068. { (exit 1); exit 1; }; }
  1069. eval $ac_envvar=\$ac_optarg
  1070. export $ac_envvar ;;
  1071. *)
  1072. # FIXME: should be removed in autoconf 3.0.
  1073. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1074. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1076. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1077. ;;
  1078. esac
  1079. done
  1080. if test -n "$ac_prev"; then
  1081. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1082. { echo "$as_me: error: missing argument to $ac_option" >&2
  1083. { (exit 1); exit 1; }; }
  1084. fi
  1085. # Be sure to have absolute directory names.
  1086. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1087. datadir sysconfdir sharedstatedir localstatedir includedir \
  1088. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1089. libdir localedir mandir
  1090. do
  1091. eval ac_val=\$$ac_var
  1092. case $ac_val in
  1093. [\\/$]* | ?:[\\/]* ) continue;;
  1094. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1095. esac
  1096. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1097. { (exit 1); exit 1; }; }
  1098. done
  1099. # There might be people who depend on the old broken behavior: `$host'
  1100. # used to hold the argument of --host etc.
  1101. # FIXME: To remove some day.
  1102. build=$build_alias
  1103. host=$host_alias
  1104. target=$target_alias
  1105. # FIXME: To remove some day.
  1106. if test "x$host_alias" != x; then
  1107. if test "x$build_alias" = x; then
  1108. cross_compiling=maybe
  1109. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1110. If a cross compiler is detected then cross compile mode will be used." >&2
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. { echo "$as_me: error: Working directory cannot be determined" >&2
  1122. { (exit 1); exit 1; }; }
  1123. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1124. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1125. { (exit 1); exit 1; }; }
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$0" ||
  1131. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$0" : 'X\(//\)[^/]' \| \
  1133. X"$0" : 'X\(//\)$' \| \
  1134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1135. echo X"$0" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1163. { (exit 1); exit 1; }; }
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1168. { (exit 1); exit 1; }; }
  1169. pwd)`
  1170. # When building in place, set srcdir=.
  1171. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1172. srcdir=.
  1173. fi
  1174. # Remove unnecessary trailing slashes from srcdir.
  1175. # Double slashes in file names in object file debugging info
  1176. # mess up M-x gdb in Emacs.
  1177. case $srcdir in
  1178. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1179. esac
  1180. for ac_var in $ac_precious_vars; do
  1181. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_env_${ac_var}_value=\$${ac_var}
  1183. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1185. done
  1186. #
  1187. # Report the --help message.
  1188. #
  1189. if test "$ac_init_help" = "long"; then
  1190. # Omit some internal or obsolete options to make the list less imposing.
  1191. # This message is too long to be a string in the A/UX 3.1 sh.
  1192. cat <<_ACEOF
  1193. \`configure' configures aria2c 0.16.2 to adapt to many kinds of systems.
  1194. Usage: $0 [OPTION]... [VAR=VALUE]...
  1195. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1196. VAR=VALUE. See below for descriptions of some of the useful variables.
  1197. Defaults for the options are specified in brackets.
  1198. Configuration:
  1199. -h, --help display this help and exit
  1200. --help=short display options specific to this package
  1201. --help=recursive display the short help of all the included packages
  1202. -V, --version display version information and exit
  1203. -q, --quiet, --silent do not print \`checking...' messages
  1204. --cache-file=FILE cache test results in FILE [disabled]
  1205. -C, --config-cache alias for \`--cache-file=config.cache'
  1206. -n, --no-create do not create output files
  1207. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1208. Installation directories:
  1209. --prefix=PREFIX install architecture-independent files in PREFIX
  1210. [$ac_default_prefix]
  1211. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1212. [PREFIX]
  1213. By default, \`make install' will install all the files in
  1214. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1215. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1216. for instance \`--prefix=\$HOME'.
  1217. For better control, use the options below.
  1218. Fine tuning of the installation directories:
  1219. --bindir=DIR user executables [EPREFIX/bin]
  1220. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1221. --libexecdir=DIR program executables [EPREFIX/libexec]
  1222. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1223. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1224. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1225. --libdir=DIR object code libraries [EPREFIX/lib]
  1226. --includedir=DIR C header files [PREFIX/include]
  1227. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1228. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1229. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1230. --infodir=DIR info documentation [DATAROOTDIR/info]
  1231. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1232. --mandir=DIR man documentation [DATAROOTDIR/man]
  1233. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1234. --htmldir=DIR html documentation [DOCDIR]
  1235. --dvidir=DIR dvi documentation [DOCDIR]
  1236. --pdfdir=DIR pdf documentation [DOCDIR]
  1237. --psdir=DIR ps documentation [DOCDIR]
  1238. _ACEOF
  1239. cat <<\_ACEOF
  1240. Program names:
  1241. --program-prefix=PREFIX prepend PREFIX to installed program names
  1242. --program-suffix=SUFFIX append SUFFIX to installed program names
  1243. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1244. System types:
  1245. --build=BUILD configure for building on BUILD [guessed]
  1246. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1247. --target=TARGET configure for building compilers for TARGET [HOST]
  1248. _ACEOF
  1249. fi
  1250. if test -n "$ac_init_help"; then
  1251. case $ac_init_help in
  1252. short | recursive ) echo "Configuration of aria2c 0.16.2:";;
  1253. esac
  1254. cat <<\_ACEOF
  1255. Optional Features:
  1256. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1257. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1258. --enable-bittorrent enable bittorrent support.
  1259. --enable-metalink enable metalink support.
  1260. --enable-epoll enable epoll support.
  1261. --disable-dependency-tracking speeds up one-time build
  1262. --enable-dependency-tracking do not reject slow dependency extractors
  1263. --disable-xmltest Do not try to compile and run a test LIBXML program
  1264. --disable-largefile omit support for large files
  1265. --disable-nls do not use Native Language Support
  1266. --enable-threads={posix|solaris|pth|win32}
  1267. specify multithreading API
  1268. --disable-threads build without multithread safety
  1269. --disable-rpath do not hardcode runtime library paths
  1270. Optional Packages:
  1271. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1272. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1273. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1274. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1275. --with-gnutls use gnutls if it is installed.
  1276. --with-openssl use openssl if it is installed.
  1277. --with-sqlite3 use sqlite3 if it is installed.
  1278. --with-libxml2 use libxml2 if it is installed.
  1279. --with-libexpat use libexpat if it is installed.
  1280. --with-libares use libares if it is installed.
  1281. --with-libcares use libcares if it is installed.
  1282. --with-libz use libz if it is installed.
  1283. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1284. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1285. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1286. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1287. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1288. --with-libgcrypt-prefix=PFX
  1289. prefix where LIBGCRYPT is installed (optional)
  1290. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1291. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1292. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1293. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1294. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1295. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1296. --without-libpth-prefix don't search for libpth in includedir and libdir
  1297. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1298. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1299. --with-included-gettext use the GNU gettext library included here
  1300. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1301. --without-libintl-prefix don't search for libintl in includedir and libdir
  1302. Some influential environment variables:
  1303. CXX C++ compiler command
  1304. CXXFLAGS C++ compiler flags
  1305. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1306. nonstandard directory <lib dir>
  1307. LIBS libraries to pass to the linker, e.g. -l<library>
  1308. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1309. you have headers in a nonstandard directory <include dir>
  1310. CC C compiler command
  1311. CFLAGS C compiler flags
  1312. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1313. the first program found out of: `bison -y', `byacc', `yacc'.
  1314. YFLAGS The list of arguments that will be passed by default to $YACC.
  1315. This script will default YFLAGS to the empty string to avoid a
  1316. default value of `-d' given by some make applications.
  1317. CXXCPP C++ preprocessor
  1318. Use these variables to override the choices made by `configure' or to help
  1319. it to find libraries and programs with nonstandard names/locations.
  1320. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1321. _ACEOF
  1322. ac_status=$?
  1323. fi
  1324. if test "$ac_init_help" = "recursive"; then
  1325. # If there are subdirs, report their specific --help.
  1326. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1327. test -d "$ac_dir" || continue
  1328. ac_builddir=.
  1329. case "$ac_dir" in
  1330. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *)
  1332. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1333. # A ".." for each directory in $ac_dir_suffix.
  1334. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1335. case $ac_top_builddir_sub in
  1336. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1338. esac ;;
  1339. esac
  1340. ac_abs_top_builddir=$ac_pwd
  1341. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1342. # for backward compatibility:
  1343. ac_top_builddir=$ac_top_build_prefix
  1344. case $srcdir in
  1345. .) # We are building in place.
  1346. ac_srcdir=.
  1347. ac_top_srcdir=$ac_top_builddir_sub
  1348. ac_abs_top_srcdir=$ac_pwd ;;
  1349. [\\/]* | ?:[\\/]* ) # Absolute name.
  1350. ac_srcdir=$srcdir$ac_dir_suffix;
  1351. ac_top_srcdir=$srcdir
  1352. ac_abs_top_srcdir=$srcdir ;;
  1353. *) # Relative name.
  1354. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1355. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1356. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1357. esac
  1358. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1359. cd "$ac_dir" || { ac_status=$?; continue; }
  1360. # Check for guested configure.
  1361. if test -f "$ac_srcdir/configure.gnu"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1364. elif test -f "$ac_srcdir/configure"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure" --help=recursive
  1367. else
  1368. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1369. fi || ac_status=$?
  1370. cd "$ac_pwd" || { ac_status=$?; break; }
  1371. done
  1372. fi
  1373. test -n "$ac_init_help" && exit $ac_status
  1374. if $ac_init_version; then
  1375. cat <<\_ACEOF
  1376. aria2c configure 0.16.2
  1377. generated by GNU Autoconf 2.61
  1378. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1379. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1380. This configure script is free software; the Free Software Foundation
  1381. gives unlimited permission to copy, distribute and modify it.
  1382. _ACEOF
  1383. exit
  1384. fi
  1385. cat >config.log <<_ACEOF
  1386. This file contains any messages produced by compilers while
  1387. running configure, to aid debugging if configure makes a mistake.
  1388. It was created by aria2c $as_me 0.16.2, which was
  1389. generated by GNU Autoconf 2.61. Invocation command line was
  1390. $ $0 $@
  1391. _ACEOF
  1392. exec 5>>config.log
  1393. {
  1394. cat <<_ASUNAME
  1395. ## --------- ##
  1396. ## Platform. ##
  1397. ## --------- ##
  1398. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1399. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1400. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1401. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1402. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1403. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1404. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1405. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1406. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1407. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1408. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1409. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1410. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1411. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1412. _ASUNAME
  1413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1414. for as_dir in $PATH
  1415. do
  1416. IFS=$as_save_IFS
  1417. test -z "$as_dir" && as_dir=.
  1418. echo "PATH: $as_dir"
  1419. done
  1420. IFS=$as_save_IFS
  1421. } >&5
  1422. cat >&5 <<_ACEOF
  1423. ## ----------- ##
  1424. ## Core tests. ##
  1425. ## ----------- ##
  1426. _ACEOF
  1427. # Keep a trace of the command line.
  1428. # Strip out --no-create and --no-recursion so they do not pile up.
  1429. # Strip out --silent because we don't want to record it for future runs.
  1430. # Also quote any args containing shell meta-characters.
  1431. # Make two passes to allow for proper duplicate-argument suppression.
  1432. ac_configure_args=
  1433. ac_configure_args0=
  1434. ac_configure_args1=
  1435. ac_must_keep_next=false
  1436. for ac_pass in 1 2
  1437. do
  1438. for ac_arg
  1439. do
  1440. case $ac_arg in
  1441. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1442. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1443. | -silent | --silent | --silen | --sile | --sil)
  1444. continue ;;
  1445. *\'*)
  1446. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1447. esac
  1448. case $ac_pass in
  1449. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1450. 2)
  1451. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1452. if test $ac_must_keep_next = true; then
  1453. ac_must_keep_next=false # Got value, back to normal.
  1454. else
  1455. case $ac_arg in
  1456. *=* | --config-cache | -C | -disable-* | --disable-* \
  1457. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1458. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1459. | -with-* | --with-* | -without-* | --without-* | --x)
  1460. case "$ac_configure_args0 " in
  1461. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1462. esac
  1463. ;;
  1464. -* ) ac_must_keep_next=true ;;
  1465. esac
  1466. fi
  1467. ac_configure_args="$ac_configure_args '$ac_arg'"
  1468. ;;
  1469. esac
  1470. done
  1471. done
  1472. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1473. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1474. # When interrupted or exit'd, cleanup temporary files, and complete
  1475. # config.log. We remove comments because anyway the quotes in there
  1476. # would cause problems or look ugly.
  1477. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1478. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1479. trap 'exit_status=$?
  1480. # Save into config.log some information that might help in debugging.
  1481. {
  1482. echo
  1483. cat <<\_ASBOX
  1484. ## ---------------- ##
  1485. ## Cache variables. ##
  1486. ## ---------------- ##
  1487. _ASBOX
  1488. echo
  1489. # The following way of writing the cache mishandles newlines in values,
  1490. (
  1491. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1492. eval ac_val=\$$ac_var
  1493. case $ac_val in #(
  1494. *${as_nl}*)
  1495. case $ac_var in #(
  1496. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1497. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1498. esac
  1499. case $ac_var in #(
  1500. _ | IFS | as_nl) ;; #(
  1501. *) $as_unset $ac_var ;;
  1502. esac ;;
  1503. esac
  1504. done
  1505. (set) 2>&1 |
  1506. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1507. *${as_nl}ac_space=\ *)
  1508. sed -n \
  1509. "s/'\''/'\''\\\\'\'''\''/g;
  1510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1511. ;; #(
  1512. *)
  1513. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1514. ;;
  1515. esac |
  1516. sort
  1517. )
  1518. echo
  1519. cat <<\_ASBOX
  1520. ## ----------------- ##
  1521. ## Output variables. ##
  1522. ## ----------------- ##
  1523. _ASBOX
  1524. echo
  1525. for ac_var in $ac_subst_vars
  1526. do
  1527. eval ac_val=\$$ac_var
  1528. case $ac_val in
  1529. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1530. esac
  1531. echo "$ac_var='\''$ac_val'\''"
  1532. done | sort
  1533. echo
  1534. if test -n "$ac_subst_files"; then
  1535. cat <<\_ASBOX
  1536. ## ------------------- ##
  1537. ## File substitutions. ##
  1538. ## ------------------- ##
  1539. _ASBOX
  1540. echo
  1541. for ac_var in $ac_subst_files
  1542. do
  1543. eval ac_val=\$$ac_var
  1544. case $ac_val in
  1545. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1546. esac
  1547. echo "$ac_var='\''$ac_val'\''"
  1548. done | sort
  1549. echo
  1550. fi
  1551. if test -s confdefs.h; then
  1552. cat <<\_ASBOX
  1553. ## ----------- ##
  1554. ## confdefs.h. ##
  1555. ## ----------- ##
  1556. _ASBOX
  1557. echo
  1558. cat confdefs.h
  1559. echo
  1560. fi
  1561. test "$ac_signal" != 0 &&
  1562. echo "$as_me: caught signal $ac_signal"
  1563. echo "$as_me: exit $exit_status"
  1564. } >&5
  1565. rm -f core *.core core.conftest.* &&
  1566. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1567. exit $exit_status
  1568. ' 0
  1569. for ac_signal in 1 2 13 15; do
  1570. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1571. done
  1572. ac_signal=0
  1573. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1574. rm -f -r conftest* confdefs.h
  1575. # Predefined preprocessor variables.
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_NAME "$PACKAGE_NAME"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1584. _ACEOF
  1585. cat >>confdefs.h <<_ACEOF
  1586. #define PACKAGE_STRING "$PACKAGE_STRING"
  1587. _ACEOF
  1588. cat >>confdefs.h <<_ACEOF
  1589. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1590. _ACEOF
  1591. # Let the site file select an alternate cache file if it wants to.
  1592. # Prefer explicitly selected file to automatically selected ones.
  1593. if test -n "$CONFIG_SITE"; then
  1594. set x "$CONFIG_SITE"
  1595. elif test "x$prefix" != xNONE; then
  1596. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1597. else
  1598. set x "$ac_default_prefix/share/config.site" \
  1599. "$ac_default_prefix/etc/config.site"
  1600. fi
  1601. shift
  1602. for ac_site_file
  1603. do
  1604. if test -r "$ac_site_file"; then
  1605. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1606. echo "$as_me: loading site script $ac_site_file" >&6;}
  1607. sed 's/^/| /' "$ac_site_file" >&5
  1608. . "$ac_site_file"
  1609. fi
  1610. done
  1611. if test -r "$cache_file"; then
  1612. # Some versions of bash will fail to source /dev/null (special
  1613. # files actually), so we avoid doing that.
  1614. if test -f "$cache_file"; then
  1615. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1616. echo "$as_me: loading cache $cache_file" >&6;}
  1617. case $cache_file in
  1618. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1619. *) . "./$cache_file";;
  1620. esac
  1621. fi
  1622. else
  1623. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1624. echo "$as_me: creating cache $cache_file" >&6;}
  1625. >$cache_file
  1626. fi
  1627. gt_needs="$gt_needs "
  1628. ac_header_list="$ac_header_list sys/time.h"
  1629. ac_header_list="$ac_header_list unistd.h"
  1630. ac_func_list="$ac_func_list alarm"
  1631. # Check that the precious variables saved in the cache have kept the same
  1632. # value.
  1633. ac_cache_corrupted=false
  1634. for ac_var in $ac_precious_vars; do
  1635. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1636. eval ac_new_set=\$ac_env_${ac_var}_set
  1637. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1638. eval ac_new_val=\$ac_env_${ac_var}_value
  1639. case $ac_old_set,$ac_new_set in
  1640. set,)
  1641. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1642. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1643. ac_cache_corrupted=: ;;
  1644. ,set)
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1646. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1647. ac_cache_corrupted=: ;;
  1648. ,);;
  1649. *)
  1650. if test "x$ac_old_val" != "x$ac_new_val"; then
  1651. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1652. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1653. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1654. echo "$as_me: former value: $ac_old_val" >&2;}
  1655. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1656. echo "$as_me: current value: $ac_new_val" >&2;}
  1657. ac_cache_corrupted=:
  1658. fi;;
  1659. esac
  1660. # Pass precious variables to config.status.
  1661. if test "$ac_new_set" = set; then
  1662. case $ac_new_val in
  1663. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1664. *) ac_arg=$ac_var=$ac_new_val ;;
  1665. esac
  1666. case " $ac_configure_args " in
  1667. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1668. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1669. esac
  1670. fi
  1671. done
  1672. if $ac_cache_corrupted; then
  1673. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1674. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1675. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1676. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1677. { (exit 1); exit 1; }; }
  1678. fi
  1679. ac_ext=c
  1680. ac_cpp='$CPP $CPPFLAGS'
  1681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1684. ac_aux_dir=
  1685. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1686. if test -f "$ac_dir/install-sh"; then
  1687. ac_aux_dir=$ac_dir
  1688. ac_install_sh="$ac_aux_dir/install-sh -c"
  1689. break
  1690. elif test -f "$ac_dir/install.sh"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/install.sh -c"
  1693. break
  1694. elif test -f "$ac_dir/shtool"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/shtool install -c"
  1697. break
  1698. fi
  1699. done
  1700. if test -z "$ac_aux_dir"; then
  1701. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1702. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1703. { (exit 1); exit 1; }; }
  1704. fi
  1705. # These three variables are undocumented and unsupported,
  1706. # and are intended to be withdrawn in a future Autoconf release.
  1707. # They can cause serious problems if a builder's source tree is in a directory
  1708. # whose full name contains unusual characters.
  1709. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1710. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1711. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1712. # Make sure we can run config.sub.
  1713. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1714. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1715. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1716. { (exit 1); exit 1; }; }
  1717. { echo "$as_me:$LINENO: checking build system type" >&5
  1718. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1719. if test "${ac_cv_build+set}" = set; then
  1720. echo $ECHO_N "(cached) $ECHO_C" >&6
  1721. else
  1722. ac_build_alias=$build_alias
  1723. test "x$ac_build_alias" = x &&
  1724. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1725. test "x$ac_build_alias" = x &&
  1726. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1727. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1728. { (exit 1); exit 1; }; }
  1729. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1730. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1731. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1732. { (exit 1); exit 1; }; }
  1733. fi
  1734. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1735. echo "${ECHO_T}$ac_cv_build" >&6; }
  1736. case $ac_cv_build in
  1737. *-*-*) ;;
  1738. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1739. echo "$as_me: error: invalid value of canonical build" >&2;}
  1740. { (exit 1); exit 1; }; };;
  1741. esac
  1742. build=$ac_cv_build
  1743. ac_save_IFS=$IFS; IFS='-'
  1744. set x $ac_cv_build
  1745. shift
  1746. build_cpu=$1
  1747. build_vendor=$2
  1748. shift; shift
  1749. # Remember, the first character of IFS is used to create $*,
  1750. # except with old shells:
  1751. build_os=$*
  1752. IFS=$ac_save_IFS
  1753. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1754. { echo "$as_me:$LINENO: checking host system type" >&5
  1755. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1756. if test "${ac_cv_host+set}" = set; then
  1757. echo $ECHO_N "(cached) $ECHO_C" >&6
  1758. else
  1759. if test "x$host_alias" = x; then
  1760. ac_cv_host=$ac_cv_build
  1761. else
  1762. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1763. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1764. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1765. { (exit 1); exit 1; }; }
  1766. fi
  1767. fi
  1768. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1769. echo "${ECHO_T}$ac_cv_host" >&6; }
  1770. case $ac_cv_host in
  1771. *-*-*) ;;
  1772. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1773. echo "$as_me: error: invalid value of canonical host" >&2;}
  1774. { (exit 1); exit 1; }; };;
  1775. esac
  1776. host=$ac_cv_host
  1777. ac_save_IFS=$IFS; IFS='-'
  1778. set x $ac_cv_host
  1779. shift
  1780. host_cpu=$1
  1781. host_vendor=$2
  1782. shift; shift
  1783. # Remember, the first character of IFS is used to create $*,
  1784. # except with old shells:
  1785. host_os=$*
  1786. IFS=$ac_save_IFS
  1787. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1788. { echo "$as_me:$LINENO: checking target system type" >&5
  1789. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1790. if test "${ac_cv_target+set}" = set; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. if test "x$target_alias" = x; then
  1794. ac_cv_target=$ac_cv_host
  1795. else
  1796. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1797. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1798. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1799. { (exit 1); exit 1; }; }
  1800. fi
  1801. fi
  1802. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1803. echo "${ECHO_T}$ac_cv_target" >&6; }
  1804. case $ac_cv_target in
  1805. *-*-*) ;;
  1806. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1807. echo "$as_me: error: invalid value of canonical target" >&2;}
  1808. { (exit 1); exit 1; }; };;
  1809. esac
  1810. target=$ac_cv_target
  1811. ac_save_IFS=$IFS; IFS='-'
  1812. set x $ac_cv_target
  1813. shift
  1814. target_cpu=$1
  1815. target_vendor=$2
  1816. shift; shift
  1817. # Remember, the first character of IFS is used to create $*,
  1818. # except with old shells:
  1819. target_os=$*
  1820. IFS=$ac_save_IFS
  1821. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1822. # The aliases save the names the user supplied, while $host etc.
  1823. # will get canonicalized.
  1824. test -n "$target_alias" &&
  1825. test "$program_prefix$program_suffix$program_transform_name" = \
  1826. NONENONEs,x,x, &&
  1827. program_prefix=${target_alias}-
  1828. am__api_version='1.10'
  1829. # Find a good install program. We prefer a C program (faster),
  1830. # so one script is as good as another. But avoid the broken or
  1831. # incompatible versions:
  1832. # SysV /etc/install, /usr/sbin/install
  1833. # SunOS /usr/etc/install
  1834. # IRIX /sbin/install
  1835. # AIX /bin/install
  1836. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1837. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1838. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1839. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1840. # OS/2's system install, which has a completely different semantic
  1841. # ./install, which can be erroneously created by make from ./install.sh.
  1842. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1843. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1844. if test -z "$INSTALL"; then
  1845. if test "${ac_cv_path_install+set}" = set; then
  1846. echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1849. for as_dir in $PATH
  1850. do
  1851. IFS=$as_save_IFS
  1852. test -z "$as_dir" && as_dir=.
  1853. # Account for people who put trailing slashes in PATH elements.
  1854. case $as_dir/ in
  1855. ./ | .// | /cC/* | \
  1856. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1857. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1858. /usr/ucb/* ) ;;
  1859. *)
  1860. # OSF1 and SCO ODT 3.0 have their own names for install.
  1861. # Don't use installbsd from OSF since it installs stuff as root
  1862. # by default.
  1863. for ac_prog in ginstall scoinst install; do
  1864. for ac_exec_ext in '' $ac_executable_extensions; do
  1865. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1866. if test $ac_prog = install &&
  1867. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1868. # AIX install. It has an incompatible calling convention.
  1869. :
  1870. elif test $ac_prog = install &&
  1871. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1872. # program-specific install script used by HP pwplus--don't use.
  1873. :
  1874. else
  1875. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1876. break 3
  1877. fi
  1878. fi
  1879. done
  1880. done
  1881. ;;
  1882. esac
  1883. done
  1884. IFS=$as_save_IFS
  1885. fi
  1886. if test "${ac_cv_path_install+set}" = set; then
  1887. INSTALL=$ac_cv_path_install
  1888. else
  1889. # As a last resort, use the slow shell script. Don't cache a
  1890. # value for INSTALL within a source directory, because that will
  1891. # break other packages using the cache if that directory is
  1892. # removed, or if the value is a relative name.
  1893. INSTALL=$ac_install_sh
  1894. fi
  1895. fi
  1896. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1897. echo "${ECHO_T}$INSTALL" >&6; }
  1898. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1899. # It thinks the first close brace ends the variable substitution.
  1900. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1901. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1902. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1903. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1904. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1905. # Just in case
  1906. sleep 1
  1907. echo timestamp > conftest.file
  1908. # Do `set' in a subshell so we don't clobber the current shell's
  1909. # arguments. Must try -L first in case configure is actually a
  1910. # symlink; some systems play weird games with the mod time of symlinks
  1911. # (eg FreeBSD returns the mod time of the symlink's containing
  1912. # directory).
  1913. if (
  1914. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1915. if test "$*" = "X"; then
  1916. # -L didn't work.
  1917. set X `ls -t $srcdir/configure conftest.file`
  1918. fi
  1919. rm -f conftest.file
  1920. if test "$*" != "X $srcdir/configure conftest.file" \
  1921. && test "$*" != "X conftest.file $srcdir/configure"; then
  1922. # If neither matched, then we have a broken ls. This can happen
  1923. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1924. # broken ls alias from the environment. This has actually
  1925. # happened. Such a system could not be considered "sane".
  1926. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1927. alias in your environment" >&5
  1928. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1929. alias in your environment" >&2;}
  1930. { (exit 1); exit 1; }; }
  1931. fi
  1932. test "$2" = conftest.file
  1933. )
  1934. then
  1935. # Ok.
  1936. :
  1937. else
  1938. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1939. Check your system clock" >&5
  1940. echo "$as_me: error: newly created file is older than distributed files!
  1941. Check your system clock" >&2;}
  1942. { (exit 1); exit 1; }; }
  1943. fi
  1944. { echo "$as_me:$LINENO: result: yes" >&5
  1945. echo "${ECHO_T}yes" >&6; }
  1946. test "$program_prefix" != NONE &&
  1947. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1948. # Use a double $ so make ignores it.
  1949. test "$program_suffix" != NONE &&
  1950. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1951. # Double any \ or $. echo might interpret backslashes.
  1952. # By default was `s,x,x', remove it if useless.
  1953. cat <<\_ACEOF >conftest.sed
  1954. s/[\\$]/&&/g;s/;s,x,x,$//
  1955. _ACEOF
  1956. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1957. rm -f conftest.sed
  1958. # expand $ac_aux_dir to an absolute path
  1959. am_aux_dir=`cd $ac_aux_dir && pwd`
  1960. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1961. # Use eval to expand $SHELL
  1962. if eval "$MISSING --run true"; then
  1963. am_missing_run="$MISSING --run "
  1964. else
  1965. am_missing_run=
  1966. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1967. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1968. fi
  1969. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1970. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1971. if test -z "$MKDIR_P"; then
  1972. if test "${ac_cv_path_mkdir+set}" = set; then
  1973. echo $ECHO_N "(cached) $ECHO_C" >&6
  1974. else
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1977. do
  1978. IFS=$as_save_IFS
  1979. test -z "$as_dir" && as_dir=.
  1980. for ac_prog in mkdir gmkdir; do
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1983. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1984. 'mkdir (GNU coreutils) '* | \
  1985. 'mkdir (coreutils) '* | \
  1986. 'mkdir (fileutils) '4.1*)
  1987. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1988. break 3;;
  1989. esac
  1990. done
  1991. done
  1992. done
  1993. IFS=$as_save_IFS
  1994. fi
  1995. if test "${ac_cv_path_mkdir+set}" = set; then
  1996. MKDIR_P="$ac_cv_path_mkdir -p"
  1997. else
  1998. # As a last resort, use the slow shell script. Don't cache a
  1999. # value for MKDIR_P within a source directory, because that will
  2000. # break other packages using the cache if that directory is
  2001. # removed, or if the value is a relative name.
  2002. test -d ./--version && rmdir ./--version
  2003. MKDIR_P="$ac_install_sh -d"
  2004. fi
  2005. fi
  2006. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2007. echo "${ECHO_T}$MKDIR_P" >&6; }
  2008. mkdir_p="$MKDIR_P"
  2009. case $mkdir_p in
  2010. [\\/$]* | ?:[\\/]*) ;;
  2011. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2012. esac
  2013. for ac_prog in gawk mawk nawk awk
  2014. do
  2015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2016. set dummy $ac_prog; ac_word=$2
  2017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2019. if test "${ac_cv_prog_AWK+set}" = set; then
  2020. echo $ECHO_N "(cached) $ECHO_C" >&6
  2021. else
  2022. if test -n "$AWK"; then
  2023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2024. else
  2025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2026. for as_dir in $PATH
  2027. do
  2028. IFS=$as_save_IFS
  2029. test -z "$as_dir" && as_dir=.
  2030. for ac_exec_ext in '' $ac_executable_extensions; do
  2031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2032. ac_cv_prog_AWK="$ac_prog"
  2033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2034. break 2
  2035. fi
  2036. done
  2037. done
  2038. IFS=$as_save_IFS
  2039. fi
  2040. fi
  2041. AWK=$ac_cv_prog_AWK
  2042. if test -n "$AWK"; then
  2043. { echo "$as_me:$LINENO: result: $AWK" >&5
  2044. echo "${ECHO_T}$AWK" >&6; }
  2045. else
  2046. { echo "$as_me:$LINENO: result: no" >&5
  2047. echo "${ECHO_T}no" >&6; }
  2048. fi
  2049. test -n "$AWK" && break
  2050. done
  2051. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2052. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2053. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2054. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. cat >conftest.make <<\_ACEOF
  2058. SHELL = /bin/sh
  2059. all:
  2060. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2061. _ACEOF
  2062. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2063. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2064. *@@@%%%=?*=@@@%%%*)
  2065. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2066. *)
  2067. eval ac_cv_prog_make_${ac_make}_set=no;;
  2068. esac
  2069. rm -f conftest.make
  2070. fi
  2071. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2072. { echo "$as_me:$LINENO: result: yes" >&5
  2073. echo "${ECHO_T}yes" >&6; }
  2074. SET_MAKE=
  2075. else
  2076. { echo "$as_me:$LINENO: result: no" >&5
  2077. echo "${ECHO_T}no" >&6; }
  2078. SET_MAKE="MAKE=${MAKE-make}"
  2079. fi
  2080. rm -rf .tst 2>/dev/null
  2081. mkdir .tst 2>/dev/null
  2082. if test -d .tst; then
  2083. am__leading_dot=.
  2084. else
  2085. am__leading_dot=_
  2086. fi
  2087. rmdir .tst 2>/dev/null
  2088. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2089. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2090. # is not polluted with repeated "-I."
  2091. am__isrc=' -I$(srcdir)'
  2092. # test to see if srcdir already configured
  2093. if test -f $srcdir/config.status; then
  2094. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2095. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2096. { (exit 1); exit 1; }; }
  2097. fi
  2098. fi
  2099. # test whether we have cygpath
  2100. if test -z "$CYGPATH_W"; then
  2101. if (cygpath --version) >/dev/null 2>/dev/null; then
  2102. CYGPATH_W='cygpath -w'
  2103. else
  2104. CYGPATH_W=echo
  2105. fi
  2106. fi
  2107. # Define the identity of the package.
  2108. PACKAGE='aria2c'
  2109. VERSION='0.16.2'
  2110. cat >>confdefs.h <<_ACEOF
  2111. #define PACKAGE "$PACKAGE"
  2112. _ACEOF
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define VERSION "$VERSION"
  2115. _ACEOF
  2116. # Some tools Automake needs.
  2117. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2118. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2119. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2120. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2121. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2122. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2123. # Installed binaries are usually stripped using `strip' when the user
  2124. # run `make install-strip'. However `strip' might not be the right
  2125. # tool to use in cross-compilation environments, therefore Automake
  2126. # will honor the `STRIP' environment variable to overrule this program.
  2127. if test "$cross_compiling" != no; then
  2128. if test -n "$ac_tool_prefix"; then
  2129. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2130. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2131. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133. if test "${ac_cv_prog_STRIP+set}" = set; then
  2134. echo $ECHO_N "(cached) $ECHO_C" >&6
  2135. else
  2136. if test -n "$STRIP"; then
  2137. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2138. else
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_exec_ext in '' $ac_executable_extensions; do
  2145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2147. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148. break 2
  2149. fi
  2150. done
  2151. done
  2152. IFS=$as_save_IFS
  2153. fi
  2154. fi
  2155. STRIP=$ac_cv_prog_STRIP
  2156. if test -n "$STRIP"; then
  2157. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2158. echo "${ECHO_T}$STRIP" >&6; }
  2159. else
  2160. { echo "$as_me:$LINENO: result: no" >&5
  2161. echo "${ECHO_T}no" >&6; }
  2162. fi
  2163. fi
  2164. if test -z "$ac_cv_prog_STRIP"; then
  2165. ac_ct_STRIP=$STRIP
  2166. # Extract the first word of "strip", so it can be a program name with args.
  2167. set dummy strip; ac_word=$2
  2168. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2170. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2171. echo $ECHO_N "(cached) $ECHO_C" >&6
  2172. else
  2173. if test -n "$ac_ct_STRIP"; then
  2174. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2175. else
  2176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2177. for as_dir in $PATH
  2178. do
  2179. IFS=$as_save_IFS
  2180. test -z "$as_dir" && as_dir=.
  2181. for ac_exec_ext in '' $ac_executable_extensions; do
  2182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2183. ac_cv_prog_ac_ct_STRIP="strip"
  2184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2185. break 2
  2186. fi
  2187. done
  2188. done
  2189. IFS=$as_save_IFS
  2190. fi
  2191. fi
  2192. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2193. if test -n "$ac_ct_STRIP"; then
  2194. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2195. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2196. else
  2197. { echo "$as_me:$LINENO: result: no" >&5
  2198. echo "${ECHO_T}no" >&6; }
  2199. fi
  2200. if test "x$ac_ct_STRIP" = x; then
  2201. STRIP=":"
  2202. else
  2203. case $cross_compiling:$ac_tool_warned in
  2204. yes:)
  2205. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2206. whose name does not start with the host triplet. If you think this
  2207. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2208. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2209. whose name does not start with the host triplet. If you think this
  2210. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2211. ac_tool_warned=yes ;;
  2212. esac
  2213. STRIP=$ac_ct_STRIP
  2214. fi
  2215. else
  2216. STRIP="$ac_cv_prog_STRIP"
  2217. fi
  2218. fi
  2219. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2220. # We need awk for the "check" target. The system "awk" is bad on
  2221. # some platforms.
  2222. # Always define AMTAR for backward compatibility.
  2223. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2224. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2225. # Check whether --with-cppunit-prefix was given.
  2226. if test "${with_cppunit_prefix+set}" = set; then
  2227. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2228. else
  2229. cppunit_config_prefix=""
  2230. fi
  2231. # Check whether --with-cppunit-exec-prefix was given.
  2232. if test "${with_cppunit_exec_prefix+set}" = set; then
  2233. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2234. else
  2235. cppunit_config_exec_prefix=""
  2236. fi
  2237. if test x$cppunit_config_exec_prefix != x ; then
  2238. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2239. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2240. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2241. fi
  2242. fi
  2243. if test x$cppunit_config_prefix != x ; then
  2244. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2245. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2246. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2247. fi
  2248. fi
  2249. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2250. set dummy cppunit-config; ac_word=$2
  2251. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2253. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. case $CPPUNIT_CONFIG in
  2257. [\\/]* | ?:[\\/]*)
  2258. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2259. ;;
  2260. *)
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2269. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2276. ;;
  2277. esac
  2278. fi
  2279. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2280. if test -n "$CPPUNIT_CONFIG"; then
  2281. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2282. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2283. else
  2284. { echo "$as_me:$LINENO: result: no" >&5
  2285. echo "${ECHO_T}no" >&6; }
  2286. fi
  2287. cppunit_version_min=1.10.2
  2288. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2289. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2290. no_cppunit=""
  2291. if test "$CPPUNIT_CONFIG" = "no" ; then
  2292. { echo "$as_me:$LINENO: result: no" >&5
  2293. echo "${ECHO_T}no" >&6; }
  2294. no_cppunit=yes
  2295. else
  2296. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2297. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2298. cppunit_version=`$CPPUNIT_CONFIG --version`
  2299. cppunit_major_version=`echo $cppunit_version | \
  2300. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2301. cppunit_minor_version=`echo $cppunit_version | \
  2302. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2303. cppunit_micro_version=`echo $cppunit_version | \
  2304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2305. cppunit_major_min=`echo $cppunit_version_min | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2307. if test "x${cppunit_major_min}" = "x" ; then
  2308. cppunit_major_min=0
  2309. fi
  2310. cppunit_minor_min=`echo $cppunit_version_min | \
  2311. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2312. if test "x${cppunit_minor_min}" = "x" ; then
  2313. cppunit_minor_min=0
  2314. fi
  2315. cppunit_micro_min=`echo $cppunit_version_min | \
  2316. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2317. if test "x${cppunit_micro_min}" = "x" ; then
  2318. cppunit_micro_min=0
  2319. fi
  2320. cppunit_version_proper=`expr \
  2321. $cppunit_major_version \> $cppunit_major_min \| \
  2322. $cppunit_major_version \= $cppunit_major_min \& \
  2323. $cppunit_minor_version \> $cppunit_minor_min \| \
  2324. $cppunit_major_version \= $cppunit_major_min \& \
  2325. $cppunit_minor_version \= $cppunit_minor_min \& \
  2326. $cppunit_micro_version \>= $cppunit_micro_min `
  2327. if test "$cppunit_version_proper" = "1" ; then
  2328. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2329. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2330. else
  2331. { echo "$as_me:$LINENO: result: no" >&5
  2332. echo "${ECHO_T}no" >&6; }
  2333. no_cppunit=yes
  2334. fi
  2335. fi
  2336. if test "x$no_cppunit" = x ; then
  2337. :
  2338. else
  2339. CPPUNIT_CFLAGS=""
  2340. CPPUNIT_LIBS=""
  2341. :
  2342. fi
  2343. ac_config_headers="$ac_config_headers config.h"
  2344. case "$target" in
  2345. *mingw*|*cygwin*)
  2346. WINSOCK_LIBS="-lws2_32 -lpthread"
  2347. ;;
  2348. esac
  2349. cat >>confdefs.h <<_ACEOF
  2350. #define TARGET "$target"
  2351. _ACEOF
  2352. # Set localedir
  2353. localedir=${datadir}/locale
  2354. # Checks for arguments.
  2355. # Check whether --with-gnutls was given.
  2356. if test "${with_gnutls+set}" = set; then
  2357. withval=$with_gnutls; with_gnutls=$withval
  2358. else
  2359. with_gnutls=yes
  2360. fi
  2361. # Check whether --with-openssl was given.
  2362. if test "${with_openssl+set}" = set; then
  2363. withval=$with_openssl; with_openssl=$withval
  2364. else
  2365. with_openssl=yes
  2366. fi
  2367. # Check whether --with-sqlite3 was given.
  2368. if test "${with_sqlite3+set}" = set; then
  2369. withval=$with_sqlite3; with_sqlite3=$withval
  2370. else
  2371. with_sqlite3=yes
  2372. fi
  2373. # Check whether --with-libxml2 was given.
  2374. if test "${with_libxml2+set}" = set; then
  2375. withval=$with_libxml2; with_libxml2=$withval
  2376. else
  2377. with_libxml2=yes
  2378. fi
  2379. # Check whether --with-libexpat was given.
  2380. if test "${with_libexpat+set}" = set; then
  2381. withval=$with_libexpat; with_libexpat=$withval
  2382. else
  2383. with_libexpat=yes
  2384. fi
  2385. # Check whether --with-libares was given.
  2386. if test "${with_libares+set}" = set; then
  2387. withval=$with_libares; with_libares=$withval
  2388. else
  2389. with_libares=yes
  2390. fi
  2391. # Check whether --with-libcares was given.
  2392. if test "${with_libcares+set}" = set; then
  2393. withval=$with_libcares; with_libcares=$withval
  2394. else
  2395. with_libcares=yes
  2396. fi
  2397. # Check whether --with-libz was given.
  2398. if test "${with_libz+set}" = set; then
  2399. withval=$with_libz; with_libz=$withval
  2400. else
  2401. with_libz=yes
  2402. fi
  2403. # Check whether --enable-bittorrent was given.
  2404. if test "${enable_bittorrent+set}" = set; then
  2405. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2406. else
  2407. enable_bittorrent=yes
  2408. fi
  2409. # Check whether --enable-metalink was given.
  2410. if test "${enable_metalink+set}" = set; then
  2411. enableval=$enable_metalink; enable_metalink=$enableval
  2412. else
  2413. enable_metalink=yes
  2414. fi
  2415. # Check whether --enable-epoll was given.
  2416. if test "${enable_epoll+set}" = set; then
  2417. enableval=$enable_epoll; enable_epoll=$enableval
  2418. else
  2419. enable_epoll=yes
  2420. fi
  2421. # Checks for programs.
  2422. ac_ext=cpp
  2423. ac_cpp='$CXXCPP $CPPFLAGS'
  2424. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2425. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2426. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2427. if test -z "$CXX"; then
  2428. if test -n "$CCC"; then
  2429. CXX=$CCC
  2430. else
  2431. if test -n "$ac_tool_prefix"; then
  2432. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2433. do
  2434. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2435. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2436. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2437. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2438. if test "${ac_cv_prog_CXX+set}" = set; then
  2439. echo $ECHO_N "(cached) $ECHO_C" >&6
  2440. else
  2441. if test -n "$CXX"; then
  2442. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_exec_ext in '' $ac_executable_extensions; do
  2450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2451. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2452. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2453. break 2
  2454. fi
  2455. done
  2456. done
  2457. IFS=$as_save_IFS
  2458. fi
  2459. fi
  2460. CXX=$ac_cv_prog_CXX
  2461. if test -n "$CXX"; then
  2462. { echo "$as_me:$LINENO: result: $CXX" >&5
  2463. echo "${ECHO_T}$CXX" >&6; }
  2464. else
  2465. { echo "$as_me:$LINENO: result: no" >&5
  2466. echo "${ECHO_T}no" >&6; }
  2467. fi
  2468. test -n "$CXX" && break
  2469. done
  2470. fi
  2471. if test -z "$CXX"; then
  2472. ac_ct_CXX=$CXX
  2473. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2474. do
  2475. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2476. set dummy $ac_prog; ac_word=$2
  2477. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2478. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2479. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2480. echo $ECHO_N "(cached) $ECHO_C" >&6
  2481. else
  2482. if test -n "$ac_ct_CXX"; then
  2483. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2492. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2502. if test -n "$ac_ct_CXX"; then
  2503. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2504. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2505. else
  2506. { echo "$as_me:$LINENO: result: no" >&5
  2507. echo "${ECHO_T}no" >&6; }
  2508. fi
  2509. test -n "$ac_ct_CXX" && break
  2510. done
  2511. if test "x$ac_ct_CXX" = x; then
  2512. CXX="g++"
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2517. whose name does not start with the host triplet. If you think this
  2518. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2519. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2520. whose name does not start with the host triplet. If you think this
  2521. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2522. ac_tool_warned=yes ;;
  2523. esac
  2524. CXX=$ac_ct_CXX
  2525. fi
  2526. fi
  2527. fi
  2528. fi
  2529. # Provide some information about the compiler.
  2530. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2531. ac_compiler=`set X $ac_compile; echo $2`
  2532. { (ac_try="$ac_compiler --version >&5"
  2533. case "(($ac_try" in
  2534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2535. *) ac_try_echo=$ac_try;;
  2536. esac
  2537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2538. (eval "$ac_compiler --version >&5") 2>&5
  2539. ac_status=$?
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); }
  2542. { (ac_try="$ac_compiler -v >&5"
  2543. case "(($ac_try" in
  2544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2545. *) ac_try_echo=$ac_try;;
  2546. esac
  2547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2548. (eval "$ac_compiler -v >&5") 2>&5
  2549. ac_status=$?
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); }
  2552. { (ac_try="$ac_compiler -V >&5"
  2553. case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2558. (eval "$ac_compiler -V >&5") 2>&5
  2559. ac_status=$?
  2560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2561. (exit $ac_status); }
  2562. cat >conftest.$ac_ext <<_ACEOF
  2563. /* confdefs.h. */
  2564. _ACEOF
  2565. cat confdefs.h >>conftest.$ac_ext
  2566. cat >>conftest.$ac_ext <<_ACEOF
  2567. /* end confdefs.h. */
  2568. int
  2569. main ()
  2570. {
  2571. ;
  2572. return 0;
  2573. }
  2574. _ACEOF
  2575. ac_clean_files_save=$ac_clean_files
  2576. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2577. # Try to create an executable without -o first, disregard a.out.
  2578. # It will help us diagnose broken compilers, and finding out an intuition
  2579. # of exeext.
  2580. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2581. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2582. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2583. #
  2584. # List of possible output files, starting from the most likely.
  2585. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2586. # only as a last resort. b.out is created by i960 compilers.
  2587. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2588. #
  2589. # The IRIX 6 linker writes into existing files which may not be
  2590. # executable, retaining their permissions. Remove them first so a
  2591. # subsequent execution test works.
  2592. ac_rmfiles=
  2593. for ac_file in $ac_files
  2594. do
  2595. case $ac_file in
  2596. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2597. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2598. esac
  2599. done
  2600. rm -f $ac_rmfiles
  2601. if { (ac_try="$ac_link_default"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2607. (eval "$ac_link_default") 2>&5
  2608. ac_status=$?
  2609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2610. (exit $ac_status); }; then
  2611. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2612. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2613. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2614. # so that the user can short-circuit this test for compilers unknown to
  2615. # Autoconf.
  2616. for ac_file in $ac_files ''
  2617. do
  2618. test -f "$ac_file" || continue
  2619. case $ac_file in
  2620. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2621. ;;
  2622. [ab].out )
  2623. # We found the default executable, but exeext='' is most
  2624. # certainly right.
  2625. break;;
  2626. *.* )
  2627. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2628. then :; else
  2629. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2630. fi
  2631. # We set ac_cv_exeext here because the later test for it is not
  2632. # safe: cross compilers may not add the suffix if given an `-o'
  2633. # argument, so we may need to know it at that point already.
  2634. # Even if this section looks crufty: it has the advantage of
  2635. # actually working.
  2636. break;;
  2637. * )
  2638. break;;
  2639. esac
  2640. done
  2641. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2642. else
  2643. ac_file=''
  2644. fi
  2645. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2646. echo "${ECHO_T}$ac_file" >&6; }
  2647. if test -z "$ac_file"; then
  2648. echo "$as_me: failed program was:" >&5
  2649. sed 's/^/| /' conftest.$ac_ext >&5
  2650. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2651. See \`config.log' for more details." >&5
  2652. echo "$as_me: error: C++ compiler cannot create executables
  2653. See \`config.log' for more details." >&2;}
  2654. { (exit 77); exit 77; }; }
  2655. fi
  2656. ac_exeext=$ac_cv_exeext
  2657. # Check that the compiler produces executables we can run. If not, either
  2658. # the compiler is broken, or we cross compile.
  2659. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2660. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2661. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2662. # If not cross compiling, check that we can run a simple program.
  2663. if test "$cross_compiling" != yes; then
  2664. if { ac_try='./$ac_file'
  2665. { (case "(($ac_try" in
  2666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2667. *) ac_try_echo=$ac_try;;
  2668. esac
  2669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2670. (eval "$ac_try") 2>&5
  2671. ac_status=$?
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); }; }; then
  2674. cross_compiling=no
  2675. else
  2676. if test "$cross_compiling" = maybe; then
  2677. cross_compiling=yes
  2678. else
  2679. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2680. If you meant to cross compile, use \`--host'.
  2681. See \`config.log' for more details." >&5
  2682. echo "$as_me: error: cannot run C++ compiled programs.
  2683. If you meant to cross compile, use \`--host'.
  2684. See \`config.log' for more details." >&2;}
  2685. { (exit 1); exit 1; }; }
  2686. fi
  2687. fi
  2688. fi
  2689. { echo "$as_me:$LINENO: result: yes" >&5
  2690. echo "${ECHO_T}yes" >&6; }
  2691. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2692. ac_clean_files=$ac_clean_files_save
  2693. # Check that the compiler produces executables we can run. If not, either
  2694. # the compiler is broken, or we cross compile.
  2695. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2696. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2697. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2698. echo "${ECHO_T}$cross_compiling" >&6; }
  2699. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2700. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2701. if { (ac_try="$ac_link"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2707. (eval "$ac_link") 2>&5
  2708. ac_status=$?
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); }; then
  2711. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2712. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2713. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2714. # `rm'.
  2715. for ac_file in conftest.exe conftest conftest.*; do
  2716. test -f "$ac_file" || continue
  2717. case $ac_file in
  2718. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2719. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2720. break;;
  2721. * ) break;;
  2722. esac
  2723. done
  2724. else
  2725. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2726. See \`config.log' for more details." >&5
  2727. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2728. See \`config.log' for more details." >&2;}
  2729. { (exit 1); exit 1; }; }
  2730. fi
  2731. rm -f conftest$ac_cv_exeext
  2732. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2733. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2734. rm -f conftest.$ac_ext
  2735. EXEEXT=$ac_cv_exeext
  2736. ac_exeext=$EXEEXT
  2737. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2738. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2739. if test "${ac_cv_objext+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. cat >conftest.$ac_ext <<_ACEOF
  2743. /* confdefs.h. */
  2744. _ACEOF
  2745. cat confdefs.h >>conftest.$ac_ext
  2746. cat >>conftest.$ac_ext <<_ACEOF
  2747. /* end confdefs.h. */
  2748. int
  2749. main ()
  2750. {
  2751. ;
  2752. return 0;
  2753. }
  2754. _ACEOF
  2755. rm -f conftest.o conftest.obj
  2756. if { (ac_try="$ac_compile"
  2757. case "(($ac_try" in
  2758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2759. *) ac_try_echo=$ac_try;;
  2760. esac
  2761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2762. (eval "$ac_compile") 2>&5
  2763. ac_status=$?
  2764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2765. (exit $ac_status); }; then
  2766. for ac_file in conftest.o conftest.obj conftest.*; do
  2767. test -f "$ac_file" || continue;
  2768. case $ac_file in
  2769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2770. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2771. break;;
  2772. esac
  2773. done
  2774. else
  2775. echo "$as_me: failed program was:" >&5
  2776. sed 's/^/| /' conftest.$ac_ext >&5
  2777. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2778. See \`config.log' for more details." >&5
  2779. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2780. See \`config.log' for more details." >&2;}
  2781. { (exit 1); exit 1; }; }
  2782. fi
  2783. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2784. fi
  2785. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2786. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2787. OBJEXT=$ac_cv_objext
  2788. ac_objext=$OBJEXT
  2789. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2790. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2791. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2792. echo $ECHO_N "(cached) $ECHO_C" >&6
  2793. else
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. /* confdefs.h. */
  2796. _ACEOF
  2797. cat confdefs.h >>conftest.$ac_ext
  2798. cat >>conftest.$ac_ext <<_ACEOF
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. #ifndef __GNUC__
  2804. choke me
  2805. #endif
  2806. ;
  2807. return 0;
  2808. }
  2809. _ACEOF
  2810. rm -f conftest.$ac_objext
  2811. if { (ac_try="$ac_compile"
  2812. case "(($ac_try" in
  2813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2814. *) ac_try_echo=$ac_try;;
  2815. esac
  2816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2817. (eval "$ac_compile") 2>conftest.er1
  2818. ac_status=$?
  2819. grep -v '^ *+' conftest.er1 >conftest.err
  2820. rm -f conftest.er1
  2821. cat conftest.err >&5
  2822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2823. (exit $ac_status); } && {
  2824. test -z "$ac_cxx_werror_flag" ||
  2825. test ! -s conftest.err
  2826. } && test -s conftest.$ac_objext; then
  2827. ac_compiler_gnu=yes
  2828. else
  2829. echo "$as_me: failed program was:" >&5
  2830. sed 's/^/| /' conftest.$ac_ext >&5
  2831. ac_compiler_gnu=no
  2832. fi
  2833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2834. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2835. fi
  2836. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2837. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2838. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2839. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2840. ac_save_CXXFLAGS=$CXXFLAGS
  2841. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2842. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2843. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2844. echo $ECHO_N "(cached) $ECHO_C" >&6
  2845. else
  2846. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2847. ac_cxx_werror_flag=yes
  2848. ac_cv_prog_cxx_g=no
  2849. CXXFLAGS="-g"
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.$ac_objext
  2864. if { (ac_try="$ac_compile"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2870. (eval "$ac_compile") 2>conftest.er1
  2871. ac_status=$?
  2872. grep -v '^ *+' conftest.er1 >conftest.err
  2873. rm -f conftest.er1
  2874. cat conftest.err >&5
  2875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2876. (exit $ac_status); } && {
  2877. test -z "$ac_cxx_werror_flag" ||
  2878. test ! -s conftest.err
  2879. } && test -s conftest.$ac_objext; then
  2880. ac_cv_prog_cxx_g=yes
  2881. else
  2882. echo "$as_me: failed program was:" >&5
  2883. sed 's/^/| /' conftest.$ac_ext >&5
  2884. CXXFLAGS=""
  2885. cat >conftest.$ac_ext <<_ACEOF
  2886. /* confdefs.h. */
  2887. _ACEOF
  2888. cat confdefs.h >>conftest.$ac_ext
  2889. cat >>conftest.$ac_ext <<_ACEOF
  2890. /* end confdefs.h. */
  2891. int
  2892. main ()
  2893. {
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. rm -f conftest.$ac_objext
  2899. if { (ac_try="$ac_compile"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2905. (eval "$ac_compile") 2>conftest.er1
  2906. ac_status=$?
  2907. grep -v '^ *+' conftest.er1 >conftest.err
  2908. rm -f conftest.er1
  2909. cat conftest.err >&5
  2910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2911. (exit $ac_status); } && {
  2912. test -z "$ac_cxx_werror_flag" ||
  2913. test ! -s conftest.err
  2914. } && test -s conftest.$ac_objext; then
  2915. :
  2916. else
  2917. echo "$as_me: failed program was:" >&5
  2918. sed 's/^/| /' conftest.$ac_ext >&5
  2919. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2920. CXXFLAGS="-g"
  2921. cat >conftest.$ac_ext <<_ACEOF
  2922. /* confdefs.h. */
  2923. _ACEOF
  2924. cat confdefs.h >>conftest.$ac_ext
  2925. cat >>conftest.$ac_ext <<_ACEOF
  2926. /* end confdefs.h. */
  2927. int
  2928. main ()
  2929. {
  2930. ;
  2931. return 0;
  2932. }
  2933. _ACEOF
  2934. rm -f conftest.$ac_objext
  2935. if { (ac_try="$ac_compile"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2941. (eval "$ac_compile") 2>conftest.er1
  2942. ac_status=$?
  2943. grep -v '^ *+' conftest.er1 >conftest.err
  2944. rm -f conftest.er1
  2945. cat conftest.err >&5
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); } && {
  2948. test -z "$ac_cxx_werror_flag" ||
  2949. test ! -s conftest.err
  2950. } && test -s conftest.$ac_objext; then
  2951. ac_cv_prog_cxx_g=yes
  2952. else
  2953. echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. fi
  2958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2959. fi
  2960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2961. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2962. fi
  2963. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2964. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2965. if test "$ac_test_CXXFLAGS" = set; then
  2966. CXXFLAGS=$ac_save_CXXFLAGS
  2967. elif test $ac_cv_prog_cxx_g = yes; then
  2968. if test "$GXX" = yes; then
  2969. CXXFLAGS="-g -O2"
  2970. else
  2971. CXXFLAGS="-g"
  2972. fi
  2973. else
  2974. if test "$GXX" = yes; then
  2975. CXXFLAGS="-O2"
  2976. else
  2977. CXXFLAGS=
  2978. fi
  2979. fi
  2980. ac_ext=c
  2981. ac_cpp='$CPP $CPPFLAGS'
  2982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2985. DEPDIR="${am__leading_dot}deps"
  2986. ac_config_commands="$ac_config_commands depfiles"
  2987. am_make=${MAKE-make}
  2988. cat > confinc << 'END'
  2989. am__doit:
  2990. @echo done
  2991. .PHONY: am__doit
  2992. END
  2993. # If we don't find an include directive, just comment out the code.
  2994. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2995. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2996. am__include="#"
  2997. am__quote=
  2998. _am_result=none
  2999. # First try GNU make style include.
  3000. echo "include confinc" > confmf
  3001. # We grep out `Entering directory' and `Leaving directory'
  3002. # messages which can occur if `w' ends up in MAKEFLAGS.
  3003. # In particular we don't look at `^make:' because GNU make might
  3004. # be invoked under some other name (usually "gmake"), in which
  3005. # case it prints its new name instead of `make'.
  3006. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3007. am__include=include
  3008. am__quote=
  3009. _am_result=GNU
  3010. fi
  3011. # Now try BSD make style include.
  3012. if test "$am__include" = "#"; then
  3013. echo '.include "confinc"' > confmf
  3014. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3015. am__include=.include
  3016. am__quote="\""
  3017. _am_result=BSD
  3018. fi
  3019. fi
  3020. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3021. echo "${ECHO_T}$_am_result" >&6; }
  3022. rm -f confinc confmf
  3023. # Check whether --enable-dependency-tracking was given.
  3024. if test "${enable_dependency_tracking+set}" = set; then
  3025. enableval=$enable_dependency_tracking;
  3026. fi
  3027. if test "x$enable_dependency_tracking" != xno; then
  3028. am_depcomp="$ac_aux_dir/depcomp"
  3029. AMDEPBACKSLASH='\'
  3030. fi
  3031. if test "x$enable_dependency_tracking" != xno; then
  3032. AMDEP_TRUE=
  3033. AMDEP_FALSE='#'
  3034. else
  3035. AMDEP_TRUE='#'
  3036. AMDEP_FALSE=
  3037. fi
  3038. depcc="$CXX" am_compiler_list=
  3039. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3040. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3041. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3045. # We make a subdir and do the tests there. Otherwise we can end up
  3046. # making bogus files that we don't know about and never remove. For
  3047. # instance it was reported that on HP-UX the gcc test will end up
  3048. # making a dummy file named `D' -- because `-MD' means `put the output
  3049. # in D'.
  3050. mkdir conftest.dir
  3051. # Copy depcomp to subdir because otherwise we won't find it if we're
  3052. # using a relative directory.
  3053. cp "$am_depcomp" conftest.dir
  3054. cd conftest.dir
  3055. # We will build objects and dependencies in a subdirectory because
  3056. # it helps to detect inapplicable dependency modes. For instance
  3057. # both Tru64's cc and ICC support -MD to output dependencies as a
  3058. # side effect of compilation, but ICC will put the dependencies in
  3059. # the current directory while Tru64 will put them in the object
  3060. # directory.
  3061. mkdir sub
  3062. am_cv_CXX_dependencies_compiler_type=none
  3063. if test "$am_compiler_list" = ""; then
  3064. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3065. fi
  3066. for depmode in $am_compiler_list; do
  3067. # Setup a source with many dependencies, because some compilers
  3068. # like to wrap large dependency lists on column 80 (with \), and
  3069. # we should not choose a depcomp mode which is confused by this.
  3070. #
  3071. # We need to recreate these files for each test, as the compiler may
  3072. # overwrite some of them when testing with obscure command lines.
  3073. # This happens at least with the AIX C compiler.
  3074. : > sub/conftest.c
  3075. for i in 1 2 3 4 5 6; do
  3076. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3077. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3078. # Solaris 8's {/usr,}/bin/sh.
  3079. touch sub/conftst$i.h
  3080. done
  3081. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3082. case $depmode in
  3083. nosideeffect)
  3084. # after this tag, mechanisms are not by side-effect, so they'll
  3085. # only be used when explicitly requested
  3086. if test "x$enable_dependency_tracking" = xyes; then
  3087. continue
  3088. else
  3089. break
  3090. fi
  3091. ;;
  3092. none) break ;;
  3093. esac
  3094. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3095. # mode. It turns out that the SunPro C++ compiler does not properly
  3096. # handle `-M -o', and we need to detect this.
  3097. if depmode=$depmode \
  3098. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3099. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3100. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3101. >/dev/null 2>conftest.err &&
  3102. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3103. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3104. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3105. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3106. # icc doesn't choke on unknown options, it will just issue warnings
  3107. # or remarks (even with -Werror). So we grep stderr for any message
  3108. # that says an option was ignored or not supported.
  3109. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3110. # icc: Command line warning: ignoring option '-M'; no argument required
  3111. # The diagnosis changed in icc 8.0:
  3112. # icc: Command line remark: option '-MP' not supported
  3113. if (grep 'ignoring option' conftest.err ||
  3114. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3115. am_cv_CXX_dependencies_compiler_type=$depmode
  3116. break
  3117. fi
  3118. fi
  3119. done
  3120. cd ..
  3121. rm -rf conftest.dir
  3122. else
  3123. am_cv_CXX_dependencies_compiler_type=none
  3124. fi
  3125. fi
  3126. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3127. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3128. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3129. if
  3130. test "x$enable_dependency_tracking" != xno \
  3131. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3132. am__fastdepCXX_TRUE=
  3133. am__fastdepCXX_FALSE='#'
  3134. else
  3135. am__fastdepCXX_TRUE='#'
  3136. am__fastdepCXX_FALSE=
  3137. fi
  3138. ac_ext=c
  3139. ac_cpp='$CPP $CPPFLAGS'
  3140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3143. if test -n "$ac_tool_prefix"; then
  3144. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3145. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3146. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3147. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3148. if test "${ac_cv_prog_CC+set}" = set; then
  3149. echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. else
  3151. if test -n "$CC"; then
  3152. ac_cv_prog_CC="$CC" # Let the user override the test.
  3153. else
  3154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3155. for as_dir in $PATH
  3156. do
  3157. IFS=$as_save_IFS
  3158. test -z "$as_dir" && as_dir=.
  3159. for ac_exec_ext in '' $ac_executable_extensions; do
  3160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3161. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3162. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3163. break 2
  3164. fi
  3165. done
  3166. done
  3167. IFS=$as_save_IFS
  3168. fi
  3169. fi
  3170. CC=$ac_cv_prog_CC
  3171. if test -n "$CC"; then
  3172. { echo "$as_me:$LINENO: result: $CC" >&5
  3173. echo "${ECHO_T}$CC" >&6; }
  3174. else
  3175. { echo "$as_me:$LINENO: result: no" >&5
  3176. echo "${ECHO_T}no" >&6; }
  3177. fi
  3178. fi
  3179. if test -z "$ac_cv_prog_CC"; then
  3180. ac_ct_CC=$CC
  3181. # Extract the first word of "gcc", so it can be a program name with args.
  3182. set dummy gcc; ac_word=$2
  3183. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3185. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3186. echo $ECHO_N "(cached) $ECHO_C" >&6
  3187. else
  3188. if test -n "$ac_ct_CC"; then
  3189. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3190. else
  3191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3192. for as_dir in $PATH
  3193. do
  3194. IFS=$as_save_IFS
  3195. test -z "$as_dir" && as_dir=.
  3196. for ac_exec_ext in '' $ac_executable_extensions; do
  3197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3198. ac_cv_prog_ac_ct_CC="gcc"
  3199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. IFS=$as_save_IFS
  3205. fi
  3206. fi
  3207. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3208. if test -n "$ac_ct_CC"; then
  3209. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3210. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3211. else
  3212. { echo "$as_me:$LINENO: result: no" >&5
  3213. echo "${ECHO_T}no" >&6; }
  3214. fi
  3215. if test "x$ac_ct_CC" = x; then
  3216. CC=""
  3217. else
  3218. case $cross_compiling:$ac_tool_warned in
  3219. yes:)
  3220. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3221. whose name does not start with the host triplet. If you think this
  3222. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3223. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3224. whose name does not start with the host triplet. If you think this
  3225. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3226. ac_tool_warned=yes ;;
  3227. esac
  3228. CC=$ac_ct_CC
  3229. fi
  3230. else
  3231. CC="$ac_cv_prog_CC"
  3232. fi
  3233. if test -z "$CC"; then
  3234. if test -n "$ac_tool_prefix"; then
  3235. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3236. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3237. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3239. if test "${ac_cv_prog_CC+set}" = set; then
  3240. echo $ECHO_N "(cached) $ECHO_C" >&6
  3241. else
  3242. if test -n "$CC"; then
  3243. ac_cv_prog_CC="$CC" # Let the user override the test.
  3244. else
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. test -z "$as_dir" && as_dir=.
  3250. for ac_exec_ext in '' $ac_executable_extensions; do
  3251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3252. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3253. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3254. break 2
  3255. fi
  3256. done
  3257. done
  3258. IFS=$as_save_IFS
  3259. fi
  3260. fi
  3261. CC=$ac_cv_prog_CC
  3262. if test -n "$CC"; then
  3263. { echo "$as_me:$LINENO: result: $CC" >&5
  3264. echo "${ECHO_T}$CC" >&6; }
  3265. else
  3266. { echo "$as_me:$LINENO: result: no" >&5
  3267. echo "${ECHO_T}no" >&6; }
  3268. fi
  3269. fi
  3270. fi
  3271. if test -z "$CC"; then
  3272. # Extract the first word of "cc", so it can be a program name with args.
  3273. set dummy cc; ac_word=$2
  3274. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3275. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3276. if test "${ac_cv_prog_CC+set}" = set; then
  3277. echo $ECHO_N "(cached) $ECHO_C" >&6
  3278. else
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. ac_prog_rejected=no
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_exec_ext in '' $ac_executable_extensions; do
  3289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3290. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3291. ac_prog_rejected=yes
  3292. continue
  3293. fi
  3294. ac_cv_prog_CC="cc"
  3295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3296. break 2
  3297. fi
  3298. done
  3299. done
  3300. IFS=$as_save_IFS
  3301. if test $ac_prog_rejected = yes; then
  3302. # We found a bogon in the path, so make sure we never use it.
  3303. set dummy $ac_cv_prog_CC
  3304. shift
  3305. if test $# != 0; then
  3306. # We chose a different compiler from the bogus one.
  3307. # However, it has the same basename, so the bogon will be chosen
  3308. # first if we set CC to just the basename; use the full file name.
  3309. shift
  3310. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3311. fi
  3312. fi
  3313. fi
  3314. fi
  3315. CC=$ac_cv_prog_CC
  3316. if test -n "$CC"; then
  3317. { echo "$as_me:$LINENO: result: $CC" >&5
  3318. echo "${ECHO_T}$CC" >&6; }
  3319. else
  3320. { echo "$as_me:$LINENO: result: no" >&5
  3321. echo "${ECHO_T}no" >&6; }
  3322. fi
  3323. fi
  3324. if test -z "$CC"; then
  3325. if test -n "$ac_tool_prefix"; then
  3326. for ac_prog in cl.exe
  3327. do
  3328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3332. if test "${ac_cv_prog_CC+set}" = set; then
  3333. echo $ECHO_N "(cached) $ECHO_C" >&6
  3334. else
  3335. if test -n "$CC"; then
  3336. ac_cv_prog_CC="$CC" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3345. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3346. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3347. break 2
  3348. fi
  3349. done
  3350. done
  3351. IFS=$as_save_IFS
  3352. fi
  3353. fi
  3354. CC=$ac_cv_prog_CC
  3355. if test -n "$CC"; then
  3356. { echo "$as_me:$LINENO: result: $CC" >&5
  3357. echo "${ECHO_T}$CC" >&6; }
  3358. else
  3359. { echo "$as_me:$LINENO: result: no" >&5
  3360. echo "${ECHO_T}no" >&6; }
  3361. fi
  3362. test -n "$CC" && break
  3363. done
  3364. fi
  3365. if test -z "$CC"; then
  3366. ac_ct_CC=$CC
  3367. for ac_prog in cl.exe
  3368. do
  3369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3370. set dummy $ac_prog; ac_word=$2
  3371. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3373. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3374. echo $ECHO_N "(cached) $ECHO_C" >&6
  3375. else
  3376. if test -n "$ac_ct_CC"; then
  3377. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3378. else
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. test -z "$as_dir" && as_dir=.
  3384. for ac_exec_ext in '' $ac_executable_extensions; do
  3385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3386. ac_cv_prog_ac_ct_CC="$ac_prog"
  3387. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3388. break 2
  3389. fi
  3390. done
  3391. done
  3392. IFS=$as_save_IFS
  3393. fi
  3394. fi
  3395. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3396. if test -n "$ac_ct_CC"; then
  3397. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3398. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3399. else
  3400. { echo "$as_me:$LINENO: result: no" >&5
  3401. echo "${ECHO_T}no" >&6; }
  3402. fi
  3403. test -n "$ac_ct_CC" && break
  3404. done
  3405. if test "x$ac_ct_CC" = x; then
  3406. CC=""
  3407. else
  3408. case $cross_compiling:$ac_tool_warned in
  3409. yes:)
  3410. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3411. whose name does not start with the host triplet. If you think this
  3412. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3413. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3414. whose name does not start with the host triplet. If you think this
  3415. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3416. ac_tool_warned=yes ;;
  3417. esac
  3418. CC=$ac_ct_CC
  3419. fi
  3420. fi
  3421. fi
  3422. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3423. See \`config.log' for more details." >&5
  3424. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3425. See \`config.log' for more details." >&2;}
  3426. { (exit 1); exit 1; }; }
  3427. # Provide some information about the compiler.
  3428. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3429. ac_compiler=`set X $ac_compile; echo $2`
  3430. { (ac_try="$ac_compiler --version >&5"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436. (eval "$ac_compiler --version >&5") 2>&5
  3437. ac_status=$?
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); }
  3440. { (ac_try="$ac_compiler -v >&5"
  3441. case "(($ac_try" in
  3442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3443. *) ac_try_echo=$ac_try;;
  3444. esac
  3445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3446. (eval "$ac_compiler -v >&5") 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }
  3450. { (ac_try="$ac_compiler -V >&5"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3456. (eval "$ac_compiler -V >&5") 2>&5
  3457. ac_status=$?
  3458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459. (exit $ac_status); }
  3460. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3461. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3462. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3463. echo $ECHO_N "(cached) $ECHO_C" >&6
  3464. else
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. int
  3472. main ()
  3473. {
  3474. #ifndef __GNUC__
  3475. choke me
  3476. #endif
  3477. ;
  3478. return 0;
  3479. }
  3480. _ACEOF
  3481. rm -f conftest.$ac_objext
  3482. if { (ac_try="$ac_compile"
  3483. case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3488. (eval "$ac_compile") 2>conftest.er1
  3489. ac_status=$?
  3490. grep -v '^ *+' conftest.er1 >conftest.err
  3491. rm -f conftest.er1
  3492. cat conftest.err >&5
  3493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3494. (exit $ac_status); } && {
  3495. test -z "$ac_c_werror_flag" ||
  3496. test ! -s conftest.err
  3497. } && test -s conftest.$ac_objext; then
  3498. ac_compiler_gnu=yes
  3499. else
  3500. echo "$as_me: failed program was:" >&5
  3501. sed 's/^/| /' conftest.$ac_ext >&5
  3502. ac_compiler_gnu=no
  3503. fi
  3504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3505. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3506. fi
  3507. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3508. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3509. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3510. ac_test_CFLAGS=${CFLAGS+set}
  3511. ac_save_CFLAGS=$CFLAGS
  3512. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3513. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3514. if test "${ac_cv_prog_cc_g+set}" = set; then
  3515. echo $ECHO_N "(cached) $ECHO_C" >&6
  3516. else
  3517. ac_save_c_werror_flag=$ac_c_werror_flag
  3518. ac_c_werror_flag=yes
  3519. ac_cv_prog_cc_g=no
  3520. CFLAGS="-g"
  3521. cat >conftest.$ac_ext <<_ACEOF
  3522. /* confdefs.h. */
  3523. _ACEOF
  3524. cat confdefs.h >>conftest.$ac_ext
  3525. cat >>conftest.$ac_ext <<_ACEOF
  3526. /* end confdefs.h. */
  3527. int
  3528. main ()
  3529. {
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext
  3535. if { (ac_try="$ac_compile"
  3536. case "(($ac_try" in
  3537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3538. *) ac_try_echo=$ac_try;;
  3539. esac
  3540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3541. (eval "$ac_compile") 2>conftest.er1
  3542. ac_status=$?
  3543. grep -v '^ *+' conftest.er1 >conftest.err
  3544. rm -f conftest.er1
  3545. cat conftest.err >&5
  3546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3547. (exit $ac_status); } && {
  3548. test -z "$ac_c_werror_flag" ||
  3549. test ! -s conftest.err
  3550. } && test -s conftest.$ac_objext; then
  3551. ac_cv_prog_cc_g=yes
  3552. else
  3553. echo "$as_me: failed program was:" >&5
  3554. sed 's/^/| /' conftest.$ac_ext >&5
  3555. CFLAGS=""
  3556. cat >conftest.$ac_ext <<_ACEOF
  3557. /* confdefs.h. */
  3558. _ACEOF
  3559. cat confdefs.h >>conftest.$ac_ext
  3560. cat >>conftest.$ac_ext <<_ACEOF
  3561. /* end confdefs.h. */
  3562. int
  3563. main ()
  3564. {
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. rm -f conftest.$ac_objext
  3570. if { (ac_try="$ac_compile"
  3571. case "(($ac_try" in
  3572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3573. *) ac_try_echo=$ac_try;;
  3574. esac
  3575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3576. (eval "$ac_compile") 2>conftest.er1
  3577. ac_status=$?
  3578. grep -v '^ *+' conftest.er1 >conftest.err
  3579. rm -f conftest.er1
  3580. cat conftest.err >&5
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); } && {
  3583. test -z "$ac_c_werror_flag" ||
  3584. test ! -s conftest.err
  3585. } && test -s conftest.$ac_objext; then
  3586. :
  3587. else
  3588. echo "$as_me: failed program was:" >&5
  3589. sed 's/^/| /' conftest.$ac_ext >&5
  3590. ac_c_werror_flag=$ac_save_c_werror_flag
  3591. CFLAGS="-g"
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. rm -f conftest.$ac_objext
  3606. if { (ac_try="$ac_compile"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3612. (eval "$ac_compile") 2>conftest.er1
  3613. ac_status=$?
  3614. grep -v '^ *+' conftest.er1 >conftest.err
  3615. rm -f conftest.er1
  3616. cat conftest.err >&5
  3617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3618. (exit $ac_status); } && {
  3619. test -z "$ac_c_werror_flag" ||
  3620. test ! -s conftest.err
  3621. } && test -s conftest.$ac_objext; then
  3622. ac_cv_prog_cc_g=yes
  3623. else
  3624. echo "$as_me: failed program was:" >&5
  3625. sed 's/^/| /' conftest.$ac_ext >&5
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. fi
  3629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_c_werror_flag=$ac_save_c_werror_flag
  3633. fi
  3634. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3635. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3636. if test "$ac_test_CFLAGS" = set; then
  3637. CFLAGS=$ac_save_CFLAGS
  3638. elif test $ac_cv_prog_cc_g = yes; then
  3639. if test "$GCC" = yes; then
  3640. CFLAGS="-g -O2"
  3641. else
  3642. CFLAGS="-g"
  3643. fi
  3644. else
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-O2"
  3647. else
  3648. CFLAGS=
  3649. fi
  3650. fi
  3651. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3652. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3653. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. ac_cv_prog_cc_c89=no
  3657. ac_save_CC=$CC
  3658. cat >conftest.$ac_ext <<_ACEOF
  3659. /* confdefs.h. */
  3660. _ACEOF
  3661. cat confdefs.h >>conftest.$ac_ext
  3662. cat >>conftest.$ac_ext <<_ACEOF
  3663. /* end confdefs.h. */
  3664. #include <stdarg.h>
  3665. #include <stdio.h>
  3666. #include <sys/types.h>
  3667. #include <sys/stat.h>
  3668. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3669. struct buf { int x; };
  3670. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3671. static char *e (p, i)
  3672. char **p;
  3673. int i;
  3674. {
  3675. return p[i];
  3676. }
  3677. static char *f (char * (*g) (char **, int), char **p, ...)
  3678. {
  3679. char *s;
  3680. va_list v;
  3681. va_start (v,p);
  3682. s = g (p, va_arg (v,int));
  3683. va_end (v);
  3684. return s;
  3685. }
  3686. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3687. function prototypes and stuff, but not '\xHH' hex character constants.
  3688. These don't provoke an error unfortunately, instead are silently treated
  3689. as 'x'. The following induces an error, until -std is added to get
  3690. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3691. array size at least. It's necessary to write '\x00'==0 to get something
  3692. that's true only with -std. */
  3693. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3694. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3695. inside strings and character constants. */
  3696. #define FOO(x) 'x'
  3697. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3698. int test (int i, double x);
  3699. struct s1 {int (*f) (int a);};
  3700. struct s2 {int (*f) (double a);};
  3701. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3702. int argc;
  3703. char **argv;
  3704. int
  3705. main ()
  3706. {
  3707. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3713. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3714. do
  3715. CC="$ac_save_CC $ac_arg"
  3716. rm -f conftest.$ac_objext
  3717. if { (ac_try="$ac_compile"
  3718. case "(($ac_try" in
  3719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720. *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3723. (eval "$ac_compile") 2>conftest.er1
  3724. ac_status=$?
  3725. grep -v '^ *+' conftest.er1 >conftest.err
  3726. rm -f conftest.er1
  3727. cat conftest.err >&5
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); } && {
  3730. test -z "$ac_c_werror_flag" ||
  3731. test ! -s conftest.err
  3732. } && test -s conftest.$ac_objext; then
  3733. ac_cv_prog_cc_c89=$ac_arg
  3734. else
  3735. echo "$as_me: failed program was:" >&5
  3736. sed 's/^/| /' conftest.$ac_ext >&5
  3737. fi
  3738. rm -f core conftest.err conftest.$ac_objext
  3739. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3740. done
  3741. rm -f conftest.$ac_ext
  3742. CC=$ac_save_CC
  3743. fi
  3744. # AC_CACHE_VAL
  3745. case "x$ac_cv_prog_cc_c89" in
  3746. x)
  3747. { echo "$as_me:$LINENO: result: none needed" >&5
  3748. echo "${ECHO_T}none needed" >&6; } ;;
  3749. xno)
  3750. { echo "$as_me:$LINENO: result: unsupported" >&5
  3751. echo "${ECHO_T}unsupported" >&6; } ;;
  3752. *)
  3753. CC="$CC $ac_cv_prog_cc_c89"
  3754. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3755. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3756. esac
  3757. ac_ext=c
  3758. ac_cpp='$CPP $CPPFLAGS'
  3759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3762. depcc="$CC" am_compiler_list=
  3763. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3764. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3765. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3766. echo $ECHO_N "(cached) $ECHO_C" >&6
  3767. else
  3768. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3769. # We make a subdir and do the tests there. Otherwise we can end up
  3770. # making bogus files that we don't know about and never remove. For
  3771. # instance it was reported that on HP-UX the gcc test will end up
  3772. # making a dummy file named `D' -- because `-MD' means `put the output
  3773. # in D'.
  3774. mkdir conftest.dir
  3775. # Copy depcomp to subdir because otherwise we won't find it if we're
  3776. # using a relative directory.
  3777. cp "$am_depcomp" conftest.dir
  3778. cd conftest.dir
  3779. # We will build objects and dependencies in a subdirectory because
  3780. # it helps to detect inapplicable dependency modes. For instance
  3781. # both Tru64's cc and ICC support -MD to output dependencies as a
  3782. # side effect of compilation, but ICC will put the dependencies in
  3783. # the current directory while Tru64 will put them in the object
  3784. # directory.
  3785. mkdir sub
  3786. am_cv_CC_dependencies_compiler_type=none
  3787. if test "$am_compiler_list" = ""; then
  3788. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3789. fi
  3790. for depmode in $am_compiler_list; do
  3791. # Setup a source with many dependencies, because some compilers
  3792. # like to wrap large dependency lists on column 80 (with \), and
  3793. # we should not choose a depcomp mode which is confused by this.
  3794. #
  3795. # We need to recreate these files for each test, as the compiler may
  3796. # overwrite some of them when testing with obscure command lines.
  3797. # This happens at least with the AIX C compiler.
  3798. : > sub/conftest.c
  3799. for i in 1 2 3 4 5 6; do
  3800. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3801. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3802. # Solaris 8's {/usr,}/bin/sh.
  3803. touch sub/conftst$i.h
  3804. done
  3805. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3806. case $depmode in
  3807. nosideeffect)
  3808. # after this tag, mechanisms are not by side-effect, so they'll
  3809. # only be used when explicitly requested
  3810. if test "x$enable_dependency_tracking" = xyes; then
  3811. continue
  3812. else
  3813. break
  3814. fi
  3815. ;;
  3816. none) break ;;
  3817. esac
  3818. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3819. # mode. It turns out that the SunPro C++ compiler does not properly
  3820. # handle `-M -o', and we need to detect this.
  3821. if depmode=$depmode \
  3822. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3823. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3824. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3825. >/dev/null 2>conftest.err &&
  3826. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3827. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3828. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3829. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3830. # icc doesn't choke on unknown options, it will just issue warnings
  3831. # or remarks (even with -Werror). So we grep stderr for any message
  3832. # that says an option was ignored or not supported.
  3833. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3834. # icc: Command line warning: ignoring option '-M'; no argument required
  3835. # The diagnosis changed in icc 8.0:
  3836. # icc: Command line remark: option '-MP' not supported
  3837. if (grep 'ignoring option' conftest.err ||
  3838. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3839. am_cv_CC_dependencies_compiler_type=$depmode
  3840. break
  3841. fi
  3842. fi
  3843. done
  3844. cd ..
  3845. rm -rf conftest.dir
  3846. else
  3847. am_cv_CC_dependencies_compiler_type=none
  3848. fi
  3849. fi
  3850. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3851. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3852. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3853. if
  3854. test "x$enable_dependency_tracking" != xno \
  3855. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3856. am__fastdepCC_TRUE=
  3857. am__fastdepCC_FALSE='#'
  3858. else
  3859. am__fastdepCC_TRUE='#'
  3860. am__fastdepCC_FALSE=
  3861. fi
  3862. # Find a good install program. We prefer a C program (faster),
  3863. # so one script is as good as another. But avoid the broken or
  3864. # incompatible versions:
  3865. # SysV /etc/install, /usr/sbin/install
  3866. # SunOS /usr/etc/install
  3867. # IRIX /sbin/install
  3868. # AIX /bin/install
  3869. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3870. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3871. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3872. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3873. # OS/2's system install, which has a completely different semantic
  3874. # ./install, which can be erroneously created by make from ./install.sh.
  3875. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3876. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3877. if test -z "$INSTALL"; then
  3878. if test "${ac_cv_path_install+set}" = set; then
  3879. echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. # Account for people who put trailing slashes in PATH elements.
  3887. case $as_dir/ in
  3888. ./ | .// | /cC/* | \
  3889. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3890. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3891. /usr/ucb/* ) ;;
  3892. *)
  3893. # OSF1 and SCO ODT 3.0 have their own names for install.
  3894. # Don't use installbsd from OSF since it installs stuff as root
  3895. # by default.
  3896. for ac_prog in ginstall scoinst install; do
  3897. for ac_exec_ext in '' $ac_executable_extensions; do
  3898. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3899. if test $ac_prog = install &&
  3900. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3901. # AIX install. It has an incompatible calling convention.
  3902. :
  3903. elif test $ac_prog = install &&
  3904. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3905. # program-specific install script used by HP pwplus--don't use.
  3906. :
  3907. else
  3908. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3909. break 3
  3910. fi
  3911. fi
  3912. done
  3913. done
  3914. ;;
  3915. esac
  3916. done
  3917. IFS=$as_save_IFS
  3918. fi
  3919. if test "${ac_cv_path_install+set}" = set; then
  3920. INSTALL=$ac_cv_path_install
  3921. else
  3922. # As a last resort, use the slow shell script. Don't cache a
  3923. # value for INSTALL within a source directory, because that will
  3924. # break other packages using the cache if that directory is
  3925. # removed, or if the value is a relative name.
  3926. INSTALL=$ac_install_sh
  3927. fi
  3928. fi
  3929. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3930. echo "${ECHO_T}$INSTALL" >&6; }
  3931. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3932. # It thinks the first close brace ends the variable substitution.
  3933. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3934. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3935. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3936. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3937. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3938. if test -z "$MKDIR_P"; then
  3939. if test "${ac_cv_path_mkdir+set}" = set; then
  3940. echo $ECHO_N "(cached) $ECHO_C" >&6
  3941. else
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_prog in mkdir gmkdir; do
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3950. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3951. 'mkdir (GNU coreutils) '* | \
  3952. 'mkdir (coreutils) '* | \
  3953. 'mkdir (fileutils) '4.1*)
  3954. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3955. break 3;;
  3956. esac
  3957. done
  3958. done
  3959. done
  3960. IFS=$as_save_IFS
  3961. fi
  3962. if test "${ac_cv_path_mkdir+set}" = set; then
  3963. MKDIR_P="$ac_cv_path_mkdir -p"
  3964. else
  3965. # As a last resort, use the slow shell script. Don't cache a
  3966. # value for MKDIR_P within a source directory, because that will
  3967. # break other packages using the cache if that directory is
  3968. # removed, or if the value is a relative name.
  3969. test -d ./--version && rmdir ./--version
  3970. MKDIR_P="$ac_install_sh -d"
  3971. fi
  3972. fi
  3973. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3974. echo "${ECHO_T}$MKDIR_P" >&6; }
  3975. if test -n "$ac_tool_prefix"; then
  3976. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3977. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3978. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3980. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3981. echo $ECHO_N "(cached) $ECHO_C" >&6
  3982. else
  3983. if test -n "$RANLIB"; then
  3984. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3993. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995. break 2
  3996. fi
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. fi
  4001. fi
  4002. RANLIB=$ac_cv_prog_RANLIB
  4003. if test -n "$RANLIB"; then
  4004. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4005. echo "${ECHO_T}$RANLIB" >&6; }
  4006. else
  4007. { echo "$as_me:$LINENO: result: no" >&5
  4008. echo "${ECHO_T}no" >&6; }
  4009. fi
  4010. fi
  4011. if test -z "$ac_cv_prog_RANLIB"; then
  4012. ac_ct_RANLIB=$RANLIB
  4013. # Extract the first word of "ranlib", so it can be a program name with args.
  4014. set dummy ranlib; ac_word=$2
  4015. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4017. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4018. echo $ECHO_N "(cached) $ECHO_C" >&6
  4019. else
  4020. if test -n "$ac_ct_RANLIB"; then
  4021. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4022. else
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_exec_ext in '' $ac_executable_extensions; do
  4029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4030. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4032. break 2
  4033. fi
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. fi
  4038. fi
  4039. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4040. if test -n "$ac_ct_RANLIB"; then
  4041. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4042. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4043. else
  4044. { echo "$as_me:$LINENO: result: no" >&5
  4045. echo "${ECHO_T}no" >&6; }
  4046. fi
  4047. if test "x$ac_ct_RANLIB" = x; then
  4048. RANLIB=":"
  4049. else
  4050. case $cross_compiling:$ac_tool_warned in
  4051. yes:)
  4052. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4053. whose name does not start with the host triplet. If you think this
  4054. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4055. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4056. whose name does not start with the host triplet. If you think this
  4057. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. RANLIB=$ac_ct_RANLIB
  4061. fi
  4062. else
  4063. RANLIB="$ac_cv_prog_RANLIB"
  4064. fi
  4065. for ac_prog in 'bison -y' byacc
  4066. do
  4067. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4068. set dummy $ac_prog; ac_word=$2
  4069. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4070. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4071. if test "${ac_cv_prog_YACC+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. if test -n "$YACC"; then
  4075. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4084. ac_cv_prog_YACC="$ac_prog"
  4085. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. YACC=$ac_cv_prog_YACC
  4094. if test -n "$YACC"; then
  4095. { echo "$as_me:$LINENO: result: $YACC" >&5
  4096. echo "${ECHO_T}$YACC" >&6; }
  4097. else
  4098. { echo "$as_me:$LINENO: result: no" >&5
  4099. echo "${ECHO_T}no" >&6; }
  4100. fi
  4101. test -n "$YACC" && break
  4102. done
  4103. test -n "$YACC" || YACC="yacc"
  4104. # Setting language choice
  4105. ac_ext=cpp
  4106. ac_cpp='$CXXCPP $CPPFLAGS'
  4107. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4110. # Check for GNU library
  4111. cat >>confdefs.h <<\_ACEOF
  4112. #define _GNU_SOURCE 1
  4113. _ACEOF
  4114. # Enable system extensions
  4115. ac_ext=cpp
  4116. ac_cpp='$CXXCPP $CPPFLAGS'
  4117. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4118. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4119. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4120. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4121. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4122. if test -z "$CXXCPP"; then
  4123. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. else
  4126. # Double quotes because CXXCPP needs to be expanded
  4127. for CXXCPP in "$CXX -E" "/lib/cpp"
  4128. do
  4129. ac_preproc_ok=false
  4130. for ac_cxx_preproc_warn_flag in '' yes
  4131. do
  4132. # Use a header file that comes with gcc, so configuring glibc
  4133. # with a fresh cross-compiler works.
  4134. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4135. # <limits.h> exists even on freestanding compilers.
  4136. # On the NeXT, cc -E runs the code through the compiler's parser,
  4137. # not just through cpp. "Syntax error" is here to catch this case.
  4138. cat >conftest.$ac_ext <<_ACEOF
  4139. /* confdefs.h. */
  4140. _ACEOF
  4141. cat confdefs.h >>conftest.$ac_ext
  4142. cat >>conftest.$ac_ext <<_ACEOF
  4143. /* end confdefs.h. */
  4144. #ifdef __STDC__
  4145. # include <limits.h>
  4146. #else
  4147. # include <assert.h>
  4148. #endif
  4149. Syntax error
  4150. _ACEOF
  4151. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4152. case "(($ac_try" in
  4153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. *) ac_try_echo=$ac_try;;
  4155. esac
  4156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4157. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4158. ac_status=$?
  4159. grep -v '^ *+' conftest.er1 >conftest.err
  4160. rm -f conftest.er1
  4161. cat conftest.err >&5
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); } >/dev/null && {
  4164. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4165. test ! -s conftest.err
  4166. }; then
  4167. :
  4168. else
  4169. echo "$as_me: failed program was:" >&5
  4170. sed 's/^/| /' conftest.$ac_ext >&5
  4171. # Broken: fails on valid input.
  4172. continue
  4173. fi
  4174. rm -f conftest.err conftest.$ac_ext
  4175. # OK, works on sane cases. Now check whether nonexistent headers
  4176. # can be detected and how.
  4177. cat >conftest.$ac_ext <<_ACEOF
  4178. /* confdefs.h. */
  4179. _ACEOF
  4180. cat confdefs.h >>conftest.$ac_ext
  4181. cat >>conftest.$ac_ext <<_ACEOF
  4182. /* end confdefs.h. */
  4183. #include <ac_nonexistent.h>
  4184. _ACEOF
  4185. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4186. case "(($ac_try" in
  4187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4188. *) ac_try_echo=$ac_try;;
  4189. esac
  4190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4191. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4192. ac_status=$?
  4193. grep -v '^ *+' conftest.er1 >conftest.err
  4194. rm -f conftest.er1
  4195. cat conftest.err >&5
  4196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4197. (exit $ac_status); } >/dev/null && {
  4198. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4199. test ! -s conftest.err
  4200. }; then
  4201. # Broken: success on invalid input.
  4202. continue
  4203. else
  4204. echo "$as_me: failed program was:" >&5
  4205. sed 's/^/| /' conftest.$ac_ext >&5
  4206. # Passes both tests.
  4207. ac_preproc_ok=:
  4208. break
  4209. fi
  4210. rm -f conftest.err conftest.$ac_ext
  4211. done
  4212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4213. rm -f conftest.err conftest.$ac_ext
  4214. if $ac_preproc_ok; then
  4215. break
  4216. fi
  4217. done
  4218. ac_cv_prog_CXXCPP=$CXXCPP
  4219. fi
  4220. CXXCPP=$ac_cv_prog_CXXCPP
  4221. else
  4222. ac_cv_prog_CXXCPP=$CXXCPP
  4223. fi
  4224. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4225. echo "${ECHO_T}$CXXCPP" >&6; }
  4226. ac_preproc_ok=false
  4227. for ac_cxx_preproc_warn_flag in '' yes
  4228. do
  4229. # Use a header file that comes with gcc, so configuring glibc
  4230. # with a fresh cross-compiler works.
  4231. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4232. # <limits.h> exists even on freestanding compilers.
  4233. # On the NeXT, cc -E runs the code through the compiler's parser,
  4234. # not just through cpp. "Syntax error" is here to catch this case.
  4235. cat >conftest.$ac_ext <<_ACEOF
  4236. /* confdefs.h. */
  4237. _ACEOF
  4238. cat confdefs.h >>conftest.$ac_ext
  4239. cat >>conftest.$ac_ext <<_ACEOF
  4240. /* end confdefs.h. */
  4241. #ifdef __STDC__
  4242. # include <limits.h>
  4243. #else
  4244. # include <assert.h>
  4245. #endif
  4246. Syntax error
  4247. _ACEOF
  4248. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4249. case "(($ac_try" in
  4250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4251. *) ac_try_echo=$ac_try;;
  4252. esac
  4253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4254. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4255. ac_status=$?
  4256. grep -v '^ *+' conftest.er1 >conftest.err
  4257. rm -f conftest.er1
  4258. cat conftest.err >&5
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); } >/dev/null && {
  4261. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4262. test ! -s conftest.err
  4263. }; then
  4264. :
  4265. else
  4266. echo "$as_me: failed program was:" >&5
  4267. sed 's/^/| /' conftest.$ac_ext >&5
  4268. # Broken: fails on valid input.
  4269. continue
  4270. fi
  4271. rm -f conftest.err conftest.$ac_ext
  4272. # OK, works on sane cases. Now check whether nonexistent headers
  4273. # can be detected and how.
  4274. cat >conftest.$ac_ext <<_ACEOF
  4275. /* confdefs.h. */
  4276. _ACEOF
  4277. cat confdefs.h >>conftest.$ac_ext
  4278. cat >>conftest.$ac_ext <<_ACEOF
  4279. /* end confdefs.h. */
  4280. #include <ac_nonexistent.h>
  4281. _ACEOF
  4282. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4283. case "(($ac_try" in
  4284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4285. *) ac_try_echo=$ac_try;;
  4286. esac
  4287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4288. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4289. ac_status=$?
  4290. grep -v '^ *+' conftest.er1 >conftest.err
  4291. rm -f conftest.er1
  4292. cat conftest.err >&5
  4293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4294. (exit $ac_status); } >/dev/null && {
  4295. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4296. test ! -s conftest.err
  4297. }; then
  4298. # Broken: success on invalid input.
  4299. continue
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. # Passes both tests.
  4304. ac_preproc_ok=:
  4305. break
  4306. fi
  4307. rm -f conftest.err conftest.$ac_ext
  4308. done
  4309. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4310. rm -f conftest.err conftest.$ac_ext
  4311. if $ac_preproc_ok; then
  4312. :
  4313. else
  4314. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4315. See \`config.log' for more details." >&5
  4316. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4317. See \`config.log' for more details." >&2;}
  4318. { (exit 1); exit 1; }; }
  4319. fi
  4320. ac_ext=cpp
  4321. ac_cpp='$CXXCPP $CPPFLAGS'
  4322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4325. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4326. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4327. if test "${ac_cv_path_GREP+set}" = set; then
  4328. echo $ECHO_N "(cached) $ECHO_C" >&6
  4329. else
  4330. # Extract the first word of "grep ggrep" to use in msg output
  4331. if test -z "$GREP"; then
  4332. set dummy grep ggrep; ac_prog_name=$2
  4333. if test "${ac_cv_path_GREP+set}" = set; then
  4334. echo $ECHO_N "(cached) $ECHO_C" >&6
  4335. else
  4336. ac_path_GREP_found=false
  4337. # Loop through the user's path and test for each of PROGNAME-LIST
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_prog in grep ggrep; do
  4344. for ac_exec_ext in '' $ac_executable_extensions; do
  4345. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4346. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4347. # Check for GNU ac_path_GREP and select it if it is found.
  4348. # Check for GNU $ac_path_GREP
  4349. case `"$ac_path_GREP" --version 2>&1` in
  4350. *GNU*)
  4351. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4352. *)
  4353. ac_count=0
  4354. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4355. while :
  4356. do
  4357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4358. mv "conftest.tmp" "conftest.in"
  4359. cp "conftest.in" "conftest.nl"
  4360. echo 'GREP' >> "conftest.nl"
  4361. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4363. ac_count=`expr $ac_count + 1`
  4364. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4365. # Best one so far, save it but keep looking for a better one
  4366. ac_cv_path_GREP="$ac_path_GREP"
  4367. ac_path_GREP_max=$ac_count
  4368. fi
  4369. # 10*(2^10) chars as input seems more than enough
  4370. test $ac_count -gt 10 && break
  4371. done
  4372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4373. esac
  4374. $ac_path_GREP_found && break 3
  4375. done
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. GREP="$ac_cv_path_GREP"
  4381. if test -z "$GREP"; then
  4382. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4383. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4384. { (exit 1); exit 1; }; }
  4385. fi
  4386. else
  4387. ac_cv_path_GREP=$GREP
  4388. fi
  4389. fi
  4390. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4391. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4392. GREP="$ac_cv_path_GREP"
  4393. { echo "$as_me:$LINENO: checking for egrep" >&5
  4394. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4395. if test "${ac_cv_path_EGREP+set}" = set; then
  4396. echo $ECHO_N "(cached) $ECHO_C" >&6
  4397. else
  4398. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4399. then ac_cv_path_EGREP="$GREP -E"
  4400. else
  4401. # Extract the first word of "egrep" to use in msg output
  4402. if test -z "$EGREP"; then
  4403. set dummy egrep; ac_prog_name=$2
  4404. if test "${ac_cv_path_EGREP+set}" = set; then
  4405. echo $ECHO_N "(cached) $ECHO_C" >&6
  4406. else
  4407. ac_path_EGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. test -z "$as_dir" && as_dir=.
  4414. for ac_prog in egrep; do
  4415. for ac_exec_ext in '' $ac_executable_extensions; do
  4416. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4417. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4418. # Check for GNU ac_path_EGREP and select it if it is found.
  4419. # Check for GNU $ac_path_EGREP
  4420. case `"$ac_path_EGREP" --version 2>&1` in
  4421. *GNU*)
  4422. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4423. *)
  4424. ac_count=0
  4425. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4426. while :
  4427. do
  4428. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4429. mv "conftest.tmp" "conftest.in"
  4430. cp "conftest.in" "conftest.nl"
  4431. echo 'EGREP' >> "conftest.nl"
  4432. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4433. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4434. ac_count=`expr $ac_count + 1`
  4435. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4436. # Best one so far, save it but keep looking for a better one
  4437. ac_cv_path_EGREP="$ac_path_EGREP"
  4438. ac_path_EGREP_max=$ac_count
  4439. fi
  4440. # 10*(2^10) chars as input seems more than enough
  4441. test $ac_count -gt 10 && break
  4442. done
  4443. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4444. esac
  4445. $ac_path_EGREP_found && break 3
  4446. done
  4447. done
  4448. done
  4449. IFS=$as_save_IFS
  4450. fi
  4451. EGREP="$ac_cv_path_EGREP"
  4452. if test -z "$EGREP"; then
  4453. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4454. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4455. { (exit 1); exit 1; }; }
  4456. fi
  4457. else
  4458. ac_cv_path_EGREP=$EGREP
  4459. fi
  4460. fi
  4461. fi
  4462. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4463. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4464. EGREP="$ac_cv_path_EGREP"
  4465. { echo "$as_me:$LINENO: checking for AIX" >&5
  4466. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4467. cat >conftest.$ac_ext <<_ACEOF
  4468. /* confdefs.h. */
  4469. _ACEOF
  4470. cat confdefs.h >>conftest.$ac_ext
  4471. cat >>conftest.$ac_ext <<_ACEOF
  4472. /* end confdefs.h. */
  4473. #ifdef _AIX
  4474. yes
  4475. #endif
  4476. _ACEOF
  4477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4478. $EGREP "yes" >/dev/null 2>&1; then
  4479. { echo "$as_me:$LINENO: result: yes" >&5
  4480. echo "${ECHO_T}yes" >&6; }
  4481. cat >>confdefs.h <<\_ACEOF
  4482. #define _ALL_SOURCE 1
  4483. _ACEOF
  4484. else
  4485. { echo "$as_me:$LINENO: result: no" >&5
  4486. echo "${ECHO_T}no" >&6; }
  4487. fi
  4488. rm -f conftest*
  4489. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4490. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4491. if test "${ac_cv_header_stdc+set}" = set; then
  4492. echo $ECHO_N "(cached) $ECHO_C" >&6
  4493. else
  4494. cat >conftest.$ac_ext <<_ACEOF
  4495. /* confdefs.h. */
  4496. _ACEOF
  4497. cat confdefs.h >>conftest.$ac_ext
  4498. cat >>conftest.$ac_ext <<_ACEOF
  4499. /* end confdefs.h. */
  4500. #include <stdlib.h>
  4501. #include <stdarg.h>
  4502. #include <string.h>
  4503. #include <float.h>
  4504. int
  4505. main ()
  4506. {
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. rm -f conftest.$ac_objext
  4512. if { (ac_try="$ac_compile"
  4513. case "(($ac_try" in
  4514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4515. *) ac_try_echo=$ac_try;;
  4516. esac
  4517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4518. (eval "$ac_compile") 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } && {
  4525. test -z "$ac_cxx_werror_flag" ||
  4526. test ! -s conftest.err
  4527. } && test -s conftest.$ac_objext; then
  4528. ac_cv_header_stdc=yes
  4529. else
  4530. echo "$as_me: failed program was:" >&5
  4531. sed 's/^/| /' conftest.$ac_ext >&5
  4532. ac_cv_header_stdc=no
  4533. fi
  4534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4535. if test $ac_cv_header_stdc = yes; then
  4536. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4537. cat >conftest.$ac_ext <<_ACEOF
  4538. /* confdefs.h. */
  4539. _ACEOF
  4540. cat confdefs.h >>conftest.$ac_ext
  4541. cat >>conftest.$ac_ext <<_ACEOF
  4542. /* end confdefs.h. */
  4543. #include <string.h>
  4544. _ACEOF
  4545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4546. $EGREP "memchr" >/dev/null 2>&1; then
  4547. :
  4548. else
  4549. ac_cv_header_stdc=no
  4550. fi
  4551. rm -f conftest*
  4552. fi
  4553. if test $ac_cv_header_stdc = yes; then
  4554. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4555. cat >conftest.$ac_ext <<_ACEOF
  4556. /* confdefs.h. */
  4557. _ACEOF
  4558. cat confdefs.h >>conftest.$ac_ext
  4559. cat >>conftest.$ac_ext <<_ACEOF
  4560. /* end confdefs.h. */
  4561. #include <stdlib.h>
  4562. _ACEOF
  4563. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4564. $EGREP "free" >/dev/null 2>&1; then
  4565. :
  4566. else
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f conftest*
  4570. fi
  4571. if test $ac_cv_header_stdc = yes; then
  4572. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4573. if test "$cross_compiling" = yes; then
  4574. :
  4575. else
  4576. cat >conftest.$ac_ext <<_ACEOF
  4577. /* confdefs.h. */
  4578. _ACEOF
  4579. cat confdefs.h >>conftest.$ac_ext
  4580. cat >>conftest.$ac_ext <<_ACEOF
  4581. /* end confdefs.h. */
  4582. #include <ctype.h>
  4583. #include <stdlib.h>
  4584. #if ((' ' & 0x0FF) == 0x020)
  4585. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4586. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4587. #else
  4588. # define ISLOWER(c) \
  4589. (('a' <= (c) && (c) <= 'i') \
  4590. || ('j' <= (c) && (c) <= 'r') \
  4591. || ('s' <= (c) && (c) <= 'z'))
  4592. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4593. #endif
  4594. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4595. int
  4596. main ()
  4597. {
  4598. int i;
  4599. for (i = 0; i < 256; i++)
  4600. if (XOR (islower (i), ISLOWER (i))
  4601. || toupper (i) != TOUPPER (i))
  4602. return 2;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. rm -f conftest$ac_exeext
  4607. if { (ac_try="$ac_link"
  4608. case "(($ac_try" in
  4609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4610. *) ac_try_echo=$ac_try;;
  4611. esac
  4612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4613. (eval "$ac_link") 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4617. { (case "(($ac_try" in
  4618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4619. *) ac_try_echo=$ac_try;;
  4620. esac
  4621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4622. (eval "$ac_try") 2>&5
  4623. ac_status=$?
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); }; }; then
  4626. :
  4627. else
  4628. echo "$as_me: program exited with status $ac_status" >&5
  4629. echo "$as_me: failed program was:" >&5
  4630. sed 's/^/| /' conftest.$ac_ext >&5
  4631. ( exit $ac_status )
  4632. ac_cv_header_stdc=no
  4633. fi
  4634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4635. fi
  4636. fi
  4637. fi
  4638. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4639. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4640. if test $ac_cv_header_stdc = yes; then
  4641. cat >>confdefs.h <<\_ACEOF
  4642. #define STDC_HEADERS 1
  4643. _ACEOF
  4644. fi
  4645. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4646. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4647. inttypes.h stdint.h unistd.h
  4648. do
  4649. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4650. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4651. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4652. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4653. echo $ECHO_N "(cached) $ECHO_C" >&6
  4654. else
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. $ac_includes_default
  4662. #include <$ac_header>
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext
  4665. if { (ac_try="$ac_compile"
  4666. case "(($ac_try" in
  4667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4668. *) ac_try_echo=$ac_try;;
  4669. esac
  4670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4671. (eval "$ac_compile") 2>conftest.er1
  4672. ac_status=$?
  4673. grep -v '^ *+' conftest.er1 >conftest.err
  4674. rm -f conftest.er1
  4675. cat conftest.err >&5
  4676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); } && {
  4678. test -z "$ac_cxx_werror_flag" ||
  4679. test ! -s conftest.err
  4680. } && test -s conftest.$ac_objext; then
  4681. eval "$as_ac_Header=yes"
  4682. else
  4683. echo "$as_me: failed program was:" >&5
  4684. sed 's/^/| /' conftest.$ac_ext >&5
  4685. eval "$as_ac_Header=no"
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. ac_res=`eval echo '${'$as_ac_Header'}'`
  4690. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4691. echo "${ECHO_T}$ac_res" >&6; }
  4692. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4693. cat >>confdefs.h <<_ACEOF
  4694. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4695. _ACEOF
  4696. fi
  4697. done
  4698. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4699. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4700. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4701. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4702. echo $ECHO_N "(cached) $ECHO_C" >&6
  4703. fi
  4704. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4705. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4706. else
  4707. # Is the header compilable?
  4708. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4709. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4710. cat >conftest.$ac_ext <<_ACEOF
  4711. /* confdefs.h. */
  4712. _ACEOF
  4713. cat confdefs.h >>conftest.$ac_ext
  4714. cat >>conftest.$ac_ext <<_ACEOF
  4715. /* end confdefs.h. */
  4716. $ac_includes_default
  4717. #include <minix/config.h>
  4718. _ACEOF
  4719. rm -f conftest.$ac_objext
  4720. if { (ac_try="$ac_compile"
  4721. case "(($ac_try" in
  4722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4723. *) ac_try_echo=$ac_try;;
  4724. esac
  4725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4726. (eval "$ac_compile") 2>conftest.er1
  4727. ac_status=$?
  4728. grep -v '^ *+' conftest.er1 >conftest.err
  4729. rm -f conftest.er1
  4730. cat conftest.err >&5
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); } && {
  4733. test -z "$ac_cxx_werror_flag" ||
  4734. test ! -s conftest.err
  4735. } && test -s conftest.$ac_objext; then
  4736. ac_header_compiler=yes
  4737. else
  4738. echo "$as_me: failed program was:" >&5
  4739. sed 's/^/| /' conftest.$ac_ext >&5
  4740. ac_header_compiler=no
  4741. fi
  4742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4743. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4744. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4745. # Is the header present?
  4746. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4747. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4748. cat >conftest.$ac_ext <<_ACEOF
  4749. /* confdefs.h. */
  4750. _ACEOF
  4751. cat confdefs.h >>conftest.$ac_ext
  4752. cat >>conftest.$ac_ext <<_ACEOF
  4753. /* end confdefs.h. */
  4754. #include <minix/config.h>
  4755. _ACEOF
  4756. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4757. case "(($ac_try" in
  4758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4759. *) ac_try_echo=$ac_try;;
  4760. esac
  4761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4763. ac_status=$?
  4764. grep -v '^ *+' conftest.er1 >conftest.err
  4765. rm -f conftest.er1
  4766. cat conftest.err >&5
  4767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768. (exit $ac_status); } >/dev/null && {
  4769. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4770. test ! -s conftest.err
  4771. }; then
  4772. ac_header_preproc=yes
  4773. else
  4774. echo "$as_me: failed program was:" >&5
  4775. sed 's/^/| /' conftest.$ac_ext >&5
  4776. ac_header_preproc=no
  4777. fi
  4778. rm -f conftest.err conftest.$ac_ext
  4779. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4780. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4781. # So? What about this header?
  4782. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4783. yes:no: )
  4784. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4785. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4786. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4787. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4788. ac_header_preproc=yes
  4789. ;;
  4790. no:yes:* )
  4791. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4792. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4793. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4794. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4796. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4798. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4800. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4802. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4803. ( cat <<\_ASBOX
  4804. ## ----------------------------------------------- ##
  4805. ## Report this to t-tujikawa@users.sourceforge.net ##
  4806. ## ----------------------------------------------- ##
  4807. _ASBOX
  4808. ) | sed "s/^/$as_me: WARNING: /" >&2
  4809. ;;
  4810. esac
  4811. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4812. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4813. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4814. echo $ECHO_N "(cached) $ECHO_C" >&6
  4815. else
  4816. ac_cv_header_minix_config_h=$ac_header_preproc
  4817. fi
  4818. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4819. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4820. fi
  4821. if test $ac_cv_header_minix_config_h = yes; then
  4822. MINIX=yes
  4823. else
  4824. MINIX=
  4825. fi
  4826. if test "$MINIX" = yes; then
  4827. cat >>confdefs.h <<\_ACEOF
  4828. #define _POSIX_SOURCE 1
  4829. _ACEOF
  4830. cat >>confdefs.h <<\_ACEOF
  4831. #define _POSIX_1_SOURCE 2
  4832. _ACEOF
  4833. cat >>confdefs.h <<\_ACEOF
  4834. #define _MINIX 1
  4835. _ACEOF
  4836. fi
  4837. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4838. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4839. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4840. echo $ECHO_N "(cached) $ECHO_C" >&6
  4841. else
  4842. cat >conftest.$ac_ext <<_ACEOF
  4843. /* confdefs.h. */
  4844. _ACEOF
  4845. cat confdefs.h >>conftest.$ac_ext
  4846. cat >>conftest.$ac_ext <<_ACEOF
  4847. /* end confdefs.h. */
  4848. # define __EXTENSIONS__ 1
  4849. $ac_includes_default
  4850. int
  4851. main ()
  4852. {
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. rm -f conftest.$ac_objext
  4858. if { (ac_try="$ac_compile"
  4859. case "(($ac_try" in
  4860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4861. *) ac_try_echo=$ac_try;;
  4862. esac
  4863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4864. (eval "$ac_compile") 2>conftest.er1
  4865. ac_status=$?
  4866. grep -v '^ *+' conftest.er1 >conftest.err
  4867. rm -f conftest.er1
  4868. cat conftest.err >&5
  4869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4870. (exit $ac_status); } && {
  4871. test -z "$ac_cxx_werror_flag" ||
  4872. test ! -s conftest.err
  4873. } && test -s conftest.$ac_objext; then
  4874. ac_cv_safe_to_define___extensions__=yes
  4875. else
  4876. echo "$as_me: failed program was:" >&5
  4877. sed 's/^/| /' conftest.$ac_ext >&5
  4878. ac_cv_safe_to_define___extensions__=no
  4879. fi
  4880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4881. fi
  4882. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4883. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4884. test $ac_cv_safe_to_define___extensions__ = yes &&
  4885. cat >>confdefs.h <<\_ACEOF
  4886. #define __EXTENSIONS__ 1
  4887. _ACEOF
  4888. cat >>confdefs.h <<\_ACEOF
  4889. #define _POSIX_PTHREAD_SEMANTICS 1
  4890. _ACEOF
  4891. cat >>confdefs.h <<\_ACEOF
  4892. #define _TANDEM_SOURCE 1
  4893. _ACEOF
  4894. # Checks for libraries.
  4895. if test "x$with_libxml2" = "xyes"; then
  4896. # Check whether --with-xml-prefix was given.
  4897. if test "${with_xml_prefix+set}" = set; then
  4898. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4899. else
  4900. xml_config_prefix=""
  4901. fi
  4902. # Check whether --with-xml-exec-prefix was given.
  4903. if test "${with_xml_exec_prefix+set}" = set; then
  4904. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4905. else
  4906. xml_config_exec_prefix=""
  4907. fi
  4908. # Check whether --enable-xmltest was given.
  4909. if test "${enable_xmltest+set}" = set; then
  4910. enableval=$enable_xmltest;
  4911. else
  4912. enable_xmltest=yes
  4913. fi
  4914. if test x$xml_config_exec_prefix != x ; then
  4915. xml_config_args="$xml_config_args"
  4916. if test x${XML2_CONFIG+set} != xset ; then
  4917. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4918. fi
  4919. fi
  4920. if test x$xml_config_prefix != x ; then
  4921. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4922. if test x${XML2_CONFIG+set} != xset ; then
  4923. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4924. fi
  4925. fi
  4926. # Extract the first word of "xml2-config", so it can be a program name with args.
  4927. set dummy xml2-config; ac_word=$2
  4928. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4929. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4930. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4931. echo $ECHO_N "(cached) $ECHO_C" >&6
  4932. else
  4933. case $XML2_CONFIG in
  4934. [\\/]* | ?:[\\/]*)
  4935. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4936. ;;
  4937. *)
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4945. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4946. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4953. ;;
  4954. esac
  4955. fi
  4956. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4957. if test -n "$XML2_CONFIG"; then
  4958. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4959. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4960. else
  4961. { echo "$as_me:$LINENO: result: no" >&5
  4962. echo "${ECHO_T}no" >&6; }
  4963. fi
  4964. min_xml_version=2.6.24
  4965. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4966. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4967. no_xml=""
  4968. if test "$XML2_CONFIG" = "no" ; then
  4969. no_xml=yes
  4970. else
  4971. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4972. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4973. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4974. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4975. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4976. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4977. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4978. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4979. if test "x$enable_xmltest" = "xyes" ; then
  4980. ac_save_CPPFLAGS="$CPPFLAGS"
  4981. ac_save_LIBS="$LIBS"
  4982. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4983. LIBS="$XML_LIBS $LIBS"
  4984. rm -f conf.xmltest
  4985. if test "$cross_compiling" = yes; then
  4986. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4987. else
  4988. cat >conftest.$ac_ext <<_ACEOF
  4989. /* confdefs.h. */
  4990. _ACEOF
  4991. cat confdefs.h >>conftest.$ac_ext
  4992. cat >>conftest.$ac_ext <<_ACEOF
  4993. /* end confdefs.h. */
  4994. #include <stdlib.h>
  4995. #include <stdio.h>
  4996. #include <string.h>
  4997. #include <libxml/xmlversion.h>
  4998. int
  4999. main()
  5000. {
  5001. int xml_major_version, xml_minor_version, xml_micro_version;
  5002. int major, minor, micro;
  5003. char *tmp_version;
  5004. system("touch conf.xmltest");
  5005. /* Capture xml2-config output via autoconf/configure variables */
  5006. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5007. tmp_version = (char *)strdup("$min_xml_version");
  5008. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5009. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5010. exit(1);
  5011. }
  5012. free(tmp_version);
  5013. /* Capture the version information from the header files */
  5014. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5015. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5016. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5017. exit(1);
  5018. }
  5019. free(tmp_version);
  5020. /* Compare xml2-config output to the libxml headers */
  5021. if ((xml_major_version != $xml_config_major_version) ||
  5022. (xml_minor_version != $xml_config_minor_version) ||
  5023. (xml_micro_version != $xml_config_micro_version))
  5024. {
  5025. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5026. xml_major_version, xml_minor_version, xml_micro_version);
  5027. printf("*** xml2-config (version %d.%d.%d)\n",
  5028. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5029. return 1;
  5030. }
  5031. /* Compare the headers to the library to make sure we match */
  5032. /* Less than ideal -- doesn't provide us with return value feedback,
  5033. * only exits if there's a serious mismatch between header and library.
  5034. */
  5035. LIBXML_TEST_VERSION;
  5036. /* Test that the library is greater than our minimum version */
  5037. if ((xml_major_version > major) ||
  5038. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5039. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5040. (xml_micro_version >= micro)))
  5041. {
  5042. return 0;
  5043. }
  5044. else
  5045. {
  5046. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5047. xml_major_version, xml_minor_version, xml_micro_version);
  5048. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5049. major, minor, micro);
  5050. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5051. printf("***\n");
  5052. printf("*** If you have already installed a sufficiently new version, this error\n");
  5053. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5054. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5055. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5056. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5057. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5058. printf("*** so that the correct libraries are found at run-time))\n");
  5059. }
  5060. return 1;
  5061. }
  5062. _ACEOF
  5063. rm -f conftest$ac_exeext
  5064. if { (ac_try="$ac_link"
  5065. case "(($ac_try" in
  5066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5067. *) ac_try_echo=$ac_try;;
  5068. esac
  5069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5070. (eval "$ac_link") 2>&5
  5071. ac_status=$?
  5072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5074. { (case "(($ac_try" in
  5075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5076. *) ac_try_echo=$ac_try;;
  5077. esac
  5078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5079. (eval "$ac_try") 2>&5
  5080. ac_status=$?
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); }; }; then
  5083. :
  5084. else
  5085. echo "$as_me: program exited with status $ac_status" >&5
  5086. echo "$as_me: failed program was:" >&5
  5087. sed 's/^/| /' conftest.$ac_ext >&5
  5088. ( exit $ac_status )
  5089. no_xml=yes
  5090. fi
  5091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. CPPFLAGS="$ac_save_CPPFLAGS"
  5094. LIBS="$ac_save_LIBS"
  5095. fi
  5096. fi
  5097. if test "x$no_xml" = x ; then
  5098. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5099. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5100. have_libxml2=yes
  5101. else
  5102. { echo "$as_me:$LINENO: result: no" >&5
  5103. echo "${ECHO_T}no" >&6; }
  5104. if test "$XML2_CONFIG" = "no" ; then
  5105. echo "*** The xml2-config script installed by LIBXML could not be found"
  5106. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5107. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5108. echo "*** full path to xml2-config."
  5109. else
  5110. if test -f conf.xmltest ; then
  5111. :
  5112. else
  5113. echo "*** Could not run libxml test program, checking why..."
  5114. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5115. LIBS="$LIBS $XML_LIBS"
  5116. cat >conftest.$ac_ext <<_ACEOF
  5117. /* confdefs.h. */
  5118. _ACEOF
  5119. cat confdefs.h >>conftest.$ac_ext
  5120. cat >>conftest.$ac_ext <<_ACEOF
  5121. /* end confdefs.h. */
  5122. #include <libxml/xmlversion.h>
  5123. #include <stdio.h>
  5124. int
  5125. main ()
  5126. {
  5127. LIBXML_TEST_VERSION; return 0;
  5128. ;
  5129. return 0;
  5130. }
  5131. _ACEOF
  5132. rm -f conftest.$ac_objext conftest$ac_exeext
  5133. if { (ac_try="$ac_link"
  5134. case "(($ac_try" in
  5135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5136. *) ac_try_echo=$ac_try;;
  5137. esac
  5138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5139. (eval "$ac_link") 2>conftest.er1
  5140. ac_status=$?
  5141. grep -v '^ *+' conftest.er1 >conftest.err
  5142. rm -f conftest.er1
  5143. cat conftest.err >&5
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); } && {
  5146. test -z "$ac_cxx_werror_flag" ||
  5147. test ! -s conftest.err
  5148. } && test -s conftest$ac_exeext &&
  5149. $as_test_x conftest$ac_exeext; then
  5150. echo "*** The test program compiled, but did not run. This usually means"
  5151. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5152. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5153. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5154. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5155. echo "*** is required on your system"
  5156. echo "***"
  5157. echo "*** If you have an old version installed, it is best to remove it, although"
  5158. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5159. else
  5160. echo "$as_me: failed program was:" >&5
  5161. sed 's/^/| /' conftest.$ac_ext >&5
  5162. echo "*** The test program failed to compile or link. See the file config.log for the"
  5163. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5164. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5165. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5168. conftest$ac_exeext conftest.$ac_ext
  5169. CPPFLAGS="$ac_save_CPPFLAGS"
  5170. LIBS="$ac_save_LIBS"
  5171. fi
  5172. fi
  5173. XML_CPPFLAGS=""
  5174. XML_LIBS=""
  5175. :
  5176. fi
  5177. rm -f conf.xmltest
  5178. if test "x$have_libxml2" = "xyes"; then
  5179. cat >>confdefs.h <<\_ACEOF
  5180. #define HAVE_LIBXML2 1
  5181. _ACEOF
  5182. fi
  5183. fi
  5184. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5185. # Check whether --with-libexpat-prefix was given.
  5186. if test "${with_libexpat_prefix+set}" = set; then
  5187. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5188. else
  5189. libexpat_prefix=""
  5190. fi
  5191. if test "x$libexpat_prefix" = "x"; then
  5192. libexpat_prefix="/usr"
  5193. fi
  5194. libexpat_prefix_lib=$libexpat_prefix/lib
  5195. libexpat_prefix_include=$libexpat_prefix/include
  5196. LIBS_save=$LIBS
  5197. CPPFLAGS_save=$CPPFLAGS
  5198. LIBS="-L$libexpat_prefix_lib $LIBS"
  5199. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5200. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5201. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5202. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5203. echo $ECHO_N "(cached) $ECHO_C" >&6
  5204. else
  5205. ac_check_lib_save_LIBS=$LIBS
  5206. LIBS="-lexpat $LIBS"
  5207. cat >conftest.$ac_ext <<_ACEOF
  5208. /* confdefs.h. */
  5209. _ACEOF
  5210. cat confdefs.h >>conftest.$ac_ext
  5211. cat >>conftest.$ac_ext <<_ACEOF
  5212. /* end confdefs.h. */
  5213. /* Override any GCC internal prototype to avoid an error.
  5214. Use char because int might match the return type of a GCC
  5215. builtin and then its argument prototype would still apply. */
  5216. #ifdef __cplusplus
  5217. extern "C"
  5218. #endif
  5219. char XML_ParserCreate ();
  5220. int
  5221. main ()
  5222. {
  5223. return XML_ParserCreate ();
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. rm -f conftest.$ac_objext conftest$ac_exeext
  5229. if { (ac_try="$ac_link"
  5230. case "(($ac_try" in
  5231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5232. *) ac_try_echo=$ac_try;;
  5233. esac
  5234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5235. (eval "$ac_link") 2>conftest.er1
  5236. ac_status=$?
  5237. grep -v '^ *+' conftest.er1 >conftest.err
  5238. rm -f conftest.er1
  5239. cat conftest.err >&5
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); } && {
  5242. test -z "$ac_cxx_werror_flag" ||
  5243. test ! -s conftest.err
  5244. } && test -s conftest$ac_exeext &&
  5245. $as_test_x conftest$ac_exeext; then
  5246. ac_cv_lib_expat_XML_ParserCreate=yes
  5247. else
  5248. echo "$as_me: failed program was:" >&5
  5249. sed 's/^/| /' conftest.$ac_ext >&5
  5250. ac_cv_lib_expat_XML_ParserCreate=no
  5251. fi
  5252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5253. conftest$ac_exeext conftest.$ac_ext
  5254. LIBS=$ac_check_lib_save_LIBS
  5255. fi
  5256. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5257. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5258. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5259. have_libexpat=yes
  5260. fi
  5261. if test "x$have_libexpat" = "xyes"; then
  5262. cat >>confdefs.h <<\_ACEOF
  5263. #define HAVE_LIBEXPAT 1
  5264. _ACEOF
  5265. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5266. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5267. fi
  5268. LIBS=$LIBS_save
  5269. CPPFLAGS=$CPPFLAGS_save
  5270. fi
  5271. if test "x$with_sqlite3" = "xyes"; then
  5272. # Check whether --with-sqlite3-prefix was given.
  5273. if test "${with_sqlite3_prefix+set}" = set; then
  5274. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5275. else
  5276. sqlite3_prefix=""
  5277. fi
  5278. if test "x$sqlite3_prefix" = "x"; then
  5279. sqlite3_prefix="/usr"
  5280. fi
  5281. LIBS_save=$LIBS
  5282. CPPFLAGS_save=$CPPFLAGS
  5283. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5284. if test -x $PKG_CONFIG; then
  5285. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5286. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5287. $PKG_CONFIG --exists sqlite3
  5288. if test "$?" = "0"; then
  5289. # Use pkg-config to detect LIBS and CFLAGS
  5290. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5291. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5292. LIBS="$SQLITE3_LIBS $LIBS"
  5293. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5294. have_sqlite3=yes
  5295. { echo "$as_me:$LINENO: result: yes" >&5
  5296. echo "${ECHO_T}yes" >&6; }
  5297. else
  5298. { echo "$as_me:$LINENO: result: no" >&5
  5299. echo "${ECHO_T}no" >&6; }
  5300. fi
  5301. fi
  5302. if test "x$have_sqlite3" != "xyes"; then
  5303. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5304. sqlite3_prefix_include=$sqlite3_prefix/include
  5305. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5306. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5307. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5308. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5309. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5310. echo $ECHO_N "(cached) $ECHO_C" >&6
  5311. else
  5312. ac_check_lib_save_LIBS=$LIBS
  5313. LIBS="-lsqlite3 $LIBS"
  5314. cat >conftest.$ac_ext <<_ACEOF
  5315. /* confdefs.h. */
  5316. _ACEOF
  5317. cat confdefs.h >>conftest.$ac_ext
  5318. cat >>conftest.$ac_ext <<_ACEOF
  5319. /* end confdefs.h. */
  5320. /* Override any GCC internal prototype to avoid an error.
  5321. Use char because int might match the return type of a GCC
  5322. builtin and then its argument prototype would still apply. */
  5323. #ifdef __cplusplus
  5324. extern "C"
  5325. #endif
  5326. char sqlite3_open ();
  5327. int
  5328. main ()
  5329. {
  5330. return sqlite3_open ();
  5331. ;
  5332. return 0;
  5333. }
  5334. _ACEOF
  5335. rm -f conftest.$ac_objext conftest$ac_exeext
  5336. if { (ac_try="$ac_link"
  5337. case "(($ac_try" in
  5338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5339. *) ac_try_echo=$ac_try;;
  5340. esac
  5341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5342. (eval "$ac_link") 2>conftest.er1
  5343. ac_status=$?
  5344. grep -v '^ *+' conftest.er1 >conftest.err
  5345. rm -f conftest.er1
  5346. cat conftest.err >&5
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); } && {
  5349. test -z "$ac_cxx_werror_flag" ||
  5350. test ! -s conftest.err
  5351. } && test -s conftest$ac_exeext &&
  5352. $as_test_x conftest$ac_exeext; then
  5353. ac_cv_lib_sqlite3_sqlite3_open=yes
  5354. else
  5355. echo "$as_me: failed program was:" >&5
  5356. sed 's/^/| /' conftest.$ac_ext >&5
  5357. ac_cv_lib_sqlite3_sqlite3_open=no
  5358. fi
  5359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5360. conftest$ac_exeext conftest.$ac_ext
  5361. LIBS=$ac_check_lib_save_LIBS
  5362. fi
  5363. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5364. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5365. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5366. have_sqlite3=yes
  5367. fi
  5368. if test "x$have_sqlite3" = "xyes"; then
  5369. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5370. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5371. fi
  5372. fi
  5373. if test "x$have_sqlite3" = "xyes"; then
  5374. for ac_func in sqlite3_open_v2
  5375. do
  5376. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5377. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5378. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5379. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5380. echo $ECHO_N "(cached) $ECHO_C" >&6
  5381. else
  5382. cat >conftest.$ac_ext <<_ACEOF
  5383. /* confdefs.h. */
  5384. _ACEOF
  5385. cat confdefs.h >>conftest.$ac_ext
  5386. cat >>conftest.$ac_ext <<_ACEOF
  5387. /* end confdefs.h. */
  5388. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5389. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5390. #define $ac_func innocuous_$ac_func
  5391. /* System header to define __stub macros and hopefully few prototypes,
  5392. which can conflict with char $ac_func (); below.
  5393. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5394. <limits.h> exists even on freestanding compilers. */
  5395. #ifdef __STDC__
  5396. # include <limits.h>
  5397. #else
  5398. # include <assert.h>
  5399. #endif
  5400. #undef $ac_func
  5401. /* Override any GCC internal prototype to avoid an error.
  5402. Use char because int might match the return type of a GCC
  5403. builtin and then its argument prototype would still apply. */
  5404. #ifdef __cplusplus
  5405. extern "C"
  5406. #endif
  5407. char $ac_func ();
  5408. /* The GNU C library defines this for functions which it implements
  5409. to always fail with ENOSYS. Some functions are actually named
  5410. something starting with __ and the normal name is an alias. */
  5411. #if defined __stub_$ac_func || defined __stub___$ac_func
  5412. choke me
  5413. #endif
  5414. int
  5415. main ()
  5416. {
  5417. return $ac_func ();
  5418. ;
  5419. return 0;
  5420. }
  5421. _ACEOF
  5422. rm -f conftest.$ac_objext conftest$ac_exeext
  5423. if { (ac_try="$ac_link"
  5424. case "(($ac_try" in
  5425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5426. *) ac_try_echo=$ac_try;;
  5427. esac
  5428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5429. (eval "$ac_link") 2>conftest.er1
  5430. ac_status=$?
  5431. grep -v '^ *+' conftest.er1 >conftest.err
  5432. rm -f conftest.er1
  5433. cat conftest.err >&5
  5434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5435. (exit $ac_status); } && {
  5436. test -z "$ac_cxx_werror_flag" ||
  5437. test ! -s conftest.err
  5438. } && test -s conftest$ac_exeext &&
  5439. $as_test_x conftest$ac_exeext; then
  5440. eval "$as_ac_var=yes"
  5441. else
  5442. echo "$as_me: failed program was:" >&5
  5443. sed 's/^/| /' conftest.$ac_ext >&5
  5444. eval "$as_ac_var=no"
  5445. fi
  5446. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5447. conftest$ac_exeext conftest.$ac_ext
  5448. fi
  5449. ac_res=`eval echo '${'$as_ac_var'}'`
  5450. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5451. echo "${ECHO_T}$ac_res" >&6; }
  5452. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5453. cat >>confdefs.h <<_ACEOF
  5454. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5455. _ACEOF
  5456. fi
  5457. done
  5458. cat >>confdefs.h <<\_ACEOF
  5459. #define HAVE_SQLITE3 1
  5460. _ACEOF
  5461. fi
  5462. LIBS=$LIBS_save
  5463. CPPFLAGS=$CPPFLAGS_save
  5464. fi
  5465. if test "x$with_gnutls" = "xyes"; then
  5466. # Check whether --with-libgnutls-prefix was given.
  5467. if test "${with_libgnutls_prefix+set}" = set; then
  5468. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5469. else
  5470. libgnutls_config_prefix=""
  5471. fi
  5472. if test x$libgnutls_config_prefix != x ; then
  5473. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5474. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5475. fi
  5476. fi
  5477. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5478. set dummy libgnutls-config; ac_word=$2
  5479. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5480. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5481. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5482. echo $ECHO_N "(cached) $ECHO_C" >&6
  5483. else
  5484. case $LIBGNUTLS_CONFIG in
  5485. [\\/]* | ?:[\\/]*)
  5486. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5487. ;;
  5488. *)
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5496. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5497. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5498. break 2
  5499. fi
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5504. ;;
  5505. esac
  5506. fi
  5507. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5508. if test -n "$LIBGNUTLS_CONFIG"; then
  5509. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5510. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5511. else
  5512. { echo "$as_me:$LINENO: result: no" >&5
  5513. echo "${ECHO_T}no" >&6; }
  5514. fi
  5515. min_libgnutls_version=1.2.9
  5516. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5517. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5518. no_libgnutls=""
  5519. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5520. no_libgnutls=yes
  5521. else
  5522. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5523. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5524. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5525. ac_save_CFLAGS="$CFLAGS"
  5526. ac_save_LIBS="$LIBS"
  5527. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5528. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5529. rm -f conf.libgnutlstest
  5530. if test "$cross_compiling" = yes; then
  5531. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5532. else
  5533. cat >conftest.$ac_ext <<_ACEOF
  5534. /* confdefs.h. */
  5535. _ACEOF
  5536. cat confdefs.h >>conftest.$ac_ext
  5537. cat >>conftest.$ac_ext <<_ACEOF
  5538. /* end confdefs.h. */
  5539. #include <stdio.h>
  5540. #include <stdlib.h>
  5541. #include <string.h>
  5542. #include <gnutls/gnutls.h>
  5543. int
  5544. main ()
  5545. {
  5546. system ("touch conf.libgnutlstest");
  5547. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5548. {
  5549. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5550. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5551. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5552. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5553. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5554. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5555. printf("*** required on your system.\n");
  5556. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5557. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5558. printf("*** before re-running configure\n");
  5559. }
  5560. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5561. {
  5562. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5563. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5564. }
  5565. else
  5566. {
  5567. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5568. {
  5569. return 0;
  5570. }
  5571. else
  5572. {
  5573. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5574. gnutls_check_version(NULL) );
  5575. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5576. "$min_libgnutls_version" );
  5577. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5578. printf("*** \n");
  5579. printf("*** If you have already installed a sufficiently new version, this error\n");
  5580. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5581. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5582. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5583. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5584. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5585. printf("*** so that the correct libraries are found at run-time))\n");
  5586. }
  5587. }
  5588. return 1;
  5589. }
  5590. _ACEOF
  5591. rm -f conftest$ac_exeext
  5592. if { (ac_try="$ac_link"
  5593. case "(($ac_try" in
  5594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5595. *) ac_try_echo=$ac_try;;
  5596. esac
  5597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5598. (eval "$ac_link") 2>&5
  5599. ac_status=$?
  5600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5601. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5602. { (case "(($ac_try" in
  5603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5604. *) ac_try_echo=$ac_try;;
  5605. esac
  5606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5607. (eval "$ac_try") 2>&5
  5608. ac_status=$?
  5609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5610. (exit $ac_status); }; }; then
  5611. :
  5612. else
  5613. echo "$as_me: program exited with status $ac_status" >&5
  5614. echo "$as_me: failed program was:" >&5
  5615. sed 's/^/| /' conftest.$ac_ext >&5
  5616. ( exit $ac_status )
  5617. no_libgnutls=yes
  5618. fi
  5619. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5620. fi
  5621. CFLAGS="$ac_save_CFLAGS"
  5622. LIBS="$ac_save_LIBS"
  5623. fi
  5624. if test "x$no_libgnutls" = x ; then
  5625. { echo "$as_me:$LINENO: result: yes" >&5
  5626. echo "${ECHO_T}yes" >&6; }
  5627. have_libgnutls=yes
  5628. else
  5629. if test -f conf.libgnutlstest ; then
  5630. :
  5631. else
  5632. { echo "$as_me:$LINENO: result: no" >&5
  5633. echo "${ECHO_T}no" >&6; }
  5634. fi
  5635. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5636. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5637. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5638. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5639. echo "*** full path to libgnutls-config."
  5640. else
  5641. if test -f conf.libgnutlstest ; then
  5642. :
  5643. else
  5644. echo "*** Could not run libgnutls test program, checking why..."
  5645. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5646. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5647. cat >conftest.$ac_ext <<_ACEOF
  5648. /* confdefs.h. */
  5649. _ACEOF
  5650. cat confdefs.h >>conftest.$ac_ext
  5651. cat >>conftest.$ac_ext <<_ACEOF
  5652. /* end confdefs.h. */
  5653. #include <stdio.h>
  5654. #include <stdlib.h>
  5655. #include <string.h>
  5656. #include <gnutls/gnutls.h>
  5657. int
  5658. main ()
  5659. {
  5660. return !!gnutls_check_version(NULL);
  5661. ;
  5662. return 0;
  5663. }
  5664. _ACEOF
  5665. rm -f conftest.$ac_objext conftest$ac_exeext
  5666. if { (ac_try="$ac_link"
  5667. case "(($ac_try" in
  5668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5669. *) ac_try_echo=$ac_try;;
  5670. esac
  5671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5672. (eval "$ac_link") 2>conftest.er1
  5673. ac_status=$?
  5674. grep -v '^ *+' conftest.er1 >conftest.err
  5675. rm -f conftest.er1
  5676. cat conftest.err >&5
  5677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5678. (exit $ac_status); } && {
  5679. test -z "$ac_cxx_werror_flag" ||
  5680. test ! -s conftest.err
  5681. } && test -s conftest$ac_exeext &&
  5682. $as_test_x conftest$ac_exeext; then
  5683. echo "*** The test program compiled, but did not run. This usually means"
  5684. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5685. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5686. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5687. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5688. echo "*** is required on your system"
  5689. echo "***"
  5690. echo "*** If you have an old version installed, it is best to remove it, although"
  5691. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5692. echo "***"
  5693. else
  5694. echo "$as_me: failed program was:" >&5
  5695. sed 's/^/| /' conftest.$ac_ext >&5
  5696. echo "*** The test program failed to compile or link. See the file config.log for the"
  5697. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5698. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5699. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5700. fi
  5701. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5702. conftest$ac_exeext conftest.$ac_ext
  5703. CFLAGS="$ac_save_CFLAGS"
  5704. LIBS="$ac_save_LIBS"
  5705. fi
  5706. fi
  5707. LIBGNUTLS_CFLAGS=""
  5708. LIBGNUTLS_LIBS=""
  5709. :
  5710. fi
  5711. rm -f conf.libgnutlstest
  5712. if test "x$have_libgnutls" = "xyes"; then
  5713. cat >>confdefs.h <<\_ACEOF
  5714. #define HAVE_LIBGNUTLS 1
  5715. _ACEOF
  5716. fi
  5717. fi
  5718. if test "x$have_libgnutls" = "xyes"; then
  5719. # Check whether --with-libgcrypt-prefix was given.
  5720. if test "${with_libgcrypt_prefix+set}" = set; then
  5721. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5722. else
  5723. libgcrypt_config_prefix=""
  5724. fi
  5725. if test x$libgcrypt_config_prefix != x ; then
  5726. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5727. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5728. fi
  5729. fi
  5730. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5731. set dummy libgcrypt-config; ac_word=$2
  5732. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5733. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5734. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5735. echo $ECHO_N "(cached) $ECHO_C" >&6
  5736. else
  5737. case $LIBGCRYPT_CONFIG in
  5738. [\\/]* | ?:[\\/]*)
  5739. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5740. ;;
  5741. *)
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5749. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5757. ;;
  5758. esac
  5759. fi
  5760. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5761. if test -n "$LIBGCRYPT_CONFIG"; then
  5762. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5763. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5764. else
  5765. { echo "$as_me:$LINENO: result: no" >&5
  5766. echo "${ECHO_T}no" >&6; }
  5767. fi
  5768. tmp=1.2.2
  5769. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5770. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5771. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5772. else
  5773. req_libgcrypt_api=0
  5774. min_libgcrypt_version="$tmp"
  5775. fi
  5776. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5777. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5778. ok=no
  5779. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5780. req_major=`echo $min_libgcrypt_version | \
  5781. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5782. req_minor=`echo $min_libgcrypt_version | \
  5783. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5784. req_micro=`echo $min_libgcrypt_version | \
  5785. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5786. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5787. major=`echo $libgcrypt_config_version | \
  5788. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5789. minor=`echo $libgcrypt_config_version | \
  5790. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5791. micro=`echo $libgcrypt_config_version | \
  5792. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5793. if test "$major" -gt "$req_major"; then
  5794. ok=yes
  5795. else
  5796. if test "$major" -eq "$req_major"; then
  5797. if test "$minor" -gt "$req_minor"; then
  5798. ok=yes
  5799. else
  5800. if test "$minor" -eq "$req_minor"; then
  5801. if test "$micro" -ge "$req_micro"; then
  5802. ok=yes
  5803. fi
  5804. fi
  5805. fi
  5806. fi
  5807. fi
  5808. fi
  5809. if test $ok = yes; then
  5810. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5811. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5812. else
  5813. { echo "$as_me:$LINENO: result: no" >&5
  5814. echo "${ECHO_T}no" >&6; }
  5815. fi
  5816. if test $ok = yes; then
  5817. # If we have a recent libgcrypt, we should also check that the
  5818. # API is compatible
  5819. if test "$req_libgcrypt_api" -gt 0 ; then
  5820. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5821. if test "$tmp" -gt 0 ; then
  5822. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5823. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5824. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5825. { echo "$as_me:$LINENO: result: okay" >&5
  5826. echo "${ECHO_T}okay" >&6; }
  5827. else
  5828. ok=no
  5829. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5830. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5831. fi
  5832. fi
  5833. fi
  5834. fi
  5835. if test $ok = yes; then
  5836. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5837. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5838. have_libgcrypt=yes
  5839. else
  5840. LIBGCRYPT_CFLAGS=""
  5841. LIBGCRYPT_LIBS=""
  5842. :
  5843. fi
  5844. if test "x$have_libgcrypt" = "xyes"; then
  5845. cat >>confdefs.h <<\_ACEOF
  5846. #define HAVE_LIBGCRYPT 1
  5847. _ACEOF
  5848. fi
  5849. fi
  5850. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5851. # Check whether --with-openssl-prefix was given.
  5852. if test "${with_openssl_prefix+set}" = set; then
  5853. withval=$with_openssl_prefix; openssl_prefix=$withval
  5854. else
  5855. openssl_prefix=""
  5856. fi
  5857. if test "x$openssl_prefix" = "x"; then
  5858. openssl_prefix="/usr/local"
  5859. fi
  5860. LIBS_save=$LIBS
  5861. CPPFLAGS_save=$CPPFLAGS
  5862. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5863. if test -x $PKG_CONFIG; then
  5864. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5865. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5866. $PKG_CONFIG --exists openssl
  5867. if test "$?" = "0"; then
  5868. # Use pkg-config to detect LIBS and CFLAGS
  5869. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5870. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5871. LIBS="$OPENSSL_LIBS $LIBS"
  5872. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5873. have_openssl=yes
  5874. { echo "$as_me:$LINENO: result: yes" >&5
  5875. echo "${ECHO_T}yes" >&6; }
  5876. else
  5877. { echo "$as_me:$LINENO: result: no" >&5
  5878. echo "${ECHO_T}no" >&6; }
  5879. fi
  5880. fi
  5881. if test "x$have_openssl" != "xyes"; then
  5882. openssl_prefix_lib=$openssl_prefix/lib
  5883. openssl_prefix_include=$openssl_prefix/include
  5884. LIBS="-L$openssl_prefix_lib $LIBS"
  5885. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5886. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5887. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5888. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5889. echo $ECHO_N "(cached) $ECHO_C" >&6
  5890. else
  5891. ac_check_lib_save_LIBS=$LIBS
  5892. LIBS="-lssl $LIBS"
  5893. cat >conftest.$ac_ext <<_ACEOF
  5894. /* confdefs.h. */
  5895. _ACEOF
  5896. cat confdefs.h >>conftest.$ac_ext
  5897. cat >>conftest.$ac_ext <<_ACEOF
  5898. /* end confdefs.h. */
  5899. /* Override any GCC internal prototype to avoid an error.
  5900. Use char because int might match the return type of a GCC
  5901. builtin and then its argument prototype would still apply. */
  5902. #ifdef __cplusplus
  5903. extern "C"
  5904. #endif
  5905. char SSL_library_init ();
  5906. int
  5907. main ()
  5908. {
  5909. return SSL_library_init ();
  5910. ;
  5911. return 0;
  5912. }
  5913. _ACEOF
  5914. rm -f conftest.$ac_objext conftest$ac_exeext
  5915. if { (ac_try="$ac_link"
  5916. case "(($ac_try" in
  5917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5918. *) ac_try_echo=$ac_try;;
  5919. esac
  5920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5921. (eval "$ac_link") 2>conftest.er1
  5922. ac_status=$?
  5923. grep -v '^ *+' conftest.er1 >conftest.err
  5924. rm -f conftest.er1
  5925. cat conftest.err >&5
  5926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5927. (exit $ac_status); } && {
  5928. test -z "$ac_cxx_werror_flag" ||
  5929. test ! -s conftest.err
  5930. } && test -s conftest$ac_exeext &&
  5931. $as_test_x conftest$ac_exeext; then
  5932. ac_cv_lib_ssl_SSL_library_init=yes
  5933. else
  5934. echo "$as_me: failed program was:" >&5
  5935. sed 's/^/| /' conftest.$ac_ext >&5
  5936. ac_cv_lib_ssl_SSL_library_init=no
  5937. fi
  5938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5939. conftest$ac_exeext conftest.$ac_ext
  5940. LIBS=$ac_check_lib_save_LIBS
  5941. fi
  5942. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5943. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5944. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5945. have_openssl=yes LIBS="-lssl $LIBS"
  5946. fi
  5947. if test "x$have_openssl" = "xyes"; then
  5948. have_openssl=no
  5949. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5950. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5951. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5952. echo $ECHO_N "(cached) $ECHO_C" >&6
  5953. else
  5954. ac_check_lib_save_LIBS=$LIBS
  5955. LIBS="-lcrypto $LIBS"
  5956. cat >conftest.$ac_ext <<_ACEOF
  5957. /* confdefs.h. */
  5958. _ACEOF
  5959. cat confdefs.h >>conftest.$ac_ext
  5960. cat >>conftest.$ac_ext <<_ACEOF
  5961. /* end confdefs.h. */
  5962. int
  5963. main ()
  5964. {
  5965. return main ();
  5966. ;
  5967. return 0;
  5968. }
  5969. _ACEOF
  5970. rm -f conftest.$ac_objext conftest$ac_exeext
  5971. if { (ac_try="$ac_link"
  5972. case "(($ac_try" in
  5973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5974. *) ac_try_echo=$ac_try;;
  5975. esac
  5976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5977. (eval "$ac_link") 2>conftest.er1
  5978. ac_status=$?
  5979. grep -v '^ *+' conftest.er1 >conftest.err
  5980. rm -f conftest.er1
  5981. cat conftest.err >&5
  5982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983. (exit $ac_status); } && {
  5984. test -z "$ac_cxx_werror_flag" ||
  5985. test ! -s conftest.err
  5986. } && test -s conftest$ac_exeext &&
  5987. $as_test_x conftest$ac_exeext; then
  5988. ac_cv_lib_crypto_main=yes
  5989. else
  5990. echo "$as_me: failed program was:" >&5
  5991. sed 's/^/| /' conftest.$ac_ext >&5
  5992. ac_cv_lib_crypto_main=no
  5993. fi
  5994. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5995. conftest$ac_exeext conftest.$ac_ext
  5996. LIBS=$ac_check_lib_save_LIBS
  5997. fi
  5998. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5999. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  6000. if test $ac_cv_lib_crypto_main = yes; then
  6001. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6002. fi
  6003. if test "x$have_openssl" = "xyes"; then
  6004. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6005. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6006. fi
  6007. fi
  6008. fi
  6009. if test "x$have_openssl" = "xyes"; then
  6010. cat >>confdefs.h <<\_ACEOF
  6011. #define HAVE_LIBSSL 1
  6012. _ACEOF
  6013. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6014. for ac_func in EVP_DigestInit_ex
  6015. do
  6016. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6017. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6018. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6019. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6020. echo $ECHO_N "(cached) $ECHO_C" >&6
  6021. else
  6022. cat >conftest.$ac_ext <<_ACEOF
  6023. /* confdefs.h. */
  6024. _ACEOF
  6025. cat confdefs.h >>conftest.$ac_ext
  6026. cat >>conftest.$ac_ext <<_ACEOF
  6027. /* end confdefs.h. */
  6028. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6029. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6030. #define $ac_func innocuous_$ac_func
  6031. /* System header to define __stub macros and hopefully few prototypes,
  6032. which can conflict with char $ac_func (); below.
  6033. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6034. <limits.h> exists even on freestanding compilers. */
  6035. #ifdef __STDC__
  6036. # include <limits.h>
  6037. #else
  6038. # include <assert.h>
  6039. #endif
  6040. #undef $ac_func
  6041. /* Override any GCC internal prototype to avoid an error.
  6042. Use char because int might match the return type of a GCC
  6043. builtin and then its argument prototype would still apply. */
  6044. #ifdef __cplusplus
  6045. extern "C"
  6046. #endif
  6047. char $ac_func ();
  6048. /* The GNU C library defines this for functions which it implements
  6049. to always fail with ENOSYS. Some functions are actually named
  6050. something starting with __ and the normal name is an alias. */
  6051. #if defined __stub_$ac_func || defined __stub___$ac_func
  6052. choke me
  6053. #endif
  6054. int
  6055. main ()
  6056. {
  6057. return $ac_func ();
  6058. ;
  6059. return 0;
  6060. }
  6061. _ACEOF
  6062. rm -f conftest.$ac_objext conftest$ac_exeext
  6063. if { (ac_try="$ac_link"
  6064. case "(($ac_try" in
  6065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6066. *) ac_try_echo=$ac_try;;
  6067. esac
  6068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6069. (eval "$ac_link") 2>conftest.er1
  6070. ac_status=$?
  6071. grep -v '^ *+' conftest.er1 >conftest.err
  6072. rm -f conftest.er1
  6073. cat conftest.err >&5
  6074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6075. (exit $ac_status); } && {
  6076. test -z "$ac_cxx_werror_flag" ||
  6077. test ! -s conftest.err
  6078. } && test -s conftest$ac_exeext &&
  6079. $as_test_x conftest$ac_exeext; then
  6080. eval "$as_ac_var=yes"
  6081. else
  6082. echo "$as_me: failed program was:" >&5
  6083. sed 's/^/| /' conftest.$ac_ext >&5
  6084. eval "$as_ac_var=no"
  6085. fi
  6086. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6087. conftest$ac_exeext conftest.$ac_ext
  6088. fi
  6089. ac_res=`eval echo '${'$as_ac_var'}'`
  6090. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6091. echo "${ECHO_T}$ac_res" >&6; }
  6092. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6093. cat >>confdefs.h <<_ACEOF
  6094. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6095. _ACEOF
  6096. have_digestinit_ex=yes
  6097. fi
  6098. done
  6099. if test "x$have_digestinit_ex" = "x"; then
  6100. cat >>confdefs.h <<\_ACEOF
  6101. #define HAVE_OLD_LIBSSL 1
  6102. _ACEOF
  6103. fi
  6104. # search for sha256 support
  6105. for ac_func in EVP_sha256
  6106. do
  6107. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6108. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6109. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6110. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6111. echo $ECHO_N "(cached) $ECHO_C" >&6
  6112. else
  6113. cat >conftest.$ac_ext <<_ACEOF
  6114. /* confdefs.h. */
  6115. _ACEOF
  6116. cat confdefs.h >>conftest.$ac_ext
  6117. cat >>conftest.$ac_ext <<_ACEOF
  6118. /* end confdefs.h. */
  6119. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6120. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6121. #define $ac_func innocuous_$ac_func
  6122. /* System header to define __stub macros and hopefully few prototypes,
  6123. which can conflict with char $ac_func (); below.
  6124. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6125. <limits.h> exists even on freestanding compilers. */
  6126. #ifdef __STDC__
  6127. # include <limits.h>
  6128. #else
  6129. # include <assert.h>
  6130. #endif
  6131. #undef $ac_func
  6132. /* Override any GCC internal prototype to avoid an error.
  6133. Use char because int might match the return type of a GCC
  6134. builtin and then its argument prototype would still apply. */
  6135. #ifdef __cplusplus
  6136. extern "C"
  6137. #endif
  6138. char $ac_func ();
  6139. /* The GNU C library defines this for functions which it implements
  6140. to always fail with ENOSYS. Some functions are actually named
  6141. something starting with __ and the normal name is an alias. */
  6142. #if defined __stub_$ac_func || defined __stub___$ac_func
  6143. choke me
  6144. #endif
  6145. int
  6146. main ()
  6147. {
  6148. return $ac_func ();
  6149. ;
  6150. return 0;
  6151. }
  6152. _ACEOF
  6153. rm -f conftest.$ac_objext conftest$ac_exeext
  6154. if { (ac_try="$ac_link"
  6155. case "(($ac_try" in
  6156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6157. *) ac_try_echo=$ac_try;;
  6158. esac
  6159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6160. (eval "$ac_link") 2>conftest.er1
  6161. ac_status=$?
  6162. grep -v '^ *+' conftest.er1 >conftest.err
  6163. rm -f conftest.er1
  6164. cat conftest.err >&5
  6165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); } && {
  6167. test -z "$ac_cxx_werror_flag" ||
  6168. test ! -s conftest.err
  6169. } && test -s conftest$ac_exeext &&
  6170. $as_test_x conftest$ac_exeext; then
  6171. eval "$as_ac_var=yes"
  6172. else
  6173. echo "$as_me: failed program was:" >&5
  6174. sed 's/^/| /' conftest.$ac_ext >&5
  6175. eval "$as_ac_var=no"
  6176. fi
  6177. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6178. conftest$ac_exeext conftest.$ac_ext
  6179. fi
  6180. ac_res=`eval echo '${'$as_ac_var'}'`
  6181. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6182. echo "${ECHO_T}$ac_res" >&6; }
  6183. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6184. cat >>confdefs.h <<_ACEOF
  6185. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6186. _ACEOF
  6187. fi
  6188. done
  6189. fi
  6190. LIBS=$LIBS_save
  6191. CPPFLAGS=$CPPFLAGS_save
  6192. fi
  6193. if test "x$with_libcares" = "xyes"; then
  6194. # Check whether --with-libcares-prefix was given.
  6195. if test "${with_libcares_prefix+set}" = set; then
  6196. withval=$with_libcares_prefix; libcares_prefix=$withval
  6197. else
  6198. libcares_prefix=""
  6199. fi
  6200. if test "x$libcares_prefix" = "x"; then
  6201. libcares_prefix="/usr"
  6202. fi
  6203. libcares_prefix_lib=$libcares_prefix/lib
  6204. libcares_prefix_include=$libcares_prefix/include
  6205. LIBS_save=$LIBS
  6206. CPPFLAGS_save=$CPPFLAGS
  6207. LIBS="-L$libcares_prefix_lib $LIBS"
  6208. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6209. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6210. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6211. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6212. echo $ECHO_N "(cached) $ECHO_C" >&6
  6213. else
  6214. ac_check_lib_save_LIBS=$LIBS
  6215. LIBS="-lcares $LIBS"
  6216. cat >conftest.$ac_ext <<_ACEOF
  6217. /* confdefs.h. */
  6218. _ACEOF
  6219. cat confdefs.h >>conftest.$ac_ext
  6220. cat >>conftest.$ac_ext <<_ACEOF
  6221. /* end confdefs.h. */
  6222. /* Override any GCC internal prototype to avoid an error.
  6223. Use char because int might match the return type of a GCC
  6224. builtin and then its argument prototype would still apply. */
  6225. #ifdef __cplusplus
  6226. extern "C"
  6227. #endif
  6228. char ares_init ();
  6229. int
  6230. main ()
  6231. {
  6232. return ares_init ();
  6233. ;
  6234. return 0;
  6235. }
  6236. _ACEOF
  6237. rm -f conftest.$ac_objext conftest$ac_exeext
  6238. if { (ac_try="$ac_link"
  6239. case "(($ac_try" in
  6240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6241. *) ac_try_echo=$ac_try;;
  6242. esac
  6243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6244. (eval "$ac_link") 2>conftest.er1
  6245. ac_status=$?
  6246. grep -v '^ *+' conftest.er1 >conftest.err
  6247. rm -f conftest.er1
  6248. cat conftest.err >&5
  6249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6250. (exit $ac_status); } && {
  6251. test -z "$ac_cxx_werror_flag" ||
  6252. test ! -s conftest.err
  6253. } && test -s conftest$ac_exeext &&
  6254. $as_test_x conftest$ac_exeext; then
  6255. ac_cv_lib_cares_ares_init=yes
  6256. else
  6257. echo "$as_me: failed program was:" >&5
  6258. sed 's/^/| /' conftest.$ac_ext >&5
  6259. ac_cv_lib_cares_ares_init=no
  6260. fi
  6261. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6262. conftest$ac_exeext conftest.$ac_ext
  6263. LIBS=$ac_check_lib_save_LIBS
  6264. fi
  6265. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6266. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6267. if test $ac_cv_lib_cares_ares_init = yes; then
  6268. have_libcares=yes
  6269. fi
  6270. if test "x$have_libcares" != "xyes"; then
  6271. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6272. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6273. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6274. echo $ECHO_N "(cached) $ECHO_C" >&6
  6275. else
  6276. ac_check_lib_save_LIBS=$LIBS
  6277. LIBS="-lcares -lrt $LIBS"
  6278. cat >conftest.$ac_ext <<_ACEOF
  6279. /* confdefs.h. */
  6280. _ACEOF
  6281. cat confdefs.h >>conftest.$ac_ext
  6282. cat >>conftest.$ac_ext <<_ACEOF
  6283. /* end confdefs.h. */
  6284. /* Override any GCC internal prototype to avoid an error.
  6285. Use char because int might match the return type of a GCC
  6286. builtin and then its argument prototype would still apply. */
  6287. #ifdef __cplusplus
  6288. extern "C"
  6289. #endif
  6290. char ares_init ();
  6291. int
  6292. main ()
  6293. {
  6294. return ares_init ();
  6295. ;
  6296. return 0;
  6297. }
  6298. _ACEOF
  6299. rm -f conftest.$ac_objext conftest$ac_exeext
  6300. if { (ac_try="$ac_link"
  6301. case "(($ac_try" in
  6302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6303. *) ac_try_echo=$ac_try;;
  6304. esac
  6305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6306. (eval "$ac_link") 2>conftest.er1
  6307. ac_status=$?
  6308. grep -v '^ *+' conftest.er1 >conftest.err
  6309. rm -f conftest.er1
  6310. cat conftest.err >&5
  6311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6312. (exit $ac_status); } && {
  6313. test -z "$ac_cxx_werror_flag" ||
  6314. test ! -s conftest.err
  6315. } && test -s conftest$ac_exeext &&
  6316. $as_test_x conftest$ac_exeext; then
  6317. ac_cv_lib_cares_ares_init=yes
  6318. else
  6319. echo "$as_me: failed program was:" >&5
  6320. sed 's/^/| /' conftest.$ac_ext >&5
  6321. ac_cv_lib_cares_ares_init=no
  6322. fi
  6323. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6324. conftest$ac_exeext conftest.$ac_ext
  6325. LIBS=$ac_check_lib_save_LIBS
  6326. fi
  6327. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6328. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6329. if test $ac_cv_lib_cares_ares_init = yes; then
  6330. have_libcares=yes need_librt=yes
  6331. fi
  6332. fi
  6333. if test "x$have_libcares" = "xyes"; then
  6334. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6335. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6336. cat >conftest.$ac_ext <<_ACEOF
  6337. /* confdefs.h. */
  6338. _ACEOF
  6339. cat confdefs.h >>conftest.$ac_ext
  6340. cat >>conftest.$ac_ext <<_ACEOF
  6341. /* end confdefs.h. */
  6342. #include <ares.h>
  6343. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6344. int
  6345. main ()
  6346. {
  6347. ares_channel channel;
  6348. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6349. ;
  6350. return 0;
  6351. }
  6352. _ACEOF
  6353. rm -f conftest.$ac_objext
  6354. if { (ac_try="$ac_compile"
  6355. case "(($ac_try" in
  6356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6357. *) ac_try_echo=$ac_try;;
  6358. esac
  6359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6360. (eval "$ac_compile") 2>conftest.er1
  6361. ac_status=$?
  6362. grep -v '^ *+' conftest.er1 >conftest.err
  6363. rm -f conftest.er1
  6364. cat conftest.err >&5
  6365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); } && {
  6367. test -z "$ac_cxx_werror_flag" ||
  6368. test ! -s conftest.err
  6369. } && test -s conftest.$ac_objext; then
  6370. have_libcares1_5=yes
  6371. else
  6372. echo "$as_me: failed program was:" >&5
  6373. sed 's/^/| /' conftest.$ac_ext >&5
  6374. have_libcares1_5=no
  6375. fi
  6376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6377. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6378. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6379. if test "x$have_libcares1_5" = "xyes"; then
  6380. cat >>confdefs.h <<\_ACEOF
  6381. #define HAVE_LIBCARES1_5 1
  6382. _ACEOF
  6383. fi
  6384. cat >>confdefs.h <<\_ACEOF
  6385. #define HAVE_LIBCARES 1
  6386. _ACEOF
  6387. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6388. if test "x$need_librt" = "xyes"; then
  6389. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6390. fi
  6391. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6392. fi
  6393. LIBS=$LIBS_save
  6394. CPPFLAGS=$CPPFLAGS_save
  6395. fi
  6396. if test "x$have_libcares" = "x"; then
  6397. if test "x$with_libares" = "xyes"; then
  6398. # Check whether --with-libares-prefix was given.
  6399. if test "${with_libares_prefix+set}" = set; then
  6400. withval=$with_libares_prefix; libares_prefix=$withval
  6401. else
  6402. libares_prefix=""
  6403. fi
  6404. if test "x$libares_prefix" = "x"; then
  6405. libares_prefix="/usr"
  6406. fi
  6407. libares_prefix_lib=$libares_prefix/lib
  6408. libares_prefix_include=$libares_prefix/include
  6409. LIBS_save=$LIBS
  6410. CPPFLAGS_save=$CPPFLAGS
  6411. LIBS="-L$libares_prefix_lib $LIBS"
  6412. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6413. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6414. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6415. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6416. echo $ECHO_N "(cached) $ECHO_C" >&6
  6417. else
  6418. ac_check_lib_save_LIBS=$LIBS
  6419. LIBS="-lares $LIBS"
  6420. cat >conftest.$ac_ext <<_ACEOF
  6421. /* confdefs.h. */
  6422. _ACEOF
  6423. cat confdefs.h >>conftest.$ac_ext
  6424. cat >>conftest.$ac_ext <<_ACEOF
  6425. /* end confdefs.h. */
  6426. /* Override any GCC internal prototype to avoid an error.
  6427. Use char because int might match the return type of a GCC
  6428. builtin and then its argument prototype would still apply. */
  6429. #ifdef __cplusplus
  6430. extern "C"
  6431. #endif
  6432. char ares_init ();
  6433. int
  6434. main ()
  6435. {
  6436. return ares_init ();
  6437. ;
  6438. return 0;
  6439. }
  6440. _ACEOF
  6441. rm -f conftest.$ac_objext conftest$ac_exeext
  6442. if { (ac_try="$ac_link"
  6443. case "(($ac_try" in
  6444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6445. *) ac_try_echo=$ac_try;;
  6446. esac
  6447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6448. (eval "$ac_link") 2>conftest.er1
  6449. ac_status=$?
  6450. grep -v '^ *+' conftest.er1 >conftest.err
  6451. rm -f conftest.er1
  6452. cat conftest.err >&5
  6453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6454. (exit $ac_status); } && {
  6455. test -z "$ac_cxx_werror_flag" ||
  6456. test ! -s conftest.err
  6457. } && test -s conftest$ac_exeext &&
  6458. $as_test_x conftest$ac_exeext; then
  6459. ac_cv_lib_ares_ares_init=yes
  6460. else
  6461. echo "$as_me: failed program was:" >&5
  6462. sed 's/^/| /' conftest.$ac_ext >&5
  6463. ac_cv_lib_ares_ares_init=no
  6464. fi
  6465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6466. conftest$ac_exeext conftest.$ac_ext
  6467. LIBS=$ac_check_lib_save_LIBS
  6468. fi
  6469. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6470. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6471. if test $ac_cv_lib_ares_ares_init = yes; then
  6472. have_libares=yes
  6473. fi
  6474. if test "x$have_libares" = "xyes"; then
  6475. cat >>confdefs.h <<\_ACEOF
  6476. #define HAVE_LIBARES 1
  6477. _ACEOF
  6478. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6479. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6480. fi
  6481. LIBS=$LIBS_save
  6482. CPPFLAGS=$CPPFLAGS_save
  6483. fi
  6484. fi
  6485. # Check availability of libz
  6486. if test "x$with_libz" = "xyes"; then
  6487. # Check whether --with-libz-prefix was given.
  6488. if test "${with_libz_prefix+set}" = set; then
  6489. withval=$with_libz_prefix; libz_prefix=$withval
  6490. else
  6491. libz_prefix=""
  6492. fi
  6493. if test "x$libz_prefix" = "x"; then
  6494. libz_prefix="/usr"
  6495. fi
  6496. libz_prefix_lib=$libz_prefix/lib
  6497. libz_prefix_include=$libz_prefix/include
  6498. LIBS_save=$LIBS
  6499. CPPFLAGS_save=$CPPFLAGS
  6500. LIBS="-L$libz_prefix_lib $LIBS"
  6501. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6502. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6503. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6504. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6505. echo $ECHO_N "(cached) $ECHO_C" >&6
  6506. else
  6507. ac_check_lib_save_LIBS=$LIBS
  6508. LIBS="-lz $LIBS"
  6509. cat >conftest.$ac_ext <<_ACEOF
  6510. /* confdefs.h. */
  6511. _ACEOF
  6512. cat confdefs.h >>conftest.$ac_ext
  6513. cat >>conftest.$ac_ext <<_ACEOF
  6514. /* end confdefs.h. */
  6515. /* Override any GCC internal prototype to avoid an error.
  6516. Use char because int might match the return type of a GCC
  6517. builtin and then its argument prototype would still apply. */
  6518. #ifdef __cplusplus
  6519. extern "C"
  6520. #endif
  6521. char zlibVersion ();
  6522. int
  6523. main ()
  6524. {
  6525. return zlibVersion ();
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. rm -f conftest.$ac_objext conftest$ac_exeext
  6531. if { (ac_try="$ac_link"
  6532. case "(($ac_try" in
  6533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6534. *) ac_try_echo=$ac_try;;
  6535. esac
  6536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6537. (eval "$ac_link") 2>conftest.er1
  6538. ac_status=$?
  6539. grep -v '^ *+' conftest.er1 >conftest.err
  6540. rm -f conftest.er1
  6541. cat conftest.err >&5
  6542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6543. (exit $ac_status); } && {
  6544. test -z "$ac_cxx_werror_flag" ||
  6545. test ! -s conftest.err
  6546. } && test -s conftest$ac_exeext &&
  6547. $as_test_x conftest$ac_exeext; then
  6548. ac_cv_lib_z_zlibVersion=yes
  6549. else
  6550. echo "$as_me: failed program was:" >&5
  6551. sed 's/^/| /' conftest.$ac_ext >&5
  6552. ac_cv_lib_z_zlibVersion=no
  6553. fi
  6554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6555. conftest$ac_exeext conftest.$ac_ext
  6556. LIBS=$ac_check_lib_save_LIBS
  6557. fi
  6558. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6559. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6560. if test $ac_cv_lib_z_zlibVersion = yes; then
  6561. have_libz=yes
  6562. fi
  6563. if test "x$have_libz" = "xyes"; then
  6564. cat >>confdefs.h <<\_ACEOF
  6565. #define HAVE_LIBZ 1
  6566. _ACEOF
  6567. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6568. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6569. fi
  6570. LIBS=$LIBS_save
  6571. CPPFLAGS=$CPPFLAGS_save
  6572. fi
  6573. # Define variables based on the result of the checks for libraries.
  6574. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6575. cat >>confdefs.h <<\_ACEOF
  6576. #define ENABLE_SSL 1
  6577. _ACEOF
  6578. fi
  6579. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6580. cat >>confdefs.h <<\_ACEOF
  6581. #define ENABLE_MESSAGE_DIGEST 1
  6582. _ACEOF
  6583. if true; then
  6584. ENABLE_MESSAGE_DIGEST_TRUE=
  6585. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6586. else
  6587. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6588. ENABLE_MESSAGE_DIGEST_FALSE=
  6589. fi
  6590. enable_message_digest=yes
  6591. else
  6592. if false; then
  6593. ENABLE_MESSAGE_DIGEST_TRUE=
  6594. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6595. else
  6596. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6597. ENABLE_MESSAGE_DIGEST_FALSE=
  6598. fi
  6599. fi
  6600. if test "x$enable_bittorrent" = "xyes" &&
  6601. test "x$enable_message_digest" = "xyes"; then
  6602. cat >>confdefs.h <<\_ACEOF
  6603. #define ENABLE_BITTORRENT 1
  6604. _ACEOF
  6605. if true; then
  6606. ENABLE_BITTORRENT_TRUE=
  6607. ENABLE_BITTORRENT_FALSE='#'
  6608. else
  6609. ENABLE_BITTORRENT_TRUE='#'
  6610. ENABLE_BITTORRENT_FALSE=
  6611. fi
  6612. else
  6613. enable_bittorrent=no
  6614. if false; then
  6615. ENABLE_BITTORRENT_TRUE=
  6616. ENABLE_BITTORRENT_FALSE='#'
  6617. else
  6618. ENABLE_BITTORRENT_TRUE='#'
  6619. ENABLE_BITTORRENT_FALSE=
  6620. fi
  6621. fi
  6622. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6623. test "x$enable_metalink" = "xyes"; then
  6624. cat >>confdefs.h <<\_ACEOF
  6625. #define ENABLE_METALINK 1
  6626. _ACEOF
  6627. if true; then
  6628. ENABLE_METALINK_TRUE=
  6629. ENABLE_METALINK_FALSE='#'
  6630. else
  6631. ENABLE_METALINK_TRUE='#'
  6632. ENABLE_METALINK_FALSE=
  6633. fi
  6634. else
  6635. enable_metalink=no
  6636. if false; then
  6637. ENABLE_METALINK_TRUE=
  6638. ENABLE_METALINK_FALSE='#'
  6639. else
  6640. ENABLE_METALINK_TRUE='#'
  6641. ENABLE_METALINK_FALSE=
  6642. fi
  6643. fi
  6644. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6645. ENABLE_LIBXML2_TRUE=
  6646. ENABLE_LIBXML2_FALSE='#'
  6647. else
  6648. ENABLE_LIBXML2_TRUE='#'
  6649. ENABLE_LIBXML2_FALSE=
  6650. fi
  6651. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6652. ENABLE_LIBEXPAT_TRUE=
  6653. ENABLE_LIBEXPAT_FALSE='#'
  6654. else
  6655. ENABLE_LIBEXPAT_TRUE='#'
  6656. ENABLE_LIBEXPAT_FALSE=
  6657. fi
  6658. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6659. cat >>confdefs.h <<\_ACEOF
  6660. #define ENABLE_ASYNC_DNS 1
  6661. _ACEOF
  6662. if true; then
  6663. ENABLE_ASYNC_DNS_TRUE=
  6664. ENABLE_ASYNC_DNS_FALSE='#'
  6665. else
  6666. ENABLE_ASYNC_DNS_TRUE='#'
  6667. ENABLE_ASYNC_DNS_FALSE=
  6668. fi
  6669. else
  6670. if false; then
  6671. ENABLE_ASYNC_DNS_TRUE=
  6672. ENABLE_ASYNC_DNS_FALSE='#'
  6673. else
  6674. ENABLE_ASYNC_DNS_TRUE='#'
  6675. ENABLE_ASYNC_DNS_FALSE=
  6676. fi
  6677. fi
  6678. # Set conditional for libz
  6679. if test "x$have_libz" = "xyes"; then
  6680. HAVE_LIBZ_TRUE=
  6681. HAVE_LIBZ_FALSE='#'
  6682. else
  6683. HAVE_LIBZ_TRUE='#'
  6684. HAVE_LIBZ_FALSE=
  6685. fi
  6686. # Set conditional for sqlite3
  6687. if test "x$have_sqlite3" = "xyes"; then
  6688. HAVE_SQLITE3_TRUE=
  6689. HAVE_SQLITE3_FALSE='#'
  6690. else
  6691. HAVE_SQLITE3_TRUE='#'
  6692. HAVE_SQLITE3_FALSE=
  6693. fi
  6694. # Checks for header files.
  6695. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6696. # for constant arguments. Useless!
  6697. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6698. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6699. if test "${ac_cv_working_alloca_h+set}" = set; then
  6700. echo $ECHO_N "(cached) $ECHO_C" >&6
  6701. else
  6702. cat >conftest.$ac_ext <<_ACEOF
  6703. /* confdefs.h. */
  6704. _ACEOF
  6705. cat confdefs.h >>conftest.$ac_ext
  6706. cat >>conftest.$ac_ext <<_ACEOF
  6707. /* end confdefs.h. */
  6708. #include <alloca.h>
  6709. int
  6710. main ()
  6711. {
  6712. char *p = (char *) alloca (2 * sizeof (int));
  6713. if (p) return 0;
  6714. ;
  6715. return 0;
  6716. }
  6717. _ACEOF
  6718. rm -f conftest.$ac_objext conftest$ac_exeext
  6719. if { (ac_try="$ac_link"
  6720. case "(($ac_try" in
  6721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6722. *) ac_try_echo=$ac_try;;
  6723. esac
  6724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6725. (eval "$ac_link") 2>conftest.er1
  6726. ac_status=$?
  6727. grep -v '^ *+' conftest.er1 >conftest.err
  6728. rm -f conftest.er1
  6729. cat conftest.err >&5
  6730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731. (exit $ac_status); } && {
  6732. test -z "$ac_cxx_werror_flag" ||
  6733. test ! -s conftest.err
  6734. } && test -s conftest$ac_exeext &&
  6735. $as_test_x conftest$ac_exeext; then
  6736. ac_cv_working_alloca_h=yes
  6737. else
  6738. echo "$as_me: failed program was:" >&5
  6739. sed 's/^/| /' conftest.$ac_ext >&5
  6740. ac_cv_working_alloca_h=no
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6743. conftest$ac_exeext conftest.$ac_ext
  6744. fi
  6745. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6746. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6747. if test $ac_cv_working_alloca_h = yes; then
  6748. cat >>confdefs.h <<\_ACEOF
  6749. #define HAVE_ALLOCA_H 1
  6750. _ACEOF
  6751. fi
  6752. { echo "$as_me:$LINENO: checking for alloca" >&5
  6753. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6754. if test "${ac_cv_func_alloca_works+set}" = set; then
  6755. echo $ECHO_N "(cached) $ECHO_C" >&6
  6756. else
  6757. cat >conftest.$ac_ext <<_ACEOF
  6758. /* confdefs.h. */
  6759. _ACEOF
  6760. cat confdefs.h >>conftest.$ac_ext
  6761. cat >>conftest.$ac_ext <<_ACEOF
  6762. /* end confdefs.h. */
  6763. #ifdef __GNUC__
  6764. # define alloca __builtin_alloca
  6765. #else
  6766. # ifdef _MSC_VER
  6767. # include <malloc.h>
  6768. # define alloca _alloca
  6769. # else
  6770. # ifdef HAVE_ALLOCA_H
  6771. # include <alloca.h>
  6772. # else
  6773. # ifdef _AIX
  6774. #pragma alloca
  6775. # else
  6776. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6777. char *alloca ();
  6778. # endif
  6779. # endif
  6780. # endif
  6781. # endif
  6782. #endif
  6783. int
  6784. main ()
  6785. {
  6786. char *p = (char *) alloca (1);
  6787. if (p) return 0;
  6788. ;
  6789. return 0;
  6790. }
  6791. _ACEOF
  6792. rm -f conftest.$ac_objext conftest$ac_exeext
  6793. if { (ac_try="$ac_link"
  6794. case "(($ac_try" in
  6795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6796. *) ac_try_echo=$ac_try;;
  6797. esac
  6798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6799. (eval "$ac_link") 2>conftest.er1
  6800. ac_status=$?
  6801. grep -v '^ *+' conftest.er1 >conftest.err
  6802. rm -f conftest.er1
  6803. cat conftest.err >&5
  6804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6805. (exit $ac_status); } && {
  6806. test -z "$ac_cxx_werror_flag" ||
  6807. test ! -s conftest.err
  6808. } && test -s conftest$ac_exeext &&
  6809. $as_test_x conftest$ac_exeext; then
  6810. ac_cv_func_alloca_works=yes
  6811. else
  6812. echo "$as_me: failed program was:" >&5
  6813. sed 's/^/| /' conftest.$ac_ext >&5
  6814. ac_cv_func_alloca_works=no
  6815. fi
  6816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6817. conftest$ac_exeext conftest.$ac_ext
  6818. fi
  6819. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6820. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6821. if test $ac_cv_func_alloca_works = yes; then
  6822. cat >>confdefs.h <<\_ACEOF
  6823. #define HAVE_ALLOCA 1
  6824. _ACEOF
  6825. else
  6826. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6827. # that cause trouble. Some versions do not even contain alloca or
  6828. # contain a buggy version. If you still want to use their alloca,
  6829. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6830. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6831. cat >>confdefs.h <<\_ACEOF
  6832. #define C_ALLOCA 1
  6833. _ACEOF
  6834. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6835. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6836. if test "${ac_cv_os_cray+set}" = set; then
  6837. echo $ECHO_N "(cached) $ECHO_C" >&6
  6838. else
  6839. cat >conftest.$ac_ext <<_ACEOF
  6840. /* confdefs.h. */
  6841. _ACEOF
  6842. cat confdefs.h >>conftest.$ac_ext
  6843. cat >>conftest.$ac_ext <<_ACEOF
  6844. /* end confdefs.h. */
  6845. #if defined CRAY && ! defined CRAY2
  6846. webecray
  6847. #else
  6848. wenotbecray
  6849. #endif
  6850. _ACEOF
  6851. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6852. $EGREP "webecray" >/dev/null 2>&1; then
  6853. ac_cv_os_cray=yes
  6854. else
  6855. ac_cv_os_cray=no
  6856. fi
  6857. rm -f conftest*
  6858. fi
  6859. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6860. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6861. if test $ac_cv_os_cray = yes; then
  6862. for ac_func in _getb67 GETB67 getb67; do
  6863. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6864. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6865. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6866. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6867. echo $ECHO_N "(cached) $ECHO_C" >&6
  6868. else
  6869. cat >conftest.$ac_ext <<_ACEOF
  6870. /* confdefs.h. */
  6871. _ACEOF
  6872. cat confdefs.h >>conftest.$ac_ext
  6873. cat >>conftest.$ac_ext <<_ACEOF
  6874. /* end confdefs.h. */
  6875. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6876. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6877. #define $ac_func innocuous_$ac_func
  6878. /* System header to define __stub macros and hopefully few prototypes,
  6879. which can conflict with char $ac_func (); below.
  6880. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6881. <limits.h> exists even on freestanding compilers. */
  6882. #ifdef __STDC__
  6883. # include <limits.h>
  6884. #else
  6885. # include <assert.h>
  6886. #endif
  6887. #undef $ac_func
  6888. /* Override any GCC internal prototype to avoid an error.
  6889. Use char because int might match the return type of a GCC
  6890. builtin and then its argument prototype would still apply. */
  6891. #ifdef __cplusplus
  6892. extern "C"
  6893. #endif
  6894. char $ac_func ();
  6895. /* The GNU C library defines this for functions which it implements
  6896. to always fail with ENOSYS. Some functions are actually named
  6897. something starting with __ and the normal name is an alias. */
  6898. #if defined __stub_$ac_func || defined __stub___$ac_func
  6899. choke me
  6900. #endif
  6901. int
  6902. main ()
  6903. {
  6904. return $ac_func ();
  6905. ;
  6906. return 0;
  6907. }
  6908. _ACEOF
  6909. rm -f conftest.$ac_objext conftest$ac_exeext
  6910. if { (ac_try="$ac_link"
  6911. case "(($ac_try" in
  6912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6913. *) ac_try_echo=$ac_try;;
  6914. esac
  6915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6916. (eval "$ac_link") 2>conftest.er1
  6917. ac_status=$?
  6918. grep -v '^ *+' conftest.er1 >conftest.err
  6919. rm -f conftest.er1
  6920. cat conftest.err >&5
  6921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6922. (exit $ac_status); } && {
  6923. test -z "$ac_cxx_werror_flag" ||
  6924. test ! -s conftest.err
  6925. } && test -s conftest$ac_exeext &&
  6926. $as_test_x conftest$ac_exeext; then
  6927. eval "$as_ac_var=yes"
  6928. else
  6929. echo "$as_me: failed program was:" >&5
  6930. sed 's/^/| /' conftest.$ac_ext >&5
  6931. eval "$as_ac_var=no"
  6932. fi
  6933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6934. conftest$ac_exeext conftest.$ac_ext
  6935. fi
  6936. ac_res=`eval echo '${'$as_ac_var'}'`
  6937. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6938. echo "${ECHO_T}$ac_res" >&6; }
  6939. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6940. cat >>confdefs.h <<_ACEOF
  6941. #define CRAY_STACKSEG_END $ac_func
  6942. _ACEOF
  6943. break
  6944. fi
  6945. done
  6946. fi
  6947. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6948. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6949. if test "${ac_cv_c_stack_direction+set}" = set; then
  6950. echo $ECHO_N "(cached) $ECHO_C" >&6
  6951. else
  6952. if test "$cross_compiling" = yes; then
  6953. ac_cv_c_stack_direction=0
  6954. else
  6955. cat >conftest.$ac_ext <<_ACEOF
  6956. /* confdefs.h. */
  6957. _ACEOF
  6958. cat confdefs.h >>conftest.$ac_ext
  6959. cat >>conftest.$ac_ext <<_ACEOF
  6960. /* end confdefs.h. */
  6961. $ac_includes_default
  6962. int
  6963. find_stack_direction ()
  6964. {
  6965. static char *addr = 0;
  6966. auto char dummy;
  6967. if (addr == 0)
  6968. {
  6969. addr = &dummy;
  6970. return find_stack_direction ();
  6971. }
  6972. else
  6973. return (&dummy > addr) ? 1 : -1;
  6974. }
  6975. int
  6976. main ()
  6977. {
  6978. return find_stack_direction () < 0;
  6979. }
  6980. _ACEOF
  6981. rm -f conftest$ac_exeext
  6982. if { (ac_try="$ac_link"
  6983. case "(($ac_try" in
  6984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6985. *) ac_try_echo=$ac_try;;
  6986. esac
  6987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6988. (eval "$ac_link") 2>&5
  6989. ac_status=$?
  6990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6991. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6992. { (case "(($ac_try" in
  6993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6994. *) ac_try_echo=$ac_try;;
  6995. esac
  6996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6997. (eval "$ac_try") 2>&5
  6998. ac_status=$?
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); }; }; then
  7001. ac_cv_c_stack_direction=1
  7002. else
  7003. echo "$as_me: program exited with status $ac_status" >&5
  7004. echo "$as_me: failed program was:" >&5
  7005. sed 's/^/| /' conftest.$ac_ext >&5
  7006. ( exit $ac_status )
  7007. ac_cv_c_stack_direction=-1
  7008. fi
  7009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7010. fi
  7011. fi
  7012. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7013. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  7014. cat >>confdefs.h <<_ACEOF
  7015. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7016. _ACEOF
  7017. fi
  7018. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7019. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7020. if test "${ac_cv_header_stdc+set}" = set; then
  7021. echo $ECHO_N "(cached) $ECHO_C" >&6
  7022. else
  7023. cat >conftest.$ac_ext <<_ACEOF
  7024. /* confdefs.h. */
  7025. _ACEOF
  7026. cat confdefs.h >>conftest.$ac_ext
  7027. cat >>conftest.$ac_ext <<_ACEOF
  7028. /* end confdefs.h. */
  7029. #include <stdlib.h>
  7030. #include <stdarg.h>
  7031. #include <string.h>
  7032. #include <float.h>
  7033. int
  7034. main ()
  7035. {
  7036. ;
  7037. return 0;
  7038. }
  7039. _ACEOF
  7040. rm -f conftest.$ac_objext
  7041. if { (ac_try="$ac_compile"
  7042. case "(($ac_try" in
  7043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7044. *) ac_try_echo=$ac_try;;
  7045. esac
  7046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7047. (eval "$ac_compile") 2>conftest.er1
  7048. ac_status=$?
  7049. grep -v '^ *+' conftest.er1 >conftest.err
  7050. rm -f conftest.er1
  7051. cat conftest.err >&5
  7052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7053. (exit $ac_status); } && {
  7054. test -z "$ac_cxx_werror_flag" ||
  7055. test ! -s conftest.err
  7056. } && test -s conftest.$ac_objext; then
  7057. ac_cv_header_stdc=yes
  7058. else
  7059. echo "$as_me: failed program was:" >&5
  7060. sed 's/^/| /' conftest.$ac_ext >&5
  7061. ac_cv_header_stdc=no
  7062. fi
  7063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7064. if test $ac_cv_header_stdc = yes; then
  7065. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7066. cat >conftest.$ac_ext <<_ACEOF
  7067. /* confdefs.h. */
  7068. _ACEOF
  7069. cat confdefs.h >>conftest.$ac_ext
  7070. cat >>conftest.$ac_ext <<_ACEOF
  7071. /* end confdefs.h. */
  7072. #include <string.h>
  7073. _ACEOF
  7074. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7075. $EGREP "memchr" >/dev/null 2>&1; then
  7076. :
  7077. else
  7078. ac_cv_header_stdc=no
  7079. fi
  7080. rm -f conftest*
  7081. fi
  7082. if test $ac_cv_header_stdc = yes; then
  7083. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. #include <stdlib.h>
  7091. _ACEOF
  7092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7093. $EGREP "free" >/dev/null 2>&1; then
  7094. :
  7095. else
  7096. ac_cv_header_stdc=no
  7097. fi
  7098. rm -f conftest*
  7099. fi
  7100. if test $ac_cv_header_stdc = yes; then
  7101. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7102. if test "$cross_compiling" = yes; then
  7103. :
  7104. else
  7105. cat >conftest.$ac_ext <<_ACEOF
  7106. /* confdefs.h. */
  7107. _ACEOF
  7108. cat confdefs.h >>conftest.$ac_ext
  7109. cat >>conftest.$ac_ext <<_ACEOF
  7110. /* end confdefs.h. */
  7111. #include <ctype.h>
  7112. #include <stdlib.h>
  7113. #if ((' ' & 0x0FF) == 0x020)
  7114. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7115. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7116. #else
  7117. # define ISLOWER(c) \
  7118. (('a' <= (c) && (c) <= 'i') \
  7119. || ('j' <= (c) && (c) <= 'r') \
  7120. || ('s' <= (c) && (c) <= 'z'))
  7121. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7122. #endif
  7123. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7124. int
  7125. main ()
  7126. {
  7127. int i;
  7128. for (i = 0; i < 256; i++)
  7129. if (XOR (islower (i), ISLOWER (i))
  7130. || toupper (i) != TOUPPER (i))
  7131. return 2;
  7132. return 0;
  7133. }
  7134. _ACEOF
  7135. rm -f conftest$ac_exeext
  7136. if { (ac_try="$ac_link"
  7137. case "(($ac_try" in
  7138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7139. *) ac_try_echo=$ac_try;;
  7140. esac
  7141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7142. (eval "$ac_link") 2>&5
  7143. ac_status=$?
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7146. { (case "(($ac_try" in
  7147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7148. *) ac_try_echo=$ac_try;;
  7149. esac
  7150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7151. (eval "$ac_try") 2>&5
  7152. ac_status=$?
  7153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7154. (exit $ac_status); }; }; then
  7155. :
  7156. else
  7157. echo "$as_me: program exited with status $ac_status" >&5
  7158. echo "$as_me: failed program was:" >&5
  7159. sed 's/^/| /' conftest.$ac_ext >&5
  7160. ( exit $ac_status )
  7161. ac_cv_header_stdc=no
  7162. fi
  7163. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7164. fi
  7165. fi
  7166. fi
  7167. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7168. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7169. if test $ac_cv_header_stdc = yes; then
  7170. cat >>confdefs.h <<\_ACEOF
  7171. #define STDC_HEADERS 1
  7172. _ACEOF
  7173. fi
  7174. case "$target" in
  7175. *mingw*)
  7176. for ac_header in winsock2.h \
  7177. ws2tcpip.h
  7178. do
  7179. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7180. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7181. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7182. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7183. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7184. echo $ECHO_N "(cached) $ECHO_C" >&6
  7185. fi
  7186. ac_res=`eval echo '${'$as_ac_Header'}'`
  7187. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7188. echo "${ECHO_T}$ac_res" >&6; }
  7189. else
  7190. # Is the header compilable?
  7191. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7192. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7193. cat >conftest.$ac_ext <<_ACEOF
  7194. /* confdefs.h. */
  7195. _ACEOF
  7196. cat confdefs.h >>conftest.$ac_ext
  7197. cat >>conftest.$ac_ext <<_ACEOF
  7198. /* end confdefs.h. */
  7199. $ac_includes_default
  7200. #include <$ac_header>
  7201. _ACEOF
  7202. rm -f conftest.$ac_objext
  7203. if { (ac_try="$ac_compile"
  7204. case "(($ac_try" in
  7205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7206. *) ac_try_echo=$ac_try;;
  7207. esac
  7208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7209. (eval "$ac_compile") 2>conftest.er1
  7210. ac_status=$?
  7211. grep -v '^ *+' conftest.er1 >conftest.err
  7212. rm -f conftest.er1
  7213. cat conftest.err >&5
  7214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7215. (exit $ac_status); } && {
  7216. test -z "$ac_cxx_werror_flag" ||
  7217. test ! -s conftest.err
  7218. } && test -s conftest.$ac_objext; then
  7219. ac_header_compiler=yes
  7220. else
  7221. echo "$as_me: failed program was:" >&5
  7222. sed 's/^/| /' conftest.$ac_ext >&5
  7223. ac_header_compiler=no
  7224. fi
  7225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7226. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7227. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7228. # Is the header present?
  7229. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7230. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7231. cat >conftest.$ac_ext <<_ACEOF
  7232. /* confdefs.h. */
  7233. _ACEOF
  7234. cat confdefs.h >>conftest.$ac_ext
  7235. cat >>conftest.$ac_ext <<_ACEOF
  7236. /* end confdefs.h. */
  7237. #include <$ac_header>
  7238. _ACEOF
  7239. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7240. case "(($ac_try" in
  7241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7242. *) ac_try_echo=$ac_try;;
  7243. esac
  7244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7245. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7246. ac_status=$?
  7247. grep -v '^ *+' conftest.er1 >conftest.err
  7248. rm -f conftest.er1
  7249. cat conftest.err >&5
  7250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251. (exit $ac_status); } >/dev/null && {
  7252. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7253. test ! -s conftest.err
  7254. }; then
  7255. ac_header_preproc=yes
  7256. else
  7257. echo "$as_me: failed program was:" >&5
  7258. sed 's/^/| /' conftest.$ac_ext >&5
  7259. ac_header_preproc=no
  7260. fi
  7261. rm -f conftest.err conftest.$ac_ext
  7262. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7263. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7264. # So? What about this header?
  7265. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7266. yes:no: )
  7267. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7268. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7269. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7270. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7271. ac_header_preproc=yes
  7272. ;;
  7273. no:yes:* )
  7274. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7275. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7276. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7277. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7278. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7279. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7280. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7281. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7282. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7283. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7284. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7285. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7286. ( cat <<\_ASBOX
  7287. ## ----------------------------------------------- ##
  7288. ## Report this to t-tujikawa@users.sourceforge.net ##
  7289. ## ----------------------------------------------- ##
  7290. _ASBOX
  7291. ) | sed "s/^/$as_me: WARNING: /" >&2
  7292. ;;
  7293. esac
  7294. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7295. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7296. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7297. echo $ECHO_N "(cached) $ECHO_C" >&6
  7298. else
  7299. eval "$as_ac_Header=\$ac_header_preproc"
  7300. fi
  7301. ac_res=`eval echo '${'$as_ac_Header'}'`
  7302. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7303. echo "${ECHO_T}$ac_res" >&6; }
  7304. fi
  7305. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7306. cat >>confdefs.h <<_ACEOF
  7307. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7308. _ACEOF
  7309. fi
  7310. done
  7311. ;;
  7312. esac
  7313. for ac_header in argz.h \
  7314. arpa/inet.h \
  7315. fcntl.h \
  7316. float.h \
  7317. inttypes.h \
  7318. io.h \
  7319. langinfo.h \
  7320. libintl.h \
  7321. limits.h \
  7322. locale.h \
  7323. malloc.h \
  7324. netdb.h \
  7325. netinet/in.h \
  7326. stddef.h \
  7327. stdint.h \
  7328. stdio_ext.h \
  7329. stdlib.h \
  7330. string.h \
  7331. strings.h \
  7332. sys/ioctl.h \
  7333. sys/param.h \
  7334. sys/socket.h \
  7335. sys/time.h \
  7336. termios.h \
  7337. unistd.h \
  7338. wchar.h
  7339. do
  7340. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7341. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7342. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7343. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7344. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7345. echo $ECHO_N "(cached) $ECHO_C" >&6
  7346. fi
  7347. ac_res=`eval echo '${'$as_ac_Header'}'`
  7348. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7349. echo "${ECHO_T}$ac_res" >&6; }
  7350. else
  7351. # Is the header compilable?
  7352. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7353. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7354. cat >conftest.$ac_ext <<_ACEOF
  7355. /* confdefs.h. */
  7356. _ACEOF
  7357. cat confdefs.h >>conftest.$ac_ext
  7358. cat >>conftest.$ac_ext <<_ACEOF
  7359. /* end confdefs.h. */
  7360. $ac_includes_default
  7361. #include <$ac_header>
  7362. _ACEOF
  7363. rm -f conftest.$ac_objext
  7364. if { (ac_try="$ac_compile"
  7365. case "(($ac_try" in
  7366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7367. *) ac_try_echo=$ac_try;;
  7368. esac
  7369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7370. (eval "$ac_compile") 2>conftest.er1
  7371. ac_status=$?
  7372. grep -v '^ *+' conftest.er1 >conftest.err
  7373. rm -f conftest.er1
  7374. cat conftest.err >&5
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); } && {
  7377. test -z "$ac_cxx_werror_flag" ||
  7378. test ! -s conftest.err
  7379. } && test -s conftest.$ac_objext; then
  7380. ac_header_compiler=yes
  7381. else
  7382. echo "$as_me: failed program was:" >&5
  7383. sed 's/^/| /' conftest.$ac_ext >&5
  7384. ac_header_compiler=no
  7385. fi
  7386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7387. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7388. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7389. # Is the header present?
  7390. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7391. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7392. cat >conftest.$ac_ext <<_ACEOF
  7393. /* confdefs.h. */
  7394. _ACEOF
  7395. cat confdefs.h >>conftest.$ac_ext
  7396. cat >>conftest.$ac_ext <<_ACEOF
  7397. /* end confdefs.h. */
  7398. #include <$ac_header>
  7399. _ACEOF
  7400. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7401. case "(($ac_try" in
  7402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7403. *) ac_try_echo=$ac_try;;
  7404. esac
  7405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7406. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7407. ac_status=$?
  7408. grep -v '^ *+' conftest.er1 >conftest.err
  7409. rm -f conftest.er1
  7410. cat conftest.err >&5
  7411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7412. (exit $ac_status); } >/dev/null && {
  7413. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7414. test ! -s conftest.err
  7415. }; then
  7416. ac_header_preproc=yes
  7417. else
  7418. echo "$as_me: failed program was:" >&5
  7419. sed 's/^/| /' conftest.$ac_ext >&5
  7420. ac_header_preproc=no
  7421. fi
  7422. rm -f conftest.err conftest.$ac_ext
  7423. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7424. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7425. # So? What about this header?
  7426. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7427. yes:no: )
  7428. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7429. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7430. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7431. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7432. ac_header_preproc=yes
  7433. ;;
  7434. no:yes:* )
  7435. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7436. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7437. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7438. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7439. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7440. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7441. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7442. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7443. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7444. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7445. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7446. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7447. ( cat <<\_ASBOX
  7448. ## ----------------------------------------------- ##
  7449. ## Report this to t-tujikawa@users.sourceforge.net ##
  7450. ## ----------------------------------------------- ##
  7451. _ASBOX
  7452. ) | sed "s/^/$as_me: WARNING: /" >&2
  7453. ;;
  7454. esac
  7455. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7456. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7457. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7458. echo $ECHO_N "(cached) $ECHO_C" >&6
  7459. else
  7460. eval "$as_ac_Header=\$ac_header_preproc"
  7461. fi
  7462. ac_res=`eval echo '${'$as_ac_Header'}'`
  7463. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7464. echo "${ECHO_T}$ac_res" >&6; }
  7465. fi
  7466. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7467. cat >>confdefs.h <<_ACEOF
  7468. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7469. _ACEOF
  7470. fi
  7471. done
  7472. # Checks for typedefs, structures, and compiler characteristics.
  7473. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7474. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7475. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7476. echo $ECHO_N "(cached) $ECHO_C" >&6
  7477. else
  7478. cat >conftest.$ac_ext <<_ACEOF
  7479. /* confdefs.h. */
  7480. _ACEOF
  7481. cat confdefs.h >>conftest.$ac_ext
  7482. cat >>conftest.$ac_ext <<_ACEOF
  7483. /* end confdefs.h. */
  7484. #include <stdbool.h>
  7485. #ifndef bool
  7486. "error: bool is not defined"
  7487. #endif
  7488. #ifndef false
  7489. "error: false is not defined"
  7490. #endif
  7491. #if false
  7492. "error: false is not 0"
  7493. #endif
  7494. #ifndef true
  7495. "error: true is not defined"
  7496. #endif
  7497. #if true != 1
  7498. "error: true is not 1"
  7499. #endif
  7500. #ifndef __bool_true_false_are_defined
  7501. "error: __bool_true_false_are_defined is not defined"
  7502. #endif
  7503. struct s { _Bool s: 1; _Bool t; } s;
  7504. char a[true == 1 ? 1 : -1];
  7505. char b[false == 0 ? 1 : -1];
  7506. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7507. char d[(bool) 0.5 == true ? 1 : -1];
  7508. bool e = &s;
  7509. char f[(_Bool) 0.0 == false ? 1 : -1];
  7510. char g[true];
  7511. char h[sizeof (_Bool)];
  7512. char i[sizeof s.t];
  7513. enum { j = false, k = true, l = false * true, m = true * 256 };
  7514. _Bool n[m];
  7515. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7516. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7517. # if defined __xlc__ || defined __GNUC__
  7518. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7519. reported by James Lemley on 2005-10-05; see
  7520. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7521. This test is not quite right, since xlc is allowed to
  7522. reject this program, as the initializer for xlcbug is
  7523. not one of the forms that C requires support for.
  7524. However, doing the test right would require a runtime
  7525. test, and that would make cross-compilation harder.
  7526. Let us hope that IBM fixes the xlc bug, and also adds
  7527. support for this kind of constant expression. In the
  7528. meantime, this test will reject xlc, which is OK, since
  7529. our stdbool.h substitute should suffice. We also test
  7530. this with GCC, where it should work, to detect more
  7531. quickly whether someone messes up the test in the
  7532. future. */
  7533. char digs[] = "0123456789";
  7534. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7535. # endif
  7536. /* Catch a bug in an HP-UX C compiler. See
  7537. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7538. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7539. */
  7540. _Bool q = true;
  7541. _Bool *pq = &q;
  7542. int
  7543. main ()
  7544. {
  7545. *pq |= q;
  7546. *pq |= ! q;
  7547. /* Refer to every declared value, to avoid compiler optimizations. */
  7548. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7549. + !m + !n + !o + !p + !q + !pq);
  7550. ;
  7551. return 0;
  7552. }
  7553. _ACEOF
  7554. rm -f conftest.$ac_objext
  7555. if { (ac_try="$ac_compile"
  7556. case "(($ac_try" in
  7557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7558. *) ac_try_echo=$ac_try;;
  7559. esac
  7560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7561. (eval "$ac_compile") 2>conftest.er1
  7562. ac_status=$?
  7563. grep -v '^ *+' conftest.er1 >conftest.err
  7564. rm -f conftest.er1
  7565. cat conftest.err >&5
  7566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7567. (exit $ac_status); } && {
  7568. test -z "$ac_cxx_werror_flag" ||
  7569. test ! -s conftest.err
  7570. } && test -s conftest.$ac_objext; then
  7571. ac_cv_header_stdbool_h=yes
  7572. else
  7573. echo "$as_me: failed program was:" >&5
  7574. sed 's/^/| /' conftest.$ac_ext >&5
  7575. ac_cv_header_stdbool_h=no
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7578. fi
  7579. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7580. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7581. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7582. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7583. if test "${ac_cv_type__Bool+set}" = set; then
  7584. echo $ECHO_N "(cached) $ECHO_C" >&6
  7585. else
  7586. cat >conftest.$ac_ext <<_ACEOF
  7587. /* confdefs.h. */
  7588. _ACEOF
  7589. cat confdefs.h >>conftest.$ac_ext
  7590. cat >>conftest.$ac_ext <<_ACEOF
  7591. /* end confdefs.h. */
  7592. $ac_includes_default
  7593. typedef _Bool ac__type_new_;
  7594. int
  7595. main ()
  7596. {
  7597. if ((ac__type_new_ *) 0)
  7598. return 0;
  7599. if (sizeof (ac__type_new_))
  7600. return 0;
  7601. ;
  7602. return 0;
  7603. }
  7604. _ACEOF
  7605. rm -f conftest.$ac_objext
  7606. if { (ac_try="$ac_compile"
  7607. case "(($ac_try" in
  7608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7609. *) ac_try_echo=$ac_try;;
  7610. esac
  7611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7612. (eval "$ac_compile") 2>conftest.er1
  7613. ac_status=$?
  7614. grep -v '^ *+' conftest.er1 >conftest.err
  7615. rm -f conftest.er1
  7616. cat conftest.err >&5
  7617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7618. (exit $ac_status); } && {
  7619. test -z "$ac_cxx_werror_flag" ||
  7620. test ! -s conftest.err
  7621. } && test -s conftest.$ac_objext; then
  7622. ac_cv_type__Bool=yes
  7623. else
  7624. echo "$as_me: failed program was:" >&5
  7625. sed 's/^/| /' conftest.$ac_ext >&5
  7626. ac_cv_type__Bool=no
  7627. fi
  7628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7629. fi
  7630. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7631. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7632. if test $ac_cv_type__Bool = yes; then
  7633. cat >>confdefs.h <<_ACEOF
  7634. #define HAVE__BOOL 1
  7635. _ACEOF
  7636. fi
  7637. if test $ac_cv_header_stdbool_h = yes; then
  7638. cat >>confdefs.h <<\_ACEOF
  7639. #define HAVE_STDBOOL_H 1
  7640. _ACEOF
  7641. fi
  7642. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7643. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7644. if test "${ac_cv_c_const+set}" = set; then
  7645. echo $ECHO_N "(cached) $ECHO_C" >&6
  7646. else
  7647. cat >conftest.$ac_ext <<_ACEOF
  7648. /* confdefs.h. */
  7649. _ACEOF
  7650. cat confdefs.h >>conftest.$ac_ext
  7651. cat >>conftest.$ac_ext <<_ACEOF
  7652. /* end confdefs.h. */
  7653. int
  7654. main ()
  7655. {
  7656. /* FIXME: Include the comments suggested by Paul. */
  7657. #ifndef __cplusplus
  7658. /* Ultrix mips cc rejects this. */
  7659. typedef int charset[2];
  7660. const charset cs;
  7661. /* SunOS 4.1.1 cc rejects this. */
  7662. char const *const *pcpcc;
  7663. char **ppc;
  7664. /* NEC SVR4.0.2 mips cc rejects this. */
  7665. struct point {int x, y;};
  7666. static struct point const zero = {0,0};
  7667. /* AIX XL C 1.02.0.0 rejects this.
  7668. It does not let you subtract one const X* pointer from another in
  7669. an arm of an if-expression whose if-part is not a constant
  7670. expression */
  7671. const char *g = "string";
  7672. pcpcc = &g + (g ? g-g : 0);
  7673. /* HPUX 7.0 cc rejects these. */
  7674. ++pcpcc;
  7675. ppc = (char**) pcpcc;
  7676. pcpcc = (char const *const *) ppc;
  7677. { /* SCO 3.2v4 cc rejects this. */
  7678. char *t;
  7679. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7680. *t++ = 0;
  7681. if (s) return 0;
  7682. }
  7683. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7684. int x[] = {25, 17};
  7685. const int *foo = &x[0];
  7686. ++foo;
  7687. }
  7688. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7689. typedef const int *iptr;
  7690. iptr p = 0;
  7691. ++p;
  7692. }
  7693. { /* AIX XL C 1.02.0.0 rejects this saying
  7694. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7695. struct s { int j; const int *ap[3]; };
  7696. struct s *b; b->j = 5;
  7697. }
  7698. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7699. const int foo = 10;
  7700. if (!foo) return 0;
  7701. }
  7702. return !cs[0] && !zero.x;
  7703. #endif
  7704. ;
  7705. return 0;
  7706. }
  7707. _ACEOF
  7708. rm -f conftest.$ac_objext
  7709. if { (ac_try="$ac_compile"
  7710. case "(($ac_try" in
  7711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7712. *) ac_try_echo=$ac_try;;
  7713. esac
  7714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7715. (eval "$ac_compile") 2>conftest.er1
  7716. ac_status=$?
  7717. grep -v '^ *+' conftest.er1 >conftest.err
  7718. rm -f conftest.er1
  7719. cat conftest.err >&5
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. (exit $ac_status); } && {
  7722. test -z "$ac_cxx_werror_flag" ||
  7723. test ! -s conftest.err
  7724. } && test -s conftest.$ac_objext; then
  7725. ac_cv_c_const=yes
  7726. else
  7727. echo "$as_me: failed program was:" >&5
  7728. sed 's/^/| /' conftest.$ac_ext >&5
  7729. ac_cv_c_const=no
  7730. fi
  7731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7732. fi
  7733. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7734. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7735. if test $ac_cv_c_const = no; then
  7736. cat >>confdefs.h <<\_ACEOF
  7737. #define const
  7738. _ACEOF
  7739. fi
  7740. { echo "$as_me:$LINENO: checking for inline" >&5
  7741. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7742. if test "${ac_cv_c_inline+set}" = set; then
  7743. echo $ECHO_N "(cached) $ECHO_C" >&6
  7744. else
  7745. ac_cv_c_inline=no
  7746. for ac_kw in inline __inline__ __inline; do
  7747. cat >conftest.$ac_ext <<_ACEOF
  7748. /* confdefs.h. */
  7749. _ACEOF
  7750. cat confdefs.h >>conftest.$ac_ext
  7751. cat >>conftest.$ac_ext <<_ACEOF
  7752. /* end confdefs.h. */
  7753. #ifndef __cplusplus
  7754. typedef int foo_t;
  7755. static $ac_kw foo_t static_foo () {return 0; }
  7756. $ac_kw foo_t foo () {return 0; }
  7757. #endif
  7758. _ACEOF
  7759. rm -f conftest.$ac_objext
  7760. if { (ac_try="$ac_compile"
  7761. case "(($ac_try" in
  7762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7763. *) ac_try_echo=$ac_try;;
  7764. esac
  7765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7766. (eval "$ac_compile") 2>conftest.er1
  7767. ac_status=$?
  7768. grep -v '^ *+' conftest.er1 >conftest.err
  7769. rm -f conftest.er1
  7770. cat conftest.err >&5
  7771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7772. (exit $ac_status); } && {
  7773. test -z "$ac_cxx_werror_flag" ||
  7774. test ! -s conftest.err
  7775. } && test -s conftest.$ac_objext; then
  7776. ac_cv_c_inline=$ac_kw
  7777. else
  7778. echo "$as_me: failed program was:" >&5
  7779. sed 's/^/| /' conftest.$ac_ext >&5
  7780. fi
  7781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7782. test "$ac_cv_c_inline" != no && break
  7783. done
  7784. fi
  7785. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7786. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7787. case $ac_cv_c_inline in
  7788. inline | yes) ;;
  7789. *)
  7790. case $ac_cv_c_inline in
  7791. no) ac_val=;;
  7792. *) ac_val=$ac_cv_c_inline;;
  7793. esac
  7794. cat >>confdefs.h <<_ACEOF
  7795. #ifndef __cplusplus
  7796. #define inline $ac_val
  7797. #endif
  7798. _ACEOF
  7799. ;;
  7800. esac
  7801. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7802. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7803. if test "${ac_cv_c_int16_t+set}" = set; then
  7804. echo $ECHO_N "(cached) $ECHO_C" >&6
  7805. else
  7806. ac_cv_c_int16_t=no
  7807. for ac_type in 'int16_t' 'int' 'long int' \
  7808. 'long long int' 'short int' 'signed char'; do
  7809. cat >conftest.$ac_ext <<_ACEOF
  7810. /* confdefs.h. */
  7811. _ACEOF
  7812. cat confdefs.h >>conftest.$ac_ext
  7813. cat >>conftest.$ac_ext <<_ACEOF
  7814. /* end confdefs.h. */
  7815. $ac_includes_default
  7816. int
  7817. main ()
  7818. {
  7819. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7820. test_array [0] = 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. cat >conftest.$ac_ext <<_ACEOF
  7843. /* confdefs.h. */
  7844. _ACEOF
  7845. cat confdefs.h >>conftest.$ac_ext
  7846. cat >>conftest.$ac_ext <<_ACEOF
  7847. /* end confdefs.h. */
  7848. $ac_includes_default
  7849. int
  7850. main ()
  7851. {
  7852. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7853. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7854. test_array [0] = 0
  7855. ;
  7856. return 0;
  7857. }
  7858. _ACEOF
  7859. rm -f conftest.$ac_objext
  7860. if { (ac_try="$ac_compile"
  7861. case "(($ac_try" in
  7862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7863. *) ac_try_echo=$ac_try;;
  7864. esac
  7865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7866. (eval "$ac_compile") 2>conftest.er1
  7867. ac_status=$?
  7868. grep -v '^ *+' conftest.er1 >conftest.err
  7869. rm -f conftest.er1
  7870. cat conftest.err >&5
  7871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872. (exit $ac_status); } && {
  7873. test -z "$ac_cxx_werror_flag" ||
  7874. test ! -s conftest.err
  7875. } && test -s conftest.$ac_objext; then
  7876. :
  7877. else
  7878. echo "$as_me: failed program was:" >&5
  7879. sed 's/^/| /' conftest.$ac_ext >&5
  7880. case $ac_type in
  7881. int16_t) ac_cv_c_int16_t=yes ;;
  7882. *) ac_cv_c_int16_t=$ac_type ;;
  7883. esac
  7884. fi
  7885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7886. else
  7887. echo "$as_me: failed program was:" >&5
  7888. sed 's/^/| /' conftest.$ac_ext >&5
  7889. fi
  7890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7891. test "$ac_cv_c_int16_t" != no && break
  7892. done
  7893. fi
  7894. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7895. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7896. case $ac_cv_c_int16_t in #(
  7897. no|yes) ;; #(
  7898. *)
  7899. cat >>confdefs.h <<_ACEOF
  7900. #define int16_t $ac_cv_c_int16_t
  7901. _ACEOF
  7902. ;;
  7903. esac
  7904. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7905. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7906. if test "${ac_cv_c_int32_t+set}" = set; then
  7907. echo $ECHO_N "(cached) $ECHO_C" >&6
  7908. else
  7909. ac_cv_c_int32_t=no
  7910. for ac_type in 'int32_t' 'int' 'long int' \
  7911. 'long long int' 'short int' 'signed char'; do
  7912. cat >conftest.$ac_ext <<_ACEOF
  7913. /* confdefs.h. */
  7914. _ACEOF
  7915. cat confdefs.h >>conftest.$ac_ext
  7916. cat >>conftest.$ac_ext <<_ACEOF
  7917. /* end confdefs.h. */
  7918. $ac_includes_default
  7919. int
  7920. main ()
  7921. {
  7922. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7923. test_array [0] = 0
  7924. ;
  7925. return 0;
  7926. }
  7927. _ACEOF
  7928. rm -f conftest.$ac_objext
  7929. if { (ac_try="$ac_compile"
  7930. case "(($ac_try" in
  7931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7932. *) ac_try_echo=$ac_try;;
  7933. esac
  7934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7935. (eval "$ac_compile") 2>conftest.er1
  7936. ac_status=$?
  7937. grep -v '^ *+' conftest.er1 >conftest.err
  7938. rm -f conftest.er1
  7939. cat conftest.err >&5
  7940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7941. (exit $ac_status); } && {
  7942. test -z "$ac_cxx_werror_flag" ||
  7943. test ! -s conftest.err
  7944. } && test -s conftest.$ac_objext; then
  7945. cat >conftest.$ac_ext <<_ACEOF
  7946. /* confdefs.h. */
  7947. _ACEOF
  7948. cat confdefs.h >>conftest.$ac_ext
  7949. cat >>conftest.$ac_ext <<_ACEOF
  7950. /* end confdefs.h. */
  7951. $ac_includes_default
  7952. int
  7953. main ()
  7954. {
  7955. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7956. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7957. test_array [0] = 0
  7958. ;
  7959. return 0;
  7960. }
  7961. _ACEOF
  7962. rm -f conftest.$ac_objext
  7963. if { (ac_try="$ac_compile"
  7964. case "(($ac_try" in
  7965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7966. *) ac_try_echo=$ac_try;;
  7967. esac
  7968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7969. (eval "$ac_compile") 2>conftest.er1
  7970. ac_status=$?
  7971. grep -v '^ *+' conftest.er1 >conftest.err
  7972. rm -f conftest.er1
  7973. cat conftest.err >&5
  7974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7975. (exit $ac_status); } && {
  7976. test -z "$ac_cxx_werror_flag" ||
  7977. test ! -s conftest.err
  7978. } && test -s conftest.$ac_objext; then
  7979. :
  7980. else
  7981. echo "$as_me: failed program was:" >&5
  7982. sed 's/^/| /' conftest.$ac_ext >&5
  7983. case $ac_type in
  7984. int32_t) ac_cv_c_int32_t=yes ;;
  7985. *) ac_cv_c_int32_t=$ac_type ;;
  7986. esac
  7987. fi
  7988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7989. else
  7990. echo "$as_me: failed program was:" >&5
  7991. sed 's/^/| /' conftest.$ac_ext >&5
  7992. fi
  7993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7994. test "$ac_cv_c_int32_t" != no && break
  7995. done
  7996. fi
  7997. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7998. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7999. case $ac_cv_c_int32_t in #(
  8000. no|yes) ;; #(
  8001. *)
  8002. cat >>confdefs.h <<_ACEOF
  8003. #define int32_t $ac_cv_c_int32_t
  8004. _ACEOF
  8005. ;;
  8006. esac
  8007. { echo "$as_me:$LINENO: checking for int64_t" >&5
  8008. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  8009. if test "${ac_cv_c_int64_t+set}" = set; then
  8010. echo $ECHO_N "(cached) $ECHO_C" >&6
  8011. else
  8012. ac_cv_c_int64_t=no
  8013. for ac_type in 'int64_t' 'int' 'long int' \
  8014. 'long long int' 'short int' 'signed char'; do
  8015. cat >conftest.$ac_ext <<_ACEOF
  8016. /* confdefs.h. */
  8017. _ACEOF
  8018. cat confdefs.h >>conftest.$ac_ext
  8019. cat >>conftest.$ac_ext <<_ACEOF
  8020. /* end confdefs.h. */
  8021. $ac_includes_default
  8022. int
  8023. main ()
  8024. {
  8025. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8026. test_array [0] = 0
  8027. ;
  8028. return 0;
  8029. }
  8030. _ACEOF
  8031. rm -f conftest.$ac_objext
  8032. if { (ac_try="$ac_compile"
  8033. case "(($ac_try" in
  8034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8035. *) ac_try_echo=$ac_try;;
  8036. esac
  8037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8038. (eval "$ac_compile") 2>conftest.er1
  8039. ac_status=$?
  8040. grep -v '^ *+' conftest.er1 >conftest.err
  8041. rm -f conftest.er1
  8042. cat conftest.err >&5
  8043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044. (exit $ac_status); } && {
  8045. test -z "$ac_cxx_werror_flag" ||
  8046. test ! -s conftest.err
  8047. } && test -s conftest.$ac_objext; then
  8048. cat >conftest.$ac_ext <<_ACEOF
  8049. /* confdefs.h. */
  8050. _ACEOF
  8051. cat confdefs.h >>conftest.$ac_ext
  8052. cat >>conftest.$ac_ext <<_ACEOF
  8053. /* end confdefs.h. */
  8054. $ac_includes_default
  8055. int
  8056. main ()
  8057. {
  8058. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8059. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8060. test_array [0] = 0
  8061. ;
  8062. return 0;
  8063. }
  8064. _ACEOF
  8065. rm -f conftest.$ac_objext
  8066. if { (ac_try="$ac_compile"
  8067. case "(($ac_try" in
  8068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8069. *) ac_try_echo=$ac_try;;
  8070. esac
  8071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8072. (eval "$ac_compile") 2>conftest.er1
  8073. ac_status=$?
  8074. grep -v '^ *+' conftest.er1 >conftest.err
  8075. rm -f conftest.er1
  8076. cat conftest.err >&5
  8077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. (exit $ac_status); } && {
  8079. test -z "$ac_cxx_werror_flag" ||
  8080. test ! -s conftest.err
  8081. } && test -s conftest.$ac_objext; then
  8082. :
  8083. else
  8084. echo "$as_me: failed program was:" >&5
  8085. sed 's/^/| /' conftest.$ac_ext >&5
  8086. case $ac_type in
  8087. int64_t) ac_cv_c_int64_t=yes ;;
  8088. *) ac_cv_c_int64_t=$ac_type ;;
  8089. esac
  8090. fi
  8091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8092. else
  8093. echo "$as_me: failed program was:" >&5
  8094. sed 's/^/| /' conftest.$ac_ext >&5
  8095. fi
  8096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8097. test "$ac_cv_c_int64_t" != no && break
  8098. done
  8099. fi
  8100. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8101. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8102. case $ac_cv_c_int64_t in #(
  8103. no|yes) ;; #(
  8104. *)
  8105. cat >>confdefs.h <<_ACEOF
  8106. #define int64_t $ac_cv_c_int64_t
  8107. _ACEOF
  8108. ;;
  8109. esac
  8110. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8111. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8112. if test "${ac_cv_c_int8_t+set}" = set; then
  8113. echo $ECHO_N "(cached) $ECHO_C" >&6
  8114. else
  8115. ac_cv_c_int8_t=no
  8116. for ac_type in 'int8_t' 'int' 'long int' \
  8117. 'long long int' 'short int' 'signed char'; do
  8118. cat >conftest.$ac_ext <<_ACEOF
  8119. /* confdefs.h. */
  8120. _ACEOF
  8121. cat confdefs.h >>conftest.$ac_ext
  8122. cat >>conftest.$ac_ext <<_ACEOF
  8123. /* end confdefs.h. */
  8124. $ac_includes_default
  8125. int
  8126. main ()
  8127. {
  8128. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8129. test_array [0] = 0
  8130. ;
  8131. return 0;
  8132. }
  8133. _ACEOF
  8134. rm -f conftest.$ac_objext
  8135. if { (ac_try="$ac_compile"
  8136. case "(($ac_try" in
  8137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8138. *) ac_try_echo=$ac_try;;
  8139. esac
  8140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8141. (eval "$ac_compile") 2>conftest.er1
  8142. ac_status=$?
  8143. grep -v '^ *+' conftest.er1 >conftest.err
  8144. rm -f conftest.er1
  8145. cat conftest.err >&5
  8146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8147. (exit $ac_status); } && {
  8148. test -z "$ac_cxx_werror_flag" ||
  8149. test ! -s conftest.err
  8150. } && test -s conftest.$ac_objext; then
  8151. cat >conftest.$ac_ext <<_ACEOF
  8152. /* confdefs.h. */
  8153. _ACEOF
  8154. cat confdefs.h >>conftest.$ac_ext
  8155. cat >>conftest.$ac_ext <<_ACEOF
  8156. /* end confdefs.h. */
  8157. $ac_includes_default
  8158. int
  8159. main ()
  8160. {
  8161. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8162. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8163. test_array [0] = 0
  8164. ;
  8165. return 0;
  8166. }
  8167. _ACEOF
  8168. rm -f conftest.$ac_objext
  8169. if { (ac_try="$ac_compile"
  8170. case "(($ac_try" in
  8171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8172. *) ac_try_echo=$ac_try;;
  8173. esac
  8174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8175. (eval "$ac_compile") 2>conftest.er1
  8176. ac_status=$?
  8177. grep -v '^ *+' conftest.er1 >conftest.err
  8178. rm -f conftest.er1
  8179. cat conftest.err >&5
  8180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8181. (exit $ac_status); } && {
  8182. test -z "$ac_cxx_werror_flag" ||
  8183. test ! -s conftest.err
  8184. } && test -s conftest.$ac_objext; then
  8185. :
  8186. else
  8187. echo "$as_me: failed program was:" >&5
  8188. sed 's/^/| /' conftest.$ac_ext >&5
  8189. case $ac_type in
  8190. int8_t) ac_cv_c_int8_t=yes ;;
  8191. *) ac_cv_c_int8_t=$ac_type ;;
  8192. esac
  8193. fi
  8194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8195. else
  8196. echo "$as_me: failed program was:" >&5
  8197. sed 's/^/| /' conftest.$ac_ext >&5
  8198. fi
  8199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8200. test "$ac_cv_c_int8_t" != no && break
  8201. done
  8202. fi
  8203. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8204. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8205. case $ac_cv_c_int8_t in #(
  8206. no|yes) ;; #(
  8207. *)
  8208. cat >>confdefs.h <<_ACEOF
  8209. #define int8_t $ac_cv_c_int8_t
  8210. _ACEOF
  8211. ;;
  8212. esac
  8213. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8214. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8215. if test "${ac_cv_type_mode_t+set}" = set; then
  8216. echo $ECHO_N "(cached) $ECHO_C" >&6
  8217. else
  8218. cat >conftest.$ac_ext <<_ACEOF
  8219. /* confdefs.h. */
  8220. _ACEOF
  8221. cat confdefs.h >>conftest.$ac_ext
  8222. cat >>conftest.$ac_ext <<_ACEOF
  8223. /* end confdefs.h. */
  8224. $ac_includes_default
  8225. typedef mode_t ac__type_new_;
  8226. int
  8227. main ()
  8228. {
  8229. if ((ac__type_new_ *) 0)
  8230. return 0;
  8231. if (sizeof (ac__type_new_))
  8232. return 0;
  8233. ;
  8234. return 0;
  8235. }
  8236. _ACEOF
  8237. rm -f conftest.$ac_objext
  8238. if { (ac_try="$ac_compile"
  8239. case "(($ac_try" in
  8240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8241. *) ac_try_echo=$ac_try;;
  8242. esac
  8243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8244. (eval "$ac_compile") 2>conftest.er1
  8245. ac_status=$?
  8246. grep -v '^ *+' conftest.er1 >conftest.err
  8247. rm -f conftest.er1
  8248. cat conftest.err >&5
  8249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8250. (exit $ac_status); } && {
  8251. test -z "$ac_cxx_werror_flag" ||
  8252. test ! -s conftest.err
  8253. } && test -s conftest.$ac_objext; then
  8254. ac_cv_type_mode_t=yes
  8255. else
  8256. echo "$as_me: failed program was:" >&5
  8257. sed 's/^/| /' conftest.$ac_ext >&5
  8258. ac_cv_type_mode_t=no
  8259. fi
  8260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8261. fi
  8262. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8263. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8264. if test $ac_cv_type_mode_t = yes; then
  8265. :
  8266. else
  8267. cat >>confdefs.h <<_ACEOF
  8268. #define mode_t int
  8269. _ACEOF
  8270. fi
  8271. { echo "$as_me:$LINENO: checking for off_t" >&5
  8272. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8273. if test "${ac_cv_type_off_t+set}" = set; then
  8274. echo $ECHO_N "(cached) $ECHO_C" >&6
  8275. else
  8276. cat >conftest.$ac_ext <<_ACEOF
  8277. /* confdefs.h. */
  8278. _ACEOF
  8279. cat confdefs.h >>conftest.$ac_ext
  8280. cat >>conftest.$ac_ext <<_ACEOF
  8281. /* end confdefs.h. */
  8282. $ac_includes_default
  8283. typedef off_t ac__type_new_;
  8284. int
  8285. main ()
  8286. {
  8287. if ((ac__type_new_ *) 0)
  8288. return 0;
  8289. if (sizeof (ac__type_new_))
  8290. return 0;
  8291. ;
  8292. return 0;
  8293. }
  8294. _ACEOF
  8295. rm -f conftest.$ac_objext
  8296. if { (ac_try="$ac_compile"
  8297. case "(($ac_try" in
  8298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8299. *) ac_try_echo=$ac_try;;
  8300. esac
  8301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8302. (eval "$ac_compile") 2>conftest.er1
  8303. ac_status=$?
  8304. grep -v '^ *+' conftest.er1 >conftest.err
  8305. rm -f conftest.er1
  8306. cat conftest.err >&5
  8307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8308. (exit $ac_status); } && {
  8309. test -z "$ac_cxx_werror_flag" ||
  8310. test ! -s conftest.err
  8311. } && test -s conftest.$ac_objext; then
  8312. ac_cv_type_off_t=yes
  8313. else
  8314. echo "$as_me: failed program was:" >&5
  8315. sed 's/^/| /' conftest.$ac_ext >&5
  8316. ac_cv_type_off_t=no
  8317. fi
  8318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8319. fi
  8320. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8321. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8322. if test $ac_cv_type_off_t = yes; then
  8323. :
  8324. else
  8325. cat >>confdefs.h <<_ACEOF
  8326. #define off_t long int
  8327. _ACEOF
  8328. fi
  8329. { echo "$as_me:$LINENO: checking for size_t" >&5
  8330. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8331. if test "${ac_cv_type_size_t+set}" = set; then
  8332. echo $ECHO_N "(cached) $ECHO_C" >&6
  8333. else
  8334. cat >conftest.$ac_ext <<_ACEOF
  8335. /* confdefs.h. */
  8336. _ACEOF
  8337. cat confdefs.h >>conftest.$ac_ext
  8338. cat >>conftest.$ac_ext <<_ACEOF
  8339. /* end confdefs.h. */
  8340. $ac_includes_default
  8341. typedef size_t ac__type_new_;
  8342. int
  8343. main ()
  8344. {
  8345. if ((ac__type_new_ *) 0)
  8346. return 0;
  8347. if (sizeof (ac__type_new_))
  8348. return 0;
  8349. ;
  8350. return 0;
  8351. }
  8352. _ACEOF
  8353. rm -f conftest.$ac_objext
  8354. if { (ac_try="$ac_compile"
  8355. case "(($ac_try" in
  8356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8357. *) ac_try_echo=$ac_try;;
  8358. esac
  8359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8360. (eval "$ac_compile") 2>conftest.er1
  8361. ac_status=$?
  8362. grep -v '^ *+' conftest.er1 >conftest.err
  8363. rm -f conftest.er1
  8364. cat conftest.err >&5
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. (exit $ac_status); } && {
  8367. test -z "$ac_cxx_werror_flag" ||
  8368. test ! -s conftest.err
  8369. } && test -s conftest.$ac_objext; then
  8370. ac_cv_type_size_t=yes
  8371. else
  8372. echo "$as_me: failed program was:" >&5
  8373. sed 's/^/| /' conftest.$ac_ext >&5
  8374. ac_cv_type_size_t=no
  8375. fi
  8376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8377. fi
  8378. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8379. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8380. if test $ac_cv_type_size_t = yes; then
  8381. :
  8382. else
  8383. cat >>confdefs.h <<_ACEOF
  8384. #define size_t unsigned int
  8385. _ACEOF
  8386. fi
  8387. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8388. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8389. if test "${ac_cv_type_ssize_t+set}" = set; then
  8390. echo $ECHO_N "(cached) $ECHO_C" >&6
  8391. else
  8392. cat >conftest.$ac_ext <<_ACEOF
  8393. /* confdefs.h. */
  8394. _ACEOF
  8395. cat confdefs.h >>conftest.$ac_ext
  8396. cat >>conftest.$ac_ext <<_ACEOF
  8397. /* end confdefs.h. */
  8398. $ac_includes_default
  8399. typedef ssize_t ac__type_new_;
  8400. int
  8401. main ()
  8402. {
  8403. if ((ac__type_new_ *) 0)
  8404. return 0;
  8405. if (sizeof (ac__type_new_))
  8406. return 0;
  8407. ;
  8408. return 0;
  8409. }
  8410. _ACEOF
  8411. rm -f conftest.$ac_objext
  8412. if { (ac_try="$ac_compile"
  8413. case "(($ac_try" in
  8414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8415. *) ac_try_echo=$ac_try;;
  8416. esac
  8417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8418. (eval "$ac_compile") 2>conftest.er1
  8419. ac_status=$?
  8420. grep -v '^ *+' conftest.er1 >conftest.err
  8421. rm -f conftest.er1
  8422. cat conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); } && {
  8425. test -z "$ac_cxx_werror_flag" ||
  8426. test ! -s conftest.err
  8427. } && test -s conftest.$ac_objext; then
  8428. ac_cv_type_ssize_t=yes
  8429. else
  8430. echo "$as_me: failed program was:" >&5
  8431. sed 's/^/| /' conftest.$ac_ext >&5
  8432. ac_cv_type_ssize_t=no
  8433. fi
  8434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8435. fi
  8436. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8437. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8438. if test $ac_cv_type_ssize_t = yes; then
  8439. :
  8440. else
  8441. cat >>confdefs.h <<_ACEOF
  8442. #define ssize_t int
  8443. _ACEOF
  8444. fi
  8445. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8446. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8447. if test "${ac_cv_header_time+set}" = set; then
  8448. echo $ECHO_N "(cached) $ECHO_C" >&6
  8449. else
  8450. cat >conftest.$ac_ext <<_ACEOF
  8451. /* confdefs.h. */
  8452. _ACEOF
  8453. cat confdefs.h >>conftest.$ac_ext
  8454. cat >>conftest.$ac_ext <<_ACEOF
  8455. /* end confdefs.h. */
  8456. #include <sys/types.h>
  8457. #include <sys/time.h>
  8458. #include <time.h>
  8459. int
  8460. main ()
  8461. {
  8462. if ((struct tm *) 0)
  8463. return 0;
  8464. ;
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. rm -f conftest.$ac_objext
  8469. if { (ac_try="$ac_compile"
  8470. case "(($ac_try" in
  8471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8472. *) ac_try_echo=$ac_try;;
  8473. esac
  8474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8475. (eval "$ac_compile") 2>conftest.er1
  8476. ac_status=$?
  8477. grep -v '^ *+' conftest.er1 >conftest.err
  8478. rm -f conftest.er1
  8479. cat conftest.err >&5
  8480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8481. (exit $ac_status); } && {
  8482. test -z "$ac_cxx_werror_flag" ||
  8483. test ! -s conftest.err
  8484. } && test -s conftest.$ac_objext; then
  8485. ac_cv_header_time=yes
  8486. else
  8487. echo "$as_me: failed program was:" >&5
  8488. sed 's/^/| /' conftest.$ac_ext >&5
  8489. ac_cv_header_time=no
  8490. fi
  8491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8492. fi
  8493. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8494. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8495. if test $ac_cv_header_time = yes; then
  8496. cat >>confdefs.h <<\_ACEOF
  8497. #define TIME_WITH_SYS_TIME 1
  8498. _ACEOF
  8499. fi
  8500. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8501. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8502. if test "${ac_cv_struct_tm+set}" = set; then
  8503. echo $ECHO_N "(cached) $ECHO_C" >&6
  8504. else
  8505. cat >conftest.$ac_ext <<_ACEOF
  8506. /* confdefs.h. */
  8507. _ACEOF
  8508. cat confdefs.h >>conftest.$ac_ext
  8509. cat >>conftest.$ac_ext <<_ACEOF
  8510. /* end confdefs.h. */
  8511. #include <sys/types.h>
  8512. #include <time.h>
  8513. int
  8514. main ()
  8515. {
  8516. struct tm tm;
  8517. int *p = &tm.tm_sec;
  8518. return !p;
  8519. ;
  8520. return 0;
  8521. }
  8522. _ACEOF
  8523. rm -f conftest.$ac_objext
  8524. if { (ac_try="$ac_compile"
  8525. case "(($ac_try" in
  8526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8527. *) ac_try_echo=$ac_try;;
  8528. esac
  8529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8530. (eval "$ac_compile") 2>conftest.er1
  8531. ac_status=$?
  8532. grep -v '^ *+' conftest.er1 >conftest.err
  8533. rm -f conftest.er1
  8534. cat conftest.err >&5
  8535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. (exit $ac_status); } && {
  8537. test -z "$ac_cxx_werror_flag" ||
  8538. test ! -s conftest.err
  8539. } && test -s conftest.$ac_objext; then
  8540. ac_cv_struct_tm=time.h
  8541. else
  8542. echo "$as_me: failed program was:" >&5
  8543. sed 's/^/| /' conftest.$ac_ext >&5
  8544. ac_cv_struct_tm=sys/time.h
  8545. fi
  8546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8547. fi
  8548. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8549. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8550. if test $ac_cv_struct_tm = sys/time.h; then
  8551. cat >>confdefs.h <<\_ACEOF
  8552. #define TM_IN_SYS_TIME 1
  8553. _ACEOF
  8554. fi
  8555. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8556. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8557. if test "${ac_cv_c_uint16_t+set}" = set; then
  8558. echo $ECHO_N "(cached) $ECHO_C" >&6
  8559. else
  8560. ac_cv_c_uint16_t=no
  8561. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8562. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8563. cat >conftest.$ac_ext <<_ACEOF
  8564. /* confdefs.h. */
  8565. _ACEOF
  8566. cat confdefs.h >>conftest.$ac_ext
  8567. cat >>conftest.$ac_ext <<_ACEOF
  8568. /* end confdefs.h. */
  8569. $ac_includes_default
  8570. int
  8571. main ()
  8572. {
  8573. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8574. test_array [0] = 0
  8575. ;
  8576. return 0;
  8577. }
  8578. _ACEOF
  8579. rm -f conftest.$ac_objext
  8580. if { (ac_try="$ac_compile"
  8581. case "(($ac_try" in
  8582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8583. *) ac_try_echo=$ac_try;;
  8584. esac
  8585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8586. (eval "$ac_compile") 2>conftest.er1
  8587. ac_status=$?
  8588. grep -v '^ *+' conftest.er1 >conftest.err
  8589. rm -f conftest.er1
  8590. cat conftest.err >&5
  8591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8592. (exit $ac_status); } && {
  8593. test -z "$ac_cxx_werror_flag" ||
  8594. test ! -s conftest.err
  8595. } && test -s conftest.$ac_objext; then
  8596. case $ac_type in
  8597. uint16_t) ac_cv_c_uint16_t=yes ;;
  8598. *) ac_cv_c_uint16_t=$ac_type ;;
  8599. esac
  8600. else
  8601. echo "$as_me: failed program was:" >&5
  8602. sed 's/^/| /' conftest.$ac_ext >&5
  8603. fi
  8604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8605. test "$ac_cv_c_uint16_t" != no && break
  8606. done
  8607. fi
  8608. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8609. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8610. case $ac_cv_c_uint16_t in #(
  8611. no|yes) ;; #(
  8612. *)
  8613. cat >>confdefs.h <<_ACEOF
  8614. #define uint16_t $ac_cv_c_uint16_t
  8615. _ACEOF
  8616. ;;
  8617. esac
  8618. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8619. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8620. if test "${ac_cv_c_uint32_t+set}" = set; then
  8621. echo $ECHO_N "(cached) $ECHO_C" >&6
  8622. else
  8623. ac_cv_c_uint32_t=no
  8624. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8625. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8626. cat >conftest.$ac_ext <<_ACEOF
  8627. /* confdefs.h. */
  8628. _ACEOF
  8629. cat confdefs.h >>conftest.$ac_ext
  8630. cat >>conftest.$ac_ext <<_ACEOF
  8631. /* end confdefs.h. */
  8632. $ac_includes_default
  8633. int
  8634. main ()
  8635. {
  8636. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8637. test_array [0] = 0
  8638. ;
  8639. return 0;
  8640. }
  8641. _ACEOF
  8642. rm -f conftest.$ac_objext
  8643. if { (ac_try="$ac_compile"
  8644. case "(($ac_try" in
  8645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8646. *) ac_try_echo=$ac_try;;
  8647. esac
  8648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8649. (eval "$ac_compile") 2>conftest.er1
  8650. ac_status=$?
  8651. grep -v '^ *+' conftest.er1 >conftest.err
  8652. rm -f conftest.er1
  8653. cat conftest.err >&5
  8654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8655. (exit $ac_status); } && {
  8656. test -z "$ac_cxx_werror_flag" ||
  8657. test ! -s conftest.err
  8658. } && test -s conftest.$ac_objext; then
  8659. case $ac_type in
  8660. uint32_t) ac_cv_c_uint32_t=yes ;;
  8661. *) ac_cv_c_uint32_t=$ac_type ;;
  8662. esac
  8663. else
  8664. echo "$as_me: failed program was:" >&5
  8665. sed 's/^/| /' conftest.$ac_ext >&5
  8666. fi
  8667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8668. test "$ac_cv_c_uint32_t" != no && break
  8669. done
  8670. fi
  8671. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8672. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8673. case $ac_cv_c_uint32_t in #(
  8674. no|yes) ;; #(
  8675. *)
  8676. cat >>confdefs.h <<\_ACEOF
  8677. #define _UINT32_T 1
  8678. _ACEOF
  8679. cat >>confdefs.h <<_ACEOF
  8680. #define uint32_t $ac_cv_c_uint32_t
  8681. _ACEOF
  8682. ;;
  8683. esac
  8684. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8685. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8686. if test "${ac_cv_c_uint64_t+set}" = set; then
  8687. echo $ECHO_N "(cached) $ECHO_C" >&6
  8688. else
  8689. ac_cv_c_uint64_t=no
  8690. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8691. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8692. cat >conftest.$ac_ext <<_ACEOF
  8693. /* confdefs.h. */
  8694. _ACEOF
  8695. cat confdefs.h >>conftest.$ac_ext
  8696. cat >>conftest.$ac_ext <<_ACEOF
  8697. /* end confdefs.h. */
  8698. $ac_includes_default
  8699. int
  8700. main ()
  8701. {
  8702. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8703. test_array [0] = 0
  8704. ;
  8705. return 0;
  8706. }
  8707. _ACEOF
  8708. rm -f conftest.$ac_objext
  8709. if { (ac_try="$ac_compile"
  8710. case "(($ac_try" in
  8711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8712. *) ac_try_echo=$ac_try;;
  8713. esac
  8714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8715. (eval "$ac_compile") 2>conftest.er1
  8716. ac_status=$?
  8717. grep -v '^ *+' conftest.er1 >conftest.err
  8718. rm -f conftest.er1
  8719. cat conftest.err >&5
  8720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8721. (exit $ac_status); } && {
  8722. test -z "$ac_cxx_werror_flag" ||
  8723. test ! -s conftest.err
  8724. } && test -s conftest.$ac_objext; then
  8725. case $ac_type in
  8726. uint64_t) ac_cv_c_uint64_t=yes ;;
  8727. *) ac_cv_c_uint64_t=$ac_type ;;
  8728. esac
  8729. else
  8730. echo "$as_me: failed program was:" >&5
  8731. sed 's/^/| /' conftest.$ac_ext >&5
  8732. fi
  8733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8734. test "$ac_cv_c_uint64_t" != no && break
  8735. done
  8736. fi
  8737. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8738. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8739. case $ac_cv_c_uint64_t in #(
  8740. no|yes) ;; #(
  8741. *)
  8742. cat >>confdefs.h <<\_ACEOF
  8743. #define _UINT64_T 1
  8744. _ACEOF
  8745. cat >>confdefs.h <<_ACEOF
  8746. #define uint64_t $ac_cv_c_uint64_t
  8747. _ACEOF
  8748. ;;
  8749. esac
  8750. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8751. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8752. if test "${ac_cv_c_uint8_t+set}" = set; then
  8753. echo $ECHO_N "(cached) $ECHO_C" >&6
  8754. else
  8755. ac_cv_c_uint8_t=no
  8756. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8757. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8758. cat >conftest.$ac_ext <<_ACEOF
  8759. /* confdefs.h. */
  8760. _ACEOF
  8761. cat confdefs.h >>conftest.$ac_ext
  8762. cat >>conftest.$ac_ext <<_ACEOF
  8763. /* end confdefs.h. */
  8764. $ac_includes_default
  8765. int
  8766. main ()
  8767. {
  8768. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8769. test_array [0] = 0
  8770. ;
  8771. return 0;
  8772. }
  8773. _ACEOF
  8774. rm -f conftest.$ac_objext
  8775. if { (ac_try="$ac_compile"
  8776. case "(($ac_try" in
  8777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8778. *) ac_try_echo=$ac_try;;
  8779. esac
  8780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8781. (eval "$ac_compile") 2>conftest.er1
  8782. ac_status=$?
  8783. grep -v '^ *+' conftest.er1 >conftest.err
  8784. rm -f conftest.er1
  8785. cat conftest.err >&5
  8786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8787. (exit $ac_status); } && {
  8788. test -z "$ac_cxx_werror_flag" ||
  8789. test ! -s conftest.err
  8790. } && test -s conftest.$ac_objext; then
  8791. case $ac_type in
  8792. uint8_t) ac_cv_c_uint8_t=yes ;;
  8793. *) ac_cv_c_uint8_t=$ac_type ;;
  8794. esac
  8795. else
  8796. echo "$as_me: failed program was:" >&5
  8797. sed 's/^/| /' conftest.$ac_ext >&5
  8798. fi
  8799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8800. test "$ac_cv_c_uint8_t" != no && break
  8801. done
  8802. fi
  8803. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8804. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8805. case $ac_cv_c_uint8_t in #(
  8806. no|yes) ;; #(
  8807. *)
  8808. cat >>confdefs.h <<\_ACEOF
  8809. #define _UINT8_T 1
  8810. _ACEOF
  8811. cat >>confdefs.h <<_ACEOF
  8812. #define uint8_t $ac_cv_c_uint8_t
  8813. _ACEOF
  8814. ;;
  8815. esac
  8816. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8817. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8818. if test "${ac_cv_c_volatile+set}" = set; then
  8819. echo $ECHO_N "(cached) $ECHO_C" >&6
  8820. else
  8821. cat >conftest.$ac_ext <<_ACEOF
  8822. /* confdefs.h. */
  8823. _ACEOF
  8824. cat confdefs.h >>conftest.$ac_ext
  8825. cat >>conftest.$ac_ext <<_ACEOF
  8826. /* end confdefs.h. */
  8827. int
  8828. main ()
  8829. {
  8830. volatile int x;
  8831. int * volatile y = (int *) 0;
  8832. return !x && !y;
  8833. ;
  8834. return 0;
  8835. }
  8836. _ACEOF
  8837. rm -f conftest.$ac_objext
  8838. if { (ac_try="$ac_compile"
  8839. case "(($ac_try" in
  8840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8841. *) ac_try_echo=$ac_try;;
  8842. esac
  8843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8844. (eval "$ac_compile") 2>conftest.er1
  8845. ac_status=$?
  8846. grep -v '^ *+' conftest.er1 >conftest.err
  8847. rm -f conftest.er1
  8848. cat conftest.err >&5
  8849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8850. (exit $ac_status); } && {
  8851. test -z "$ac_cxx_werror_flag" ||
  8852. test ! -s conftest.err
  8853. } && test -s conftest.$ac_objext; then
  8854. ac_cv_c_volatile=yes
  8855. else
  8856. echo "$as_me: failed program was:" >&5
  8857. sed 's/^/| /' conftest.$ac_ext >&5
  8858. ac_cv_c_volatile=no
  8859. fi
  8860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8861. fi
  8862. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8863. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8864. if test $ac_cv_c_volatile = no; then
  8865. cat >>confdefs.h <<\_ACEOF
  8866. #define volatile
  8867. _ACEOF
  8868. fi
  8869. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8870. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8871. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8872. echo $ECHO_N "(cached) $ECHO_C" >&6
  8873. else
  8874. cat >conftest.$ac_ext <<_ACEOF
  8875. /* confdefs.h. */
  8876. _ACEOF
  8877. cat confdefs.h >>conftest.$ac_ext
  8878. cat >>conftest.$ac_ext <<_ACEOF
  8879. /* end confdefs.h. */
  8880. $ac_includes_default
  8881. typedef ptrdiff_t ac__type_new_;
  8882. int
  8883. main ()
  8884. {
  8885. if ((ac__type_new_ *) 0)
  8886. return 0;
  8887. if (sizeof (ac__type_new_))
  8888. return 0;
  8889. ;
  8890. return 0;
  8891. }
  8892. _ACEOF
  8893. rm -f conftest.$ac_objext
  8894. if { (ac_try="$ac_compile"
  8895. case "(($ac_try" in
  8896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8897. *) ac_try_echo=$ac_try;;
  8898. esac
  8899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8900. (eval "$ac_compile") 2>conftest.er1
  8901. ac_status=$?
  8902. grep -v '^ *+' conftest.er1 >conftest.err
  8903. rm -f conftest.er1
  8904. cat conftest.err >&5
  8905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8906. (exit $ac_status); } && {
  8907. test -z "$ac_cxx_werror_flag" ||
  8908. test ! -s conftest.err
  8909. } && test -s conftest.$ac_objext; then
  8910. ac_cv_type_ptrdiff_t=yes
  8911. else
  8912. echo "$as_me: failed program was:" >&5
  8913. sed 's/^/| /' conftest.$ac_ext >&5
  8914. ac_cv_type_ptrdiff_t=no
  8915. fi
  8916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8917. fi
  8918. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8919. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8920. if test $ac_cv_type_ptrdiff_t = yes; then
  8921. cat >>confdefs.h <<_ACEOF
  8922. #define HAVE_PTRDIFF_T 1
  8923. _ACEOF
  8924. fi
  8925. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8926. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8927. if test "${ac_cv_c_bigendian+set}" = set; then
  8928. echo $ECHO_N "(cached) $ECHO_C" >&6
  8929. else
  8930. # See if sys/param.h defines the BYTE_ORDER macro.
  8931. cat >conftest.$ac_ext <<_ACEOF
  8932. /* confdefs.h. */
  8933. _ACEOF
  8934. cat confdefs.h >>conftest.$ac_ext
  8935. cat >>conftest.$ac_ext <<_ACEOF
  8936. /* end confdefs.h. */
  8937. #include <sys/types.h>
  8938. #include <sys/param.h>
  8939. int
  8940. main ()
  8941. {
  8942. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8943. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8944. bogus endian macros
  8945. #endif
  8946. ;
  8947. return 0;
  8948. }
  8949. _ACEOF
  8950. rm -f conftest.$ac_objext
  8951. if { (ac_try="$ac_compile"
  8952. case "(($ac_try" in
  8953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8954. *) ac_try_echo=$ac_try;;
  8955. esac
  8956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8957. (eval "$ac_compile") 2>conftest.er1
  8958. ac_status=$?
  8959. grep -v '^ *+' conftest.er1 >conftest.err
  8960. rm -f conftest.er1
  8961. cat conftest.err >&5
  8962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8963. (exit $ac_status); } && {
  8964. test -z "$ac_cxx_werror_flag" ||
  8965. test ! -s conftest.err
  8966. } && test -s conftest.$ac_objext; then
  8967. # It does; now see whether it defined to BIG_ENDIAN or not.
  8968. cat >conftest.$ac_ext <<_ACEOF
  8969. /* confdefs.h. */
  8970. _ACEOF
  8971. cat confdefs.h >>conftest.$ac_ext
  8972. cat >>conftest.$ac_ext <<_ACEOF
  8973. /* end confdefs.h. */
  8974. #include <sys/types.h>
  8975. #include <sys/param.h>
  8976. int
  8977. main ()
  8978. {
  8979. #if BYTE_ORDER != BIG_ENDIAN
  8980. not big endian
  8981. #endif
  8982. ;
  8983. return 0;
  8984. }
  8985. _ACEOF
  8986. rm -f conftest.$ac_objext
  8987. if { (ac_try="$ac_compile"
  8988. case "(($ac_try" in
  8989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8990. *) ac_try_echo=$ac_try;;
  8991. esac
  8992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8993. (eval "$ac_compile") 2>conftest.er1
  8994. ac_status=$?
  8995. grep -v '^ *+' conftest.er1 >conftest.err
  8996. rm -f conftest.er1
  8997. cat conftest.err >&5
  8998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8999. (exit $ac_status); } && {
  9000. test -z "$ac_cxx_werror_flag" ||
  9001. test ! -s conftest.err
  9002. } && test -s conftest.$ac_objext; then
  9003. ac_cv_c_bigendian=yes
  9004. else
  9005. echo "$as_me: failed program was:" >&5
  9006. sed 's/^/| /' conftest.$ac_ext >&5
  9007. ac_cv_c_bigendian=no
  9008. fi
  9009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9010. else
  9011. echo "$as_me: failed program was:" >&5
  9012. sed 's/^/| /' conftest.$ac_ext >&5
  9013. # It does not; compile a test program.
  9014. if test "$cross_compiling" = yes; then
  9015. # try to guess the endianness by grepping values into an object file
  9016. ac_cv_c_bigendian=unknown
  9017. cat >conftest.$ac_ext <<_ACEOF
  9018. /* confdefs.h. */
  9019. _ACEOF
  9020. cat confdefs.h >>conftest.$ac_ext
  9021. cat >>conftest.$ac_ext <<_ACEOF
  9022. /* end confdefs.h. */
  9023. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9024. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9025. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  9026. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9027. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9028. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  9029. int
  9030. main ()
  9031. {
  9032. _ascii (); _ebcdic ();
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. rm -f conftest.$ac_objext
  9038. if { (ac_try="$ac_compile"
  9039. case "(($ac_try" in
  9040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9041. *) ac_try_echo=$ac_try;;
  9042. esac
  9043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9044. (eval "$ac_compile") 2>conftest.er1
  9045. ac_status=$?
  9046. grep -v '^ *+' conftest.er1 >conftest.err
  9047. rm -f conftest.er1
  9048. cat conftest.err >&5
  9049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9050. (exit $ac_status); } && {
  9051. test -z "$ac_cxx_werror_flag" ||
  9052. test ! -s conftest.err
  9053. } && test -s conftest.$ac_objext; then
  9054. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  9055. ac_cv_c_bigendian=yes
  9056. fi
  9057. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9058. if test "$ac_cv_c_bigendian" = unknown; then
  9059. ac_cv_c_bigendian=no
  9060. else
  9061. # finding both strings is unlikely to happen, but who knows?
  9062. ac_cv_c_bigendian=unknown
  9063. fi
  9064. fi
  9065. else
  9066. echo "$as_me: failed program was:" >&5
  9067. sed 's/^/| /' conftest.$ac_ext >&5
  9068. fi
  9069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9070. else
  9071. cat >conftest.$ac_ext <<_ACEOF
  9072. /* confdefs.h. */
  9073. _ACEOF
  9074. cat confdefs.h >>conftest.$ac_ext
  9075. cat >>conftest.$ac_ext <<_ACEOF
  9076. /* end confdefs.h. */
  9077. $ac_includes_default
  9078. int
  9079. main ()
  9080. {
  9081. /* Are we little or big endian? From Harbison&Steele. */
  9082. union
  9083. {
  9084. long int l;
  9085. char c[sizeof (long int)];
  9086. } u;
  9087. u.l = 1;
  9088. return u.c[sizeof (long int) - 1] == 1;
  9089. ;
  9090. return 0;
  9091. }
  9092. _ACEOF
  9093. rm -f conftest$ac_exeext
  9094. if { (ac_try="$ac_link"
  9095. case "(($ac_try" in
  9096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9097. *) ac_try_echo=$ac_try;;
  9098. esac
  9099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9100. (eval "$ac_link") 2>&5
  9101. ac_status=$?
  9102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9103. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9104. { (case "(($ac_try" in
  9105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9106. *) ac_try_echo=$ac_try;;
  9107. esac
  9108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9109. (eval "$ac_try") 2>&5
  9110. ac_status=$?
  9111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9112. (exit $ac_status); }; }; then
  9113. ac_cv_c_bigendian=no
  9114. else
  9115. echo "$as_me: program exited with status $ac_status" >&5
  9116. echo "$as_me: failed program was:" >&5
  9117. sed 's/^/| /' conftest.$ac_ext >&5
  9118. ( exit $ac_status )
  9119. ac_cv_c_bigendian=yes
  9120. fi
  9121. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9122. fi
  9123. fi
  9124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9125. fi
  9126. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9127. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9128. case $ac_cv_c_bigendian in
  9129. yes)
  9130. cat >>confdefs.h <<\_ACEOF
  9131. #define WORDS_BIGENDIAN 1
  9132. _ACEOF
  9133. ;;
  9134. no)
  9135. ;;
  9136. *)
  9137. { { echo "$as_me:$LINENO: error: unknown endianness
  9138. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9139. echo "$as_me: error: unknown endianness
  9140. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9141. { (exit 1); exit 1; }; } ;;
  9142. esac
  9143. # Check whether --enable-largefile was given.
  9144. if test "${enable_largefile+set}" = set; then
  9145. enableval=$enable_largefile;
  9146. fi
  9147. if test "$enable_largefile" != no; then
  9148. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9149. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9150. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9151. echo $ECHO_N "(cached) $ECHO_C" >&6
  9152. else
  9153. ac_cv_sys_largefile_CC=no
  9154. if test "$GCC" != yes; then
  9155. ac_save_CC=$CC
  9156. while :; do
  9157. # IRIX 6.2 and later do not support large files by default,
  9158. # so use the C compiler's -n32 option if that helps.
  9159. cat >conftest.$ac_ext <<_ACEOF
  9160. /* confdefs.h. */
  9161. _ACEOF
  9162. cat confdefs.h >>conftest.$ac_ext
  9163. cat >>conftest.$ac_ext <<_ACEOF
  9164. /* end confdefs.h. */
  9165. #include <sys/types.h>
  9166. /* Check that off_t can represent 2**63 - 1 correctly.
  9167. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9168. since some C++ compilers masquerading as C compilers
  9169. incorrectly reject 9223372036854775807. */
  9170. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9171. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9172. && LARGE_OFF_T % 2147483647 == 1)
  9173. ? 1 : -1];
  9174. int
  9175. main ()
  9176. {
  9177. ;
  9178. return 0;
  9179. }
  9180. _ACEOF
  9181. rm -f conftest.$ac_objext
  9182. if { (ac_try="$ac_compile"
  9183. case "(($ac_try" in
  9184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9185. *) ac_try_echo=$ac_try;;
  9186. esac
  9187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9188. (eval "$ac_compile") 2>conftest.er1
  9189. ac_status=$?
  9190. grep -v '^ *+' conftest.er1 >conftest.err
  9191. rm -f conftest.er1
  9192. cat conftest.err >&5
  9193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9194. (exit $ac_status); } && {
  9195. test -z "$ac_cxx_werror_flag" ||
  9196. test ! -s conftest.err
  9197. } && test -s conftest.$ac_objext; then
  9198. break
  9199. else
  9200. echo "$as_me: failed program was:" >&5
  9201. sed 's/^/| /' conftest.$ac_ext >&5
  9202. fi
  9203. rm -f core conftest.err conftest.$ac_objext
  9204. CC="$CC -n32"
  9205. rm -f conftest.$ac_objext
  9206. if { (ac_try="$ac_compile"
  9207. case "(($ac_try" in
  9208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9209. *) ac_try_echo=$ac_try;;
  9210. esac
  9211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9212. (eval "$ac_compile") 2>conftest.er1
  9213. ac_status=$?
  9214. grep -v '^ *+' conftest.er1 >conftest.err
  9215. rm -f conftest.er1
  9216. cat conftest.err >&5
  9217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); } && {
  9219. test -z "$ac_cxx_werror_flag" ||
  9220. test ! -s conftest.err
  9221. } && test -s conftest.$ac_objext; then
  9222. ac_cv_sys_largefile_CC=' -n32'; break
  9223. else
  9224. echo "$as_me: failed program was:" >&5
  9225. sed 's/^/| /' conftest.$ac_ext >&5
  9226. fi
  9227. rm -f core conftest.err conftest.$ac_objext
  9228. break
  9229. done
  9230. CC=$ac_save_CC
  9231. rm -f conftest.$ac_ext
  9232. fi
  9233. fi
  9234. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9235. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9236. if test "$ac_cv_sys_largefile_CC" != no; then
  9237. CC=$CC$ac_cv_sys_largefile_CC
  9238. fi
  9239. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9240. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9241. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9242. echo $ECHO_N "(cached) $ECHO_C" >&6
  9243. else
  9244. while :; do
  9245. cat >conftest.$ac_ext <<_ACEOF
  9246. /* confdefs.h. */
  9247. _ACEOF
  9248. cat confdefs.h >>conftest.$ac_ext
  9249. cat >>conftest.$ac_ext <<_ACEOF
  9250. /* end confdefs.h. */
  9251. #include <sys/types.h>
  9252. /* Check that off_t can represent 2**63 - 1 correctly.
  9253. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9254. since some C++ compilers masquerading as C compilers
  9255. incorrectly reject 9223372036854775807. */
  9256. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9257. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9258. && LARGE_OFF_T % 2147483647 == 1)
  9259. ? 1 : -1];
  9260. int
  9261. main ()
  9262. {
  9263. ;
  9264. return 0;
  9265. }
  9266. _ACEOF
  9267. rm -f conftest.$ac_objext
  9268. if { (ac_try="$ac_compile"
  9269. case "(($ac_try" in
  9270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9271. *) ac_try_echo=$ac_try;;
  9272. esac
  9273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9274. (eval "$ac_compile") 2>conftest.er1
  9275. ac_status=$?
  9276. grep -v '^ *+' conftest.er1 >conftest.err
  9277. rm -f conftest.er1
  9278. cat conftest.err >&5
  9279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9280. (exit $ac_status); } && {
  9281. test -z "$ac_cxx_werror_flag" ||
  9282. test ! -s conftest.err
  9283. } && test -s conftest.$ac_objext; then
  9284. ac_cv_sys_file_offset_bits=no; break
  9285. else
  9286. echo "$as_me: failed program was:" >&5
  9287. sed 's/^/| /' conftest.$ac_ext >&5
  9288. fi
  9289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9290. cat >conftest.$ac_ext <<_ACEOF
  9291. /* confdefs.h. */
  9292. _ACEOF
  9293. cat confdefs.h >>conftest.$ac_ext
  9294. cat >>conftest.$ac_ext <<_ACEOF
  9295. /* end confdefs.h. */
  9296. #define _FILE_OFFSET_BITS 64
  9297. #include <sys/types.h>
  9298. /* Check that off_t can represent 2**63 - 1 correctly.
  9299. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9300. since some C++ compilers masquerading as C compilers
  9301. incorrectly reject 9223372036854775807. */
  9302. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9303. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9304. && LARGE_OFF_T % 2147483647 == 1)
  9305. ? 1 : -1];
  9306. int
  9307. main ()
  9308. {
  9309. ;
  9310. return 0;
  9311. }
  9312. _ACEOF
  9313. rm -f conftest.$ac_objext
  9314. if { (ac_try="$ac_compile"
  9315. case "(($ac_try" in
  9316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9317. *) ac_try_echo=$ac_try;;
  9318. esac
  9319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9320. (eval "$ac_compile") 2>conftest.er1
  9321. ac_status=$?
  9322. grep -v '^ *+' conftest.er1 >conftest.err
  9323. rm -f conftest.er1
  9324. cat conftest.err >&5
  9325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9326. (exit $ac_status); } && {
  9327. test -z "$ac_cxx_werror_flag" ||
  9328. test ! -s conftest.err
  9329. } && test -s conftest.$ac_objext; then
  9330. ac_cv_sys_file_offset_bits=64; break
  9331. else
  9332. echo "$as_me: failed program was:" >&5
  9333. sed 's/^/| /' conftest.$ac_ext >&5
  9334. fi
  9335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9336. ac_cv_sys_file_offset_bits=unknown
  9337. break
  9338. done
  9339. fi
  9340. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9341. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9342. case $ac_cv_sys_file_offset_bits in #(
  9343. no | unknown) ;;
  9344. *)
  9345. cat >>confdefs.h <<_ACEOF
  9346. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9347. _ACEOF
  9348. ;;
  9349. esac
  9350. rm -f conftest*
  9351. if test $ac_cv_sys_file_offset_bits = unknown; then
  9352. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9353. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9354. if test "${ac_cv_sys_large_files+set}" = set; then
  9355. echo $ECHO_N "(cached) $ECHO_C" >&6
  9356. else
  9357. while :; do
  9358. cat >conftest.$ac_ext <<_ACEOF
  9359. /* confdefs.h. */
  9360. _ACEOF
  9361. cat confdefs.h >>conftest.$ac_ext
  9362. cat >>conftest.$ac_ext <<_ACEOF
  9363. /* end confdefs.h. */
  9364. #include <sys/types.h>
  9365. /* Check that off_t can represent 2**63 - 1 correctly.
  9366. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9367. since some C++ compilers masquerading as C compilers
  9368. incorrectly reject 9223372036854775807. */
  9369. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9370. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9371. && LARGE_OFF_T % 2147483647 == 1)
  9372. ? 1 : -1];
  9373. int
  9374. main ()
  9375. {
  9376. ;
  9377. return 0;
  9378. }
  9379. _ACEOF
  9380. rm -f conftest.$ac_objext
  9381. if { (ac_try="$ac_compile"
  9382. case "(($ac_try" in
  9383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9384. *) ac_try_echo=$ac_try;;
  9385. esac
  9386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9387. (eval "$ac_compile") 2>conftest.er1
  9388. ac_status=$?
  9389. grep -v '^ *+' conftest.er1 >conftest.err
  9390. rm -f conftest.er1
  9391. cat conftest.err >&5
  9392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9393. (exit $ac_status); } && {
  9394. test -z "$ac_cxx_werror_flag" ||
  9395. test ! -s conftest.err
  9396. } && test -s conftest.$ac_objext; then
  9397. ac_cv_sys_large_files=no; break
  9398. else
  9399. echo "$as_me: failed program was:" >&5
  9400. sed 's/^/| /' conftest.$ac_ext >&5
  9401. fi
  9402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9403. cat >conftest.$ac_ext <<_ACEOF
  9404. /* confdefs.h. */
  9405. _ACEOF
  9406. cat confdefs.h >>conftest.$ac_ext
  9407. cat >>conftest.$ac_ext <<_ACEOF
  9408. /* end confdefs.h. */
  9409. #define _LARGE_FILES 1
  9410. #include <sys/types.h>
  9411. /* Check that off_t can represent 2**63 - 1 correctly.
  9412. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9413. since some C++ compilers masquerading as C compilers
  9414. incorrectly reject 9223372036854775807. */
  9415. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9416. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9417. && LARGE_OFF_T % 2147483647 == 1)
  9418. ? 1 : -1];
  9419. int
  9420. main ()
  9421. {
  9422. ;
  9423. return 0;
  9424. }
  9425. _ACEOF
  9426. rm -f conftest.$ac_objext
  9427. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  9434. ac_status=$?
  9435. grep -v '^ *+' conftest.er1 >conftest.err
  9436. rm -f conftest.er1
  9437. cat conftest.err >&5
  9438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9439. (exit $ac_status); } && {
  9440. test -z "$ac_cxx_werror_flag" ||
  9441. test ! -s conftest.err
  9442. } && test -s conftest.$ac_objext; then
  9443. ac_cv_sys_large_files=1; break
  9444. else
  9445. echo "$as_me: failed program was:" >&5
  9446. sed 's/^/| /' conftest.$ac_ext >&5
  9447. fi
  9448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9449. ac_cv_sys_large_files=unknown
  9450. break
  9451. done
  9452. fi
  9453. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9454. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9455. case $ac_cv_sys_large_files in #(
  9456. no | unknown) ;;
  9457. *)
  9458. cat >>confdefs.h <<_ACEOF
  9459. #define _LARGE_FILES $ac_cv_sys_large_files
  9460. _ACEOF
  9461. ;;
  9462. esac
  9463. rm -f conftest*
  9464. fi
  9465. fi
  9466. # Checks for library functions.
  9467. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9468. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9469. # Check whether --enable-nls was given.
  9470. if test "${enable_nls+set}" = set; then
  9471. enableval=$enable_nls; USE_NLS=$enableval
  9472. else
  9473. USE_NLS=yes
  9474. fi
  9475. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9476. echo "${ECHO_T}$USE_NLS" >&6; }
  9477. GETTEXT_MACRO_VERSION=0.17
  9478. # Prepare PATH_SEPARATOR.
  9479. # The user is always right.
  9480. if test "${PATH_SEPARATOR+set}" != set; then
  9481. echo "#! /bin/sh" >conf$$.sh
  9482. echo "exit 0" >>conf$$.sh
  9483. chmod +x conf$$.sh
  9484. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9485. PATH_SEPARATOR=';'
  9486. else
  9487. PATH_SEPARATOR=:
  9488. fi
  9489. rm -f conf$$.sh
  9490. fi
  9491. # Find out how to test for executable files. Don't use a zero-byte file,
  9492. # as systems may use methods other than mode bits to determine executability.
  9493. cat >conf$$.file <<_ASEOF
  9494. #! /bin/sh
  9495. exit 0
  9496. _ASEOF
  9497. chmod +x conf$$.file
  9498. if test -x conf$$.file >/dev/null 2>&1; then
  9499. ac_executable_p="test -x"
  9500. else
  9501. ac_executable_p="test -f"
  9502. fi
  9503. rm -f conf$$.file
  9504. # Extract the first word of "msgfmt", so it can be a program name with args.
  9505. set dummy msgfmt; ac_word=$2
  9506. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9507. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9508. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9509. echo $ECHO_N "(cached) $ECHO_C" >&6
  9510. else
  9511. case "$MSGFMT" in
  9512. [\\/]* | ?:[\\/]*)
  9513. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9514. ;;
  9515. *)
  9516. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9517. for ac_dir in $PATH; do
  9518. IFS="$ac_save_IFS"
  9519. test -z "$ac_dir" && ac_dir=.
  9520. for ac_exec_ext in '' $ac_executable_extensions; do
  9521. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9522. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9523. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9524. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9525. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9526. break 2
  9527. fi
  9528. fi
  9529. done
  9530. done
  9531. IFS="$ac_save_IFS"
  9532. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9533. ;;
  9534. esac
  9535. fi
  9536. MSGFMT="$ac_cv_path_MSGFMT"
  9537. if test "$MSGFMT" != ":"; then
  9538. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9539. echo "${ECHO_T}$MSGFMT" >&6; }
  9540. else
  9541. { echo "$as_me:$LINENO: result: no" >&5
  9542. echo "${ECHO_T}no" >&6; }
  9543. fi
  9544. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9545. set dummy gmsgfmt; ac_word=$2
  9546. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9547. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9548. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9549. echo $ECHO_N "(cached) $ECHO_C" >&6
  9550. else
  9551. case $GMSGFMT in
  9552. [\\/]* | ?:[\\/]*)
  9553. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9554. ;;
  9555. *)
  9556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9557. for as_dir in $PATH
  9558. do
  9559. IFS=$as_save_IFS
  9560. test -z "$as_dir" && as_dir=.
  9561. for ac_exec_ext in '' $ac_executable_extensions; do
  9562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9563. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9564. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9565. break 2
  9566. fi
  9567. done
  9568. done
  9569. IFS=$as_save_IFS
  9570. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9571. ;;
  9572. esac
  9573. fi
  9574. GMSGFMT=$ac_cv_path_GMSGFMT
  9575. if test -n "$GMSGFMT"; then
  9576. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9577. echo "${ECHO_T}$GMSGFMT" >&6; }
  9578. else
  9579. { echo "$as_me:$LINENO: result: no" >&5
  9580. echo "${ECHO_T}no" >&6; }
  9581. fi
  9582. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9583. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9584. *) MSGFMT_015=$MSGFMT ;;
  9585. esac
  9586. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9587. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9588. *) GMSGFMT_015=$GMSGFMT ;;
  9589. esac
  9590. # Prepare PATH_SEPARATOR.
  9591. # The user is always right.
  9592. if test "${PATH_SEPARATOR+set}" != set; then
  9593. echo "#! /bin/sh" >conf$$.sh
  9594. echo "exit 0" >>conf$$.sh
  9595. chmod +x conf$$.sh
  9596. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9597. PATH_SEPARATOR=';'
  9598. else
  9599. PATH_SEPARATOR=:
  9600. fi
  9601. rm -f conf$$.sh
  9602. fi
  9603. # Find out how to test for executable files. Don't use a zero-byte file,
  9604. # as systems may use methods other than mode bits to determine executability.
  9605. cat >conf$$.file <<_ASEOF
  9606. #! /bin/sh
  9607. exit 0
  9608. _ASEOF
  9609. chmod +x conf$$.file
  9610. if test -x conf$$.file >/dev/null 2>&1; then
  9611. ac_executable_p="test -x"
  9612. else
  9613. ac_executable_p="test -f"
  9614. fi
  9615. rm -f conf$$.file
  9616. # Extract the first word of "xgettext", so it can be a program name with args.
  9617. set dummy xgettext; ac_word=$2
  9618. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9619. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9620. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9621. echo $ECHO_N "(cached) $ECHO_C" >&6
  9622. else
  9623. case "$XGETTEXT" in
  9624. [\\/]* | ?:[\\/]*)
  9625. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9626. ;;
  9627. *)
  9628. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9629. for ac_dir in $PATH; do
  9630. IFS="$ac_save_IFS"
  9631. test -z "$ac_dir" && ac_dir=.
  9632. for ac_exec_ext in '' $ac_executable_extensions; do
  9633. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9634. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9635. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9636. (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
  9637. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9638. break 2
  9639. fi
  9640. fi
  9641. done
  9642. done
  9643. IFS="$ac_save_IFS"
  9644. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9645. ;;
  9646. esac
  9647. fi
  9648. XGETTEXT="$ac_cv_path_XGETTEXT"
  9649. if test "$XGETTEXT" != ":"; then
  9650. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9651. echo "${ECHO_T}$XGETTEXT" >&6; }
  9652. else
  9653. { echo "$as_me:$LINENO: result: no" >&5
  9654. echo "${ECHO_T}no" >&6; }
  9655. fi
  9656. rm -f messages.po
  9657. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9658. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9659. *) XGETTEXT_015=$XGETTEXT ;;
  9660. esac
  9661. # Prepare PATH_SEPARATOR.
  9662. # The user is always right.
  9663. if test "${PATH_SEPARATOR+set}" != set; then
  9664. echo "#! /bin/sh" >conf$$.sh
  9665. echo "exit 0" >>conf$$.sh
  9666. chmod +x conf$$.sh
  9667. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9668. PATH_SEPARATOR=';'
  9669. else
  9670. PATH_SEPARATOR=:
  9671. fi
  9672. rm -f conf$$.sh
  9673. fi
  9674. # Find out how to test for executable files. Don't use a zero-byte file,
  9675. # as systems may use methods other than mode bits to determine executability.
  9676. cat >conf$$.file <<_ASEOF
  9677. #! /bin/sh
  9678. exit 0
  9679. _ASEOF
  9680. chmod +x conf$$.file
  9681. if test -x conf$$.file >/dev/null 2>&1; then
  9682. ac_executable_p="test -x"
  9683. else
  9684. ac_executable_p="test -f"
  9685. fi
  9686. rm -f conf$$.file
  9687. # Extract the first word of "msgmerge", so it can be a program name with args.
  9688. set dummy msgmerge; ac_word=$2
  9689. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9690. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9691. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9692. echo $ECHO_N "(cached) $ECHO_C" >&6
  9693. else
  9694. case "$MSGMERGE" in
  9695. [\\/]* | ?:[\\/]*)
  9696. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9697. ;;
  9698. *)
  9699. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9700. for ac_dir in $PATH; do
  9701. IFS="$ac_save_IFS"
  9702. test -z "$ac_dir" && ac_dir=.
  9703. for ac_exec_ext in '' $ac_executable_extensions; do
  9704. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9705. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9706. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9707. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9708. break 2
  9709. fi
  9710. fi
  9711. done
  9712. done
  9713. IFS="$ac_save_IFS"
  9714. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9715. ;;
  9716. esac
  9717. fi
  9718. MSGMERGE="$ac_cv_path_MSGMERGE"
  9719. if test "$MSGMERGE" != ":"; then
  9720. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9721. echo "${ECHO_T}$MSGMERGE" >&6; }
  9722. else
  9723. { echo "$as_me:$LINENO: result: no" >&5
  9724. echo "${ECHO_T}no" >&6; }
  9725. fi
  9726. test -n "$localedir" || localedir='${datadir}/locale'
  9727. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9728. ac_config_commands="$ac_config_commands po-directories"
  9729. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9730. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9731. if test "${ac_cv_gnu_library_2+set}" = set; then
  9732. echo $ECHO_N "(cached) $ECHO_C" >&6
  9733. else
  9734. cat >conftest.$ac_ext <<_ACEOF
  9735. /* confdefs.h. */
  9736. _ACEOF
  9737. cat confdefs.h >>conftest.$ac_ext
  9738. cat >>conftest.$ac_ext <<_ACEOF
  9739. /* end confdefs.h. */
  9740. #include <features.h>
  9741. #ifdef __GNU_LIBRARY__
  9742. #if (__GLIBC__ >= 2)
  9743. Lucky GNU user
  9744. #endif
  9745. #endif
  9746. _ACEOF
  9747. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9748. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9749. ac_cv_gnu_library_2=yes
  9750. else
  9751. ac_cv_gnu_library_2=no
  9752. fi
  9753. rm -f conftest*
  9754. fi
  9755. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9756. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9757. GLIBC2="$ac_cv_gnu_library_2"
  9758. CFLAG_VISIBILITY=
  9759. HAVE_VISIBILITY=0
  9760. if test -n "$GCC"; then
  9761. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9762. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9763. if test "${gl_cv_cc_visibility+set}" = set; then
  9764. echo $ECHO_N "(cached) $ECHO_C" >&6
  9765. else
  9766. gl_save_CFLAGS="$CFLAGS"
  9767. CFLAGS="$CFLAGS -fvisibility=hidden"
  9768. cat >conftest.$ac_ext <<_ACEOF
  9769. /* confdefs.h. */
  9770. _ACEOF
  9771. cat confdefs.h >>conftest.$ac_ext
  9772. cat >>conftest.$ac_ext <<_ACEOF
  9773. /* end confdefs.h. */
  9774. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9775. extern __attribute__((__visibility__("default"))) int exportedvar;
  9776. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9777. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9778. int
  9779. main ()
  9780. {
  9781. ;
  9782. return 0;
  9783. }
  9784. _ACEOF
  9785. rm -f conftest.$ac_objext
  9786. if { (ac_try="$ac_compile"
  9787. case "(($ac_try" in
  9788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9789. *) ac_try_echo=$ac_try;;
  9790. esac
  9791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9792. (eval "$ac_compile") 2>conftest.er1
  9793. ac_status=$?
  9794. grep -v '^ *+' conftest.er1 >conftest.err
  9795. rm -f conftest.er1
  9796. cat conftest.err >&5
  9797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9798. (exit $ac_status); } && {
  9799. test -z "$ac_cxx_werror_flag" ||
  9800. test ! -s conftest.err
  9801. } && test -s conftest.$ac_objext; then
  9802. gl_cv_cc_visibility=yes
  9803. else
  9804. echo "$as_me: failed program was:" >&5
  9805. sed 's/^/| /' conftest.$ac_ext >&5
  9806. gl_cv_cc_visibility=no
  9807. fi
  9808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9809. CFLAGS="$gl_save_CFLAGS"
  9810. fi
  9811. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9812. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9813. if test $gl_cv_cc_visibility = yes; then
  9814. CFLAG_VISIBILITY="-fvisibility=hidden"
  9815. HAVE_VISIBILITY=1
  9816. fi
  9817. fi
  9818. cat >>confdefs.h <<_ACEOF
  9819. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9820. _ACEOF
  9821. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9822. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9823. if test "${gl_cv_header_stdint_h+set}" = set; then
  9824. echo $ECHO_N "(cached) $ECHO_C" >&6
  9825. else
  9826. cat >conftest.$ac_ext <<_ACEOF
  9827. /* confdefs.h. */
  9828. _ACEOF
  9829. cat confdefs.h >>conftest.$ac_ext
  9830. cat >>conftest.$ac_ext <<_ACEOF
  9831. /* end confdefs.h. */
  9832. #include <sys/types.h>
  9833. #include <stdint.h>
  9834. int
  9835. main ()
  9836. {
  9837. uintmax_t i = (uintmax_t) -1; return !i;
  9838. ;
  9839. return 0;
  9840. }
  9841. _ACEOF
  9842. rm -f conftest.$ac_objext
  9843. if { (ac_try="$ac_compile"
  9844. case "(($ac_try" in
  9845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9846. *) ac_try_echo=$ac_try;;
  9847. esac
  9848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9849. (eval "$ac_compile") 2>conftest.er1
  9850. ac_status=$?
  9851. grep -v '^ *+' conftest.er1 >conftest.err
  9852. rm -f conftest.er1
  9853. cat conftest.err >&5
  9854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9855. (exit $ac_status); } && {
  9856. test -z "$ac_cxx_werror_flag" ||
  9857. test ! -s conftest.err
  9858. } && test -s conftest.$ac_objext; then
  9859. gl_cv_header_stdint_h=yes
  9860. else
  9861. echo "$as_me: failed program was:" >&5
  9862. sed 's/^/| /' conftest.$ac_ext >&5
  9863. gl_cv_header_stdint_h=no
  9864. fi
  9865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9866. fi
  9867. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9868. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9869. if test $gl_cv_header_stdint_h = yes; then
  9870. cat >>confdefs.h <<_ACEOF
  9871. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9872. _ACEOF
  9873. fi
  9874. for ac_header in stdlib.h unistd.h
  9875. do
  9876. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9877. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9878. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9879. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9880. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9881. echo $ECHO_N "(cached) $ECHO_C" >&6
  9882. fi
  9883. ac_res=`eval echo '${'$as_ac_Header'}'`
  9884. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9885. echo "${ECHO_T}$ac_res" >&6; }
  9886. else
  9887. # Is the header compilable?
  9888. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9889. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9890. cat >conftest.$ac_ext <<_ACEOF
  9891. /* confdefs.h. */
  9892. _ACEOF
  9893. cat confdefs.h >>conftest.$ac_ext
  9894. cat >>conftest.$ac_ext <<_ACEOF
  9895. /* end confdefs.h. */
  9896. $ac_includes_default
  9897. #include <$ac_header>
  9898. _ACEOF
  9899. rm -f conftest.$ac_objext
  9900. if { (ac_try="$ac_compile"
  9901. case "(($ac_try" in
  9902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9903. *) ac_try_echo=$ac_try;;
  9904. esac
  9905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9906. (eval "$ac_compile") 2>conftest.er1
  9907. ac_status=$?
  9908. grep -v '^ *+' conftest.er1 >conftest.err
  9909. rm -f conftest.er1
  9910. cat conftest.err >&5
  9911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9912. (exit $ac_status); } && {
  9913. test -z "$ac_cxx_werror_flag" ||
  9914. test ! -s conftest.err
  9915. } && test -s conftest.$ac_objext; then
  9916. ac_header_compiler=yes
  9917. else
  9918. echo "$as_me: failed program was:" >&5
  9919. sed 's/^/| /' conftest.$ac_ext >&5
  9920. ac_header_compiler=no
  9921. fi
  9922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9923. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9924. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9925. # Is the header present?
  9926. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9927. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9928. cat >conftest.$ac_ext <<_ACEOF
  9929. /* confdefs.h. */
  9930. _ACEOF
  9931. cat confdefs.h >>conftest.$ac_ext
  9932. cat >>conftest.$ac_ext <<_ACEOF
  9933. /* end confdefs.h. */
  9934. #include <$ac_header>
  9935. _ACEOF
  9936. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9937. case "(($ac_try" in
  9938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9939. *) ac_try_echo=$ac_try;;
  9940. esac
  9941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9943. ac_status=$?
  9944. grep -v '^ *+' conftest.er1 >conftest.err
  9945. rm -f conftest.er1
  9946. cat conftest.err >&5
  9947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9948. (exit $ac_status); } >/dev/null && {
  9949. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9950. test ! -s conftest.err
  9951. }; then
  9952. ac_header_preproc=yes
  9953. else
  9954. echo "$as_me: failed program was:" >&5
  9955. sed 's/^/| /' conftest.$ac_ext >&5
  9956. ac_header_preproc=no
  9957. fi
  9958. rm -f conftest.err conftest.$ac_ext
  9959. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9960. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9961. # So? What about this header?
  9962. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9963. yes:no: )
  9964. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9965. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9966. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9967. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9968. ac_header_preproc=yes
  9969. ;;
  9970. no:yes:* )
  9971. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9972. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9973. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9974. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9975. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9976. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9977. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9978. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9980. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9981. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9982. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9983. ( cat <<\_ASBOX
  9984. ## ----------------------------------------------- ##
  9985. ## Report this to t-tujikawa@users.sourceforge.net ##
  9986. ## ----------------------------------------------- ##
  9987. _ASBOX
  9988. ) | sed "s/^/$as_me: WARNING: /" >&2
  9989. ;;
  9990. esac
  9991. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9992. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9993. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9994. echo $ECHO_N "(cached) $ECHO_C" >&6
  9995. else
  9996. eval "$as_ac_Header=\$ac_header_preproc"
  9997. fi
  9998. ac_res=`eval echo '${'$as_ac_Header'}'`
  9999. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10000. echo "${ECHO_T}$ac_res" >&6; }
  10001. fi
  10002. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10003. cat >>confdefs.h <<_ACEOF
  10004. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10005. _ACEOF
  10006. fi
  10007. done
  10008. for ac_func in getpagesize
  10009. do
  10010. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10011. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10012. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10013. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10014. echo $ECHO_N "(cached) $ECHO_C" >&6
  10015. else
  10016. cat >conftest.$ac_ext <<_ACEOF
  10017. /* confdefs.h. */
  10018. _ACEOF
  10019. cat confdefs.h >>conftest.$ac_ext
  10020. cat >>conftest.$ac_ext <<_ACEOF
  10021. /* end confdefs.h. */
  10022. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10023. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10024. #define $ac_func innocuous_$ac_func
  10025. /* System header to define __stub macros and hopefully few prototypes,
  10026. which can conflict with char $ac_func (); below.
  10027. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10028. <limits.h> exists even on freestanding compilers. */
  10029. #ifdef __STDC__
  10030. # include <limits.h>
  10031. #else
  10032. # include <assert.h>
  10033. #endif
  10034. #undef $ac_func
  10035. /* Override any GCC internal prototype to avoid an error.
  10036. Use char because int might match the return type of a GCC
  10037. builtin and then its argument prototype would still apply. */
  10038. #ifdef __cplusplus
  10039. extern "C"
  10040. #endif
  10041. char $ac_func ();
  10042. /* The GNU C library defines this for functions which it implements
  10043. to always fail with ENOSYS. Some functions are actually named
  10044. something starting with __ and the normal name is an alias. */
  10045. #if defined __stub_$ac_func || defined __stub___$ac_func
  10046. choke me
  10047. #endif
  10048. int
  10049. main ()
  10050. {
  10051. return $ac_func ();
  10052. ;
  10053. return 0;
  10054. }
  10055. _ACEOF
  10056. rm -f conftest.$ac_objext conftest$ac_exeext
  10057. if { (ac_try="$ac_link"
  10058. case "(($ac_try" in
  10059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10060. *) ac_try_echo=$ac_try;;
  10061. esac
  10062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10063. (eval "$ac_link") 2>conftest.er1
  10064. ac_status=$?
  10065. grep -v '^ *+' conftest.er1 >conftest.err
  10066. rm -f conftest.er1
  10067. cat conftest.err >&5
  10068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10069. (exit $ac_status); } && {
  10070. test -z "$ac_cxx_werror_flag" ||
  10071. test ! -s conftest.err
  10072. } && test -s conftest$ac_exeext &&
  10073. $as_test_x conftest$ac_exeext; then
  10074. eval "$as_ac_var=yes"
  10075. else
  10076. echo "$as_me: failed program was:" >&5
  10077. sed 's/^/| /' conftest.$ac_ext >&5
  10078. eval "$as_ac_var=no"
  10079. fi
  10080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10081. conftest$ac_exeext conftest.$ac_ext
  10082. fi
  10083. ac_res=`eval echo '${'$as_ac_var'}'`
  10084. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10085. echo "${ECHO_T}$ac_res" >&6; }
  10086. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10087. cat >>confdefs.h <<_ACEOF
  10088. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10089. _ACEOF
  10090. fi
  10091. done
  10092. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10093. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10094. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10095. echo $ECHO_N "(cached) $ECHO_C" >&6
  10096. else
  10097. if test "$cross_compiling" = yes; then
  10098. ac_cv_func_mmap_fixed_mapped=no
  10099. else
  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. $ac_includes_default
  10107. /* malloc might have been renamed as rpl_malloc. */
  10108. #undef malloc
  10109. /* Thanks to Mike Haertel and Jim Avera for this test.
  10110. Here is a matrix of mmap possibilities:
  10111. mmap private not fixed
  10112. mmap private fixed at somewhere currently unmapped
  10113. mmap private fixed at somewhere already mapped
  10114. mmap shared not fixed
  10115. mmap shared fixed at somewhere currently unmapped
  10116. mmap shared fixed at somewhere already mapped
  10117. For private mappings, we should verify that changes cannot be read()
  10118. back from the file, nor mmap's back from the file at a different
  10119. address. (There have been systems where private was not correctly
  10120. implemented like the infamous i386 svr4.0, and systems where the
  10121. VM page cache was not coherent with the file system buffer cache
  10122. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10123. For shared mappings, we should conversely verify that changes get
  10124. propagated back to all the places they're supposed to be.
  10125. Grep wants private fixed already mapped.
  10126. The main things grep needs to know about mmap are:
  10127. * does it exist and is it safe to write into the mmap'd area
  10128. * how to use it (BSD variants) */
  10129. #include <fcntl.h>
  10130. #include <sys/mman.h>
  10131. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10132. char *malloc ();
  10133. #endif
  10134. /* This mess was copied from the GNU getpagesize.h. */
  10135. #ifndef HAVE_GETPAGESIZE
  10136. /* Assume that all systems that can run configure have sys/param.h. */
  10137. # ifndef HAVE_SYS_PARAM_H
  10138. # define HAVE_SYS_PARAM_H 1
  10139. # endif
  10140. # ifdef _SC_PAGESIZE
  10141. # define getpagesize() sysconf(_SC_PAGESIZE)
  10142. # else /* no _SC_PAGESIZE */
  10143. # ifdef HAVE_SYS_PARAM_H
  10144. # include <sys/param.h>
  10145. # ifdef EXEC_PAGESIZE
  10146. # define getpagesize() EXEC_PAGESIZE
  10147. # else /* no EXEC_PAGESIZE */
  10148. # ifdef NBPG
  10149. # define getpagesize() NBPG * CLSIZE
  10150. # ifndef CLSIZE
  10151. # define CLSIZE 1
  10152. # endif /* no CLSIZE */
  10153. # else /* no NBPG */
  10154. # ifdef NBPC
  10155. # define getpagesize() NBPC
  10156. # else /* no NBPC */
  10157. # ifdef PAGESIZE
  10158. # define getpagesize() PAGESIZE
  10159. # endif /* PAGESIZE */
  10160. # endif /* no NBPC */
  10161. # endif /* no NBPG */
  10162. # endif /* no EXEC_PAGESIZE */
  10163. # else /* no HAVE_SYS_PARAM_H */
  10164. # define getpagesize() 8192 /* punt totally */
  10165. # endif /* no HAVE_SYS_PARAM_H */
  10166. # endif /* no _SC_PAGESIZE */
  10167. #endif /* no HAVE_GETPAGESIZE */
  10168. int
  10169. main ()
  10170. {
  10171. char *data, *data2, *data3;
  10172. int i, pagesize;
  10173. int fd;
  10174. pagesize = getpagesize ();
  10175. /* First, make a file with some known garbage in it. */
  10176. data = (char *) malloc (pagesize);
  10177. if (!data)
  10178. return 1;
  10179. for (i = 0; i < pagesize; ++i)
  10180. *(data + i) = rand ();
  10181. umask (0);
  10182. fd = creat ("conftest.mmap", 0600);
  10183. if (fd < 0)
  10184. return 1;
  10185. if (write (fd, data, pagesize) != pagesize)
  10186. return 1;
  10187. close (fd);
  10188. /* Next, try to mmap the file at a fixed address which already has
  10189. something else allocated at it. If we can, also make sure that
  10190. we see the same garbage. */
  10191. fd = open ("conftest.mmap", O_RDWR);
  10192. if (fd < 0)
  10193. return 1;
  10194. data2 = (char *) malloc (2 * pagesize);
  10195. if (!data2)
  10196. return 1;
  10197. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10198. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10199. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10200. return 1;
  10201. for (i = 0; i < pagesize; ++i)
  10202. if (*(data + i) != *(data2 + i))
  10203. return 1;
  10204. /* Finally, make sure that changes to the mapped area do not
  10205. percolate back to the file as seen by read(). (This is a bug on
  10206. some variants of i386 svr4.0.) */
  10207. for (i = 0; i < pagesize; ++i)
  10208. *(data2 + i) = *(data2 + i) + 1;
  10209. data3 = (char *) malloc (pagesize);
  10210. if (!data3)
  10211. return 1;
  10212. if (read (fd, data3, pagesize) != pagesize)
  10213. return 1;
  10214. for (i = 0; i < pagesize; ++i)
  10215. if (*(data + i) != *(data3 + i))
  10216. return 1;
  10217. close (fd);
  10218. return 0;
  10219. }
  10220. _ACEOF
  10221. rm -f conftest$ac_exeext
  10222. if { (ac_try="$ac_link"
  10223. case "(($ac_try" in
  10224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10225. *) ac_try_echo=$ac_try;;
  10226. esac
  10227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10228. (eval "$ac_link") 2>&5
  10229. ac_status=$?
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10232. { (case "(($ac_try" in
  10233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10234. *) ac_try_echo=$ac_try;;
  10235. esac
  10236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10237. (eval "$ac_try") 2>&5
  10238. ac_status=$?
  10239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10240. (exit $ac_status); }; }; then
  10241. ac_cv_func_mmap_fixed_mapped=yes
  10242. else
  10243. echo "$as_me: program exited with status $ac_status" >&5
  10244. echo "$as_me: failed program was:" >&5
  10245. sed 's/^/| /' conftest.$ac_ext >&5
  10246. ( exit $ac_status )
  10247. ac_cv_func_mmap_fixed_mapped=no
  10248. fi
  10249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10250. fi
  10251. fi
  10252. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10253. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10254. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10255. cat >>confdefs.h <<\_ACEOF
  10256. #define HAVE_MMAP 1
  10257. _ACEOF
  10258. fi
  10259. rm -f conftest.mmap
  10260. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10261. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10262. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10263. echo $ECHO_N "(cached) $ECHO_C" >&6
  10264. else
  10265. gt_cv_int_divbyzero_sigfpe=
  10266. case "$host_os" in
  10267. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10268. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10269. # compiling. If we were to perform the real test, 1 Crash Report
  10270. # dialog window would pop up.
  10271. case "$host_cpu" in
  10272. i[34567]86 | x86_64)
  10273. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10274. esac
  10275. ;;
  10276. esac
  10277. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10278. if test "$cross_compiling" = yes; then
  10279. # Guess based on the CPU.
  10280. case "$host_cpu" in
  10281. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10282. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10283. *)
  10284. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10285. esac
  10286. else
  10287. cat >conftest.$ac_ext <<_ACEOF
  10288. /* confdefs.h. */
  10289. _ACEOF
  10290. cat confdefs.h >>conftest.$ac_ext
  10291. cat >>conftest.$ac_ext <<_ACEOF
  10292. /* end confdefs.h. */
  10293. #include <stdlib.h>
  10294. #include <signal.h>
  10295. static void
  10296. sigfpe_handler (int sig)
  10297. {
  10298. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10299. exit (sig != SIGFPE);
  10300. }
  10301. int x = 1;
  10302. int y = 0;
  10303. int z;
  10304. int nan;
  10305. int main ()
  10306. {
  10307. signal (SIGFPE, sigfpe_handler);
  10308. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10309. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10310. signal (SIGTRAP, sigfpe_handler);
  10311. #endif
  10312. /* Linux/SPARC yields signal SIGILL. */
  10313. #if defined (__sparc__) && defined (__linux__)
  10314. signal (SIGILL, sigfpe_handler);
  10315. #endif
  10316. z = x / y;
  10317. nan = y / y;
  10318. exit (1);
  10319. }
  10320. _ACEOF
  10321. rm -f conftest$ac_exeext
  10322. if { (ac_try="$ac_link"
  10323. case "(($ac_try" in
  10324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10325. *) ac_try_echo=$ac_try;;
  10326. esac
  10327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10328. (eval "$ac_link") 2>&5
  10329. ac_status=$?
  10330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10331. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10332. { (case "(($ac_try" in
  10333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10334. *) ac_try_echo=$ac_try;;
  10335. esac
  10336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10337. (eval "$ac_try") 2>&5
  10338. ac_status=$?
  10339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10340. (exit $ac_status); }; }; then
  10341. gt_cv_int_divbyzero_sigfpe=yes
  10342. else
  10343. echo "$as_me: program exited with status $ac_status" >&5
  10344. echo "$as_me: failed program was:" >&5
  10345. sed 's/^/| /' conftest.$ac_ext >&5
  10346. ( exit $ac_status )
  10347. gt_cv_int_divbyzero_sigfpe=no
  10348. fi
  10349. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10350. fi
  10351. fi
  10352. fi
  10353. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10354. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10355. case "$gt_cv_int_divbyzero_sigfpe" in
  10356. *yes) value=1;;
  10357. *) value=0;;
  10358. esac
  10359. cat >>confdefs.h <<_ACEOF
  10360. #define INTDIV0_RAISES_SIGFPE $value
  10361. _ACEOF
  10362. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10363. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10364. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10365. echo $ECHO_N "(cached) $ECHO_C" >&6
  10366. else
  10367. cat >conftest.$ac_ext <<_ACEOF
  10368. /* confdefs.h. */
  10369. _ACEOF
  10370. cat confdefs.h >>conftest.$ac_ext
  10371. cat >>conftest.$ac_ext <<_ACEOF
  10372. /* end confdefs.h. */
  10373. #include <sys/types.h>
  10374. #include <inttypes.h>
  10375. int
  10376. main ()
  10377. {
  10378. uintmax_t i = (uintmax_t) -1; return !i;
  10379. ;
  10380. return 0;
  10381. }
  10382. _ACEOF
  10383. rm -f conftest.$ac_objext
  10384. if { (ac_try="$ac_compile"
  10385. case "(($ac_try" in
  10386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10387. *) ac_try_echo=$ac_try;;
  10388. esac
  10389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10390. (eval "$ac_compile") 2>conftest.er1
  10391. ac_status=$?
  10392. grep -v '^ *+' conftest.er1 >conftest.err
  10393. rm -f conftest.er1
  10394. cat conftest.err >&5
  10395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10396. (exit $ac_status); } && {
  10397. test -z "$ac_cxx_werror_flag" ||
  10398. test ! -s conftest.err
  10399. } && test -s conftest.$ac_objext; then
  10400. gl_cv_header_inttypes_h=yes
  10401. else
  10402. echo "$as_me: failed program was:" >&5
  10403. sed 's/^/| /' conftest.$ac_ext >&5
  10404. gl_cv_header_inttypes_h=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10407. fi
  10408. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10409. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10410. if test $gl_cv_header_inttypes_h = yes; then
  10411. cat >>confdefs.h <<_ACEOF
  10412. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10413. _ACEOF
  10414. fi
  10415. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10416. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10417. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10418. echo $ECHO_N "(cached) $ECHO_C" >&6
  10419. else
  10420. cat >conftest.$ac_ext <<_ACEOF
  10421. /* confdefs.h. */
  10422. _ACEOF
  10423. cat confdefs.h >>conftest.$ac_ext
  10424. cat >>conftest.$ac_ext <<_ACEOF
  10425. /* end confdefs.h. */
  10426. /* Test preprocessor. */
  10427. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10428. error in preprocessor;
  10429. #endif
  10430. #if ! (18446744073709551615ULL <= -1ull)
  10431. error in preprocessor;
  10432. #endif
  10433. /* Test literals. */
  10434. long long int ll = 9223372036854775807ll;
  10435. long long int nll = -9223372036854775807LL;
  10436. unsigned long long int ull = 18446744073709551615ULL;
  10437. /* Test constant expressions. */
  10438. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10439. ? 1 : -1)];
  10440. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10441. ? 1 : -1)];
  10442. int i = 63;
  10443. int
  10444. main ()
  10445. {
  10446. /* Test availability of runtime routines for shift and division. */
  10447. long long int llmax = 9223372036854775807ll;
  10448. unsigned long long int ullmax = 18446744073709551615ull;
  10449. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10450. | (llmax / ll) | (llmax % ll)
  10451. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10452. | (ullmax / ull) | (ullmax % ull));
  10453. ;
  10454. return 0;
  10455. }
  10456. _ACEOF
  10457. rm -f conftest.$ac_objext conftest$ac_exeext
  10458. if { (ac_try="$ac_link"
  10459. case "(($ac_try" in
  10460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10461. *) ac_try_echo=$ac_try;;
  10462. esac
  10463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10464. (eval "$ac_link") 2>conftest.er1
  10465. ac_status=$?
  10466. grep -v '^ *+' conftest.er1 >conftest.err
  10467. rm -f conftest.er1
  10468. cat conftest.err >&5
  10469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10470. (exit $ac_status); } && {
  10471. test -z "$ac_cxx_werror_flag" ||
  10472. test ! -s conftest.err
  10473. } && test -s conftest$ac_exeext &&
  10474. $as_test_x conftest$ac_exeext; then
  10475. ac_cv_type_unsigned_long_long_int=yes
  10476. else
  10477. echo "$as_me: failed program was:" >&5
  10478. sed 's/^/| /' conftest.$ac_ext >&5
  10479. ac_cv_type_unsigned_long_long_int=no
  10480. fi
  10481. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10482. conftest$ac_exeext conftest.$ac_ext
  10483. fi
  10484. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10485. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10486. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10487. cat >>confdefs.h <<\_ACEOF
  10488. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10489. _ACEOF
  10490. fi
  10491. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10492. test $ac_cv_type_unsigned_long_long_int = yes \
  10493. && ac_type='unsigned long long' \
  10494. || ac_type='unsigned long'
  10495. cat >>confdefs.h <<_ACEOF
  10496. #define uintmax_t $ac_type
  10497. _ACEOF
  10498. else
  10499. cat >>confdefs.h <<\_ACEOF
  10500. #define HAVE_UINTMAX_T 1
  10501. _ACEOF
  10502. fi
  10503. for ac_header in inttypes.h
  10504. do
  10505. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10506. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10507. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10508. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10509. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10510. echo $ECHO_N "(cached) $ECHO_C" >&6
  10511. fi
  10512. ac_res=`eval echo '${'$as_ac_Header'}'`
  10513. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10514. echo "${ECHO_T}$ac_res" >&6; }
  10515. else
  10516. # Is the header compilable?
  10517. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10518. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10519. cat >conftest.$ac_ext <<_ACEOF
  10520. /* confdefs.h. */
  10521. _ACEOF
  10522. cat confdefs.h >>conftest.$ac_ext
  10523. cat >>conftest.$ac_ext <<_ACEOF
  10524. /* end confdefs.h. */
  10525. $ac_includes_default
  10526. #include <$ac_header>
  10527. _ACEOF
  10528. rm -f conftest.$ac_objext
  10529. if { (ac_try="$ac_compile"
  10530. case "(($ac_try" in
  10531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10532. *) ac_try_echo=$ac_try;;
  10533. esac
  10534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10535. (eval "$ac_compile") 2>conftest.er1
  10536. ac_status=$?
  10537. grep -v '^ *+' conftest.er1 >conftest.err
  10538. rm -f conftest.er1
  10539. cat conftest.err >&5
  10540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10541. (exit $ac_status); } && {
  10542. test -z "$ac_cxx_werror_flag" ||
  10543. test ! -s conftest.err
  10544. } && test -s conftest.$ac_objext; then
  10545. ac_header_compiler=yes
  10546. else
  10547. echo "$as_me: failed program was:" >&5
  10548. sed 's/^/| /' conftest.$ac_ext >&5
  10549. ac_header_compiler=no
  10550. fi
  10551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10552. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10553. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10554. # Is the header present?
  10555. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10556. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10557. cat >conftest.$ac_ext <<_ACEOF
  10558. /* confdefs.h. */
  10559. _ACEOF
  10560. cat confdefs.h >>conftest.$ac_ext
  10561. cat >>conftest.$ac_ext <<_ACEOF
  10562. /* end confdefs.h. */
  10563. #include <$ac_header>
  10564. _ACEOF
  10565. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10566. case "(($ac_try" in
  10567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10568. *) ac_try_echo=$ac_try;;
  10569. esac
  10570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10571. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10572. ac_status=$?
  10573. grep -v '^ *+' conftest.er1 >conftest.err
  10574. rm -f conftest.er1
  10575. cat conftest.err >&5
  10576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10577. (exit $ac_status); } >/dev/null && {
  10578. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10579. test ! -s conftest.err
  10580. }; then
  10581. ac_header_preproc=yes
  10582. else
  10583. echo "$as_me: failed program was:" >&5
  10584. sed 's/^/| /' conftest.$ac_ext >&5
  10585. ac_header_preproc=no
  10586. fi
  10587. rm -f conftest.err conftest.$ac_ext
  10588. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10589. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10590. # So? What about this header?
  10591. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10592. yes:no: )
  10593. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10594. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10595. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10596. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10597. ac_header_preproc=yes
  10598. ;;
  10599. no:yes:* )
  10600. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10601. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10602. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10603. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10604. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10605. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10606. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10607. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10608. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10609. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10610. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10611. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10612. ( cat <<\_ASBOX
  10613. ## ----------------------------------------------- ##
  10614. ## Report this to t-tujikawa@users.sourceforge.net ##
  10615. ## ----------------------------------------------- ##
  10616. _ASBOX
  10617. ) | sed "s/^/$as_me: WARNING: /" >&2
  10618. ;;
  10619. esac
  10620. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10621. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10622. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10623. echo $ECHO_N "(cached) $ECHO_C" >&6
  10624. else
  10625. eval "$as_ac_Header=\$ac_header_preproc"
  10626. fi
  10627. ac_res=`eval echo '${'$as_ac_Header'}'`
  10628. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10629. echo "${ECHO_T}$ac_res" >&6; }
  10630. fi
  10631. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10632. cat >>confdefs.h <<_ACEOF
  10633. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10634. _ACEOF
  10635. fi
  10636. done
  10637. if test $ac_cv_header_inttypes_h = yes; then
  10638. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10639. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10640. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10641. echo $ECHO_N "(cached) $ECHO_C" >&6
  10642. else
  10643. cat >conftest.$ac_ext <<_ACEOF
  10644. /* confdefs.h. */
  10645. _ACEOF
  10646. cat confdefs.h >>conftest.$ac_ext
  10647. cat >>conftest.$ac_ext <<_ACEOF
  10648. /* end confdefs.h. */
  10649. #include <inttypes.h>
  10650. #ifdef PRId32
  10651. char *p = PRId32;
  10652. #endif
  10653. int
  10654. main ()
  10655. {
  10656. ;
  10657. return 0;
  10658. }
  10659. _ACEOF
  10660. rm -f conftest.$ac_objext
  10661. if { (ac_try="$ac_compile"
  10662. case "(($ac_try" in
  10663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10664. *) ac_try_echo=$ac_try;;
  10665. esac
  10666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10667. (eval "$ac_compile") 2>conftest.er1
  10668. ac_status=$?
  10669. grep -v '^ *+' conftest.er1 >conftest.err
  10670. rm -f conftest.er1
  10671. cat conftest.err >&5
  10672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10673. (exit $ac_status); } && {
  10674. test -z "$ac_cxx_werror_flag" ||
  10675. test ! -s conftest.err
  10676. } && test -s conftest.$ac_objext; then
  10677. gt_cv_inttypes_pri_broken=no
  10678. else
  10679. echo "$as_me: failed program was:" >&5
  10680. sed 's/^/| /' conftest.$ac_ext >&5
  10681. gt_cv_inttypes_pri_broken=yes
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10684. fi
  10685. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10686. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10687. fi
  10688. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10689. cat >>confdefs.h <<_ACEOF
  10690. #define PRI_MACROS_BROKEN 1
  10691. _ACEOF
  10692. PRI_MACROS_BROKEN=1
  10693. else
  10694. PRI_MACROS_BROKEN=0
  10695. fi
  10696. # Check whether --enable-threads was given.
  10697. if test "${enable_threads+set}" = set; then
  10698. enableval=$enable_threads; gl_use_threads=$enableval
  10699. else
  10700. case "$host_os" in
  10701. osf*) gl_use_threads=no ;;
  10702. *) gl_use_threads=yes ;;
  10703. esac
  10704. fi
  10705. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10706. # For using <pthread.h>:
  10707. case "$host_os" in
  10708. osf*)
  10709. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10710. # groks <pthread.h>. cc also understands the flag -pthread, but
  10711. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10712. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10713. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10714. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10715. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10716. ;;
  10717. esac
  10718. # Some systems optimize for single-threaded programs by default, and
  10719. # need special flags to disable these optimizations. For example, the
  10720. # definition of 'errno' in <errno.h>.
  10721. case "$host_os" in
  10722. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10723. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10724. esac
  10725. fi
  10726. if test "X$prefix" = "XNONE"; then
  10727. acl_final_prefix="$ac_default_prefix"
  10728. else
  10729. acl_final_prefix="$prefix"
  10730. fi
  10731. if test "X$exec_prefix" = "XNONE"; then
  10732. acl_final_exec_prefix='${prefix}'
  10733. else
  10734. acl_final_exec_prefix="$exec_prefix"
  10735. fi
  10736. acl_save_prefix="$prefix"
  10737. prefix="$acl_final_prefix"
  10738. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10739. prefix="$acl_save_prefix"
  10740. # Check whether --with-gnu-ld was given.
  10741. if test "${with_gnu_ld+set}" = set; then
  10742. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10743. else
  10744. with_gnu_ld=no
  10745. fi
  10746. # Prepare PATH_SEPARATOR.
  10747. # The user is always right.
  10748. if test "${PATH_SEPARATOR+set}" != set; then
  10749. echo "#! /bin/sh" >conf$$.sh
  10750. echo "exit 0" >>conf$$.sh
  10751. chmod +x conf$$.sh
  10752. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10753. PATH_SEPARATOR=';'
  10754. else
  10755. PATH_SEPARATOR=:
  10756. fi
  10757. rm -f conf$$.sh
  10758. fi
  10759. ac_prog=ld
  10760. if test "$GCC" = yes; then
  10761. # Check if gcc -print-prog-name=ld gives a path.
  10762. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10763. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10764. case $host in
  10765. *-*-mingw*)
  10766. # gcc leaves a trailing carriage return which upsets mingw
  10767. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10768. *)
  10769. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10770. esac
  10771. case $ac_prog in
  10772. # Accept absolute paths.
  10773. [\\/]* | [A-Za-z]:[\\/]*)
  10774. re_direlt='/[^/][^/]*/\.\./'
  10775. # Canonicalize the path of ld
  10776. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10777. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10778. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10779. done
  10780. test -z "$LD" && LD="$ac_prog"
  10781. ;;
  10782. "")
  10783. # If it fails, then pretend we aren't using GCC.
  10784. ac_prog=ld
  10785. ;;
  10786. *)
  10787. # If it is relative, then search for the first ld in PATH.
  10788. with_gnu_ld=unknown
  10789. ;;
  10790. esac
  10791. elif test "$with_gnu_ld" = yes; then
  10792. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10793. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10794. else
  10795. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10796. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10797. fi
  10798. if test "${acl_cv_path_LD+set}" = set; then
  10799. echo $ECHO_N "(cached) $ECHO_C" >&6
  10800. else
  10801. if test -z "$LD"; then
  10802. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10803. for ac_dir in $PATH; do
  10804. test -z "$ac_dir" && ac_dir=.
  10805. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10806. acl_cv_path_LD="$ac_dir/$ac_prog"
  10807. # Check to see if the program is GNU ld. I'd rather use --version,
  10808. # but apparently some GNU ld's only accept -v.
  10809. # Break only if it was the GNU/non-GNU ld that we prefer.
  10810. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10811. *GNU* | *'with BFD'*)
  10812. test "$with_gnu_ld" != no && break ;;
  10813. *)
  10814. test "$with_gnu_ld" != yes && break ;;
  10815. esac
  10816. fi
  10817. done
  10818. IFS="$ac_save_ifs"
  10819. else
  10820. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10821. fi
  10822. fi
  10823. LD="$acl_cv_path_LD"
  10824. if test -n "$LD"; then
  10825. { echo "$as_me:$LINENO: result: $LD" >&5
  10826. echo "${ECHO_T}$LD" >&6; }
  10827. else
  10828. { echo "$as_me:$LINENO: result: no" >&5
  10829. echo "${ECHO_T}no" >&6; }
  10830. fi
  10831. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10832. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10833. { (exit 1); exit 1; }; }
  10834. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10835. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10836. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10837. echo $ECHO_N "(cached) $ECHO_C" >&6
  10838. else
  10839. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10840. case `$LD -v 2>&1 </dev/null` in
  10841. *GNU* | *'with BFD'*)
  10842. acl_cv_prog_gnu_ld=yes ;;
  10843. *)
  10844. acl_cv_prog_gnu_ld=no ;;
  10845. esac
  10846. fi
  10847. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10848. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10849. with_gnu_ld=$acl_cv_prog_gnu_ld
  10850. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10851. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10852. if test "${acl_cv_rpath+set}" = set; then
  10853. echo $ECHO_N "(cached) $ECHO_C" >&6
  10854. else
  10855. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10856. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10857. . ./conftest.sh
  10858. rm -f ./conftest.sh
  10859. acl_cv_rpath=done
  10860. fi
  10861. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10862. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10863. wl="$acl_cv_wl"
  10864. acl_libext="$acl_cv_libext"
  10865. acl_shlibext="$acl_cv_shlibext"
  10866. acl_libname_spec="$acl_cv_libname_spec"
  10867. acl_library_names_spec="$acl_cv_library_names_spec"
  10868. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10869. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10870. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10871. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10872. # Check whether --enable-rpath was given.
  10873. if test "${enable_rpath+set}" = set; then
  10874. enableval=$enable_rpath; :
  10875. else
  10876. enable_rpath=yes
  10877. fi
  10878. acl_libdirstem=lib
  10879. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10880. if test -n "$searchpath"; then
  10881. acl_save_IFS="${IFS= }"; IFS=":"
  10882. for searchdir in $searchpath; do
  10883. if test -d "$searchdir"; then
  10884. case "$searchdir" in
  10885. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10886. *) searchdir=`cd "$searchdir" && pwd`
  10887. case "$searchdir" in
  10888. */lib64 ) acl_libdirstem=lib64 ;;
  10889. esac ;;
  10890. esac
  10891. fi
  10892. done
  10893. IFS="$acl_save_IFS"
  10894. fi
  10895. gl_threads_api=none
  10896. LIBTHREAD=
  10897. LTLIBTHREAD=
  10898. LIBMULTITHREAD=
  10899. LTLIBMULTITHREAD=
  10900. if test "$gl_use_threads" != no; then
  10901. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10902. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10903. gl_have_weak=no
  10904. cat >conftest.$ac_ext <<_ACEOF
  10905. /* confdefs.h. */
  10906. _ACEOF
  10907. cat confdefs.h >>conftest.$ac_ext
  10908. cat >>conftest.$ac_ext <<_ACEOF
  10909. /* end confdefs.h. */
  10910. extern void xyzzy ();
  10911. #pragma weak xyzzy
  10912. int
  10913. main ()
  10914. {
  10915. xyzzy();
  10916. ;
  10917. return 0;
  10918. }
  10919. _ACEOF
  10920. rm -f conftest.$ac_objext conftest$ac_exeext
  10921. if { (ac_try="$ac_link"
  10922. case "(($ac_try" in
  10923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10924. *) ac_try_echo=$ac_try;;
  10925. esac
  10926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10927. (eval "$ac_link") 2>conftest.er1
  10928. ac_status=$?
  10929. grep -v '^ *+' conftest.er1 >conftest.err
  10930. rm -f conftest.er1
  10931. cat conftest.err >&5
  10932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10933. (exit $ac_status); } && {
  10934. test -z "$ac_cxx_werror_flag" ||
  10935. test ! -s conftest.err
  10936. } && test -s conftest$ac_exeext &&
  10937. $as_test_x conftest$ac_exeext; then
  10938. gl_have_weak=yes
  10939. else
  10940. echo "$as_me: failed program was:" >&5
  10941. sed 's/^/| /' conftest.$ac_ext >&5
  10942. fi
  10943. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10944. conftest$ac_exeext conftest.$ac_ext
  10945. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10946. echo "${ECHO_T}$gl_have_weak" >&6; }
  10947. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10948. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10949. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10950. if test "${ac_cv_header_pthread_h+set}" = set; then
  10951. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10952. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10953. if test "${ac_cv_header_pthread_h+set}" = set; then
  10954. echo $ECHO_N "(cached) $ECHO_C" >&6
  10955. fi
  10956. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10957. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10958. else
  10959. # Is the header compilable?
  10960. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10961. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10962. cat >conftest.$ac_ext <<_ACEOF
  10963. /* confdefs.h. */
  10964. _ACEOF
  10965. cat confdefs.h >>conftest.$ac_ext
  10966. cat >>conftest.$ac_ext <<_ACEOF
  10967. /* end confdefs.h. */
  10968. $ac_includes_default
  10969. #include <pthread.h>
  10970. _ACEOF
  10971. rm -f conftest.$ac_objext
  10972. if { (ac_try="$ac_compile"
  10973. case "(($ac_try" in
  10974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10975. *) ac_try_echo=$ac_try;;
  10976. esac
  10977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10978. (eval "$ac_compile") 2>conftest.er1
  10979. ac_status=$?
  10980. grep -v '^ *+' conftest.er1 >conftest.err
  10981. rm -f conftest.er1
  10982. cat conftest.err >&5
  10983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10984. (exit $ac_status); } && {
  10985. test -z "$ac_cxx_werror_flag" ||
  10986. test ! -s conftest.err
  10987. } && test -s conftest.$ac_objext; then
  10988. ac_header_compiler=yes
  10989. else
  10990. echo "$as_me: failed program was:" >&5
  10991. sed 's/^/| /' conftest.$ac_ext >&5
  10992. ac_header_compiler=no
  10993. fi
  10994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10995. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10996. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10997. # Is the header present?
  10998. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10999. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  11000. cat >conftest.$ac_ext <<_ACEOF
  11001. /* confdefs.h. */
  11002. _ACEOF
  11003. cat confdefs.h >>conftest.$ac_ext
  11004. cat >>conftest.$ac_ext <<_ACEOF
  11005. /* end confdefs.h. */
  11006. #include <pthread.h>
  11007. _ACEOF
  11008. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11009. case "(($ac_try" in
  11010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11011. *) ac_try_echo=$ac_try;;
  11012. esac
  11013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11015. ac_status=$?
  11016. grep -v '^ *+' conftest.er1 >conftest.err
  11017. rm -f conftest.er1
  11018. cat conftest.err >&5
  11019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11020. (exit $ac_status); } >/dev/null && {
  11021. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11022. test ! -s conftest.err
  11023. }; then
  11024. ac_header_preproc=yes
  11025. else
  11026. echo "$as_me: failed program was:" >&5
  11027. sed 's/^/| /' conftest.$ac_ext >&5
  11028. ac_header_preproc=no
  11029. fi
  11030. rm -f conftest.err conftest.$ac_ext
  11031. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11032. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11033. # So? What about this header?
  11034. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11035. yes:no: )
  11036. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11037. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11038. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11039. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11040. ac_header_preproc=yes
  11041. ;;
  11042. no:yes:* )
  11043. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11044. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11045. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11046. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11047. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11048. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11049. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11050. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11051. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11052. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11053. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11054. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11055. ( cat <<\_ASBOX
  11056. ## ----------------------------------------------- ##
  11057. ## Report this to t-tujikawa@users.sourceforge.net ##
  11058. ## ----------------------------------------------- ##
  11059. _ASBOX
  11060. ) | sed "s/^/$as_me: WARNING: /" >&2
  11061. ;;
  11062. esac
  11063. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11064. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11065. if test "${ac_cv_header_pthread_h+set}" = set; then
  11066. echo $ECHO_N "(cached) $ECHO_C" >&6
  11067. else
  11068. ac_cv_header_pthread_h=$ac_header_preproc
  11069. fi
  11070. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11071. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11072. fi
  11073. if test $ac_cv_header_pthread_h = yes; then
  11074. gl_have_pthread_h=yes
  11075. else
  11076. gl_have_pthread_h=no
  11077. fi
  11078. if test "$gl_have_pthread_h" = yes; then
  11079. # Other possible tests:
  11080. # -lpthreads (FSU threads, PCthreads)
  11081. # -lgthreads
  11082. gl_have_pthread=
  11083. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11084. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11085. # the second one only in libpthread, and lock.c needs it.
  11086. cat >conftest.$ac_ext <<_ACEOF
  11087. /* confdefs.h. */
  11088. _ACEOF
  11089. cat confdefs.h >>conftest.$ac_ext
  11090. cat >>conftest.$ac_ext <<_ACEOF
  11091. /* end confdefs.h. */
  11092. #include <pthread.h>
  11093. int
  11094. main ()
  11095. {
  11096. pthread_mutex_lock((pthread_mutex_t*)0);
  11097. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11098. ;
  11099. return 0;
  11100. }
  11101. _ACEOF
  11102. rm -f conftest.$ac_objext conftest$ac_exeext
  11103. if { (ac_try="$ac_link"
  11104. case "(($ac_try" in
  11105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11106. *) ac_try_echo=$ac_try;;
  11107. esac
  11108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11109. (eval "$ac_link") 2>conftest.er1
  11110. ac_status=$?
  11111. grep -v '^ *+' conftest.er1 >conftest.err
  11112. rm -f conftest.er1
  11113. cat conftest.err >&5
  11114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11115. (exit $ac_status); } && {
  11116. test -z "$ac_cxx_werror_flag" ||
  11117. test ! -s conftest.err
  11118. } && test -s conftest$ac_exeext &&
  11119. $as_test_x conftest$ac_exeext; then
  11120. gl_have_pthread=yes
  11121. else
  11122. echo "$as_me: failed program was:" >&5
  11123. sed 's/^/| /' conftest.$ac_ext >&5
  11124. fi
  11125. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11126. conftest$ac_exeext conftest.$ac_ext
  11127. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11128. # since it is defined as a macro on OSF/1.)
  11129. if test -n "$gl_have_pthread"; then
  11130. # The program links fine without libpthread. But it may actually
  11131. # need to link with libpthread in order to create multiple threads.
  11132. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11133. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11134. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11135. echo $ECHO_N "(cached) $ECHO_C" >&6
  11136. else
  11137. ac_check_lib_save_LIBS=$LIBS
  11138. LIBS="-lpthread $LIBS"
  11139. cat >conftest.$ac_ext <<_ACEOF
  11140. /* confdefs.h. */
  11141. _ACEOF
  11142. cat confdefs.h >>conftest.$ac_ext
  11143. cat >>conftest.$ac_ext <<_ACEOF
  11144. /* end confdefs.h. */
  11145. /* Override any GCC internal prototype to avoid an error.
  11146. Use char because int might match the return type of a GCC
  11147. builtin and then its argument prototype would still apply. */
  11148. #ifdef __cplusplus
  11149. extern "C"
  11150. #endif
  11151. char pthread_kill ();
  11152. int
  11153. main ()
  11154. {
  11155. return pthread_kill ();
  11156. ;
  11157. return 0;
  11158. }
  11159. _ACEOF
  11160. rm -f conftest.$ac_objext conftest$ac_exeext
  11161. if { (ac_try="$ac_link"
  11162. case "(($ac_try" in
  11163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11164. *) ac_try_echo=$ac_try;;
  11165. esac
  11166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11167. (eval "$ac_link") 2>conftest.er1
  11168. ac_status=$?
  11169. grep -v '^ *+' conftest.er1 >conftest.err
  11170. rm -f conftest.er1
  11171. cat conftest.err >&5
  11172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11173. (exit $ac_status); } && {
  11174. test -z "$ac_cxx_werror_flag" ||
  11175. test ! -s conftest.err
  11176. } && test -s conftest$ac_exeext &&
  11177. $as_test_x conftest$ac_exeext; then
  11178. ac_cv_lib_pthread_pthread_kill=yes
  11179. else
  11180. echo "$as_me: failed program was:" >&5
  11181. sed 's/^/| /' conftest.$ac_ext >&5
  11182. ac_cv_lib_pthread_pthread_kill=no
  11183. fi
  11184. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11185. conftest$ac_exeext conftest.$ac_ext
  11186. LIBS=$ac_check_lib_save_LIBS
  11187. fi
  11188. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11189. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11190. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11191. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11192. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11193. # Therefore pthread_in_use() needs to actually try to create a
  11194. # thread: pthread_create from libc will fail, whereas
  11195. # pthread_create will actually create a thread.
  11196. case "$host_os" in
  11197. solaris* | hpux*)
  11198. cat >>confdefs.h <<\_ACEOF
  11199. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11200. _ACEOF
  11201. esac
  11202. fi
  11203. else
  11204. # Some library is needed. Try libpthread and libc_r.
  11205. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11206. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11207. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11208. echo $ECHO_N "(cached) $ECHO_C" >&6
  11209. else
  11210. ac_check_lib_save_LIBS=$LIBS
  11211. LIBS="-lpthread $LIBS"
  11212. cat >conftest.$ac_ext <<_ACEOF
  11213. /* confdefs.h. */
  11214. _ACEOF
  11215. cat confdefs.h >>conftest.$ac_ext
  11216. cat >>conftest.$ac_ext <<_ACEOF
  11217. /* end confdefs.h. */
  11218. /* Override any GCC internal prototype to avoid an error.
  11219. Use char because int might match the return type of a GCC
  11220. builtin and then its argument prototype would still apply. */
  11221. #ifdef __cplusplus
  11222. extern "C"
  11223. #endif
  11224. char pthread_kill ();
  11225. int
  11226. main ()
  11227. {
  11228. return pthread_kill ();
  11229. ;
  11230. return 0;
  11231. }
  11232. _ACEOF
  11233. rm -f conftest.$ac_objext conftest$ac_exeext
  11234. if { (ac_try="$ac_link"
  11235. case "(($ac_try" in
  11236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11237. *) ac_try_echo=$ac_try;;
  11238. esac
  11239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11240. (eval "$ac_link") 2>conftest.er1
  11241. ac_status=$?
  11242. grep -v '^ *+' conftest.er1 >conftest.err
  11243. rm -f conftest.er1
  11244. cat conftest.err >&5
  11245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11246. (exit $ac_status); } && {
  11247. test -z "$ac_cxx_werror_flag" ||
  11248. test ! -s conftest.err
  11249. } && test -s conftest$ac_exeext &&
  11250. $as_test_x conftest$ac_exeext; then
  11251. ac_cv_lib_pthread_pthread_kill=yes
  11252. else
  11253. echo "$as_me: failed program was:" >&5
  11254. sed 's/^/| /' conftest.$ac_ext >&5
  11255. ac_cv_lib_pthread_pthread_kill=no
  11256. fi
  11257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11258. conftest$ac_exeext conftest.$ac_ext
  11259. LIBS=$ac_check_lib_save_LIBS
  11260. fi
  11261. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11262. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11263. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11264. gl_have_pthread=yes
  11265. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11266. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11267. fi
  11268. if test -z "$gl_have_pthread"; then
  11269. # For FreeBSD 4.
  11270. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11271. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11272. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11273. echo $ECHO_N "(cached) $ECHO_C" >&6
  11274. else
  11275. ac_check_lib_save_LIBS=$LIBS
  11276. LIBS="-lc_r $LIBS"
  11277. cat >conftest.$ac_ext <<_ACEOF
  11278. /* confdefs.h. */
  11279. _ACEOF
  11280. cat confdefs.h >>conftest.$ac_ext
  11281. cat >>conftest.$ac_ext <<_ACEOF
  11282. /* end confdefs.h. */
  11283. /* Override any GCC internal prototype to avoid an error.
  11284. Use char because int might match the return type of a GCC
  11285. builtin and then its argument prototype would still apply. */
  11286. #ifdef __cplusplus
  11287. extern "C"
  11288. #endif
  11289. char pthread_kill ();
  11290. int
  11291. main ()
  11292. {
  11293. return pthread_kill ();
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. rm -f conftest.$ac_objext conftest$ac_exeext
  11299. if { (ac_try="$ac_link"
  11300. case "(($ac_try" in
  11301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11302. *) ac_try_echo=$ac_try;;
  11303. esac
  11304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11305. (eval "$ac_link") 2>conftest.er1
  11306. ac_status=$?
  11307. grep -v '^ *+' conftest.er1 >conftest.err
  11308. rm -f conftest.er1
  11309. cat conftest.err >&5
  11310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11311. (exit $ac_status); } && {
  11312. test -z "$ac_cxx_werror_flag" ||
  11313. test ! -s conftest.err
  11314. } && test -s conftest$ac_exeext &&
  11315. $as_test_x conftest$ac_exeext; then
  11316. ac_cv_lib_c_r_pthread_kill=yes
  11317. else
  11318. echo "$as_me: failed program was:" >&5
  11319. sed 's/^/| /' conftest.$ac_ext >&5
  11320. ac_cv_lib_c_r_pthread_kill=no
  11321. fi
  11322. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11323. conftest$ac_exeext conftest.$ac_ext
  11324. LIBS=$ac_check_lib_save_LIBS
  11325. fi
  11326. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11327. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11328. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11329. gl_have_pthread=yes
  11330. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11331. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11332. fi
  11333. fi
  11334. fi
  11335. if test -n "$gl_have_pthread"; then
  11336. gl_threads_api=posix
  11337. cat >>confdefs.h <<\_ACEOF
  11338. #define USE_POSIX_THREADS 1
  11339. _ACEOF
  11340. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11341. if test $gl_have_weak = yes; then
  11342. cat >>confdefs.h <<\_ACEOF
  11343. #define USE_POSIX_THREADS_WEAK 1
  11344. _ACEOF
  11345. LIBTHREAD=
  11346. LTLIBTHREAD=
  11347. fi
  11348. fi
  11349. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11350. # pthread_rwlock_* functions.
  11351. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11352. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11353. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11354. echo $ECHO_N "(cached) $ECHO_C" >&6
  11355. else
  11356. cat >conftest.$ac_ext <<_ACEOF
  11357. /* confdefs.h. */
  11358. _ACEOF
  11359. cat confdefs.h >>conftest.$ac_ext
  11360. cat >>conftest.$ac_ext <<_ACEOF
  11361. /* end confdefs.h. */
  11362. #include <pthread.h>
  11363. typedef pthread_rwlock_t ac__type_new_;
  11364. int
  11365. main ()
  11366. {
  11367. if ((ac__type_new_ *) 0)
  11368. return 0;
  11369. if (sizeof (ac__type_new_))
  11370. return 0;
  11371. ;
  11372. return 0;
  11373. }
  11374. _ACEOF
  11375. rm -f conftest.$ac_objext
  11376. if { (ac_try="$ac_compile"
  11377. case "(($ac_try" in
  11378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11379. *) ac_try_echo=$ac_try;;
  11380. esac
  11381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11382. (eval "$ac_compile") 2>conftest.er1
  11383. ac_status=$?
  11384. grep -v '^ *+' conftest.er1 >conftest.err
  11385. rm -f conftest.er1
  11386. cat conftest.err >&5
  11387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11388. (exit $ac_status); } && {
  11389. test -z "$ac_cxx_werror_flag" ||
  11390. test ! -s conftest.err
  11391. } && test -s conftest.$ac_objext; then
  11392. ac_cv_type_pthread_rwlock_t=yes
  11393. else
  11394. echo "$as_me: failed program was:" >&5
  11395. sed 's/^/| /' conftest.$ac_ext >&5
  11396. ac_cv_type_pthread_rwlock_t=no
  11397. fi
  11398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11399. fi
  11400. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11401. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11402. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11403. cat >>confdefs.h <<\_ACEOF
  11404. #define HAVE_PTHREAD_RWLOCK 1
  11405. _ACEOF
  11406. fi
  11407. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11408. cat >conftest.$ac_ext <<_ACEOF
  11409. /* confdefs.h. */
  11410. _ACEOF
  11411. cat confdefs.h >>conftest.$ac_ext
  11412. cat >>conftest.$ac_ext <<_ACEOF
  11413. /* end confdefs.h. */
  11414. #include <pthread.h>
  11415. int
  11416. main ()
  11417. {
  11418. #if __FreeBSD__ == 4
  11419. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11420. #else
  11421. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11422. return !x;
  11423. #endif
  11424. ;
  11425. return 0;
  11426. }
  11427. _ACEOF
  11428. rm -f conftest.$ac_objext
  11429. if { (ac_try="$ac_compile"
  11430. case "(($ac_try" in
  11431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11432. *) ac_try_echo=$ac_try;;
  11433. esac
  11434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11435. (eval "$ac_compile") 2>conftest.er1
  11436. ac_status=$?
  11437. grep -v '^ *+' conftest.er1 >conftest.err
  11438. rm -f conftest.er1
  11439. cat conftest.err >&5
  11440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11441. (exit $ac_status); } && {
  11442. test -z "$ac_cxx_werror_flag" ||
  11443. test ! -s conftest.err
  11444. } && test -s conftest.$ac_objext; then
  11445. cat >>confdefs.h <<\_ACEOF
  11446. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11447. _ACEOF
  11448. else
  11449. echo "$as_me: failed program was:" >&5
  11450. sed 's/^/| /' conftest.$ac_ext >&5
  11451. fi
  11452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11453. fi
  11454. fi
  11455. fi
  11456. if test -z "$gl_have_pthread"; then
  11457. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11458. gl_have_solaristhread=
  11459. gl_save_LIBS="$LIBS"
  11460. LIBS="$LIBS -lthread"
  11461. cat >conftest.$ac_ext <<_ACEOF
  11462. /* confdefs.h. */
  11463. _ACEOF
  11464. cat confdefs.h >>conftest.$ac_ext
  11465. cat >>conftest.$ac_ext <<_ACEOF
  11466. /* end confdefs.h. */
  11467. #include <thread.h>
  11468. #include <synch.h>
  11469. int
  11470. main ()
  11471. {
  11472. thr_self();
  11473. ;
  11474. return 0;
  11475. }
  11476. _ACEOF
  11477. rm -f conftest.$ac_objext conftest$ac_exeext
  11478. if { (ac_try="$ac_link"
  11479. case "(($ac_try" in
  11480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11481. *) ac_try_echo=$ac_try;;
  11482. esac
  11483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11484. (eval "$ac_link") 2>conftest.er1
  11485. ac_status=$?
  11486. grep -v '^ *+' conftest.er1 >conftest.err
  11487. rm -f conftest.er1
  11488. cat conftest.err >&5
  11489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11490. (exit $ac_status); } && {
  11491. test -z "$ac_cxx_werror_flag" ||
  11492. test ! -s conftest.err
  11493. } && test -s conftest$ac_exeext &&
  11494. $as_test_x conftest$ac_exeext; then
  11495. gl_have_solaristhread=yes
  11496. else
  11497. echo "$as_me: failed program was:" >&5
  11498. sed 's/^/| /' conftest.$ac_ext >&5
  11499. fi
  11500. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11501. conftest$ac_exeext conftest.$ac_ext
  11502. LIBS="$gl_save_LIBS"
  11503. if test -n "$gl_have_solaristhread"; then
  11504. gl_threads_api=solaris
  11505. LIBTHREAD=-lthread
  11506. LTLIBTHREAD=-lthread
  11507. LIBMULTITHREAD="$LIBTHREAD"
  11508. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11509. cat >>confdefs.h <<\_ACEOF
  11510. #define USE_SOLARIS_THREADS 1
  11511. _ACEOF
  11512. if test $gl_have_weak = yes; then
  11513. cat >>confdefs.h <<\_ACEOF
  11514. #define USE_SOLARIS_THREADS_WEAK 1
  11515. _ACEOF
  11516. LIBTHREAD=
  11517. LTLIBTHREAD=
  11518. fi
  11519. fi
  11520. fi
  11521. fi
  11522. if test "$gl_use_threads" = pth; then
  11523. gl_save_CPPFLAGS="$CPPFLAGS"
  11524. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11525. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11526. if test "${ac_cv_libpth_libs+set}" = set; then
  11527. echo $ECHO_N "(cached) $ECHO_C" >&6
  11528. else
  11529. use_additional=yes
  11530. acl_save_prefix="$prefix"
  11531. prefix="$acl_final_prefix"
  11532. acl_save_exec_prefix="$exec_prefix"
  11533. exec_prefix="$acl_final_exec_prefix"
  11534. eval additional_includedir=\"$includedir\"
  11535. eval additional_libdir=\"$libdir\"
  11536. exec_prefix="$acl_save_exec_prefix"
  11537. prefix="$acl_save_prefix"
  11538. # Check whether --with-libpth-prefix was given.
  11539. if test "${with_libpth_prefix+set}" = set; then
  11540. withval=$with_libpth_prefix;
  11541. if test "X$withval" = "Xno"; then
  11542. use_additional=no
  11543. else
  11544. if test "X$withval" = "X"; then
  11545. acl_save_prefix="$prefix"
  11546. prefix="$acl_final_prefix"
  11547. acl_save_exec_prefix="$exec_prefix"
  11548. exec_prefix="$acl_final_exec_prefix"
  11549. eval additional_includedir=\"$includedir\"
  11550. eval additional_libdir=\"$libdir\"
  11551. exec_prefix="$acl_save_exec_prefix"
  11552. prefix="$acl_save_prefix"
  11553. else
  11554. additional_includedir="$withval/include"
  11555. additional_libdir="$withval/$acl_libdirstem"
  11556. fi
  11557. fi
  11558. fi
  11559. LIBPTH=
  11560. LTLIBPTH=
  11561. INCPTH=
  11562. LIBPTH_PREFIX=
  11563. rpathdirs=
  11564. ltrpathdirs=
  11565. names_already_handled=
  11566. names_next_round='pth '
  11567. while test -n "$names_next_round"; do
  11568. names_this_round="$names_next_round"
  11569. names_next_round=
  11570. for name in $names_this_round; do
  11571. already_handled=
  11572. for n in $names_already_handled; do
  11573. if test "$n" = "$name"; then
  11574. already_handled=yes
  11575. break
  11576. fi
  11577. done
  11578. if test -z "$already_handled"; then
  11579. names_already_handled="$names_already_handled $name"
  11580. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11581. eval value=\"\$HAVE_LIB$uppername\"
  11582. if test -n "$value"; then
  11583. if test "$value" = yes; then
  11584. eval value=\"\$LIB$uppername\"
  11585. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11586. eval value=\"\$LTLIB$uppername\"
  11587. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11588. else
  11589. :
  11590. fi
  11591. else
  11592. found_dir=
  11593. found_la=
  11594. found_so=
  11595. found_a=
  11596. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11597. if test -n "$acl_shlibext"; then
  11598. shrext=".$acl_shlibext" # typically: shrext=.so
  11599. else
  11600. shrext=
  11601. fi
  11602. if test $use_additional = yes; then
  11603. dir="$additional_libdir"
  11604. if test -n "$acl_shlibext"; then
  11605. if test -f "$dir/$libname$shrext"; then
  11606. found_dir="$dir"
  11607. found_so="$dir/$libname$shrext"
  11608. else
  11609. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11610. ver=`(cd "$dir" && \
  11611. for f in "$libname$shrext".*; do echo "$f"; done \
  11612. | sed -e "s,^$libname$shrext\\\\.,," \
  11613. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11614. | sed 1q ) 2>/dev/null`
  11615. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11616. found_dir="$dir"
  11617. found_so="$dir/$libname$shrext.$ver"
  11618. fi
  11619. else
  11620. eval library_names=\"$acl_library_names_spec\"
  11621. for f in $library_names; do
  11622. if test -f "$dir/$f"; then
  11623. found_dir="$dir"
  11624. found_so="$dir/$f"
  11625. break
  11626. fi
  11627. done
  11628. fi
  11629. fi
  11630. fi
  11631. if test "X$found_dir" = "X"; then
  11632. if test -f "$dir/$libname.$acl_libext"; then
  11633. found_dir="$dir"
  11634. found_a="$dir/$libname.$acl_libext"
  11635. fi
  11636. fi
  11637. if test "X$found_dir" != "X"; then
  11638. if test -f "$dir/$libname.la"; then
  11639. found_la="$dir/$libname.la"
  11640. fi
  11641. fi
  11642. fi
  11643. if test "X$found_dir" = "X"; then
  11644. for x in $LDFLAGS $LTLIBPTH; do
  11645. acl_save_prefix="$prefix"
  11646. prefix="$acl_final_prefix"
  11647. acl_save_exec_prefix="$exec_prefix"
  11648. exec_prefix="$acl_final_exec_prefix"
  11649. eval x=\"$x\"
  11650. exec_prefix="$acl_save_exec_prefix"
  11651. prefix="$acl_save_prefix"
  11652. case "$x" in
  11653. -L*)
  11654. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11655. if test -n "$acl_shlibext"; then
  11656. if test -f "$dir/$libname$shrext"; then
  11657. found_dir="$dir"
  11658. found_so="$dir/$libname$shrext"
  11659. else
  11660. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11661. ver=`(cd "$dir" && \
  11662. for f in "$libname$shrext".*; do echo "$f"; done \
  11663. | sed -e "s,^$libname$shrext\\\\.,," \
  11664. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11665. | sed 1q ) 2>/dev/null`
  11666. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11667. found_dir="$dir"
  11668. found_so="$dir/$libname$shrext.$ver"
  11669. fi
  11670. else
  11671. eval library_names=\"$acl_library_names_spec\"
  11672. for f in $library_names; do
  11673. if test -f "$dir/$f"; then
  11674. found_dir="$dir"
  11675. found_so="$dir/$f"
  11676. break
  11677. fi
  11678. done
  11679. fi
  11680. fi
  11681. fi
  11682. if test "X$found_dir" = "X"; then
  11683. if test -f "$dir/$libname.$acl_libext"; then
  11684. found_dir="$dir"
  11685. found_a="$dir/$libname.$acl_libext"
  11686. fi
  11687. fi
  11688. if test "X$found_dir" != "X"; then
  11689. if test -f "$dir/$libname.la"; then
  11690. found_la="$dir/$libname.la"
  11691. fi
  11692. fi
  11693. ;;
  11694. esac
  11695. if test "X$found_dir" != "X"; then
  11696. break
  11697. fi
  11698. done
  11699. fi
  11700. if test "X$found_dir" != "X"; then
  11701. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11702. if test "X$found_so" != "X"; then
  11703. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11704. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11705. else
  11706. haveit=
  11707. for x in $ltrpathdirs; do
  11708. if test "X$x" = "X$found_dir"; then
  11709. haveit=yes
  11710. break
  11711. fi
  11712. done
  11713. if test -z "$haveit"; then
  11714. ltrpathdirs="$ltrpathdirs $found_dir"
  11715. fi
  11716. if test "$acl_hardcode_direct" = yes; then
  11717. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11718. else
  11719. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11720. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11721. haveit=
  11722. for x in $rpathdirs; do
  11723. if test "X$x" = "X$found_dir"; then
  11724. haveit=yes
  11725. break
  11726. fi
  11727. done
  11728. if test -z "$haveit"; then
  11729. rpathdirs="$rpathdirs $found_dir"
  11730. fi
  11731. else
  11732. haveit=
  11733. for x in $LDFLAGS $LIBPTH; do
  11734. acl_save_prefix="$prefix"
  11735. prefix="$acl_final_prefix"
  11736. acl_save_exec_prefix="$exec_prefix"
  11737. exec_prefix="$acl_final_exec_prefix"
  11738. eval x=\"$x\"
  11739. exec_prefix="$acl_save_exec_prefix"
  11740. prefix="$acl_save_prefix"
  11741. if test "X$x" = "X-L$found_dir"; then
  11742. haveit=yes
  11743. break
  11744. fi
  11745. done
  11746. if test -z "$haveit"; then
  11747. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11748. fi
  11749. if test "$acl_hardcode_minus_L" != no; then
  11750. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11751. else
  11752. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11753. fi
  11754. fi
  11755. fi
  11756. fi
  11757. else
  11758. if test "X$found_a" != "X"; then
  11759. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11760. else
  11761. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11762. fi
  11763. fi
  11764. additional_includedir=
  11765. case "$found_dir" in
  11766. */$acl_libdirstem | */$acl_libdirstem/)
  11767. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11768. LIBPTH_PREFIX="$basedir"
  11769. additional_includedir="$basedir/include"
  11770. ;;
  11771. esac
  11772. if test "X$additional_includedir" != "X"; then
  11773. if test "X$additional_includedir" != "X/usr/include"; then
  11774. haveit=
  11775. if test "X$additional_includedir" = "X/usr/local/include"; then
  11776. if test -n "$GCC"; then
  11777. case $host_os in
  11778. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11779. esac
  11780. fi
  11781. fi
  11782. if test -z "$haveit"; then
  11783. for x in $CPPFLAGS $INCPTH; do
  11784. acl_save_prefix="$prefix"
  11785. prefix="$acl_final_prefix"
  11786. acl_save_exec_prefix="$exec_prefix"
  11787. exec_prefix="$acl_final_exec_prefix"
  11788. eval x=\"$x\"
  11789. exec_prefix="$acl_save_exec_prefix"
  11790. prefix="$acl_save_prefix"
  11791. if test "X$x" = "X-I$additional_includedir"; then
  11792. haveit=yes
  11793. break
  11794. fi
  11795. done
  11796. if test -z "$haveit"; then
  11797. if test -d "$additional_includedir"; then
  11798. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11799. fi
  11800. fi
  11801. fi
  11802. fi
  11803. fi
  11804. if test -n "$found_la"; then
  11805. save_libdir="$libdir"
  11806. case "$found_la" in
  11807. */* | *\\*) . "$found_la" ;;
  11808. *) . "./$found_la" ;;
  11809. esac
  11810. libdir="$save_libdir"
  11811. for dep in $dependency_libs; do
  11812. case "$dep" in
  11813. -L*)
  11814. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11815. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11816. haveit=
  11817. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11818. if test -n "$GCC"; then
  11819. case $host_os in
  11820. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11821. esac
  11822. fi
  11823. fi
  11824. if test -z "$haveit"; then
  11825. haveit=
  11826. for x in $LDFLAGS $LIBPTH; do
  11827. acl_save_prefix="$prefix"
  11828. prefix="$acl_final_prefix"
  11829. acl_save_exec_prefix="$exec_prefix"
  11830. exec_prefix="$acl_final_exec_prefix"
  11831. eval x=\"$x\"
  11832. exec_prefix="$acl_save_exec_prefix"
  11833. prefix="$acl_save_prefix"
  11834. if test "X$x" = "X-L$additional_libdir"; then
  11835. haveit=yes
  11836. break
  11837. fi
  11838. done
  11839. if test -z "$haveit"; then
  11840. if test -d "$additional_libdir"; then
  11841. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11842. fi
  11843. fi
  11844. haveit=
  11845. for x in $LDFLAGS $LTLIBPTH; do
  11846. acl_save_prefix="$prefix"
  11847. prefix="$acl_final_prefix"
  11848. acl_save_exec_prefix="$exec_prefix"
  11849. exec_prefix="$acl_final_exec_prefix"
  11850. eval x=\"$x\"
  11851. exec_prefix="$acl_save_exec_prefix"
  11852. prefix="$acl_save_prefix"
  11853. if test "X$x" = "X-L$additional_libdir"; then
  11854. haveit=yes
  11855. break
  11856. fi
  11857. done
  11858. if test -z "$haveit"; then
  11859. if test -d "$additional_libdir"; then
  11860. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11861. fi
  11862. fi
  11863. fi
  11864. fi
  11865. ;;
  11866. -R*)
  11867. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11868. if test "$enable_rpath" != no; then
  11869. haveit=
  11870. for x in $rpathdirs; do
  11871. if test "X$x" = "X$dir"; then
  11872. haveit=yes
  11873. break
  11874. fi
  11875. done
  11876. if test -z "$haveit"; then
  11877. rpathdirs="$rpathdirs $dir"
  11878. fi
  11879. haveit=
  11880. for x in $ltrpathdirs; do
  11881. if test "X$x" = "X$dir"; then
  11882. haveit=yes
  11883. break
  11884. fi
  11885. done
  11886. if test -z "$haveit"; then
  11887. ltrpathdirs="$ltrpathdirs $dir"
  11888. fi
  11889. fi
  11890. ;;
  11891. -l*)
  11892. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11893. ;;
  11894. *.la)
  11895. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11896. ;;
  11897. *)
  11898. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11899. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11900. ;;
  11901. esac
  11902. done
  11903. fi
  11904. else
  11905. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11906. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11907. fi
  11908. fi
  11909. fi
  11910. done
  11911. done
  11912. if test "X$rpathdirs" != "X"; then
  11913. if test -n "$acl_hardcode_libdir_separator"; then
  11914. alldirs=
  11915. for found_dir in $rpathdirs; do
  11916. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11917. done
  11918. acl_save_libdir="$libdir"
  11919. libdir="$alldirs"
  11920. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11921. libdir="$acl_save_libdir"
  11922. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11923. else
  11924. for found_dir in $rpathdirs; do
  11925. acl_save_libdir="$libdir"
  11926. libdir="$found_dir"
  11927. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11928. libdir="$acl_save_libdir"
  11929. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11930. done
  11931. fi
  11932. fi
  11933. if test "X$ltrpathdirs" != "X"; then
  11934. for found_dir in $ltrpathdirs; do
  11935. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11936. done
  11937. fi
  11938. ac_cv_libpth_libs="$LIBPTH"
  11939. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11940. ac_cv_libpth_cppflags="$INCPTH"
  11941. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11942. fi
  11943. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11944. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11945. LIBPTH="$ac_cv_libpth_libs"
  11946. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11947. INCPTH="$ac_cv_libpth_cppflags"
  11948. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11949. for element in $INCPTH; do
  11950. haveit=
  11951. for x in $CPPFLAGS; do
  11952. acl_save_prefix="$prefix"
  11953. prefix="$acl_final_prefix"
  11954. acl_save_exec_prefix="$exec_prefix"
  11955. exec_prefix="$acl_final_exec_prefix"
  11956. eval x=\"$x\"
  11957. exec_prefix="$acl_save_exec_prefix"
  11958. prefix="$acl_save_prefix"
  11959. if test "X$x" = "X$element"; then
  11960. haveit=yes
  11961. break
  11962. fi
  11963. done
  11964. if test -z "$haveit"; then
  11965. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11966. fi
  11967. done
  11968. HAVE_LIBPTH=yes
  11969. gl_have_pth=
  11970. gl_save_LIBS="$LIBS"
  11971. LIBS="$LIBS -lpth"
  11972. cat >conftest.$ac_ext <<_ACEOF
  11973. /* confdefs.h. */
  11974. _ACEOF
  11975. cat confdefs.h >>conftest.$ac_ext
  11976. cat >>conftest.$ac_ext <<_ACEOF
  11977. /* end confdefs.h. */
  11978. #include <pth.h>
  11979. int
  11980. main ()
  11981. {
  11982. pth_self();
  11983. ;
  11984. return 0;
  11985. }
  11986. _ACEOF
  11987. rm -f conftest.$ac_objext conftest$ac_exeext
  11988. if { (ac_try="$ac_link"
  11989. case "(($ac_try" in
  11990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11991. *) ac_try_echo=$ac_try;;
  11992. esac
  11993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11994. (eval "$ac_link") 2>conftest.er1
  11995. ac_status=$?
  11996. grep -v '^ *+' conftest.er1 >conftest.err
  11997. rm -f conftest.er1
  11998. cat conftest.err >&5
  11999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12000. (exit $ac_status); } && {
  12001. test -z "$ac_cxx_werror_flag" ||
  12002. test ! -s conftest.err
  12003. } && test -s conftest$ac_exeext &&
  12004. $as_test_x conftest$ac_exeext; then
  12005. gl_have_pth=yes
  12006. else
  12007. echo "$as_me: failed program was:" >&5
  12008. sed 's/^/| /' conftest.$ac_ext >&5
  12009. fi
  12010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12011. conftest$ac_exeext conftest.$ac_ext
  12012. LIBS="$gl_save_LIBS"
  12013. if test -n "$gl_have_pth"; then
  12014. gl_threads_api=pth
  12015. LIBTHREAD="$LIBPTH"
  12016. LTLIBTHREAD="$LTLIBPTH"
  12017. LIBMULTITHREAD="$LIBTHREAD"
  12018. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12019. cat >>confdefs.h <<\_ACEOF
  12020. #define USE_PTH_THREADS 1
  12021. _ACEOF
  12022. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12023. if test $gl_have_weak = yes; then
  12024. cat >>confdefs.h <<\_ACEOF
  12025. #define USE_PTH_THREADS_WEAK 1
  12026. _ACEOF
  12027. LIBTHREAD=
  12028. LTLIBTHREAD=
  12029. fi
  12030. fi
  12031. else
  12032. CPPFLAGS="$gl_save_CPPFLAGS"
  12033. fi
  12034. fi
  12035. if test -z "$gl_have_pthread"; then
  12036. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12037. if { case "$host_os" in
  12038. mingw*) true;;
  12039. *) false;;
  12040. esac
  12041. }; then
  12042. gl_threads_api=win32
  12043. cat >>confdefs.h <<\_ACEOF
  12044. #define USE_WIN32_THREADS 1
  12045. _ACEOF
  12046. fi
  12047. fi
  12048. fi
  12049. fi
  12050. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12051. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  12052. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12053. echo "${ECHO_T}$gl_threads_api" >&6; }
  12054. use_additional=yes
  12055. acl_save_prefix="$prefix"
  12056. prefix="$acl_final_prefix"
  12057. acl_save_exec_prefix="$exec_prefix"
  12058. exec_prefix="$acl_final_exec_prefix"
  12059. eval additional_includedir=\"$includedir\"
  12060. eval additional_libdir=\"$libdir\"
  12061. exec_prefix="$acl_save_exec_prefix"
  12062. prefix="$acl_save_prefix"
  12063. # Check whether --with-libiconv-prefix was given.
  12064. if test "${with_libiconv_prefix+set}" = set; then
  12065. withval=$with_libiconv_prefix;
  12066. if test "X$withval" = "Xno"; then
  12067. use_additional=no
  12068. else
  12069. if test "X$withval" = "X"; then
  12070. acl_save_prefix="$prefix"
  12071. prefix="$acl_final_prefix"
  12072. acl_save_exec_prefix="$exec_prefix"
  12073. exec_prefix="$acl_final_exec_prefix"
  12074. eval additional_includedir=\"$includedir\"
  12075. eval additional_libdir=\"$libdir\"
  12076. exec_prefix="$acl_save_exec_prefix"
  12077. prefix="$acl_save_prefix"
  12078. else
  12079. additional_includedir="$withval/include"
  12080. additional_libdir="$withval/$acl_libdirstem"
  12081. fi
  12082. fi
  12083. fi
  12084. LIBICONV=
  12085. LTLIBICONV=
  12086. INCICONV=
  12087. LIBICONV_PREFIX=
  12088. rpathdirs=
  12089. ltrpathdirs=
  12090. names_already_handled=
  12091. names_next_round='iconv '
  12092. while test -n "$names_next_round"; do
  12093. names_this_round="$names_next_round"
  12094. names_next_round=
  12095. for name in $names_this_round; do
  12096. already_handled=
  12097. for n in $names_already_handled; do
  12098. if test "$n" = "$name"; then
  12099. already_handled=yes
  12100. break
  12101. fi
  12102. done
  12103. if test -z "$already_handled"; then
  12104. names_already_handled="$names_already_handled $name"
  12105. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12106. eval value=\"\$HAVE_LIB$uppername\"
  12107. if test -n "$value"; then
  12108. if test "$value" = yes; then
  12109. eval value=\"\$LIB$uppername\"
  12110. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12111. eval value=\"\$LTLIB$uppername\"
  12112. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12113. else
  12114. :
  12115. fi
  12116. else
  12117. found_dir=
  12118. found_la=
  12119. found_so=
  12120. found_a=
  12121. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12122. if test -n "$acl_shlibext"; then
  12123. shrext=".$acl_shlibext" # typically: shrext=.so
  12124. else
  12125. shrext=
  12126. fi
  12127. if test $use_additional = yes; then
  12128. dir="$additional_libdir"
  12129. if test -n "$acl_shlibext"; then
  12130. if test -f "$dir/$libname$shrext"; then
  12131. found_dir="$dir"
  12132. found_so="$dir/$libname$shrext"
  12133. else
  12134. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12135. ver=`(cd "$dir" && \
  12136. for f in "$libname$shrext".*; do echo "$f"; done \
  12137. | sed -e "s,^$libname$shrext\\\\.,," \
  12138. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12139. | sed 1q ) 2>/dev/null`
  12140. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12141. found_dir="$dir"
  12142. found_so="$dir/$libname$shrext.$ver"
  12143. fi
  12144. else
  12145. eval library_names=\"$acl_library_names_spec\"
  12146. for f in $library_names; do
  12147. if test -f "$dir/$f"; then
  12148. found_dir="$dir"
  12149. found_so="$dir/$f"
  12150. break
  12151. fi
  12152. done
  12153. fi
  12154. fi
  12155. fi
  12156. if test "X$found_dir" = "X"; then
  12157. if test -f "$dir/$libname.$acl_libext"; then
  12158. found_dir="$dir"
  12159. found_a="$dir/$libname.$acl_libext"
  12160. fi
  12161. fi
  12162. if test "X$found_dir" != "X"; then
  12163. if test -f "$dir/$libname.la"; then
  12164. found_la="$dir/$libname.la"
  12165. fi
  12166. fi
  12167. fi
  12168. if test "X$found_dir" = "X"; then
  12169. for x in $LDFLAGS $LTLIBICONV; do
  12170. acl_save_prefix="$prefix"
  12171. prefix="$acl_final_prefix"
  12172. acl_save_exec_prefix="$exec_prefix"
  12173. exec_prefix="$acl_final_exec_prefix"
  12174. eval x=\"$x\"
  12175. exec_prefix="$acl_save_exec_prefix"
  12176. prefix="$acl_save_prefix"
  12177. case "$x" in
  12178. -L*)
  12179. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12180. if test -n "$acl_shlibext"; then
  12181. if test -f "$dir/$libname$shrext"; then
  12182. found_dir="$dir"
  12183. found_so="$dir/$libname$shrext"
  12184. else
  12185. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12186. ver=`(cd "$dir" && \
  12187. for f in "$libname$shrext".*; do echo "$f"; done \
  12188. | sed -e "s,^$libname$shrext\\\\.,," \
  12189. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12190. | sed 1q ) 2>/dev/null`
  12191. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12192. found_dir="$dir"
  12193. found_so="$dir/$libname$shrext.$ver"
  12194. fi
  12195. else
  12196. eval library_names=\"$acl_library_names_spec\"
  12197. for f in $library_names; do
  12198. if test -f "$dir/$f"; then
  12199. found_dir="$dir"
  12200. found_so="$dir/$f"
  12201. break
  12202. fi
  12203. done
  12204. fi
  12205. fi
  12206. fi
  12207. if test "X$found_dir" = "X"; then
  12208. if test -f "$dir/$libname.$acl_libext"; then
  12209. found_dir="$dir"
  12210. found_a="$dir/$libname.$acl_libext"
  12211. fi
  12212. fi
  12213. if test "X$found_dir" != "X"; then
  12214. if test -f "$dir/$libname.la"; then
  12215. found_la="$dir/$libname.la"
  12216. fi
  12217. fi
  12218. ;;
  12219. esac
  12220. if test "X$found_dir" != "X"; then
  12221. break
  12222. fi
  12223. done
  12224. fi
  12225. if test "X$found_dir" != "X"; then
  12226. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12227. if test "X$found_so" != "X"; then
  12228. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12229. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12230. else
  12231. haveit=
  12232. for x in $ltrpathdirs; do
  12233. if test "X$x" = "X$found_dir"; then
  12234. haveit=yes
  12235. break
  12236. fi
  12237. done
  12238. if test -z "$haveit"; then
  12239. ltrpathdirs="$ltrpathdirs $found_dir"
  12240. fi
  12241. if test "$acl_hardcode_direct" = yes; then
  12242. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12243. else
  12244. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12245. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12246. haveit=
  12247. for x in $rpathdirs; do
  12248. if test "X$x" = "X$found_dir"; then
  12249. haveit=yes
  12250. break
  12251. fi
  12252. done
  12253. if test -z "$haveit"; then
  12254. rpathdirs="$rpathdirs $found_dir"
  12255. fi
  12256. else
  12257. haveit=
  12258. for x in $LDFLAGS $LIBICONV; do
  12259. acl_save_prefix="$prefix"
  12260. prefix="$acl_final_prefix"
  12261. acl_save_exec_prefix="$exec_prefix"
  12262. exec_prefix="$acl_final_exec_prefix"
  12263. eval x=\"$x\"
  12264. exec_prefix="$acl_save_exec_prefix"
  12265. prefix="$acl_save_prefix"
  12266. if test "X$x" = "X-L$found_dir"; then
  12267. haveit=yes
  12268. break
  12269. fi
  12270. done
  12271. if test -z "$haveit"; then
  12272. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12273. fi
  12274. if test "$acl_hardcode_minus_L" != no; then
  12275. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12276. else
  12277. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12278. fi
  12279. fi
  12280. fi
  12281. fi
  12282. else
  12283. if test "X$found_a" != "X"; then
  12284. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12285. else
  12286. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12287. fi
  12288. fi
  12289. additional_includedir=
  12290. case "$found_dir" in
  12291. */$acl_libdirstem | */$acl_libdirstem/)
  12292. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12293. LIBICONV_PREFIX="$basedir"
  12294. additional_includedir="$basedir/include"
  12295. ;;
  12296. esac
  12297. if test "X$additional_includedir" != "X"; then
  12298. if test "X$additional_includedir" != "X/usr/include"; then
  12299. haveit=
  12300. if test "X$additional_includedir" = "X/usr/local/include"; then
  12301. if test -n "$GCC"; then
  12302. case $host_os in
  12303. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12304. esac
  12305. fi
  12306. fi
  12307. if test -z "$haveit"; then
  12308. for x in $CPPFLAGS $INCICONV; do
  12309. acl_save_prefix="$prefix"
  12310. prefix="$acl_final_prefix"
  12311. acl_save_exec_prefix="$exec_prefix"
  12312. exec_prefix="$acl_final_exec_prefix"
  12313. eval x=\"$x\"
  12314. exec_prefix="$acl_save_exec_prefix"
  12315. prefix="$acl_save_prefix"
  12316. if test "X$x" = "X-I$additional_includedir"; then
  12317. haveit=yes
  12318. break
  12319. fi
  12320. done
  12321. if test -z "$haveit"; then
  12322. if test -d "$additional_includedir"; then
  12323. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12324. fi
  12325. fi
  12326. fi
  12327. fi
  12328. fi
  12329. if test -n "$found_la"; then
  12330. save_libdir="$libdir"
  12331. case "$found_la" in
  12332. */* | *\\*) . "$found_la" ;;
  12333. *) . "./$found_la" ;;
  12334. esac
  12335. libdir="$save_libdir"
  12336. for dep in $dependency_libs; do
  12337. case "$dep" in
  12338. -L*)
  12339. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12340. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12341. haveit=
  12342. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12343. if test -n "$GCC"; then
  12344. case $host_os in
  12345. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12346. esac
  12347. fi
  12348. fi
  12349. if test -z "$haveit"; then
  12350. haveit=
  12351. for x in $LDFLAGS $LIBICONV; do
  12352. acl_save_prefix="$prefix"
  12353. prefix="$acl_final_prefix"
  12354. acl_save_exec_prefix="$exec_prefix"
  12355. exec_prefix="$acl_final_exec_prefix"
  12356. eval x=\"$x\"
  12357. exec_prefix="$acl_save_exec_prefix"
  12358. prefix="$acl_save_prefix"
  12359. if test "X$x" = "X-L$additional_libdir"; then
  12360. haveit=yes
  12361. break
  12362. fi
  12363. done
  12364. if test -z "$haveit"; then
  12365. if test -d "$additional_libdir"; then
  12366. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12367. fi
  12368. fi
  12369. haveit=
  12370. for x in $LDFLAGS $LTLIBICONV; do
  12371. acl_save_prefix="$prefix"
  12372. prefix="$acl_final_prefix"
  12373. acl_save_exec_prefix="$exec_prefix"
  12374. exec_prefix="$acl_final_exec_prefix"
  12375. eval x=\"$x\"
  12376. exec_prefix="$acl_save_exec_prefix"
  12377. prefix="$acl_save_prefix"
  12378. if test "X$x" = "X-L$additional_libdir"; then
  12379. haveit=yes
  12380. break
  12381. fi
  12382. done
  12383. if test -z "$haveit"; then
  12384. if test -d "$additional_libdir"; then
  12385. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12386. fi
  12387. fi
  12388. fi
  12389. fi
  12390. ;;
  12391. -R*)
  12392. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12393. if test "$enable_rpath" != no; then
  12394. haveit=
  12395. for x in $rpathdirs; do
  12396. if test "X$x" = "X$dir"; then
  12397. haveit=yes
  12398. break
  12399. fi
  12400. done
  12401. if test -z "$haveit"; then
  12402. rpathdirs="$rpathdirs $dir"
  12403. fi
  12404. haveit=
  12405. for x in $ltrpathdirs; do
  12406. if test "X$x" = "X$dir"; then
  12407. haveit=yes
  12408. break
  12409. fi
  12410. done
  12411. if test -z "$haveit"; then
  12412. ltrpathdirs="$ltrpathdirs $dir"
  12413. fi
  12414. fi
  12415. ;;
  12416. -l*)
  12417. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12418. ;;
  12419. *.la)
  12420. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12421. ;;
  12422. *)
  12423. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12424. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12425. ;;
  12426. esac
  12427. done
  12428. fi
  12429. else
  12430. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12431. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12432. fi
  12433. fi
  12434. fi
  12435. done
  12436. done
  12437. if test "X$rpathdirs" != "X"; then
  12438. if test -n "$acl_hardcode_libdir_separator"; then
  12439. alldirs=
  12440. for found_dir in $rpathdirs; do
  12441. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12442. done
  12443. acl_save_libdir="$libdir"
  12444. libdir="$alldirs"
  12445. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12446. libdir="$acl_save_libdir"
  12447. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12448. else
  12449. for found_dir in $rpathdirs; do
  12450. acl_save_libdir="$libdir"
  12451. libdir="$found_dir"
  12452. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12453. libdir="$acl_save_libdir"
  12454. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12455. done
  12456. fi
  12457. fi
  12458. if test "X$ltrpathdirs" != "X"; then
  12459. for found_dir in $ltrpathdirs; do
  12460. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12461. done
  12462. fi
  12463. cat >conftest.$ac_ext <<_ACEOF
  12464. /* confdefs.h. */
  12465. _ACEOF
  12466. cat confdefs.h >>conftest.$ac_ext
  12467. cat >>conftest.$ac_ext <<_ACEOF
  12468. /* end confdefs.h. */
  12469. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12470. int
  12471. main ()
  12472. {
  12473. ;
  12474. return 0;
  12475. }
  12476. _ACEOF
  12477. rm -f conftest.$ac_objext conftest$ac_exeext
  12478. if { (ac_try="$ac_link"
  12479. case "(($ac_try" in
  12480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12481. *) ac_try_echo=$ac_try;;
  12482. esac
  12483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12484. (eval "$ac_link") 2>conftest.er1
  12485. ac_status=$?
  12486. grep -v '^ *+' conftest.er1 >conftest.err
  12487. rm -f conftest.er1
  12488. cat conftest.err >&5
  12489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12490. (exit $ac_status); } && {
  12491. test -z "$ac_cxx_werror_flag" ||
  12492. test ! -s conftest.err
  12493. } && test -s conftest$ac_exeext &&
  12494. $as_test_x conftest$ac_exeext; then
  12495. cat >>confdefs.h <<\_ACEOF
  12496. #define HAVE_BUILTIN_EXPECT 1
  12497. _ACEOF
  12498. else
  12499. echo "$as_me: failed program was:" >&5
  12500. sed 's/^/| /' conftest.$ac_ext >&5
  12501. fi
  12502. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12503. conftest$ac_exeext conftest.$ac_ext
  12504. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12505. do
  12506. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12507. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12508. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12509. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12510. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12511. echo $ECHO_N "(cached) $ECHO_C" >&6
  12512. fi
  12513. ac_res=`eval echo '${'$as_ac_Header'}'`
  12514. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12515. echo "${ECHO_T}$ac_res" >&6; }
  12516. else
  12517. # Is the header compilable?
  12518. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12519. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12520. cat >conftest.$ac_ext <<_ACEOF
  12521. /* confdefs.h. */
  12522. _ACEOF
  12523. cat confdefs.h >>conftest.$ac_ext
  12524. cat >>conftest.$ac_ext <<_ACEOF
  12525. /* end confdefs.h. */
  12526. $ac_includes_default
  12527. #include <$ac_header>
  12528. _ACEOF
  12529. rm -f conftest.$ac_objext
  12530. if { (ac_try="$ac_compile"
  12531. case "(($ac_try" in
  12532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12533. *) ac_try_echo=$ac_try;;
  12534. esac
  12535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12536. (eval "$ac_compile") 2>conftest.er1
  12537. ac_status=$?
  12538. grep -v '^ *+' conftest.er1 >conftest.err
  12539. rm -f conftest.er1
  12540. cat conftest.err >&5
  12541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12542. (exit $ac_status); } && {
  12543. test -z "$ac_cxx_werror_flag" ||
  12544. test ! -s conftest.err
  12545. } && test -s conftest.$ac_objext; then
  12546. ac_header_compiler=yes
  12547. else
  12548. echo "$as_me: failed program was:" >&5
  12549. sed 's/^/| /' conftest.$ac_ext >&5
  12550. ac_header_compiler=no
  12551. fi
  12552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12553. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12554. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12555. # Is the header present?
  12556. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12557. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12558. cat >conftest.$ac_ext <<_ACEOF
  12559. /* confdefs.h. */
  12560. _ACEOF
  12561. cat confdefs.h >>conftest.$ac_ext
  12562. cat >>conftest.$ac_ext <<_ACEOF
  12563. /* end confdefs.h. */
  12564. #include <$ac_header>
  12565. _ACEOF
  12566. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12567. case "(($ac_try" in
  12568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12569. *) ac_try_echo=$ac_try;;
  12570. esac
  12571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12572. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12573. ac_status=$?
  12574. grep -v '^ *+' conftest.er1 >conftest.err
  12575. rm -f conftest.er1
  12576. cat conftest.err >&5
  12577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12578. (exit $ac_status); } >/dev/null && {
  12579. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12580. test ! -s conftest.err
  12581. }; then
  12582. ac_header_preproc=yes
  12583. else
  12584. echo "$as_me: failed program was:" >&5
  12585. sed 's/^/| /' conftest.$ac_ext >&5
  12586. ac_header_preproc=no
  12587. fi
  12588. rm -f conftest.err conftest.$ac_ext
  12589. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12590. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12591. # So? What about this header?
  12592. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12593. yes:no: )
  12594. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12595. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12596. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12597. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12598. ac_header_preproc=yes
  12599. ;;
  12600. no:yes:* )
  12601. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12602. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12603. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12604. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12605. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12606. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12607. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12608. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12609. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12610. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12611. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12612. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12613. ( cat <<\_ASBOX
  12614. ## ----------------------------------------------- ##
  12615. ## Report this to t-tujikawa@users.sourceforge.net ##
  12616. ## ----------------------------------------------- ##
  12617. _ASBOX
  12618. ) | sed "s/^/$as_me: WARNING: /" >&2
  12619. ;;
  12620. esac
  12621. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12622. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12623. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12624. echo $ECHO_N "(cached) $ECHO_C" >&6
  12625. else
  12626. eval "$as_ac_Header=\$ac_header_preproc"
  12627. fi
  12628. ac_res=`eval echo '${'$as_ac_Header'}'`
  12629. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12630. echo "${ECHO_T}$ac_res" >&6; }
  12631. fi
  12632. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12633. cat >>confdefs.h <<_ACEOF
  12634. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12635. _ACEOF
  12636. fi
  12637. done
  12638. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12639. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12640. argz_next __fsetlocking
  12641. do
  12642. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12643. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12644. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12645. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12646. echo $ECHO_N "(cached) $ECHO_C" >&6
  12647. else
  12648. cat >conftest.$ac_ext <<_ACEOF
  12649. /* confdefs.h. */
  12650. _ACEOF
  12651. cat confdefs.h >>conftest.$ac_ext
  12652. cat >>conftest.$ac_ext <<_ACEOF
  12653. /* end confdefs.h. */
  12654. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12655. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12656. #define $ac_func innocuous_$ac_func
  12657. /* System header to define __stub macros and hopefully few prototypes,
  12658. which can conflict with char $ac_func (); below.
  12659. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12660. <limits.h> exists even on freestanding compilers. */
  12661. #ifdef __STDC__
  12662. # include <limits.h>
  12663. #else
  12664. # include <assert.h>
  12665. #endif
  12666. #undef $ac_func
  12667. /* Override any GCC internal prototype to avoid an error.
  12668. Use char because int might match the return type of a GCC
  12669. builtin and then its argument prototype would still apply. */
  12670. #ifdef __cplusplus
  12671. extern "C"
  12672. #endif
  12673. char $ac_func ();
  12674. /* The GNU C library defines this for functions which it implements
  12675. to always fail with ENOSYS. Some functions are actually named
  12676. something starting with __ and the normal name is an alias. */
  12677. #if defined __stub_$ac_func || defined __stub___$ac_func
  12678. choke me
  12679. #endif
  12680. int
  12681. main ()
  12682. {
  12683. return $ac_func ();
  12684. ;
  12685. return 0;
  12686. }
  12687. _ACEOF
  12688. rm -f conftest.$ac_objext conftest$ac_exeext
  12689. if { (ac_try="$ac_link"
  12690. case "(($ac_try" in
  12691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12692. *) ac_try_echo=$ac_try;;
  12693. esac
  12694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12695. (eval "$ac_link") 2>conftest.er1
  12696. ac_status=$?
  12697. grep -v '^ *+' conftest.er1 >conftest.err
  12698. rm -f conftest.er1
  12699. cat conftest.err >&5
  12700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12701. (exit $ac_status); } && {
  12702. test -z "$ac_cxx_werror_flag" ||
  12703. test ! -s conftest.err
  12704. } && test -s conftest$ac_exeext &&
  12705. $as_test_x conftest$ac_exeext; then
  12706. eval "$as_ac_var=yes"
  12707. else
  12708. echo "$as_me: failed program was:" >&5
  12709. sed 's/^/| /' conftest.$ac_ext >&5
  12710. eval "$as_ac_var=no"
  12711. fi
  12712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12713. conftest$ac_exeext conftest.$ac_ext
  12714. fi
  12715. ac_res=`eval echo '${'$as_ac_var'}'`
  12716. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12717. echo "${ECHO_T}$ac_res" >&6; }
  12718. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12719. cat >>confdefs.h <<_ACEOF
  12720. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12721. _ACEOF
  12722. fi
  12723. done
  12724. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12725. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12726. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12727. echo $ECHO_N "(cached) $ECHO_C" >&6
  12728. else
  12729. cat >conftest.$ac_ext <<_ACEOF
  12730. /* confdefs.h. */
  12731. _ACEOF
  12732. cat confdefs.h >>conftest.$ac_ext
  12733. cat >>conftest.$ac_ext <<_ACEOF
  12734. /* end confdefs.h. */
  12735. #include <stdio.h>
  12736. int
  12737. main ()
  12738. {
  12739. #ifndef feof_unlocked
  12740. char *p = (char *) feof_unlocked;
  12741. #endif
  12742. ;
  12743. return 0;
  12744. }
  12745. _ACEOF
  12746. rm -f conftest.$ac_objext
  12747. if { (ac_try="$ac_compile"
  12748. case "(($ac_try" in
  12749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12750. *) ac_try_echo=$ac_try;;
  12751. esac
  12752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12753. (eval "$ac_compile") 2>conftest.er1
  12754. ac_status=$?
  12755. grep -v '^ *+' conftest.er1 >conftest.err
  12756. rm -f conftest.er1
  12757. cat conftest.err >&5
  12758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12759. (exit $ac_status); } && {
  12760. test -z "$ac_cxx_werror_flag" ||
  12761. test ! -s conftest.err
  12762. } && test -s conftest.$ac_objext; then
  12763. ac_cv_have_decl_feof_unlocked=yes
  12764. else
  12765. echo "$as_me: failed program was:" >&5
  12766. sed 's/^/| /' conftest.$ac_ext >&5
  12767. ac_cv_have_decl_feof_unlocked=no
  12768. fi
  12769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12770. fi
  12771. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12772. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12773. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12774. gt_value=1
  12775. else
  12776. gt_value=0
  12777. fi
  12778. cat >>confdefs.h <<_ACEOF
  12779. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12780. _ACEOF
  12781. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12782. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12783. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12784. echo $ECHO_N "(cached) $ECHO_C" >&6
  12785. else
  12786. cat >conftest.$ac_ext <<_ACEOF
  12787. /* confdefs.h. */
  12788. _ACEOF
  12789. cat confdefs.h >>conftest.$ac_ext
  12790. cat >>conftest.$ac_ext <<_ACEOF
  12791. /* end confdefs.h. */
  12792. #include <stdio.h>
  12793. int
  12794. main ()
  12795. {
  12796. #ifndef fgets_unlocked
  12797. char *p = (char *) fgets_unlocked;
  12798. #endif
  12799. ;
  12800. return 0;
  12801. }
  12802. _ACEOF
  12803. rm -f conftest.$ac_objext
  12804. if { (ac_try="$ac_compile"
  12805. case "(($ac_try" in
  12806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12807. *) ac_try_echo=$ac_try;;
  12808. esac
  12809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12810. (eval "$ac_compile") 2>conftest.er1
  12811. ac_status=$?
  12812. grep -v '^ *+' conftest.er1 >conftest.err
  12813. rm -f conftest.er1
  12814. cat conftest.err >&5
  12815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12816. (exit $ac_status); } && {
  12817. test -z "$ac_cxx_werror_flag" ||
  12818. test ! -s conftest.err
  12819. } && test -s conftest.$ac_objext; then
  12820. ac_cv_have_decl_fgets_unlocked=yes
  12821. else
  12822. echo "$as_me: failed program was:" >&5
  12823. sed 's/^/| /' conftest.$ac_ext >&5
  12824. ac_cv_have_decl_fgets_unlocked=no
  12825. fi
  12826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12827. fi
  12828. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12829. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12830. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12831. gt_value=1
  12832. else
  12833. gt_value=0
  12834. fi
  12835. cat >>confdefs.h <<_ACEOF
  12836. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12837. _ACEOF
  12838. am_save_CPPFLAGS="$CPPFLAGS"
  12839. for element in $INCICONV; do
  12840. haveit=
  12841. for x in $CPPFLAGS; do
  12842. acl_save_prefix="$prefix"
  12843. prefix="$acl_final_prefix"
  12844. acl_save_exec_prefix="$exec_prefix"
  12845. exec_prefix="$acl_final_exec_prefix"
  12846. eval x=\"$x\"
  12847. exec_prefix="$acl_save_exec_prefix"
  12848. prefix="$acl_save_prefix"
  12849. if test "X$x" = "X$element"; then
  12850. haveit=yes
  12851. break
  12852. fi
  12853. done
  12854. if test -z "$haveit"; then
  12855. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12856. fi
  12857. done
  12858. { echo "$as_me:$LINENO: checking for iconv" >&5
  12859. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12860. if test "${am_cv_func_iconv+set}" = set; then
  12861. echo $ECHO_N "(cached) $ECHO_C" >&6
  12862. else
  12863. am_cv_func_iconv="no, consider installing GNU libiconv"
  12864. am_cv_lib_iconv=no
  12865. cat >conftest.$ac_ext <<_ACEOF
  12866. /* confdefs.h. */
  12867. _ACEOF
  12868. cat confdefs.h >>conftest.$ac_ext
  12869. cat >>conftest.$ac_ext <<_ACEOF
  12870. /* end confdefs.h. */
  12871. #include <stdlib.h>
  12872. #include <iconv.h>
  12873. int
  12874. main ()
  12875. {
  12876. iconv_t cd = iconv_open("","");
  12877. iconv(cd,NULL,NULL,NULL,NULL);
  12878. iconv_close(cd);
  12879. ;
  12880. return 0;
  12881. }
  12882. _ACEOF
  12883. rm -f conftest.$ac_objext conftest$ac_exeext
  12884. if { (ac_try="$ac_link"
  12885. case "(($ac_try" in
  12886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12887. *) ac_try_echo=$ac_try;;
  12888. esac
  12889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12890. (eval "$ac_link") 2>conftest.er1
  12891. ac_status=$?
  12892. grep -v '^ *+' conftest.er1 >conftest.err
  12893. rm -f conftest.er1
  12894. cat conftest.err >&5
  12895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12896. (exit $ac_status); } && {
  12897. test -z "$ac_cxx_werror_flag" ||
  12898. test ! -s conftest.err
  12899. } && test -s conftest$ac_exeext &&
  12900. $as_test_x conftest$ac_exeext; then
  12901. am_cv_func_iconv=yes
  12902. else
  12903. echo "$as_me: failed program was:" >&5
  12904. sed 's/^/| /' conftest.$ac_ext >&5
  12905. fi
  12906. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12907. conftest$ac_exeext conftest.$ac_ext
  12908. if test "$am_cv_func_iconv" != yes; then
  12909. am_save_LIBS="$LIBS"
  12910. LIBS="$LIBS $LIBICONV"
  12911. cat >conftest.$ac_ext <<_ACEOF
  12912. /* confdefs.h. */
  12913. _ACEOF
  12914. cat confdefs.h >>conftest.$ac_ext
  12915. cat >>conftest.$ac_ext <<_ACEOF
  12916. /* end confdefs.h. */
  12917. #include <stdlib.h>
  12918. #include <iconv.h>
  12919. int
  12920. main ()
  12921. {
  12922. iconv_t cd = iconv_open("","");
  12923. iconv(cd,NULL,NULL,NULL,NULL);
  12924. iconv_close(cd);
  12925. ;
  12926. return 0;
  12927. }
  12928. _ACEOF
  12929. rm -f conftest.$ac_objext conftest$ac_exeext
  12930. if { (ac_try="$ac_link"
  12931. case "(($ac_try" in
  12932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12933. *) ac_try_echo=$ac_try;;
  12934. esac
  12935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12936. (eval "$ac_link") 2>conftest.er1
  12937. ac_status=$?
  12938. grep -v '^ *+' conftest.er1 >conftest.err
  12939. rm -f conftest.er1
  12940. cat conftest.err >&5
  12941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12942. (exit $ac_status); } && {
  12943. test -z "$ac_cxx_werror_flag" ||
  12944. test ! -s conftest.err
  12945. } && test -s conftest$ac_exeext &&
  12946. $as_test_x conftest$ac_exeext; then
  12947. am_cv_lib_iconv=yes
  12948. am_cv_func_iconv=yes
  12949. else
  12950. echo "$as_me: failed program was:" >&5
  12951. sed 's/^/| /' conftest.$ac_ext >&5
  12952. fi
  12953. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12954. conftest$ac_exeext conftest.$ac_ext
  12955. LIBS="$am_save_LIBS"
  12956. fi
  12957. fi
  12958. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12959. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12960. if test "$am_cv_func_iconv" = yes; then
  12961. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12962. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12963. if test "${am_cv_func_iconv_works+set}" = set; then
  12964. echo $ECHO_N "(cached) $ECHO_C" >&6
  12965. else
  12966. am_save_LIBS="$LIBS"
  12967. if test $am_cv_lib_iconv = yes; then
  12968. LIBS="$LIBS $LIBICONV"
  12969. fi
  12970. if test "$cross_compiling" = yes; then
  12971. case "$host_os" in
  12972. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12973. *) am_cv_func_iconv_works="guessing yes" ;;
  12974. esac
  12975. else
  12976. cat >conftest.$ac_ext <<_ACEOF
  12977. /* confdefs.h. */
  12978. _ACEOF
  12979. cat confdefs.h >>conftest.$ac_ext
  12980. cat >>conftest.$ac_ext <<_ACEOF
  12981. /* end confdefs.h. */
  12982. #include <iconv.h>
  12983. #include <string.h>
  12984. int main ()
  12985. {
  12986. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12987. returns. */
  12988. {
  12989. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12990. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12991. {
  12992. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12993. char buf[10];
  12994. const char *inptr = input;
  12995. size_t inbytesleft = strlen (input);
  12996. char *outptr = buf;
  12997. size_t outbytesleft = sizeof (buf);
  12998. size_t res = iconv (cd_utf8_to_88591,
  12999. (char **) &inptr, &inbytesleft,
  13000. &outptr, &outbytesleft);
  13001. if (res == 0)
  13002. return 1;
  13003. }
  13004. }
  13005. #if 0 /* This bug could be worked around by the caller. */
  13006. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13007. {
  13008. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13009. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13010. {
  13011. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13012. char buf[50];
  13013. const char *inptr = input;
  13014. size_t inbytesleft = strlen (input);
  13015. char *outptr = buf;
  13016. size_t outbytesleft = sizeof (buf);
  13017. size_t res = iconv (cd_88591_to_utf8,
  13018. (char **) &inptr, &inbytesleft,
  13019. &outptr, &outbytesleft);
  13020. if ((int)res > 0)
  13021. return 1;
  13022. }
  13023. }
  13024. #endif
  13025. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13026. provided. */
  13027. if (/* Try standardized names. */
  13028. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13029. /* Try IRIX, OSF/1 names. */
  13030. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13031. /* Try AIX names. */
  13032. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13033. /* Try HP-UX names. */
  13034. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13035. return 1;
  13036. return 0;
  13037. }
  13038. _ACEOF
  13039. rm -f conftest$ac_exeext
  13040. if { (ac_try="$ac_link"
  13041. case "(($ac_try" in
  13042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13043. *) ac_try_echo=$ac_try;;
  13044. esac
  13045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13046. (eval "$ac_link") 2>&5
  13047. ac_status=$?
  13048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13050. { (case "(($ac_try" in
  13051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13052. *) ac_try_echo=$ac_try;;
  13053. esac
  13054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13055. (eval "$ac_try") 2>&5
  13056. ac_status=$?
  13057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13058. (exit $ac_status); }; }; then
  13059. am_cv_func_iconv_works=yes
  13060. else
  13061. echo "$as_me: program exited with status $ac_status" >&5
  13062. echo "$as_me: failed program was:" >&5
  13063. sed 's/^/| /' conftest.$ac_ext >&5
  13064. ( exit $ac_status )
  13065. am_cv_func_iconv_works=no
  13066. fi
  13067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13068. fi
  13069. LIBS="$am_save_LIBS"
  13070. fi
  13071. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13072. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13073. case "$am_cv_func_iconv_works" in
  13074. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13075. *) am_func_iconv=yes ;;
  13076. esac
  13077. else
  13078. am_func_iconv=no am_cv_lib_iconv=no
  13079. fi
  13080. if test "$am_func_iconv" = yes; then
  13081. cat >>confdefs.h <<\_ACEOF
  13082. #define HAVE_ICONV 1
  13083. _ACEOF
  13084. fi
  13085. if test "$am_cv_lib_iconv" = yes; then
  13086. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13087. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13088. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13089. echo "${ECHO_T}$LIBICONV" >&6; }
  13090. else
  13091. CPPFLAGS="$am_save_CPPFLAGS"
  13092. LIBICONV=
  13093. LTLIBICONV=
  13094. fi
  13095. if test "$am_cv_func_iconv" = yes; then
  13096. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13097. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13098. if test "${am_cv_proto_iconv+set}" = set; then
  13099. echo $ECHO_N "(cached) $ECHO_C" >&6
  13100. else
  13101. cat >conftest.$ac_ext <<_ACEOF
  13102. /* confdefs.h. */
  13103. _ACEOF
  13104. cat confdefs.h >>conftest.$ac_ext
  13105. cat >>conftest.$ac_ext <<_ACEOF
  13106. /* end confdefs.h. */
  13107. #include <stdlib.h>
  13108. #include <iconv.h>
  13109. extern
  13110. #ifdef __cplusplus
  13111. "C"
  13112. #endif
  13113. #if defined(__STDC__) || defined(__cplusplus)
  13114. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13115. #else
  13116. size_t iconv();
  13117. #endif
  13118. int
  13119. main ()
  13120. {
  13121. ;
  13122. return 0;
  13123. }
  13124. _ACEOF
  13125. rm -f conftest.$ac_objext
  13126. if { (ac_try="$ac_compile"
  13127. case "(($ac_try" in
  13128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13129. *) ac_try_echo=$ac_try;;
  13130. esac
  13131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13132. (eval "$ac_compile") 2>conftest.er1
  13133. ac_status=$?
  13134. grep -v '^ *+' conftest.er1 >conftest.err
  13135. rm -f conftest.er1
  13136. cat conftest.err >&5
  13137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13138. (exit $ac_status); } && {
  13139. test -z "$ac_cxx_werror_flag" ||
  13140. test ! -s conftest.err
  13141. } && test -s conftest.$ac_objext; then
  13142. am_cv_proto_iconv_arg1=""
  13143. else
  13144. echo "$as_me: failed program was:" >&5
  13145. sed 's/^/| /' conftest.$ac_ext >&5
  13146. am_cv_proto_iconv_arg1="const"
  13147. fi
  13148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13149. 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);"
  13150. fi
  13151. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13152. { echo "$as_me:$LINENO: result: ${ac_t:-
  13153. }$am_cv_proto_iconv" >&5
  13154. echo "${ECHO_T}${ac_t:-
  13155. }$am_cv_proto_iconv" >&6; }
  13156. cat >>confdefs.h <<_ACEOF
  13157. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13158. _ACEOF
  13159. fi
  13160. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13161. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13162. if test "${gt_cv_nl_locale_name+set}" = set; then
  13163. echo $ECHO_N "(cached) $ECHO_C" >&6
  13164. else
  13165. cat >conftest.$ac_ext <<_ACEOF
  13166. /* confdefs.h. */
  13167. _ACEOF
  13168. cat confdefs.h >>conftest.$ac_ext
  13169. cat >>conftest.$ac_ext <<_ACEOF
  13170. /* end confdefs.h. */
  13171. #include <langinfo.h>
  13172. #include <locale.h>
  13173. int
  13174. main ()
  13175. {
  13176. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13177. return !cs;
  13178. ;
  13179. return 0;
  13180. }
  13181. _ACEOF
  13182. rm -f conftest.$ac_objext conftest$ac_exeext
  13183. if { (ac_try="$ac_link"
  13184. case "(($ac_try" in
  13185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13186. *) ac_try_echo=$ac_try;;
  13187. esac
  13188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13189. (eval "$ac_link") 2>conftest.er1
  13190. ac_status=$?
  13191. grep -v '^ *+' conftest.er1 >conftest.err
  13192. rm -f conftest.er1
  13193. cat conftest.err >&5
  13194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13195. (exit $ac_status); } && {
  13196. test -z "$ac_cxx_werror_flag" ||
  13197. test ! -s conftest.err
  13198. } && test -s conftest$ac_exeext &&
  13199. $as_test_x conftest$ac_exeext; then
  13200. gt_cv_nl_locale_name=yes
  13201. else
  13202. echo "$as_me: failed program was:" >&5
  13203. sed 's/^/| /' conftest.$ac_ext >&5
  13204. gt_cv_nl_locale_name=no
  13205. fi
  13206. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13207. conftest$ac_exeext conftest.$ac_ext
  13208. fi
  13209. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13210. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13211. if test $gt_cv_nl_locale_name = yes; then
  13212. cat >>confdefs.h <<\_ACEOF
  13213. #define HAVE_NL_LOCALE_NAME 1
  13214. _ACEOF
  13215. fi
  13216. for ac_prog in bison
  13217. do
  13218. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13219. set dummy $ac_prog; ac_word=$2
  13220. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13221. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13222. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13223. echo $ECHO_N "(cached) $ECHO_C" >&6
  13224. else
  13225. if test -n "$INTLBISON"; then
  13226. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13227. else
  13228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13229. for as_dir in $PATH
  13230. do
  13231. IFS=$as_save_IFS
  13232. test -z "$as_dir" && as_dir=.
  13233. for ac_exec_ext in '' $ac_executable_extensions; do
  13234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13235. ac_cv_prog_INTLBISON="$ac_prog"
  13236. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13237. break 2
  13238. fi
  13239. done
  13240. done
  13241. IFS=$as_save_IFS
  13242. fi
  13243. fi
  13244. INTLBISON=$ac_cv_prog_INTLBISON
  13245. if test -n "$INTLBISON"; then
  13246. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13247. echo "${ECHO_T}$INTLBISON" >&6; }
  13248. else
  13249. { echo "$as_me:$LINENO: result: no" >&5
  13250. echo "${ECHO_T}no" >&6; }
  13251. fi
  13252. test -n "$INTLBISON" && break
  13253. done
  13254. if test -z "$INTLBISON"; then
  13255. ac_verc_fail=yes
  13256. else
  13257. { echo "$as_me:$LINENO: checking version of bison" >&5
  13258. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13259. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13260. case $ac_prog_version in
  13261. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13262. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13263. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13264. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13265. esac
  13266. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13267. echo "${ECHO_T}$ac_prog_version" >&6; }
  13268. fi
  13269. if test $ac_verc_fail = yes; then
  13270. INTLBISON=:
  13271. fi
  13272. { echo "$as_me:$LINENO: checking for long long int" >&5
  13273. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13274. if test "${ac_cv_type_long_long_int+set}" = set; then
  13275. echo $ECHO_N "(cached) $ECHO_C" >&6
  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. /* Test preprocessor. */
  13284. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13285. error in preprocessor;
  13286. #endif
  13287. #if ! (18446744073709551615ULL <= -1ull)
  13288. error in preprocessor;
  13289. #endif
  13290. /* Test literals. */
  13291. long long int ll = 9223372036854775807ll;
  13292. long long int nll = -9223372036854775807LL;
  13293. unsigned long long int ull = 18446744073709551615ULL;
  13294. /* Test constant expressions. */
  13295. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13296. ? 1 : -1)];
  13297. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13298. ? 1 : -1)];
  13299. int i = 63;
  13300. int
  13301. main ()
  13302. {
  13303. /* Test availability of runtime routines for shift and division. */
  13304. long long int llmax = 9223372036854775807ll;
  13305. unsigned long long int ullmax = 18446744073709551615ull;
  13306. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13307. | (llmax / ll) | (llmax % ll)
  13308. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13309. | (ullmax / ull) | (ullmax % ull));
  13310. ;
  13311. return 0;
  13312. }
  13313. _ACEOF
  13314. rm -f conftest.$ac_objext 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>conftest.er1
  13322. ac_status=$?
  13323. grep -v '^ *+' conftest.er1 >conftest.err
  13324. rm -f conftest.er1
  13325. cat conftest.err >&5
  13326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13327. (exit $ac_status); } && {
  13328. test -z "$ac_cxx_werror_flag" ||
  13329. test ! -s conftest.err
  13330. } && test -s conftest$ac_exeext &&
  13331. $as_test_x conftest$ac_exeext; then
  13332. if test "$cross_compiling" = yes; then
  13333. ac_cv_type_long_long_int=yes
  13334. else
  13335. cat >conftest.$ac_ext <<_ACEOF
  13336. /* confdefs.h. */
  13337. _ACEOF
  13338. cat confdefs.h >>conftest.$ac_ext
  13339. cat >>conftest.$ac_ext <<_ACEOF
  13340. /* end confdefs.h. */
  13341. #include <limits.h>
  13342. #ifndef LLONG_MAX
  13343. # define HALF \
  13344. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13345. # define LLONG_MAX (HALF - 1 + HALF)
  13346. #endif
  13347. int
  13348. main ()
  13349. {
  13350. long long int n = 1;
  13351. int i;
  13352. for (i = 0; ; i++)
  13353. {
  13354. long long int m = n << i;
  13355. if (m >> i != n)
  13356. return 1;
  13357. if (LLONG_MAX / 2 < m)
  13358. break;
  13359. }
  13360. return 0;
  13361. ;
  13362. return 0;
  13363. }
  13364. _ACEOF
  13365. rm -f conftest$ac_exeext
  13366. if { (ac_try="$ac_link"
  13367. case "(($ac_try" in
  13368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13369. *) ac_try_echo=$ac_try;;
  13370. esac
  13371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13372. (eval "$ac_link") 2>&5
  13373. ac_status=$?
  13374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13375. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13376. { (case "(($ac_try" in
  13377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13378. *) ac_try_echo=$ac_try;;
  13379. esac
  13380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13381. (eval "$ac_try") 2>&5
  13382. ac_status=$?
  13383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13384. (exit $ac_status); }; }; then
  13385. ac_cv_type_long_long_int=yes
  13386. else
  13387. echo "$as_me: program exited with status $ac_status" >&5
  13388. echo "$as_me: failed program was:" >&5
  13389. sed 's/^/| /' conftest.$ac_ext >&5
  13390. ( exit $ac_status )
  13391. ac_cv_type_long_long_int=no
  13392. fi
  13393. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13394. fi
  13395. else
  13396. echo "$as_me: failed program was:" >&5
  13397. sed 's/^/| /' conftest.$ac_ext >&5
  13398. ac_cv_type_long_long_int=no
  13399. fi
  13400. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13401. conftest$ac_exeext conftest.$ac_ext
  13402. fi
  13403. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13404. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13405. if test $ac_cv_type_long_long_int = yes; then
  13406. cat >>confdefs.h <<\_ACEOF
  13407. #define HAVE_LONG_LONG_INT 1
  13408. _ACEOF
  13409. fi
  13410. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13411. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13412. if test "${gt_cv_c_wchar_t+set}" = set; then
  13413. echo $ECHO_N "(cached) $ECHO_C" >&6
  13414. else
  13415. cat >conftest.$ac_ext <<_ACEOF
  13416. /* confdefs.h. */
  13417. _ACEOF
  13418. cat confdefs.h >>conftest.$ac_ext
  13419. cat >>conftest.$ac_ext <<_ACEOF
  13420. /* end confdefs.h. */
  13421. #include <stddef.h>
  13422. wchar_t foo = (wchar_t)'\0';
  13423. int
  13424. main ()
  13425. {
  13426. ;
  13427. return 0;
  13428. }
  13429. _ACEOF
  13430. rm -f conftest.$ac_objext
  13431. if { (ac_try="$ac_compile"
  13432. case "(($ac_try" in
  13433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13434. *) ac_try_echo=$ac_try;;
  13435. esac
  13436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13437. (eval "$ac_compile") 2>conftest.er1
  13438. ac_status=$?
  13439. grep -v '^ *+' conftest.er1 >conftest.err
  13440. rm -f conftest.er1
  13441. cat conftest.err >&5
  13442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13443. (exit $ac_status); } && {
  13444. test -z "$ac_cxx_werror_flag" ||
  13445. test ! -s conftest.err
  13446. } && test -s conftest.$ac_objext; then
  13447. gt_cv_c_wchar_t=yes
  13448. else
  13449. echo "$as_me: failed program was:" >&5
  13450. sed 's/^/| /' conftest.$ac_ext >&5
  13451. gt_cv_c_wchar_t=no
  13452. fi
  13453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13454. fi
  13455. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13456. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13457. if test $gt_cv_c_wchar_t = yes; then
  13458. cat >>confdefs.h <<\_ACEOF
  13459. #define HAVE_WCHAR_T 1
  13460. _ACEOF
  13461. fi
  13462. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13463. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13464. if test "${gt_cv_c_wint_t+set}" = set; then
  13465. echo $ECHO_N "(cached) $ECHO_C" >&6
  13466. else
  13467. cat >conftest.$ac_ext <<_ACEOF
  13468. /* confdefs.h. */
  13469. _ACEOF
  13470. cat confdefs.h >>conftest.$ac_ext
  13471. cat >>conftest.$ac_ext <<_ACEOF
  13472. /* end confdefs.h. */
  13473. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13474. <wchar.h>.
  13475. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13476. before <wchar.h>. */
  13477. #include <stddef.h>
  13478. #include <stdio.h>
  13479. #include <time.h>
  13480. #include <wchar.h>
  13481. wint_t foo = (wchar_t)'\0';
  13482. int
  13483. main ()
  13484. {
  13485. ;
  13486. return 0;
  13487. }
  13488. _ACEOF
  13489. rm -f conftest.$ac_objext
  13490. if { (ac_try="$ac_compile"
  13491. case "(($ac_try" in
  13492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13493. *) ac_try_echo=$ac_try;;
  13494. esac
  13495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13496. (eval "$ac_compile") 2>conftest.er1
  13497. ac_status=$?
  13498. grep -v '^ *+' conftest.er1 >conftest.err
  13499. rm -f conftest.er1
  13500. cat conftest.err >&5
  13501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13502. (exit $ac_status); } && {
  13503. test -z "$ac_cxx_werror_flag" ||
  13504. test ! -s conftest.err
  13505. } && test -s conftest.$ac_objext; then
  13506. gt_cv_c_wint_t=yes
  13507. else
  13508. echo "$as_me: failed program was:" >&5
  13509. sed 's/^/| /' conftest.$ac_ext >&5
  13510. gt_cv_c_wint_t=no
  13511. fi
  13512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13513. fi
  13514. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13515. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13516. if test $gt_cv_c_wint_t = yes; then
  13517. cat >>confdefs.h <<\_ACEOF
  13518. #define HAVE_WINT_T 1
  13519. _ACEOF
  13520. fi
  13521. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13522. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13523. if test "${gt_cv_c_intmax_t+set}" = set; then
  13524. echo $ECHO_N "(cached) $ECHO_C" >&6
  13525. else
  13526. cat >conftest.$ac_ext <<_ACEOF
  13527. /* confdefs.h. */
  13528. _ACEOF
  13529. cat confdefs.h >>conftest.$ac_ext
  13530. cat >>conftest.$ac_ext <<_ACEOF
  13531. /* end confdefs.h. */
  13532. #include <stddef.h>
  13533. #include <stdlib.h>
  13534. #if HAVE_STDINT_H_WITH_UINTMAX
  13535. #include <stdint.h>
  13536. #endif
  13537. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13538. #include <inttypes.h>
  13539. #endif
  13540. int
  13541. main ()
  13542. {
  13543. intmax_t x = -1;
  13544. return !x;
  13545. ;
  13546. return 0;
  13547. }
  13548. _ACEOF
  13549. rm -f conftest.$ac_objext
  13550. if { (ac_try="$ac_compile"
  13551. case "(($ac_try" in
  13552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13553. *) ac_try_echo=$ac_try;;
  13554. esac
  13555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13556. (eval "$ac_compile") 2>conftest.er1
  13557. ac_status=$?
  13558. grep -v '^ *+' conftest.er1 >conftest.err
  13559. rm -f conftest.er1
  13560. cat conftest.err >&5
  13561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13562. (exit $ac_status); } && {
  13563. test -z "$ac_cxx_werror_flag" ||
  13564. test ! -s conftest.err
  13565. } && test -s conftest.$ac_objext; then
  13566. gt_cv_c_intmax_t=yes
  13567. else
  13568. echo "$as_me: failed program was:" >&5
  13569. sed 's/^/| /' conftest.$ac_ext >&5
  13570. gt_cv_c_intmax_t=no
  13571. fi
  13572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13573. fi
  13574. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13575. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13576. if test $gt_cv_c_intmax_t = yes; then
  13577. cat >>confdefs.h <<\_ACEOF
  13578. #define HAVE_INTMAX_T 1
  13579. _ACEOF
  13580. fi
  13581. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13582. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13583. if test "${gt_cv_func_printf_posix+set}" = set; then
  13584. echo $ECHO_N "(cached) $ECHO_C" >&6
  13585. else
  13586. if test "$cross_compiling" = yes; then
  13587. cat >conftest.$ac_ext <<_ACEOF
  13588. /* confdefs.h. */
  13589. _ACEOF
  13590. cat confdefs.h >>conftest.$ac_ext
  13591. cat >>conftest.$ac_ext <<_ACEOF
  13592. /* end confdefs.h. */
  13593. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13594. notposix
  13595. #endif
  13596. _ACEOF
  13597. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13598. $EGREP "notposix" >/dev/null 2>&1; then
  13599. gt_cv_func_printf_posix="guessing no"
  13600. else
  13601. gt_cv_func_printf_posix="guessing yes"
  13602. fi
  13603. rm -f conftest*
  13604. else
  13605. cat >conftest.$ac_ext <<_ACEOF
  13606. /* confdefs.h. */
  13607. _ACEOF
  13608. cat confdefs.h >>conftest.$ac_ext
  13609. cat >>conftest.$ac_ext <<_ACEOF
  13610. /* end confdefs.h. */
  13611. #include <stdio.h>
  13612. #include <string.h>
  13613. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13614. dollar expansion (possibly an autoconf bug). */
  13615. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13616. static char buf[100];
  13617. int main ()
  13618. {
  13619. sprintf (buf, format, 33, 55);
  13620. return (strcmp (buf, "55 33") != 0);
  13621. }
  13622. _ACEOF
  13623. rm -f conftest$ac_exeext
  13624. if { (ac_try="$ac_link"
  13625. case "(($ac_try" in
  13626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13627. *) ac_try_echo=$ac_try;;
  13628. esac
  13629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13630. (eval "$ac_link") 2>&5
  13631. ac_status=$?
  13632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13633. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13634. { (case "(($ac_try" in
  13635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13636. *) ac_try_echo=$ac_try;;
  13637. esac
  13638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13639. (eval "$ac_try") 2>&5
  13640. ac_status=$?
  13641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13642. (exit $ac_status); }; }; then
  13643. gt_cv_func_printf_posix=yes
  13644. else
  13645. echo "$as_me: program exited with status $ac_status" >&5
  13646. echo "$as_me: failed program was:" >&5
  13647. sed 's/^/| /' conftest.$ac_ext >&5
  13648. ( exit $ac_status )
  13649. gt_cv_func_printf_posix=no
  13650. fi
  13651. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13652. fi
  13653. fi
  13654. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13655. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13656. case $gt_cv_func_printf_posix in
  13657. *yes)
  13658. cat >>confdefs.h <<\_ACEOF
  13659. #define HAVE_POSIX_PRINTF 1
  13660. _ACEOF
  13661. ;;
  13662. esac
  13663. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13664. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13665. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13666. echo $ECHO_N "(cached) $ECHO_C" >&6
  13667. else
  13668. cat >conftest.$ac_ext <<_ACEOF
  13669. /* confdefs.h. */
  13670. _ACEOF
  13671. cat confdefs.h >>conftest.$ac_ext
  13672. cat >>conftest.$ac_ext <<_ACEOF
  13673. /* end confdefs.h. */
  13674. #include <features.h>
  13675. #ifdef __GNU_LIBRARY__
  13676. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13677. Lucky GNU user
  13678. #endif
  13679. #endif
  13680. _ACEOF
  13681. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13682. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13683. ac_cv_gnu_library_2_1=yes
  13684. else
  13685. ac_cv_gnu_library_2_1=no
  13686. fi
  13687. rm -f conftest*
  13688. fi
  13689. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13690. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13691. GLIBC21="$ac_cv_gnu_library_2_1"
  13692. for ac_header in stdint.h
  13693. do
  13694. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13695. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13696. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13697. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13698. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13699. echo $ECHO_N "(cached) $ECHO_C" >&6
  13700. fi
  13701. ac_res=`eval echo '${'$as_ac_Header'}'`
  13702. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13703. echo "${ECHO_T}$ac_res" >&6; }
  13704. else
  13705. # Is the header compilable?
  13706. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13707. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13708. cat >conftest.$ac_ext <<_ACEOF
  13709. /* confdefs.h. */
  13710. _ACEOF
  13711. cat confdefs.h >>conftest.$ac_ext
  13712. cat >>conftest.$ac_ext <<_ACEOF
  13713. /* end confdefs.h. */
  13714. $ac_includes_default
  13715. #include <$ac_header>
  13716. _ACEOF
  13717. rm -f conftest.$ac_objext
  13718. if { (ac_try="$ac_compile"
  13719. case "(($ac_try" in
  13720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13721. *) ac_try_echo=$ac_try;;
  13722. esac
  13723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13724. (eval "$ac_compile") 2>conftest.er1
  13725. ac_status=$?
  13726. grep -v '^ *+' conftest.er1 >conftest.err
  13727. rm -f conftest.er1
  13728. cat conftest.err >&5
  13729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13730. (exit $ac_status); } && {
  13731. test -z "$ac_cxx_werror_flag" ||
  13732. test ! -s conftest.err
  13733. } && test -s conftest.$ac_objext; then
  13734. ac_header_compiler=yes
  13735. else
  13736. echo "$as_me: failed program was:" >&5
  13737. sed 's/^/| /' conftest.$ac_ext >&5
  13738. ac_header_compiler=no
  13739. fi
  13740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13741. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13742. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13743. # Is the header present?
  13744. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13745. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13746. cat >conftest.$ac_ext <<_ACEOF
  13747. /* confdefs.h. */
  13748. _ACEOF
  13749. cat confdefs.h >>conftest.$ac_ext
  13750. cat >>conftest.$ac_ext <<_ACEOF
  13751. /* end confdefs.h. */
  13752. #include <$ac_header>
  13753. _ACEOF
  13754. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13755. case "(($ac_try" in
  13756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13757. *) ac_try_echo=$ac_try;;
  13758. esac
  13759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13760. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13761. ac_status=$?
  13762. grep -v '^ *+' conftest.er1 >conftest.err
  13763. rm -f conftest.er1
  13764. cat conftest.err >&5
  13765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13766. (exit $ac_status); } >/dev/null && {
  13767. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13768. test ! -s conftest.err
  13769. }; then
  13770. ac_header_preproc=yes
  13771. else
  13772. echo "$as_me: failed program was:" >&5
  13773. sed 's/^/| /' conftest.$ac_ext >&5
  13774. ac_header_preproc=no
  13775. fi
  13776. rm -f conftest.err conftest.$ac_ext
  13777. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13778. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13779. # So? What about this header?
  13780. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13781. yes:no: )
  13782. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13783. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13784. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13785. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13786. ac_header_preproc=yes
  13787. ;;
  13788. no:yes:* )
  13789. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13790. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13791. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13792. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13793. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13794. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13795. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13796. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13797. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13798. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13799. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13800. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13801. ( cat <<\_ASBOX
  13802. ## ----------------------------------------------- ##
  13803. ## Report this to t-tujikawa@users.sourceforge.net ##
  13804. ## ----------------------------------------------- ##
  13805. _ASBOX
  13806. ) | sed "s/^/$as_me: WARNING: /" >&2
  13807. ;;
  13808. esac
  13809. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13810. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13811. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13812. echo $ECHO_N "(cached) $ECHO_C" >&6
  13813. else
  13814. eval "$as_ac_Header=\$ac_header_preproc"
  13815. fi
  13816. ac_res=`eval echo '${'$as_ac_Header'}'`
  13817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13818. echo "${ECHO_T}$ac_res" >&6; }
  13819. fi
  13820. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13821. cat >>confdefs.h <<_ACEOF
  13822. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13823. _ACEOF
  13824. fi
  13825. done
  13826. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13827. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13828. if test "${gl_cv_size_max+set}" = set; then
  13829. echo $ECHO_N "(cached) $ECHO_C" >&6
  13830. else
  13831. gl_cv_size_max=
  13832. cat >conftest.$ac_ext <<_ACEOF
  13833. /* confdefs.h. */
  13834. _ACEOF
  13835. cat confdefs.h >>conftest.$ac_ext
  13836. cat >>conftest.$ac_ext <<_ACEOF
  13837. /* end confdefs.h. */
  13838. #include <limits.h>
  13839. #if HAVE_STDINT_H
  13840. #include <stdint.h>
  13841. #endif
  13842. #ifdef SIZE_MAX
  13843. Found it
  13844. #endif
  13845. _ACEOF
  13846. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13847. $EGREP "Found it" >/dev/null 2>&1; then
  13848. gl_cv_size_max=yes
  13849. fi
  13850. rm -f conftest*
  13851. if test -z "$gl_cv_size_max"; then
  13852. if test "$cross_compiling" = yes; then
  13853. # Depending upon the size, compute the lo and hi bounds.
  13854. cat >conftest.$ac_ext <<_ACEOF
  13855. /* confdefs.h. */
  13856. _ACEOF
  13857. cat confdefs.h >>conftest.$ac_ext
  13858. cat >>conftest.$ac_ext <<_ACEOF
  13859. /* end confdefs.h. */
  13860. #include <stddef.h>
  13861. #include <limits.h>
  13862. int
  13863. main ()
  13864. {
  13865. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13866. test_array [0] = 0
  13867. ;
  13868. return 0;
  13869. }
  13870. _ACEOF
  13871. rm -f conftest.$ac_objext
  13872. if { (ac_try="$ac_compile"
  13873. case "(($ac_try" in
  13874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13875. *) ac_try_echo=$ac_try;;
  13876. esac
  13877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13878. (eval "$ac_compile") 2>conftest.er1
  13879. ac_status=$?
  13880. grep -v '^ *+' conftest.er1 >conftest.err
  13881. rm -f conftest.er1
  13882. cat conftest.err >&5
  13883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13884. (exit $ac_status); } && {
  13885. test -z "$ac_cxx_werror_flag" ||
  13886. test ! -s conftest.err
  13887. } && test -s conftest.$ac_objext; then
  13888. ac_lo=0 ac_mid=0
  13889. while :; do
  13890. cat >conftest.$ac_ext <<_ACEOF
  13891. /* confdefs.h. */
  13892. _ACEOF
  13893. cat confdefs.h >>conftest.$ac_ext
  13894. cat >>conftest.$ac_ext <<_ACEOF
  13895. /* end confdefs.h. */
  13896. #include <stddef.h>
  13897. #include <limits.h>
  13898. int
  13899. main ()
  13900. {
  13901. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13902. test_array [0] = 0
  13903. ;
  13904. return 0;
  13905. }
  13906. _ACEOF
  13907. rm -f conftest.$ac_objext
  13908. if { (ac_try="$ac_compile"
  13909. case "(($ac_try" in
  13910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13911. *) ac_try_echo=$ac_try;;
  13912. esac
  13913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13914. (eval "$ac_compile") 2>conftest.er1
  13915. ac_status=$?
  13916. grep -v '^ *+' conftest.er1 >conftest.err
  13917. rm -f conftest.er1
  13918. cat conftest.err >&5
  13919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13920. (exit $ac_status); } && {
  13921. test -z "$ac_cxx_werror_flag" ||
  13922. test ! -s conftest.err
  13923. } && test -s conftest.$ac_objext; then
  13924. ac_hi=$ac_mid; break
  13925. else
  13926. echo "$as_me: failed program was:" >&5
  13927. sed 's/^/| /' conftest.$ac_ext >&5
  13928. ac_lo=`expr $ac_mid + 1`
  13929. if test $ac_lo -le $ac_mid; then
  13930. ac_lo= ac_hi=
  13931. break
  13932. fi
  13933. ac_mid=`expr 2 '*' $ac_mid + 1`
  13934. fi
  13935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13936. done
  13937. else
  13938. echo "$as_me: failed program was:" >&5
  13939. sed 's/^/| /' conftest.$ac_ext >&5
  13940. cat >conftest.$ac_ext <<_ACEOF
  13941. /* confdefs.h. */
  13942. _ACEOF
  13943. cat confdefs.h >>conftest.$ac_ext
  13944. cat >>conftest.$ac_ext <<_ACEOF
  13945. /* end confdefs.h. */
  13946. #include <stddef.h>
  13947. #include <limits.h>
  13948. int
  13949. main ()
  13950. {
  13951. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13952. test_array [0] = 0
  13953. ;
  13954. return 0;
  13955. }
  13956. _ACEOF
  13957. rm -f conftest.$ac_objext
  13958. if { (ac_try="$ac_compile"
  13959. case "(($ac_try" in
  13960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13961. *) ac_try_echo=$ac_try;;
  13962. esac
  13963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13964. (eval "$ac_compile") 2>conftest.er1
  13965. ac_status=$?
  13966. grep -v '^ *+' conftest.er1 >conftest.err
  13967. rm -f conftest.er1
  13968. cat conftest.err >&5
  13969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13970. (exit $ac_status); } && {
  13971. test -z "$ac_cxx_werror_flag" ||
  13972. test ! -s conftest.err
  13973. } && test -s conftest.$ac_objext; then
  13974. ac_hi=-1 ac_mid=-1
  13975. while :; do
  13976. cat >conftest.$ac_ext <<_ACEOF
  13977. /* confdefs.h. */
  13978. _ACEOF
  13979. cat confdefs.h >>conftest.$ac_ext
  13980. cat >>conftest.$ac_ext <<_ACEOF
  13981. /* end confdefs.h. */
  13982. #include <stddef.h>
  13983. #include <limits.h>
  13984. int
  13985. main ()
  13986. {
  13987. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13988. test_array [0] = 0
  13989. ;
  13990. return 0;
  13991. }
  13992. _ACEOF
  13993. rm -f conftest.$ac_objext
  13994. if { (ac_try="$ac_compile"
  13995. case "(($ac_try" in
  13996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13997. *) ac_try_echo=$ac_try;;
  13998. esac
  13999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14000. (eval "$ac_compile") 2>conftest.er1
  14001. ac_status=$?
  14002. grep -v '^ *+' conftest.er1 >conftest.err
  14003. rm -f conftest.er1
  14004. cat conftest.err >&5
  14005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14006. (exit $ac_status); } && {
  14007. test -z "$ac_cxx_werror_flag" ||
  14008. test ! -s conftest.err
  14009. } && test -s conftest.$ac_objext; then
  14010. ac_lo=$ac_mid; break
  14011. else
  14012. echo "$as_me: failed program was:" >&5
  14013. sed 's/^/| /' conftest.$ac_ext >&5
  14014. ac_hi=`expr '(' $ac_mid ')' - 1`
  14015. if test $ac_mid -le $ac_hi; then
  14016. ac_lo= ac_hi=
  14017. break
  14018. fi
  14019. ac_mid=`expr 2 '*' $ac_mid`
  14020. fi
  14021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14022. done
  14023. else
  14024. echo "$as_me: failed program was:" >&5
  14025. sed 's/^/| /' conftest.$ac_ext >&5
  14026. ac_lo= ac_hi=
  14027. fi
  14028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14029. fi
  14030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14031. # Binary search between lo and hi bounds.
  14032. while test "x$ac_lo" != "x$ac_hi"; do
  14033. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14034. cat >conftest.$ac_ext <<_ACEOF
  14035. /* confdefs.h. */
  14036. _ACEOF
  14037. cat confdefs.h >>conftest.$ac_ext
  14038. cat >>conftest.$ac_ext <<_ACEOF
  14039. /* end confdefs.h. */
  14040. #include <stddef.h>
  14041. #include <limits.h>
  14042. int
  14043. main ()
  14044. {
  14045. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14046. test_array [0] = 0
  14047. ;
  14048. return 0;
  14049. }
  14050. _ACEOF
  14051. rm -f conftest.$ac_objext
  14052. if { (ac_try="$ac_compile"
  14053. case "(($ac_try" in
  14054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14055. *) ac_try_echo=$ac_try;;
  14056. esac
  14057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14058. (eval "$ac_compile") 2>conftest.er1
  14059. ac_status=$?
  14060. grep -v '^ *+' conftest.er1 >conftest.err
  14061. rm -f conftest.er1
  14062. cat conftest.err >&5
  14063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14064. (exit $ac_status); } && {
  14065. test -z "$ac_cxx_werror_flag" ||
  14066. test ! -s conftest.err
  14067. } && test -s conftest.$ac_objext; then
  14068. ac_hi=$ac_mid
  14069. else
  14070. echo "$as_me: failed program was:" >&5
  14071. sed 's/^/| /' conftest.$ac_ext >&5
  14072. ac_lo=`expr '(' $ac_mid ')' + 1`
  14073. fi
  14074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14075. done
  14076. case $ac_lo in
  14077. ?*) size_t_bits_minus_1=$ac_lo;;
  14078. '') size_t_bits_minus_1= ;;
  14079. esac
  14080. else
  14081. cat >conftest.$ac_ext <<_ACEOF
  14082. /* confdefs.h. */
  14083. _ACEOF
  14084. cat confdefs.h >>conftest.$ac_ext
  14085. cat >>conftest.$ac_ext <<_ACEOF
  14086. /* end confdefs.h. */
  14087. #include <stddef.h>
  14088. #include <limits.h>
  14089. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14090. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14091. #include <stdio.h>
  14092. #include <stdlib.h>
  14093. int
  14094. main ()
  14095. {
  14096. FILE *f = fopen ("conftest.val", "w");
  14097. if (! f)
  14098. return 1;
  14099. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14100. {
  14101. long int i = longval ();
  14102. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14103. return 1;
  14104. fprintf (f, "%ld\n", i);
  14105. }
  14106. else
  14107. {
  14108. unsigned long int i = ulongval ();
  14109. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14110. return 1;
  14111. fprintf (f, "%lu\n", i);
  14112. }
  14113. return ferror (f) || fclose (f) != 0;
  14114. ;
  14115. return 0;
  14116. }
  14117. _ACEOF
  14118. rm -f conftest$ac_exeext
  14119. if { (ac_try="$ac_link"
  14120. case "(($ac_try" in
  14121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14122. *) ac_try_echo=$ac_try;;
  14123. esac
  14124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14125. (eval "$ac_link") 2>&5
  14126. ac_status=$?
  14127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14128. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14129. { (case "(($ac_try" in
  14130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14131. *) ac_try_echo=$ac_try;;
  14132. esac
  14133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14134. (eval "$ac_try") 2>&5
  14135. ac_status=$?
  14136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14137. (exit $ac_status); }; }; then
  14138. size_t_bits_minus_1=`cat conftest.val`
  14139. else
  14140. echo "$as_me: program exited with status $ac_status" >&5
  14141. echo "$as_me: failed program was:" >&5
  14142. sed 's/^/| /' conftest.$ac_ext >&5
  14143. ( exit $ac_status )
  14144. size_t_bits_minus_1=
  14145. fi
  14146. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14147. fi
  14148. rm -f conftest.val
  14149. if test "$cross_compiling" = yes; then
  14150. # Depending upon the size, compute the lo and hi bounds.
  14151. cat >conftest.$ac_ext <<_ACEOF
  14152. /* confdefs.h. */
  14153. _ACEOF
  14154. cat confdefs.h >>conftest.$ac_ext
  14155. cat >>conftest.$ac_ext <<_ACEOF
  14156. /* end confdefs.h. */
  14157. #include <stddef.h>
  14158. int
  14159. main ()
  14160. {
  14161. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14162. test_array [0] = 0
  14163. ;
  14164. return 0;
  14165. }
  14166. _ACEOF
  14167. rm -f conftest.$ac_objext
  14168. if { (ac_try="$ac_compile"
  14169. case "(($ac_try" in
  14170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14171. *) ac_try_echo=$ac_try;;
  14172. esac
  14173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14174. (eval "$ac_compile") 2>conftest.er1
  14175. ac_status=$?
  14176. grep -v '^ *+' conftest.er1 >conftest.err
  14177. rm -f conftest.er1
  14178. cat conftest.err >&5
  14179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14180. (exit $ac_status); } && {
  14181. test -z "$ac_cxx_werror_flag" ||
  14182. test ! -s conftest.err
  14183. } && test -s conftest.$ac_objext; then
  14184. ac_lo=0 ac_mid=0
  14185. while :; do
  14186. cat >conftest.$ac_ext <<_ACEOF
  14187. /* confdefs.h. */
  14188. _ACEOF
  14189. cat confdefs.h >>conftest.$ac_ext
  14190. cat >>conftest.$ac_ext <<_ACEOF
  14191. /* end confdefs.h. */
  14192. #include <stddef.h>
  14193. int
  14194. main ()
  14195. {
  14196. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14197. test_array [0] = 0
  14198. ;
  14199. return 0;
  14200. }
  14201. _ACEOF
  14202. rm -f conftest.$ac_objext
  14203. if { (ac_try="$ac_compile"
  14204. case "(($ac_try" in
  14205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14206. *) ac_try_echo=$ac_try;;
  14207. esac
  14208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14209. (eval "$ac_compile") 2>conftest.er1
  14210. ac_status=$?
  14211. grep -v '^ *+' conftest.er1 >conftest.err
  14212. rm -f conftest.er1
  14213. cat conftest.err >&5
  14214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14215. (exit $ac_status); } && {
  14216. test -z "$ac_cxx_werror_flag" ||
  14217. test ! -s conftest.err
  14218. } && test -s conftest.$ac_objext; then
  14219. ac_hi=$ac_mid; break
  14220. else
  14221. echo "$as_me: failed program was:" >&5
  14222. sed 's/^/| /' conftest.$ac_ext >&5
  14223. ac_lo=`expr $ac_mid + 1`
  14224. if test $ac_lo -le $ac_mid; then
  14225. ac_lo= ac_hi=
  14226. break
  14227. fi
  14228. ac_mid=`expr 2 '*' $ac_mid + 1`
  14229. fi
  14230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14231. done
  14232. else
  14233. echo "$as_me: failed program was:" >&5
  14234. sed 's/^/| /' conftest.$ac_ext >&5
  14235. cat >conftest.$ac_ext <<_ACEOF
  14236. /* confdefs.h. */
  14237. _ACEOF
  14238. cat confdefs.h >>conftest.$ac_ext
  14239. cat >>conftest.$ac_ext <<_ACEOF
  14240. /* end confdefs.h. */
  14241. #include <stddef.h>
  14242. int
  14243. main ()
  14244. {
  14245. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14246. test_array [0] = 0
  14247. ;
  14248. return 0;
  14249. }
  14250. _ACEOF
  14251. rm -f conftest.$ac_objext
  14252. if { (ac_try="$ac_compile"
  14253. case "(($ac_try" in
  14254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14255. *) ac_try_echo=$ac_try;;
  14256. esac
  14257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14258. (eval "$ac_compile") 2>conftest.er1
  14259. ac_status=$?
  14260. grep -v '^ *+' conftest.er1 >conftest.err
  14261. rm -f conftest.er1
  14262. cat conftest.err >&5
  14263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14264. (exit $ac_status); } && {
  14265. test -z "$ac_cxx_werror_flag" ||
  14266. test ! -s conftest.err
  14267. } && test -s conftest.$ac_objext; then
  14268. ac_hi=-1 ac_mid=-1
  14269. while :; do
  14270. cat >conftest.$ac_ext <<_ACEOF
  14271. /* confdefs.h. */
  14272. _ACEOF
  14273. cat confdefs.h >>conftest.$ac_ext
  14274. cat >>conftest.$ac_ext <<_ACEOF
  14275. /* end confdefs.h. */
  14276. #include <stddef.h>
  14277. int
  14278. main ()
  14279. {
  14280. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14281. test_array [0] = 0
  14282. ;
  14283. return 0;
  14284. }
  14285. _ACEOF
  14286. rm -f conftest.$ac_objext
  14287. if { (ac_try="$ac_compile"
  14288. case "(($ac_try" in
  14289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14290. *) ac_try_echo=$ac_try;;
  14291. esac
  14292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14293. (eval "$ac_compile") 2>conftest.er1
  14294. ac_status=$?
  14295. grep -v '^ *+' conftest.er1 >conftest.err
  14296. rm -f conftest.er1
  14297. cat conftest.err >&5
  14298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14299. (exit $ac_status); } && {
  14300. test -z "$ac_cxx_werror_flag" ||
  14301. test ! -s conftest.err
  14302. } && test -s conftest.$ac_objext; then
  14303. ac_lo=$ac_mid; break
  14304. else
  14305. echo "$as_me: failed program was:" >&5
  14306. sed 's/^/| /' conftest.$ac_ext >&5
  14307. ac_hi=`expr '(' $ac_mid ')' - 1`
  14308. if test $ac_mid -le $ac_hi; then
  14309. ac_lo= ac_hi=
  14310. break
  14311. fi
  14312. ac_mid=`expr 2 '*' $ac_mid`
  14313. fi
  14314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14315. done
  14316. else
  14317. echo "$as_me: failed program was:" >&5
  14318. sed 's/^/| /' conftest.$ac_ext >&5
  14319. ac_lo= ac_hi=
  14320. fi
  14321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14322. fi
  14323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14324. # Binary search between lo and hi bounds.
  14325. while test "x$ac_lo" != "x$ac_hi"; do
  14326. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14327. cat >conftest.$ac_ext <<_ACEOF
  14328. /* confdefs.h. */
  14329. _ACEOF
  14330. cat confdefs.h >>conftest.$ac_ext
  14331. cat >>conftest.$ac_ext <<_ACEOF
  14332. /* end confdefs.h. */
  14333. #include <stddef.h>
  14334. int
  14335. main ()
  14336. {
  14337. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14338. test_array [0] = 0
  14339. ;
  14340. return 0;
  14341. }
  14342. _ACEOF
  14343. rm -f conftest.$ac_objext
  14344. if { (ac_try="$ac_compile"
  14345. case "(($ac_try" in
  14346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14347. *) ac_try_echo=$ac_try;;
  14348. esac
  14349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14350. (eval "$ac_compile") 2>conftest.er1
  14351. ac_status=$?
  14352. grep -v '^ *+' conftest.er1 >conftest.err
  14353. rm -f conftest.er1
  14354. cat conftest.err >&5
  14355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14356. (exit $ac_status); } && {
  14357. test -z "$ac_cxx_werror_flag" ||
  14358. test ! -s conftest.err
  14359. } && test -s conftest.$ac_objext; then
  14360. ac_hi=$ac_mid
  14361. else
  14362. echo "$as_me: failed program was:" >&5
  14363. sed 's/^/| /' conftest.$ac_ext >&5
  14364. ac_lo=`expr '(' $ac_mid ')' + 1`
  14365. fi
  14366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14367. done
  14368. case $ac_lo in
  14369. ?*) fits_in_uint=$ac_lo;;
  14370. '') fits_in_uint= ;;
  14371. esac
  14372. else
  14373. cat >conftest.$ac_ext <<_ACEOF
  14374. /* confdefs.h. */
  14375. _ACEOF
  14376. cat confdefs.h >>conftest.$ac_ext
  14377. cat >>conftest.$ac_ext <<_ACEOF
  14378. /* end confdefs.h. */
  14379. #include <stddef.h>
  14380. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14381. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14382. #include <stdio.h>
  14383. #include <stdlib.h>
  14384. int
  14385. main ()
  14386. {
  14387. FILE *f = fopen ("conftest.val", "w");
  14388. if (! f)
  14389. return 1;
  14390. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14391. {
  14392. long int i = longval ();
  14393. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14394. return 1;
  14395. fprintf (f, "%ld\n", i);
  14396. }
  14397. else
  14398. {
  14399. unsigned long int i = ulongval ();
  14400. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14401. return 1;
  14402. fprintf (f, "%lu\n", i);
  14403. }
  14404. return ferror (f) || fclose (f) != 0;
  14405. ;
  14406. return 0;
  14407. }
  14408. _ACEOF
  14409. rm -f conftest$ac_exeext
  14410. if { (ac_try="$ac_link"
  14411. case "(($ac_try" in
  14412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14413. *) ac_try_echo=$ac_try;;
  14414. esac
  14415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14416. (eval "$ac_link") 2>&5
  14417. ac_status=$?
  14418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14419. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14420. { (case "(($ac_try" in
  14421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14422. *) ac_try_echo=$ac_try;;
  14423. esac
  14424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14425. (eval "$ac_try") 2>&5
  14426. ac_status=$?
  14427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14428. (exit $ac_status); }; }; then
  14429. fits_in_uint=`cat conftest.val`
  14430. else
  14431. echo "$as_me: program exited with status $ac_status" >&5
  14432. echo "$as_me: failed program was:" >&5
  14433. sed 's/^/| /' conftest.$ac_ext >&5
  14434. ( exit $ac_status )
  14435. fits_in_uint=
  14436. fi
  14437. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14438. fi
  14439. rm -f conftest.val
  14440. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14441. if test $fits_in_uint = 1; then
  14442. cat >conftest.$ac_ext <<_ACEOF
  14443. /* confdefs.h. */
  14444. _ACEOF
  14445. cat confdefs.h >>conftest.$ac_ext
  14446. cat >>conftest.$ac_ext <<_ACEOF
  14447. /* end confdefs.h. */
  14448. #include <stddef.h>
  14449. extern size_t foo;
  14450. extern unsigned long foo;
  14451. int
  14452. main ()
  14453. {
  14454. ;
  14455. return 0;
  14456. }
  14457. _ACEOF
  14458. rm -f conftest.$ac_objext
  14459. if { (ac_try="$ac_compile"
  14460. case "(($ac_try" in
  14461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14462. *) ac_try_echo=$ac_try;;
  14463. esac
  14464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14465. (eval "$ac_compile") 2>conftest.er1
  14466. ac_status=$?
  14467. grep -v '^ *+' conftest.er1 >conftest.err
  14468. rm -f conftest.er1
  14469. cat conftest.err >&5
  14470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14471. (exit $ac_status); } && {
  14472. test -z "$ac_cxx_werror_flag" ||
  14473. test ! -s conftest.err
  14474. } && test -s conftest.$ac_objext; then
  14475. fits_in_uint=0
  14476. else
  14477. echo "$as_me: failed program was:" >&5
  14478. sed 's/^/| /' conftest.$ac_ext >&5
  14479. fi
  14480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14481. fi
  14482. if test $fits_in_uint = 1; then
  14483. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14484. else
  14485. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14486. fi
  14487. else
  14488. gl_cv_size_max='((size_t)~(size_t)0)'
  14489. fi
  14490. fi
  14491. fi
  14492. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14493. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14494. if test "$gl_cv_size_max" != yes; then
  14495. cat >>confdefs.h <<_ACEOF
  14496. #define SIZE_MAX $gl_cv_size_max
  14497. _ACEOF
  14498. fi
  14499. for ac_header in stdint.h
  14500. do
  14501. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14502. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14503. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14504. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14505. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14506. echo $ECHO_N "(cached) $ECHO_C" >&6
  14507. fi
  14508. ac_res=`eval echo '${'$as_ac_Header'}'`
  14509. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14510. echo "${ECHO_T}$ac_res" >&6; }
  14511. else
  14512. # Is the header compilable?
  14513. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14514. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14515. cat >conftest.$ac_ext <<_ACEOF
  14516. /* confdefs.h. */
  14517. _ACEOF
  14518. cat confdefs.h >>conftest.$ac_ext
  14519. cat >>conftest.$ac_ext <<_ACEOF
  14520. /* end confdefs.h. */
  14521. $ac_includes_default
  14522. #include <$ac_header>
  14523. _ACEOF
  14524. rm -f conftest.$ac_objext
  14525. if { (ac_try="$ac_compile"
  14526. case "(($ac_try" in
  14527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14528. *) ac_try_echo=$ac_try;;
  14529. esac
  14530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14531. (eval "$ac_compile") 2>conftest.er1
  14532. ac_status=$?
  14533. grep -v '^ *+' conftest.er1 >conftest.err
  14534. rm -f conftest.er1
  14535. cat conftest.err >&5
  14536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14537. (exit $ac_status); } && {
  14538. test -z "$ac_cxx_werror_flag" ||
  14539. test ! -s conftest.err
  14540. } && test -s conftest.$ac_objext; then
  14541. ac_header_compiler=yes
  14542. else
  14543. echo "$as_me: failed program was:" >&5
  14544. sed 's/^/| /' conftest.$ac_ext >&5
  14545. ac_header_compiler=no
  14546. fi
  14547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14548. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14549. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14550. # Is the header present?
  14551. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14552. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14553. cat >conftest.$ac_ext <<_ACEOF
  14554. /* confdefs.h. */
  14555. _ACEOF
  14556. cat confdefs.h >>conftest.$ac_ext
  14557. cat >>conftest.$ac_ext <<_ACEOF
  14558. /* end confdefs.h. */
  14559. #include <$ac_header>
  14560. _ACEOF
  14561. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14562. case "(($ac_try" in
  14563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14564. *) ac_try_echo=$ac_try;;
  14565. esac
  14566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14567. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14568. ac_status=$?
  14569. grep -v '^ *+' conftest.er1 >conftest.err
  14570. rm -f conftest.er1
  14571. cat conftest.err >&5
  14572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14573. (exit $ac_status); } >/dev/null && {
  14574. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14575. test ! -s conftest.err
  14576. }; then
  14577. ac_header_preproc=yes
  14578. else
  14579. echo "$as_me: failed program was:" >&5
  14580. sed 's/^/| /' conftest.$ac_ext >&5
  14581. ac_header_preproc=no
  14582. fi
  14583. rm -f conftest.err conftest.$ac_ext
  14584. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14585. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14586. # So? What about this header?
  14587. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14588. yes:no: )
  14589. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14590. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14592. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14593. ac_header_preproc=yes
  14594. ;;
  14595. no:yes:* )
  14596. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14597. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14598. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14599. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14600. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14601. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14602. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14603. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14604. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14605. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14606. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14607. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14608. ( cat <<\_ASBOX
  14609. ## ----------------------------------------------- ##
  14610. ## Report this to t-tujikawa@users.sourceforge.net ##
  14611. ## ----------------------------------------------- ##
  14612. _ASBOX
  14613. ) | sed "s/^/$as_me: WARNING: /" >&2
  14614. ;;
  14615. esac
  14616. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14617. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14618. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14619. echo $ECHO_N "(cached) $ECHO_C" >&6
  14620. else
  14621. eval "$as_ac_Header=\$ac_header_preproc"
  14622. fi
  14623. ac_res=`eval echo '${'$as_ac_Header'}'`
  14624. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14625. echo "${ECHO_T}$ac_res" >&6; }
  14626. fi
  14627. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14628. cat >>confdefs.h <<_ACEOF
  14629. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14630. _ACEOF
  14631. fi
  14632. done
  14633. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14634. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14635. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14636. echo $ECHO_N "(cached) $ECHO_C" >&6
  14637. else
  14638. gt_save_LIBS="$LIBS"
  14639. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14640. cat >conftest.$ac_ext <<_ACEOF
  14641. /* confdefs.h. */
  14642. _ACEOF
  14643. cat confdefs.h >>conftest.$ac_ext
  14644. cat >>conftest.$ac_ext <<_ACEOF
  14645. /* end confdefs.h. */
  14646. #include <CoreFoundation/CFPreferences.h>
  14647. int
  14648. main ()
  14649. {
  14650. CFPreferencesCopyAppValue(NULL, NULL)
  14651. ;
  14652. return 0;
  14653. }
  14654. _ACEOF
  14655. rm -f conftest.$ac_objext conftest$ac_exeext
  14656. if { (ac_try="$ac_link"
  14657. case "(($ac_try" in
  14658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14659. *) ac_try_echo=$ac_try;;
  14660. esac
  14661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14662. (eval "$ac_link") 2>conftest.er1
  14663. ac_status=$?
  14664. grep -v '^ *+' conftest.er1 >conftest.err
  14665. rm -f conftest.er1
  14666. cat conftest.err >&5
  14667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14668. (exit $ac_status); } && {
  14669. test -z "$ac_cxx_werror_flag" ||
  14670. test ! -s conftest.err
  14671. } && test -s conftest$ac_exeext &&
  14672. $as_test_x conftest$ac_exeext; then
  14673. gt_cv_func_CFPreferencesCopyAppValue=yes
  14674. else
  14675. echo "$as_me: failed program was:" >&5
  14676. sed 's/^/| /' conftest.$ac_ext >&5
  14677. gt_cv_func_CFPreferencesCopyAppValue=no
  14678. fi
  14679. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14680. conftest$ac_exeext conftest.$ac_ext
  14681. LIBS="$gt_save_LIBS"
  14682. fi
  14683. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14684. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14685. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14686. cat >>confdefs.h <<\_ACEOF
  14687. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14688. _ACEOF
  14689. fi
  14690. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14691. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14692. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14693. echo $ECHO_N "(cached) $ECHO_C" >&6
  14694. else
  14695. gt_save_LIBS="$LIBS"
  14696. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14697. cat >conftest.$ac_ext <<_ACEOF
  14698. /* confdefs.h. */
  14699. _ACEOF
  14700. cat confdefs.h >>conftest.$ac_ext
  14701. cat >>conftest.$ac_ext <<_ACEOF
  14702. /* end confdefs.h. */
  14703. #include <CoreFoundation/CFLocale.h>
  14704. int
  14705. main ()
  14706. {
  14707. CFLocaleCopyCurrent();
  14708. ;
  14709. return 0;
  14710. }
  14711. _ACEOF
  14712. rm -f conftest.$ac_objext conftest$ac_exeext
  14713. if { (ac_try="$ac_link"
  14714. case "(($ac_try" in
  14715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14716. *) ac_try_echo=$ac_try;;
  14717. esac
  14718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14719. (eval "$ac_link") 2>conftest.er1
  14720. ac_status=$?
  14721. grep -v '^ *+' conftest.er1 >conftest.err
  14722. rm -f conftest.er1
  14723. cat conftest.err >&5
  14724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14725. (exit $ac_status); } && {
  14726. test -z "$ac_cxx_werror_flag" ||
  14727. test ! -s conftest.err
  14728. } && test -s conftest$ac_exeext &&
  14729. $as_test_x conftest$ac_exeext; then
  14730. gt_cv_func_CFLocaleCopyCurrent=yes
  14731. else
  14732. echo "$as_me: failed program was:" >&5
  14733. sed 's/^/| /' conftest.$ac_ext >&5
  14734. gt_cv_func_CFLocaleCopyCurrent=no
  14735. fi
  14736. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14737. conftest$ac_exeext conftest.$ac_ext
  14738. LIBS="$gt_save_LIBS"
  14739. fi
  14740. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14741. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14742. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14743. cat >>confdefs.h <<\_ACEOF
  14744. #define HAVE_CFLOCALECOPYCURRENT 1
  14745. _ACEOF
  14746. fi
  14747. INTL_MACOSX_LIBS=
  14748. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14749. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14750. fi
  14751. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14752. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14753. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14754. echo $ECHO_N "(cached) $ECHO_C" >&6
  14755. else
  14756. cat >conftest.$ac_ext <<_ACEOF
  14757. /* confdefs.h. */
  14758. _ACEOF
  14759. cat confdefs.h >>conftest.$ac_ext
  14760. cat >>conftest.$ac_ext <<_ACEOF
  14761. /* end confdefs.h. */
  14762. $ac_includes_default
  14763. typedef ptrdiff_t ac__type_new_;
  14764. int
  14765. main ()
  14766. {
  14767. if ((ac__type_new_ *) 0)
  14768. return 0;
  14769. if (sizeof (ac__type_new_))
  14770. return 0;
  14771. ;
  14772. return 0;
  14773. }
  14774. _ACEOF
  14775. rm -f conftest.$ac_objext
  14776. if { (ac_try="$ac_compile"
  14777. case "(($ac_try" in
  14778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14779. *) ac_try_echo=$ac_try;;
  14780. esac
  14781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14782. (eval "$ac_compile") 2>conftest.er1
  14783. ac_status=$?
  14784. grep -v '^ *+' conftest.er1 >conftest.err
  14785. rm -f conftest.er1
  14786. cat conftest.err >&5
  14787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14788. (exit $ac_status); } && {
  14789. test -z "$ac_cxx_werror_flag" ||
  14790. test ! -s conftest.err
  14791. } && test -s conftest.$ac_objext; then
  14792. ac_cv_type_ptrdiff_t=yes
  14793. else
  14794. echo "$as_me: failed program was:" >&5
  14795. sed 's/^/| /' conftest.$ac_ext >&5
  14796. ac_cv_type_ptrdiff_t=no
  14797. fi
  14798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14799. fi
  14800. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14801. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14802. if test $ac_cv_type_ptrdiff_t = yes; then
  14803. :
  14804. else
  14805. cat >>confdefs.h <<\_ACEOF
  14806. #define ptrdiff_t long
  14807. _ACEOF
  14808. fi
  14809. for ac_header in stddef.h stdlib.h string.h
  14810. do
  14811. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14812. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14813. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14814. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14815. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14816. echo $ECHO_N "(cached) $ECHO_C" >&6
  14817. fi
  14818. ac_res=`eval echo '${'$as_ac_Header'}'`
  14819. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14820. echo "${ECHO_T}$ac_res" >&6; }
  14821. else
  14822. # Is the header compilable?
  14823. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14824. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14825. cat >conftest.$ac_ext <<_ACEOF
  14826. /* confdefs.h. */
  14827. _ACEOF
  14828. cat confdefs.h >>conftest.$ac_ext
  14829. cat >>conftest.$ac_ext <<_ACEOF
  14830. /* end confdefs.h. */
  14831. $ac_includes_default
  14832. #include <$ac_header>
  14833. _ACEOF
  14834. rm -f conftest.$ac_objext
  14835. if { (ac_try="$ac_compile"
  14836. case "(($ac_try" in
  14837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14838. *) ac_try_echo=$ac_try;;
  14839. esac
  14840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14841. (eval "$ac_compile") 2>conftest.er1
  14842. ac_status=$?
  14843. grep -v '^ *+' conftest.er1 >conftest.err
  14844. rm -f conftest.er1
  14845. cat conftest.err >&5
  14846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14847. (exit $ac_status); } && {
  14848. test -z "$ac_cxx_werror_flag" ||
  14849. test ! -s conftest.err
  14850. } && test -s conftest.$ac_objext; then
  14851. ac_header_compiler=yes
  14852. else
  14853. echo "$as_me: failed program was:" >&5
  14854. sed 's/^/| /' conftest.$ac_ext >&5
  14855. ac_header_compiler=no
  14856. fi
  14857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14858. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14859. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14860. # Is the header present?
  14861. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14862. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14863. cat >conftest.$ac_ext <<_ACEOF
  14864. /* confdefs.h. */
  14865. _ACEOF
  14866. cat confdefs.h >>conftest.$ac_ext
  14867. cat >>conftest.$ac_ext <<_ACEOF
  14868. /* end confdefs.h. */
  14869. #include <$ac_header>
  14870. _ACEOF
  14871. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14872. case "(($ac_try" in
  14873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14874. *) ac_try_echo=$ac_try;;
  14875. esac
  14876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14877. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14878. ac_status=$?
  14879. grep -v '^ *+' conftest.er1 >conftest.err
  14880. rm -f conftest.er1
  14881. cat conftest.err >&5
  14882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14883. (exit $ac_status); } >/dev/null && {
  14884. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14885. test ! -s conftest.err
  14886. }; then
  14887. ac_header_preproc=yes
  14888. else
  14889. echo "$as_me: failed program was:" >&5
  14890. sed 's/^/| /' conftest.$ac_ext >&5
  14891. ac_header_preproc=no
  14892. fi
  14893. rm -f conftest.err conftest.$ac_ext
  14894. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14895. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14896. # So? What about this header?
  14897. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14898. yes:no: )
  14899. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14900. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14901. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14902. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14903. ac_header_preproc=yes
  14904. ;;
  14905. no:yes:* )
  14906. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14907. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14908. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14909. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14910. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14911. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14912. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14913. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14914. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14915. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14916. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14917. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14918. ( cat <<\_ASBOX
  14919. ## ----------------------------------------------- ##
  14920. ## Report this to t-tujikawa@users.sourceforge.net ##
  14921. ## ----------------------------------------------- ##
  14922. _ASBOX
  14923. ) | sed "s/^/$as_me: WARNING: /" >&2
  14924. ;;
  14925. esac
  14926. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14927. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14928. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14929. echo $ECHO_N "(cached) $ECHO_C" >&6
  14930. else
  14931. eval "$as_ac_Header=\$ac_header_preproc"
  14932. fi
  14933. ac_res=`eval echo '${'$as_ac_Header'}'`
  14934. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14935. echo "${ECHO_T}$ac_res" >&6; }
  14936. fi
  14937. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14938. cat >>confdefs.h <<_ACEOF
  14939. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14940. _ACEOF
  14941. fi
  14942. done
  14943. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14944. do
  14945. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14946. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14947. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14948. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14949. echo $ECHO_N "(cached) $ECHO_C" >&6
  14950. else
  14951. cat >conftest.$ac_ext <<_ACEOF
  14952. /* confdefs.h. */
  14953. _ACEOF
  14954. cat confdefs.h >>conftest.$ac_ext
  14955. cat >>conftest.$ac_ext <<_ACEOF
  14956. /* end confdefs.h. */
  14957. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14958. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14959. #define $ac_func innocuous_$ac_func
  14960. /* System header to define __stub macros and hopefully few prototypes,
  14961. which can conflict with char $ac_func (); below.
  14962. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14963. <limits.h> exists even on freestanding compilers. */
  14964. #ifdef __STDC__
  14965. # include <limits.h>
  14966. #else
  14967. # include <assert.h>
  14968. #endif
  14969. #undef $ac_func
  14970. /* Override any GCC internal prototype to avoid an error.
  14971. Use char because int might match the return type of a GCC
  14972. builtin and then its argument prototype would still apply. */
  14973. #ifdef __cplusplus
  14974. extern "C"
  14975. #endif
  14976. char $ac_func ();
  14977. /* The GNU C library defines this for functions which it implements
  14978. to always fail with ENOSYS. Some functions are actually named
  14979. something starting with __ and the normal name is an alias. */
  14980. #if defined __stub_$ac_func || defined __stub___$ac_func
  14981. choke me
  14982. #endif
  14983. int
  14984. main ()
  14985. {
  14986. return $ac_func ();
  14987. ;
  14988. return 0;
  14989. }
  14990. _ACEOF
  14991. rm -f conftest.$ac_objext conftest$ac_exeext
  14992. if { (ac_try="$ac_link"
  14993. case "(($ac_try" in
  14994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14995. *) ac_try_echo=$ac_try;;
  14996. esac
  14997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14998. (eval "$ac_link") 2>conftest.er1
  14999. ac_status=$?
  15000. grep -v '^ *+' conftest.er1 >conftest.err
  15001. rm -f conftest.er1
  15002. cat conftest.err >&5
  15003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15004. (exit $ac_status); } && {
  15005. test -z "$ac_cxx_werror_flag" ||
  15006. test ! -s conftest.err
  15007. } && test -s conftest$ac_exeext &&
  15008. $as_test_x conftest$ac_exeext; then
  15009. eval "$as_ac_var=yes"
  15010. else
  15011. echo "$as_me: failed program was:" >&5
  15012. sed 's/^/| /' conftest.$ac_ext >&5
  15013. eval "$as_ac_var=no"
  15014. fi
  15015. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15016. conftest$ac_exeext conftest.$ac_ext
  15017. fi
  15018. ac_res=`eval echo '${'$as_ac_var'}'`
  15019. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15020. echo "${ECHO_T}$ac_res" >&6; }
  15021. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15022. cat >>confdefs.h <<_ACEOF
  15023. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15024. _ACEOF
  15025. fi
  15026. done
  15027. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  15028. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  15029. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  15030. echo $ECHO_N "(cached) $ECHO_C" >&6
  15031. else
  15032. cat >conftest.$ac_ext <<_ACEOF
  15033. /* confdefs.h. */
  15034. _ACEOF
  15035. cat confdefs.h >>conftest.$ac_ext
  15036. cat >>conftest.$ac_ext <<_ACEOF
  15037. /* end confdefs.h. */
  15038. #include <stdio.h>
  15039. int
  15040. main ()
  15041. {
  15042. #ifndef _snprintf
  15043. char *p = (char *) _snprintf;
  15044. #endif
  15045. ;
  15046. return 0;
  15047. }
  15048. _ACEOF
  15049. rm -f conftest.$ac_objext
  15050. if { (ac_try="$ac_compile"
  15051. case "(($ac_try" in
  15052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15053. *) ac_try_echo=$ac_try;;
  15054. esac
  15055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15056. (eval "$ac_compile") 2>conftest.er1
  15057. ac_status=$?
  15058. grep -v '^ *+' conftest.er1 >conftest.err
  15059. rm -f conftest.er1
  15060. cat conftest.err >&5
  15061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15062. (exit $ac_status); } && {
  15063. test -z "$ac_cxx_werror_flag" ||
  15064. test ! -s conftest.err
  15065. } && test -s conftest.$ac_objext; then
  15066. ac_cv_have_decl__snprintf=yes
  15067. else
  15068. echo "$as_me: failed program was:" >&5
  15069. sed 's/^/| /' conftest.$ac_ext >&5
  15070. ac_cv_have_decl__snprintf=no
  15071. fi
  15072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15073. fi
  15074. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15075. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15076. if test $ac_cv_have_decl__snprintf = yes; then
  15077. gt_value=1
  15078. else
  15079. gt_value=0
  15080. fi
  15081. cat >>confdefs.h <<_ACEOF
  15082. #define HAVE_DECL__SNPRINTF $gt_value
  15083. _ACEOF
  15084. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15085. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15086. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15087. echo $ECHO_N "(cached) $ECHO_C" >&6
  15088. else
  15089. cat >conftest.$ac_ext <<_ACEOF
  15090. /* confdefs.h. */
  15091. _ACEOF
  15092. cat confdefs.h >>conftest.$ac_ext
  15093. cat >>conftest.$ac_ext <<_ACEOF
  15094. /* end confdefs.h. */
  15095. #include <stdio.h>
  15096. int
  15097. main ()
  15098. {
  15099. #ifndef _snwprintf
  15100. char *p = (char *) _snwprintf;
  15101. #endif
  15102. ;
  15103. return 0;
  15104. }
  15105. _ACEOF
  15106. rm -f conftest.$ac_objext
  15107. if { (ac_try="$ac_compile"
  15108. case "(($ac_try" in
  15109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15110. *) ac_try_echo=$ac_try;;
  15111. esac
  15112. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15113. (eval "$ac_compile") 2>conftest.er1
  15114. ac_status=$?
  15115. grep -v '^ *+' conftest.er1 >conftest.err
  15116. rm -f conftest.er1
  15117. cat conftest.err >&5
  15118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15119. (exit $ac_status); } && {
  15120. test -z "$ac_cxx_werror_flag" ||
  15121. test ! -s conftest.err
  15122. } && test -s conftest.$ac_objext; then
  15123. ac_cv_have_decl__snwprintf=yes
  15124. else
  15125. echo "$as_me: failed program was:" >&5
  15126. sed 's/^/| /' conftest.$ac_ext >&5
  15127. ac_cv_have_decl__snwprintf=no
  15128. fi
  15129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15130. fi
  15131. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15132. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15133. if test $ac_cv_have_decl__snwprintf = yes; then
  15134. gt_value=1
  15135. else
  15136. gt_value=0
  15137. fi
  15138. cat >>confdefs.h <<_ACEOF
  15139. #define HAVE_DECL__SNWPRINTF $gt_value
  15140. _ACEOF
  15141. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15142. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15143. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15144. echo $ECHO_N "(cached) $ECHO_C" >&6
  15145. else
  15146. cat >conftest.$ac_ext <<_ACEOF
  15147. /* confdefs.h. */
  15148. _ACEOF
  15149. cat confdefs.h >>conftest.$ac_ext
  15150. cat >>conftest.$ac_ext <<_ACEOF
  15151. /* end confdefs.h. */
  15152. #include <stdio.h>
  15153. int
  15154. main ()
  15155. {
  15156. #ifndef getc_unlocked
  15157. char *p = (char *) getc_unlocked;
  15158. #endif
  15159. ;
  15160. return 0;
  15161. }
  15162. _ACEOF
  15163. rm -f conftest.$ac_objext
  15164. if { (ac_try="$ac_compile"
  15165. case "(($ac_try" in
  15166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15167. *) ac_try_echo=$ac_try;;
  15168. esac
  15169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15170. (eval "$ac_compile") 2>conftest.er1
  15171. ac_status=$?
  15172. grep -v '^ *+' conftest.er1 >conftest.err
  15173. rm -f conftest.er1
  15174. cat conftest.err >&5
  15175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15176. (exit $ac_status); } && {
  15177. test -z "$ac_cxx_werror_flag" ||
  15178. test ! -s conftest.err
  15179. } && test -s conftest.$ac_objext; then
  15180. ac_cv_have_decl_getc_unlocked=yes
  15181. else
  15182. echo "$as_me: failed program was:" >&5
  15183. sed 's/^/| /' conftest.$ac_ext >&5
  15184. ac_cv_have_decl_getc_unlocked=no
  15185. fi
  15186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15187. fi
  15188. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15189. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15190. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15191. gt_value=1
  15192. else
  15193. gt_value=0
  15194. fi
  15195. cat >>confdefs.h <<_ACEOF
  15196. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15197. _ACEOF
  15198. case $gt_cv_func_printf_posix in
  15199. *yes) HAVE_POSIX_PRINTF=1 ;;
  15200. *) HAVE_POSIX_PRINTF=0 ;;
  15201. esac
  15202. if test "$ac_cv_func_asprintf" = yes; then
  15203. HAVE_ASPRINTF=1
  15204. else
  15205. HAVE_ASPRINTF=0
  15206. fi
  15207. if test "$ac_cv_func_snprintf" = yes; then
  15208. HAVE_SNPRINTF=1
  15209. else
  15210. HAVE_SNPRINTF=0
  15211. fi
  15212. if test "$ac_cv_func_wprintf" = yes; then
  15213. HAVE_WPRINTF=1
  15214. else
  15215. HAVE_WPRINTF=0
  15216. fi
  15217. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15218. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15219. if test "${am_cv_langinfo_codeset+set}" = set; then
  15220. echo $ECHO_N "(cached) $ECHO_C" >&6
  15221. else
  15222. cat >conftest.$ac_ext <<_ACEOF
  15223. /* confdefs.h. */
  15224. _ACEOF
  15225. cat confdefs.h >>conftest.$ac_ext
  15226. cat >>conftest.$ac_ext <<_ACEOF
  15227. /* end confdefs.h. */
  15228. #include <langinfo.h>
  15229. int
  15230. main ()
  15231. {
  15232. char* cs = nl_langinfo(CODESET); return !cs;
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. rm -f conftest.$ac_objext conftest$ac_exeext
  15238. if { (ac_try="$ac_link"
  15239. case "(($ac_try" in
  15240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15241. *) ac_try_echo=$ac_try;;
  15242. esac
  15243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15244. (eval "$ac_link") 2>conftest.er1
  15245. ac_status=$?
  15246. grep -v '^ *+' conftest.er1 >conftest.err
  15247. rm -f conftest.er1
  15248. cat conftest.err >&5
  15249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15250. (exit $ac_status); } && {
  15251. test -z "$ac_cxx_werror_flag" ||
  15252. test ! -s conftest.err
  15253. } && test -s conftest$ac_exeext &&
  15254. $as_test_x conftest$ac_exeext; then
  15255. am_cv_langinfo_codeset=yes
  15256. else
  15257. echo "$as_me: failed program was:" >&5
  15258. sed 's/^/| /' conftest.$ac_ext >&5
  15259. am_cv_langinfo_codeset=no
  15260. fi
  15261. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15262. conftest$ac_exeext conftest.$ac_ext
  15263. fi
  15264. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15265. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15266. if test $am_cv_langinfo_codeset = yes; then
  15267. cat >>confdefs.h <<\_ACEOF
  15268. #define HAVE_LANGINFO_CODESET 1
  15269. _ACEOF
  15270. fi
  15271. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15272. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15273. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15274. echo $ECHO_N "(cached) $ECHO_C" >&6
  15275. else
  15276. cat >conftest.$ac_ext <<_ACEOF
  15277. /* confdefs.h. */
  15278. _ACEOF
  15279. cat confdefs.h >>conftest.$ac_ext
  15280. cat >>conftest.$ac_ext <<_ACEOF
  15281. /* end confdefs.h. */
  15282. #include <locale.h>
  15283. int
  15284. main ()
  15285. {
  15286. return LC_MESSAGES
  15287. ;
  15288. return 0;
  15289. }
  15290. _ACEOF
  15291. rm -f conftest.$ac_objext conftest$ac_exeext
  15292. if { (ac_try="$ac_link"
  15293. case "(($ac_try" in
  15294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15295. *) ac_try_echo=$ac_try;;
  15296. esac
  15297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15298. (eval "$ac_link") 2>conftest.er1
  15299. ac_status=$?
  15300. grep -v '^ *+' conftest.er1 >conftest.err
  15301. rm -f conftest.er1
  15302. cat conftest.err >&5
  15303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15304. (exit $ac_status); } && {
  15305. test -z "$ac_cxx_werror_flag" ||
  15306. test ! -s conftest.err
  15307. } && test -s conftest$ac_exeext &&
  15308. $as_test_x conftest$ac_exeext; then
  15309. gt_cv_val_LC_MESSAGES=yes
  15310. else
  15311. echo "$as_me: failed program was:" >&5
  15312. sed 's/^/| /' conftest.$ac_ext >&5
  15313. gt_cv_val_LC_MESSAGES=no
  15314. fi
  15315. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15316. conftest$ac_exeext conftest.$ac_ext
  15317. fi
  15318. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15319. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15320. if test $gt_cv_val_LC_MESSAGES = yes; then
  15321. cat >>confdefs.h <<\_ACEOF
  15322. #define HAVE_LC_MESSAGES 1
  15323. _ACEOF
  15324. fi
  15325. if test "$enable_shared" = yes; then
  15326. case "$host_os" in
  15327. mingw* | cygwin*) is_woe32dll=yes ;;
  15328. *) is_woe32dll=no ;;
  15329. esac
  15330. else
  15331. is_woe32dll=no
  15332. fi
  15333. WOE32DLL=$is_woe32dll
  15334. case "$host_os" in
  15335. mingw* | cygwin*) is_woe32=yes ;;
  15336. *) is_woe32=no ;;
  15337. esac
  15338. WOE32=$is_woe32
  15339. if test $WOE32 = yes; then
  15340. if test -n "$ac_tool_prefix"; then
  15341. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15342. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15343. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15344. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15345. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15346. echo $ECHO_N "(cached) $ECHO_C" >&6
  15347. else
  15348. if test -n "$WINDRES"; then
  15349. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15350. else
  15351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15352. for as_dir in $PATH
  15353. do
  15354. IFS=$as_save_IFS
  15355. test -z "$as_dir" && as_dir=.
  15356. for ac_exec_ext in '' $ac_executable_extensions; do
  15357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15358. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15359. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15360. break 2
  15361. fi
  15362. done
  15363. done
  15364. IFS=$as_save_IFS
  15365. fi
  15366. fi
  15367. WINDRES=$ac_cv_prog_WINDRES
  15368. if test -n "$WINDRES"; then
  15369. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15370. echo "${ECHO_T}$WINDRES" >&6; }
  15371. else
  15372. { echo "$as_me:$LINENO: result: no" >&5
  15373. echo "${ECHO_T}no" >&6; }
  15374. fi
  15375. fi
  15376. if test -z "$ac_cv_prog_WINDRES"; then
  15377. ac_ct_WINDRES=$WINDRES
  15378. # Extract the first word of "windres", so it can be a program name with args.
  15379. set dummy windres; ac_word=$2
  15380. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15382. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15383. echo $ECHO_N "(cached) $ECHO_C" >&6
  15384. else
  15385. if test -n "$ac_ct_WINDRES"; then
  15386. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15387. else
  15388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15389. for as_dir in $PATH
  15390. do
  15391. IFS=$as_save_IFS
  15392. test -z "$as_dir" && as_dir=.
  15393. for ac_exec_ext in '' $ac_executable_extensions; do
  15394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15395. ac_cv_prog_ac_ct_WINDRES="windres"
  15396. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15397. break 2
  15398. fi
  15399. done
  15400. done
  15401. IFS=$as_save_IFS
  15402. fi
  15403. fi
  15404. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15405. if test -n "$ac_ct_WINDRES"; then
  15406. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15407. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15408. else
  15409. { echo "$as_me:$LINENO: result: no" >&5
  15410. echo "${ECHO_T}no" >&6; }
  15411. fi
  15412. if test "x$ac_ct_WINDRES" = x; then
  15413. WINDRES=""
  15414. else
  15415. case $cross_compiling:$ac_tool_warned in
  15416. yes:)
  15417. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15418. whose name does not start with the host triplet. If you think this
  15419. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15420. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15421. whose name does not start with the host triplet. If you think this
  15422. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15423. ac_tool_warned=yes ;;
  15424. esac
  15425. WINDRES=$ac_ct_WINDRES
  15426. fi
  15427. else
  15428. WINDRES="$ac_cv_prog_WINDRES"
  15429. fi
  15430. fi
  15431. case "$host_os" in
  15432. hpux*) LTLIBC="" ;;
  15433. *) LTLIBC="-lc" ;;
  15434. esac
  15435. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15436. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15437. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15438. echo $ECHO_N "(cached) $ECHO_C" >&6
  15439. else
  15440. gt_save_LIBS="$LIBS"
  15441. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15442. cat >conftest.$ac_ext <<_ACEOF
  15443. /* confdefs.h. */
  15444. _ACEOF
  15445. cat confdefs.h >>conftest.$ac_ext
  15446. cat >>conftest.$ac_ext <<_ACEOF
  15447. /* end confdefs.h. */
  15448. #include <CoreFoundation/CFPreferences.h>
  15449. int
  15450. main ()
  15451. {
  15452. CFPreferencesCopyAppValue(NULL, NULL)
  15453. ;
  15454. return 0;
  15455. }
  15456. _ACEOF
  15457. rm -f conftest.$ac_objext conftest$ac_exeext
  15458. if { (ac_try="$ac_link"
  15459. case "(($ac_try" in
  15460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15461. *) ac_try_echo=$ac_try;;
  15462. esac
  15463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15464. (eval "$ac_link") 2>conftest.er1
  15465. ac_status=$?
  15466. grep -v '^ *+' conftest.er1 >conftest.err
  15467. rm -f conftest.er1
  15468. cat conftest.err >&5
  15469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15470. (exit $ac_status); } && {
  15471. test -z "$ac_cxx_werror_flag" ||
  15472. test ! -s conftest.err
  15473. } && test -s conftest$ac_exeext &&
  15474. $as_test_x conftest$ac_exeext; then
  15475. gt_cv_func_CFPreferencesCopyAppValue=yes
  15476. else
  15477. echo "$as_me: failed program was:" >&5
  15478. sed 's/^/| /' conftest.$ac_ext >&5
  15479. gt_cv_func_CFPreferencesCopyAppValue=no
  15480. fi
  15481. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15482. conftest$ac_exeext conftest.$ac_ext
  15483. LIBS="$gt_save_LIBS"
  15484. fi
  15485. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15486. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15487. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15488. cat >>confdefs.h <<\_ACEOF
  15489. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15490. _ACEOF
  15491. fi
  15492. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15493. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15494. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15495. echo $ECHO_N "(cached) $ECHO_C" >&6
  15496. else
  15497. gt_save_LIBS="$LIBS"
  15498. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15499. cat >conftest.$ac_ext <<_ACEOF
  15500. /* confdefs.h. */
  15501. _ACEOF
  15502. cat confdefs.h >>conftest.$ac_ext
  15503. cat >>conftest.$ac_ext <<_ACEOF
  15504. /* end confdefs.h. */
  15505. #include <CoreFoundation/CFLocale.h>
  15506. int
  15507. main ()
  15508. {
  15509. CFLocaleCopyCurrent();
  15510. ;
  15511. return 0;
  15512. }
  15513. _ACEOF
  15514. rm -f conftest.$ac_objext conftest$ac_exeext
  15515. if { (ac_try="$ac_link"
  15516. case "(($ac_try" in
  15517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15518. *) ac_try_echo=$ac_try;;
  15519. esac
  15520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15521. (eval "$ac_link") 2>conftest.er1
  15522. ac_status=$?
  15523. grep -v '^ *+' conftest.er1 >conftest.err
  15524. rm -f conftest.er1
  15525. cat conftest.err >&5
  15526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15527. (exit $ac_status); } && {
  15528. test -z "$ac_cxx_werror_flag" ||
  15529. test ! -s conftest.err
  15530. } && test -s conftest$ac_exeext &&
  15531. $as_test_x conftest$ac_exeext; then
  15532. gt_cv_func_CFLocaleCopyCurrent=yes
  15533. else
  15534. echo "$as_me: failed program was:" >&5
  15535. sed 's/^/| /' conftest.$ac_ext >&5
  15536. gt_cv_func_CFLocaleCopyCurrent=no
  15537. fi
  15538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15539. conftest$ac_exeext conftest.$ac_ext
  15540. LIBS="$gt_save_LIBS"
  15541. fi
  15542. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15543. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15544. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15545. cat >>confdefs.h <<\_ACEOF
  15546. #define HAVE_CFLOCALECOPYCURRENT 1
  15547. _ACEOF
  15548. fi
  15549. INTL_MACOSX_LIBS=
  15550. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15551. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15552. fi
  15553. BUILD_INCLUDED_LIBINTL=no
  15554. USE_INCLUDED_LIBINTL=no
  15555. LIBINTL=
  15556. LTLIBINTL=
  15557. POSUB=
  15558. case " $gt_needs " in
  15559. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15560. *" need-ngettext "*) gt_api_version=2 ;;
  15561. *) gt_api_version=1 ;;
  15562. esac
  15563. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15564. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15565. if test "$USE_NLS" = "yes"; then
  15566. gt_use_preinstalled_gnugettext=no
  15567. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15568. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15569. # Check whether --with-included-gettext was given.
  15570. if test "${with_included_gettext+set}" = set; then
  15571. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15572. else
  15573. nls_cv_force_use_gnu_gettext=no
  15574. fi
  15575. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15576. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15577. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15578. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15579. if test $gt_api_version -ge 3; then
  15580. gt_revision_test_code='
  15581. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15582. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15583. #endif
  15584. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15585. '
  15586. else
  15587. gt_revision_test_code=
  15588. fi
  15589. if test $gt_api_version -ge 2; then
  15590. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15591. else
  15592. gt_expression_test_code=
  15593. fi
  15594. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15595. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15596. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15597. echo $ECHO_N "(cached) $ECHO_C" >&6
  15598. else
  15599. cat >conftest.$ac_ext <<_ACEOF
  15600. /* confdefs.h. */
  15601. _ACEOF
  15602. cat confdefs.h >>conftest.$ac_ext
  15603. cat >>conftest.$ac_ext <<_ACEOF
  15604. /* end confdefs.h. */
  15605. #include <libintl.h>
  15606. $gt_revision_test_code
  15607. extern int _nl_msg_cat_cntr;
  15608. extern int *_nl_domain_bindings;
  15609. int
  15610. main ()
  15611. {
  15612. bindtextdomain ("", "");
  15613. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15614. ;
  15615. return 0;
  15616. }
  15617. _ACEOF
  15618. rm -f conftest.$ac_objext conftest$ac_exeext
  15619. if { (ac_try="$ac_link"
  15620. case "(($ac_try" in
  15621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15622. *) ac_try_echo=$ac_try;;
  15623. esac
  15624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15625. (eval "$ac_link") 2>conftest.er1
  15626. ac_status=$?
  15627. grep -v '^ *+' conftest.er1 >conftest.err
  15628. rm -f conftest.er1
  15629. cat conftest.err >&5
  15630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15631. (exit $ac_status); } && {
  15632. test -z "$ac_cxx_werror_flag" ||
  15633. test ! -s conftest.err
  15634. } && test -s conftest$ac_exeext &&
  15635. $as_test_x conftest$ac_exeext; then
  15636. eval "$gt_func_gnugettext_libc=yes"
  15637. else
  15638. echo "$as_me: failed program was:" >&5
  15639. sed 's/^/| /' conftest.$ac_ext >&5
  15640. eval "$gt_func_gnugettext_libc=no"
  15641. fi
  15642. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15643. conftest$ac_exeext conftest.$ac_ext
  15644. fi
  15645. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15646. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15647. echo "${ECHO_T}$ac_res" >&6; }
  15648. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15649. use_additional=yes
  15650. acl_save_prefix="$prefix"
  15651. prefix="$acl_final_prefix"
  15652. acl_save_exec_prefix="$exec_prefix"
  15653. exec_prefix="$acl_final_exec_prefix"
  15654. eval additional_includedir=\"$includedir\"
  15655. eval additional_libdir=\"$libdir\"
  15656. exec_prefix="$acl_save_exec_prefix"
  15657. prefix="$acl_save_prefix"
  15658. # Check whether --with-libintl-prefix was given.
  15659. if test "${with_libintl_prefix+set}" = set; then
  15660. withval=$with_libintl_prefix;
  15661. if test "X$withval" = "Xno"; then
  15662. use_additional=no
  15663. else
  15664. if test "X$withval" = "X"; then
  15665. acl_save_prefix="$prefix"
  15666. prefix="$acl_final_prefix"
  15667. acl_save_exec_prefix="$exec_prefix"
  15668. exec_prefix="$acl_final_exec_prefix"
  15669. eval additional_includedir=\"$includedir\"
  15670. eval additional_libdir=\"$libdir\"
  15671. exec_prefix="$acl_save_exec_prefix"
  15672. prefix="$acl_save_prefix"
  15673. else
  15674. additional_includedir="$withval/include"
  15675. additional_libdir="$withval/$acl_libdirstem"
  15676. fi
  15677. fi
  15678. fi
  15679. LIBINTL=
  15680. LTLIBINTL=
  15681. INCINTL=
  15682. LIBINTL_PREFIX=
  15683. rpathdirs=
  15684. ltrpathdirs=
  15685. names_already_handled=
  15686. names_next_round='intl '
  15687. while test -n "$names_next_round"; do
  15688. names_this_round="$names_next_round"
  15689. names_next_round=
  15690. for name in $names_this_round; do
  15691. already_handled=
  15692. for n in $names_already_handled; do
  15693. if test "$n" = "$name"; then
  15694. already_handled=yes
  15695. break
  15696. fi
  15697. done
  15698. if test -z "$already_handled"; then
  15699. names_already_handled="$names_already_handled $name"
  15700. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15701. eval value=\"\$HAVE_LIB$uppername\"
  15702. if test -n "$value"; then
  15703. if test "$value" = yes; then
  15704. eval value=\"\$LIB$uppername\"
  15705. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15706. eval value=\"\$LTLIB$uppername\"
  15707. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15708. else
  15709. :
  15710. fi
  15711. else
  15712. found_dir=
  15713. found_la=
  15714. found_so=
  15715. found_a=
  15716. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15717. if test -n "$acl_shlibext"; then
  15718. shrext=".$acl_shlibext" # typically: shrext=.so
  15719. else
  15720. shrext=
  15721. fi
  15722. if test $use_additional = yes; then
  15723. dir="$additional_libdir"
  15724. if test -n "$acl_shlibext"; then
  15725. if test -f "$dir/$libname$shrext"; then
  15726. found_dir="$dir"
  15727. found_so="$dir/$libname$shrext"
  15728. else
  15729. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15730. ver=`(cd "$dir" && \
  15731. for f in "$libname$shrext".*; do echo "$f"; done \
  15732. | sed -e "s,^$libname$shrext\\\\.,," \
  15733. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15734. | sed 1q ) 2>/dev/null`
  15735. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15736. found_dir="$dir"
  15737. found_so="$dir/$libname$shrext.$ver"
  15738. fi
  15739. else
  15740. eval library_names=\"$acl_library_names_spec\"
  15741. for f in $library_names; do
  15742. if test -f "$dir/$f"; then
  15743. found_dir="$dir"
  15744. found_so="$dir/$f"
  15745. break
  15746. fi
  15747. done
  15748. fi
  15749. fi
  15750. fi
  15751. if test "X$found_dir" = "X"; then
  15752. if test -f "$dir/$libname.$acl_libext"; then
  15753. found_dir="$dir"
  15754. found_a="$dir/$libname.$acl_libext"
  15755. fi
  15756. fi
  15757. if test "X$found_dir" != "X"; then
  15758. if test -f "$dir/$libname.la"; then
  15759. found_la="$dir/$libname.la"
  15760. fi
  15761. fi
  15762. fi
  15763. if test "X$found_dir" = "X"; then
  15764. for x in $LDFLAGS $LTLIBINTL; do
  15765. acl_save_prefix="$prefix"
  15766. prefix="$acl_final_prefix"
  15767. acl_save_exec_prefix="$exec_prefix"
  15768. exec_prefix="$acl_final_exec_prefix"
  15769. eval x=\"$x\"
  15770. exec_prefix="$acl_save_exec_prefix"
  15771. prefix="$acl_save_prefix"
  15772. case "$x" in
  15773. -L*)
  15774. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15775. if test -n "$acl_shlibext"; then
  15776. if test -f "$dir/$libname$shrext"; then
  15777. found_dir="$dir"
  15778. found_so="$dir/$libname$shrext"
  15779. else
  15780. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15781. ver=`(cd "$dir" && \
  15782. for f in "$libname$shrext".*; do echo "$f"; done \
  15783. | sed -e "s,^$libname$shrext\\\\.,," \
  15784. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15785. | sed 1q ) 2>/dev/null`
  15786. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15787. found_dir="$dir"
  15788. found_so="$dir/$libname$shrext.$ver"
  15789. fi
  15790. else
  15791. eval library_names=\"$acl_library_names_spec\"
  15792. for f in $library_names; do
  15793. if test -f "$dir/$f"; then
  15794. found_dir="$dir"
  15795. found_so="$dir/$f"
  15796. break
  15797. fi
  15798. done
  15799. fi
  15800. fi
  15801. fi
  15802. if test "X$found_dir" = "X"; then
  15803. if test -f "$dir/$libname.$acl_libext"; then
  15804. found_dir="$dir"
  15805. found_a="$dir/$libname.$acl_libext"
  15806. fi
  15807. fi
  15808. if test "X$found_dir" != "X"; then
  15809. if test -f "$dir/$libname.la"; then
  15810. found_la="$dir/$libname.la"
  15811. fi
  15812. fi
  15813. ;;
  15814. esac
  15815. if test "X$found_dir" != "X"; then
  15816. break
  15817. fi
  15818. done
  15819. fi
  15820. if test "X$found_dir" != "X"; then
  15821. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15822. if test "X$found_so" != "X"; then
  15823. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15824. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15825. else
  15826. haveit=
  15827. for x in $ltrpathdirs; do
  15828. if test "X$x" = "X$found_dir"; then
  15829. haveit=yes
  15830. break
  15831. fi
  15832. done
  15833. if test -z "$haveit"; then
  15834. ltrpathdirs="$ltrpathdirs $found_dir"
  15835. fi
  15836. if test "$acl_hardcode_direct" = yes; then
  15837. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15838. else
  15839. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15840. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15841. haveit=
  15842. for x in $rpathdirs; do
  15843. if test "X$x" = "X$found_dir"; then
  15844. haveit=yes
  15845. break
  15846. fi
  15847. done
  15848. if test -z "$haveit"; then
  15849. rpathdirs="$rpathdirs $found_dir"
  15850. fi
  15851. else
  15852. haveit=
  15853. for x in $LDFLAGS $LIBINTL; do
  15854. acl_save_prefix="$prefix"
  15855. prefix="$acl_final_prefix"
  15856. acl_save_exec_prefix="$exec_prefix"
  15857. exec_prefix="$acl_final_exec_prefix"
  15858. eval x=\"$x\"
  15859. exec_prefix="$acl_save_exec_prefix"
  15860. prefix="$acl_save_prefix"
  15861. if test "X$x" = "X-L$found_dir"; then
  15862. haveit=yes
  15863. break
  15864. fi
  15865. done
  15866. if test -z "$haveit"; then
  15867. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15868. fi
  15869. if test "$acl_hardcode_minus_L" != no; then
  15870. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15871. else
  15872. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15873. fi
  15874. fi
  15875. fi
  15876. fi
  15877. else
  15878. if test "X$found_a" != "X"; then
  15879. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15880. else
  15881. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15882. fi
  15883. fi
  15884. additional_includedir=
  15885. case "$found_dir" in
  15886. */$acl_libdirstem | */$acl_libdirstem/)
  15887. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15888. LIBINTL_PREFIX="$basedir"
  15889. additional_includedir="$basedir/include"
  15890. ;;
  15891. esac
  15892. if test "X$additional_includedir" != "X"; then
  15893. if test "X$additional_includedir" != "X/usr/include"; then
  15894. haveit=
  15895. if test "X$additional_includedir" = "X/usr/local/include"; then
  15896. if test -n "$GCC"; then
  15897. case $host_os in
  15898. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15899. esac
  15900. fi
  15901. fi
  15902. if test -z "$haveit"; then
  15903. for x in $CPPFLAGS $INCINTL; do
  15904. acl_save_prefix="$prefix"
  15905. prefix="$acl_final_prefix"
  15906. acl_save_exec_prefix="$exec_prefix"
  15907. exec_prefix="$acl_final_exec_prefix"
  15908. eval x=\"$x\"
  15909. exec_prefix="$acl_save_exec_prefix"
  15910. prefix="$acl_save_prefix"
  15911. if test "X$x" = "X-I$additional_includedir"; then
  15912. haveit=yes
  15913. break
  15914. fi
  15915. done
  15916. if test -z "$haveit"; then
  15917. if test -d "$additional_includedir"; then
  15918. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15919. fi
  15920. fi
  15921. fi
  15922. fi
  15923. fi
  15924. if test -n "$found_la"; then
  15925. save_libdir="$libdir"
  15926. case "$found_la" in
  15927. */* | *\\*) . "$found_la" ;;
  15928. *) . "./$found_la" ;;
  15929. esac
  15930. libdir="$save_libdir"
  15931. for dep in $dependency_libs; do
  15932. case "$dep" in
  15933. -L*)
  15934. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15935. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15936. haveit=
  15937. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15938. if test -n "$GCC"; then
  15939. case $host_os in
  15940. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15941. esac
  15942. fi
  15943. fi
  15944. if test -z "$haveit"; then
  15945. haveit=
  15946. for x in $LDFLAGS $LIBINTL; do
  15947. acl_save_prefix="$prefix"
  15948. prefix="$acl_final_prefix"
  15949. acl_save_exec_prefix="$exec_prefix"
  15950. exec_prefix="$acl_final_exec_prefix"
  15951. eval x=\"$x\"
  15952. exec_prefix="$acl_save_exec_prefix"
  15953. prefix="$acl_save_prefix"
  15954. if test "X$x" = "X-L$additional_libdir"; then
  15955. haveit=yes
  15956. break
  15957. fi
  15958. done
  15959. if test -z "$haveit"; then
  15960. if test -d "$additional_libdir"; then
  15961. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15962. fi
  15963. fi
  15964. haveit=
  15965. for x in $LDFLAGS $LTLIBINTL; do
  15966. acl_save_prefix="$prefix"
  15967. prefix="$acl_final_prefix"
  15968. acl_save_exec_prefix="$exec_prefix"
  15969. exec_prefix="$acl_final_exec_prefix"
  15970. eval x=\"$x\"
  15971. exec_prefix="$acl_save_exec_prefix"
  15972. prefix="$acl_save_prefix"
  15973. if test "X$x" = "X-L$additional_libdir"; then
  15974. haveit=yes
  15975. break
  15976. fi
  15977. done
  15978. if test -z "$haveit"; then
  15979. if test -d "$additional_libdir"; then
  15980. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15981. fi
  15982. fi
  15983. fi
  15984. fi
  15985. ;;
  15986. -R*)
  15987. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15988. if test "$enable_rpath" != no; then
  15989. haveit=
  15990. for x in $rpathdirs; do
  15991. if test "X$x" = "X$dir"; then
  15992. haveit=yes
  15993. break
  15994. fi
  15995. done
  15996. if test -z "$haveit"; then
  15997. rpathdirs="$rpathdirs $dir"
  15998. fi
  15999. haveit=
  16000. for x in $ltrpathdirs; do
  16001. if test "X$x" = "X$dir"; then
  16002. haveit=yes
  16003. break
  16004. fi
  16005. done
  16006. if test -z "$haveit"; then
  16007. ltrpathdirs="$ltrpathdirs $dir"
  16008. fi
  16009. fi
  16010. ;;
  16011. -l*)
  16012. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16013. ;;
  16014. *.la)
  16015. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16016. ;;
  16017. *)
  16018. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  16019. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  16020. ;;
  16021. esac
  16022. done
  16023. fi
  16024. else
  16025. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16026. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  16027. fi
  16028. fi
  16029. fi
  16030. done
  16031. done
  16032. if test "X$rpathdirs" != "X"; then
  16033. if test -n "$acl_hardcode_libdir_separator"; then
  16034. alldirs=
  16035. for found_dir in $rpathdirs; do
  16036. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16037. done
  16038. acl_save_libdir="$libdir"
  16039. libdir="$alldirs"
  16040. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16041. libdir="$acl_save_libdir"
  16042. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16043. else
  16044. for found_dir in $rpathdirs; do
  16045. acl_save_libdir="$libdir"
  16046. libdir="$found_dir"
  16047. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16048. libdir="$acl_save_libdir"
  16049. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16050. done
  16051. fi
  16052. fi
  16053. if test "X$ltrpathdirs" != "X"; then
  16054. for found_dir in $ltrpathdirs; do
  16055. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16056. done
  16057. fi
  16058. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16059. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  16060. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16061. echo $ECHO_N "(cached) $ECHO_C" >&6
  16062. else
  16063. gt_save_CPPFLAGS="$CPPFLAGS"
  16064. CPPFLAGS="$CPPFLAGS $INCINTL"
  16065. gt_save_LIBS="$LIBS"
  16066. LIBS="$LIBS $LIBINTL"
  16067. cat >conftest.$ac_ext <<_ACEOF
  16068. /* confdefs.h. */
  16069. _ACEOF
  16070. cat confdefs.h >>conftest.$ac_ext
  16071. cat >>conftest.$ac_ext <<_ACEOF
  16072. /* end confdefs.h. */
  16073. #include <libintl.h>
  16074. $gt_revision_test_code
  16075. extern int _nl_msg_cat_cntr;
  16076. extern
  16077. #ifdef __cplusplus
  16078. "C"
  16079. #endif
  16080. const char *_nl_expand_alias (const char *);
  16081. int
  16082. main ()
  16083. {
  16084. bindtextdomain ("", "");
  16085. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16086. ;
  16087. return 0;
  16088. }
  16089. _ACEOF
  16090. rm -f conftest.$ac_objext conftest$ac_exeext
  16091. if { (ac_try="$ac_link"
  16092. case "(($ac_try" in
  16093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16094. *) ac_try_echo=$ac_try;;
  16095. esac
  16096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16097. (eval "$ac_link") 2>conftest.er1
  16098. ac_status=$?
  16099. grep -v '^ *+' conftest.er1 >conftest.err
  16100. rm -f conftest.er1
  16101. cat conftest.err >&5
  16102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16103. (exit $ac_status); } && {
  16104. test -z "$ac_cxx_werror_flag" ||
  16105. test ! -s conftest.err
  16106. } && test -s conftest$ac_exeext &&
  16107. $as_test_x conftest$ac_exeext; then
  16108. eval "$gt_func_gnugettext_libintl=yes"
  16109. else
  16110. echo "$as_me: failed program was:" >&5
  16111. sed 's/^/| /' conftest.$ac_ext >&5
  16112. eval "$gt_func_gnugettext_libintl=no"
  16113. fi
  16114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16115. conftest$ac_exeext conftest.$ac_ext
  16116. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16117. LIBS="$LIBS $LIBICONV"
  16118. cat >conftest.$ac_ext <<_ACEOF
  16119. /* confdefs.h. */
  16120. _ACEOF
  16121. cat confdefs.h >>conftest.$ac_ext
  16122. cat >>conftest.$ac_ext <<_ACEOF
  16123. /* end confdefs.h. */
  16124. #include <libintl.h>
  16125. $gt_revision_test_code
  16126. extern int _nl_msg_cat_cntr;
  16127. extern
  16128. #ifdef __cplusplus
  16129. "C"
  16130. #endif
  16131. const char *_nl_expand_alias (const char *);
  16132. int
  16133. main ()
  16134. {
  16135. bindtextdomain ("", "");
  16136. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16137. ;
  16138. return 0;
  16139. }
  16140. _ACEOF
  16141. rm -f conftest.$ac_objext conftest$ac_exeext
  16142. if { (ac_try="$ac_link"
  16143. case "(($ac_try" in
  16144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16145. *) ac_try_echo=$ac_try;;
  16146. esac
  16147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16148. (eval "$ac_link") 2>conftest.er1
  16149. ac_status=$?
  16150. grep -v '^ *+' conftest.er1 >conftest.err
  16151. rm -f conftest.er1
  16152. cat conftest.err >&5
  16153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16154. (exit $ac_status); } && {
  16155. test -z "$ac_cxx_werror_flag" ||
  16156. test ! -s conftest.err
  16157. } && test -s conftest$ac_exeext &&
  16158. $as_test_x conftest$ac_exeext; then
  16159. LIBINTL="$LIBINTL $LIBICONV"
  16160. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16161. eval "$gt_func_gnugettext_libintl=yes"
  16162. else
  16163. echo "$as_me: failed program was:" >&5
  16164. sed 's/^/| /' conftest.$ac_ext >&5
  16165. fi
  16166. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16167. conftest$ac_exeext conftest.$ac_ext
  16168. fi
  16169. CPPFLAGS="$gt_save_CPPFLAGS"
  16170. LIBS="$gt_save_LIBS"
  16171. fi
  16172. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16173. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16174. echo "${ECHO_T}$ac_res" >&6; }
  16175. fi
  16176. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16177. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16178. && test "$PACKAGE" != gettext-runtime \
  16179. && test "$PACKAGE" != gettext-tools; }; then
  16180. gt_use_preinstalled_gnugettext=yes
  16181. else
  16182. LIBINTL=
  16183. LTLIBINTL=
  16184. INCINTL=
  16185. fi
  16186. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16187. nls_cv_use_gnu_gettext=yes
  16188. fi
  16189. fi
  16190. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16191. BUILD_INCLUDED_LIBINTL=yes
  16192. USE_INCLUDED_LIBINTL=yes
  16193. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16194. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16195. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16196. fi
  16197. CATOBJEXT=
  16198. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16199. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16200. CATOBJEXT=.gmo
  16201. fi
  16202. if test -n "$INTL_MACOSX_LIBS"; then
  16203. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16204. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16205. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16206. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16207. fi
  16208. fi
  16209. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16210. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16211. cat >>confdefs.h <<\_ACEOF
  16212. #define ENABLE_NLS 1
  16213. _ACEOF
  16214. else
  16215. USE_NLS=no
  16216. fi
  16217. fi
  16218. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16219. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16220. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16221. echo "${ECHO_T}$USE_NLS" >&6; }
  16222. if test "$USE_NLS" = "yes"; then
  16223. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16224. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16225. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16226. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16227. gt_source="external libintl"
  16228. else
  16229. gt_source="libc"
  16230. fi
  16231. else
  16232. gt_source="included intl directory"
  16233. fi
  16234. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16235. echo "${ECHO_T}$gt_source" >&6; }
  16236. fi
  16237. if test "$USE_NLS" = "yes"; then
  16238. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16239. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16240. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16241. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16242. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16243. echo "${ECHO_T}$LIBINTL" >&6; }
  16244. for element in $INCINTL; do
  16245. haveit=
  16246. for x in $CPPFLAGS; do
  16247. acl_save_prefix="$prefix"
  16248. prefix="$acl_final_prefix"
  16249. acl_save_exec_prefix="$exec_prefix"
  16250. exec_prefix="$acl_final_exec_prefix"
  16251. eval x=\"$x\"
  16252. exec_prefix="$acl_save_exec_prefix"
  16253. prefix="$acl_save_prefix"
  16254. if test "X$x" = "X$element"; then
  16255. haveit=yes
  16256. break
  16257. fi
  16258. done
  16259. if test -z "$haveit"; then
  16260. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16261. fi
  16262. done
  16263. fi
  16264. cat >>confdefs.h <<\_ACEOF
  16265. #define HAVE_GETTEXT 1
  16266. _ACEOF
  16267. cat >>confdefs.h <<\_ACEOF
  16268. #define HAVE_DCGETTEXT 1
  16269. _ACEOF
  16270. fi
  16271. POSUB=po
  16272. fi
  16273. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16274. BUILD_INCLUDED_LIBINTL=yes
  16275. fi
  16276. nls_cv_header_intl=
  16277. nls_cv_header_libgt=
  16278. DATADIRNAME=share
  16279. INSTOBJEXT=.mo
  16280. GENCAT=gencat
  16281. INTLOBJS=
  16282. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16283. INTLOBJS="\$(GETTOBJS)"
  16284. fi
  16285. INTL_LIBTOOL_SUFFIX_PREFIX=
  16286. INTLLIBS="$LIBINTL"
  16287. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16288. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16289. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16290. echo $ECHO_N "(cached) $ECHO_C" >&6
  16291. else
  16292. cat >conftest.$ac_ext <<_ACEOF
  16293. /* confdefs.h. */
  16294. _ACEOF
  16295. cat confdefs.h >>conftest.$ac_ext
  16296. cat >>conftest.$ac_ext <<_ACEOF
  16297. /* end confdefs.h. */
  16298. #include <error.h>
  16299. int
  16300. main ()
  16301. {
  16302. error_at_line (0, 0, "", 0, "an error occurred");
  16303. ;
  16304. return 0;
  16305. }
  16306. _ACEOF
  16307. rm -f conftest.$ac_objext conftest$ac_exeext
  16308. if { (ac_try="$ac_link"
  16309. case "(($ac_try" in
  16310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16311. *) ac_try_echo=$ac_try;;
  16312. esac
  16313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16314. (eval "$ac_link") 2>conftest.er1
  16315. ac_status=$?
  16316. grep -v '^ *+' conftest.er1 >conftest.err
  16317. rm -f conftest.er1
  16318. cat conftest.err >&5
  16319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16320. (exit $ac_status); } && {
  16321. test -z "$ac_cxx_werror_flag" ||
  16322. test ! -s conftest.err
  16323. } && test -s conftest$ac_exeext &&
  16324. $as_test_x conftest$ac_exeext; then
  16325. ac_cv_lib_error_at_line=yes
  16326. else
  16327. echo "$as_me: failed program was:" >&5
  16328. sed 's/^/| /' conftest.$ac_ext >&5
  16329. ac_cv_lib_error_at_line=no
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16332. conftest$ac_exeext conftest.$ac_ext
  16333. fi
  16334. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16335. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16336. if test $ac_cv_lib_error_at_line = no; then
  16337. case " $LIBOBJS " in
  16338. *" error.$ac_objext "* ) ;;
  16339. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16340. ;;
  16341. esac
  16342. fi
  16343. if test $ac_cv_c_compiler_gnu = yes; then
  16344. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16345. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16346. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16347. echo $ECHO_N "(cached) $ECHO_C" >&6
  16348. else
  16349. ac_pattern="Autoconf.*'x'"
  16350. cat >conftest.$ac_ext <<_ACEOF
  16351. /* confdefs.h. */
  16352. _ACEOF
  16353. cat confdefs.h >>conftest.$ac_ext
  16354. cat >>conftest.$ac_ext <<_ACEOF
  16355. /* end confdefs.h. */
  16356. #include <sgtty.h>
  16357. Autoconf TIOCGETP
  16358. _ACEOF
  16359. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16360. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16361. ac_cv_prog_gcc_traditional=yes
  16362. else
  16363. ac_cv_prog_gcc_traditional=no
  16364. fi
  16365. rm -f conftest*
  16366. if test $ac_cv_prog_gcc_traditional = no; then
  16367. cat >conftest.$ac_ext <<_ACEOF
  16368. /* confdefs.h. */
  16369. _ACEOF
  16370. cat confdefs.h >>conftest.$ac_ext
  16371. cat >>conftest.$ac_ext <<_ACEOF
  16372. /* end confdefs.h. */
  16373. #include <termio.h>
  16374. Autoconf TCGETA
  16375. _ACEOF
  16376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16377. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16378. ac_cv_prog_gcc_traditional=yes
  16379. fi
  16380. rm -f conftest*
  16381. fi
  16382. fi
  16383. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16384. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16385. if test $ac_cv_prog_gcc_traditional = yes; then
  16386. CC="$CC -traditional"
  16387. fi
  16388. fi
  16389. case "$target" in
  16390. *mingw*)
  16391. ;;
  16392. *)
  16393. for ac_header in stdlib.h
  16394. do
  16395. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16396. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16397. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16398. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16400. echo $ECHO_N "(cached) $ECHO_C" >&6
  16401. fi
  16402. ac_res=`eval echo '${'$as_ac_Header'}'`
  16403. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16404. echo "${ECHO_T}$ac_res" >&6; }
  16405. else
  16406. # Is the header compilable?
  16407. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16408. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16409. cat >conftest.$ac_ext <<_ACEOF
  16410. /* confdefs.h. */
  16411. _ACEOF
  16412. cat confdefs.h >>conftest.$ac_ext
  16413. cat >>conftest.$ac_ext <<_ACEOF
  16414. /* end confdefs.h. */
  16415. $ac_includes_default
  16416. #include <$ac_header>
  16417. _ACEOF
  16418. rm -f conftest.$ac_objext
  16419. if { (ac_try="$ac_compile"
  16420. case "(($ac_try" in
  16421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16422. *) ac_try_echo=$ac_try;;
  16423. esac
  16424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16425. (eval "$ac_compile") 2>conftest.er1
  16426. ac_status=$?
  16427. grep -v '^ *+' conftest.er1 >conftest.err
  16428. rm -f conftest.er1
  16429. cat conftest.err >&5
  16430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16431. (exit $ac_status); } && {
  16432. test -z "$ac_cxx_werror_flag" ||
  16433. test ! -s conftest.err
  16434. } && test -s conftest.$ac_objext; then
  16435. ac_header_compiler=yes
  16436. else
  16437. echo "$as_me: failed program was:" >&5
  16438. sed 's/^/| /' conftest.$ac_ext >&5
  16439. ac_header_compiler=no
  16440. fi
  16441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16442. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16443. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16444. # Is the header present?
  16445. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16446. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16447. cat >conftest.$ac_ext <<_ACEOF
  16448. /* confdefs.h. */
  16449. _ACEOF
  16450. cat confdefs.h >>conftest.$ac_ext
  16451. cat >>conftest.$ac_ext <<_ACEOF
  16452. /* end confdefs.h. */
  16453. #include <$ac_header>
  16454. _ACEOF
  16455. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16456. case "(($ac_try" in
  16457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16458. *) ac_try_echo=$ac_try;;
  16459. esac
  16460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16461. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16462. ac_status=$?
  16463. grep -v '^ *+' conftest.er1 >conftest.err
  16464. rm -f conftest.er1
  16465. cat conftest.err >&5
  16466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16467. (exit $ac_status); } >/dev/null && {
  16468. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16469. test ! -s conftest.err
  16470. }; then
  16471. ac_header_preproc=yes
  16472. else
  16473. echo "$as_me: failed program was:" >&5
  16474. sed 's/^/| /' conftest.$ac_ext >&5
  16475. ac_header_preproc=no
  16476. fi
  16477. rm -f conftest.err conftest.$ac_ext
  16478. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16479. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16480. # So? What about this header?
  16481. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16482. yes:no: )
  16483. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16484. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16485. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16486. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16487. ac_header_preproc=yes
  16488. ;;
  16489. no:yes:* )
  16490. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16491. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16492. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16493. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16494. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16495. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16496. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16497. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16498. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16499. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16500. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16501. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16502. ( cat <<\_ASBOX
  16503. ## ----------------------------------------------- ##
  16504. ## Report this to t-tujikawa@users.sourceforge.net ##
  16505. ## ----------------------------------------------- ##
  16506. _ASBOX
  16507. ) | sed "s/^/$as_me: WARNING: /" >&2
  16508. ;;
  16509. esac
  16510. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16511. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16512. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16513. echo $ECHO_N "(cached) $ECHO_C" >&6
  16514. else
  16515. eval "$as_ac_Header=\$ac_header_preproc"
  16516. fi
  16517. ac_res=`eval echo '${'$as_ac_Header'}'`
  16518. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16519. echo "${ECHO_T}$ac_res" >&6; }
  16520. fi
  16521. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16522. cat >>confdefs.h <<_ACEOF
  16523. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16524. _ACEOF
  16525. fi
  16526. done
  16527. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16528. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16529. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16530. echo $ECHO_N "(cached) $ECHO_C" >&6
  16531. else
  16532. if test "$cross_compiling" = yes; then
  16533. ac_cv_func_malloc_0_nonnull=no
  16534. else
  16535. cat >conftest.$ac_ext <<_ACEOF
  16536. /* confdefs.h. */
  16537. _ACEOF
  16538. cat confdefs.h >>conftest.$ac_ext
  16539. cat >>conftest.$ac_ext <<_ACEOF
  16540. /* end confdefs.h. */
  16541. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16542. # include <stdlib.h>
  16543. #else
  16544. char *malloc ();
  16545. #endif
  16546. int
  16547. main ()
  16548. {
  16549. return ! malloc (0);
  16550. ;
  16551. return 0;
  16552. }
  16553. _ACEOF
  16554. rm -f conftest$ac_exeext
  16555. if { (ac_try="$ac_link"
  16556. case "(($ac_try" in
  16557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16558. *) ac_try_echo=$ac_try;;
  16559. esac
  16560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16561. (eval "$ac_link") 2>&5
  16562. ac_status=$?
  16563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16564. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  16571. ac_status=$?
  16572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16573. (exit $ac_status); }; }; then
  16574. ac_cv_func_malloc_0_nonnull=yes
  16575. else
  16576. echo "$as_me: program exited with status $ac_status" >&5
  16577. echo "$as_me: failed program was:" >&5
  16578. sed 's/^/| /' conftest.$ac_ext >&5
  16579. ( exit $ac_status )
  16580. ac_cv_func_malloc_0_nonnull=no
  16581. fi
  16582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16583. fi
  16584. fi
  16585. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16586. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16587. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16588. cat >>confdefs.h <<\_ACEOF
  16589. #define HAVE_MALLOC 1
  16590. _ACEOF
  16591. else
  16592. cat >>confdefs.h <<\_ACEOF
  16593. #define HAVE_MALLOC 0
  16594. _ACEOF
  16595. case " $LIBOBJS " in
  16596. *" malloc.$ac_objext "* ) ;;
  16597. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16598. ;;
  16599. esac
  16600. cat >>confdefs.h <<\_ACEOF
  16601. #define malloc rpl_malloc
  16602. _ACEOF
  16603. fi
  16604. for ac_header in stdlib.h
  16605. do
  16606. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16607. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16608. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16609. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16610. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16611. echo $ECHO_N "(cached) $ECHO_C" >&6
  16612. fi
  16613. ac_res=`eval echo '${'$as_ac_Header'}'`
  16614. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16615. echo "${ECHO_T}$ac_res" >&6; }
  16616. else
  16617. # Is the header compilable?
  16618. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16619. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16620. cat >conftest.$ac_ext <<_ACEOF
  16621. /* confdefs.h. */
  16622. _ACEOF
  16623. cat confdefs.h >>conftest.$ac_ext
  16624. cat >>conftest.$ac_ext <<_ACEOF
  16625. /* end confdefs.h. */
  16626. $ac_includes_default
  16627. #include <$ac_header>
  16628. _ACEOF
  16629. rm -f conftest.$ac_objext
  16630. if { (ac_try="$ac_compile"
  16631. case "(($ac_try" in
  16632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16633. *) ac_try_echo=$ac_try;;
  16634. esac
  16635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16636. (eval "$ac_compile") 2>conftest.er1
  16637. ac_status=$?
  16638. grep -v '^ *+' conftest.er1 >conftest.err
  16639. rm -f conftest.er1
  16640. cat conftest.err >&5
  16641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16642. (exit $ac_status); } && {
  16643. test -z "$ac_cxx_werror_flag" ||
  16644. test ! -s conftest.err
  16645. } && test -s conftest.$ac_objext; then
  16646. ac_header_compiler=yes
  16647. else
  16648. echo "$as_me: failed program was:" >&5
  16649. sed 's/^/| /' conftest.$ac_ext >&5
  16650. ac_header_compiler=no
  16651. fi
  16652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16653. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16654. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16655. # Is the header present?
  16656. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16657. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16658. cat >conftest.$ac_ext <<_ACEOF
  16659. /* confdefs.h. */
  16660. _ACEOF
  16661. cat confdefs.h >>conftest.$ac_ext
  16662. cat >>conftest.$ac_ext <<_ACEOF
  16663. /* end confdefs.h. */
  16664. #include <$ac_header>
  16665. _ACEOF
  16666. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16667. case "(($ac_try" in
  16668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16669. *) ac_try_echo=$ac_try;;
  16670. esac
  16671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16672. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16673. ac_status=$?
  16674. grep -v '^ *+' conftest.er1 >conftest.err
  16675. rm -f conftest.er1
  16676. cat conftest.err >&5
  16677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16678. (exit $ac_status); } >/dev/null && {
  16679. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16680. test ! -s conftest.err
  16681. }; then
  16682. ac_header_preproc=yes
  16683. else
  16684. echo "$as_me: failed program was:" >&5
  16685. sed 's/^/| /' conftest.$ac_ext >&5
  16686. ac_header_preproc=no
  16687. fi
  16688. rm -f conftest.err conftest.$ac_ext
  16689. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16690. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16691. # So? What about this header?
  16692. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16693. yes:no: )
  16694. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16695. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16696. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16697. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16698. ac_header_preproc=yes
  16699. ;;
  16700. no:yes:* )
  16701. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16702. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16703. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16704. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16705. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16706. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16707. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16708. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16709. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16710. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16711. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16712. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16713. ( cat <<\_ASBOX
  16714. ## ----------------------------------------------- ##
  16715. ## Report this to t-tujikawa@users.sourceforge.net ##
  16716. ## ----------------------------------------------- ##
  16717. _ASBOX
  16718. ) | sed "s/^/$as_me: WARNING: /" >&2
  16719. ;;
  16720. esac
  16721. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16722. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16723. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16724. echo $ECHO_N "(cached) $ECHO_C" >&6
  16725. else
  16726. eval "$as_ac_Header=\$ac_header_preproc"
  16727. fi
  16728. ac_res=`eval echo '${'$as_ac_Header'}'`
  16729. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16730. echo "${ECHO_T}$ac_res" >&6; }
  16731. fi
  16732. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16733. cat >>confdefs.h <<_ACEOF
  16734. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16735. _ACEOF
  16736. fi
  16737. done
  16738. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16739. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16740. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16741. echo $ECHO_N "(cached) $ECHO_C" >&6
  16742. else
  16743. if test "$cross_compiling" = yes; then
  16744. ac_cv_func_realloc_0_nonnull=no
  16745. else
  16746. cat >conftest.$ac_ext <<_ACEOF
  16747. /* confdefs.h. */
  16748. _ACEOF
  16749. cat confdefs.h >>conftest.$ac_ext
  16750. cat >>conftest.$ac_ext <<_ACEOF
  16751. /* end confdefs.h. */
  16752. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16753. # include <stdlib.h>
  16754. #else
  16755. char *realloc ();
  16756. #endif
  16757. int
  16758. main ()
  16759. {
  16760. return ! realloc (0, 0);
  16761. ;
  16762. return 0;
  16763. }
  16764. _ACEOF
  16765. rm -f conftest$ac_exeext
  16766. if { (ac_try="$ac_link"
  16767. case "(($ac_try" in
  16768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16769. *) ac_try_echo=$ac_try;;
  16770. esac
  16771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16772. (eval "$ac_link") 2>&5
  16773. ac_status=$?
  16774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16775. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16776. { (case "(($ac_try" in
  16777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16778. *) ac_try_echo=$ac_try;;
  16779. esac
  16780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16781. (eval "$ac_try") 2>&5
  16782. ac_status=$?
  16783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16784. (exit $ac_status); }; }; then
  16785. ac_cv_func_realloc_0_nonnull=yes
  16786. else
  16787. echo "$as_me: program exited with status $ac_status" >&5
  16788. echo "$as_me: failed program was:" >&5
  16789. sed 's/^/| /' conftest.$ac_ext >&5
  16790. ( exit $ac_status )
  16791. ac_cv_func_realloc_0_nonnull=no
  16792. fi
  16793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16794. fi
  16795. fi
  16796. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16797. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16798. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16799. cat >>confdefs.h <<\_ACEOF
  16800. #define HAVE_REALLOC 1
  16801. _ACEOF
  16802. else
  16803. cat >>confdefs.h <<\_ACEOF
  16804. #define HAVE_REALLOC 0
  16805. _ACEOF
  16806. case " $LIBOBJS " in
  16807. *" realloc.$ac_objext "* ) ;;
  16808. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16809. ;;
  16810. esac
  16811. cat >>confdefs.h <<\_ACEOF
  16812. #define realloc rpl_realloc
  16813. _ACEOF
  16814. fi
  16815. ;;
  16816. esac
  16817. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16818. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16819. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16820. echo $ECHO_N "(cached) $ECHO_C" >&6
  16821. else
  16822. if test "$cross_compiling" = yes; then
  16823. ac_cv_func_memcmp_working=no
  16824. else
  16825. cat >conftest.$ac_ext <<_ACEOF
  16826. /* confdefs.h. */
  16827. _ACEOF
  16828. cat confdefs.h >>conftest.$ac_ext
  16829. cat >>conftest.$ac_ext <<_ACEOF
  16830. /* end confdefs.h. */
  16831. $ac_includes_default
  16832. int
  16833. main ()
  16834. {
  16835. /* Some versions of memcmp are not 8-bit clean. */
  16836. char c0 = '\100', c1 = '\200', c2 = '\201';
  16837. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16838. return 1;
  16839. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16840. or more and with at least one buffer not starting on a 4-byte boundary.
  16841. William Lewis provided this test program. */
  16842. {
  16843. char foo[21];
  16844. char bar[21];
  16845. int i;
  16846. for (i = 0; i < 4; i++)
  16847. {
  16848. char *a = foo + i;
  16849. char *b = bar + i;
  16850. strcpy (a, "--------01111111");
  16851. strcpy (b, "--------10000000");
  16852. if (memcmp (a, b, 16) >= 0)
  16853. return 1;
  16854. }
  16855. return 0;
  16856. }
  16857. ;
  16858. return 0;
  16859. }
  16860. _ACEOF
  16861. rm -f conftest$ac_exeext
  16862. if { (ac_try="$ac_link"
  16863. case "(($ac_try" in
  16864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16865. *) ac_try_echo=$ac_try;;
  16866. esac
  16867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16868. (eval "$ac_link") 2>&5
  16869. ac_status=$?
  16870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16871. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16872. { (case "(($ac_try" in
  16873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16874. *) ac_try_echo=$ac_try;;
  16875. esac
  16876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16877. (eval "$ac_try") 2>&5
  16878. ac_status=$?
  16879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16880. (exit $ac_status); }; }; then
  16881. ac_cv_func_memcmp_working=yes
  16882. else
  16883. echo "$as_me: program exited with status $ac_status" >&5
  16884. echo "$as_me: failed program was:" >&5
  16885. sed 's/^/| /' conftest.$ac_ext >&5
  16886. ( exit $ac_status )
  16887. ac_cv_func_memcmp_working=no
  16888. fi
  16889. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16890. fi
  16891. fi
  16892. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16893. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16894. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16895. *" memcmp.$ac_objext "* ) ;;
  16896. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16897. ;;
  16898. esac
  16899. for ac_header in $ac_header_list
  16900. do
  16901. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16902. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16903. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16904. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16905. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16906. echo $ECHO_N "(cached) $ECHO_C" >&6
  16907. fi
  16908. ac_res=`eval echo '${'$as_ac_Header'}'`
  16909. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16910. echo "${ECHO_T}$ac_res" >&6; }
  16911. else
  16912. # Is the header compilable?
  16913. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16914. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16915. cat >conftest.$ac_ext <<_ACEOF
  16916. /* confdefs.h. */
  16917. _ACEOF
  16918. cat confdefs.h >>conftest.$ac_ext
  16919. cat >>conftest.$ac_ext <<_ACEOF
  16920. /* end confdefs.h. */
  16921. $ac_includes_default
  16922. #include <$ac_header>
  16923. _ACEOF
  16924. rm -f conftest.$ac_objext
  16925. if { (ac_try="$ac_compile"
  16926. case "(($ac_try" in
  16927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16928. *) ac_try_echo=$ac_try;;
  16929. esac
  16930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16931. (eval "$ac_compile") 2>conftest.er1
  16932. ac_status=$?
  16933. grep -v '^ *+' conftest.er1 >conftest.err
  16934. rm -f conftest.er1
  16935. cat conftest.err >&5
  16936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16937. (exit $ac_status); } && {
  16938. test -z "$ac_cxx_werror_flag" ||
  16939. test ! -s conftest.err
  16940. } && test -s conftest.$ac_objext; then
  16941. ac_header_compiler=yes
  16942. else
  16943. echo "$as_me: failed program was:" >&5
  16944. sed 's/^/| /' conftest.$ac_ext >&5
  16945. ac_header_compiler=no
  16946. fi
  16947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16948. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16949. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16950. # Is the header present?
  16951. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16952. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16953. cat >conftest.$ac_ext <<_ACEOF
  16954. /* confdefs.h. */
  16955. _ACEOF
  16956. cat confdefs.h >>conftest.$ac_ext
  16957. cat >>conftest.$ac_ext <<_ACEOF
  16958. /* end confdefs.h. */
  16959. #include <$ac_header>
  16960. _ACEOF
  16961. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16962. case "(($ac_try" in
  16963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16964. *) ac_try_echo=$ac_try;;
  16965. esac
  16966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16967. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16968. ac_status=$?
  16969. grep -v '^ *+' conftest.er1 >conftest.err
  16970. rm -f conftest.er1
  16971. cat conftest.err >&5
  16972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16973. (exit $ac_status); } >/dev/null && {
  16974. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16975. test ! -s conftest.err
  16976. }; then
  16977. ac_header_preproc=yes
  16978. else
  16979. echo "$as_me: failed program was:" >&5
  16980. sed 's/^/| /' conftest.$ac_ext >&5
  16981. ac_header_preproc=no
  16982. fi
  16983. rm -f conftest.err conftest.$ac_ext
  16984. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16985. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16986. # So? What about this header?
  16987. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16988. yes:no: )
  16989. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16990. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16991. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16992. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16993. ac_header_preproc=yes
  16994. ;;
  16995. no:yes:* )
  16996. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16997. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16998. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16999. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17000. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17001. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17002. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17003. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17004. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17005. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17006. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17007. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17008. ( cat <<\_ASBOX
  17009. ## ----------------------------------------------- ##
  17010. ## Report this to t-tujikawa@users.sourceforge.net ##
  17011. ## ----------------------------------------------- ##
  17012. _ASBOX
  17013. ) | sed "s/^/$as_me: WARNING: /" >&2
  17014. ;;
  17015. esac
  17016. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17017. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17018. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17019. echo $ECHO_N "(cached) $ECHO_C" >&6
  17020. else
  17021. eval "$as_ac_Header=\$ac_header_preproc"
  17022. fi
  17023. ac_res=`eval echo '${'$as_ac_Header'}'`
  17024. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17025. echo "${ECHO_T}$ac_res" >&6; }
  17026. fi
  17027. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17028. cat >>confdefs.h <<_ACEOF
  17029. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17030. _ACEOF
  17031. fi
  17032. done
  17033. for ac_func in $ac_func_list
  17034. do
  17035. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17036. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17037. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17038. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17039. echo $ECHO_N "(cached) $ECHO_C" >&6
  17040. else
  17041. cat >conftest.$ac_ext <<_ACEOF
  17042. /* confdefs.h. */
  17043. _ACEOF
  17044. cat confdefs.h >>conftest.$ac_ext
  17045. cat >>conftest.$ac_ext <<_ACEOF
  17046. /* end confdefs.h. */
  17047. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17048. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17049. #define $ac_func innocuous_$ac_func
  17050. /* System header to define __stub macros and hopefully few prototypes,
  17051. which can conflict with char $ac_func (); below.
  17052. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17053. <limits.h> exists even on freestanding compilers. */
  17054. #ifdef __STDC__
  17055. # include <limits.h>
  17056. #else
  17057. # include <assert.h>
  17058. #endif
  17059. #undef $ac_func
  17060. /* Override any GCC internal prototype to avoid an error.
  17061. Use char because int might match the return type of a GCC
  17062. builtin and then its argument prototype would still apply. */
  17063. #ifdef __cplusplus
  17064. extern "C"
  17065. #endif
  17066. char $ac_func ();
  17067. /* The GNU C library defines this for functions which it implements
  17068. to always fail with ENOSYS. Some functions are actually named
  17069. something starting with __ and the normal name is an alias. */
  17070. #if defined __stub_$ac_func || defined __stub___$ac_func
  17071. choke me
  17072. #endif
  17073. int
  17074. main ()
  17075. {
  17076. return $ac_func ();
  17077. ;
  17078. return 0;
  17079. }
  17080. _ACEOF
  17081. rm -f conftest.$ac_objext conftest$ac_exeext
  17082. if { (ac_try="$ac_link"
  17083. case "(($ac_try" in
  17084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17085. *) ac_try_echo=$ac_try;;
  17086. esac
  17087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17088. (eval "$ac_link") 2>conftest.er1
  17089. ac_status=$?
  17090. grep -v '^ *+' conftest.er1 >conftest.err
  17091. rm -f conftest.er1
  17092. cat conftest.err >&5
  17093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17094. (exit $ac_status); } && {
  17095. test -z "$ac_cxx_werror_flag" ||
  17096. test ! -s conftest.err
  17097. } && test -s conftest$ac_exeext &&
  17098. $as_test_x conftest$ac_exeext; then
  17099. eval "$as_ac_var=yes"
  17100. else
  17101. echo "$as_me: failed program was:" >&5
  17102. sed 's/^/| /' conftest.$ac_ext >&5
  17103. eval "$as_ac_var=no"
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17106. conftest$ac_exeext conftest.$ac_ext
  17107. fi
  17108. ac_res=`eval echo '${'$as_ac_var'}'`
  17109. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17110. echo "${ECHO_T}$ac_res" >&6; }
  17111. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17112. cat >>confdefs.h <<_ACEOF
  17113. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17114. _ACEOF
  17115. fi
  17116. done
  17117. { echo "$as_me:$LINENO: checking for working mktime" >&5
  17118. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  17119. if test "${ac_cv_func_working_mktime+set}" = set; then
  17120. echo $ECHO_N "(cached) $ECHO_C" >&6
  17121. else
  17122. if test "$cross_compiling" = yes; then
  17123. ac_cv_func_working_mktime=no
  17124. else
  17125. cat >conftest.$ac_ext <<_ACEOF
  17126. /* confdefs.h. */
  17127. _ACEOF
  17128. cat confdefs.h >>conftest.$ac_ext
  17129. cat >>conftest.$ac_ext <<_ACEOF
  17130. /* end confdefs.h. */
  17131. /* Test program from Paul Eggert and Tony Leneis. */
  17132. #ifdef TIME_WITH_SYS_TIME
  17133. # include <sys/time.h>
  17134. # include <time.h>
  17135. #else
  17136. # ifdef HAVE_SYS_TIME_H
  17137. # include <sys/time.h>
  17138. # else
  17139. # include <time.h>
  17140. # endif
  17141. #endif
  17142. #include <limits.h>
  17143. #include <stdlib.h>
  17144. #ifdef HAVE_UNISTD_H
  17145. # include <unistd.h>
  17146. #endif
  17147. #ifndef HAVE_ALARM
  17148. # define alarm(X) /* empty */
  17149. #endif
  17150. /* Work around redefinition to rpl_putenv by other config tests. */
  17151. #undef putenv
  17152. static time_t time_t_max;
  17153. static time_t time_t_min;
  17154. /* Values we'll use to set the TZ environment variable. */
  17155. static char *tz_strings[] = {
  17156. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17157. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17158. };
  17159. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17160. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17161. Based on a problem report from Andreas Jaeger. */
  17162. static int
  17163. spring_forward_gap ()
  17164. {
  17165. /* glibc (up to about 1998-10-07) failed this test. */
  17166. struct tm tm;
  17167. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17168. instead of "TZ=America/Vancouver" in order to detect the bug even
  17169. on systems that don't support the Olson extension, or don't have the
  17170. full zoneinfo tables installed. */
  17171. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17172. tm.tm_year = 98;
  17173. tm.tm_mon = 3;
  17174. tm.tm_mday = 5;
  17175. tm.tm_hour = 2;
  17176. tm.tm_min = 0;
  17177. tm.tm_sec = 0;
  17178. tm.tm_isdst = -1;
  17179. return mktime (&tm) != (time_t) -1;
  17180. }
  17181. static int
  17182. mktime_test1 (now)
  17183. time_t now;
  17184. {
  17185. struct tm *lt;
  17186. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17187. }
  17188. static int
  17189. mktime_test (now)
  17190. time_t now;
  17191. {
  17192. return (mktime_test1 (now)
  17193. && mktime_test1 ((time_t) (time_t_max - now))
  17194. && mktime_test1 ((time_t) (time_t_min + now)));
  17195. }
  17196. static int
  17197. irix_6_4_bug ()
  17198. {
  17199. /* Based on code from Ariel Faigon. */
  17200. struct tm tm;
  17201. tm.tm_year = 96;
  17202. tm.tm_mon = 3;
  17203. tm.tm_mday = 0;
  17204. tm.tm_hour = 0;
  17205. tm.tm_min = 0;
  17206. tm.tm_sec = 0;
  17207. tm.tm_isdst = -1;
  17208. mktime (&tm);
  17209. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17210. }
  17211. static int
  17212. bigtime_test (j)
  17213. int j;
  17214. {
  17215. struct tm tm;
  17216. time_t now;
  17217. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17218. now = mktime (&tm);
  17219. if (now != (time_t) -1)
  17220. {
  17221. struct tm *lt = localtime (&now);
  17222. if (! (lt
  17223. && lt->tm_year == tm.tm_year
  17224. && lt->tm_mon == tm.tm_mon
  17225. && lt->tm_mday == tm.tm_mday
  17226. && lt->tm_hour == tm.tm_hour
  17227. && lt->tm_min == tm.tm_min
  17228. && lt->tm_sec == tm.tm_sec
  17229. && lt->tm_yday == tm.tm_yday
  17230. && lt->tm_wday == tm.tm_wday
  17231. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17232. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17233. return 0;
  17234. }
  17235. return 1;
  17236. }
  17237. static int
  17238. year_2050_test ()
  17239. {
  17240. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17241. ignoring leap seconds. */
  17242. unsigned long int answer = 2527315200UL;
  17243. struct tm tm;
  17244. time_t t;
  17245. tm.tm_year = 2050 - 1900;
  17246. tm.tm_mon = 2 - 1;
  17247. tm.tm_mday = 1;
  17248. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17249. tm.tm_isdst = -1;
  17250. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17251. instead of "TZ=America/Vancouver" in order to detect the bug even
  17252. on systems that don't support the Olson extension, or don't have the
  17253. full zoneinfo tables installed. */
  17254. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17255. t = mktime (&tm);
  17256. /* Check that the result is either a failure, or close enough
  17257. to the correct answer that we can assume the discrepancy is
  17258. due to leap seconds. */
  17259. return (t == (time_t) -1
  17260. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17261. }
  17262. int
  17263. main ()
  17264. {
  17265. time_t t, delta;
  17266. int i, j;
  17267. /* This test makes some buggy mktime implementations loop.
  17268. Give up after 60 seconds; a mktime slower than that
  17269. isn't worth using anyway. */
  17270. alarm (60);
  17271. for (;;)
  17272. {
  17273. t = (time_t_max << 1) + 1;
  17274. if (t <= time_t_max)
  17275. break;
  17276. time_t_max = t;
  17277. }
  17278. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17279. delta = time_t_max / 997; /* a suitable prime number */
  17280. for (i = 0; i < N_STRINGS; i++)
  17281. {
  17282. if (tz_strings[i])
  17283. putenv (tz_strings[i]);
  17284. for (t = 0; t <= time_t_max - delta; t += delta)
  17285. if (! mktime_test (t))
  17286. return 1;
  17287. if (! (mktime_test ((time_t) 1)
  17288. && mktime_test ((time_t) (60 * 60))
  17289. && mktime_test ((time_t) (60 * 60 * 24))))
  17290. return 1;
  17291. for (j = 1; ; j <<= 1)
  17292. if (! bigtime_test (j))
  17293. return 1;
  17294. else if (INT_MAX / 2 < j)
  17295. break;
  17296. if (! bigtime_test (INT_MAX))
  17297. return 1;
  17298. }
  17299. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17300. }
  17301. _ACEOF
  17302. rm -f conftest$ac_exeext
  17303. if { (ac_try="$ac_link"
  17304. case "(($ac_try" in
  17305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17306. *) ac_try_echo=$ac_try;;
  17307. esac
  17308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17309. (eval "$ac_link") 2>&5
  17310. ac_status=$?
  17311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17312. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17313. { (case "(($ac_try" in
  17314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17315. *) ac_try_echo=$ac_try;;
  17316. esac
  17317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17318. (eval "$ac_try") 2>&5
  17319. ac_status=$?
  17320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17321. (exit $ac_status); }; }; then
  17322. ac_cv_func_working_mktime=yes
  17323. else
  17324. echo "$as_me: program exited with status $ac_status" >&5
  17325. echo "$as_me: failed program was:" >&5
  17326. sed 's/^/| /' conftest.$ac_ext >&5
  17327. ( exit $ac_status )
  17328. ac_cv_func_working_mktime=no
  17329. fi
  17330. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17331. fi
  17332. fi
  17333. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17334. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17335. if test $ac_cv_func_working_mktime = no; then
  17336. case " $LIBOBJS " in
  17337. *" mktime.$ac_objext "* ) ;;
  17338. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17339. ;;
  17340. esac
  17341. fi
  17342. for ac_header in stdlib.h unistd.h
  17343. do
  17344. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17345. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17346. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17347. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17348. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17349. echo $ECHO_N "(cached) $ECHO_C" >&6
  17350. fi
  17351. ac_res=`eval echo '${'$as_ac_Header'}'`
  17352. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17353. echo "${ECHO_T}$ac_res" >&6; }
  17354. else
  17355. # Is the header compilable?
  17356. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17357. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17358. cat >conftest.$ac_ext <<_ACEOF
  17359. /* confdefs.h. */
  17360. _ACEOF
  17361. cat confdefs.h >>conftest.$ac_ext
  17362. cat >>conftest.$ac_ext <<_ACEOF
  17363. /* end confdefs.h. */
  17364. $ac_includes_default
  17365. #include <$ac_header>
  17366. _ACEOF
  17367. rm -f conftest.$ac_objext
  17368. if { (ac_try="$ac_compile"
  17369. case "(($ac_try" in
  17370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17371. *) ac_try_echo=$ac_try;;
  17372. esac
  17373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17374. (eval "$ac_compile") 2>conftest.er1
  17375. ac_status=$?
  17376. grep -v '^ *+' conftest.er1 >conftest.err
  17377. rm -f conftest.er1
  17378. cat conftest.err >&5
  17379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17380. (exit $ac_status); } && {
  17381. test -z "$ac_cxx_werror_flag" ||
  17382. test ! -s conftest.err
  17383. } && test -s conftest.$ac_objext; then
  17384. ac_header_compiler=yes
  17385. else
  17386. echo "$as_me: failed program was:" >&5
  17387. sed 's/^/| /' conftest.$ac_ext >&5
  17388. ac_header_compiler=no
  17389. fi
  17390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17391. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17392. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17393. # Is the header present?
  17394. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17395. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17396. cat >conftest.$ac_ext <<_ACEOF
  17397. /* confdefs.h. */
  17398. _ACEOF
  17399. cat confdefs.h >>conftest.$ac_ext
  17400. cat >>conftest.$ac_ext <<_ACEOF
  17401. /* end confdefs.h. */
  17402. #include <$ac_header>
  17403. _ACEOF
  17404. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17405. case "(($ac_try" in
  17406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17407. *) ac_try_echo=$ac_try;;
  17408. esac
  17409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17410. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17411. ac_status=$?
  17412. grep -v '^ *+' conftest.er1 >conftest.err
  17413. rm -f conftest.er1
  17414. cat conftest.err >&5
  17415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17416. (exit $ac_status); } >/dev/null && {
  17417. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17418. test ! -s conftest.err
  17419. }; then
  17420. ac_header_preproc=yes
  17421. else
  17422. echo "$as_me: failed program was:" >&5
  17423. sed 's/^/| /' conftest.$ac_ext >&5
  17424. ac_header_preproc=no
  17425. fi
  17426. rm -f conftest.err conftest.$ac_ext
  17427. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17428. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17429. # So? What about this header?
  17430. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17431. yes:no: )
  17432. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17433. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17434. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17435. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17436. ac_header_preproc=yes
  17437. ;;
  17438. no:yes:* )
  17439. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17440. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17441. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17442. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17443. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17444. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17445. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17446. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17447. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17448. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17449. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17450. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17451. ( cat <<\_ASBOX
  17452. ## ----------------------------------------------- ##
  17453. ## Report this to t-tujikawa@users.sourceforge.net ##
  17454. ## ----------------------------------------------- ##
  17455. _ASBOX
  17456. ) | sed "s/^/$as_me: WARNING: /" >&2
  17457. ;;
  17458. esac
  17459. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17460. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17461. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17462. echo $ECHO_N "(cached) $ECHO_C" >&6
  17463. else
  17464. eval "$as_ac_Header=\$ac_header_preproc"
  17465. fi
  17466. ac_res=`eval echo '${'$as_ac_Header'}'`
  17467. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17468. echo "${ECHO_T}$ac_res" >&6; }
  17469. fi
  17470. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17471. cat >>confdefs.h <<_ACEOF
  17472. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17473. _ACEOF
  17474. fi
  17475. done
  17476. for ac_func in getpagesize
  17477. do
  17478. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17479. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17480. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17481. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17482. echo $ECHO_N "(cached) $ECHO_C" >&6
  17483. else
  17484. cat >conftest.$ac_ext <<_ACEOF
  17485. /* confdefs.h. */
  17486. _ACEOF
  17487. cat confdefs.h >>conftest.$ac_ext
  17488. cat >>conftest.$ac_ext <<_ACEOF
  17489. /* end confdefs.h. */
  17490. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17491. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17492. #define $ac_func innocuous_$ac_func
  17493. /* System header to define __stub macros and hopefully few prototypes,
  17494. which can conflict with char $ac_func (); below.
  17495. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17496. <limits.h> exists even on freestanding compilers. */
  17497. #ifdef __STDC__
  17498. # include <limits.h>
  17499. #else
  17500. # include <assert.h>
  17501. #endif
  17502. #undef $ac_func
  17503. /* Override any GCC internal prototype to avoid an error.
  17504. Use char because int might match the return type of a GCC
  17505. builtin and then its argument prototype would still apply. */
  17506. #ifdef __cplusplus
  17507. extern "C"
  17508. #endif
  17509. char $ac_func ();
  17510. /* The GNU C library defines this for functions which it implements
  17511. to always fail with ENOSYS. Some functions are actually named
  17512. something starting with __ and the normal name is an alias. */
  17513. #if defined __stub_$ac_func || defined __stub___$ac_func
  17514. choke me
  17515. #endif
  17516. int
  17517. main ()
  17518. {
  17519. return $ac_func ();
  17520. ;
  17521. return 0;
  17522. }
  17523. _ACEOF
  17524. rm -f conftest.$ac_objext conftest$ac_exeext
  17525. if { (ac_try="$ac_link"
  17526. case "(($ac_try" in
  17527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17528. *) ac_try_echo=$ac_try;;
  17529. esac
  17530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17531. (eval "$ac_link") 2>conftest.er1
  17532. ac_status=$?
  17533. grep -v '^ *+' conftest.er1 >conftest.err
  17534. rm -f conftest.er1
  17535. cat conftest.err >&5
  17536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17537. (exit $ac_status); } && {
  17538. test -z "$ac_cxx_werror_flag" ||
  17539. test ! -s conftest.err
  17540. } && test -s conftest$ac_exeext &&
  17541. $as_test_x conftest$ac_exeext; then
  17542. eval "$as_ac_var=yes"
  17543. else
  17544. echo "$as_me: failed program was:" >&5
  17545. sed 's/^/| /' conftest.$ac_ext >&5
  17546. eval "$as_ac_var=no"
  17547. fi
  17548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17549. conftest$ac_exeext conftest.$ac_ext
  17550. fi
  17551. ac_res=`eval echo '${'$as_ac_var'}'`
  17552. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17553. echo "${ECHO_T}$ac_res" >&6; }
  17554. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17555. cat >>confdefs.h <<_ACEOF
  17556. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17557. _ACEOF
  17558. fi
  17559. done
  17560. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17561. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17562. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17563. echo $ECHO_N "(cached) $ECHO_C" >&6
  17564. else
  17565. if test "$cross_compiling" = yes; then
  17566. ac_cv_func_mmap_fixed_mapped=no
  17567. else
  17568. cat >conftest.$ac_ext <<_ACEOF
  17569. /* confdefs.h. */
  17570. _ACEOF
  17571. cat confdefs.h >>conftest.$ac_ext
  17572. cat >>conftest.$ac_ext <<_ACEOF
  17573. /* end confdefs.h. */
  17574. $ac_includes_default
  17575. /* malloc might have been renamed as rpl_malloc. */
  17576. #undef malloc
  17577. /* Thanks to Mike Haertel and Jim Avera for this test.
  17578. Here is a matrix of mmap possibilities:
  17579. mmap private not fixed
  17580. mmap private fixed at somewhere currently unmapped
  17581. mmap private fixed at somewhere already mapped
  17582. mmap shared not fixed
  17583. mmap shared fixed at somewhere currently unmapped
  17584. mmap shared fixed at somewhere already mapped
  17585. For private mappings, we should verify that changes cannot be read()
  17586. back from the file, nor mmap's back from the file at a different
  17587. address. (There have been systems where private was not correctly
  17588. implemented like the infamous i386 svr4.0, and systems where the
  17589. VM page cache was not coherent with the file system buffer cache
  17590. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17591. For shared mappings, we should conversely verify that changes get
  17592. propagated back to all the places they're supposed to be.
  17593. Grep wants private fixed already mapped.
  17594. The main things grep needs to know about mmap are:
  17595. * does it exist and is it safe to write into the mmap'd area
  17596. * how to use it (BSD variants) */
  17597. #include <fcntl.h>
  17598. #include <sys/mman.h>
  17599. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17600. char *malloc ();
  17601. #endif
  17602. /* This mess was copied from the GNU getpagesize.h. */
  17603. #ifndef HAVE_GETPAGESIZE
  17604. /* Assume that all systems that can run configure have sys/param.h. */
  17605. # ifndef HAVE_SYS_PARAM_H
  17606. # define HAVE_SYS_PARAM_H 1
  17607. # endif
  17608. # ifdef _SC_PAGESIZE
  17609. # define getpagesize() sysconf(_SC_PAGESIZE)
  17610. # else /* no _SC_PAGESIZE */
  17611. # ifdef HAVE_SYS_PARAM_H
  17612. # include <sys/param.h>
  17613. # ifdef EXEC_PAGESIZE
  17614. # define getpagesize() EXEC_PAGESIZE
  17615. # else /* no EXEC_PAGESIZE */
  17616. # ifdef NBPG
  17617. # define getpagesize() NBPG * CLSIZE
  17618. # ifndef CLSIZE
  17619. # define CLSIZE 1
  17620. # endif /* no CLSIZE */
  17621. # else /* no NBPG */
  17622. # ifdef NBPC
  17623. # define getpagesize() NBPC
  17624. # else /* no NBPC */
  17625. # ifdef PAGESIZE
  17626. # define getpagesize() PAGESIZE
  17627. # endif /* PAGESIZE */
  17628. # endif /* no NBPC */
  17629. # endif /* no NBPG */
  17630. # endif /* no EXEC_PAGESIZE */
  17631. # else /* no HAVE_SYS_PARAM_H */
  17632. # define getpagesize() 8192 /* punt totally */
  17633. # endif /* no HAVE_SYS_PARAM_H */
  17634. # endif /* no _SC_PAGESIZE */
  17635. #endif /* no HAVE_GETPAGESIZE */
  17636. int
  17637. main ()
  17638. {
  17639. char *data, *data2, *data3;
  17640. int i, pagesize;
  17641. int fd;
  17642. pagesize = getpagesize ();
  17643. /* First, make a file with some known garbage in it. */
  17644. data = (char *) malloc (pagesize);
  17645. if (!data)
  17646. return 1;
  17647. for (i = 0; i < pagesize; ++i)
  17648. *(data + i) = rand ();
  17649. umask (0);
  17650. fd = creat ("conftest.mmap", 0600);
  17651. if (fd < 0)
  17652. return 1;
  17653. if (write (fd, data, pagesize) != pagesize)
  17654. return 1;
  17655. close (fd);
  17656. /* Next, try to mmap the file at a fixed address which already has
  17657. something else allocated at it. If we can, also make sure that
  17658. we see the same garbage. */
  17659. fd = open ("conftest.mmap", O_RDWR);
  17660. if (fd < 0)
  17661. return 1;
  17662. data2 = (char *) malloc (2 * pagesize);
  17663. if (!data2)
  17664. return 1;
  17665. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17666. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17667. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17668. return 1;
  17669. for (i = 0; i < pagesize; ++i)
  17670. if (*(data + i) != *(data2 + i))
  17671. return 1;
  17672. /* Finally, make sure that changes to the mapped area do not
  17673. percolate back to the file as seen by read(). (This is a bug on
  17674. some variants of i386 svr4.0.) */
  17675. for (i = 0; i < pagesize; ++i)
  17676. *(data2 + i) = *(data2 + i) + 1;
  17677. data3 = (char *) malloc (pagesize);
  17678. if (!data3)
  17679. return 1;
  17680. if (read (fd, data3, pagesize) != pagesize)
  17681. return 1;
  17682. for (i = 0; i < pagesize; ++i)
  17683. if (*(data + i) != *(data3 + i))
  17684. return 1;
  17685. close (fd);
  17686. return 0;
  17687. }
  17688. _ACEOF
  17689. rm -f conftest$ac_exeext
  17690. if { (ac_try="$ac_link"
  17691. case "(($ac_try" in
  17692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17693. *) ac_try_echo=$ac_try;;
  17694. esac
  17695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17696. (eval "$ac_link") 2>&5
  17697. ac_status=$?
  17698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17699. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17700. { (case "(($ac_try" in
  17701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17702. *) ac_try_echo=$ac_try;;
  17703. esac
  17704. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17705. (eval "$ac_try") 2>&5
  17706. ac_status=$?
  17707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17708. (exit $ac_status); }; }; then
  17709. ac_cv_func_mmap_fixed_mapped=yes
  17710. else
  17711. echo "$as_me: program exited with status $ac_status" >&5
  17712. echo "$as_me: failed program was:" >&5
  17713. sed 's/^/| /' conftest.$ac_ext >&5
  17714. ( exit $ac_status )
  17715. ac_cv_func_mmap_fixed_mapped=no
  17716. fi
  17717. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17718. fi
  17719. fi
  17720. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17721. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17722. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17723. cat >>confdefs.h <<\_ACEOF
  17724. #define HAVE_MMAP 1
  17725. _ACEOF
  17726. fi
  17727. rm -f conftest.mmap
  17728. for ac_header in sys/select.h sys/socket.h
  17729. do
  17730. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17731. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17732. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17733. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17734. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17735. echo $ECHO_N "(cached) $ECHO_C" >&6
  17736. fi
  17737. ac_res=`eval echo '${'$as_ac_Header'}'`
  17738. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17739. echo "${ECHO_T}$ac_res" >&6; }
  17740. else
  17741. # Is the header compilable?
  17742. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17743. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17744. cat >conftest.$ac_ext <<_ACEOF
  17745. /* confdefs.h. */
  17746. _ACEOF
  17747. cat confdefs.h >>conftest.$ac_ext
  17748. cat >>conftest.$ac_ext <<_ACEOF
  17749. /* end confdefs.h. */
  17750. $ac_includes_default
  17751. #include <$ac_header>
  17752. _ACEOF
  17753. rm -f conftest.$ac_objext
  17754. if { (ac_try="$ac_compile"
  17755. case "(($ac_try" in
  17756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17757. *) ac_try_echo=$ac_try;;
  17758. esac
  17759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17760. (eval "$ac_compile") 2>conftest.er1
  17761. ac_status=$?
  17762. grep -v '^ *+' conftest.er1 >conftest.err
  17763. rm -f conftest.er1
  17764. cat conftest.err >&5
  17765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17766. (exit $ac_status); } && {
  17767. test -z "$ac_cxx_werror_flag" ||
  17768. test ! -s conftest.err
  17769. } && test -s conftest.$ac_objext; then
  17770. ac_header_compiler=yes
  17771. else
  17772. echo "$as_me: failed program was:" >&5
  17773. sed 's/^/| /' conftest.$ac_ext >&5
  17774. ac_header_compiler=no
  17775. fi
  17776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17777. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17778. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17779. # Is the header present?
  17780. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17781. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17782. cat >conftest.$ac_ext <<_ACEOF
  17783. /* confdefs.h. */
  17784. _ACEOF
  17785. cat confdefs.h >>conftest.$ac_ext
  17786. cat >>conftest.$ac_ext <<_ACEOF
  17787. /* end confdefs.h. */
  17788. #include <$ac_header>
  17789. _ACEOF
  17790. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17791. case "(($ac_try" in
  17792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17793. *) ac_try_echo=$ac_try;;
  17794. esac
  17795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17796. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17797. ac_status=$?
  17798. grep -v '^ *+' conftest.er1 >conftest.err
  17799. rm -f conftest.er1
  17800. cat conftest.err >&5
  17801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17802. (exit $ac_status); } >/dev/null && {
  17803. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17804. test ! -s conftest.err
  17805. }; then
  17806. ac_header_preproc=yes
  17807. else
  17808. echo "$as_me: failed program was:" >&5
  17809. sed 's/^/| /' conftest.$ac_ext >&5
  17810. ac_header_preproc=no
  17811. fi
  17812. rm -f conftest.err conftest.$ac_ext
  17813. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17814. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17815. # So? What about this header?
  17816. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17817. yes:no: )
  17818. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17819. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17820. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17821. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17822. ac_header_preproc=yes
  17823. ;;
  17824. no:yes:* )
  17825. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17826. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17827. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17828. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17829. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17830. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17831. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17832. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17833. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17834. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17835. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17836. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17837. ( cat <<\_ASBOX
  17838. ## ----------------------------------------------- ##
  17839. ## Report this to t-tujikawa@users.sourceforge.net ##
  17840. ## ----------------------------------------------- ##
  17841. _ASBOX
  17842. ) | sed "s/^/$as_me: WARNING: /" >&2
  17843. ;;
  17844. esac
  17845. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17846. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17848. echo $ECHO_N "(cached) $ECHO_C" >&6
  17849. else
  17850. eval "$as_ac_Header=\$ac_header_preproc"
  17851. fi
  17852. ac_res=`eval echo '${'$as_ac_Header'}'`
  17853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17854. echo "${ECHO_T}$ac_res" >&6; }
  17855. fi
  17856. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17857. cat >>confdefs.h <<_ACEOF
  17858. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17859. _ACEOF
  17860. fi
  17861. done
  17862. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17863. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17864. if test "${ac_cv_func_select_args+set}" = set; then
  17865. echo $ECHO_N "(cached) $ECHO_C" >&6
  17866. else
  17867. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17868. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17869. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17870. cat >conftest.$ac_ext <<_ACEOF
  17871. /* confdefs.h. */
  17872. _ACEOF
  17873. cat confdefs.h >>conftest.$ac_ext
  17874. cat >>conftest.$ac_ext <<_ACEOF
  17875. /* end confdefs.h. */
  17876. $ac_includes_default
  17877. #ifdef HAVE_SYS_SELECT_H
  17878. # include <sys/select.h>
  17879. #endif
  17880. #ifdef HAVE_SYS_SOCKET_H
  17881. # include <sys/socket.h>
  17882. #endif
  17883. int
  17884. main ()
  17885. {
  17886. extern int select ($ac_arg1,
  17887. $ac_arg234, $ac_arg234, $ac_arg234,
  17888. $ac_arg5);
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. rm -f conftest.$ac_objext
  17894. if { (ac_try="$ac_compile"
  17895. case "(($ac_try" in
  17896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17897. *) ac_try_echo=$ac_try;;
  17898. esac
  17899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17900. (eval "$ac_compile") 2>conftest.er1
  17901. ac_status=$?
  17902. grep -v '^ *+' conftest.er1 >conftest.err
  17903. rm -f conftest.er1
  17904. cat conftest.err >&5
  17905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17906. (exit $ac_status); } && {
  17907. test -z "$ac_cxx_werror_flag" ||
  17908. test ! -s conftest.err
  17909. } && test -s conftest.$ac_objext; then
  17910. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17911. else
  17912. echo "$as_me: failed program was:" >&5
  17913. sed 's/^/| /' conftest.$ac_ext >&5
  17914. fi
  17915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17916. done
  17917. done
  17918. done
  17919. # Provide a safe default value.
  17920. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17921. fi
  17922. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17923. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17924. ac_save_IFS=$IFS; IFS=','
  17925. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17926. IFS=$ac_save_IFS
  17927. shift
  17928. cat >>confdefs.h <<_ACEOF
  17929. #define SELECT_TYPE_ARG1 $1
  17930. _ACEOF
  17931. cat >>confdefs.h <<_ACEOF
  17932. #define SELECT_TYPE_ARG234 ($2)
  17933. _ACEOF
  17934. cat >>confdefs.h <<_ACEOF
  17935. #define SELECT_TYPE_ARG5 ($3)
  17936. _ACEOF
  17937. rm -f conftest*
  17938. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17939. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17940. if test "${ac_cv_type_signal+set}" = set; then
  17941. echo $ECHO_N "(cached) $ECHO_C" >&6
  17942. else
  17943. cat >conftest.$ac_ext <<_ACEOF
  17944. /* confdefs.h. */
  17945. _ACEOF
  17946. cat confdefs.h >>conftest.$ac_ext
  17947. cat >>conftest.$ac_ext <<_ACEOF
  17948. /* end confdefs.h. */
  17949. #include <sys/types.h>
  17950. #include <signal.h>
  17951. int
  17952. main ()
  17953. {
  17954. return *(signal (0, 0)) (0) == 1;
  17955. ;
  17956. return 0;
  17957. }
  17958. _ACEOF
  17959. rm -f conftest.$ac_objext
  17960. if { (ac_try="$ac_compile"
  17961. case "(($ac_try" in
  17962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17963. *) ac_try_echo=$ac_try;;
  17964. esac
  17965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17966. (eval "$ac_compile") 2>conftest.er1
  17967. ac_status=$?
  17968. grep -v '^ *+' conftest.er1 >conftest.err
  17969. rm -f conftest.er1
  17970. cat conftest.err >&5
  17971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17972. (exit $ac_status); } && {
  17973. test -z "$ac_cxx_werror_flag" ||
  17974. test ! -s conftest.err
  17975. } && test -s conftest.$ac_objext; then
  17976. ac_cv_type_signal=int
  17977. else
  17978. echo "$as_me: failed program was:" >&5
  17979. sed 's/^/| /' conftest.$ac_ext >&5
  17980. ac_cv_type_signal=void
  17981. fi
  17982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17983. fi
  17984. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17985. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17986. cat >>confdefs.h <<_ACEOF
  17987. #define RETSIGTYPE $ac_cv_type_signal
  17988. _ACEOF
  17989. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17990. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17991. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17992. echo $ECHO_N "(cached) $ECHO_C" >&6
  17993. else
  17994. rm -f conftest.sym conftest.file
  17995. echo >conftest.file
  17996. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17997. if test "$cross_compiling" = yes; then
  17998. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17999. else
  18000. cat >conftest.$ac_ext <<_ACEOF
  18001. /* confdefs.h. */
  18002. _ACEOF
  18003. cat confdefs.h >>conftest.$ac_ext
  18004. cat >>conftest.$ac_ext <<_ACEOF
  18005. /* end confdefs.h. */
  18006. $ac_includes_default
  18007. int
  18008. main ()
  18009. {
  18010. struct stat sbuf;
  18011. /* Linux will dereference the symlink and fail.
  18012. That is better in the sense that it means we will not
  18013. have to compile and use the lstat wrapper. */
  18014. return lstat ("conftest.sym/", &sbuf) == 0;
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. rm -f conftest$ac_exeext
  18020. if { (ac_try="$ac_link"
  18021. case "(($ac_try" in
  18022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18023. *) ac_try_echo=$ac_try;;
  18024. esac
  18025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18026. (eval "$ac_link") 2>&5
  18027. ac_status=$?
  18028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18029. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18030. { (case "(($ac_try" in
  18031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18032. *) ac_try_echo=$ac_try;;
  18033. esac
  18034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18035. (eval "$ac_try") 2>&5
  18036. ac_status=$?
  18037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18038. (exit $ac_status); }; }; then
  18039. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18040. else
  18041. echo "$as_me: program exited with status $ac_status" >&5
  18042. echo "$as_me: failed program was:" >&5
  18043. sed 's/^/| /' conftest.$ac_ext >&5
  18044. ( exit $ac_status )
  18045. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18046. fi
  18047. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18048. fi
  18049. else
  18050. # If the `ln -s' command failed, then we probably don't even
  18051. # have an lstat function.
  18052. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18053. fi
  18054. rm -f conftest.sym conftest.file
  18055. fi
  18056. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18057. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18058. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18059. cat >>confdefs.h <<_ACEOF
  18060. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18061. _ACEOF
  18062. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18063. case " $LIBOBJS " in
  18064. *" lstat.$ac_objext "* ) ;;
  18065. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18066. ;;
  18067. esac
  18068. fi
  18069. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18070. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  18071. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18072. echo $ECHO_N "(cached) $ECHO_C" >&6
  18073. else
  18074. if test "$cross_compiling" = yes; then
  18075. ac_cv_func_stat_empty_string_bug=yes
  18076. else
  18077. cat >conftest.$ac_ext <<_ACEOF
  18078. /* confdefs.h. */
  18079. _ACEOF
  18080. cat confdefs.h >>conftest.$ac_ext
  18081. cat >>conftest.$ac_ext <<_ACEOF
  18082. /* end confdefs.h. */
  18083. $ac_includes_default
  18084. int
  18085. main ()
  18086. {
  18087. struct stat sbuf;
  18088. return stat ("", &sbuf) == 0;
  18089. ;
  18090. return 0;
  18091. }
  18092. _ACEOF
  18093. rm -f conftest$ac_exeext
  18094. if { (ac_try="$ac_link"
  18095. case "(($ac_try" in
  18096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18097. *) ac_try_echo=$ac_try;;
  18098. esac
  18099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18100. (eval "$ac_link") 2>&5
  18101. ac_status=$?
  18102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18103. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18104. { (case "(($ac_try" in
  18105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18106. *) ac_try_echo=$ac_try;;
  18107. esac
  18108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18109. (eval "$ac_try") 2>&5
  18110. ac_status=$?
  18111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18112. (exit $ac_status); }; }; then
  18113. ac_cv_func_stat_empty_string_bug=no
  18114. else
  18115. echo "$as_me: program exited with status $ac_status" >&5
  18116. echo "$as_me: failed program was:" >&5
  18117. sed 's/^/| /' conftest.$ac_ext >&5
  18118. ( exit $ac_status )
  18119. ac_cv_func_stat_empty_string_bug=yes
  18120. fi
  18121. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18122. fi
  18123. fi
  18124. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18125. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  18126. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18127. case " $LIBOBJS " in
  18128. *" stat.$ac_objext "* ) ;;
  18129. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18130. ;;
  18131. esac
  18132. cat >>confdefs.h <<_ACEOF
  18133. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18134. _ACEOF
  18135. fi
  18136. for ac_func in strftime
  18137. do
  18138. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18139. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18140. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18141. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18142. echo $ECHO_N "(cached) $ECHO_C" >&6
  18143. else
  18144. cat >conftest.$ac_ext <<_ACEOF
  18145. /* confdefs.h. */
  18146. _ACEOF
  18147. cat confdefs.h >>conftest.$ac_ext
  18148. cat >>conftest.$ac_ext <<_ACEOF
  18149. /* end confdefs.h. */
  18150. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18151. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18152. #define $ac_func innocuous_$ac_func
  18153. /* System header to define __stub macros and hopefully few prototypes,
  18154. which can conflict with char $ac_func (); below.
  18155. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18156. <limits.h> exists even on freestanding compilers. */
  18157. #ifdef __STDC__
  18158. # include <limits.h>
  18159. #else
  18160. # include <assert.h>
  18161. #endif
  18162. #undef $ac_func
  18163. /* Override any GCC internal prototype to avoid an error.
  18164. Use char because int might match the return type of a GCC
  18165. builtin and then its argument prototype would still apply. */
  18166. #ifdef __cplusplus
  18167. extern "C"
  18168. #endif
  18169. char $ac_func ();
  18170. /* The GNU C library defines this for functions which it implements
  18171. to always fail with ENOSYS. Some functions are actually named
  18172. something starting with __ and the normal name is an alias. */
  18173. #if defined __stub_$ac_func || defined __stub___$ac_func
  18174. choke me
  18175. #endif
  18176. int
  18177. main ()
  18178. {
  18179. return $ac_func ();
  18180. ;
  18181. return 0;
  18182. }
  18183. _ACEOF
  18184. rm -f conftest.$ac_objext conftest$ac_exeext
  18185. if { (ac_try="$ac_link"
  18186. case "(($ac_try" in
  18187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18188. *) ac_try_echo=$ac_try;;
  18189. esac
  18190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18191. (eval "$ac_link") 2>conftest.er1
  18192. ac_status=$?
  18193. grep -v '^ *+' conftest.er1 >conftest.err
  18194. rm -f conftest.er1
  18195. cat conftest.err >&5
  18196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18197. (exit $ac_status); } && {
  18198. test -z "$ac_cxx_werror_flag" ||
  18199. test ! -s conftest.err
  18200. } && test -s conftest$ac_exeext &&
  18201. $as_test_x conftest$ac_exeext; then
  18202. eval "$as_ac_var=yes"
  18203. else
  18204. echo "$as_me: failed program was:" >&5
  18205. sed 's/^/| /' conftest.$ac_ext >&5
  18206. eval "$as_ac_var=no"
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18209. conftest$ac_exeext conftest.$ac_ext
  18210. fi
  18211. ac_res=`eval echo '${'$as_ac_var'}'`
  18212. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18213. echo "${ECHO_T}$ac_res" >&6; }
  18214. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18215. cat >>confdefs.h <<_ACEOF
  18216. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18217. _ACEOF
  18218. else
  18219. # strftime is in -lintl on SCO UNIX.
  18220. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18221. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18222. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18223. echo $ECHO_N "(cached) $ECHO_C" >&6
  18224. else
  18225. ac_check_lib_save_LIBS=$LIBS
  18226. LIBS="-lintl $LIBS"
  18227. cat >conftest.$ac_ext <<_ACEOF
  18228. /* confdefs.h. */
  18229. _ACEOF
  18230. cat confdefs.h >>conftest.$ac_ext
  18231. cat >>conftest.$ac_ext <<_ACEOF
  18232. /* end confdefs.h. */
  18233. /* Override any GCC internal prototype to avoid an error.
  18234. Use char because int might match the return type of a GCC
  18235. builtin and then its argument prototype would still apply. */
  18236. #ifdef __cplusplus
  18237. extern "C"
  18238. #endif
  18239. char strftime ();
  18240. int
  18241. main ()
  18242. {
  18243. return strftime ();
  18244. ;
  18245. return 0;
  18246. }
  18247. _ACEOF
  18248. rm -f conftest.$ac_objext conftest$ac_exeext
  18249. if { (ac_try="$ac_link"
  18250. case "(($ac_try" in
  18251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18252. *) ac_try_echo=$ac_try;;
  18253. esac
  18254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18255. (eval "$ac_link") 2>conftest.er1
  18256. ac_status=$?
  18257. grep -v '^ *+' conftest.er1 >conftest.err
  18258. rm -f conftest.er1
  18259. cat conftest.err >&5
  18260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18261. (exit $ac_status); } && {
  18262. test -z "$ac_cxx_werror_flag" ||
  18263. test ! -s conftest.err
  18264. } && test -s conftest$ac_exeext &&
  18265. $as_test_x conftest$ac_exeext; then
  18266. ac_cv_lib_intl_strftime=yes
  18267. else
  18268. echo "$as_me: failed program was:" >&5
  18269. sed 's/^/| /' conftest.$ac_ext >&5
  18270. ac_cv_lib_intl_strftime=no
  18271. fi
  18272. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18273. conftest$ac_exeext conftest.$ac_ext
  18274. LIBS=$ac_check_lib_save_LIBS
  18275. fi
  18276. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18277. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18278. if test $ac_cv_lib_intl_strftime = yes; then
  18279. cat >>confdefs.h <<\_ACEOF
  18280. #define HAVE_STRFTIME 1
  18281. _ACEOF
  18282. LIBS="-lintl $LIBS"
  18283. fi
  18284. fi
  18285. done
  18286. for ac_func in vprintf
  18287. do
  18288. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18289. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18290. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18291. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18292. echo $ECHO_N "(cached) $ECHO_C" >&6
  18293. else
  18294. cat >conftest.$ac_ext <<_ACEOF
  18295. /* confdefs.h. */
  18296. _ACEOF
  18297. cat confdefs.h >>conftest.$ac_ext
  18298. cat >>conftest.$ac_ext <<_ACEOF
  18299. /* end confdefs.h. */
  18300. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18301. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18302. #define $ac_func innocuous_$ac_func
  18303. /* System header to define __stub macros and hopefully few prototypes,
  18304. which can conflict with char $ac_func (); below.
  18305. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18306. <limits.h> exists even on freestanding compilers. */
  18307. #ifdef __STDC__
  18308. # include <limits.h>
  18309. #else
  18310. # include <assert.h>
  18311. #endif
  18312. #undef $ac_func
  18313. /* Override any GCC internal prototype to avoid an error.
  18314. Use char because int might match the return type of a GCC
  18315. builtin and then its argument prototype would still apply. */
  18316. #ifdef __cplusplus
  18317. extern "C"
  18318. #endif
  18319. char $ac_func ();
  18320. /* The GNU C library defines this for functions which it implements
  18321. to always fail with ENOSYS. Some functions are actually named
  18322. something starting with __ and the normal name is an alias. */
  18323. #if defined __stub_$ac_func || defined __stub___$ac_func
  18324. choke me
  18325. #endif
  18326. int
  18327. main ()
  18328. {
  18329. return $ac_func ();
  18330. ;
  18331. return 0;
  18332. }
  18333. _ACEOF
  18334. rm -f conftest.$ac_objext conftest$ac_exeext
  18335. if { (ac_try="$ac_link"
  18336. case "(($ac_try" in
  18337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18338. *) ac_try_echo=$ac_try;;
  18339. esac
  18340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18341. (eval "$ac_link") 2>conftest.er1
  18342. ac_status=$?
  18343. grep -v '^ *+' conftest.er1 >conftest.err
  18344. rm -f conftest.er1
  18345. cat conftest.err >&5
  18346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18347. (exit $ac_status); } && {
  18348. test -z "$ac_cxx_werror_flag" ||
  18349. test ! -s conftest.err
  18350. } && test -s conftest$ac_exeext &&
  18351. $as_test_x conftest$ac_exeext; then
  18352. eval "$as_ac_var=yes"
  18353. else
  18354. echo "$as_me: failed program was:" >&5
  18355. sed 's/^/| /' conftest.$ac_ext >&5
  18356. eval "$as_ac_var=no"
  18357. fi
  18358. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18359. conftest$ac_exeext conftest.$ac_ext
  18360. fi
  18361. ac_res=`eval echo '${'$as_ac_var'}'`
  18362. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18363. echo "${ECHO_T}$ac_res" >&6; }
  18364. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18365. cat >>confdefs.h <<_ACEOF
  18366. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18367. _ACEOF
  18368. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18369. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18370. if test "${ac_cv_func__doprnt+set}" = set; then
  18371. echo $ECHO_N "(cached) $ECHO_C" >&6
  18372. else
  18373. cat >conftest.$ac_ext <<_ACEOF
  18374. /* confdefs.h. */
  18375. _ACEOF
  18376. cat confdefs.h >>conftest.$ac_ext
  18377. cat >>conftest.$ac_ext <<_ACEOF
  18378. /* end confdefs.h. */
  18379. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18380. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18381. #define _doprnt innocuous__doprnt
  18382. /* System header to define __stub macros and hopefully few prototypes,
  18383. which can conflict with char _doprnt (); below.
  18384. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18385. <limits.h> exists even on freestanding compilers. */
  18386. #ifdef __STDC__
  18387. # include <limits.h>
  18388. #else
  18389. # include <assert.h>
  18390. #endif
  18391. #undef _doprnt
  18392. /* Override any GCC internal prototype to avoid an error.
  18393. Use char because int might match the return type of a GCC
  18394. builtin and then its argument prototype would still apply. */
  18395. #ifdef __cplusplus
  18396. extern "C"
  18397. #endif
  18398. char _doprnt ();
  18399. /* The GNU C library defines this for functions which it implements
  18400. to always fail with ENOSYS. Some functions are actually named
  18401. something starting with __ and the normal name is an alias. */
  18402. #if defined __stub__doprnt || defined __stub____doprnt
  18403. choke me
  18404. #endif
  18405. int
  18406. main ()
  18407. {
  18408. return _doprnt ();
  18409. ;
  18410. return 0;
  18411. }
  18412. _ACEOF
  18413. rm -f conftest.$ac_objext conftest$ac_exeext
  18414. if { (ac_try="$ac_link"
  18415. case "(($ac_try" in
  18416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18417. *) ac_try_echo=$ac_try;;
  18418. esac
  18419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18420. (eval "$ac_link") 2>conftest.er1
  18421. ac_status=$?
  18422. grep -v '^ *+' conftest.er1 >conftest.err
  18423. rm -f conftest.er1
  18424. cat conftest.err >&5
  18425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18426. (exit $ac_status); } && {
  18427. test -z "$ac_cxx_werror_flag" ||
  18428. test ! -s conftest.err
  18429. } && test -s conftest$ac_exeext &&
  18430. $as_test_x conftest$ac_exeext; then
  18431. ac_cv_func__doprnt=yes
  18432. else
  18433. echo "$as_me: failed program was:" >&5
  18434. sed 's/^/| /' conftest.$ac_ext >&5
  18435. ac_cv_func__doprnt=no
  18436. fi
  18437. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18438. conftest$ac_exeext conftest.$ac_ext
  18439. fi
  18440. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18441. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18442. if test $ac_cv_func__doprnt = yes; then
  18443. cat >>confdefs.h <<\_ACEOF
  18444. #define HAVE_DOPRNT 1
  18445. _ACEOF
  18446. fi
  18447. fi
  18448. done
  18449. for ac_func in __argz_count \
  18450. __argz_next \
  18451. __argz_stringify \
  18452. atexit \
  18453. daemon \
  18454. ftruncate \
  18455. getcwd \
  18456. gethostbyaddr \
  18457. gethostbyname \
  18458. getpagesize \
  18459. inet_ntoa \
  18460. memchr \
  18461. memmove \
  18462. mempcpy \
  18463. memset \
  18464. mkdir \
  18465. munmap \
  18466. nl_langinfo \
  18467. posix_memalign \
  18468. putenv \
  18469. rmdir \
  18470. select \
  18471. setlocale \
  18472. sleep \
  18473. socket \
  18474. stpcpy \
  18475. strcasecmp \
  18476. strchr \
  18477. strcspn \
  18478. strdup \
  18479. strerror \
  18480. strncasecmp \
  18481. strstr \
  18482. strtol \
  18483. strtoul \
  18484. strtoull \
  18485. tzset \
  18486. unsetenv \
  18487. usleep
  18488. do
  18489. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18490. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18491. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18492. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18493. echo $ECHO_N "(cached) $ECHO_C" >&6
  18494. else
  18495. cat >conftest.$ac_ext <<_ACEOF
  18496. /* confdefs.h. */
  18497. _ACEOF
  18498. cat confdefs.h >>conftest.$ac_ext
  18499. cat >>conftest.$ac_ext <<_ACEOF
  18500. /* end confdefs.h. */
  18501. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18502. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18503. #define $ac_func innocuous_$ac_func
  18504. /* System header to define __stub macros and hopefully few prototypes,
  18505. which can conflict with char $ac_func (); below.
  18506. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18507. <limits.h> exists even on freestanding compilers. */
  18508. #ifdef __STDC__
  18509. # include <limits.h>
  18510. #else
  18511. # include <assert.h>
  18512. #endif
  18513. #undef $ac_func
  18514. /* Override any GCC internal prototype to avoid an error.
  18515. Use char because int might match the return type of a GCC
  18516. builtin and then its argument prototype would still apply. */
  18517. #ifdef __cplusplus
  18518. extern "C"
  18519. #endif
  18520. char $ac_func ();
  18521. /* The GNU C library defines this for functions which it implements
  18522. to always fail with ENOSYS. Some functions are actually named
  18523. something starting with __ and the normal name is an alias. */
  18524. #if defined __stub_$ac_func || defined __stub___$ac_func
  18525. choke me
  18526. #endif
  18527. int
  18528. main ()
  18529. {
  18530. return $ac_func ();
  18531. ;
  18532. return 0;
  18533. }
  18534. _ACEOF
  18535. rm -f conftest.$ac_objext conftest$ac_exeext
  18536. if { (ac_try="$ac_link"
  18537. case "(($ac_try" in
  18538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18539. *) ac_try_echo=$ac_try;;
  18540. esac
  18541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18542. (eval "$ac_link") 2>conftest.er1
  18543. ac_status=$?
  18544. grep -v '^ *+' conftest.er1 >conftest.err
  18545. rm -f conftest.er1
  18546. cat conftest.err >&5
  18547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18548. (exit $ac_status); } && {
  18549. test -z "$ac_cxx_werror_flag" ||
  18550. test ! -s conftest.err
  18551. } && test -s conftest$ac_exeext &&
  18552. $as_test_x conftest$ac_exeext; then
  18553. eval "$as_ac_var=yes"
  18554. else
  18555. echo "$as_me: failed program was:" >&5
  18556. sed 's/^/| /' conftest.$ac_ext >&5
  18557. eval "$as_ac_var=no"
  18558. fi
  18559. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18560. conftest$ac_exeext conftest.$ac_ext
  18561. fi
  18562. ac_res=`eval echo '${'$as_ac_var'}'`
  18563. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18564. echo "${ECHO_T}$ac_res" >&6; }
  18565. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18566. cat >>confdefs.h <<_ACEOF
  18567. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18568. _ACEOF
  18569. fi
  18570. done
  18571. if test "x$enable_epoll" = "xyes"; then
  18572. for ac_func in epoll_create
  18573. do
  18574. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18575. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18576. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18577. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18578. echo $ECHO_N "(cached) $ECHO_C" >&6
  18579. else
  18580. cat >conftest.$ac_ext <<_ACEOF
  18581. /* confdefs.h. */
  18582. _ACEOF
  18583. cat confdefs.h >>conftest.$ac_ext
  18584. cat >>conftest.$ac_ext <<_ACEOF
  18585. /* end confdefs.h. */
  18586. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18587. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18588. #define $ac_func innocuous_$ac_func
  18589. /* System header to define __stub macros and hopefully few prototypes,
  18590. which can conflict with char $ac_func (); below.
  18591. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18592. <limits.h> exists even on freestanding compilers. */
  18593. #ifdef __STDC__
  18594. # include <limits.h>
  18595. #else
  18596. # include <assert.h>
  18597. #endif
  18598. #undef $ac_func
  18599. /* Override any GCC internal prototype to avoid an error.
  18600. Use char because int might match the return type of a GCC
  18601. builtin and then its argument prototype would still apply. */
  18602. #ifdef __cplusplus
  18603. extern "C"
  18604. #endif
  18605. char $ac_func ();
  18606. /* The GNU C library defines this for functions which it implements
  18607. to always fail with ENOSYS. Some functions are actually named
  18608. something starting with __ and the normal name is an alias. */
  18609. #if defined __stub_$ac_func || defined __stub___$ac_func
  18610. choke me
  18611. #endif
  18612. int
  18613. main ()
  18614. {
  18615. return $ac_func ();
  18616. ;
  18617. return 0;
  18618. }
  18619. _ACEOF
  18620. rm -f conftest.$ac_objext conftest$ac_exeext
  18621. if { (ac_try="$ac_link"
  18622. case "(($ac_try" in
  18623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18624. *) ac_try_echo=$ac_try;;
  18625. esac
  18626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18627. (eval "$ac_link") 2>conftest.er1
  18628. ac_status=$?
  18629. grep -v '^ *+' conftest.er1 >conftest.err
  18630. rm -f conftest.er1
  18631. cat conftest.err >&5
  18632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18633. (exit $ac_status); } && {
  18634. test -z "$ac_cxx_werror_flag" ||
  18635. test ! -s conftest.err
  18636. } && test -s conftest$ac_exeext &&
  18637. $as_test_x conftest$ac_exeext; then
  18638. eval "$as_ac_var=yes"
  18639. else
  18640. echo "$as_me: failed program was:" >&5
  18641. sed 's/^/| /' conftest.$ac_ext >&5
  18642. eval "$as_ac_var=no"
  18643. fi
  18644. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18645. conftest$ac_exeext conftest.$ac_ext
  18646. fi
  18647. ac_res=`eval echo '${'$as_ac_var'}'`
  18648. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18649. echo "${ECHO_T}$ac_res" >&6; }
  18650. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18651. cat >>confdefs.h <<_ACEOF
  18652. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18653. _ACEOF
  18654. fi
  18655. done
  18656. fi
  18657. for ac_func in asctime_r
  18658. do
  18659. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18660. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18661. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18662. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18663. echo $ECHO_N "(cached) $ECHO_C" >&6
  18664. else
  18665. cat >conftest.$ac_ext <<_ACEOF
  18666. /* confdefs.h. */
  18667. _ACEOF
  18668. cat confdefs.h >>conftest.$ac_ext
  18669. cat >>conftest.$ac_ext <<_ACEOF
  18670. /* end confdefs.h. */
  18671. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18672. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18673. #define $ac_func innocuous_$ac_func
  18674. /* System header to define __stub macros and hopefully few prototypes,
  18675. which can conflict with char $ac_func (); below.
  18676. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18677. <limits.h> exists even on freestanding compilers. */
  18678. #ifdef __STDC__
  18679. # include <limits.h>
  18680. #else
  18681. # include <assert.h>
  18682. #endif
  18683. #undef $ac_func
  18684. /* Override any GCC internal prototype to avoid an error.
  18685. Use char because int might match the return type of a GCC
  18686. builtin and then its argument prototype would still apply. */
  18687. #ifdef __cplusplus
  18688. extern "C"
  18689. #endif
  18690. char $ac_func ();
  18691. /* The GNU C library defines this for functions which it implements
  18692. to always fail with ENOSYS. Some functions are actually named
  18693. something starting with __ and the normal name is an alias. */
  18694. #if defined __stub_$ac_func || defined __stub___$ac_func
  18695. choke me
  18696. #endif
  18697. int
  18698. main ()
  18699. {
  18700. return $ac_func ();
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. rm -f conftest.$ac_objext conftest$ac_exeext
  18706. if { (ac_try="$ac_link"
  18707. case "(($ac_try" in
  18708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18709. *) ac_try_echo=$ac_try;;
  18710. esac
  18711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18712. (eval "$ac_link") 2>conftest.er1
  18713. ac_status=$?
  18714. grep -v '^ *+' conftest.er1 >conftest.err
  18715. rm -f conftest.er1
  18716. cat conftest.err >&5
  18717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. (exit $ac_status); } && {
  18719. test -z "$ac_cxx_werror_flag" ||
  18720. test ! -s conftest.err
  18721. } && test -s conftest$ac_exeext &&
  18722. $as_test_x conftest$ac_exeext; then
  18723. eval "$as_ac_var=yes"
  18724. else
  18725. echo "$as_me: failed program was:" >&5
  18726. sed 's/^/| /' conftest.$ac_ext >&5
  18727. eval "$as_ac_var=no"
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18730. conftest$ac_exeext conftest.$ac_ext
  18731. fi
  18732. ac_res=`eval echo '${'$as_ac_var'}'`
  18733. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18734. echo "${ECHO_T}$ac_res" >&6; }
  18735. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18736. cat >>confdefs.h <<_ACEOF
  18737. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18738. _ACEOF
  18739. if true; then
  18740. HAVE_ASCTIME_R_TRUE=
  18741. HAVE_ASCTIME_R_FALSE='#'
  18742. else
  18743. HAVE_ASCTIME_R_TRUE='#'
  18744. HAVE_ASCTIME_R_FALSE=
  18745. fi
  18746. else
  18747. if false; then
  18748. HAVE_ASCTIME_R_TRUE=
  18749. HAVE_ASCTIME_R_FALSE='#'
  18750. else
  18751. HAVE_ASCTIME_R_TRUE='#'
  18752. HAVE_ASCTIME_R_FALSE=
  18753. fi
  18754. fi
  18755. done
  18756. for ac_func in basename
  18757. do
  18758. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18759. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18760. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18761. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18762. echo $ECHO_N "(cached) $ECHO_C" >&6
  18763. else
  18764. cat >conftest.$ac_ext <<_ACEOF
  18765. /* confdefs.h. */
  18766. _ACEOF
  18767. cat confdefs.h >>conftest.$ac_ext
  18768. cat >>conftest.$ac_ext <<_ACEOF
  18769. /* end confdefs.h. */
  18770. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18771. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18772. #define $ac_func innocuous_$ac_func
  18773. /* System header to define __stub macros and hopefully few prototypes,
  18774. which can conflict with char $ac_func (); below.
  18775. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18776. <limits.h> exists even on freestanding compilers. */
  18777. #ifdef __STDC__
  18778. # include <limits.h>
  18779. #else
  18780. # include <assert.h>
  18781. #endif
  18782. #undef $ac_func
  18783. /* Override any GCC internal prototype to avoid an error.
  18784. Use char because int might match the return type of a GCC
  18785. builtin and then its argument prototype would still apply. */
  18786. #ifdef __cplusplus
  18787. extern "C"
  18788. #endif
  18789. char $ac_func ();
  18790. /* The GNU C library defines this for functions which it implements
  18791. to always fail with ENOSYS. Some functions are actually named
  18792. something starting with __ and the normal name is an alias. */
  18793. #if defined __stub_$ac_func || defined __stub___$ac_func
  18794. choke me
  18795. #endif
  18796. int
  18797. main ()
  18798. {
  18799. return $ac_func ();
  18800. ;
  18801. return 0;
  18802. }
  18803. _ACEOF
  18804. rm -f conftest.$ac_objext conftest$ac_exeext
  18805. if { (ac_try="$ac_link"
  18806. case "(($ac_try" in
  18807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18808. *) ac_try_echo=$ac_try;;
  18809. esac
  18810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18811. (eval "$ac_link") 2>conftest.er1
  18812. ac_status=$?
  18813. grep -v '^ *+' conftest.er1 >conftest.err
  18814. rm -f conftest.er1
  18815. cat conftest.err >&5
  18816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18817. (exit $ac_status); } && {
  18818. test -z "$ac_cxx_werror_flag" ||
  18819. test ! -s conftest.err
  18820. } && test -s conftest$ac_exeext &&
  18821. $as_test_x conftest$ac_exeext; then
  18822. eval "$as_ac_var=yes"
  18823. else
  18824. echo "$as_me: failed program was:" >&5
  18825. sed 's/^/| /' conftest.$ac_ext >&5
  18826. eval "$as_ac_var=no"
  18827. fi
  18828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18829. conftest$ac_exeext conftest.$ac_ext
  18830. fi
  18831. ac_res=`eval echo '${'$as_ac_var'}'`
  18832. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18833. echo "${ECHO_T}$ac_res" >&6; }
  18834. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18835. cat >>confdefs.h <<_ACEOF
  18836. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18837. _ACEOF
  18838. if true; then
  18839. HAVE_BASENAME_TRUE=
  18840. HAVE_BASENAME_FALSE='#'
  18841. else
  18842. HAVE_BASENAME_TRUE='#'
  18843. HAVE_BASENAME_FALSE=
  18844. fi
  18845. else
  18846. if false; then
  18847. HAVE_BASENAME_TRUE=
  18848. HAVE_BASENAME_FALSE='#'
  18849. else
  18850. HAVE_BASENAME_TRUE='#'
  18851. HAVE_BASENAME_FALSE=
  18852. fi
  18853. fi
  18854. done
  18855. for ac_func in gai_strerror
  18856. do
  18857. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18858. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18859. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18860. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18861. echo $ECHO_N "(cached) $ECHO_C" >&6
  18862. else
  18863. cat >conftest.$ac_ext <<_ACEOF
  18864. /* confdefs.h. */
  18865. _ACEOF
  18866. cat confdefs.h >>conftest.$ac_ext
  18867. cat >>conftest.$ac_ext <<_ACEOF
  18868. /* end confdefs.h. */
  18869. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18870. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18871. #define $ac_func innocuous_$ac_func
  18872. /* System header to define __stub macros and hopefully few prototypes,
  18873. which can conflict with char $ac_func (); below.
  18874. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18875. <limits.h> exists even on freestanding compilers. */
  18876. #ifdef __STDC__
  18877. # include <limits.h>
  18878. #else
  18879. # include <assert.h>
  18880. #endif
  18881. #undef $ac_func
  18882. /* Override any GCC internal prototype to avoid an error.
  18883. Use char because int might match the return type of a GCC
  18884. builtin and then its argument prototype would still apply. */
  18885. #ifdef __cplusplus
  18886. extern "C"
  18887. #endif
  18888. char $ac_func ();
  18889. /* The GNU C library defines this for functions which it implements
  18890. to always fail with ENOSYS. Some functions are actually named
  18891. something starting with __ and the normal name is an alias. */
  18892. #if defined __stub_$ac_func || defined __stub___$ac_func
  18893. choke me
  18894. #endif
  18895. int
  18896. main ()
  18897. {
  18898. return $ac_func ();
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. rm -f conftest.$ac_objext conftest$ac_exeext
  18904. if { (ac_try="$ac_link"
  18905. case "(($ac_try" in
  18906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18907. *) ac_try_echo=$ac_try;;
  18908. esac
  18909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18910. (eval "$ac_link") 2>conftest.er1
  18911. ac_status=$?
  18912. grep -v '^ *+' conftest.er1 >conftest.err
  18913. rm -f conftest.er1
  18914. cat conftest.err >&5
  18915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18916. (exit $ac_status); } && {
  18917. test -z "$ac_cxx_werror_flag" ||
  18918. test ! -s conftest.err
  18919. } && test -s conftest$ac_exeext &&
  18920. $as_test_x conftest$ac_exeext; then
  18921. eval "$as_ac_var=yes"
  18922. else
  18923. echo "$as_me: failed program was:" >&5
  18924. sed 's/^/| /' conftest.$ac_ext >&5
  18925. eval "$as_ac_var=no"
  18926. fi
  18927. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18928. conftest$ac_exeext conftest.$ac_ext
  18929. fi
  18930. ac_res=`eval echo '${'$as_ac_var'}'`
  18931. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18932. echo "${ECHO_T}$ac_res" >&6; }
  18933. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18934. cat >>confdefs.h <<_ACEOF
  18935. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18936. _ACEOF
  18937. if true; then
  18938. HAVE_GAI_STRERROR_TRUE=
  18939. HAVE_GAI_STRERROR_FALSE='#'
  18940. else
  18941. HAVE_GAI_STRERROR_TRUE='#'
  18942. HAVE_GAI_STRERROR_FALSE=
  18943. fi
  18944. else
  18945. if false; then
  18946. HAVE_GAI_STRERROR_TRUE=
  18947. HAVE_GAI_STRERROR_FALSE='#'
  18948. else
  18949. HAVE_GAI_STRERROR_TRUE='#'
  18950. HAVE_GAI_STRERROR_FALSE=
  18951. fi
  18952. fi
  18953. done
  18954. for ac_func in getaddrinfo
  18955. do
  18956. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18957. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18958. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18959. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18960. echo $ECHO_N "(cached) $ECHO_C" >&6
  18961. else
  18962. cat >conftest.$ac_ext <<_ACEOF
  18963. /* confdefs.h. */
  18964. _ACEOF
  18965. cat confdefs.h >>conftest.$ac_ext
  18966. cat >>conftest.$ac_ext <<_ACEOF
  18967. /* end confdefs.h. */
  18968. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18969. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18970. #define $ac_func innocuous_$ac_func
  18971. /* System header to define __stub macros and hopefully few prototypes,
  18972. which can conflict with char $ac_func (); below.
  18973. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18974. <limits.h> exists even on freestanding compilers. */
  18975. #ifdef __STDC__
  18976. # include <limits.h>
  18977. #else
  18978. # include <assert.h>
  18979. #endif
  18980. #undef $ac_func
  18981. /* Override any GCC internal prototype to avoid an error.
  18982. Use char because int might match the return type of a GCC
  18983. builtin and then its argument prototype would still apply. */
  18984. #ifdef __cplusplus
  18985. extern "C"
  18986. #endif
  18987. char $ac_func ();
  18988. /* The GNU C library defines this for functions which it implements
  18989. to always fail with ENOSYS. Some functions are actually named
  18990. something starting with __ and the normal name is an alias. */
  18991. #if defined __stub_$ac_func || defined __stub___$ac_func
  18992. choke me
  18993. #endif
  18994. int
  18995. main ()
  18996. {
  18997. return $ac_func ();
  18998. ;
  18999. return 0;
  19000. }
  19001. _ACEOF
  19002. rm -f conftest.$ac_objext conftest$ac_exeext
  19003. if { (ac_try="$ac_link"
  19004. case "(($ac_try" in
  19005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19006. *) ac_try_echo=$ac_try;;
  19007. esac
  19008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19009. (eval "$ac_link") 2>conftest.er1
  19010. ac_status=$?
  19011. grep -v '^ *+' conftest.er1 >conftest.err
  19012. rm -f conftest.er1
  19013. cat conftest.err >&5
  19014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19015. (exit $ac_status); } && {
  19016. test -z "$ac_cxx_werror_flag" ||
  19017. test ! -s conftest.err
  19018. } && test -s conftest$ac_exeext &&
  19019. $as_test_x conftest$ac_exeext; then
  19020. eval "$as_ac_var=yes"
  19021. else
  19022. echo "$as_me: failed program was:" >&5
  19023. sed 's/^/| /' conftest.$ac_ext >&5
  19024. eval "$as_ac_var=no"
  19025. fi
  19026. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19027. conftest$ac_exeext conftest.$ac_ext
  19028. fi
  19029. ac_res=`eval echo '${'$as_ac_var'}'`
  19030. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19031. echo "${ECHO_T}$ac_res" >&6; }
  19032. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19033. cat >>confdefs.h <<_ACEOF
  19034. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19035. _ACEOF
  19036. if true; then
  19037. HAVE_GETADDRINFO_TRUE=
  19038. HAVE_GETADDRINFO_FALSE='#'
  19039. else
  19040. HAVE_GETADDRINFO_TRUE='#'
  19041. HAVE_GETADDRINFO_FALSE=
  19042. fi
  19043. else
  19044. if false; then
  19045. HAVE_GETADDRINFO_TRUE=
  19046. HAVE_GETADDRINFO_FALSE='#'
  19047. else
  19048. HAVE_GETADDRINFO_TRUE='#'
  19049. HAVE_GETADDRINFO_FALSE=
  19050. fi
  19051. fi
  19052. done
  19053. for ac_func in gettimeofday
  19054. do
  19055. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19056. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19057. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19058. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19059. echo $ECHO_N "(cached) $ECHO_C" >&6
  19060. else
  19061. cat >conftest.$ac_ext <<_ACEOF
  19062. /* confdefs.h. */
  19063. _ACEOF
  19064. cat confdefs.h >>conftest.$ac_ext
  19065. cat >>conftest.$ac_ext <<_ACEOF
  19066. /* end confdefs.h. */
  19067. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19068. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19069. #define $ac_func innocuous_$ac_func
  19070. /* System header to define __stub macros and hopefully few prototypes,
  19071. which can conflict with char $ac_func (); below.
  19072. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19073. <limits.h> exists even on freestanding compilers. */
  19074. #ifdef __STDC__
  19075. # include <limits.h>
  19076. #else
  19077. # include <assert.h>
  19078. #endif
  19079. #undef $ac_func
  19080. /* Override any GCC internal prototype to avoid an error.
  19081. Use char because int might match the return type of a GCC
  19082. builtin and then its argument prototype would still apply. */
  19083. #ifdef __cplusplus
  19084. extern "C"
  19085. #endif
  19086. char $ac_func ();
  19087. /* The GNU C library defines this for functions which it implements
  19088. to always fail with ENOSYS. Some functions are actually named
  19089. something starting with __ and the normal name is an alias. */
  19090. #if defined __stub_$ac_func || defined __stub___$ac_func
  19091. choke me
  19092. #endif
  19093. int
  19094. main ()
  19095. {
  19096. return $ac_func ();
  19097. ;
  19098. return 0;
  19099. }
  19100. _ACEOF
  19101. rm -f conftest.$ac_objext conftest$ac_exeext
  19102. if { (ac_try="$ac_link"
  19103. case "(($ac_try" in
  19104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19105. *) ac_try_echo=$ac_try;;
  19106. esac
  19107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19108. (eval "$ac_link") 2>conftest.er1
  19109. ac_status=$?
  19110. grep -v '^ *+' conftest.er1 >conftest.err
  19111. rm -f conftest.er1
  19112. cat conftest.err >&5
  19113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19114. (exit $ac_status); } && {
  19115. test -z "$ac_cxx_werror_flag" ||
  19116. test ! -s conftest.err
  19117. } && test -s conftest$ac_exeext &&
  19118. $as_test_x conftest$ac_exeext; then
  19119. eval "$as_ac_var=yes"
  19120. else
  19121. echo "$as_me: failed program was:" >&5
  19122. sed 's/^/| /' conftest.$ac_ext >&5
  19123. eval "$as_ac_var=no"
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19126. conftest$ac_exeext conftest.$ac_ext
  19127. fi
  19128. ac_res=`eval echo '${'$as_ac_var'}'`
  19129. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19130. echo "${ECHO_T}$ac_res" >&6; }
  19131. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19132. cat >>confdefs.h <<_ACEOF
  19133. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19134. _ACEOF
  19135. if true; then
  19136. HAVE_GETTIMEOFDAY_TRUE=
  19137. HAVE_GETTIMEOFDAY_FALSE='#'
  19138. else
  19139. HAVE_GETTIMEOFDAY_TRUE='#'
  19140. HAVE_GETTIMEOFDAY_FALSE=
  19141. fi
  19142. else
  19143. if false; then
  19144. HAVE_GETTIMEOFDAY_TRUE=
  19145. HAVE_GETTIMEOFDAY_FALSE='#'
  19146. else
  19147. HAVE_GETTIMEOFDAY_TRUE='#'
  19148. HAVE_GETTIMEOFDAY_FALSE=
  19149. fi
  19150. fi
  19151. done
  19152. for ac_func in inet_aton
  19153. do
  19154. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19155. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19156. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19157. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19158. echo $ECHO_N "(cached) $ECHO_C" >&6
  19159. else
  19160. cat >conftest.$ac_ext <<_ACEOF
  19161. /* confdefs.h. */
  19162. _ACEOF
  19163. cat confdefs.h >>conftest.$ac_ext
  19164. cat >>conftest.$ac_ext <<_ACEOF
  19165. /* end confdefs.h. */
  19166. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19168. #define $ac_func innocuous_$ac_func
  19169. /* System header to define __stub macros and hopefully few prototypes,
  19170. which can conflict with char $ac_func (); below.
  19171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19172. <limits.h> exists even on freestanding compilers. */
  19173. #ifdef __STDC__
  19174. # include <limits.h>
  19175. #else
  19176. # include <assert.h>
  19177. #endif
  19178. #undef $ac_func
  19179. /* Override any GCC internal prototype to avoid an error.
  19180. Use char because int might match the return type of a GCC
  19181. builtin and then its argument prototype would still apply. */
  19182. #ifdef __cplusplus
  19183. extern "C"
  19184. #endif
  19185. char $ac_func ();
  19186. /* The GNU C library defines this for functions which it implements
  19187. to always fail with ENOSYS. Some functions are actually named
  19188. something starting with __ and the normal name is an alias. */
  19189. #if defined __stub_$ac_func || defined __stub___$ac_func
  19190. choke me
  19191. #endif
  19192. int
  19193. main ()
  19194. {
  19195. return $ac_func ();
  19196. ;
  19197. return 0;
  19198. }
  19199. _ACEOF
  19200. rm -f conftest.$ac_objext conftest$ac_exeext
  19201. if { (ac_try="$ac_link"
  19202. case "(($ac_try" in
  19203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19204. *) ac_try_echo=$ac_try;;
  19205. esac
  19206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19207. (eval "$ac_link") 2>conftest.er1
  19208. ac_status=$?
  19209. grep -v '^ *+' conftest.er1 >conftest.err
  19210. rm -f conftest.er1
  19211. cat conftest.err >&5
  19212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19213. (exit $ac_status); } && {
  19214. test -z "$ac_cxx_werror_flag" ||
  19215. test ! -s conftest.err
  19216. } && test -s conftest$ac_exeext &&
  19217. $as_test_x conftest$ac_exeext; then
  19218. eval "$as_ac_var=yes"
  19219. else
  19220. echo "$as_me: failed program was:" >&5
  19221. sed 's/^/| /' conftest.$ac_ext >&5
  19222. eval "$as_ac_var=no"
  19223. fi
  19224. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19225. conftest$ac_exeext conftest.$ac_ext
  19226. fi
  19227. ac_res=`eval echo '${'$as_ac_var'}'`
  19228. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19229. echo "${ECHO_T}$ac_res" >&6; }
  19230. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19231. cat >>confdefs.h <<_ACEOF
  19232. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19233. _ACEOF
  19234. if true; then
  19235. HAVE_INET_ATON_TRUE=
  19236. HAVE_INET_ATON_FALSE='#'
  19237. else
  19238. HAVE_INET_ATON_TRUE='#'
  19239. HAVE_INET_ATON_FALSE=
  19240. fi
  19241. else
  19242. if false; then
  19243. HAVE_INET_ATON_TRUE=
  19244. HAVE_INET_ATON_FALSE='#'
  19245. else
  19246. HAVE_INET_ATON_TRUE='#'
  19247. HAVE_INET_ATON_FALSE=
  19248. fi
  19249. fi
  19250. done
  19251. for ac_func in localtime_r
  19252. do
  19253. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19254. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19255. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19256. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19257. echo $ECHO_N "(cached) $ECHO_C" >&6
  19258. else
  19259. cat >conftest.$ac_ext <<_ACEOF
  19260. /* confdefs.h. */
  19261. _ACEOF
  19262. cat confdefs.h >>conftest.$ac_ext
  19263. cat >>conftest.$ac_ext <<_ACEOF
  19264. /* end confdefs.h. */
  19265. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19266. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19267. #define $ac_func innocuous_$ac_func
  19268. /* System header to define __stub macros and hopefully few prototypes,
  19269. which can conflict with char $ac_func (); below.
  19270. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19271. <limits.h> exists even on freestanding compilers. */
  19272. #ifdef __STDC__
  19273. # include <limits.h>
  19274. #else
  19275. # include <assert.h>
  19276. #endif
  19277. #undef $ac_func
  19278. /* Override any GCC internal prototype to avoid an error.
  19279. Use char because int might match the return type of a GCC
  19280. builtin and then its argument prototype would still apply. */
  19281. #ifdef __cplusplus
  19282. extern "C"
  19283. #endif
  19284. char $ac_func ();
  19285. /* The GNU C library defines this for functions which it implements
  19286. to always fail with ENOSYS. Some functions are actually named
  19287. something starting with __ and the normal name is an alias. */
  19288. #if defined __stub_$ac_func || defined __stub___$ac_func
  19289. choke me
  19290. #endif
  19291. int
  19292. main ()
  19293. {
  19294. return $ac_func ();
  19295. ;
  19296. return 0;
  19297. }
  19298. _ACEOF
  19299. rm -f conftest.$ac_objext conftest$ac_exeext
  19300. if { (ac_try="$ac_link"
  19301. case "(($ac_try" in
  19302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19303. *) ac_try_echo=$ac_try;;
  19304. esac
  19305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19306. (eval "$ac_link") 2>conftest.er1
  19307. ac_status=$?
  19308. grep -v '^ *+' conftest.er1 >conftest.err
  19309. rm -f conftest.er1
  19310. cat conftest.err >&5
  19311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19312. (exit $ac_status); } && {
  19313. test -z "$ac_cxx_werror_flag" ||
  19314. test ! -s conftest.err
  19315. } && test -s conftest$ac_exeext &&
  19316. $as_test_x conftest$ac_exeext; then
  19317. eval "$as_ac_var=yes"
  19318. else
  19319. echo "$as_me: failed program was:" >&5
  19320. sed 's/^/| /' conftest.$ac_ext >&5
  19321. eval "$as_ac_var=no"
  19322. fi
  19323. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19324. conftest$ac_exeext conftest.$ac_ext
  19325. fi
  19326. ac_res=`eval echo '${'$as_ac_var'}'`
  19327. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19328. echo "${ECHO_T}$ac_res" >&6; }
  19329. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19330. cat >>confdefs.h <<_ACEOF
  19331. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19332. _ACEOF
  19333. if true; then
  19334. HAVE_LOCALTIME_R_TRUE=
  19335. HAVE_LOCALTIME_R_FALSE='#'
  19336. else
  19337. HAVE_LOCALTIME_R_TRUE='#'
  19338. HAVE_LOCALTIME_R_FALSE=
  19339. fi
  19340. else
  19341. if false; then
  19342. HAVE_LOCALTIME_R_TRUE=
  19343. HAVE_LOCALTIME_R_FALSE='#'
  19344. else
  19345. HAVE_LOCALTIME_R_TRUE='#'
  19346. HAVE_LOCALTIME_R_FALSE=
  19347. fi
  19348. fi
  19349. done
  19350. for ac_func in strptime
  19351. do
  19352. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19353. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19354. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19355. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19356. echo $ECHO_N "(cached) $ECHO_C" >&6
  19357. else
  19358. cat >conftest.$ac_ext <<_ACEOF
  19359. /* confdefs.h. */
  19360. _ACEOF
  19361. cat confdefs.h >>conftest.$ac_ext
  19362. cat >>conftest.$ac_ext <<_ACEOF
  19363. /* end confdefs.h. */
  19364. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19365. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19366. #define $ac_func innocuous_$ac_func
  19367. /* System header to define __stub macros and hopefully few prototypes,
  19368. which can conflict with char $ac_func (); below.
  19369. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19370. <limits.h> exists even on freestanding compilers. */
  19371. #ifdef __STDC__
  19372. # include <limits.h>
  19373. #else
  19374. # include <assert.h>
  19375. #endif
  19376. #undef $ac_func
  19377. /* Override any GCC internal prototype to avoid an error.
  19378. Use char because int might match the return type of a GCC
  19379. builtin and then its argument prototype would still apply. */
  19380. #ifdef __cplusplus
  19381. extern "C"
  19382. #endif
  19383. char $ac_func ();
  19384. /* The GNU C library defines this for functions which it implements
  19385. to always fail with ENOSYS. Some functions are actually named
  19386. something starting with __ and the normal name is an alias. */
  19387. #if defined __stub_$ac_func || defined __stub___$ac_func
  19388. choke me
  19389. #endif
  19390. int
  19391. main ()
  19392. {
  19393. return $ac_func ();
  19394. ;
  19395. return 0;
  19396. }
  19397. _ACEOF
  19398. rm -f conftest.$ac_objext conftest$ac_exeext
  19399. if { (ac_try="$ac_link"
  19400. case "(($ac_try" in
  19401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19402. *) ac_try_echo=$ac_try;;
  19403. esac
  19404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19405. (eval "$ac_link") 2>conftest.er1
  19406. ac_status=$?
  19407. grep -v '^ *+' conftest.er1 >conftest.err
  19408. rm -f conftest.er1
  19409. cat conftest.err >&5
  19410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19411. (exit $ac_status); } && {
  19412. test -z "$ac_cxx_werror_flag" ||
  19413. test ! -s conftest.err
  19414. } && test -s conftest$ac_exeext &&
  19415. $as_test_x conftest$ac_exeext; then
  19416. eval "$as_ac_var=yes"
  19417. else
  19418. echo "$as_me: failed program was:" >&5
  19419. sed 's/^/| /' conftest.$ac_ext >&5
  19420. eval "$as_ac_var=no"
  19421. fi
  19422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19423. conftest$ac_exeext conftest.$ac_ext
  19424. fi
  19425. ac_res=`eval echo '${'$as_ac_var'}'`
  19426. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19427. echo "${ECHO_T}$ac_res" >&6; }
  19428. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19429. cat >>confdefs.h <<_ACEOF
  19430. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19431. _ACEOF
  19432. if true; then
  19433. HAVE_STRPTIME_TRUE=
  19434. HAVE_STRPTIME_FALSE='#'
  19435. else
  19436. HAVE_STRPTIME_TRUE='#'
  19437. HAVE_STRPTIME_FALSE=
  19438. fi
  19439. else
  19440. if false; then
  19441. HAVE_STRPTIME_TRUE=
  19442. HAVE_STRPTIME_FALSE='#'
  19443. else
  19444. HAVE_STRPTIME_TRUE='#'
  19445. HAVE_STRPTIME_FALSE=
  19446. fi
  19447. fi
  19448. done
  19449. for ac_func in timegm
  19450. do
  19451. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19452. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19453. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19454. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19455. echo $ECHO_N "(cached) $ECHO_C" >&6
  19456. else
  19457. cat >conftest.$ac_ext <<_ACEOF
  19458. /* confdefs.h. */
  19459. _ACEOF
  19460. cat confdefs.h >>conftest.$ac_ext
  19461. cat >>conftest.$ac_ext <<_ACEOF
  19462. /* end confdefs.h. */
  19463. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19464. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19465. #define $ac_func innocuous_$ac_func
  19466. /* System header to define __stub macros and hopefully few prototypes,
  19467. which can conflict with char $ac_func (); below.
  19468. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19469. <limits.h> exists even on freestanding compilers. */
  19470. #ifdef __STDC__
  19471. # include <limits.h>
  19472. #else
  19473. # include <assert.h>
  19474. #endif
  19475. #undef $ac_func
  19476. /* Override any GCC internal prototype to avoid an error.
  19477. Use char because int might match the return type of a GCC
  19478. builtin and then its argument prototype would still apply. */
  19479. #ifdef __cplusplus
  19480. extern "C"
  19481. #endif
  19482. char $ac_func ();
  19483. /* The GNU C library defines this for functions which it implements
  19484. to always fail with ENOSYS. Some functions are actually named
  19485. something starting with __ and the normal name is an alias. */
  19486. #if defined __stub_$ac_func || defined __stub___$ac_func
  19487. choke me
  19488. #endif
  19489. int
  19490. main ()
  19491. {
  19492. return $ac_func ();
  19493. ;
  19494. return 0;
  19495. }
  19496. _ACEOF
  19497. rm -f conftest.$ac_objext conftest$ac_exeext
  19498. if { (ac_try="$ac_link"
  19499. case "(($ac_try" in
  19500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19501. *) ac_try_echo=$ac_try;;
  19502. esac
  19503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19504. (eval "$ac_link") 2>conftest.er1
  19505. ac_status=$?
  19506. grep -v '^ *+' conftest.er1 >conftest.err
  19507. rm -f conftest.er1
  19508. cat conftest.err >&5
  19509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19510. (exit $ac_status); } && {
  19511. test -z "$ac_cxx_werror_flag" ||
  19512. test ! -s conftest.err
  19513. } && test -s conftest$ac_exeext &&
  19514. $as_test_x conftest$ac_exeext; then
  19515. eval "$as_ac_var=yes"
  19516. else
  19517. echo "$as_me: failed program was:" >&5
  19518. sed 's/^/| /' conftest.$ac_ext >&5
  19519. eval "$as_ac_var=no"
  19520. fi
  19521. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19522. conftest$ac_exeext conftest.$ac_ext
  19523. fi
  19524. ac_res=`eval echo '${'$as_ac_var'}'`
  19525. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19526. echo "${ECHO_T}$ac_res" >&6; }
  19527. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19528. cat >>confdefs.h <<_ACEOF
  19529. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19530. _ACEOF
  19531. if true; then
  19532. HAVE_TIMEGM_TRUE=
  19533. HAVE_TIMEGM_FALSE='#'
  19534. else
  19535. HAVE_TIMEGM_TRUE='#'
  19536. HAVE_TIMEGM_FALSE=
  19537. fi
  19538. else
  19539. if false; then
  19540. HAVE_TIMEGM_TRUE=
  19541. HAVE_TIMEGM_FALSE='#'
  19542. else
  19543. HAVE_TIMEGM_TRUE='#'
  19544. HAVE_TIMEGM_FALSE=
  19545. fi
  19546. fi
  19547. done
  19548. case "$target" in
  19549. *mingw*)
  19550. if true; then
  19551. HAVE_GETADDRINFO_TRUE=
  19552. HAVE_GETADDRINFO_FALSE='#'
  19553. else
  19554. HAVE_GETADDRINFO_TRUE='#'
  19555. HAVE_GETADDRINFO_FALSE=
  19556. fi
  19557. if false; then
  19558. HAVE_GAI_STRERROR_TRUE=
  19559. HAVE_GAI_STRERROR_FALSE='#'
  19560. else
  19561. HAVE_GAI_STRERROR_TRUE='#'
  19562. HAVE_GAI_STRERROR_FALSE=
  19563. fi
  19564. ;;
  19565. esac
  19566. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19567. cat >confcache <<\_ACEOF
  19568. # This file is a shell script that caches the results of configure
  19569. # tests run on this system so they can be shared between configure
  19570. # scripts and configure runs, see configure's option --config-cache.
  19571. # It is not useful on other systems. If it contains results you don't
  19572. # want to keep, you may remove or edit it.
  19573. #
  19574. # config.status only pays attention to the cache file if you give it
  19575. # the --recheck option to rerun configure.
  19576. #
  19577. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19578. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19579. # following values.
  19580. _ACEOF
  19581. # The following way of writing the cache mishandles newlines in values,
  19582. # but we know of no workaround that is simple, portable, and efficient.
  19583. # So, we kill variables containing newlines.
  19584. # Ultrix sh set writes to stderr and can't be redirected directly,
  19585. # and sets the high bit in the cache file unless we assign to the vars.
  19586. (
  19587. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19588. eval ac_val=\$$ac_var
  19589. case $ac_val in #(
  19590. *${as_nl}*)
  19591. case $ac_var in #(
  19592. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19593. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19594. esac
  19595. case $ac_var in #(
  19596. _ | IFS | as_nl) ;; #(
  19597. *) $as_unset $ac_var ;;
  19598. esac ;;
  19599. esac
  19600. done
  19601. (set) 2>&1 |
  19602. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19603. *${as_nl}ac_space=\ *)
  19604. # `set' does not quote correctly, so add quotes (double-quote
  19605. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19606. sed -n \
  19607. "s/'/'\\\\''/g;
  19608. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19609. ;; #(
  19610. *)
  19611. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19612. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19613. ;;
  19614. esac |
  19615. sort
  19616. ) |
  19617. sed '
  19618. /^ac_cv_env_/b end
  19619. t clear
  19620. :clear
  19621. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19622. t end
  19623. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19624. :end' >>confcache
  19625. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19626. if test -w "$cache_file"; then
  19627. test "x$cache_file" != "x/dev/null" &&
  19628. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19629. echo "$as_me: updating cache $cache_file" >&6;}
  19630. cat confcache >$cache_file
  19631. else
  19632. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19633. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19634. fi
  19635. fi
  19636. rm -f confcache
  19637. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19638. # Let make expand exec_prefix.
  19639. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19640. DEFS=-DHAVE_CONFIG_H
  19641. ac_libobjs=
  19642. ac_ltlibobjs=
  19643. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19644. # 1. Remove the extension, and $U if already installed.
  19645. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19646. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19647. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19648. # will be set to the directory where LIBOBJS objects are built.
  19649. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19650. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19651. done
  19652. LIBOBJS=$ac_libobjs
  19653. LTLIBOBJS=$ac_ltlibobjs
  19654. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19655. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19656. Usually this means the macro was only invoked conditionally." >&5
  19657. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19658. Usually this means the macro was only invoked conditionally." >&2;}
  19659. { (exit 1); exit 1; }; }
  19660. fi
  19661. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19662. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19663. Usually this means the macro was only invoked conditionally." >&5
  19664. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19665. Usually this means the macro was only invoked conditionally." >&2;}
  19666. { (exit 1); exit 1; }; }
  19667. fi
  19668. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19669. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19670. Usually this means the macro was only invoked conditionally." >&5
  19671. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19672. Usually this means the macro was only invoked conditionally." >&2;}
  19673. { (exit 1); exit 1; }; }
  19674. fi
  19675. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19676. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19677. Usually this means the macro was only invoked conditionally." >&5
  19678. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19679. Usually this means the macro was only invoked conditionally." >&2;}
  19680. { (exit 1); exit 1; }; }
  19681. fi
  19682. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19683. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19684. Usually this means the macro was only invoked conditionally." >&5
  19685. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19686. Usually this means the macro was only invoked conditionally." >&2;}
  19687. { (exit 1); exit 1; }; }
  19688. fi
  19689. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19690. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19691. Usually this means the macro was only invoked conditionally." >&5
  19692. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19693. Usually this means the macro was only invoked conditionally." >&2;}
  19694. { (exit 1); exit 1; }; }
  19695. fi
  19696. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19697. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19698. Usually this means the macro was only invoked conditionally." >&5
  19699. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19700. Usually this means the macro was only invoked conditionally." >&2;}
  19701. { (exit 1); exit 1; }; }
  19702. fi
  19703. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19704. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19705. Usually this means the macro was only invoked conditionally." >&5
  19706. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19707. Usually this means the macro was only invoked conditionally." >&2;}
  19708. { (exit 1); exit 1; }; }
  19709. fi
  19710. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19711. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19712. Usually this means the macro was only invoked conditionally." >&5
  19713. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19714. Usually this means the macro was only invoked conditionally." >&2;}
  19715. { (exit 1); exit 1; }; }
  19716. fi
  19717. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19718. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19719. Usually this means the macro was only invoked conditionally." >&5
  19720. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19721. Usually this means the macro was only invoked conditionally." >&2;}
  19722. { (exit 1); exit 1; }; }
  19723. fi
  19724. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19725. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19726. Usually this means the macro was only invoked conditionally." >&5
  19727. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19728. Usually this means the macro was only invoked conditionally." >&2;}
  19729. { (exit 1); exit 1; }; }
  19730. fi
  19731. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19732. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19733. Usually this means the macro was only invoked conditionally." >&5
  19734. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19735. Usually this means the macro was only invoked conditionally." >&2;}
  19736. { (exit 1); exit 1; }; }
  19737. fi
  19738. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19739. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19740. Usually this means the macro was only invoked conditionally." >&5
  19741. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19742. Usually this means the macro was only invoked conditionally." >&2;}
  19743. { (exit 1); exit 1; }; }
  19744. fi
  19745. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19746. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19747. Usually this means the macro was only invoked conditionally." >&5
  19748. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19749. Usually this means the macro was only invoked conditionally." >&2;}
  19750. { (exit 1); exit 1; }; }
  19751. fi
  19752. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19753. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19754. Usually this means the macro was only invoked conditionally." >&5
  19755. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19756. Usually this means the macro was only invoked conditionally." >&2;}
  19757. { (exit 1); exit 1; }; }
  19758. fi
  19759. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19760. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19761. Usually this means the macro was only invoked conditionally." >&5
  19762. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19763. Usually this means the macro was only invoked conditionally." >&2;}
  19764. { (exit 1); exit 1; }; }
  19765. fi
  19766. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19767. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19768. Usually this means the macro was only invoked conditionally." >&5
  19769. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19770. Usually this means the macro was only invoked conditionally." >&2;}
  19771. { (exit 1); exit 1; }; }
  19772. fi
  19773. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19774. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19775. Usually this means the macro was only invoked conditionally." >&5
  19776. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19777. Usually this means the macro was only invoked conditionally." >&2;}
  19778. { (exit 1); exit 1; }; }
  19779. fi
  19780. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19781. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19782. Usually this means the macro was only invoked conditionally." >&5
  19783. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19784. Usually this means the macro was only invoked conditionally." >&2;}
  19785. { (exit 1); exit 1; }; }
  19786. fi
  19787. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19788. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19789. Usually this means the macro was only invoked conditionally." >&5
  19790. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19791. Usually this means the macro was only invoked conditionally." >&2;}
  19792. { (exit 1); exit 1; }; }
  19793. fi
  19794. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19795. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19796. Usually this means the macro was only invoked conditionally." >&5
  19797. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19798. Usually this means the macro was only invoked conditionally." >&2;}
  19799. { (exit 1); exit 1; }; }
  19800. fi
  19801. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19802. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19803. Usually this means the macro was only invoked conditionally." >&5
  19804. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19805. Usually this means the macro was only invoked conditionally." >&2;}
  19806. { (exit 1); exit 1; }; }
  19807. fi
  19808. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19809. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19810. Usually this means the macro was only invoked conditionally." >&5
  19811. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19812. Usually this means the macro was only invoked conditionally." >&2;}
  19813. { (exit 1); exit 1; }; }
  19814. fi
  19815. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19816. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19817. Usually this means the macro was only invoked conditionally." >&5
  19818. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19819. Usually this means the macro was only invoked conditionally." >&2;}
  19820. { (exit 1); exit 1; }; }
  19821. fi
  19822. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19823. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19824. Usually this means the macro was only invoked conditionally." >&5
  19825. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19826. Usually this means the macro was only invoked conditionally." >&2;}
  19827. { (exit 1); exit 1; }; }
  19828. fi
  19829. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19830. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19831. Usually this means the macro was only invoked conditionally." >&5
  19832. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19833. Usually this means the macro was only invoked conditionally." >&2;}
  19834. { (exit 1); exit 1; }; }
  19835. fi
  19836. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19837. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19838. Usually this means the macro was only invoked conditionally." >&5
  19839. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19840. Usually this means the macro was only invoked conditionally." >&2;}
  19841. { (exit 1); exit 1; }; }
  19842. fi
  19843. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19844. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19845. Usually this means the macro was only invoked conditionally." >&5
  19846. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19847. Usually this means the macro was only invoked conditionally." >&2;}
  19848. { (exit 1); exit 1; }; }
  19849. fi
  19850. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19851. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19852. Usually this means the macro was only invoked conditionally." >&5
  19853. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19854. Usually this means the macro was only invoked conditionally." >&2;}
  19855. { (exit 1); exit 1; }; }
  19856. fi
  19857. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19858. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19859. Usually this means the macro was only invoked conditionally." >&5
  19860. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19861. Usually this means the macro was only invoked conditionally." >&2;}
  19862. { (exit 1); exit 1; }; }
  19863. fi
  19864. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19865. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19866. Usually this means the macro was only invoked conditionally." >&5
  19867. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19868. Usually this means the macro was only invoked conditionally." >&2;}
  19869. { (exit 1); exit 1; }; }
  19870. fi
  19871. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19872. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19873. Usually this means the macro was only invoked conditionally." >&5
  19874. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19875. Usually this means the macro was only invoked conditionally." >&2;}
  19876. { (exit 1); exit 1; }; }
  19877. fi
  19878. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19879. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19880. Usually this means the macro was only invoked conditionally." >&5
  19881. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19882. Usually this means the macro was only invoked conditionally." >&2;}
  19883. { (exit 1); exit 1; }; }
  19884. fi
  19885. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19886. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19887. Usually this means the macro was only invoked conditionally." >&5
  19888. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19889. Usually this means the macro was only invoked conditionally." >&2;}
  19890. { (exit 1); exit 1; }; }
  19891. fi
  19892. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19893. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19894. Usually this means the macro was only invoked conditionally." >&5
  19895. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19896. Usually this means the macro was only invoked conditionally." >&2;}
  19897. { (exit 1); exit 1; }; }
  19898. fi
  19899. : ${CONFIG_STATUS=./config.status}
  19900. ac_clean_files_save=$ac_clean_files
  19901. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19902. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19903. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19904. cat >$CONFIG_STATUS <<_ACEOF
  19905. #! $SHELL
  19906. # Generated by $as_me.
  19907. # Run this file to recreate the current configuration.
  19908. # Compiler output produced by configure, useful for debugging
  19909. # configure, is in config.log if it exists.
  19910. debug=false
  19911. ac_cs_recheck=false
  19912. ac_cs_silent=false
  19913. SHELL=\${CONFIG_SHELL-$SHELL}
  19914. _ACEOF
  19915. cat >>$CONFIG_STATUS <<\_ACEOF
  19916. ## --------------------- ##
  19917. ## M4sh Initialization. ##
  19918. ## --------------------- ##
  19919. # Be more Bourne compatible
  19920. DUALCASE=1; export DUALCASE # for MKS sh
  19921. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19922. emulate sh
  19923. NULLCMD=:
  19924. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19925. # is contrary to our usage. Disable this feature.
  19926. alias -g '${1+"$@"}'='"$@"'
  19927. setopt NO_GLOB_SUBST
  19928. else
  19929. case `(set -o) 2>/dev/null` in
  19930. *posix*) set -o posix ;;
  19931. esac
  19932. fi
  19933. # PATH needs CR
  19934. # Avoid depending upon Character Ranges.
  19935. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19936. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19937. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19938. as_cr_digits='0123456789'
  19939. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19940. # The user is always right.
  19941. if test "${PATH_SEPARATOR+set}" != set; then
  19942. echo "#! /bin/sh" >conf$$.sh
  19943. echo "exit 0" >>conf$$.sh
  19944. chmod +x conf$$.sh
  19945. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19946. PATH_SEPARATOR=';'
  19947. else
  19948. PATH_SEPARATOR=:
  19949. fi
  19950. rm -f conf$$.sh
  19951. fi
  19952. # Support unset when possible.
  19953. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19954. as_unset=unset
  19955. else
  19956. as_unset=false
  19957. fi
  19958. # IFS
  19959. # We need space, tab and new line, in precisely that order. Quoting is
  19960. # there to prevent editors from complaining about space-tab.
  19961. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19962. # splitting by setting IFS to empty value.)
  19963. as_nl='
  19964. '
  19965. IFS=" "" $as_nl"
  19966. # Find who we are. Look in the path if we contain no directory separator.
  19967. case $0 in
  19968. *[\\/]* ) as_myself=$0 ;;
  19969. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19970. for as_dir in $PATH
  19971. do
  19972. IFS=$as_save_IFS
  19973. test -z "$as_dir" && as_dir=.
  19974. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19975. done
  19976. IFS=$as_save_IFS
  19977. ;;
  19978. esac
  19979. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19980. # in which case we are not to be found in the path.
  19981. if test "x$as_myself" = x; then
  19982. as_myself=$0
  19983. fi
  19984. if test ! -f "$as_myself"; then
  19985. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19986. { (exit 1); exit 1; }
  19987. fi
  19988. # Work around bugs in pre-3.0 UWIN ksh.
  19989. for as_var in ENV MAIL MAILPATH
  19990. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19991. done
  19992. PS1='$ '
  19993. PS2='> '
  19994. PS4='+ '
  19995. # NLS nuisances.
  19996. for as_var in \
  19997. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19998. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19999. LC_TELEPHONE LC_TIME
  20000. do
  20001. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20002. eval $as_var=C; export $as_var
  20003. else
  20004. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20005. fi
  20006. done
  20007. # Required to use basename.
  20008. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20009. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20010. as_expr=expr
  20011. else
  20012. as_expr=false
  20013. fi
  20014. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20015. as_basename=basename
  20016. else
  20017. as_basename=false
  20018. fi
  20019. # Name of the executable.
  20020. as_me=`$as_basename -- "$0" ||
  20021. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20022. X"$0" : 'X\(//\)$' \| \
  20023. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20024. echo X/"$0" |
  20025. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20026. s//\1/
  20027. q
  20028. }
  20029. /^X\/\(\/\/\)$/{
  20030. s//\1/
  20031. q
  20032. }
  20033. /^X\/\(\/\).*/{
  20034. s//\1/
  20035. q
  20036. }
  20037. s/.*/./; q'`
  20038. # CDPATH.
  20039. $as_unset CDPATH
  20040. as_lineno_1=$LINENO
  20041. as_lineno_2=$LINENO
  20042. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20043. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20044. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20045. # uniformly replaced by the line number. The first 'sed' inserts a
  20046. # line-number line after each line using $LINENO; the second 'sed'
  20047. # does the real work. The second script uses 'N' to pair each
  20048. # line-number line with the line containing $LINENO, and appends
  20049. # trailing '-' during substitution so that $LINENO is not a special
  20050. # case at line end.
  20051. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20052. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20053. # E. McMahon (1931-1989) for sed's syntax. :-)
  20054. sed -n '
  20055. p
  20056. /[$]LINENO/=
  20057. ' <$as_myself |
  20058. sed '
  20059. s/[$]LINENO.*/&-/
  20060. t lineno
  20061. b
  20062. :lineno
  20063. N
  20064. :loop
  20065. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20066. t loop
  20067. s/-\n.*//
  20068. ' >$as_me.lineno &&
  20069. chmod +x "$as_me.lineno" ||
  20070. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20071. { (exit 1); exit 1; }; }
  20072. # Don't try to exec as it changes $[0], causing all sort of problems
  20073. # (the dirname of $[0] is not the place where we might find the
  20074. # original and so on. Autoconf is especially sensitive to this).
  20075. . "./$as_me.lineno"
  20076. # Exit status is that of the last command.
  20077. exit
  20078. }
  20079. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20080. as_dirname=dirname
  20081. else
  20082. as_dirname=false
  20083. fi
  20084. ECHO_C= ECHO_N= ECHO_T=
  20085. case `echo -n x` in
  20086. -n*)
  20087. case `echo 'x\c'` in
  20088. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20089. *) ECHO_C='\c';;
  20090. esac;;
  20091. *)
  20092. ECHO_N='-n';;
  20093. esac
  20094. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20095. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20096. as_expr=expr
  20097. else
  20098. as_expr=false
  20099. fi
  20100. rm -f conf$$ conf$$.exe conf$$.file
  20101. if test -d conf$$.dir; then
  20102. rm -f conf$$.dir/conf$$.file
  20103. else
  20104. rm -f conf$$.dir
  20105. mkdir conf$$.dir
  20106. fi
  20107. echo >conf$$.file
  20108. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20109. as_ln_s='ln -s'
  20110. # ... but there are two gotchas:
  20111. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20112. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20113. # In both cases, we have to default to `cp -p'.
  20114. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20115. as_ln_s='cp -p'
  20116. elif ln conf$$.file conf$$ 2>/dev/null; then
  20117. as_ln_s=ln
  20118. else
  20119. as_ln_s='cp -p'
  20120. fi
  20121. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20122. rmdir conf$$.dir 2>/dev/null
  20123. if mkdir -p . 2>/dev/null; then
  20124. as_mkdir_p=:
  20125. else
  20126. test -d ./-p && rmdir ./-p
  20127. as_mkdir_p=false
  20128. fi
  20129. if test -x / >/dev/null 2>&1; then
  20130. as_test_x='test -x'
  20131. else
  20132. if ls -dL / >/dev/null 2>&1; then
  20133. as_ls_L_option=L
  20134. else
  20135. as_ls_L_option=
  20136. fi
  20137. as_test_x='
  20138. eval sh -c '\''
  20139. if test -d "$1"; then
  20140. test -d "$1/.";
  20141. else
  20142. case $1 in
  20143. -*)set "./$1";;
  20144. esac;
  20145. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20146. ???[sx]*):;;*)false;;esac;fi
  20147. '\'' sh
  20148. '
  20149. fi
  20150. as_executable_p=$as_test_x
  20151. # Sed expression to map a string onto a valid CPP name.
  20152. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20153. # Sed expression to map a string onto a valid variable name.
  20154. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20155. exec 6>&1
  20156. # Save the log message, to keep $[0] and so on meaningful, and to
  20157. # report actual input values of CONFIG_FILES etc. instead of their
  20158. # values after options handling.
  20159. ac_log="
  20160. This file was extended by aria2c $as_me 0.16.2, which was
  20161. generated by GNU Autoconf 2.61. Invocation command line was
  20162. CONFIG_FILES = $CONFIG_FILES
  20163. CONFIG_HEADERS = $CONFIG_HEADERS
  20164. CONFIG_LINKS = $CONFIG_LINKS
  20165. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20166. $ $0 $@
  20167. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20168. "
  20169. _ACEOF
  20170. cat >>$CONFIG_STATUS <<_ACEOF
  20171. # Files that config.status was made for.
  20172. config_files="$ac_config_files"
  20173. config_headers="$ac_config_headers"
  20174. config_commands="$ac_config_commands"
  20175. _ACEOF
  20176. cat >>$CONFIG_STATUS <<\_ACEOF
  20177. ac_cs_usage="\
  20178. \`$as_me' instantiates files from templates according to the
  20179. current configuration.
  20180. Usage: $0 [OPTIONS] [FILE]...
  20181. -h, --help print this help, then exit
  20182. -V, --version print version number and configuration settings, then exit
  20183. -q, --quiet do not print progress messages
  20184. -d, --debug don't remove temporary files
  20185. --recheck update $as_me by reconfiguring in the same conditions
  20186. --file=FILE[:TEMPLATE]
  20187. instantiate the configuration file FILE
  20188. --header=FILE[:TEMPLATE]
  20189. instantiate the configuration header FILE
  20190. Configuration files:
  20191. $config_files
  20192. Configuration headers:
  20193. $config_headers
  20194. Configuration commands:
  20195. $config_commands
  20196. Report bugs to <bug-autoconf@gnu.org>."
  20197. _ACEOF
  20198. cat >>$CONFIG_STATUS <<_ACEOF
  20199. ac_cs_version="\\
  20200. aria2c config.status 0.16.2
  20201. configured by $0, generated by GNU Autoconf 2.61,
  20202. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20203. Copyright (C) 2006 Free Software Foundation, Inc.
  20204. This config.status script is free software; the Free Software Foundation
  20205. gives unlimited permission to copy, distribute and modify it."
  20206. ac_pwd='$ac_pwd'
  20207. srcdir='$srcdir'
  20208. INSTALL='$INSTALL'
  20209. MKDIR_P='$MKDIR_P'
  20210. _ACEOF
  20211. cat >>$CONFIG_STATUS <<\_ACEOF
  20212. # If no file are specified by the user, then we need to provide default
  20213. # value. By we need to know if files were specified by the user.
  20214. ac_need_defaults=:
  20215. while test $# != 0
  20216. do
  20217. case $1 in
  20218. --*=*)
  20219. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20220. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20221. ac_shift=:
  20222. ;;
  20223. *)
  20224. ac_option=$1
  20225. ac_optarg=$2
  20226. ac_shift=shift
  20227. ;;
  20228. esac
  20229. case $ac_option in
  20230. # Handling of the options.
  20231. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20232. ac_cs_recheck=: ;;
  20233. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20234. echo "$ac_cs_version"; exit ;;
  20235. --debug | --debu | --deb | --de | --d | -d )
  20236. debug=: ;;
  20237. --file | --fil | --fi | --f )
  20238. $ac_shift
  20239. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20240. ac_need_defaults=false;;
  20241. --header | --heade | --head | --hea )
  20242. $ac_shift
  20243. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20244. ac_need_defaults=false;;
  20245. --he | --h)
  20246. # Conflict between --help and --header
  20247. { echo "$as_me: error: ambiguous option: $1
  20248. Try \`$0 --help' for more information." >&2
  20249. { (exit 1); exit 1; }; };;
  20250. --help | --hel | -h )
  20251. echo "$ac_cs_usage"; exit ;;
  20252. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20253. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20254. ac_cs_silent=: ;;
  20255. # This is an error.
  20256. -*) { echo "$as_me: error: unrecognized option: $1
  20257. Try \`$0 --help' for more information." >&2
  20258. { (exit 1); exit 1; }; } ;;
  20259. *) ac_config_targets="$ac_config_targets $1"
  20260. ac_need_defaults=false ;;
  20261. esac
  20262. shift
  20263. done
  20264. ac_configure_extra_args=
  20265. if $ac_cs_silent; then
  20266. exec 6>/dev/null
  20267. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20268. fi
  20269. _ACEOF
  20270. cat >>$CONFIG_STATUS <<_ACEOF
  20271. if \$ac_cs_recheck; then
  20272. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20273. CONFIG_SHELL=$SHELL
  20274. export CONFIG_SHELL
  20275. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20276. fi
  20277. _ACEOF
  20278. cat >>$CONFIG_STATUS <<\_ACEOF
  20279. exec 5>>config.log
  20280. {
  20281. echo
  20282. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20283. ## Running $as_me. ##
  20284. _ASBOX
  20285. echo "$ac_log"
  20286. } >&5
  20287. _ACEOF
  20288. cat >>$CONFIG_STATUS <<_ACEOF
  20289. #
  20290. # INIT-COMMANDS
  20291. #
  20292. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20293. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20294. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20295. # from automake < 1.5.
  20296. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20297. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20298. LINGUAS="${LINGUAS-%UNSET%}"
  20299. _ACEOF
  20300. cat >>$CONFIG_STATUS <<\_ACEOF
  20301. # Handling of arguments.
  20302. for ac_config_target in $ac_config_targets
  20303. do
  20304. case $ac_config_target in
  20305. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20306. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20307. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20308. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20309. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20310. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20311. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20312. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20313. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20314. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20315. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20316. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20317. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20318. { (exit 1); exit 1; }; };;
  20319. esac
  20320. done
  20321. # If the user did not use the arguments to specify the items to instantiate,
  20322. # then the envvar interface is used. Set only those that are not.
  20323. # We use the long form for the default assignment because of an extremely
  20324. # bizarre bug on SunOS 4.1.3.
  20325. if $ac_need_defaults; then
  20326. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20327. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20328. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20329. fi
  20330. # Have a temporary directory for convenience. Make it in the build tree
  20331. # simply because there is no reason against having it here, and in addition,
  20332. # creating and moving files from /tmp can sometimes cause problems.
  20333. # Hook for its removal unless debugging.
  20334. # Note that there is a small window in which the directory will not be cleaned:
  20335. # after its creation but before its name has been assigned to `$tmp'.
  20336. $debug ||
  20337. {
  20338. tmp=
  20339. trap 'exit_status=$?
  20340. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20341. ' 0
  20342. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20343. }
  20344. # Create a (secure) tmp directory for tmp files.
  20345. {
  20346. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20347. test -n "$tmp" && test -d "$tmp"
  20348. } ||
  20349. {
  20350. tmp=./conf$$-$RANDOM
  20351. (umask 077 && mkdir "$tmp")
  20352. } ||
  20353. {
  20354. echo "$me: cannot create a temporary directory in ." >&2
  20355. { (exit 1); exit 1; }
  20356. }
  20357. #
  20358. # Set up the sed scripts for CONFIG_FILES section.
  20359. #
  20360. # No need to generate the scripts if there are no CONFIG_FILES.
  20361. # This happens for instance when ./config.status config.h
  20362. if test -n "$CONFIG_FILES"; then
  20363. _ACEOF
  20364. ac_delim='%!_!# '
  20365. for ac_last_try in false false false false false :; do
  20366. cat >conf$$subs.sed <<_ACEOF
  20367. SHELL!$SHELL$ac_delim
  20368. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20369. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20370. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20371. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20372. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20373. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20374. exec_prefix!$exec_prefix$ac_delim
  20375. prefix!$prefix$ac_delim
  20376. program_transform_name!$program_transform_name$ac_delim
  20377. bindir!$bindir$ac_delim
  20378. sbindir!$sbindir$ac_delim
  20379. libexecdir!$libexecdir$ac_delim
  20380. datarootdir!$datarootdir$ac_delim
  20381. datadir!$datadir$ac_delim
  20382. sysconfdir!$sysconfdir$ac_delim
  20383. sharedstatedir!$sharedstatedir$ac_delim
  20384. localstatedir!$localstatedir$ac_delim
  20385. includedir!$includedir$ac_delim
  20386. oldincludedir!$oldincludedir$ac_delim
  20387. docdir!$docdir$ac_delim
  20388. infodir!$infodir$ac_delim
  20389. htmldir!$htmldir$ac_delim
  20390. dvidir!$dvidir$ac_delim
  20391. pdfdir!$pdfdir$ac_delim
  20392. psdir!$psdir$ac_delim
  20393. libdir!$libdir$ac_delim
  20394. localedir!$localedir$ac_delim
  20395. mandir!$mandir$ac_delim
  20396. DEFS!$DEFS$ac_delim
  20397. ECHO_C!$ECHO_C$ac_delim
  20398. ECHO_N!$ECHO_N$ac_delim
  20399. ECHO_T!$ECHO_T$ac_delim
  20400. LIBS!$LIBS$ac_delim
  20401. build_alias!$build_alias$ac_delim
  20402. host_alias!$host_alias$ac_delim
  20403. target_alias!$target_alias$ac_delim
  20404. build!$build$ac_delim
  20405. build_cpu!$build_cpu$ac_delim
  20406. build_vendor!$build_vendor$ac_delim
  20407. build_os!$build_os$ac_delim
  20408. host!$host$ac_delim
  20409. host_cpu!$host_cpu$ac_delim
  20410. host_vendor!$host_vendor$ac_delim
  20411. host_os!$host_os$ac_delim
  20412. target!$target$ac_delim
  20413. target_cpu!$target_cpu$ac_delim
  20414. target_vendor!$target_vendor$ac_delim
  20415. target_os!$target_os$ac_delim
  20416. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20417. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20418. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20419. am__isrc!$am__isrc$ac_delim
  20420. CYGPATH_W!$CYGPATH_W$ac_delim
  20421. PACKAGE!$PACKAGE$ac_delim
  20422. VERSION!$VERSION$ac_delim
  20423. ACLOCAL!$ACLOCAL$ac_delim
  20424. AUTOCONF!$AUTOCONF$ac_delim
  20425. AUTOMAKE!$AUTOMAKE$ac_delim
  20426. AUTOHEADER!$AUTOHEADER$ac_delim
  20427. MAKEINFO!$MAKEINFO$ac_delim
  20428. install_sh!$install_sh$ac_delim
  20429. STRIP!$STRIP$ac_delim
  20430. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20431. mkdir_p!$mkdir_p$ac_delim
  20432. AWK!$AWK$ac_delim
  20433. SET_MAKE!$SET_MAKE$ac_delim
  20434. am__leading_dot!$am__leading_dot$ac_delim
  20435. AMTAR!$AMTAR$ac_delim
  20436. am__tar!$am__tar$ac_delim
  20437. am__untar!$am__untar$ac_delim
  20438. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20439. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20440. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20441. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20442. CXX!$CXX$ac_delim
  20443. CXXFLAGS!$CXXFLAGS$ac_delim
  20444. LDFLAGS!$LDFLAGS$ac_delim
  20445. CPPFLAGS!$CPPFLAGS$ac_delim
  20446. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20447. EXEEXT!$EXEEXT$ac_delim
  20448. OBJEXT!$OBJEXT$ac_delim
  20449. DEPDIR!$DEPDIR$ac_delim
  20450. am__include!$am__include$ac_delim
  20451. am__quote!$am__quote$ac_delim
  20452. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20453. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20454. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20455. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20456. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20457. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20458. CC!$CC$ac_delim
  20459. CFLAGS!$CFLAGS$ac_delim
  20460. ac_ct_CC!$ac_ct_CC$ac_delim
  20461. CCDEPMODE!$CCDEPMODE$ac_delim
  20462. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20463. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20464. _ACEOF
  20465. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20466. break
  20467. elif $ac_last_try; then
  20468. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20469. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20470. { (exit 1); exit 1; }; }
  20471. else
  20472. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20473. fi
  20474. done
  20475. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20476. if test -n "$ac_eof"; then
  20477. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20478. ac_eof=`expr $ac_eof + 1`
  20479. fi
  20480. cat >>$CONFIG_STATUS <<_ACEOF
  20481. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20482. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20483. _ACEOF
  20484. sed '
  20485. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20486. s/^/s,@/; s/!/@,|#_!!_#|/
  20487. :n
  20488. t n
  20489. s/'"$ac_delim"'$/,g/; t
  20490. s/$/\\/; p
  20491. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20492. ' >>$CONFIG_STATUS <conf$$subs.sed
  20493. rm -f conf$$subs.sed
  20494. cat >>$CONFIG_STATUS <<_ACEOF
  20495. CEOF$ac_eof
  20496. _ACEOF
  20497. ac_delim='%!_!# '
  20498. for ac_last_try in false false false false false :; do
  20499. cat >conf$$subs.sed <<_ACEOF
  20500. RANLIB!$RANLIB$ac_delim
  20501. YACC!$YACC$ac_delim
  20502. YFLAGS!$YFLAGS$ac_delim
  20503. CXXCPP!$CXXCPP$ac_delim
  20504. GREP!$GREP$ac_delim
  20505. EGREP!$EGREP$ac_delim
  20506. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20507. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20508. XML_LIBS!$XML_LIBS$ac_delim
  20509. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20510. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20511. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20512. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20513. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20514. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20515. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20516. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20517. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20518. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20519. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20520. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20521. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20522. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20523. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20524. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20525. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20526. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20527. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20528. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20529. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20530. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20531. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20532. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20533. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20534. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20535. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20536. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20537. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20538. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20539. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20540. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20541. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20542. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20543. ALLOCA!$ALLOCA$ac_delim
  20544. USE_NLS!$USE_NLS$ac_delim
  20545. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20546. MSGFMT!$MSGFMT$ac_delim
  20547. GMSGFMT!$GMSGFMT$ac_delim
  20548. MSGFMT_015!$MSGFMT_015$ac_delim
  20549. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20550. XGETTEXT!$XGETTEXT$ac_delim
  20551. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20552. MSGMERGE!$MSGMERGE$ac_delim
  20553. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20554. GLIBC2!$GLIBC2$ac_delim
  20555. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20556. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20557. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20558. LIBPTH!$LIBPTH$ac_delim
  20559. LTLIBPTH!$LTLIBPTH$ac_delim
  20560. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20561. LIBTHREAD!$LIBTHREAD$ac_delim
  20562. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20563. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20564. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20565. LIBICONV!$LIBICONV$ac_delim
  20566. LTLIBICONV!$LTLIBICONV$ac_delim
  20567. INTLBISON!$INTLBISON$ac_delim
  20568. GLIBC21!$GLIBC21$ac_delim
  20569. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20570. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20571. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20572. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20573. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20574. WOE32DLL!$WOE32DLL$ac_delim
  20575. WOE32!$WOE32$ac_delim
  20576. WINDRES!$WINDRES$ac_delim
  20577. LTLIBC!$LTLIBC$ac_delim
  20578. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20579. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20580. CATOBJEXT!$CATOBJEXT$ac_delim
  20581. DATADIRNAME!$DATADIRNAME$ac_delim
  20582. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20583. GENCAT!$GENCAT$ac_delim
  20584. INTLOBJS!$INTLOBJS$ac_delim
  20585. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20586. INTLLIBS!$INTLLIBS$ac_delim
  20587. LIBINTL!$LIBINTL$ac_delim
  20588. LTLIBINTL!$LTLIBINTL$ac_delim
  20589. POSUB!$POSUB$ac_delim
  20590. LIBOBJS!$LIBOBJS$ac_delim
  20591. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20592. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20593. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20594. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20595. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20596. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20597. _ACEOF
  20598. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20599. break
  20600. elif $ac_last_try; then
  20601. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20602. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20603. { (exit 1); exit 1; }; }
  20604. else
  20605. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20606. fi
  20607. done
  20608. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20609. if test -n "$ac_eof"; then
  20610. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20611. ac_eof=`expr $ac_eof + 1`
  20612. fi
  20613. cat >>$CONFIG_STATUS <<_ACEOF
  20614. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20615. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20616. _ACEOF
  20617. sed '
  20618. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20619. s/^/s,@/; s/!/@,|#_!!_#|/
  20620. :n
  20621. t n
  20622. s/'"$ac_delim"'$/,g/; t
  20623. s/$/\\/; p
  20624. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20625. ' >>$CONFIG_STATUS <conf$$subs.sed
  20626. rm -f conf$$subs.sed
  20627. cat >>$CONFIG_STATUS <<_ACEOF
  20628. CEOF$ac_eof
  20629. _ACEOF
  20630. ac_delim='%!_!# '
  20631. for ac_last_try in false false false false false :; do
  20632. cat >conf$$subs.sed <<_ACEOF
  20633. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20634. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20635. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20636. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20637. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20638. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20639. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20640. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20641. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20642. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20643. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20644. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20645. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20646. _ACEOF
  20647. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
  20648. break
  20649. elif $ac_last_try; then
  20650. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20651. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20652. { (exit 1); exit 1; }; }
  20653. else
  20654. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20655. fi
  20656. done
  20657. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20658. if test -n "$ac_eof"; then
  20659. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20660. ac_eof=`expr $ac_eof + 1`
  20661. fi
  20662. cat >>$CONFIG_STATUS <<_ACEOF
  20663. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20664. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20665. _ACEOF
  20666. sed '
  20667. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20668. s/^/s,@/; s/!/@,|#_!!_#|/
  20669. :n
  20670. t n
  20671. s/'"$ac_delim"'$/,g/; t
  20672. s/$/\\/; p
  20673. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20674. ' >>$CONFIG_STATUS <conf$$subs.sed
  20675. rm -f conf$$subs.sed
  20676. cat >>$CONFIG_STATUS <<_ACEOF
  20677. :end
  20678. s/|#_!!_#|//g
  20679. CEOF$ac_eof
  20680. _ACEOF
  20681. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20682. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20683. # trailing colons and then remove the whole line if VPATH becomes empty
  20684. # (actually we leave an empty line to preserve line numbers).
  20685. if test "x$srcdir" = x.; then
  20686. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20687. s/:*\$(srcdir):*/:/
  20688. s/:*\${srcdir}:*/:/
  20689. s/:*@srcdir@:*/:/
  20690. s/^\([^=]*=[ ]*\):*/\1/
  20691. s/:*$//
  20692. s/^[^=]*=[ ]*$//
  20693. }'
  20694. fi
  20695. cat >>$CONFIG_STATUS <<\_ACEOF
  20696. fi # test -n "$CONFIG_FILES"
  20697. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20698. do
  20699. case $ac_tag in
  20700. :[FHLC]) ac_mode=$ac_tag; continue;;
  20701. esac
  20702. case $ac_mode$ac_tag in
  20703. :[FHL]*:*);;
  20704. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20705. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20706. { (exit 1); exit 1; }; };;
  20707. :[FH]-) ac_tag=-:-;;
  20708. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20709. esac
  20710. ac_save_IFS=$IFS
  20711. IFS=:
  20712. set x $ac_tag
  20713. IFS=$ac_save_IFS
  20714. shift
  20715. ac_file=$1
  20716. shift
  20717. case $ac_mode in
  20718. :L) ac_source=$1;;
  20719. :[FH])
  20720. ac_file_inputs=
  20721. for ac_f
  20722. do
  20723. case $ac_f in
  20724. -) ac_f="$tmp/stdin";;
  20725. *) # Look for the file first in the build tree, then in the source tree
  20726. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20727. # because $ac_f cannot contain `:'.
  20728. test -f "$ac_f" ||
  20729. case $ac_f in
  20730. [\\/$]*) false;;
  20731. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20732. esac ||
  20733. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20734. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20735. { (exit 1); exit 1; }; };;
  20736. esac
  20737. ac_file_inputs="$ac_file_inputs $ac_f"
  20738. done
  20739. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20740. # use $as_me), people would be surprised to read:
  20741. # /* config.h. Generated by config.status. */
  20742. configure_input="Generated from "`IFS=:
  20743. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20744. if test x"$ac_file" != x-; then
  20745. configure_input="$ac_file. $configure_input"
  20746. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20747. echo "$as_me: creating $ac_file" >&6;}
  20748. fi
  20749. case $ac_tag in
  20750. *:-:* | *:-) cat >"$tmp/stdin";;
  20751. esac
  20752. ;;
  20753. esac
  20754. ac_dir=`$as_dirname -- "$ac_file" ||
  20755. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20756. X"$ac_file" : 'X\(//\)[^/]' \| \
  20757. X"$ac_file" : 'X\(//\)$' \| \
  20758. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20759. echo X"$ac_file" |
  20760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20761. s//\1/
  20762. q
  20763. }
  20764. /^X\(\/\/\)[^/].*/{
  20765. s//\1/
  20766. q
  20767. }
  20768. /^X\(\/\/\)$/{
  20769. s//\1/
  20770. q
  20771. }
  20772. /^X\(\/\).*/{
  20773. s//\1/
  20774. q
  20775. }
  20776. s/.*/./; q'`
  20777. { as_dir="$ac_dir"
  20778. case $as_dir in #(
  20779. -*) as_dir=./$as_dir;;
  20780. esac
  20781. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20782. as_dirs=
  20783. while :; do
  20784. case $as_dir in #(
  20785. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20786. *) as_qdir=$as_dir;;
  20787. esac
  20788. as_dirs="'$as_qdir' $as_dirs"
  20789. as_dir=`$as_dirname -- "$as_dir" ||
  20790. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20791. X"$as_dir" : 'X\(//\)[^/]' \| \
  20792. X"$as_dir" : 'X\(//\)$' \| \
  20793. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20794. echo X"$as_dir" |
  20795. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20796. s//\1/
  20797. q
  20798. }
  20799. /^X\(\/\/\)[^/].*/{
  20800. s//\1/
  20801. q
  20802. }
  20803. /^X\(\/\/\)$/{
  20804. s//\1/
  20805. q
  20806. }
  20807. /^X\(\/\).*/{
  20808. s//\1/
  20809. q
  20810. }
  20811. s/.*/./; q'`
  20812. test -d "$as_dir" && break
  20813. done
  20814. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20815. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20816. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20817. { (exit 1); exit 1; }; }; }
  20818. ac_builddir=.
  20819. case "$ac_dir" in
  20820. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20821. *)
  20822. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20823. # A ".." for each directory in $ac_dir_suffix.
  20824. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20825. case $ac_top_builddir_sub in
  20826. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20827. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20828. esac ;;
  20829. esac
  20830. ac_abs_top_builddir=$ac_pwd
  20831. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20832. # for backward compatibility:
  20833. ac_top_builddir=$ac_top_build_prefix
  20834. case $srcdir in
  20835. .) # We are building in place.
  20836. ac_srcdir=.
  20837. ac_top_srcdir=$ac_top_builddir_sub
  20838. ac_abs_top_srcdir=$ac_pwd ;;
  20839. [\\/]* | ?:[\\/]* ) # Absolute name.
  20840. ac_srcdir=$srcdir$ac_dir_suffix;
  20841. ac_top_srcdir=$srcdir
  20842. ac_abs_top_srcdir=$srcdir ;;
  20843. *) # Relative name.
  20844. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20845. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20846. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20847. esac
  20848. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20849. case $ac_mode in
  20850. :F)
  20851. #
  20852. # CONFIG_FILE
  20853. #
  20854. case $INSTALL in
  20855. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20856. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20857. esac
  20858. ac_MKDIR_P=$MKDIR_P
  20859. case $MKDIR_P in
  20860. [\\/$]* | ?:[\\/]* ) ;;
  20861. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20862. esac
  20863. _ACEOF
  20864. cat >>$CONFIG_STATUS <<\_ACEOF
  20865. # If the template does not know about datarootdir, expand it.
  20866. # FIXME: This hack should be removed a few years after 2.60.
  20867. ac_datarootdir_hack=; ac_datarootdir_seen=
  20868. case `sed -n '/datarootdir/ {
  20869. p
  20870. q
  20871. }
  20872. /@datadir@/p
  20873. /@docdir@/p
  20874. /@infodir@/p
  20875. /@localedir@/p
  20876. /@mandir@/p
  20877. ' $ac_file_inputs` in
  20878. *datarootdir*) ac_datarootdir_seen=yes;;
  20879. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20880. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20881. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20882. _ACEOF
  20883. cat >>$CONFIG_STATUS <<_ACEOF
  20884. ac_datarootdir_hack='
  20885. s&@datadir@&$datadir&g
  20886. s&@docdir@&$docdir&g
  20887. s&@infodir@&$infodir&g
  20888. s&@localedir@&$localedir&g
  20889. s&@mandir@&$mandir&g
  20890. s&\\\${datarootdir}&$datarootdir&g' ;;
  20891. esac
  20892. _ACEOF
  20893. # Neutralize VPATH when `$srcdir' = `.'.
  20894. # Shell code in configure.ac might set extrasub.
  20895. # FIXME: do we really want to maintain this feature?
  20896. cat >>$CONFIG_STATUS <<_ACEOF
  20897. sed "$ac_vpsub
  20898. $extrasub
  20899. _ACEOF
  20900. cat >>$CONFIG_STATUS <<\_ACEOF
  20901. :t
  20902. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20903. s&@configure_input@&$configure_input&;t t
  20904. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20905. s&@srcdir@&$ac_srcdir&;t t
  20906. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20907. s&@top_srcdir@&$ac_top_srcdir&;t t
  20908. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20909. s&@builddir@&$ac_builddir&;t t
  20910. s&@abs_builddir@&$ac_abs_builddir&;t t
  20911. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20912. s&@INSTALL@&$ac_INSTALL&;t t
  20913. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20914. $ac_datarootdir_hack
  20915. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20916. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20917. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20918. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20919. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20920. which seems to be undefined. Please make sure it is defined." >&5
  20921. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20922. which seems to be undefined. Please make sure it is defined." >&2;}
  20923. rm -f "$tmp/stdin"
  20924. case $ac_file in
  20925. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20926. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20927. esac
  20928. ;;
  20929. :H)
  20930. #
  20931. # CONFIG_HEADER
  20932. #
  20933. _ACEOF
  20934. # Transform confdefs.h into a sed script `conftest.defines', that
  20935. # substitutes the proper values into config.h.in to produce config.h.
  20936. rm -f conftest.defines conftest.tail
  20937. # First, append a space to every undef/define line, to ease matching.
  20938. echo 's/$/ /' >conftest.defines
  20939. # Then, protect against being on the right side of a sed subst, or in
  20940. # an unquoted here document, in config.status. If some macros were
  20941. # called several times there might be several #defines for the same
  20942. # symbol, which is useless. But do not sort them, since the last
  20943. # AC_DEFINE must be honored.
  20944. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20945. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20946. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20947. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20948. # just an empty string.
  20949. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20950. ac_dB='\\)[ (].*,\\1define\\2'
  20951. ac_dC=' '
  20952. ac_dD=' ,'
  20953. uniq confdefs.h |
  20954. sed -n '
  20955. t rset
  20956. :rset
  20957. s/^[ ]*#[ ]*define[ ][ ]*//
  20958. t ok
  20959. d
  20960. :ok
  20961. s/[\\&,]/\\&/g
  20962. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20963. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20964. ' >>conftest.defines
  20965. # Remove the space that was appended to ease matching.
  20966. # Then replace #undef with comments. This is necessary, for
  20967. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20968. # on some systems where configure will not decide to define it.
  20969. # (The regexp can be short, since the line contains either #define or #undef.)
  20970. echo 's/ $//
  20971. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20972. # Break up conftest.defines:
  20973. ac_max_sed_lines=50
  20974. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20975. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20976. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20977. # et cetera.
  20978. ac_in='$ac_file_inputs'
  20979. ac_out='"$tmp/out1"'
  20980. ac_nxt='"$tmp/out2"'
  20981. while :
  20982. do
  20983. # Write a here document:
  20984. cat >>$CONFIG_STATUS <<_ACEOF
  20985. # First, check the format of the line:
  20986. cat >"\$tmp/defines.sed" <<\\CEOF
  20987. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20988. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20989. b
  20990. :def
  20991. _ACEOF
  20992. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20993. echo 'CEOF
  20994. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20995. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20996. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20997. grep . conftest.tail >/dev/null || break
  20998. rm -f conftest.defines
  20999. mv conftest.tail conftest.defines
  21000. done
  21001. rm -f conftest.defines conftest.tail
  21002. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21003. cat >>$CONFIG_STATUS <<\_ACEOF
  21004. if test x"$ac_file" != x-; then
  21005. echo "/* $configure_input */" >"$tmp/config.h"
  21006. cat "$ac_result" >>"$tmp/config.h"
  21007. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21008. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21009. echo "$as_me: $ac_file is unchanged" >&6;}
  21010. else
  21011. rm -f $ac_file
  21012. mv "$tmp/config.h" $ac_file
  21013. fi
  21014. else
  21015. echo "/* $configure_input */"
  21016. cat "$ac_result"
  21017. fi
  21018. rm -f "$tmp/out12"
  21019. # Compute $ac_file's index in $config_headers.
  21020. _am_arg=$ac_file
  21021. _am_stamp_count=1
  21022. for _am_header in $config_headers :; do
  21023. case $_am_header in
  21024. $_am_arg | $_am_arg:* )
  21025. break ;;
  21026. * )
  21027. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21028. esac
  21029. done
  21030. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21031. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21032. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21033. X"$_am_arg" : 'X\(//\)$' \| \
  21034. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21035. echo X"$_am_arg" |
  21036. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21037. s//\1/
  21038. q
  21039. }
  21040. /^X\(\/\/\)[^/].*/{
  21041. s//\1/
  21042. q
  21043. }
  21044. /^X\(\/\/\)$/{
  21045. s//\1/
  21046. q
  21047. }
  21048. /^X\(\/\).*/{
  21049. s//\1/
  21050. q
  21051. }
  21052. s/.*/./; q'`/stamp-h$_am_stamp_count
  21053. ;;
  21054. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21055. echo "$as_me: executing $ac_file commands" >&6;}
  21056. ;;
  21057. esac
  21058. case $ac_file$ac_mode in
  21059. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21060. # Strip MF so we end up with the name of the file.
  21061. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21062. # Check whether this is an Automake generated Makefile or not.
  21063. # We used to match only the files named `Makefile.in', but
  21064. # some people rename them; so instead we look at the file content.
  21065. # Grep'ing the first line is not enough: some people post-process
  21066. # each Makefile.in and add a new line on top of each file to say so.
  21067. # Grep'ing the whole file is not good either: AIX grep has a line
  21068. # limit of 2048, but all sed's we know have understand at least 4000.
  21069. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21070. dirpart=`$as_dirname -- "$mf" ||
  21071. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21072. X"$mf" : 'X\(//\)[^/]' \| \
  21073. X"$mf" : 'X\(//\)$' \| \
  21074. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21075. echo X"$mf" |
  21076. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21077. s//\1/
  21078. q
  21079. }
  21080. /^X\(\/\/\)[^/].*/{
  21081. s//\1/
  21082. q
  21083. }
  21084. /^X\(\/\/\)$/{
  21085. s//\1/
  21086. q
  21087. }
  21088. /^X\(\/\).*/{
  21089. s//\1/
  21090. q
  21091. }
  21092. s/.*/./; q'`
  21093. else
  21094. continue
  21095. fi
  21096. # Extract the definition of DEPDIR, am__include, and am__quote
  21097. # from the Makefile without running `make'.
  21098. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21099. test -z "$DEPDIR" && continue
  21100. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21101. test -z "am__include" && continue
  21102. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21103. # When using ansi2knr, U may be empty or an underscore; expand it
  21104. U=`sed -n 's/^U = //p' < "$mf"`
  21105. # Find all dependency output files, they are included files with
  21106. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21107. # simplest approach to changing $(DEPDIR) to its actual value in the
  21108. # expansion.
  21109. for file in `sed -n "
  21110. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21111. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21112. # Make sure the directory exists.
  21113. test -f "$dirpart/$file" && continue
  21114. fdir=`$as_dirname -- "$file" ||
  21115. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21116. X"$file" : 'X\(//\)[^/]' \| \
  21117. X"$file" : 'X\(//\)$' \| \
  21118. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21119. echo X"$file" |
  21120. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21121. s//\1/
  21122. q
  21123. }
  21124. /^X\(\/\/\)[^/].*/{
  21125. s//\1/
  21126. q
  21127. }
  21128. /^X\(\/\/\)$/{
  21129. s//\1/
  21130. q
  21131. }
  21132. /^X\(\/\).*/{
  21133. s//\1/
  21134. q
  21135. }
  21136. s/.*/./; q'`
  21137. { as_dir=$dirpart/$fdir
  21138. case $as_dir in #(
  21139. -*) as_dir=./$as_dir;;
  21140. esac
  21141. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21142. as_dirs=
  21143. while :; do
  21144. case $as_dir in #(
  21145. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21146. *) as_qdir=$as_dir;;
  21147. esac
  21148. as_dirs="'$as_qdir' $as_dirs"
  21149. as_dir=`$as_dirname -- "$as_dir" ||
  21150. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21151. X"$as_dir" : 'X\(//\)[^/]' \| \
  21152. X"$as_dir" : 'X\(//\)$' \| \
  21153. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21154. echo X"$as_dir" |
  21155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21156. s//\1/
  21157. q
  21158. }
  21159. /^X\(\/\/\)[^/].*/{
  21160. s//\1/
  21161. q
  21162. }
  21163. /^X\(\/\/\)$/{
  21164. s//\1/
  21165. q
  21166. }
  21167. /^X\(\/\).*/{
  21168. s//\1/
  21169. q
  21170. }
  21171. s/.*/./; q'`
  21172. test -d "$as_dir" && break
  21173. done
  21174. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21175. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21176. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21177. { (exit 1); exit 1; }; }; }
  21178. # echo "creating $dirpart/$file"
  21179. echo '# dummy' > "$dirpart/$file"
  21180. done
  21181. done
  21182. ;;
  21183. "po-directories":C)
  21184. for ac_file in $CONFIG_FILES; do
  21185. # Support "outfile[:infile[:infile...]]"
  21186. case "$ac_file" in
  21187. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21188. esac
  21189. # PO directories have a Makefile.in generated from Makefile.in.in.
  21190. case "$ac_file" in */Makefile.in)
  21191. # Adjust a relative srcdir.
  21192. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21193. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21194. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21195. # In autoconf-2.13 it is called $ac_given_srcdir.
  21196. # In autoconf-2.50 it is called $srcdir.
  21197. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21198. case "$ac_given_srcdir" in
  21199. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21200. /*) top_srcdir="$ac_given_srcdir" ;;
  21201. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21202. esac
  21203. # Treat a directory as a PO directory if and only if it has a
  21204. # POTFILES.in file. This allows packages to have multiple PO
  21205. # directories under different names or in different locations.
  21206. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21207. rm -f "$ac_dir/POTFILES"
  21208. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21209. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21210. POMAKEFILEDEPS="POTFILES.in"
  21211. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21212. # on $ac_dir but don't depend on user-specified configuration
  21213. # parameters.
  21214. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21215. # The LINGUAS file contains the set of available languages.
  21216. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21217. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21218. fi
  21219. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21220. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21221. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21222. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21223. else
  21224. # The set of available languages was given in configure.in.
  21225. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21226. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21227. fi
  21228. # Compute POFILES
  21229. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21230. # Compute UPDATEPOFILES
  21231. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21232. # Compute DUMMYPOFILES
  21233. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21234. # Compute GMOFILES
  21235. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21236. case "$ac_given_srcdir" in
  21237. .) srcdirpre= ;;
  21238. *) srcdirpre='$(srcdir)/' ;;
  21239. esac
  21240. POFILES=
  21241. UPDATEPOFILES=
  21242. DUMMYPOFILES=
  21243. GMOFILES=
  21244. for lang in $ALL_LINGUAS; do
  21245. POFILES="$POFILES $srcdirpre$lang.po"
  21246. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21247. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21248. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21249. done
  21250. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21251. # environment variable.
  21252. INST_LINGUAS=
  21253. if test -n "$ALL_LINGUAS"; then
  21254. for presentlang in $ALL_LINGUAS; do
  21255. useit=no
  21256. if test "%UNSET%" != "$LINGUAS"; then
  21257. desiredlanguages="$LINGUAS"
  21258. else
  21259. desiredlanguages="$ALL_LINGUAS"
  21260. fi
  21261. for desiredlang in $desiredlanguages; do
  21262. # Use the presentlang catalog if desiredlang is
  21263. # a. equal to presentlang, or
  21264. # b. a variant of presentlang (because in this case,
  21265. # presentlang can be used as a fallback for messages
  21266. # which are not translated in the desiredlang catalog).
  21267. case "$desiredlang" in
  21268. "$presentlang"*) useit=yes;;
  21269. esac
  21270. done
  21271. if test $useit = yes; then
  21272. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21273. fi
  21274. done
  21275. fi
  21276. CATALOGS=
  21277. if test -n "$INST_LINGUAS"; then
  21278. for lang in $INST_LINGUAS; do
  21279. CATALOGS="$CATALOGS $lang.gmo"
  21280. done
  21281. fi
  21282. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21283. 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"
  21284. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21285. if test -f "$f"; then
  21286. case "$f" in
  21287. *.orig | *.bak | *~) ;;
  21288. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21289. esac
  21290. fi
  21291. done
  21292. fi
  21293. ;;
  21294. esac
  21295. done ;;
  21296. esac
  21297. done # for ac_tag
  21298. { (exit 0); exit 0; }
  21299. _ACEOF
  21300. chmod +x $CONFIG_STATUS
  21301. ac_clean_files=$ac_clean_files_save
  21302. # configure is writing to config.log, and then calls config.status.
  21303. # config.status does its own redirection, appending to config.log.
  21304. # Unfortunately, on DOS this fails, as config.log is still kept open
  21305. # by configure, so config.status won't be able to write to it; its
  21306. # output is simply discarded. So we exec the FD to /dev/null,
  21307. # effectively closing config.log, so it can be properly (re)opened and
  21308. # appended to by config.status. When coming back to configure, we
  21309. # need to make the FD available again.
  21310. if test "$no_create" != yes; then
  21311. ac_cs_success=:
  21312. ac_config_status_args=
  21313. test "$silent" = yes &&
  21314. ac_config_status_args="$ac_config_status_args --quiet"
  21315. exec 5>/dev/null
  21316. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21317. exec 5>>config.log
  21318. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21319. # would make configure fail if this is the last instruction.
  21320. $ac_cs_success || { (exit 1); exit 1; }
  21321. fi
  21322. echo " "
  21323. echo "Build: $build"
  21324. echo "Target: $target"
  21325. echo "Install prefix: $prefix"
  21326. echo "CFLAGS: $CFLAGS"
  21327. echo "CPPFLAGS: $CPPFLAGS"
  21328. echo "LDFLAGS: $LDFLAGS"
  21329. echo "LIBS: $LIBS"
  21330. echo "SQLite3: $have_sqlite3"
  21331. echo "GnuTLS: $have_libgnutls"
  21332. echo "OpenSSL: $have_openssl"
  21333. echo "LibXML2: $have_libxml2"
  21334. echo "LibExpat: $have_libexpat"
  21335. echo "LibAres: $have_libares"
  21336. echo "LibCares: $have_libcares"
  21337. echo "Libz: $have_libz"
  21338. echo "Bittorrent: $enable_bittorrent"
  21339. echo "Metalink: $enable_metalink"