configure 667 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.16.0b.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.16.0b'
  496. PACKAGE_STRING='aria2c 0.16.0b'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. 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.0b 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.0b:";;
  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.0b
  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.0b, 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.0b'
  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. for ac_header in winsock2.h \
  7175. ws2tcpip.h \
  7176. argz.h \
  7177. arpa/inet.h \
  7178. fcntl.h \
  7179. float.h \
  7180. inttypes.h \
  7181. io.h \
  7182. langinfo.h \
  7183. libintl.h \
  7184. limits.h \
  7185. locale.h \
  7186. malloc.h \
  7187. netdb.h \
  7188. netinet/in.h \
  7189. stddef.h \
  7190. stdint.h \
  7191. stdio_ext.h \
  7192. stdlib.h \
  7193. string.h \
  7194. strings.h \
  7195. sys/ioctl.h \
  7196. sys/param.h \
  7197. sys/socket.h \
  7198. sys/time.h \
  7199. termios.h \
  7200. unistd.h \
  7201. wchar.h
  7202. do
  7203. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7204. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7205. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7206. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7207. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7208. echo $ECHO_N "(cached) $ECHO_C" >&6
  7209. fi
  7210. ac_res=`eval echo '${'$as_ac_Header'}'`
  7211. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7212. echo "${ECHO_T}$ac_res" >&6; }
  7213. else
  7214. # Is the header compilable?
  7215. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7216. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7217. cat >conftest.$ac_ext <<_ACEOF
  7218. /* confdefs.h. */
  7219. _ACEOF
  7220. cat confdefs.h >>conftest.$ac_ext
  7221. cat >>conftest.$ac_ext <<_ACEOF
  7222. /* end confdefs.h. */
  7223. $ac_includes_default
  7224. #include <$ac_header>
  7225. _ACEOF
  7226. rm -f conftest.$ac_objext
  7227. if { (ac_try="$ac_compile"
  7228. case "(($ac_try" in
  7229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7230. *) ac_try_echo=$ac_try;;
  7231. esac
  7232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7233. (eval "$ac_compile") 2>conftest.er1
  7234. ac_status=$?
  7235. grep -v '^ *+' conftest.er1 >conftest.err
  7236. rm -f conftest.er1
  7237. cat conftest.err >&5
  7238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7239. (exit $ac_status); } && {
  7240. test -z "$ac_cxx_werror_flag" ||
  7241. test ! -s conftest.err
  7242. } && test -s conftest.$ac_objext; then
  7243. ac_header_compiler=yes
  7244. else
  7245. echo "$as_me: failed program was:" >&5
  7246. sed 's/^/| /' conftest.$ac_ext >&5
  7247. ac_header_compiler=no
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7250. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7251. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7252. # Is the header present?
  7253. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7254. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7255. cat >conftest.$ac_ext <<_ACEOF
  7256. /* confdefs.h. */
  7257. _ACEOF
  7258. cat confdefs.h >>conftest.$ac_ext
  7259. cat >>conftest.$ac_ext <<_ACEOF
  7260. /* end confdefs.h. */
  7261. #include <$ac_header>
  7262. _ACEOF
  7263. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7264. case "(($ac_try" in
  7265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7266. *) ac_try_echo=$ac_try;;
  7267. esac
  7268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7269. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7270. ac_status=$?
  7271. grep -v '^ *+' conftest.er1 >conftest.err
  7272. rm -f conftest.er1
  7273. cat conftest.err >&5
  7274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7275. (exit $ac_status); } >/dev/null && {
  7276. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7277. test ! -s conftest.err
  7278. }; then
  7279. ac_header_preproc=yes
  7280. else
  7281. echo "$as_me: failed program was:" >&5
  7282. sed 's/^/| /' conftest.$ac_ext >&5
  7283. ac_header_preproc=no
  7284. fi
  7285. rm -f conftest.err conftest.$ac_ext
  7286. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7287. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7288. # So? What about this header?
  7289. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7290. yes:no: )
  7291. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7292. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7293. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7294. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7295. ac_header_preproc=yes
  7296. ;;
  7297. no:yes:* )
  7298. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7299. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7300. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7301. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7302. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7303. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7304. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7305. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7306. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7307. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7308. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7309. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7310. ( cat <<\_ASBOX
  7311. ## ----------------------------------------------- ##
  7312. ## Report this to t-tujikawa@users.sourceforge.net ##
  7313. ## ----------------------------------------------- ##
  7314. _ASBOX
  7315. ) | sed "s/^/$as_me: WARNING: /" >&2
  7316. ;;
  7317. esac
  7318. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7319. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7320. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7321. echo $ECHO_N "(cached) $ECHO_C" >&6
  7322. else
  7323. eval "$as_ac_Header=\$ac_header_preproc"
  7324. fi
  7325. ac_res=`eval echo '${'$as_ac_Header'}'`
  7326. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7327. echo "${ECHO_T}$ac_res" >&6; }
  7328. fi
  7329. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7330. cat >>confdefs.h <<_ACEOF
  7331. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7332. _ACEOF
  7333. fi
  7334. done
  7335. # Checks for typedefs, structures, and compiler characteristics.
  7336. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7337. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7338. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7339. echo $ECHO_N "(cached) $ECHO_C" >&6
  7340. else
  7341. cat >conftest.$ac_ext <<_ACEOF
  7342. /* confdefs.h. */
  7343. _ACEOF
  7344. cat confdefs.h >>conftest.$ac_ext
  7345. cat >>conftest.$ac_ext <<_ACEOF
  7346. /* end confdefs.h. */
  7347. #include <stdbool.h>
  7348. #ifndef bool
  7349. "error: bool is not defined"
  7350. #endif
  7351. #ifndef false
  7352. "error: false is not defined"
  7353. #endif
  7354. #if false
  7355. "error: false is not 0"
  7356. #endif
  7357. #ifndef true
  7358. "error: true is not defined"
  7359. #endif
  7360. #if true != 1
  7361. "error: true is not 1"
  7362. #endif
  7363. #ifndef __bool_true_false_are_defined
  7364. "error: __bool_true_false_are_defined is not defined"
  7365. #endif
  7366. struct s { _Bool s: 1; _Bool t; } s;
  7367. char a[true == 1 ? 1 : -1];
  7368. char b[false == 0 ? 1 : -1];
  7369. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7370. char d[(bool) 0.5 == true ? 1 : -1];
  7371. bool e = &s;
  7372. char f[(_Bool) 0.0 == false ? 1 : -1];
  7373. char g[true];
  7374. char h[sizeof (_Bool)];
  7375. char i[sizeof s.t];
  7376. enum { j = false, k = true, l = false * true, m = true * 256 };
  7377. _Bool n[m];
  7378. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7379. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7380. # if defined __xlc__ || defined __GNUC__
  7381. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7382. reported by James Lemley on 2005-10-05; see
  7383. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7384. This test is not quite right, since xlc is allowed to
  7385. reject this program, as the initializer for xlcbug is
  7386. not one of the forms that C requires support for.
  7387. However, doing the test right would require a runtime
  7388. test, and that would make cross-compilation harder.
  7389. Let us hope that IBM fixes the xlc bug, and also adds
  7390. support for this kind of constant expression. In the
  7391. meantime, this test will reject xlc, which is OK, since
  7392. our stdbool.h substitute should suffice. We also test
  7393. this with GCC, where it should work, to detect more
  7394. quickly whether someone messes up the test in the
  7395. future. */
  7396. char digs[] = "0123456789";
  7397. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7398. # endif
  7399. /* Catch a bug in an HP-UX C compiler. See
  7400. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7401. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7402. */
  7403. _Bool q = true;
  7404. _Bool *pq = &q;
  7405. int
  7406. main ()
  7407. {
  7408. *pq |= q;
  7409. *pq |= ! q;
  7410. /* Refer to every declared value, to avoid compiler optimizations. */
  7411. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7412. + !m + !n + !o + !p + !q + !pq);
  7413. ;
  7414. return 0;
  7415. }
  7416. _ACEOF
  7417. rm -f conftest.$ac_objext
  7418. if { (ac_try="$ac_compile"
  7419. case "(($ac_try" in
  7420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7421. *) ac_try_echo=$ac_try;;
  7422. esac
  7423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7424. (eval "$ac_compile") 2>conftest.er1
  7425. ac_status=$?
  7426. grep -v '^ *+' conftest.er1 >conftest.err
  7427. rm -f conftest.er1
  7428. cat conftest.err >&5
  7429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7430. (exit $ac_status); } && {
  7431. test -z "$ac_cxx_werror_flag" ||
  7432. test ! -s conftest.err
  7433. } && test -s conftest.$ac_objext; then
  7434. ac_cv_header_stdbool_h=yes
  7435. else
  7436. echo "$as_me: failed program was:" >&5
  7437. sed 's/^/| /' conftest.$ac_ext >&5
  7438. ac_cv_header_stdbool_h=no
  7439. fi
  7440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7441. fi
  7442. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7443. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7444. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7445. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7446. if test "${ac_cv_type__Bool+set}" = set; then
  7447. echo $ECHO_N "(cached) $ECHO_C" >&6
  7448. else
  7449. cat >conftest.$ac_ext <<_ACEOF
  7450. /* confdefs.h. */
  7451. _ACEOF
  7452. cat confdefs.h >>conftest.$ac_ext
  7453. cat >>conftest.$ac_ext <<_ACEOF
  7454. /* end confdefs.h. */
  7455. $ac_includes_default
  7456. typedef _Bool ac__type_new_;
  7457. int
  7458. main ()
  7459. {
  7460. if ((ac__type_new_ *) 0)
  7461. return 0;
  7462. if (sizeof (ac__type_new_))
  7463. return 0;
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. rm -f conftest.$ac_objext
  7469. if { (ac_try="$ac_compile"
  7470. case "(($ac_try" in
  7471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7472. *) ac_try_echo=$ac_try;;
  7473. esac
  7474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7475. (eval "$ac_compile") 2>conftest.er1
  7476. ac_status=$?
  7477. grep -v '^ *+' conftest.er1 >conftest.err
  7478. rm -f conftest.er1
  7479. cat conftest.err >&5
  7480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. (exit $ac_status); } && {
  7482. test -z "$ac_cxx_werror_flag" ||
  7483. test ! -s conftest.err
  7484. } && test -s conftest.$ac_objext; then
  7485. ac_cv_type__Bool=yes
  7486. else
  7487. echo "$as_me: failed program was:" >&5
  7488. sed 's/^/| /' conftest.$ac_ext >&5
  7489. ac_cv_type__Bool=no
  7490. fi
  7491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7492. fi
  7493. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7494. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7495. if test $ac_cv_type__Bool = yes; then
  7496. cat >>confdefs.h <<_ACEOF
  7497. #define HAVE__BOOL 1
  7498. _ACEOF
  7499. fi
  7500. if test $ac_cv_header_stdbool_h = yes; then
  7501. cat >>confdefs.h <<\_ACEOF
  7502. #define HAVE_STDBOOL_H 1
  7503. _ACEOF
  7504. fi
  7505. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7506. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7507. if test "${ac_cv_c_const+set}" = set; then
  7508. echo $ECHO_N "(cached) $ECHO_C" >&6
  7509. else
  7510. cat >conftest.$ac_ext <<_ACEOF
  7511. /* confdefs.h. */
  7512. _ACEOF
  7513. cat confdefs.h >>conftest.$ac_ext
  7514. cat >>conftest.$ac_ext <<_ACEOF
  7515. /* end confdefs.h. */
  7516. int
  7517. main ()
  7518. {
  7519. /* FIXME: Include the comments suggested by Paul. */
  7520. #ifndef __cplusplus
  7521. /* Ultrix mips cc rejects this. */
  7522. typedef int charset[2];
  7523. const charset cs;
  7524. /* SunOS 4.1.1 cc rejects this. */
  7525. char const *const *pcpcc;
  7526. char **ppc;
  7527. /* NEC SVR4.0.2 mips cc rejects this. */
  7528. struct point {int x, y;};
  7529. static struct point const zero = {0,0};
  7530. /* AIX XL C 1.02.0.0 rejects this.
  7531. It does not let you subtract one const X* pointer from another in
  7532. an arm of an if-expression whose if-part is not a constant
  7533. expression */
  7534. const char *g = "string";
  7535. pcpcc = &g + (g ? g-g : 0);
  7536. /* HPUX 7.0 cc rejects these. */
  7537. ++pcpcc;
  7538. ppc = (char**) pcpcc;
  7539. pcpcc = (char const *const *) ppc;
  7540. { /* SCO 3.2v4 cc rejects this. */
  7541. char *t;
  7542. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7543. *t++ = 0;
  7544. if (s) return 0;
  7545. }
  7546. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7547. int x[] = {25, 17};
  7548. const int *foo = &x[0];
  7549. ++foo;
  7550. }
  7551. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7552. typedef const int *iptr;
  7553. iptr p = 0;
  7554. ++p;
  7555. }
  7556. { /* AIX XL C 1.02.0.0 rejects this saying
  7557. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7558. struct s { int j; const int *ap[3]; };
  7559. struct s *b; b->j = 5;
  7560. }
  7561. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7562. const int foo = 10;
  7563. if (!foo) return 0;
  7564. }
  7565. return !cs[0] && !zero.x;
  7566. #endif
  7567. ;
  7568. return 0;
  7569. }
  7570. _ACEOF
  7571. rm -f conftest.$ac_objext
  7572. if { (ac_try="$ac_compile"
  7573. case "(($ac_try" in
  7574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7575. *) ac_try_echo=$ac_try;;
  7576. esac
  7577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7578. (eval "$ac_compile") 2>conftest.er1
  7579. ac_status=$?
  7580. grep -v '^ *+' conftest.er1 >conftest.err
  7581. rm -f conftest.er1
  7582. cat conftest.err >&5
  7583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7584. (exit $ac_status); } && {
  7585. test -z "$ac_cxx_werror_flag" ||
  7586. test ! -s conftest.err
  7587. } && test -s conftest.$ac_objext; then
  7588. ac_cv_c_const=yes
  7589. else
  7590. echo "$as_me: failed program was:" >&5
  7591. sed 's/^/| /' conftest.$ac_ext >&5
  7592. ac_cv_c_const=no
  7593. fi
  7594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7595. fi
  7596. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7597. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7598. if test $ac_cv_c_const = no; then
  7599. cat >>confdefs.h <<\_ACEOF
  7600. #define const
  7601. _ACEOF
  7602. fi
  7603. { echo "$as_me:$LINENO: checking for inline" >&5
  7604. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7605. if test "${ac_cv_c_inline+set}" = set; then
  7606. echo $ECHO_N "(cached) $ECHO_C" >&6
  7607. else
  7608. ac_cv_c_inline=no
  7609. for ac_kw in inline __inline__ __inline; do
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. #ifndef __cplusplus
  7617. typedef int foo_t;
  7618. static $ac_kw foo_t static_foo () {return 0; }
  7619. $ac_kw foo_t foo () {return 0; }
  7620. #endif
  7621. _ACEOF
  7622. rm -f conftest.$ac_objext
  7623. if { (ac_try="$ac_compile"
  7624. case "(($ac_try" in
  7625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7626. *) ac_try_echo=$ac_try;;
  7627. esac
  7628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7629. (eval "$ac_compile") 2>conftest.er1
  7630. ac_status=$?
  7631. grep -v '^ *+' conftest.er1 >conftest.err
  7632. rm -f conftest.er1
  7633. cat conftest.err >&5
  7634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7635. (exit $ac_status); } && {
  7636. test -z "$ac_cxx_werror_flag" ||
  7637. test ! -s conftest.err
  7638. } && test -s conftest.$ac_objext; then
  7639. ac_cv_c_inline=$ac_kw
  7640. else
  7641. echo "$as_me: failed program was:" >&5
  7642. sed 's/^/| /' conftest.$ac_ext >&5
  7643. fi
  7644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7645. test "$ac_cv_c_inline" != no && break
  7646. done
  7647. fi
  7648. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7649. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7650. case $ac_cv_c_inline in
  7651. inline | yes) ;;
  7652. *)
  7653. case $ac_cv_c_inline in
  7654. no) ac_val=;;
  7655. *) ac_val=$ac_cv_c_inline;;
  7656. esac
  7657. cat >>confdefs.h <<_ACEOF
  7658. #ifndef __cplusplus
  7659. #define inline $ac_val
  7660. #endif
  7661. _ACEOF
  7662. ;;
  7663. esac
  7664. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7665. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7666. if test "${ac_cv_c_int16_t+set}" = set; then
  7667. echo $ECHO_N "(cached) $ECHO_C" >&6
  7668. else
  7669. ac_cv_c_int16_t=no
  7670. for ac_type in 'int16_t' 'int' 'long int' \
  7671. 'long long int' 'short int' 'signed char'; do
  7672. cat >conftest.$ac_ext <<_ACEOF
  7673. /* confdefs.h. */
  7674. _ACEOF
  7675. cat confdefs.h >>conftest.$ac_ext
  7676. cat >>conftest.$ac_ext <<_ACEOF
  7677. /* end confdefs.h. */
  7678. $ac_includes_default
  7679. int
  7680. main ()
  7681. {
  7682. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7683. test_array [0] = 0
  7684. ;
  7685. return 0;
  7686. }
  7687. _ACEOF
  7688. rm -f conftest.$ac_objext
  7689. if { (ac_try="$ac_compile"
  7690. case "(($ac_try" in
  7691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7692. *) ac_try_echo=$ac_try;;
  7693. esac
  7694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7695. (eval "$ac_compile") 2>conftest.er1
  7696. ac_status=$?
  7697. grep -v '^ *+' conftest.er1 >conftest.err
  7698. rm -f conftest.er1
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } && {
  7702. test -z "$ac_cxx_werror_flag" ||
  7703. test ! -s conftest.err
  7704. } && test -s conftest.$ac_objext; then
  7705. cat >conftest.$ac_ext <<_ACEOF
  7706. /* confdefs.h. */
  7707. _ACEOF
  7708. cat confdefs.h >>conftest.$ac_ext
  7709. cat >>conftest.$ac_ext <<_ACEOF
  7710. /* end confdefs.h. */
  7711. $ac_includes_default
  7712. int
  7713. main ()
  7714. {
  7715. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7716. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7717. test_array [0] = 0
  7718. ;
  7719. return 0;
  7720. }
  7721. _ACEOF
  7722. rm -f conftest.$ac_objext
  7723. if { (ac_try="$ac_compile"
  7724. case "(($ac_try" in
  7725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7726. *) ac_try_echo=$ac_try;;
  7727. esac
  7728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7729. (eval "$ac_compile") 2>conftest.er1
  7730. ac_status=$?
  7731. grep -v '^ *+' conftest.er1 >conftest.err
  7732. rm -f conftest.er1
  7733. cat conftest.err >&5
  7734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7735. (exit $ac_status); } && {
  7736. test -z "$ac_cxx_werror_flag" ||
  7737. test ! -s conftest.err
  7738. } && test -s conftest.$ac_objext; then
  7739. :
  7740. else
  7741. echo "$as_me: failed program was:" >&5
  7742. sed 's/^/| /' conftest.$ac_ext >&5
  7743. case $ac_type in
  7744. int16_t) ac_cv_c_int16_t=yes ;;
  7745. *) ac_cv_c_int16_t=$ac_type ;;
  7746. esac
  7747. fi
  7748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7749. else
  7750. echo "$as_me: failed program was:" >&5
  7751. sed 's/^/| /' conftest.$ac_ext >&5
  7752. fi
  7753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7754. test "$ac_cv_c_int16_t" != no && break
  7755. done
  7756. fi
  7757. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7758. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7759. case $ac_cv_c_int16_t in #(
  7760. no|yes) ;; #(
  7761. *)
  7762. cat >>confdefs.h <<_ACEOF
  7763. #define int16_t $ac_cv_c_int16_t
  7764. _ACEOF
  7765. ;;
  7766. esac
  7767. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7768. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7769. if test "${ac_cv_c_int32_t+set}" = set; then
  7770. echo $ECHO_N "(cached) $ECHO_C" >&6
  7771. else
  7772. ac_cv_c_int32_t=no
  7773. for ac_type in 'int32_t' 'int' 'long int' \
  7774. 'long long int' 'short int' 'signed char'; do
  7775. cat >conftest.$ac_ext <<_ACEOF
  7776. /* confdefs.h. */
  7777. _ACEOF
  7778. cat confdefs.h >>conftest.$ac_ext
  7779. cat >>conftest.$ac_ext <<_ACEOF
  7780. /* end confdefs.h. */
  7781. $ac_includes_default
  7782. int
  7783. main ()
  7784. {
  7785. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7786. test_array [0] = 0
  7787. ;
  7788. return 0;
  7789. }
  7790. _ACEOF
  7791. rm -f conftest.$ac_objext
  7792. if { (ac_try="$ac_compile"
  7793. case "(($ac_try" in
  7794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7795. *) ac_try_echo=$ac_try;;
  7796. esac
  7797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7798. (eval "$ac_compile") 2>conftest.er1
  7799. ac_status=$?
  7800. grep -v '^ *+' conftest.er1 >conftest.err
  7801. rm -f conftest.er1
  7802. cat conftest.err >&5
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); } && {
  7805. test -z "$ac_cxx_werror_flag" ||
  7806. test ! -s conftest.err
  7807. } && test -s conftest.$ac_objext; then
  7808. cat >conftest.$ac_ext <<_ACEOF
  7809. /* confdefs.h. */
  7810. _ACEOF
  7811. cat confdefs.h >>conftest.$ac_ext
  7812. cat >>conftest.$ac_ext <<_ACEOF
  7813. /* end confdefs.h. */
  7814. $ac_includes_default
  7815. int
  7816. main ()
  7817. {
  7818. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7819. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  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. :
  7843. else
  7844. echo "$as_me: failed program was:" >&5
  7845. sed 's/^/| /' conftest.$ac_ext >&5
  7846. case $ac_type in
  7847. int32_t) ac_cv_c_int32_t=yes ;;
  7848. *) ac_cv_c_int32_t=$ac_type ;;
  7849. esac
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7852. else
  7853. echo "$as_me: failed program was:" >&5
  7854. sed 's/^/| /' conftest.$ac_ext >&5
  7855. fi
  7856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7857. test "$ac_cv_c_int32_t" != no && break
  7858. done
  7859. fi
  7860. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7861. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7862. case $ac_cv_c_int32_t in #(
  7863. no|yes) ;; #(
  7864. *)
  7865. cat >>confdefs.h <<_ACEOF
  7866. #define int32_t $ac_cv_c_int32_t
  7867. _ACEOF
  7868. ;;
  7869. esac
  7870. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7871. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7872. if test "${ac_cv_c_int64_t+set}" = set; then
  7873. echo $ECHO_N "(cached) $ECHO_C" >&6
  7874. else
  7875. ac_cv_c_int64_t=no
  7876. for ac_type in 'int64_t' 'int' 'long int' \
  7877. 'long long int' 'short int' 'signed char'; do
  7878. cat >conftest.$ac_ext <<_ACEOF
  7879. /* confdefs.h. */
  7880. _ACEOF
  7881. cat confdefs.h >>conftest.$ac_ext
  7882. cat >>conftest.$ac_ext <<_ACEOF
  7883. /* end confdefs.h. */
  7884. $ac_includes_default
  7885. int
  7886. main ()
  7887. {
  7888. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7889. test_array [0] = 0
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext
  7895. if { (ac_try="$ac_compile"
  7896. case "(($ac_try" in
  7897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7898. *) ac_try_echo=$ac_try;;
  7899. esac
  7900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7901. (eval "$ac_compile") 2>conftest.er1
  7902. ac_status=$?
  7903. grep -v '^ *+' conftest.er1 >conftest.err
  7904. rm -f conftest.er1
  7905. cat conftest.err >&5
  7906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. (exit $ac_status); } && {
  7908. test -z "$ac_cxx_werror_flag" ||
  7909. test ! -s conftest.err
  7910. } && test -s conftest.$ac_objext; then
  7911. cat >conftest.$ac_ext <<_ACEOF
  7912. /* confdefs.h. */
  7913. _ACEOF
  7914. cat confdefs.h >>conftest.$ac_ext
  7915. cat >>conftest.$ac_ext <<_ACEOF
  7916. /* end confdefs.h. */
  7917. $ac_includes_default
  7918. int
  7919. main ()
  7920. {
  7921. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7922. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  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. :
  7946. else
  7947. echo "$as_me: failed program was:" >&5
  7948. sed 's/^/| /' conftest.$ac_ext >&5
  7949. case $ac_type in
  7950. int64_t) ac_cv_c_int64_t=yes ;;
  7951. *) ac_cv_c_int64_t=$ac_type ;;
  7952. esac
  7953. fi
  7954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7955. else
  7956. echo "$as_me: failed program was:" >&5
  7957. sed 's/^/| /' conftest.$ac_ext >&5
  7958. fi
  7959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7960. test "$ac_cv_c_int64_t" != no && break
  7961. done
  7962. fi
  7963. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7964. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7965. case $ac_cv_c_int64_t in #(
  7966. no|yes) ;; #(
  7967. *)
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define int64_t $ac_cv_c_int64_t
  7970. _ACEOF
  7971. ;;
  7972. esac
  7973. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7974. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7975. if test "${ac_cv_c_int8_t+set}" = set; then
  7976. echo $ECHO_N "(cached) $ECHO_C" >&6
  7977. else
  7978. ac_cv_c_int8_t=no
  7979. for ac_type in 'int8_t' 'int' 'long int' \
  7980. 'long long int' 'short int' 'signed char'; do
  7981. cat >conftest.$ac_ext <<_ACEOF
  7982. /* confdefs.h. */
  7983. _ACEOF
  7984. cat confdefs.h >>conftest.$ac_ext
  7985. cat >>conftest.$ac_ext <<_ACEOF
  7986. /* end confdefs.h. */
  7987. $ac_includes_default
  7988. int
  7989. main ()
  7990. {
  7991. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7992. test_array [0] = 0
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. rm -f conftest.$ac_objext
  7998. if { (ac_try="$ac_compile"
  7999. case "(($ac_try" in
  8000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8001. *) ac_try_echo=$ac_try;;
  8002. esac
  8003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8004. (eval "$ac_compile") 2>conftest.er1
  8005. ac_status=$?
  8006. grep -v '^ *+' conftest.er1 >conftest.err
  8007. rm -f conftest.er1
  8008. cat conftest.err >&5
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. (exit $ac_status); } && {
  8011. test -z "$ac_cxx_werror_flag" ||
  8012. test ! -s conftest.err
  8013. } && test -s conftest.$ac_objext; then
  8014. cat >conftest.$ac_ext <<_ACEOF
  8015. /* confdefs.h. */
  8016. _ACEOF
  8017. cat confdefs.h >>conftest.$ac_ext
  8018. cat >>conftest.$ac_ext <<_ACEOF
  8019. /* end confdefs.h. */
  8020. $ac_includes_default
  8021. int
  8022. main ()
  8023. {
  8024. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8025. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  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. :
  8049. else
  8050. echo "$as_me: failed program was:" >&5
  8051. sed 's/^/| /' conftest.$ac_ext >&5
  8052. case $ac_type in
  8053. int8_t) ac_cv_c_int8_t=yes ;;
  8054. *) ac_cv_c_int8_t=$ac_type ;;
  8055. esac
  8056. fi
  8057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8058. else
  8059. echo "$as_me: failed program was:" >&5
  8060. sed 's/^/| /' conftest.$ac_ext >&5
  8061. fi
  8062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8063. test "$ac_cv_c_int8_t" != no && break
  8064. done
  8065. fi
  8066. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8067. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8068. case $ac_cv_c_int8_t in #(
  8069. no|yes) ;; #(
  8070. *)
  8071. cat >>confdefs.h <<_ACEOF
  8072. #define int8_t $ac_cv_c_int8_t
  8073. _ACEOF
  8074. ;;
  8075. esac
  8076. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8077. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8078. if test "${ac_cv_type_mode_t+set}" = set; then
  8079. echo $ECHO_N "(cached) $ECHO_C" >&6
  8080. else
  8081. cat >conftest.$ac_ext <<_ACEOF
  8082. /* confdefs.h. */
  8083. _ACEOF
  8084. cat confdefs.h >>conftest.$ac_ext
  8085. cat >>conftest.$ac_ext <<_ACEOF
  8086. /* end confdefs.h. */
  8087. $ac_includes_default
  8088. typedef mode_t ac__type_new_;
  8089. int
  8090. main ()
  8091. {
  8092. if ((ac__type_new_ *) 0)
  8093. return 0;
  8094. if (sizeof (ac__type_new_))
  8095. return 0;
  8096. ;
  8097. return 0;
  8098. }
  8099. _ACEOF
  8100. rm -f conftest.$ac_objext
  8101. if { (ac_try="$ac_compile"
  8102. case "(($ac_try" in
  8103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8104. *) ac_try_echo=$ac_try;;
  8105. esac
  8106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8107. (eval "$ac_compile") 2>conftest.er1
  8108. ac_status=$?
  8109. grep -v '^ *+' conftest.er1 >conftest.err
  8110. rm -f conftest.er1
  8111. cat conftest.err >&5
  8112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8113. (exit $ac_status); } && {
  8114. test -z "$ac_cxx_werror_flag" ||
  8115. test ! -s conftest.err
  8116. } && test -s conftest.$ac_objext; then
  8117. ac_cv_type_mode_t=yes
  8118. else
  8119. echo "$as_me: failed program was:" >&5
  8120. sed 's/^/| /' conftest.$ac_ext >&5
  8121. ac_cv_type_mode_t=no
  8122. fi
  8123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8124. fi
  8125. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8126. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8127. if test $ac_cv_type_mode_t = yes; then
  8128. :
  8129. else
  8130. cat >>confdefs.h <<_ACEOF
  8131. #define mode_t int
  8132. _ACEOF
  8133. fi
  8134. { echo "$as_me:$LINENO: checking for off_t" >&5
  8135. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8136. if test "${ac_cv_type_off_t+set}" = set; then
  8137. echo $ECHO_N "(cached) $ECHO_C" >&6
  8138. else
  8139. cat >conftest.$ac_ext <<_ACEOF
  8140. /* confdefs.h. */
  8141. _ACEOF
  8142. cat confdefs.h >>conftest.$ac_ext
  8143. cat >>conftest.$ac_ext <<_ACEOF
  8144. /* end confdefs.h. */
  8145. $ac_includes_default
  8146. typedef off_t ac__type_new_;
  8147. int
  8148. main ()
  8149. {
  8150. if ((ac__type_new_ *) 0)
  8151. return 0;
  8152. if (sizeof (ac__type_new_))
  8153. return 0;
  8154. ;
  8155. return 0;
  8156. }
  8157. _ACEOF
  8158. rm -f conftest.$ac_objext
  8159. if { (ac_try="$ac_compile"
  8160. case "(($ac_try" in
  8161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8162. *) ac_try_echo=$ac_try;;
  8163. esac
  8164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8165. (eval "$ac_compile") 2>conftest.er1
  8166. ac_status=$?
  8167. grep -v '^ *+' conftest.er1 >conftest.err
  8168. rm -f conftest.er1
  8169. cat conftest.err >&5
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. (exit $ac_status); } && {
  8172. test -z "$ac_cxx_werror_flag" ||
  8173. test ! -s conftest.err
  8174. } && test -s conftest.$ac_objext; then
  8175. ac_cv_type_off_t=yes
  8176. else
  8177. echo "$as_me: failed program was:" >&5
  8178. sed 's/^/| /' conftest.$ac_ext >&5
  8179. ac_cv_type_off_t=no
  8180. fi
  8181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8182. fi
  8183. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8184. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8185. if test $ac_cv_type_off_t = yes; then
  8186. :
  8187. else
  8188. cat >>confdefs.h <<_ACEOF
  8189. #define off_t long int
  8190. _ACEOF
  8191. fi
  8192. { echo "$as_me:$LINENO: checking for size_t" >&5
  8193. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8194. if test "${ac_cv_type_size_t+set}" = set; then
  8195. echo $ECHO_N "(cached) $ECHO_C" >&6
  8196. else
  8197. cat >conftest.$ac_ext <<_ACEOF
  8198. /* confdefs.h. */
  8199. _ACEOF
  8200. cat confdefs.h >>conftest.$ac_ext
  8201. cat >>conftest.$ac_ext <<_ACEOF
  8202. /* end confdefs.h. */
  8203. $ac_includes_default
  8204. typedef size_t ac__type_new_;
  8205. int
  8206. main ()
  8207. {
  8208. if ((ac__type_new_ *) 0)
  8209. return 0;
  8210. if (sizeof (ac__type_new_))
  8211. return 0;
  8212. ;
  8213. return 0;
  8214. }
  8215. _ACEOF
  8216. rm -f conftest.$ac_objext
  8217. if { (ac_try="$ac_compile"
  8218. case "(($ac_try" in
  8219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8220. *) ac_try_echo=$ac_try;;
  8221. esac
  8222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8223. (eval "$ac_compile") 2>conftest.er1
  8224. ac_status=$?
  8225. grep -v '^ *+' conftest.er1 >conftest.err
  8226. rm -f conftest.er1
  8227. cat conftest.err >&5
  8228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. (exit $ac_status); } && {
  8230. test -z "$ac_cxx_werror_flag" ||
  8231. test ! -s conftest.err
  8232. } && test -s conftest.$ac_objext; then
  8233. ac_cv_type_size_t=yes
  8234. else
  8235. echo "$as_me: failed program was:" >&5
  8236. sed 's/^/| /' conftest.$ac_ext >&5
  8237. ac_cv_type_size_t=no
  8238. fi
  8239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8240. fi
  8241. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8242. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8243. if test $ac_cv_type_size_t = yes; then
  8244. :
  8245. else
  8246. cat >>confdefs.h <<_ACEOF
  8247. #define size_t unsigned int
  8248. _ACEOF
  8249. fi
  8250. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8251. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8252. if test "${ac_cv_type_ssize_t+set}" = set; then
  8253. echo $ECHO_N "(cached) $ECHO_C" >&6
  8254. else
  8255. cat >conftest.$ac_ext <<_ACEOF
  8256. /* confdefs.h. */
  8257. _ACEOF
  8258. cat confdefs.h >>conftest.$ac_ext
  8259. cat >>conftest.$ac_ext <<_ACEOF
  8260. /* end confdefs.h. */
  8261. $ac_includes_default
  8262. typedef ssize_t ac__type_new_;
  8263. int
  8264. main ()
  8265. {
  8266. if ((ac__type_new_ *) 0)
  8267. return 0;
  8268. if (sizeof (ac__type_new_))
  8269. return 0;
  8270. ;
  8271. return 0;
  8272. }
  8273. _ACEOF
  8274. rm -f conftest.$ac_objext
  8275. if { (ac_try="$ac_compile"
  8276. case "(($ac_try" in
  8277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8278. *) ac_try_echo=$ac_try;;
  8279. esac
  8280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8281. (eval "$ac_compile") 2>conftest.er1
  8282. ac_status=$?
  8283. grep -v '^ *+' conftest.er1 >conftest.err
  8284. rm -f conftest.er1
  8285. cat conftest.err >&5
  8286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8287. (exit $ac_status); } && {
  8288. test -z "$ac_cxx_werror_flag" ||
  8289. test ! -s conftest.err
  8290. } && test -s conftest.$ac_objext; then
  8291. ac_cv_type_ssize_t=yes
  8292. else
  8293. echo "$as_me: failed program was:" >&5
  8294. sed 's/^/| /' conftest.$ac_ext >&5
  8295. ac_cv_type_ssize_t=no
  8296. fi
  8297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8298. fi
  8299. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8300. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8301. if test $ac_cv_type_ssize_t = yes; then
  8302. :
  8303. else
  8304. cat >>confdefs.h <<_ACEOF
  8305. #define ssize_t int
  8306. _ACEOF
  8307. fi
  8308. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8309. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8310. if test "${ac_cv_header_time+set}" = set; then
  8311. echo $ECHO_N "(cached) $ECHO_C" >&6
  8312. else
  8313. cat >conftest.$ac_ext <<_ACEOF
  8314. /* confdefs.h. */
  8315. _ACEOF
  8316. cat confdefs.h >>conftest.$ac_ext
  8317. cat >>conftest.$ac_ext <<_ACEOF
  8318. /* end confdefs.h. */
  8319. #include <sys/types.h>
  8320. #include <sys/time.h>
  8321. #include <time.h>
  8322. int
  8323. main ()
  8324. {
  8325. if ((struct tm *) 0)
  8326. return 0;
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. rm -f conftest.$ac_objext
  8332. if { (ac_try="$ac_compile"
  8333. case "(($ac_try" in
  8334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8335. *) ac_try_echo=$ac_try;;
  8336. esac
  8337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8338. (eval "$ac_compile") 2>conftest.er1
  8339. ac_status=$?
  8340. grep -v '^ *+' conftest.er1 >conftest.err
  8341. rm -f conftest.er1
  8342. cat conftest.err >&5
  8343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8344. (exit $ac_status); } && {
  8345. test -z "$ac_cxx_werror_flag" ||
  8346. test ! -s conftest.err
  8347. } && test -s conftest.$ac_objext; then
  8348. ac_cv_header_time=yes
  8349. else
  8350. echo "$as_me: failed program was:" >&5
  8351. sed 's/^/| /' conftest.$ac_ext >&5
  8352. ac_cv_header_time=no
  8353. fi
  8354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8355. fi
  8356. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8357. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8358. if test $ac_cv_header_time = yes; then
  8359. cat >>confdefs.h <<\_ACEOF
  8360. #define TIME_WITH_SYS_TIME 1
  8361. _ACEOF
  8362. fi
  8363. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8364. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8365. if test "${ac_cv_struct_tm+set}" = set; then
  8366. echo $ECHO_N "(cached) $ECHO_C" >&6
  8367. else
  8368. cat >conftest.$ac_ext <<_ACEOF
  8369. /* confdefs.h. */
  8370. _ACEOF
  8371. cat confdefs.h >>conftest.$ac_ext
  8372. cat >>conftest.$ac_ext <<_ACEOF
  8373. /* end confdefs.h. */
  8374. #include <sys/types.h>
  8375. #include <time.h>
  8376. int
  8377. main ()
  8378. {
  8379. struct tm tm;
  8380. int *p = &tm.tm_sec;
  8381. return !p;
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. rm -f conftest.$ac_objext
  8387. if { (ac_try="$ac_compile"
  8388. case "(($ac_try" in
  8389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8390. *) ac_try_echo=$ac_try;;
  8391. esac
  8392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8393. (eval "$ac_compile") 2>conftest.er1
  8394. ac_status=$?
  8395. grep -v '^ *+' conftest.er1 >conftest.err
  8396. rm -f conftest.er1
  8397. cat conftest.err >&5
  8398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8399. (exit $ac_status); } && {
  8400. test -z "$ac_cxx_werror_flag" ||
  8401. test ! -s conftest.err
  8402. } && test -s conftest.$ac_objext; then
  8403. ac_cv_struct_tm=time.h
  8404. else
  8405. echo "$as_me: failed program was:" >&5
  8406. sed 's/^/| /' conftest.$ac_ext >&5
  8407. ac_cv_struct_tm=sys/time.h
  8408. fi
  8409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8410. fi
  8411. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8412. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8413. if test $ac_cv_struct_tm = sys/time.h; then
  8414. cat >>confdefs.h <<\_ACEOF
  8415. #define TM_IN_SYS_TIME 1
  8416. _ACEOF
  8417. fi
  8418. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8419. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8420. if test "${ac_cv_c_uint16_t+set}" = set; then
  8421. echo $ECHO_N "(cached) $ECHO_C" >&6
  8422. else
  8423. ac_cv_c_uint16_t=no
  8424. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8425. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8426. cat >conftest.$ac_ext <<_ACEOF
  8427. /* confdefs.h. */
  8428. _ACEOF
  8429. cat confdefs.h >>conftest.$ac_ext
  8430. cat >>conftest.$ac_ext <<_ACEOF
  8431. /* end confdefs.h. */
  8432. $ac_includes_default
  8433. int
  8434. main ()
  8435. {
  8436. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8437. test_array [0] = 0
  8438. ;
  8439. return 0;
  8440. }
  8441. _ACEOF
  8442. rm -f conftest.$ac_objext
  8443. if { (ac_try="$ac_compile"
  8444. case "(($ac_try" in
  8445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8446. *) ac_try_echo=$ac_try;;
  8447. esac
  8448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8449. (eval "$ac_compile") 2>conftest.er1
  8450. ac_status=$?
  8451. grep -v '^ *+' conftest.er1 >conftest.err
  8452. rm -f conftest.er1
  8453. cat conftest.err >&5
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. (exit $ac_status); } && {
  8456. test -z "$ac_cxx_werror_flag" ||
  8457. test ! -s conftest.err
  8458. } && test -s conftest.$ac_objext; then
  8459. case $ac_type in
  8460. uint16_t) ac_cv_c_uint16_t=yes ;;
  8461. *) ac_cv_c_uint16_t=$ac_type ;;
  8462. esac
  8463. else
  8464. echo "$as_me: failed program was:" >&5
  8465. sed 's/^/| /' conftest.$ac_ext >&5
  8466. fi
  8467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. test "$ac_cv_c_uint16_t" != no && break
  8469. done
  8470. fi
  8471. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8472. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8473. case $ac_cv_c_uint16_t in #(
  8474. no|yes) ;; #(
  8475. *)
  8476. cat >>confdefs.h <<_ACEOF
  8477. #define uint16_t $ac_cv_c_uint16_t
  8478. _ACEOF
  8479. ;;
  8480. esac
  8481. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8482. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8483. if test "${ac_cv_c_uint32_t+set}" = set; then
  8484. echo $ECHO_N "(cached) $ECHO_C" >&6
  8485. else
  8486. ac_cv_c_uint32_t=no
  8487. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8488. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8489. cat >conftest.$ac_ext <<_ACEOF
  8490. /* confdefs.h. */
  8491. _ACEOF
  8492. cat confdefs.h >>conftest.$ac_ext
  8493. cat >>conftest.$ac_ext <<_ACEOF
  8494. /* end confdefs.h. */
  8495. $ac_includes_default
  8496. int
  8497. main ()
  8498. {
  8499. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8500. test_array [0] = 0
  8501. ;
  8502. return 0;
  8503. }
  8504. _ACEOF
  8505. rm -f conftest.$ac_objext
  8506. if { (ac_try="$ac_compile"
  8507. case "(($ac_try" in
  8508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8509. *) ac_try_echo=$ac_try;;
  8510. esac
  8511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8512. (eval "$ac_compile") 2>conftest.er1
  8513. ac_status=$?
  8514. grep -v '^ *+' conftest.er1 >conftest.err
  8515. rm -f conftest.er1
  8516. cat conftest.err >&5
  8517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8518. (exit $ac_status); } && {
  8519. test -z "$ac_cxx_werror_flag" ||
  8520. test ! -s conftest.err
  8521. } && test -s conftest.$ac_objext; then
  8522. case $ac_type in
  8523. uint32_t) ac_cv_c_uint32_t=yes ;;
  8524. *) ac_cv_c_uint32_t=$ac_type ;;
  8525. esac
  8526. else
  8527. echo "$as_me: failed program was:" >&5
  8528. sed 's/^/| /' conftest.$ac_ext >&5
  8529. fi
  8530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8531. test "$ac_cv_c_uint32_t" != no && break
  8532. done
  8533. fi
  8534. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8535. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8536. case $ac_cv_c_uint32_t in #(
  8537. no|yes) ;; #(
  8538. *)
  8539. cat >>confdefs.h <<\_ACEOF
  8540. #define _UINT32_T 1
  8541. _ACEOF
  8542. cat >>confdefs.h <<_ACEOF
  8543. #define uint32_t $ac_cv_c_uint32_t
  8544. _ACEOF
  8545. ;;
  8546. esac
  8547. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8548. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8549. if test "${ac_cv_c_uint64_t+set}" = set; then
  8550. echo $ECHO_N "(cached) $ECHO_C" >&6
  8551. else
  8552. ac_cv_c_uint64_t=no
  8553. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8554. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8555. cat >conftest.$ac_ext <<_ACEOF
  8556. /* confdefs.h. */
  8557. _ACEOF
  8558. cat confdefs.h >>conftest.$ac_ext
  8559. cat >>conftest.$ac_ext <<_ACEOF
  8560. /* end confdefs.h. */
  8561. $ac_includes_default
  8562. int
  8563. main ()
  8564. {
  8565. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8566. test_array [0] = 0
  8567. ;
  8568. return 0;
  8569. }
  8570. _ACEOF
  8571. rm -f conftest.$ac_objext
  8572. if { (ac_try="$ac_compile"
  8573. case "(($ac_try" in
  8574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8575. *) ac_try_echo=$ac_try;;
  8576. esac
  8577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8578. (eval "$ac_compile") 2>conftest.er1
  8579. ac_status=$?
  8580. grep -v '^ *+' conftest.er1 >conftest.err
  8581. rm -f conftest.er1
  8582. cat conftest.err >&5
  8583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8584. (exit $ac_status); } && {
  8585. test -z "$ac_cxx_werror_flag" ||
  8586. test ! -s conftest.err
  8587. } && test -s conftest.$ac_objext; then
  8588. case $ac_type in
  8589. uint64_t) ac_cv_c_uint64_t=yes ;;
  8590. *) ac_cv_c_uint64_t=$ac_type ;;
  8591. esac
  8592. else
  8593. echo "$as_me: failed program was:" >&5
  8594. sed 's/^/| /' conftest.$ac_ext >&5
  8595. fi
  8596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8597. test "$ac_cv_c_uint64_t" != no && break
  8598. done
  8599. fi
  8600. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8601. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8602. case $ac_cv_c_uint64_t in #(
  8603. no|yes) ;; #(
  8604. *)
  8605. cat >>confdefs.h <<\_ACEOF
  8606. #define _UINT64_T 1
  8607. _ACEOF
  8608. cat >>confdefs.h <<_ACEOF
  8609. #define uint64_t $ac_cv_c_uint64_t
  8610. _ACEOF
  8611. ;;
  8612. esac
  8613. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8614. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8615. if test "${ac_cv_c_uint8_t+set}" = set; then
  8616. echo $ECHO_N "(cached) $ECHO_C" >&6
  8617. else
  8618. ac_cv_c_uint8_t=no
  8619. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8620. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8621. cat >conftest.$ac_ext <<_ACEOF
  8622. /* confdefs.h. */
  8623. _ACEOF
  8624. cat confdefs.h >>conftest.$ac_ext
  8625. cat >>conftest.$ac_ext <<_ACEOF
  8626. /* end confdefs.h. */
  8627. $ac_includes_default
  8628. int
  8629. main ()
  8630. {
  8631. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8632. test_array [0] = 0
  8633. ;
  8634. return 0;
  8635. }
  8636. _ACEOF
  8637. rm -f conftest.$ac_objext
  8638. if { (ac_try="$ac_compile"
  8639. case "(($ac_try" in
  8640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8641. *) ac_try_echo=$ac_try;;
  8642. esac
  8643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8644. (eval "$ac_compile") 2>conftest.er1
  8645. ac_status=$?
  8646. grep -v '^ *+' conftest.er1 >conftest.err
  8647. rm -f conftest.er1
  8648. cat conftest.err >&5
  8649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8650. (exit $ac_status); } && {
  8651. test -z "$ac_cxx_werror_flag" ||
  8652. test ! -s conftest.err
  8653. } && test -s conftest.$ac_objext; then
  8654. case $ac_type in
  8655. uint8_t) ac_cv_c_uint8_t=yes ;;
  8656. *) ac_cv_c_uint8_t=$ac_type ;;
  8657. esac
  8658. else
  8659. echo "$as_me: failed program was:" >&5
  8660. sed 's/^/| /' conftest.$ac_ext >&5
  8661. fi
  8662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8663. test "$ac_cv_c_uint8_t" != no && break
  8664. done
  8665. fi
  8666. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8667. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8668. case $ac_cv_c_uint8_t in #(
  8669. no|yes) ;; #(
  8670. *)
  8671. cat >>confdefs.h <<\_ACEOF
  8672. #define _UINT8_T 1
  8673. _ACEOF
  8674. cat >>confdefs.h <<_ACEOF
  8675. #define uint8_t $ac_cv_c_uint8_t
  8676. _ACEOF
  8677. ;;
  8678. esac
  8679. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8680. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8681. if test "${ac_cv_c_volatile+set}" = set; then
  8682. echo $ECHO_N "(cached) $ECHO_C" >&6
  8683. else
  8684. cat >conftest.$ac_ext <<_ACEOF
  8685. /* confdefs.h. */
  8686. _ACEOF
  8687. cat confdefs.h >>conftest.$ac_ext
  8688. cat >>conftest.$ac_ext <<_ACEOF
  8689. /* end confdefs.h. */
  8690. int
  8691. main ()
  8692. {
  8693. volatile int x;
  8694. int * volatile y = (int *) 0;
  8695. return !x && !y;
  8696. ;
  8697. return 0;
  8698. }
  8699. _ACEOF
  8700. rm -f conftest.$ac_objext
  8701. if { (ac_try="$ac_compile"
  8702. case "(($ac_try" in
  8703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8704. *) ac_try_echo=$ac_try;;
  8705. esac
  8706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8707. (eval "$ac_compile") 2>conftest.er1
  8708. ac_status=$?
  8709. grep -v '^ *+' conftest.er1 >conftest.err
  8710. rm -f conftest.er1
  8711. cat conftest.err >&5
  8712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8713. (exit $ac_status); } && {
  8714. test -z "$ac_cxx_werror_flag" ||
  8715. test ! -s conftest.err
  8716. } && test -s conftest.$ac_objext; then
  8717. ac_cv_c_volatile=yes
  8718. else
  8719. echo "$as_me: failed program was:" >&5
  8720. sed 's/^/| /' conftest.$ac_ext >&5
  8721. ac_cv_c_volatile=no
  8722. fi
  8723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8724. fi
  8725. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8726. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8727. if test $ac_cv_c_volatile = no; then
  8728. cat >>confdefs.h <<\_ACEOF
  8729. #define volatile
  8730. _ACEOF
  8731. fi
  8732. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8733. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8734. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8735. echo $ECHO_N "(cached) $ECHO_C" >&6
  8736. else
  8737. cat >conftest.$ac_ext <<_ACEOF
  8738. /* confdefs.h. */
  8739. _ACEOF
  8740. cat confdefs.h >>conftest.$ac_ext
  8741. cat >>conftest.$ac_ext <<_ACEOF
  8742. /* end confdefs.h. */
  8743. $ac_includes_default
  8744. typedef ptrdiff_t ac__type_new_;
  8745. int
  8746. main ()
  8747. {
  8748. if ((ac__type_new_ *) 0)
  8749. return 0;
  8750. if (sizeof (ac__type_new_))
  8751. return 0;
  8752. ;
  8753. return 0;
  8754. }
  8755. _ACEOF
  8756. rm -f conftest.$ac_objext
  8757. if { (ac_try="$ac_compile"
  8758. case "(($ac_try" in
  8759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8760. *) ac_try_echo=$ac_try;;
  8761. esac
  8762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8763. (eval "$ac_compile") 2>conftest.er1
  8764. ac_status=$?
  8765. grep -v '^ *+' conftest.er1 >conftest.err
  8766. rm -f conftest.er1
  8767. cat conftest.err >&5
  8768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8769. (exit $ac_status); } && {
  8770. test -z "$ac_cxx_werror_flag" ||
  8771. test ! -s conftest.err
  8772. } && test -s conftest.$ac_objext; then
  8773. ac_cv_type_ptrdiff_t=yes
  8774. else
  8775. echo "$as_me: failed program was:" >&5
  8776. sed 's/^/| /' conftest.$ac_ext >&5
  8777. ac_cv_type_ptrdiff_t=no
  8778. fi
  8779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8780. fi
  8781. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8782. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8783. if test $ac_cv_type_ptrdiff_t = yes; then
  8784. cat >>confdefs.h <<_ACEOF
  8785. #define HAVE_PTRDIFF_T 1
  8786. _ACEOF
  8787. fi
  8788. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8789. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8790. if test "${ac_cv_c_bigendian+set}" = set; then
  8791. echo $ECHO_N "(cached) $ECHO_C" >&6
  8792. else
  8793. # See if sys/param.h defines the BYTE_ORDER macro.
  8794. cat >conftest.$ac_ext <<_ACEOF
  8795. /* confdefs.h. */
  8796. _ACEOF
  8797. cat confdefs.h >>conftest.$ac_ext
  8798. cat >>conftest.$ac_ext <<_ACEOF
  8799. /* end confdefs.h. */
  8800. #include <sys/types.h>
  8801. #include <sys/param.h>
  8802. int
  8803. main ()
  8804. {
  8805. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8806. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8807. bogus endian macros
  8808. #endif
  8809. ;
  8810. return 0;
  8811. }
  8812. _ACEOF
  8813. rm -f conftest.$ac_objext
  8814. if { (ac_try="$ac_compile"
  8815. case "(($ac_try" in
  8816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8817. *) ac_try_echo=$ac_try;;
  8818. esac
  8819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8820. (eval "$ac_compile") 2>conftest.er1
  8821. ac_status=$?
  8822. grep -v '^ *+' conftest.er1 >conftest.err
  8823. rm -f conftest.er1
  8824. cat conftest.err >&5
  8825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8826. (exit $ac_status); } && {
  8827. test -z "$ac_cxx_werror_flag" ||
  8828. test ! -s conftest.err
  8829. } && test -s conftest.$ac_objext; then
  8830. # It does; now see whether it defined to BIG_ENDIAN or not.
  8831. cat >conftest.$ac_ext <<_ACEOF
  8832. /* confdefs.h. */
  8833. _ACEOF
  8834. cat confdefs.h >>conftest.$ac_ext
  8835. cat >>conftest.$ac_ext <<_ACEOF
  8836. /* end confdefs.h. */
  8837. #include <sys/types.h>
  8838. #include <sys/param.h>
  8839. int
  8840. main ()
  8841. {
  8842. #if BYTE_ORDER != BIG_ENDIAN
  8843. not big endian
  8844. #endif
  8845. ;
  8846. return 0;
  8847. }
  8848. _ACEOF
  8849. rm -f conftest.$ac_objext
  8850. if { (ac_try="$ac_compile"
  8851. case "(($ac_try" in
  8852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8853. *) ac_try_echo=$ac_try;;
  8854. esac
  8855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8856. (eval "$ac_compile") 2>conftest.er1
  8857. ac_status=$?
  8858. grep -v '^ *+' conftest.er1 >conftest.err
  8859. rm -f conftest.er1
  8860. cat conftest.err >&5
  8861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8862. (exit $ac_status); } && {
  8863. test -z "$ac_cxx_werror_flag" ||
  8864. test ! -s conftest.err
  8865. } && test -s conftest.$ac_objext; then
  8866. ac_cv_c_bigendian=yes
  8867. else
  8868. echo "$as_me: failed program was:" >&5
  8869. sed 's/^/| /' conftest.$ac_ext >&5
  8870. ac_cv_c_bigendian=no
  8871. fi
  8872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8873. else
  8874. echo "$as_me: failed program was:" >&5
  8875. sed 's/^/| /' conftest.$ac_ext >&5
  8876. # It does not; compile a test program.
  8877. if test "$cross_compiling" = yes; then
  8878. # try to guess the endianness by grepping values into an object file
  8879. ac_cv_c_bigendian=unknown
  8880. cat >conftest.$ac_ext <<_ACEOF
  8881. /* confdefs.h. */
  8882. _ACEOF
  8883. cat confdefs.h >>conftest.$ac_ext
  8884. cat >>conftest.$ac_ext <<_ACEOF
  8885. /* end confdefs.h. */
  8886. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8887. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8888. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8889. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8890. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8891. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8892. int
  8893. main ()
  8894. {
  8895. _ascii (); _ebcdic ();
  8896. ;
  8897. return 0;
  8898. }
  8899. _ACEOF
  8900. rm -f conftest.$ac_objext
  8901. if { (ac_try="$ac_compile"
  8902. case "(($ac_try" in
  8903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8904. *) ac_try_echo=$ac_try;;
  8905. esac
  8906. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8907. (eval "$ac_compile") 2>conftest.er1
  8908. ac_status=$?
  8909. grep -v '^ *+' conftest.er1 >conftest.err
  8910. rm -f conftest.er1
  8911. cat conftest.err >&5
  8912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8913. (exit $ac_status); } && {
  8914. test -z "$ac_cxx_werror_flag" ||
  8915. test ! -s conftest.err
  8916. } && test -s conftest.$ac_objext; then
  8917. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8918. ac_cv_c_bigendian=yes
  8919. fi
  8920. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8921. if test "$ac_cv_c_bigendian" = unknown; then
  8922. ac_cv_c_bigendian=no
  8923. else
  8924. # finding both strings is unlikely to happen, but who knows?
  8925. ac_cv_c_bigendian=unknown
  8926. fi
  8927. fi
  8928. else
  8929. echo "$as_me: failed program was:" >&5
  8930. sed 's/^/| /' conftest.$ac_ext >&5
  8931. fi
  8932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8933. else
  8934. cat >conftest.$ac_ext <<_ACEOF
  8935. /* confdefs.h. */
  8936. _ACEOF
  8937. cat confdefs.h >>conftest.$ac_ext
  8938. cat >>conftest.$ac_ext <<_ACEOF
  8939. /* end confdefs.h. */
  8940. $ac_includes_default
  8941. int
  8942. main ()
  8943. {
  8944. /* Are we little or big endian? From Harbison&Steele. */
  8945. union
  8946. {
  8947. long int l;
  8948. char c[sizeof (long int)];
  8949. } u;
  8950. u.l = 1;
  8951. return u.c[sizeof (long int) - 1] == 1;
  8952. ;
  8953. return 0;
  8954. }
  8955. _ACEOF
  8956. rm -f conftest$ac_exeext
  8957. if { (ac_try="$ac_link"
  8958. case "(($ac_try" in
  8959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8960. *) ac_try_echo=$ac_try;;
  8961. esac
  8962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8963. (eval "$ac_link") 2>&5
  8964. ac_status=$?
  8965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8966. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8967. { (case "(($ac_try" in
  8968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8969. *) ac_try_echo=$ac_try;;
  8970. esac
  8971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8972. (eval "$ac_try") 2>&5
  8973. ac_status=$?
  8974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8975. (exit $ac_status); }; }; then
  8976. ac_cv_c_bigendian=no
  8977. else
  8978. echo "$as_me: program exited with status $ac_status" >&5
  8979. echo "$as_me: failed program was:" >&5
  8980. sed 's/^/| /' conftest.$ac_ext >&5
  8981. ( exit $ac_status )
  8982. ac_cv_c_bigendian=yes
  8983. fi
  8984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8985. fi
  8986. fi
  8987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8988. fi
  8989. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  8990. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  8991. case $ac_cv_c_bigendian in
  8992. yes)
  8993. cat >>confdefs.h <<\_ACEOF
  8994. #define WORDS_BIGENDIAN 1
  8995. _ACEOF
  8996. ;;
  8997. no)
  8998. ;;
  8999. *)
  9000. { { echo "$as_me:$LINENO: error: unknown endianness
  9001. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9002. echo "$as_me: error: unknown endianness
  9003. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9004. { (exit 1); exit 1; }; } ;;
  9005. esac
  9006. # Check whether --enable-largefile was given.
  9007. if test "${enable_largefile+set}" = set; then
  9008. enableval=$enable_largefile;
  9009. fi
  9010. if test "$enable_largefile" != no; then
  9011. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9012. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9013. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9014. echo $ECHO_N "(cached) $ECHO_C" >&6
  9015. else
  9016. ac_cv_sys_largefile_CC=no
  9017. if test "$GCC" != yes; then
  9018. ac_save_CC=$CC
  9019. while :; do
  9020. # IRIX 6.2 and later do not support large files by default,
  9021. # so use the C compiler's -n32 option if that helps.
  9022. cat >conftest.$ac_ext <<_ACEOF
  9023. /* confdefs.h. */
  9024. _ACEOF
  9025. cat confdefs.h >>conftest.$ac_ext
  9026. cat >>conftest.$ac_ext <<_ACEOF
  9027. /* end confdefs.h. */
  9028. #include <sys/types.h>
  9029. /* Check that off_t can represent 2**63 - 1 correctly.
  9030. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9031. since some C++ compilers masquerading as C compilers
  9032. incorrectly reject 9223372036854775807. */
  9033. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9034. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9035. && LARGE_OFF_T % 2147483647 == 1)
  9036. ? 1 : -1];
  9037. int
  9038. main ()
  9039. {
  9040. ;
  9041. return 0;
  9042. }
  9043. _ACEOF
  9044. rm -f conftest.$ac_objext
  9045. if { (ac_try="$ac_compile"
  9046. case "(($ac_try" in
  9047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9048. *) ac_try_echo=$ac_try;;
  9049. esac
  9050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9051. (eval "$ac_compile") 2>conftest.er1
  9052. ac_status=$?
  9053. grep -v '^ *+' conftest.er1 >conftest.err
  9054. rm -f conftest.er1
  9055. cat conftest.err >&5
  9056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9057. (exit $ac_status); } && {
  9058. test -z "$ac_cxx_werror_flag" ||
  9059. test ! -s conftest.err
  9060. } && test -s conftest.$ac_objext; then
  9061. break
  9062. else
  9063. echo "$as_me: failed program was:" >&5
  9064. sed 's/^/| /' conftest.$ac_ext >&5
  9065. fi
  9066. rm -f core conftest.err conftest.$ac_objext
  9067. CC="$CC -n32"
  9068. rm -f conftest.$ac_objext
  9069. if { (ac_try="$ac_compile"
  9070. case "(($ac_try" in
  9071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9072. *) ac_try_echo=$ac_try;;
  9073. esac
  9074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9075. (eval "$ac_compile") 2>conftest.er1
  9076. ac_status=$?
  9077. grep -v '^ *+' conftest.er1 >conftest.err
  9078. rm -f conftest.er1
  9079. cat conftest.err >&5
  9080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9081. (exit $ac_status); } && {
  9082. test -z "$ac_cxx_werror_flag" ||
  9083. test ! -s conftest.err
  9084. } && test -s conftest.$ac_objext; then
  9085. ac_cv_sys_largefile_CC=' -n32'; break
  9086. else
  9087. echo "$as_me: failed program was:" >&5
  9088. sed 's/^/| /' conftest.$ac_ext >&5
  9089. fi
  9090. rm -f core conftest.err conftest.$ac_objext
  9091. break
  9092. done
  9093. CC=$ac_save_CC
  9094. rm -f conftest.$ac_ext
  9095. fi
  9096. fi
  9097. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9098. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9099. if test "$ac_cv_sys_largefile_CC" != no; then
  9100. CC=$CC$ac_cv_sys_largefile_CC
  9101. fi
  9102. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9103. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9104. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9105. echo $ECHO_N "(cached) $ECHO_C" >&6
  9106. else
  9107. while :; do
  9108. cat >conftest.$ac_ext <<_ACEOF
  9109. /* confdefs.h. */
  9110. _ACEOF
  9111. cat confdefs.h >>conftest.$ac_ext
  9112. cat >>conftest.$ac_ext <<_ACEOF
  9113. /* end confdefs.h. */
  9114. #include <sys/types.h>
  9115. /* Check that off_t can represent 2**63 - 1 correctly.
  9116. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9117. since some C++ compilers masquerading as C compilers
  9118. incorrectly reject 9223372036854775807. */
  9119. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9120. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9121. && LARGE_OFF_T % 2147483647 == 1)
  9122. ? 1 : -1];
  9123. int
  9124. main ()
  9125. {
  9126. ;
  9127. return 0;
  9128. }
  9129. _ACEOF
  9130. rm -f conftest.$ac_objext
  9131. if { (ac_try="$ac_compile"
  9132. case "(($ac_try" in
  9133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9134. *) ac_try_echo=$ac_try;;
  9135. esac
  9136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9137. (eval "$ac_compile") 2>conftest.er1
  9138. ac_status=$?
  9139. grep -v '^ *+' conftest.er1 >conftest.err
  9140. rm -f conftest.er1
  9141. cat conftest.err >&5
  9142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9143. (exit $ac_status); } && {
  9144. test -z "$ac_cxx_werror_flag" ||
  9145. test ! -s conftest.err
  9146. } && test -s conftest.$ac_objext; then
  9147. ac_cv_sys_file_offset_bits=no; break
  9148. else
  9149. echo "$as_me: failed program was:" >&5
  9150. sed 's/^/| /' conftest.$ac_ext >&5
  9151. fi
  9152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9153. cat >conftest.$ac_ext <<_ACEOF
  9154. /* confdefs.h. */
  9155. _ACEOF
  9156. cat confdefs.h >>conftest.$ac_ext
  9157. cat >>conftest.$ac_ext <<_ACEOF
  9158. /* end confdefs.h. */
  9159. #define _FILE_OFFSET_BITS 64
  9160. #include <sys/types.h>
  9161. /* Check that off_t can represent 2**63 - 1 correctly.
  9162. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9163. since some C++ compilers masquerading as C compilers
  9164. incorrectly reject 9223372036854775807. */
  9165. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9166. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9167. && LARGE_OFF_T % 2147483647 == 1)
  9168. ? 1 : -1];
  9169. int
  9170. main ()
  9171. {
  9172. ;
  9173. return 0;
  9174. }
  9175. _ACEOF
  9176. rm -f conftest.$ac_objext
  9177. if { (ac_try="$ac_compile"
  9178. case "(($ac_try" in
  9179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9180. *) ac_try_echo=$ac_try;;
  9181. esac
  9182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9183. (eval "$ac_compile") 2>conftest.er1
  9184. ac_status=$?
  9185. grep -v '^ *+' conftest.er1 >conftest.err
  9186. rm -f conftest.er1
  9187. cat conftest.err >&5
  9188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9189. (exit $ac_status); } && {
  9190. test -z "$ac_cxx_werror_flag" ||
  9191. test ! -s conftest.err
  9192. } && test -s conftest.$ac_objext; then
  9193. ac_cv_sys_file_offset_bits=64; break
  9194. else
  9195. echo "$as_me: failed program was:" >&5
  9196. sed 's/^/| /' conftest.$ac_ext >&5
  9197. fi
  9198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9199. ac_cv_sys_file_offset_bits=unknown
  9200. break
  9201. done
  9202. fi
  9203. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9204. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9205. case $ac_cv_sys_file_offset_bits in #(
  9206. no | unknown) ;;
  9207. *)
  9208. cat >>confdefs.h <<_ACEOF
  9209. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9210. _ACEOF
  9211. ;;
  9212. esac
  9213. rm -f conftest*
  9214. if test $ac_cv_sys_file_offset_bits = unknown; then
  9215. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9216. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9217. if test "${ac_cv_sys_large_files+set}" = set; then
  9218. echo $ECHO_N "(cached) $ECHO_C" >&6
  9219. else
  9220. while :; do
  9221. cat >conftest.$ac_ext <<_ACEOF
  9222. /* confdefs.h. */
  9223. _ACEOF
  9224. cat confdefs.h >>conftest.$ac_ext
  9225. cat >>conftest.$ac_ext <<_ACEOF
  9226. /* end confdefs.h. */
  9227. #include <sys/types.h>
  9228. /* Check that off_t can represent 2**63 - 1 correctly.
  9229. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9230. since some C++ compilers masquerading as C compilers
  9231. incorrectly reject 9223372036854775807. */
  9232. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9233. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9234. && LARGE_OFF_T % 2147483647 == 1)
  9235. ? 1 : -1];
  9236. int
  9237. main ()
  9238. {
  9239. ;
  9240. return 0;
  9241. }
  9242. _ACEOF
  9243. rm -f conftest.$ac_objext
  9244. if { (ac_try="$ac_compile"
  9245. case "(($ac_try" in
  9246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9247. *) ac_try_echo=$ac_try;;
  9248. esac
  9249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9250. (eval "$ac_compile") 2>conftest.er1
  9251. ac_status=$?
  9252. grep -v '^ *+' conftest.er1 >conftest.err
  9253. rm -f conftest.er1
  9254. cat conftest.err >&5
  9255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9256. (exit $ac_status); } && {
  9257. test -z "$ac_cxx_werror_flag" ||
  9258. test ! -s conftest.err
  9259. } && test -s conftest.$ac_objext; then
  9260. ac_cv_sys_large_files=no; break
  9261. else
  9262. echo "$as_me: failed program was:" >&5
  9263. sed 's/^/| /' conftest.$ac_ext >&5
  9264. fi
  9265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9266. cat >conftest.$ac_ext <<_ACEOF
  9267. /* confdefs.h. */
  9268. _ACEOF
  9269. cat confdefs.h >>conftest.$ac_ext
  9270. cat >>conftest.$ac_ext <<_ACEOF
  9271. /* end confdefs.h. */
  9272. #define _LARGE_FILES 1
  9273. #include <sys/types.h>
  9274. /* Check that off_t can represent 2**63 - 1 correctly.
  9275. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9276. since some C++ compilers masquerading as C compilers
  9277. incorrectly reject 9223372036854775807. */
  9278. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9279. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9280. && LARGE_OFF_T % 2147483647 == 1)
  9281. ? 1 : -1];
  9282. int
  9283. main ()
  9284. {
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. rm -f conftest.$ac_objext
  9290. if { (ac_try="$ac_compile"
  9291. case "(($ac_try" in
  9292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9293. *) ac_try_echo=$ac_try;;
  9294. esac
  9295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9296. (eval "$ac_compile") 2>conftest.er1
  9297. ac_status=$?
  9298. grep -v '^ *+' conftest.er1 >conftest.err
  9299. rm -f conftest.er1
  9300. cat conftest.err >&5
  9301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9302. (exit $ac_status); } && {
  9303. test -z "$ac_cxx_werror_flag" ||
  9304. test ! -s conftest.err
  9305. } && test -s conftest.$ac_objext; then
  9306. ac_cv_sys_large_files=1; break
  9307. else
  9308. echo "$as_me: failed program was:" >&5
  9309. sed 's/^/| /' conftest.$ac_ext >&5
  9310. fi
  9311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9312. ac_cv_sys_large_files=unknown
  9313. break
  9314. done
  9315. fi
  9316. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9317. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9318. case $ac_cv_sys_large_files in #(
  9319. no | unknown) ;;
  9320. *)
  9321. cat >>confdefs.h <<_ACEOF
  9322. #define _LARGE_FILES $ac_cv_sys_large_files
  9323. _ACEOF
  9324. ;;
  9325. esac
  9326. rm -f conftest*
  9327. fi
  9328. fi
  9329. # Checks for library functions.
  9330. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9331. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9332. # Check whether --enable-nls was given.
  9333. if test "${enable_nls+set}" = set; then
  9334. enableval=$enable_nls; USE_NLS=$enableval
  9335. else
  9336. USE_NLS=yes
  9337. fi
  9338. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9339. echo "${ECHO_T}$USE_NLS" >&6; }
  9340. GETTEXT_MACRO_VERSION=0.17
  9341. # Prepare PATH_SEPARATOR.
  9342. # The user is always right.
  9343. if test "${PATH_SEPARATOR+set}" != set; then
  9344. echo "#! /bin/sh" >conf$$.sh
  9345. echo "exit 0" >>conf$$.sh
  9346. chmod +x conf$$.sh
  9347. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9348. PATH_SEPARATOR=';'
  9349. else
  9350. PATH_SEPARATOR=:
  9351. fi
  9352. rm -f conf$$.sh
  9353. fi
  9354. # Find out how to test for executable files. Don't use a zero-byte file,
  9355. # as systems may use methods other than mode bits to determine executability.
  9356. cat >conf$$.file <<_ASEOF
  9357. #! /bin/sh
  9358. exit 0
  9359. _ASEOF
  9360. chmod +x conf$$.file
  9361. if test -x conf$$.file >/dev/null 2>&1; then
  9362. ac_executable_p="test -x"
  9363. else
  9364. ac_executable_p="test -f"
  9365. fi
  9366. rm -f conf$$.file
  9367. # Extract the first word of "msgfmt", so it can be a program name with args.
  9368. set dummy msgfmt; ac_word=$2
  9369. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9371. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9372. echo $ECHO_N "(cached) $ECHO_C" >&6
  9373. else
  9374. case "$MSGFMT" in
  9375. [\\/]* | ?:[\\/]*)
  9376. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9377. ;;
  9378. *)
  9379. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9380. for ac_dir in $PATH; do
  9381. IFS="$ac_save_IFS"
  9382. test -z "$ac_dir" && ac_dir=.
  9383. for ac_exec_ext in '' $ac_executable_extensions; do
  9384. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9385. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9386. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9387. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9388. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9389. break 2
  9390. fi
  9391. fi
  9392. done
  9393. done
  9394. IFS="$ac_save_IFS"
  9395. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9396. ;;
  9397. esac
  9398. fi
  9399. MSGFMT="$ac_cv_path_MSGFMT"
  9400. if test "$MSGFMT" != ":"; then
  9401. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9402. echo "${ECHO_T}$MSGFMT" >&6; }
  9403. else
  9404. { echo "$as_me:$LINENO: result: no" >&5
  9405. echo "${ECHO_T}no" >&6; }
  9406. fi
  9407. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9408. set dummy gmsgfmt; ac_word=$2
  9409. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9411. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9412. echo $ECHO_N "(cached) $ECHO_C" >&6
  9413. else
  9414. case $GMSGFMT in
  9415. [\\/]* | ?:[\\/]*)
  9416. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9417. ;;
  9418. *)
  9419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9420. for as_dir in $PATH
  9421. do
  9422. IFS=$as_save_IFS
  9423. test -z "$as_dir" && as_dir=.
  9424. for ac_exec_ext in '' $ac_executable_extensions; do
  9425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9426. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9427. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9428. break 2
  9429. fi
  9430. done
  9431. done
  9432. IFS=$as_save_IFS
  9433. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9434. ;;
  9435. esac
  9436. fi
  9437. GMSGFMT=$ac_cv_path_GMSGFMT
  9438. if test -n "$GMSGFMT"; then
  9439. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9440. echo "${ECHO_T}$GMSGFMT" >&6; }
  9441. else
  9442. { echo "$as_me:$LINENO: result: no" >&5
  9443. echo "${ECHO_T}no" >&6; }
  9444. fi
  9445. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9446. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9447. *) MSGFMT_015=$MSGFMT ;;
  9448. esac
  9449. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9450. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9451. *) GMSGFMT_015=$GMSGFMT ;;
  9452. esac
  9453. # Prepare PATH_SEPARATOR.
  9454. # The user is always right.
  9455. if test "${PATH_SEPARATOR+set}" != set; then
  9456. echo "#! /bin/sh" >conf$$.sh
  9457. echo "exit 0" >>conf$$.sh
  9458. chmod +x conf$$.sh
  9459. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9460. PATH_SEPARATOR=';'
  9461. else
  9462. PATH_SEPARATOR=:
  9463. fi
  9464. rm -f conf$$.sh
  9465. fi
  9466. # Find out how to test for executable files. Don't use a zero-byte file,
  9467. # as systems may use methods other than mode bits to determine executability.
  9468. cat >conf$$.file <<_ASEOF
  9469. #! /bin/sh
  9470. exit 0
  9471. _ASEOF
  9472. chmod +x conf$$.file
  9473. if test -x conf$$.file >/dev/null 2>&1; then
  9474. ac_executable_p="test -x"
  9475. else
  9476. ac_executable_p="test -f"
  9477. fi
  9478. rm -f conf$$.file
  9479. # Extract the first word of "xgettext", so it can be a program name with args.
  9480. set dummy xgettext; ac_word=$2
  9481. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9482. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9483. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9484. echo $ECHO_N "(cached) $ECHO_C" >&6
  9485. else
  9486. case "$XGETTEXT" in
  9487. [\\/]* | ?:[\\/]*)
  9488. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9489. ;;
  9490. *)
  9491. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9492. for ac_dir in $PATH; do
  9493. IFS="$ac_save_IFS"
  9494. test -z "$ac_dir" && ac_dir=.
  9495. for ac_exec_ext in '' $ac_executable_extensions; do
  9496. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9497. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9498. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9499. (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
  9500. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9501. break 2
  9502. fi
  9503. fi
  9504. done
  9505. done
  9506. IFS="$ac_save_IFS"
  9507. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9508. ;;
  9509. esac
  9510. fi
  9511. XGETTEXT="$ac_cv_path_XGETTEXT"
  9512. if test "$XGETTEXT" != ":"; then
  9513. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9514. echo "${ECHO_T}$XGETTEXT" >&6; }
  9515. else
  9516. { echo "$as_me:$LINENO: result: no" >&5
  9517. echo "${ECHO_T}no" >&6; }
  9518. fi
  9519. rm -f messages.po
  9520. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9521. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9522. *) XGETTEXT_015=$XGETTEXT ;;
  9523. esac
  9524. # Prepare PATH_SEPARATOR.
  9525. # The user is always right.
  9526. if test "${PATH_SEPARATOR+set}" != set; then
  9527. echo "#! /bin/sh" >conf$$.sh
  9528. echo "exit 0" >>conf$$.sh
  9529. chmod +x conf$$.sh
  9530. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9531. PATH_SEPARATOR=';'
  9532. else
  9533. PATH_SEPARATOR=:
  9534. fi
  9535. rm -f conf$$.sh
  9536. fi
  9537. # Find out how to test for executable files. Don't use a zero-byte file,
  9538. # as systems may use methods other than mode bits to determine executability.
  9539. cat >conf$$.file <<_ASEOF
  9540. #! /bin/sh
  9541. exit 0
  9542. _ASEOF
  9543. chmod +x conf$$.file
  9544. if test -x conf$$.file >/dev/null 2>&1; then
  9545. ac_executable_p="test -x"
  9546. else
  9547. ac_executable_p="test -f"
  9548. fi
  9549. rm -f conf$$.file
  9550. # Extract the first word of "msgmerge", so it can be a program name with args.
  9551. set dummy msgmerge; ac_word=$2
  9552. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9554. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9555. echo $ECHO_N "(cached) $ECHO_C" >&6
  9556. else
  9557. case "$MSGMERGE" in
  9558. [\\/]* | ?:[\\/]*)
  9559. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9560. ;;
  9561. *)
  9562. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9563. for ac_dir in $PATH; do
  9564. IFS="$ac_save_IFS"
  9565. test -z "$ac_dir" && ac_dir=.
  9566. for ac_exec_ext in '' $ac_executable_extensions; do
  9567. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9568. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9569. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9570. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9571. break 2
  9572. fi
  9573. fi
  9574. done
  9575. done
  9576. IFS="$ac_save_IFS"
  9577. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9578. ;;
  9579. esac
  9580. fi
  9581. MSGMERGE="$ac_cv_path_MSGMERGE"
  9582. if test "$MSGMERGE" != ":"; then
  9583. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9584. echo "${ECHO_T}$MSGMERGE" >&6; }
  9585. else
  9586. { echo "$as_me:$LINENO: result: no" >&5
  9587. echo "${ECHO_T}no" >&6; }
  9588. fi
  9589. test -n "$localedir" || localedir='${datadir}/locale'
  9590. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9591. ac_config_commands="$ac_config_commands po-directories"
  9592. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9593. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9594. if test "${ac_cv_gnu_library_2+set}" = set; then
  9595. echo $ECHO_N "(cached) $ECHO_C" >&6
  9596. else
  9597. cat >conftest.$ac_ext <<_ACEOF
  9598. /* confdefs.h. */
  9599. _ACEOF
  9600. cat confdefs.h >>conftest.$ac_ext
  9601. cat >>conftest.$ac_ext <<_ACEOF
  9602. /* end confdefs.h. */
  9603. #include <features.h>
  9604. #ifdef __GNU_LIBRARY__
  9605. #if (__GLIBC__ >= 2)
  9606. Lucky GNU user
  9607. #endif
  9608. #endif
  9609. _ACEOF
  9610. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9611. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9612. ac_cv_gnu_library_2=yes
  9613. else
  9614. ac_cv_gnu_library_2=no
  9615. fi
  9616. rm -f conftest*
  9617. fi
  9618. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9619. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9620. GLIBC2="$ac_cv_gnu_library_2"
  9621. CFLAG_VISIBILITY=
  9622. HAVE_VISIBILITY=0
  9623. if test -n "$GCC"; then
  9624. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9625. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9626. if test "${gl_cv_cc_visibility+set}" = set; then
  9627. echo $ECHO_N "(cached) $ECHO_C" >&6
  9628. else
  9629. gl_save_CFLAGS="$CFLAGS"
  9630. CFLAGS="$CFLAGS -fvisibility=hidden"
  9631. cat >conftest.$ac_ext <<_ACEOF
  9632. /* confdefs.h. */
  9633. _ACEOF
  9634. cat confdefs.h >>conftest.$ac_ext
  9635. cat >>conftest.$ac_ext <<_ACEOF
  9636. /* end confdefs.h. */
  9637. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9638. extern __attribute__((__visibility__("default"))) int exportedvar;
  9639. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9640. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9641. int
  9642. main ()
  9643. {
  9644. ;
  9645. return 0;
  9646. }
  9647. _ACEOF
  9648. rm -f conftest.$ac_objext
  9649. if { (ac_try="$ac_compile"
  9650. case "(($ac_try" in
  9651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9652. *) ac_try_echo=$ac_try;;
  9653. esac
  9654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9655. (eval "$ac_compile") 2>conftest.er1
  9656. ac_status=$?
  9657. grep -v '^ *+' conftest.er1 >conftest.err
  9658. rm -f conftest.er1
  9659. cat conftest.err >&5
  9660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9661. (exit $ac_status); } && {
  9662. test -z "$ac_cxx_werror_flag" ||
  9663. test ! -s conftest.err
  9664. } && test -s conftest.$ac_objext; then
  9665. gl_cv_cc_visibility=yes
  9666. else
  9667. echo "$as_me: failed program was:" >&5
  9668. sed 's/^/| /' conftest.$ac_ext >&5
  9669. gl_cv_cc_visibility=no
  9670. fi
  9671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9672. CFLAGS="$gl_save_CFLAGS"
  9673. fi
  9674. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9675. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9676. if test $gl_cv_cc_visibility = yes; then
  9677. CFLAG_VISIBILITY="-fvisibility=hidden"
  9678. HAVE_VISIBILITY=1
  9679. fi
  9680. fi
  9681. cat >>confdefs.h <<_ACEOF
  9682. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9683. _ACEOF
  9684. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9685. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9686. if test "${gl_cv_header_stdint_h+set}" = set; then
  9687. echo $ECHO_N "(cached) $ECHO_C" >&6
  9688. else
  9689. cat >conftest.$ac_ext <<_ACEOF
  9690. /* confdefs.h. */
  9691. _ACEOF
  9692. cat confdefs.h >>conftest.$ac_ext
  9693. cat >>conftest.$ac_ext <<_ACEOF
  9694. /* end confdefs.h. */
  9695. #include <sys/types.h>
  9696. #include <stdint.h>
  9697. int
  9698. main ()
  9699. {
  9700. uintmax_t i = (uintmax_t) -1; return !i;
  9701. ;
  9702. return 0;
  9703. }
  9704. _ACEOF
  9705. rm -f conftest.$ac_objext
  9706. if { (ac_try="$ac_compile"
  9707. case "(($ac_try" in
  9708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9709. *) ac_try_echo=$ac_try;;
  9710. esac
  9711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9712. (eval "$ac_compile") 2>conftest.er1
  9713. ac_status=$?
  9714. grep -v '^ *+' conftest.er1 >conftest.err
  9715. rm -f conftest.er1
  9716. cat conftest.err >&5
  9717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9718. (exit $ac_status); } && {
  9719. test -z "$ac_cxx_werror_flag" ||
  9720. test ! -s conftest.err
  9721. } && test -s conftest.$ac_objext; then
  9722. gl_cv_header_stdint_h=yes
  9723. else
  9724. echo "$as_me: failed program was:" >&5
  9725. sed 's/^/| /' conftest.$ac_ext >&5
  9726. gl_cv_header_stdint_h=no
  9727. fi
  9728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9729. fi
  9730. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9731. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9732. if test $gl_cv_header_stdint_h = yes; then
  9733. cat >>confdefs.h <<_ACEOF
  9734. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9735. _ACEOF
  9736. fi
  9737. for ac_header in stdlib.h unistd.h
  9738. do
  9739. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9740. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9741. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9742. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9743. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9744. echo $ECHO_N "(cached) $ECHO_C" >&6
  9745. fi
  9746. ac_res=`eval echo '${'$as_ac_Header'}'`
  9747. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9748. echo "${ECHO_T}$ac_res" >&6; }
  9749. else
  9750. # Is the header compilable?
  9751. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9752. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9753. cat >conftest.$ac_ext <<_ACEOF
  9754. /* confdefs.h. */
  9755. _ACEOF
  9756. cat confdefs.h >>conftest.$ac_ext
  9757. cat >>conftest.$ac_ext <<_ACEOF
  9758. /* end confdefs.h. */
  9759. $ac_includes_default
  9760. #include <$ac_header>
  9761. _ACEOF
  9762. rm -f conftest.$ac_objext
  9763. if { (ac_try="$ac_compile"
  9764. case "(($ac_try" in
  9765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9766. *) ac_try_echo=$ac_try;;
  9767. esac
  9768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9769. (eval "$ac_compile") 2>conftest.er1
  9770. ac_status=$?
  9771. grep -v '^ *+' conftest.er1 >conftest.err
  9772. rm -f conftest.er1
  9773. cat conftest.err >&5
  9774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9775. (exit $ac_status); } && {
  9776. test -z "$ac_cxx_werror_flag" ||
  9777. test ! -s conftest.err
  9778. } && test -s conftest.$ac_objext; then
  9779. ac_header_compiler=yes
  9780. else
  9781. echo "$as_me: failed program was:" >&5
  9782. sed 's/^/| /' conftest.$ac_ext >&5
  9783. ac_header_compiler=no
  9784. fi
  9785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9786. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9787. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9788. # Is the header present?
  9789. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9790. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9791. cat >conftest.$ac_ext <<_ACEOF
  9792. /* confdefs.h. */
  9793. _ACEOF
  9794. cat confdefs.h >>conftest.$ac_ext
  9795. cat >>conftest.$ac_ext <<_ACEOF
  9796. /* end confdefs.h. */
  9797. #include <$ac_header>
  9798. _ACEOF
  9799. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9800. case "(($ac_try" in
  9801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9802. *) ac_try_echo=$ac_try;;
  9803. esac
  9804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9805. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9806. ac_status=$?
  9807. grep -v '^ *+' conftest.er1 >conftest.err
  9808. rm -f conftest.er1
  9809. cat conftest.err >&5
  9810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9811. (exit $ac_status); } >/dev/null && {
  9812. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9813. test ! -s conftest.err
  9814. }; then
  9815. ac_header_preproc=yes
  9816. else
  9817. echo "$as_me: failed program was:" >&5
  9818. sed 's/^/| /' conftest.$ac_ext >&5
  9819. ac_header_preproc=no
  9820. fi
  9821. rm -f conftest.err conftest.$ac_ext
  9822. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9823. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9824. # So? What about this header?
  9825. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9826. yes:no: )
  9827. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9828. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9829. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9830. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9831. ac_header_preproc=yes
  9832. ;;
  9833. no:yes:* )
  9834. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9835. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9836. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9837. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9838. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9839. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9840. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9841. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9842. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9843. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9844. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9845. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9846. ( cat <<\_ASBOX
  9847. ## ----------------------------------------------- ##
  9848. ## Report this to t-tujikawa@users.sourceforge.net ##
  9849. ## ----------------------------------------------- ##
  9850. _ASBOX
  9851. ) | sed "s/^/$as_me: WARNING: /" >&2
  9852. ;;
  9853. esac
  9854. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9855. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9856. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9857. echo $ECHO_N "(cached) $ECHO_C" >&6
  9858. else
  9859. eval "$as_ac_Header=\$ac_header_preproc"
  9860. fi
  9861. ac_res=`eval echo '${'$as_ac_Header'}'`
  9862. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9863. echo "${ECHO_T}$ac_res" >&6; }
  9864. fi
  9865. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9866. cat >>confdefs.h <<_ACEOF
  9867. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9868. _ACEOF
  9869. fi
  9870. done
  9871. for ac_func in getpagesize
  9872. do
  9873. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9874. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9875. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9876. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9877. echo $ECHO_N "(cached) $ECHO_C" >&6
  9878. else
  9879. cat >conftest.$ac_ext <<_ACEOF
  9880. /* confdefs.h. */
  9881. _ACEOF
  9882. cat confdefs.h >>conftest.$ac_ext
  9883. cat >>conftest.$ac_ext <<_ACEOF
  9884. /* end confdefs.h. */
  9885. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9887. #define $ac_func innocuous_$ac_func
  9888. /* System header to define __stub macros and hopefully few prototypes,
  9889. which can conflict with char $ac_func (); below.
  9890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9891. <limits.h> exists even on freestanding compilers. */
  9892. #ifdef __STDC__
  9893. # include <limits.h>
  9894. #else
  9895. # include <assert.h>
  9896. #endif
  9897. #undef $ac_func
  9898. /* Override any GCC internal prototype to avoid an error.
  9899. Use char because int might match the return type of a GCC
  9900. builtin and then its argument prototype would still apply. */
  9901. #ifdef __cplusplus
  9902. extern "C"
  9903. #endif
  9904. char $ac_func ();
  9905. /* The GNU C library defines this for functions which it implements
  9906. to always fail with ENOSYS. Some functions are actually named
  9907. something starting with __ and the normal name is an alias. */
  9908. #if defined __stub_$ac_func || defined __stub___$ac_func
  9909. choke me
  9910. #endif
  9911. int
  9912. main ()
  9913. {
  9914. return $ac_func ();
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. rm -f conftest.$ac_objext conftest$ac_exeext
  9920. if { (ac_try="$ac_link"
  9921. case "(($ac_try" in
  9922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9923. *) ac_try_echo=$ac_try;;
  9924. esac
  9925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9926. (eval "$ac_link") 2>conftest.er1
  9927. ac_status=$?
  9928. grep -v '^ *+' conftest.er1 >conftest.err
  9929. rm -f conftest.er1
  9930. cat conftest.err >&5
  9931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9932. (exit $ac_status); } && {
  9933. test -z "$ac_cxx_werror_flag" ||
  9934. test ! -s conftest.err
  9935. } && test -s conftest$ac_exeext &&
  9936. $as_test_x conftest$ac_exeext; then
  9937. eval "$as_ac_var=yes"
  9938. else
  9939. echo "$as_me: failed program was:" >&5
  9940. sed 's/^/| /' conftest.$ac_ext >&5
  9941. eval "$as_ac_var=no"
  9942. fi
  9943. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9944. conftest$ac_exeext conftest.$ac_ext
  9945. fi
  9946. ac_res=`eval echo '${'$as_ac_var'}'`
  9947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9948. echo "${ECHO_T}$ac_res" >&6; }
  9949. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9950. cat >>confdefs.h <<_ACEOF
  9951. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9952. _ACEOF
  9953. fi
  9954. done
  9955. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9956. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9957. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9958. echo $ECHO_N "(cached) $ECHO_C" >&6
  9959. else
  9960. if test "$cross_compiling" = yes; then
  9961. ac_cv_func_mmap_fixed_mapped=no
  9962. else
  9963. cat >conftest.$ac_ext <<_ACEOF
  9964. /* confdefs.h. */
  9965. _ACEOF
  9966. cat confdefs.h >>conftest.$ac_ext
  9967. cat >>conftest.$ac_ext <<_ACEOF
  9968. /* end confdefs.h. */
  9969. $ac_includes_default
  9970. /* malloc might have been renamed as rpl_malloc. */
  9971. #undef malloc
  9972. /* Thanks to Mike Haertel and Jim Avera for this test.
  9973. Here is a matrix of mmap possibilities:
  9974. mmap private not fixed
  9975. mmap private fixed at somewhere currently unmapped
  9976. mmap private fixed at somewhere already mapped
  9977. mmap shared not fixed
  9978. mmap shared fixed at somewhere currently unmapped
  9979. mmap shared fixed at somewhere already mapped
  9980. For private mappings, we should verify that changes cannot be read()
  9981. back from the file, nor mmap's back from the file at a different
  9982. address. (There have been systems where private was not correctly
  9983. implemented like the infamous i386 svr4.0, and systems where the
  9984. VM page cache was not coherent with the file system buffer cache
  9985. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9986. For shared mappings, we should conversely verify that changes get
  9987. propagated back to all the places they're supposed to be.
  9988. Grep wants private fixed already mapped.
  9989. The main things grep needs to know about mmap are:
  9990. * does it exist and is it safe to write into the mmap'd area
  9991. * how to use it (BSD variants) */
  9992. #include <fcntl.h>
  9993. #include <sys/mman.h>
  9994. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9995. char *malloc ();
  9996. #endif
  9997. /* This mess was copied from the GNU getpagesize.h. */
  9998. #ifndef HAVE_GETPAGESIZE
  9999. /* Assume that all systems that can run configure have sys/param.h. */
  10000. # ifndef HAVE_SYS_PARAM_H
  10001. # define HAVE_SYS_PARAM_H 1
  10002. # endif
  10003. # ifdef _SC_PAGESIZE
  10004. # define getpagesize() sysconf(_SC_PAGESIZE)
  10005. # else /* no _SC_PAGESIZE */
  10006. # ifdef HAVE_SYS_PARAM_H
  10007. # include <sys/param.h>
  10008. # ifdef EXEC_PAGESIZE
  10009. # define getpagesize() EXEC_PAGESIZE
  10010. # else /* no EXEC_PAGESIZE */
  10011. # ifdef NBPG
  10012. # define getpagesize() NBPG * CLSIZE
  10013. # ifndef CLSIZE
  10014. # define CLSIZE 1
  10015. # endif /* no CLSIZE */
  10016. # else /* no NBPG */
  10017. # ifdef NBPC
  10018. # define getpagesize() NBPC
  10019. # else /* no NBPC */
  10020. # ifdef PAGESIZE
  10021. # define getpagesize() PAGESIZE
  10022. # endif /* PAGESIZE */
  10023. # endif /* no NBPC */
  10024. # endif /* no NBPG */
  10025. # endif /* no EXEC_PAGESIZE */
  10026. # else /* no HAVE_SYS_PARAM_H */
  10027. # define getpagesize() 8192 /* punt totally */
  10028. # endif /* no HAVE_SYS_PARAM_H */
  10029. # endif /* no _SC_PAGESIZE */
  10030. #endif /* no HAVE_GETPAGESIZE */
  10031. int
  10032. main ()
  10033. {
  10034. char *data, *data2, *data3;
  10035. int i, pagesize;
  10036. int fd;
  10037. pagesize = getpagesize ();
  10038. /* First, make a file with some known garbage in it. */
  10039. data = (char *) malloc (pagesize);
  10040. if (!data)
  10041. return 1;
  10042. for (i = 0; i < pagesize; ++i)
  10043. *(data + i) = rand ();
  10044. umask (0);
  10045. fd = creat ("conftest.mmap", 0600);
  10046. if (fd < 0)
  10047. return 1;
  10048. if (write (fd, data, pagesize) != pagesize)
  10049. return 1;
  10050. close (fd);
  10051. /* Next, try to mmap the file at a fixed address which already has
  10052. something else allocated at it. If we can, also make sure that
  10053. we see the same garbage. */
  10054. fd = open ("conftest.mmap", O_RDWR);
  10055. if (fd < 0)
  10056. return 1;
  10057. data2 = (char *) malloc (2 * pagesize);
  10058. if (!data2)
  10059. return 1;
  10060. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10061. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10062. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10063. return 1;
  10064. for (i = 0; i < pagesize; ++i)
  10065. if (*(data + i) != *(data2 + i))
  10066. return 1;
  10067. /* Finally, make sure that changes to the mapped area do not
  10068. percolate back to the file as seen by read(). (This is a bug on
  10069. some variants of i386 svr4.0.) */
  10070. for (i = 0; i < pagesize; ++i)
  10071. *(data2 + i) = *(data2 + i) + 1;
  10072. data3 = (char *) malloc (pagesize);
  10073. if (!data3)
  10074. return 1;
  10075. if (read (fd, data3, pagesize) != pagesize)
  10076. return 1;
  10077. for (i = 0; i < pagesize; ++i)
  10078. if (*(data + i) != *(data3 + i))
  10079. return 1;
  10080. close (fd);
  10081. return 0;
  10082. }
  10083. _ACEOF
  10084. rm -f conftest$ac_exeext
  10085. if { (ac_try="$ac_link"
  10086. case "(($ac_try" in
  10087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10088. *) ac_try_echo=$ac_try;;
  10089. esac
  10090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10091. (eval "$ac_link") 2>&5
  10092. ac_status=$?
  10093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10094. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10095. { (case "(($ac_try" in
  10096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10097. *) ac_try_echo=$ac_try;;
  10098. esac
  10099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10100. (eval "$ac_try") 2>&5
  10101. ac_status=$?
  10102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10103. (exit $ac_status); }; }; then
  10104. ac_cv_func_mmap_fixed_mapped=yes
  10105. else
  10106. echo "$as_me: program exited with status $ac_status" >&5
  10107. echo "$as_me: failed program was:" >&5
  10108. sed 's/^/| /' conftest.$ac_ext >&5
  10109. ( exit $ac_status )
  10110. ac_cv_func_mmap_fixed_mapped=no
  10111. fi
  10112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10113. fi
  10114. fi
  10115. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10116. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10117. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10118. cat >>confdefs.h <<\_ACEOF
  10119. #define HAVE_MMAP 1
  10120. _ACEOF
  10121. fi
  10122. rm -f conftest.mmap
  10123. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10124. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10125. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10126. echo $ECHO_N "(cached) $ECHO_C" >&6
  10127. else
  10128. gt_cv_int_divbyzero_sigfpe=
  10129. case "$host_os" in
  10130. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10131. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10132. # compiling. If we were to perform the real test, 1 Crash Report
  10133. # dialog window would pop up.
  10134. case "$host_cpu" in
  10135. i[34567]86 | x86_64)
  10136. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10137. esac
  10138. ;;
  10139. esac
  10140. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10141. if test "$cross_compiling" = yes; then
  10142. # Guess based on the CPU.
  10143. case "$host_cpu" in
  10144. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10145. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10146. *)
  10147. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10148. esac
  10149. else
  10150. cat >conftest.$ac_ext <<_ACEOF
  10151. /* confdefs.h. */
  10152. _ACEOF
  10153. cat confdefs.h >>conftest.$ac_ext
  10154. cat >>conftest.$ac_ext <<_ACEOF
  10155. /* end confdefs.h. */
  10156. #include <stdlib.h>
  10157. #include <signal.h>
  10158. static void
  10159. sigfpe_handler (int sig)
  10160. {
  10161. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10162. exit (sig != SIGFPE);
  10163. }
  10164. int x = 1;
  10165. int y = 0;
  10166. int z;
  10167. int nan;
  10168. int main ()
  10169. {
  10170. signal (SIGFPE, sigfpe_handler);
  10171. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10172. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10173. signal (SIGTRAP, sigfpe_handler);
  10174. #endif
  10175. /* Linux/SPARC yields signal SIGILL. */
  10176. #if defined (__sparc__) && defined (__linux__)
  10177. signal (SIGILL, sigfpe_handler);
  10178. #endif
  10179. z = x / y;
  10180. nan = y / y;
  10181. exit (1);
  10182. }
  10183. _ACEOF
  10184. rm -f conftest$ac_exeext
  10185. if { (ac_try="$ac_link"
  10186. case "(($ac_try" in
  10187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10188. *) ac_try_echo=$ac_try;;
  10189. esac
  10190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10191. (eval "$ac_link") 2>&5
  10192. ac_status=$?
  10193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10194. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10195. { (case "(($ac_try" in
  10196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10197. *) ac_try_echo=$ac_try;;
  10198. esac
  10199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10200. (eval "$ac_try") 2>&5
  10201. ac_status=$?
  10202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10203. (exit $ac_status); }; }; then
  10204. gt_cv_int_divbyzero_sigfpe=yes
  10205. else
  10206. echo "$as_me: program exited with status $ac_status" >&5
  10207. echo "$as_me: failed program was:" >&5
  10208. sed 's/^/| /' conftest.$ac_ext >&5
  10209. ( exit $ac_status )
  10210. gt_cv_int_divbyzero_sigfpe=no
  10211. fi
  10212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10213. fi
  10214. fi
  10215. fi
  10216. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10217. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10218. case "$gt_cv_int_divbyzero_sigfpe" in
  10219. *yes) value=1;;
  10220. *) value=0;;
  10221. esac
  10222. cat >>confdefs.h <<_ACEOF
  10223. #define INTDIV0_RAISES_SIGFPE $value
  10224. _ACEOF
  10225. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10226. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10227. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10228. echo $ECHO_N "(cached) $ECHO_C" >&6
  10229. else
  10230. cat >conftest.$ac_ext <<_ACEOF
  10231. /* confdefs.h. */
  10232. _ACEOF
  10233. cat confdefs.h >>conftest.$ac_ext
  10234. cat >>conftest.$ac_ext <<_ACEOF
  10235. /* end confdefs.h. */
  10236. #include <sys/types.h>
  10237. #include <inttypes.h>
  10238. int
  10239. main ()
  10240. {
  10241. uintmax_t i = (uintmax_t) -1; return !i;
  10242. ;
  10243. return 0;
  10244. }
  10245. _ACEOF
  10246. rm -f conftest.$ac_objext
  10247. if { (ac_try="$ac_compile"
  10248. case "(($ac_try" in
  10249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10250. *) ac_try_echo=$ac_try;;
  10251. esac
  10252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10253. (eval "$ac_compile") 2>conftest.er1
  10254. ac_status=$?
  10255. grep -v '^ *+' conftest.er1 >conftest.err
  10256. rm -f conftest.er1
  10257. cat conftest.err >&5
  10258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10259. (exit $ac_status); } && {
  10260. test -z "$ac_cxx_werror_flag" ||
  10261. test ! -s conftest.err
  10262. } && test -s conftest.$ac_objext; then
  10263. gl_cv_header_inttypes_h=yes
  10264. else
  10265. echo "$as_me: failed program was:" >&5
  10266. sed 's/^/| /' conftest.$ac_ext >&5
  10267. gl_cv_header_inttypes_h=no
  10268. fi
  10269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10270. fi
  10271. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10272. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10273. if test $gl_cv_header_inttypes_h = yes; then
  10274. cat >>confdefs.h <<_ACEOF
  10275. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10276. _ACEOF
  10277. fi
  10278. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10279. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10280. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10281. echo $ECHO_N "(cached) $ECHO_C" >&6
  10282. else
  10283. cat >conftest.$ac_ext <<_ACEOF
  10284. /* confdefs.h. */
  10285. _ACEOF
  10286. cat confdefs.h >>conftest.$ac_ext
  10287. cat >>conftest.$ac_ext <<_ACEOF
  10288. /* end confdefs.h. */
  10289. /* Test preprocessor. */
  10290. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10291. error in preprocessor;
  10292. #endif
  10293. #if ! (18446744073709551615ULL <= -1ull)
  10294. error in preprocessor;
  10295. #endif
  10296. /* Test literals. */
  10297. long long int ll = 9223372036854775807ll;
  10298. long long int nll = -9223372036854775807LL;
  10299. unsigned long long int ull = 18446744073709551615ULL;
  10300. /* Test constant expressions. */
  10301. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10302. ? 1 : -1)];
  10303. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10304. ? 1 : -1)];
  10305. int i = 63;
  10306. int
  10307. main ()
  10308. {
  10309. /* Test availability of runtime routines for shift and division. */
  10310. long long int llmax = 9223372036854775807ll;
  10311. unsigned long long int ullmax = 18446744073709551615ull;
  10312. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10313. | (llmax / ll) | (llmax % ll)
  10314. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10315. | (ullmax / ull) | (ullmax % ull));
  10316. ;
  10317. return 0;
  10318. }
  10319. _ACEOF
  10320. rm -f conftest.$ac_objext conftest$ac_exeext
  10321. if { (ac_try="$ac_link"
  10322. case "(($ac_try" in
  10323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10324. *) ac_try_echo=$ac_try;;
  10325. esac
  10326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10327. (eval "$ac_link") 2>conftest.er1
  10328. ac_status=$?
  10329. grep -v '^ *+' conftest.er1 >conftest.err
  10330. rm -f conftest.er1
  10331. cat conftest.err >&5
  10332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10333. (exit $ac_status); } && {
  10334. test -z "$ac_cxx_werror_flag" ||
  10335. test ! -s conftest.err
  10336. } && test -s conftest$ac_exeext &&
  10337. $as_test_x conftest$ac_exeext; then
  10338. ac_cv_type_unsigned_long_long_int=yes
  10339. else
  10340. echo "$as_me: failed program was:" >&5
  10341. sed 's/^/| /' conftest.$ac_ext >&5
  10342. ac_cv_type_unsigned_long_long_int=no
  10343. fi
  10344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10345. conftest$ac_exeext conftest.$ac_ext
  10346. fi
  10347. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10348. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10349. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10350. cat >>confdefs.h <<\_ACEOF
  10351. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10352. _ACEOF
  10353. fi
  10354. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10355. test $ac_cv_type_unsigned_long_long_int = yes \
  10356. && ac_type='unsigned long long' \
  10357. || ac_type='unsigned long'
  10358. cat >>confdefs.h <<_ACEOF
  10359. #define uintmax_t $ac_type
  10360. _ACEOF
  10361. else
  10362. cat >>confdefs.h <<\_ACEOF
  10363. #define HAVE_UINTMAX_T 1
  10364. _ACEOF
  10365. fi
  10366. for ac_header in inttypes.h
  10367. do
  10368. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10369. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10370. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10371. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10373. echo $ECHO_N "(cached) $ECHO_C" >&6
  10374. fi
  10375. ac_res=`eval echo '${'$as_ac_Header'}'`
  10376. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10377. echo "${ECHO_T}$ac_res" >&6; }
  10378. else
  10379. # Is the header compilable?
  10380. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10381. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10382. cat >conftest.$ac_ext <<_ACEOF
  10383. /* confdefs.h. */
  10384. _ACEOF
  10385. cat confdefs.h >>conftest.$ac_ext
  10386. cat >>conftest.$ac_ext <<_ACEOF
  10387. /* end confdefs.h. */
  10388. $ac_includes_default
  10389. #include <$ac_header>
  10390. _ACEOF
  10391. rm -f conftest.$ac_objext
  10392. if { (ac_try="$ac_compile"
  10393. case "(($ac_try" in
  10394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10395. *) ac_try_echo=$ac_try;;
  10396. esac
  10397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10398. (eval "$ac_compile") 2>conftest.er1
  10399. ac_status=$?
  10400. grep -v '^ *+' conftest.er1 >conftest.err
  10401. rm -f conftest.er1
  10402. cat conftest.err >&5
  10403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10404. (exit $ac_status); } && {
  10405. test -z "$ac_cxx_werror_flag" ||
  10406. test ! -s conftest.err
  10407. } && test -s conftest.$ac_objext; then
  10408. ac_header_compiler=yes
  10409. else
  10410. echo "$as_me: failed program was:" >&5
  10411. sed 's/^/| /' conftest.$ac_ext >&5
  10412. ac_header_compiler=no
  10413. fi
  10414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10415. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10416. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10417. # Is the header present?
  10418. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10419. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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. #include <$ac_header>
  10427. _ACEOF
  10428. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10429. case "(($ac_try" in
  10430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10431. *) ac_try_echo=$ac_try;;
  10432. esac
  10433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10434. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10435. ac_status=$?
  10436. grep -v '^ *+' conftest.er1 >conftest.err
  10437. rm -f conftest.er1
  10438. cat conftest.err >&5
  10439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10440. (exit $ac_status); } >/dev/null && {
  10441. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10442. test ! -s conftest.err
  10443. }; then
  10444. ac_header_preproc=yes
  10445. else
  10446. echo "$as_me: failed program was:" >&5
  10447. sed 's/^/| /' conftest.$ac_ext >&5
  10448. ac_header_preproc=no
  10449. fi
  10450. rm -f conftest.err conftest.$ac_ext
  10451. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10452. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10453. # So? What about this header?
  10454. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10455. yes:no: )
  10456. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10457. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10458. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10459. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10460. ac_header_preproc=yes
  10461. ;;
  10462. no:yes:* )
  10463. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10464. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10465. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10466. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10467. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10468. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10469. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10470. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10471. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10472. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10473. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10474. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10475. ( cat <<\_ASBOX
  10476. ## ----------------------------------------------- ##
  10477. ## Report this to t-tujikawa@users.sourceforge.net ##
  10478. ## ----------------------------------------------- ##
  10479. _ASBOX
  10480. ) | sed "s/^/$as_me: WARNING: /" >&2
  10481. ;;
  10482. esac
  10483. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10484. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10485. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10486. echo $ECHO_N "(cached) $ECHO_C" >&6
  10487. else
  10488. eval "$as_ac_Header=\$ac_header_preproc"
  10489. fi
  10490. ac_res=`eval echo '${'$as_ac_Header'}'`
  10491. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10492. echo "${ECHO_T}$ac_res" >&6; }
  10493. fi
  10494. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10495. cat >>confdefs.h <<_ACEOF
  10496. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10497. _ACEOF
  10498. fi
  10499. done
  10500. if test $ac_cv_header_inttypes_h = yes; then
  10501. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10502. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10503. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10504. echo $ECHO_N "(cached) $ECHO_C" >&6
  10505. else
  10506. cat >conftest.$ac_ext <<_ACEOF
  10507. /* confdefs.h. */
  10508. _ACEOF
  10509. cat confdefs.h >>conftest.$ac_ext
  10510. cat >>conftest.$ac_ext <<_ACEOF
  10511. /* end confdefs.h. */
  10512. #include <inttypes.h>
  10513. #ifdef PRId32
  10514. char *p = PRId32;
  10515. #endif
  10516. int
  10517. main ()
  10518. {
  10519. ;
  10520. return 0;
  10521. }
  10522. _ACEOF
  10523. rm -f conftest.$ac_objext
  10524. if { (ac_try="$ac_compile"
  10525. case "(($ac_try" in
  10526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10527. *) ac_try_echo=$ac_try;;
  10528. esac
  10529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10530. (eval "$ac_compile") 2>conftest.er1
  10531. ac_status=$?
  10532. grep -v '^ *+' conftest.er1 >conftest.err
  10533. rm -f conftest.er1
  10534. cat conftest.err >&5
  10535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10536. (exit $ac_status); } && {
  10537. test -z "$ac_cxx_werror_flag" ||
  10538. test ! -s conftest.err
  10539. } && test -s conftest.$ac_objext; then
  10540. gt_cv_inttypes_pri_broken=no
  10541. else
  10542. echo "$as_me: failed program was:" >&5
  10543. sed 's/^/| /' conftest.$ac_ext >&5
  10544. gt_cv_inttypes_pri_broken=yes
  10545. fi
  10546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10547. fi
  10548. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10549. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10550. fi
  10551. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10552. cat >>confdefs.h <<_ACEOF
  10553. #define PRI_MACROS_BROKEN 1
  10554. _ACEOF
  10555. PRI_MACROS_BROKEN=1
  10556. else
  10557. PRI_MACROS_BROKEN=0
  10558. fi
  10559. # Check whether --enable-threads was given.
  10560. if test "${enable_threads+set}" = set; then
  10561. enableval=$enable_threads; gl_use_threads=$enableval
  10562. else
  10563. case "$host_os" in
  10564. osf*) gl_use_threads=no ;;
  10565. *) gl_use_threads=yes ;;
  10566. esac
  10567. fi
  10568. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10569. # For using <pthread.h>:
  10570. case "$host_os" in
  10571. osf*)
  10572. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10573. # groks <pthread.h>. cc also understands the flag -pthread, but
  10574. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10575. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10576. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10577. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10578. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10579. ;;
  10580. esac
  10581. # Some systems optimize for single-threaded programs by default, and
  10582. # need special flags to disable these optimizations. For example, the
  10583. # definition of 'errno' in <errno.h>.
  10584. case "$host_os" in
  10585. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10586. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10587. esac
  10588. fi
  10589. if test "X$prefix" = "XNONE"; then
  10590. acl_final_prefix="$ac_default_prefix"
  10591. else
  10592. acl_final_prefix="$prefix"
  10593. fi
  10594. if test "X$exec_prefix" = "XNONE"; then
  10595. acl_final_exec_prefix='${prefix}'
  10596. else
  10597. acl_final_exec_prefix="$exec_prefix"
  10598. fi
  10599. acl_save_prefix="$prefix"
  10600. prefix="$acl_final_prefix"
  10601. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10602. prefix="$acl_save_prefix"
  10603. # Check whether --with-gnu-ld was given.
  10604. if test "${with_gnu_ld+set}" = set; then
  10605. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10606. else
  10607. with_gnu_ld=no
  10608. fi
  10609. # Prepare PATH_SEPARATOR.
  10610. # The user is always right.
  10611. if test "${PATH_SEPARATOR+set}" != set; then
  10612. echo "#! /bin/sh" >conf$$.sh
  10613. echo "exit 0" >>conf$$.sh
  10614. chmod +x conf$$.sh
  10615. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10616. PATH_SEPARATOR=';'
  10617. else
  10618. PATH_SEPARATOR=:
  10619. fi
  10620. rm -f conf$$.sh
  10621. fi
  10622. ac_prog=ld
  10623. if test "$GCC" = yes; then
  10624. # Check if gcc -print-prog-name=ld gives a path.
  10625. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10626. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10627. case $host in
  10628. *-*-mingw*)
  10629. # gcc leaves a trailing carriage return which upsets mingw
  10630. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10631. *)
  10632. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10633. esac
  10634. case $ac_prog in
  10635. # Accept absolute paths.
  10636. [\\/]* | [A-Za-z]:[\\/]*)
  10637. re_direlt='/[^/][^/]*/\.\./'
  10638. # Canonicalize the path of ld
  10639. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10640. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10641. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10642. done
  10643. test -z "$LD" && LD="$ac_prog"
  10644. ;;
  10645. "")
  10646. # If it fails, then pretend we aren't using GCC.
  10647. ac_prog=ld
  10648. ;;
  10649. *)
  10650. # If it is relative, then search for the first ld in PATH.
  10651. with_gnu_ld=unknown
  10652. ;;
  10653. esac
  10654. elif test "$with_gnu_ld" = yes; then
  10655. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10656. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10657. else
  10658. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10659. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10660. fi
  10661. if test "${acl_cv_path_LD+set}" = set; then
  10662. echo $ECHO_N "(cached) $ECHO_C" >&6
  10663. else
  10664. if test -z "$LD"; then
  10665. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10666. for ac_dir in $PATH; do
  10667. test -z "$ac_dir" && ac_dir=.
  10668. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10669. acl_cv_path_LD="$ac_dir/$ac_prog"
  10670. # Check to see if the program is GNU ld. I'd rather use --version,
  10671. # but apparently some GNU ld's only accept -v.
  10672. # Break only if it was the GNU/non-GNU ld that we prefer.
  10673. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10674. *GNU* | *'with BFD'*)
  10675. test "$with_gnu_ld" != no && break ;;
  10676. *)
  10677. test "$with_gnu_ld" != yes && break ;;
  10678. esac
  10679. fi
  10680. done
  10681. IFS="$ac_save_ifs"
  10682. else
  10683. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10684. fi
  10685. fi
  10686. LD="$acl_cv_path_LD"
  10687. if test -n "$LD"; then
  10688. { echo "$as_me:$LINENO: result: $LD" >&5
  10689. echo "${ECHO_T}$LD" >&6; }
  10690. else
  10691. { echo "$as_me:$LINENO: result: no" >&5
  10692. echo "${ECHO_T}no" >&6; }
  10693. fi
  10694. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10695. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10696. { (exit 1); exit 1; }; }
  10697. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10698. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10699. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10700. echo $ECHO_N "(cached) $ECHO_C" >&6
  10701. else
  10702. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10703. case `$LD -v 2>&1 </dev/null` in
  10704. *GNU* | *'with BFD'*)
  10705. acl_cv_prog_gnu_ld=yes ;;
  10706. *)
  10707. acl_cv_prog_gnu_ld=no ;;
  10708. esac
  10709. fi
  10710. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10711. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10712. with_gnu_ld=$acl_cv_prog_gnu_ld
  10713. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10714. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10715. if test "${acl_cv_rpath+set}" = set; then
  10716. echo $ECHO_N "(cached) $ECHO_C" >&6
  10717. else
  10718. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10719. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10720. . ./conftest.sh
  10721. rm -f ./conftest.sh
  10722. acl_cv_rpath=done
  10723. fi
  10724. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10725. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10726. wl="$acl_cv_wl"
  10727. acl_libext="$acl_cv_libext"
  10728. acl_shlibext="$acl_cv_shlibext"
  10729. acl_libname_spec="$acl_cv_libname_spec"
  10730. acl_library_names_spec="$acl_cv_library_names_spec"
  10731. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10732. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10733. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10734. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10735. # Check whether --enable-rpath was given.
  10736. if test "${enable_rpath+set}" = set; then
  10737. enableval=$enable_rpath; :
  10738. else
  10739. enable_rpath=yes
  10740. fi
  10741. acl_libdirstem=lib
  10742. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10743. if test -n "$searchpath"; then
  10744. acl_save_IFS="${IFS= }"; IFS=":"
  10745. for searchdir in $searchpath; do
  10746. if test -d "$searchdir"; then
  10747. case "$searchdir" in
  10748. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10749. *) searchdir=`cd "$searchdir" && pwd`
  10750. case "$searchdir" in
  10751. */lib64 ) acl_libdirstem=lib64 ;;
  10752. esac ;;
  10753. esac
  10754. fi
  10755. done
  10756. IFS="$acl_save_IFS"
  10757. fi
  10758. gl_threads_api=none
  10759. LIBTHREAD=
  10760. LTLIBTHREAD=
  10761. LIBMULTITHREAD=
  10762. LTLIBMULTITHREAD=
  10763. if test "$gl_use_threads" != no; then
  10764. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10765. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10766. gl_have_weak=no
  10767. cat >conftest.$ac_ext <<_ACEOF
  10768. /* confdefs.h. */
  10769. _ACEOF
  10770. cat confdefs.h >>conftest.$ac_ext
  10771. cat >>conftest.$ac_ext <<_ACEOF
  10772. /* end confdefs.h. */
  10773. extern void xyzzy ();
  10774. #pragma weak xyzzy
  10775. int
  10776. main ()
  10777. {
  10778. xyzzy();
  10779. ;
  10780. return 0;
  10781. }
  10782. _ACEOF
  10783. rm -f conftest.$ac_objext conftest$ac_exeext
  10784. if { (ac_try="$ac_link"
  10785. case "(($ac_try" in
  10786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10787. *) ac_try_echo=$ac_try;;
  10788. esac
  10789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10790. (eval "$ac_link") 2>conftest.er1
  10791. ac_status=$?
  10792. grep -v '^ *+' conftest.er1 >conftest.err
  10793. rm -f conftest.er1
  10794. cat conftest.err >&5
  10795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10796. (exit $ac_status); } && {
  10797. test -z "$ac_cxx_werror_flag" ||
  10798. test ! -s conftest.err
  10799. } && test -s conftest$ac_exeext &&
  10800. $as_test_x conftest$ac_exeext; then
  10801. gl_have_weak=yes
  10802. else
  10803. echo "$as_me: failed program was:" >&5
  10804. sed 's/^/| /' conftest.$ac_ext >&5
  10805. fi
  10806. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10807. conftest$ac_exeext conftest.$ac_ext
  10808. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10809. echo "${ECHO_T}$gl_have_weak" >&6; }
  10810. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10811. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10812. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10813. if test "${ac_cv_header_pthread_h+set}" = set; then
  10814. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10815. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10816. if test "${ac_cv_header_pthread_h+set}" = set; then
  10817. echo $ECHO_N "(cached) $ECHO_C" >&6
  10818. fi
  10819. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10820. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10821. else
  10822. # Is the header compilable?
  10823. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10824. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10825. cat >conftest.$ac_ext <<_ACEOF
  10826. /* confdefs.h. */
  10827. _ACEOF
  10828. cat confdefs.h >>conftest.$ac_ext
  10829. cat >>conftest.$ac_ext <<_ACEOF
  10830. /* end confdefs.h. */
  10831. $ac_includes_default
  10832. #include <pthread.h>
  10833. _ACEOF
  10834. rm -f conftest.$ac_objext
  10835. if { (ac_try="$ac_compile"
  10836. case "(($ac_try" in
  10837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10838. *) ac_try_echo=$ac_try;;
  10839. esac
  10840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10841. (eval "$ac_compile") 2>conftest.er1
  10842. ac_status=$?
  10843. grep -v '^ *+' conftest.er1 >conftest.err
  10844. rm -f conftest.er1
  10845. cat conftest.err >&5
  10846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10847. (exit $ac_status); } && {
  10848. test -z "$ac_cxx_werror_flag" ||
  10849. test ! -s conftest.err
  10850. } && test -s conftest.$ac_objext; then
  10851. ac_header_compiler=yes
  10852. else
  10853. echo "$as_me: failed program was:" >&5
  10854. sed 's/^/| /' conftest.$ac_ext >&5
  10855. ac_header_compiler=no
  10856. fi
  10857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10858. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10859. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10860. # Is the header present?
  10861. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10862. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10863. cat >conftest.$ac_ext <<_ACEOF
  10864. /* confdefs.h. */
  10865. _ACEOF
  10866. cat confdefs.h >>conftest.$ac_ext
  10867. cat >>conftest.$ac_ext <<_ACEOF
  10868. /* end confdefs.h. */
  10869. #include <pthread.h>
  10870. _ACEOF
  10871. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10872. case "(($ac_try" in
  10873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10874. *) ac_try_echo=$ac_try;;
  10875. esac
  10876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10877. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10878. ac_status=$?
  10879. grep -v '^ *+' conftest.er1 >conftest.err
  10880. rm -f conftest.er1
  10881. cat conftest.err >&5
  10882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10883. (exit $ac_status); } >/dev/null && {
  10884. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10885. test ! -s conftest.err
  10886. }; then
  10887. ac_header_preproc=yes
  10888. else
  10889. echo "$as_me: failed program was:" >&5
  10890. sed 's/^/| /' conftest.$ac_ext >&5
  10891. ac_header_preproc=no
  10892. fi
  10893. rm -f conftest.err conftest.$ac_ext
  10894. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10895. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10896. # So? What about this header?
  10897. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10898. yes:no: )
  10899. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10900. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10901. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10902. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10903. ac_header_preproc=yes
  10904. ;;
  10905. no:yes:* )
  10906. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10907. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10908. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10909. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10910. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10911. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10912. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10913. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10914. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10915. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10916. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10917. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10918. ( cat <<\_ASBOX
  10919. ## ----------------------------------------------- ##
  10920. ## Report this to t-tujikawa@users.sourceforge.net ##
  10921. ## ----------------------------------------------- ##
  10922. _ASBOX
  10923. ) | sed "s/^/$as_me: WARNING: /" >&2
  10924. ;;
  10925. esac
  10926. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10927. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10928. if test "${ac_cv_header_pthread_h+set}" = set; then
  10929. echo $ECHO_N "(cached) $ECHO_C" >&6
  10930. else
  10931. ac_cv_header_pthread_h=$ac_header_preproc
  10932. fi
  10933. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10934. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10935. fi
  10936. if test $ac_cv_header_pthread_h = yes; then
  10937. gl_have_pthread_h=yes
  10938. else
  10939. gl_have_pthread_h=no
  10940. fi
  10941. if test "$gl_have_pthread_h" = yes; then
  10942. # Other possible tests:
  10943. # -lpthreads (FSU threads, PCthreads)
  10944. # -lgthreads
  10945. gl_have_pthread=
  10946. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10947. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10948. # the second one only in libpthread, and lock.c needs it.
  10949. cat >conftest.$ac_ext <<_ACEOF
  10950. /* confdefs.h. */
  10951. _ACEOF
  10952. cat confdefs.h >>conftest.$ac_ext
  10953. cat >>conftest.$ac_ext <<_ACEOF
  10954. /* end confdefs.h. */
  10955. #include <pthread.h>
  10956. int
  10957. main ()
  10958. {
  10959. pthread_mutex_lock((pthread_mutex_t*)0);
  10960. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10961. ;
  10962. return 0;
  10963. }
  10964. _ACEOF
  10965. rm -f conftest.$ac_objext conftest$ac_exeext
  10966. if { (ac_try="$ac_link"
  10967. case "(($ac_try" in
  10968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10969. *) ac_try_echo=$ac_try;;
  10970. esac
  10971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10972. (eval "$ac_link") 2>conftest.er1
  10973. ac_status=$?
  10974. grep -v '^ *+' conftest.er1 >conftest.err
  10975. rm -f conftest.er1
  10976. cat conftest.err >&5
  10977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10978. (exit $ac_status); } && {
  10979. test -z "$ac_cxx_werror_flag" ||
  10980. test ! -s conftest.err
  10981. } && test -s conftest$ac_exeext &&
  10982. $as_test_x conftest$ac_exeext; then
  10983. gl_have_pthread=yes
  10984. else
  10985. echo "$as_me: failed program was:" >&5
  10986. sed 's/^/| /' conftest.$ac_ext >&5
  10987. fi
  10988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10989. conftest$ac_exeext conftest.$ac_ext
  10990. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10991. # since it is defined as a macro on OSF/1.)
  10992. if test -n "$gl_have_pthread"; then
  10993. # The program links fine without libpthread. But it may actually
  10994. # need to link with libpthread in order to create multiple threads.
  10995. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10996. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10997. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10998. echo $ECHO_N "(cached) $ECHO_C" >&6
  10999. else
  11000. ac_check_lib_save_LIBS=$LIBS
  11001. LIBS="-lpthread $LIBS"
  11002. cat >conftest.$ac_ext <<_ACEOF
  11003. /* confdefs.h. */
  11004. _ACEOF
  11005. cat confdefs.h >>conftest.$ac_ext
  11006. cat >>conftest.$ac_ext <<_ACEOF
  11007. /* end confdefs.h. */
  11008. /* Override any GCC internal prototype to avoid an error.
  11009. Use char because int might match the return type of a GCC
  11010. builtin and then its argument prototype would still apply. */
  11011. #ifdef __cplusplus
  11012. extern "C"
  11013. #endif
  11014. char pthread_kill ();
  11015. int
  11016. main ()
  11017. {
  11018. return pthread_kill ();
  11019. ;
  11020. return 0;
  11021. }
  11022. _ACEOF
  11023. rm -f conftest.$ac_objext conftest$ac_exeext
  11024. if { (ac_try="$ac_link"
  11025. case "(($ac_try" in
  11026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11027. *) ac_try_echo=$ac_try;;
  11028. esac
  11029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11030. (eval "$ac_link") 2>conftest.er1
  11031. ac_status=$?
  11032. grep -v '^ *+' conftest.er1 >conftest.err
  11033. rm -f conftest.er1
  11034. cat conftest.err >&5
  11035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11036. (exit $ac_status); } && {
  11037. test -z "$ac_cxx_werror_flag" ||
  11038. test ! -s conftest.err
  11039. } && test -s conftest$ac_exeext &&
  11040. $as_test_x conftest$ac_exeext; then
  11041. ac_cv_lib_pthread_pthread_kill=yes
  11042. else
  11043. echo "$as_me: failed program was:" >&5
  11044. sed 's/^/| /' conftest.$ac_ext >&5
  11045. ac_cv_lib_pthread_pthread_kill=no
  11046. fi
  11047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11048. conftest$ac_exeext conftest.$ac_ext
  11049. LIBS=$ac_check_lib_save_LIBS
  11050. fi
  11051. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11052. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11053. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11054. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11055. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11056. # Therefore pthread_in_use() needs to actually try to create a
  11057. # thread: pthread_create from libc will fail, whereas
  11058. # pthread_create will actually create a thread.
  11059. case "$host_os" in
  11060. solaris* | hpux*)
  11061. cat >>confdefs.h <<\_ACEOF
  11062. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11063. _ACEOF
  11064. esac
  11065. fi
  11066. else
  11067. # Some library is needed. Try libpthread and libc_r.
  11068. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11069. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11070. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11071. echo $ECHO_N "(cached) $ECHO_C" >&6
  11072. else
  11073. ac_check_lib_save_LIBS=$LIBS
  11074. LIBS="-lpthread $LIBS"
  11075. cat >conftest.$ac_ext <<_ACEOF
  11076. /* confdefs.h. */
  11077. _ACEOF
  11078. cat confdefs.h >>conftest.$ac_ext
  11079. cat >>conftest.$ac_ext <<_ACEOF
  11080. /* end confdefs.h. */
  11081. /* Override any GCC internal prototype to avoid an error.
  11082. Use char because int might match the return type of a GCC
  11083. builtin and then its argument prototype would still apply. */
  11084. #ifdef __cplusplus
  11085. extern "C"
  11086. #endif
  11087. char pthread_kill ();
  11088. int
  11089. main ()
  11090. {
  11091. return pthread_kill ();
  11092. ;
  11093. return 0;
  11094. }
  11095. _ACEOF
  11096. rm -f conftest.$ac_objext conftest$ac_exeext
  11097. if { (ac_try="$ac_link"
  11098. case "(($ac_try" in
  11099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11100. *) ac_try_echo=$ac_try;;
  11101. esac
  11102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11103. (eval "$ac_link") 2>conftest.er1
  11104. ac_status=$?
  11105. grep -v '^ *+' conftest.er1 >conftest.err
  11106. rm -f conftest.er1
  11107. cat conftest.err >&5
  11108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11109. (exit $ac_status); } && {
  11110. test -z "$ac_cxx_werror_flag" ||
  11111. test ! -s conftest.err
  11112. } && test -s conftest$ac_exeext &&
  11113. $as_test_x conftest$ac_exeext; then
  11114. ac_cv_lib_pthread_pthread_kill=yes
  11115. else
  11116. echo "$as_me: failed program was:" >&5
  11117. sed 's/^/| /' conftest.$ac_ext >&5
  11118. ac_cv_lib_pthread_pthread_kill=no
  11119. fi
  11120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11121. conftest$ac_exeext conftest.$ac_ext
  11122. LIBS=$ac_check_lib_save_LIBS
  11123. fi
  11124. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11125. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11126. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11127. gl_have_pthread=yes
  11128. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11129. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11130. fi
  11131. if test -z "$gl_have_pthread"; then
  11132. # For FreeBSD 4.
  11133. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11134. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11135. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11136. echo $ECHO_N "(cached) $ECHO_C" >&6
  11137. else
  11138. ac_check_lib_save_LIBS=$LIBS
  11139. LIBS="-lc_r $LIBS"
  11140. cat >conftest.$ac_ext <<_ACEOF
  11141. /* confdefs.h. */
  11142. _ACEOF
  11143. cat confdefs.h >>conftest.$ac_ext
  11144. cat >>conftest.$ac_ext <<_ACEOF
  11145. /* end confdefs.h. */
  11146. /* Override any GCC internal prototype to avoid an error.
  11147. Use char because int might match the return type of a GCC
  11148. builtin and then its argument prototype would still apply. */
  11149. #ifdef __cplusplus
  11150. extern "C"
  11151. #endif
  11152. char pthread_kill ();
  11153. int
  11154. main ()
  11155. {
  11156. return pthread_kill ();
  11157. ;
  11158. return 0;
  11159. }
  11160. _ACEOF
  11161. rm -f conftest.$ac_objext conftest$ac_exeext
  11162. if { (ac_try="$ac_link"
  11163. case "(($ac_try" in
  11164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11165. *) ac_try_echo=$ac_try;;
  11166. esac
  11167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11168. (eval "$ac_link") 2>conftest.er1
  11169. ac_status=$?
  11170. grep -v '^ *+' conftest.er1 >conftest.err
  11171. rm -f conftest.er1
  11172. cat conftest.err >&5
  11173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11174. (exit $ac_status); } && {
  11175. test -z "$ac_cxx_werror_flag" ||
  11176. test ! -s conftest.err
  11177. } && test -s conftest$ac_exeext &&
  11178. $as_test_x conftest$ac_exeext; then
  11179. ac_cv_lib_c_r_pthread_kill=yes
  11180. else
  11181. echo "$as_me: failed program was:" >&5
  11182. sed 's/^/| /' conftest.$ac_ext >&5
  11183. ac_cv_lib_c_r_pthread_kill=no
  11184. fi
  11185. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11186. conftest$ac_exeext conftest.$ac_ext
  11187. LIBS=$ac_check_lib_save_LIBS
  11188. fi
  11189. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11190. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11191. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11192. gl_have_pthread=yes
  11193. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11194. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11195. fi
  11196. fi
  11197. fi
  11198. if test -n "$gl_have_pthread"; then
  11199. gl_threads_api=posix
  11200. cat >>confdefs.h <<\_ACEOF
  11201. #define USE_POSIX_THREADS 1
  11202. _ACEOF
  11203. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11204. if test $gl_have_weak = yes; then
  11205. cat >>confdefs.h <<\_ACEOF
  11206. #define USE_POSIX_THREADS_WEAK 1
  11207. _ACEOF
  11208. LIBTHREAD=
  11209. LTLIBTHREAD=
  11210. fi
  11211. fi
  11212. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11213. # pthread_rwlock_* functions.
  11214. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11215. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11216. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11217. echo $ECHO_N "(cached) $ECHO_C" >&6
  11218. else
  11219. cat >conftest.$ac_ext <<_ACEOF
  11220. /* confdefs.h. */
  11221. _ACEOF
  11222. cat confdefs.h >>conftest.$ac_ext
  11223. cat >>conftest.$ac_ext <<_ACEOF
  11224. /* end confdefs.h. */
  11225. #include <pthread.h>
  11226. typedef pthread_rwlock_t ac__type_new_;
  11227. int
  11228. main ()
  11229. {
  11230. if ((ac__type_new_ *) 0)
  11231. return 0;
  11232. if (sizeof (ac__type_new_))
  11233. return 0;
  11234. ;
  11235. return 0;
  11236. }
  11237. _ACEOF
  11238. rm -f conftest.$ac_objext
  11239. if { (ac_try="$ac_compile"
  11240. case "(($ac_try" in
  11241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11242. *) ac_try_echo=$ac_try;;
  11243. esac
  11244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11245. (eval "$ac_compile") 2>conftest.er1
  11246. ac_status=$?
  11247. grep -v '^ *+' conftest.er1 >conftest.err
  11248. rm -f conftest.er1
  11249. cat conftest.err >&5
  11250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11251. (exit $ac_status); } && {
  11252. test -z "$ac_cxx_werror_flag" ||
  11253. test ! -s conftest.err
  11254. } && test -s conftest.$ac_objext; then
  11255. ac_cv_type_pthread_rwlock_t=yes
  11256. else
  11257. echo "$as_me: failed program was:" >&5
  11258. sed 's/^/| /' conftest.$ac_ext >&5
  11259. ac_cv_type_pthread_rwlock_t=no
  11260. fi
  11261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11262. fi
  11263. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11264. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11265. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11266. cat >>confdefs.h <<\_ACEOF
  11267. #define HAVE_PTHREAD_RWLOCK 1
  11268. _ACEOF
  11269. fi
  11270. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11271. cat >conftest.$ac_ext <<_ACEOF
  11272. /* confdefs.h. */
  11273. _ACEOF
  11274. cat confdefs.h >>conftest.$ac_ext
  11275. cat >>conftest.$ac_ext <<_ACEOF
  11276. /* end confdefs.h. */
  11277. #include <pthread.h>
  11278. int
  11279. main ()
  11280. {
  11281. #if __FreeBSD__ == 4
  11282. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11283. #else
  11284. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11285. return !x;
  11286. #endif
  11287. ;
  11288. return 0;
  11289. }
  11290. _ACEOF
  11291. rm -f conftest.$ac_objext
  11292. if { (ac_try="$ac_compile"
  11293. case "(($ac_try" in
  11294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11295. *) ac_try_echo=$ac_try;;
  11296. esac
  11297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11298. (eval "$ac_compile") 2>conftest.er1
  11299. ac_status=$?
  11300. grep -v '^ *+' conftest.er1 >conftest.err
  11301. rm -f conftest.er1
  11302. cat conftest.err >&5
  11303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11304. (exit $ac_status); } && {
  11305. test -z "$ac_cxx_werror_flag" ||
  11306. test ! -s conftest.err
  11307. } && test -s conftest.$ac_objext; then
  11308. cat >>confdefs.h <<\_ACEOF
  11309. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11310. _ACEOF
  11311. else
  11312. echo "$as_me: failed program was:" >&5
  11313. sed 's/^/| /' conftest.$ac_ext >&5
  11314. fi
  11315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11316. fi
  11317. fi
  11318. fi
  11319. if test -z "$gl_have_pthread"; then
  11320. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11321. gl_have_solaristhread=
  11322. gl_save_LIBS="$LIBS"
  11323. LIBS="$LIBS -lthread"
  11324. cat >conftest.$ac_ext <<_ACEOF
  11325. /* confdefs.h. */
  11326. _ACEOF
  11327. cat confdefs.h >>conftest.$ac_ext
  11328. cat >>conftest.$ac_ext <<_ACEOF
  11329. /* end confdefs.h. */
  11330. #include <thread.h>
  11331. #include <synch.h>
  11332. int
  11333. main ()
  11334. {
  11335. thr_self();
  11336. ;
  11337. return 0;
  11338. }
  11339. _ACEOF
  11340. rm -f conftest.$ac_objext conftest$ac_exeext
  11341. if { (ac_try="$ac_link"
  11342. case "(($ac_try" in
  11343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11344. *) ac_try_echo=$ac_try;;
  11345. esac
  11346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11347. (eval "$ac_link") 2>conftest.er1
  11348. ac_status=$?
  11349. grep -v '^ *+' conftest.er1 >conftest.err
  11350. rm -f conftest.er1
  11351. cat conftest.err >&5
  11352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11353. (exit $ac_status); } && {
  11354. test -z "$ac_cxx_werror_flag" ||
  11355. test ! -s conftest.err
  11356. } && test -s conftest$ac_exeext &&
  11357. $as_test_x conftest$ac_exeext; then
  11358. gl_have_solaristhread=yes
  11359. else
  11360. echo "$as_me: failed program was:" >&5
  11361. sed 's/^/| /' conftest.$ac_ext >&5
  11362. fi
  11363. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11364. conftest$ac_exeext conftest.$ac_ext
  11365. LIBS="$gl_save_LIBS"
  11366. if test -n "$gl_have_solaristhread"; then
  11367. gl_threads_api=solaris
  11368. LIBTHREAD=-lthread
  11369. LTLIBTHREAD=-lthread
  11370. LIBMULTITHREAD="$LIBTHREAD"
  11371. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11372. cat >>confdefs.h <<\_ACEOF
  11373. #define USE_SOLARIS_THREADS 1
  11374. _ACEOF
  11375. if test $gl_have_weak = yes; then
  11376. cat >>confdefs.h <<\_ACEOF
  11377. #define USE_SOLARIS_THREADS_WEAK 1
  11378. _ACEOF
  11379. LIBTHREAD=
  11380. LTLIBTHREAD=
  11381. fi
  11382. fi
  11383. fi
  11384. fi
  11385. if test "$gl_use_threads" = pth; then
  11386. gl_save_CPPFLAGS="$CPPFLAGS"
  11387. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11388. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11389. if test "${ac_cv_libpth_libs+set}" = set; then
  11390. echo $ECHO_N "(cached) $ECHO_C" >&6
  11391. else
  11392. use_additional=yes
  11393. acl_save_prefix="$prefix"
  11394. prefix="$acl_final_prefix"
  11395. acl_save_exec_prefix="$exec_prefix"
  11396. exec_prefix="$acl_final_exec_prefix"
  11397. eval additional_includedir=\"$includedir\"
  11398. eval additional_libdir=\"$libdir\"
  11399. exec_prefix="$acl_save_exec_prefix"
  11400. prefix="$acl_save_prefix"
  11401. # Check whether --with-libpth-prefix was given.
  11402. if test "${with_libpth_prefix+set}" = set; then
  11403. withval=$with_libpth_prefix;
  11404. if test "X$withval" = "Xno"; then
  11405. use_additional=no
  11406. else
  11407. if test "X$withval" = "X"; then
  11408. acl_save_prefix="$prefix"
  11409. prefix="$acl_final_prefix"
  11410. acl_save_exec_prefix="$exec_prefix"
  11411. exec_prefix="$acl_final_exec_prefix"
  11412. eval additional_includedir=\"$includedir\"
  11413. eval additional_libdir=\"$libdir\"
  11414. exec_prefix="$acl_save_exec_prefix"
  11415. prefix="$acl_save_prefix"
  11416. else
  11417. additional_includedir="$withval/include"
  11418. additional_libdir="$withval/$acl_libdirstem"
  11419. fi
  11420. fi
  11421. fi
  11422. LIBPTH=
  11423. LTLIBPTH=
  11424. INCPTH=
  11425. LIBPTH_PREFIX=
  11426. rpathdirs=
  11427. ltrpathdirs=
  11428. names_already_handled=
  11429. names_next_round='pth '
  11430. while test -n "$names_next_round"; do
  11431. names_this_round="$names_next_round"
  11432. names_next_round=
  11433. for name in $names_this_round; do
  11434. already_handled=
  11435. for n in $names_already_handled; do
  11436. if test "$n" = "$name"; then
  11437. already_handled=yes
  11438. break
  11439. fi
  11440. done
  11441. if test -z "$already_handled"; then
  11442. names_already_handled="$names_already_handled $name"
  11443. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11444. eval value=\"\$HAVE_LIB$uppername\"
  11445. if test -n "$value"; then
  11446. if test "$value" = yes; then
  11447. eval value=\"\$LIB$uppername\"
  11448. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11449. eval value=\"\$LTLIB$uppername\"
  11450. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11451. else
  11452. :
  11453. fi
  11454. else
  11455. found_dir=
  11456. found_la=
  11457. found_so=
  11458. found_a=
  11459. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11460. if test -n "$acl_shlibext"; then
  11461. shrext=".$acl_shlibext" # typically: shrext=.so
  11462. else
  11463. shrext=
  11464. fi
  11465. if test $use_additional = yes; then
  11466. dir="$additional_libdir"
  11467. if test -n "$acl_shlibext"; then
  11468. if test -f "$dir/$libname$shrext"; then
  11469. found_dir="$dir"
  11470. found_so="$dir/$libname$shrext"
  11471. else
  11472. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11473. ver=`(cd "$dir" && \
  11474. for f in "$libname$shrext".*; do echo "$f"; done \
  11475. | sed -e "s,^$libname$shrext\\\\.,," \
  11476. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11477. | sed 1q ) 2>/dev/null`
  11478. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11479. found_dir="$dir"
  11480. found_so="$dir/$libname$shrext.$ver"
  11481. fi
  11482. else
  11483. eval library_names=\"$acl_library_names_spec\"
  11484. for f in $library_names; do
  11485. if test -f "$dir/$f"; then
  11486. found_dir="$dir"
  11487. found_so="$dir/$f"
  11488. break
  11489. fi
  11490. done
  11491. fi
  11492. fi
  11493. fi
  11494. if test "X$found_dir" = "X"; then
  11495. if test -f "$dir/$libname.$acl_libext"; then
  11496. found_dir="$dir"
  11497. found_a="$dir/$libname.$acl_libext"
  11498. fi
  11499. fi
  11500. if test "X$found_dir" != "X"; then
  11501. if test -f "$dir/$libname.la"; then
  11502. found_la="$dir/$libname.la"
  11503. fi
  11504. fi
  11505. fi
  11506. if test "X$found_dir" = "X"; then
  11507. for x in $LDFLAGS $LTLIBPTH; do
  11508. acl_save_prefix="$prefix"
  11509. prefix="$acl_final_prefix"
  11510. acl_save_exec_prefix="$exec_prefix"
  11511. exec_prefix="$acl_final_exec_prefix"
  11512. eval x=\"$x\"
  11513. exec_prefix="$acl_save_exec_prefix"
  11514. prefix="$acl_save_prefix"
  11515. case "$x" in
  11516. -L*)
  11517. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11518. if test -n "$acl_shlibext"; then
  11519. if test -f "$dir/$libname$shrext"; then
  11520. found_dir="$dir"
  11521. found_so="$dir/$libname$shrext"
  11522. else
  11523. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11524. ver=`(cd "$dir" && \
  11525. for f in "$libname$shrext".*; do echo "$f"; done \
  11526. | sed -e "s,^$libname$shrext\\\\.,," \
  11527. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11528. | sed 1q ) 2>/dev/null`
  11529. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11530. found_dir="$dir"
  11531. found_so="$dir/$libname$shrext.$ver"
  11532. fi
  11533. else
  11534. eval library_names=\"$acl_library_names_spec\"
  11535. for f in $library_names; do
  11536. if test -f "$dir/$f"; then
  11537. found_dir="$dir"
  11538. found_so="$dir/$f"
  11539. break
  11540. fi
  11541. done
  11542. fi
  11543. fi
  11544. fi
  11545. if test "X$found_dir" = "X"; then
  11546. if test -f "$dir/$libname.$acl_libext"; then
  11547. found_dir="$dir"
  11548. found_a="$dir/$libname.$acl_libext"
  11549. fi
  11550. fi
  11551. if test "X$found_dir" != "X"; then
  11552. if test -f "$dir/$libname.la"; then
  11553. found_la="$dir/$libname.la"
  11554. fi
  11555. fi
  11556. ;;
  11557. esac
  11558. if test "X$found_dir" != "X"; then
  11559. break
  11560. fi
  11561. done
  11562. fi
  11563. if test "X$found_dir" != "X"; then
  11564. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11565. if test "X$found_so" != "X"; then
  11566. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11567. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11568. else
  11569. haveit=
  11570. for x in $ltrpathdirs; do
  11571. if test "X$x" = "X$found_dir"; then
  11572. haveit=yes
  11573. break
  11574. fi
  11575. done
  11576. if test -z "$haveit"; then
  11577. ltrpathdirs="$ltrpathdirs $found_dir"
  11578. fi
  11579. if test "$acl_hardcode_direct" = yes; then
  11580. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11581. else
  11582. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11583. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11584. haveit=
  11585. for x in $rpathdirs; do
  11586. if test "X$x" = "X$found_dir"; then
  11587. haveit=yes
  11588. break
  11589. fi
  11590. done
  11591. if test -z "$haveit"; then
  11592. rpathdirs="$rpathdirs $found_dir"
  11593. fi
  11594. else
  11595. haveit=
  11596. for x in $LDFLAGS $LIBPTH; do
  11597. acl_save_prefix="$prefix"
  11598. prefix="$acl_final_prefix"
  11599. acl_save_exec_prefix="$exec_prefix"
  11600. exec_prefix="$acl_final_exec_prefix"
  11601. eval x=\"$x\"
  11602. exec_prefix="$acl_save_exec_prefix"
  11603. prefix="$acl_save_prefix"
  11604. if test "X$x" = "X-L$found_dir"; then
  11605. haveit=yes
  11606. break
  11607. fi
  11608. done
  11609. if test -z "$haveit"; then
  11610. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11611. fi
  11612. if test "$acl_hardcode_minus_L" != no; then
  11613. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11614. else
  11615. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11616. fi
  11617. fi
  11618. fi
  11619. fi
  11620. else
  11621. if test "X$found_a" != "X"; then
  11622. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11623. else
  11624. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11625. fi
  11626. fi
  11627. additional_includedir=
  11628. case "$found_dir" in
  11629. */$acl_libdirstem | */$acl_libdirstem/)
  11630. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11631. LIBPTH_PREFIX="$basedir"
  11632. additional_includedir="$basedir/include"
  11633. ;;
  11634. esac
  11635. if test "X$additional_includedir" != "X"; then
  11636. if test "X$additional_includedir" != "X/usr/include"; then
  11637. haveit=
  11638. if test "X$additional_includedir" = "X/usr/local/include"; then
  11639. if test -n "$GCC"; then
  11640. case $host_os in
  11641. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11642. esac
  11643. fi
  11644. fi
  11645. if test -z "$haveit"; then
  11646. for x in $CPPFLAGS $INCPTH; do
  11647. acl_save_prefix="$prefix"
  11648. prefix="$acl_final_prefix"
  11649. acl_save_exec_prefix="$exec_prefix"
  11650. exec_prefix="$acl_final_exec_prefix"
  11651. eval x=\"$x\"
  11652. exec_prefix="$acl_save_exec_prefix"
  11653. prefix="$acl_save_prefix"
  11654. if test "X$x" = "X-I$additional_includedir"; then
  11655. haveit=yes
  11656. break
  11657. fi
  11658. done
  11659. if test -z "$haveit"; then
  11660. if test -d "$additional_includedir"; then
  11661. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11662. fi
  11663. fi
  11664. fi
  11665. fi
  11666. fi
  11667. if test -n "$found_la"; then
  11668. save_libdir="$libdir"
  11669. case "$found_la" in
  11670. */* | *\\*) . "$found_la" ;;
  11671. *) . "./$found_la" ;;
  11672. esac
  11673. libdir="$save_libdir"
  11674. for dep in $dependency_libs; do
  11675. case "$dep" in
  11676. -L*)
  11677. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11678. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11679. haveit=
  11680. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11681. if test -n "$GCC"; then
  11682. case $host_os in
  11683. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11684. esac
  11685. fi
  11686. fi
  11687. if test -z "$haveit"; then
  11688. haveit=
  11689. for x in $LDFLAGS $LIBPTH; do
  11690. acl_save_prefix="$prefix"
  11691. prefix="$acl_final_prefix"
  11692. acl_save_exec_prefix="$exec_prefix"
  11693. exec_prefix="$acl_final_exec_prefix"
  11694. eval x=\"$x\"
  11695. exec_prefix="$acl_save_exec_prefix"
  11696. prefix="$acl_save_prefix"
  11697. if test "X$x" = "X-L$additional_libdir"; then
  11698. haveit=yes
  11699. break
  11700. fi
  11701. done
  11702. if test -z "$haveit"; then
  11703. if test -d "$additional_libdir"; then
  11704. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11705. fi
  11706. fi
  11707. haveit=
  11708. for x in $LDFLAGS $LTLIBPTH; do
  11709. acl_save_prefix="$prefix"
  11710. prefix="$acl_final_prefix"
  11711. acl_save_exec_prefix="$exec_prefix"
  11712. exec_prefix="$acl_final_exec_prefix"
  11713. eval x=\"$x\"
  11714. exec_prefix="$acl_save_exec_prefix"
  11715. prefix="$acl_save_prefix"
  11716. if test "X$x" = "X-L$additional_libdir"; then
  11717. haveit=yes
  11718. break
  11719. fi
  11720. done
  11721. if test -z "$haveit"; then
  11722. if test -d "$additional_libdir"; then
  11723. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11724. fi
  11725. fi
  11726. fi
  11727. fi
  11728. ;;
  11729. -R*)
  11730. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11731. if test "$enable_rpath" != no; then
  11732. haveit=
  11733. for x in $rpathdirs; do
  11734. if test "X$x" = "X$dir"; then
  11735. haveit=yes
  11736. break
  11737. fi
  11738. done
  11739. if test -z "$haveit"; then
  11740. rpathdirs="$rpathdirs $dir"
  11741. fi
  11742. haveit=
  11743. for x in $ltrpathdirs; do
  11744. if test "X$x" = "X$dir"; then
  11745. haveit=yes
  11746. break
  11747. fi
  11748. done
  11749. if test -z "$haveit"; then
  11750. ltrpathdirs="$ltrpathdirs $dir"
  11751. fi
  11752. fi
  11753. ;;
  11754. -l*)
  11755. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11756. ;;
  11757. *.la)
  11758. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11759. ;;
  11760. *)
  11761. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11762. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11763. ;;
  11764. esac
  11765. done
  11766. fi
  11767. else
  11768. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11769. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11770. fi
  11771. fi
  11772. fi
  11773. done
  11774. done
  11775. if test "X$rpathdirs" != "X"; then
  11776. if test -n "$acl_hardcode_libdir_separator"; then
  11777. alldirs=
  11778. for found_dir in $rpathdirs; do
  11779. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11780. done
  11781. acl_save_libdir="$libdir"
  11782. libdir="$alldirs"
  11783. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11784. libdir="$acl_save_libdir"
  11785. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11786. else
  11787. for found_dir in $rpathdirs; do
  11788. acl_save_libdir="$libdir"
  11789. libdir="$found_dir"
  11790. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11791. libdir="$acl_save_libdir"
  11792. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11793. done
  11794. fi
  11795. fi
  11796. if test "X$ltrpathdirs" != "X"; then
  11797. for found_dir in $ltrpathdirs; do
  11798. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11799. done
  11800. fi
  11801. ac_cv_libpth_libs="$LIBPTH"
  11802. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11803. ac_cv_libpth_cppflags="$INCPTH"
  11804. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11805. fi
  11806. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11807. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11808. LIBPTH="$ac_cv_libpth_libs"
  11809. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11810. INCPTH="$ac_cv_libpth_cppflags"
  11811. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11812. for element in $INCPTH; do
  11813. haveit=
  11814. for x in $CPPFLAGS; do
  11815. acl_save_prefix="$prefix"
  11816. prefix="$acl_final_prefix"
  11817. acl_save_exec_prefix="$exec_prefix"
  11818. exec_prefix="$acl_final_exec_prefix"
  11819. eval x=\"$x\"
  11820. exec_prefix="$acl_save_exec_prefix"
  11821. prefix="$acl_save_prefix"
  11822. if test "X$x" = "X$element"; then
  11823. haveit=yes
  11824. break
  11825. fi
  11826. done
  11827. if test -z "$haveit"; then
  11828. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11829. fi
  11830. done
  11831. HAVE_LIBPTH=yes
  11832. gl_have_pth=
  11833. gl_save_LIBS="$LIBS"
  11834. LIBS="$LIBS -lpth"
  11835. cat >conftest.$ac_ext <<_ACEOF
  11836. /* confdefs.h. */
  11837. _ACEOF
  11838. cat confdefs.h >>conftest.$ac_ext
  11839. cat >>conftest.$ac_ext <<_ACEOF
  11840. /* end confdefs.h. */
  11841. #include <pth.h>
  11842. int
  11843. main ()
  11844. {
  11845. pth_self();
  11846. ;
  11847. return 0;
  11848. }
  11849. _ACEOF
  11850. rm -f conftest.$ac_objext conftest$ac_exeext
  11851. if { (ac_try="$ac_link"
  11852. case "(($ac_try" in
  11853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11854. *) ac_try_echo=$ac_try;;
  11855. esac
  11856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11857. (eval "$ac_link") 2>conftest.er1
  11858. ac_status=$?
  11859. grep -v '^ *+' conftest.er1 >conftest.err
  11860. rm -f conftest.er1
  11861. cat conftest.err >&5
  11862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11863. (exit $ac_status); } && {
  11864. test -z "$ac_cxx_werror_flag" ||
  11865. test ! -s conftest.err
  11866. } && test -s conftest$ac_exeext &&
  11867. $as_test_x conftest$ac_exeext; then
  11868. gl_have_pth=yes
  11869. else
  11870. echo "$as_me: failed program was:" >&5
  11871. sed 's/^/| /' conftest.$ac_ext >&5
  11872. fi
  11873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11874. conftest$ac_exeext conftest.$ac_ext
  11875. LIBS="$gl_save_LIBS"
  11876. if test -n "$gl_have_pth"; then
  11877. gl_threads_api=pth
  11878. LIBTHREAD="$LIBPTH"
  11879. LTLIBTHREAD="$LTLIBPTH"
  11880. LIBMULTITHREAD="$LIBTHREAD"
  11881. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11882. cat >>confdefs.h <<\_ACEOF
  11883. #define USE_PTH_THREADS 1
  11884. _ACEOF
  11885. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11886. if test $gl_have_weak = yes; then
  11887. cat >>confdefs.h <<\_ACEOF
  11888. #define USE_PTH_THREADS_WEAK 1
  11889. _ACEOF
  11890. LIBTHREAD=
  11891. LTLIBTHREAD=
  11892. fi
  11893. fi
  11894. else
  11895. CPPFLAGS="$gl_save_CPPFLAGS"
  11896. fi
  11897. fi
  11898. if test -z "$gl_have_pthread"; then
  11899. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11900. if { case "$host_os" in
  11901. mingw*) true;;
  11902. *) false;;
  11903. esac
  11904. }; then
  11905. gl_threads_api=win32
  11906. cat >>confdefs.h <<\_ACEOF
  11907. #define USE_WIN32_THREADS 1
  11908. _ACEOF
  11909. fi
  11910. fi
  11911. fi
  11912. fi
  11913. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11914. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11915. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11916. echo "${ECHO_T}$gl_threads_api" >&6; }
  11917. use_additional=yes
  11918. acl_save_prefix="$prefix"
  11919. prefix="$acl_final_prefix"
  11920. acl_save_exec_prefix="$exec_prefix"
  11921. exec_prefix="$acl_final_exec_prefix"
  11922. eval additional_includedir=\"$includedir\"
  11923. eval additional_libdir=\"$libdir\"
  11924. exec_prefix="$acl_save_exec_prefix"
  11925. prefix="$acl_save_prefix"
  11926. # Check whether --with-libiconv-prefix was given.
  11927. if test "${with_libiconv_prefix+set}" = set; then
  11928. withval=$with_libiconv_prefix;
  11929. if test "X$withval" = "Xno"; then
  11930. use_additional=no
  11931. else
  11932. if test "X$withval" = "X"; then
  11933. acl_save_prefix="$prefix"
  11934. prefix="$acl_final_prefix"
  11935. acl_save_exec_prefix="$exec_prefix"
  11936. exec_prefix="$acl_final_exec_prefix"
  11937. eval additional_includedir=\"$includedir\"
  11938. eval additional_libdir=\"$libdir\"
  11939. exec_prefix="$acl_save_exec_prefix"
  11940. prefix="$acl_save_prefix"
  11941. else
  11942. additional_includedir="$withval/include"
  11943. additional_libdir="$withval/$acl_libdirstem"
  11944. fi
  11945. fi
  11946. fi
  11947. LIBICONV=
  11948. LTLIBICONV=
  11949. INCICONV=
  11950. LIBICONV_PREFIX=
  11951. rpathdirs=
  11952. ltrpathdirs=
  11953. names_already_handled=
  11954. names_next_round='iconv '
  11955. while test -n "$names_next_round"; do
  11956. names_this_round="$names_next_round"
  11957. names_next_round=
  11958. for name in $names_this_round; do
  11959. already_handled=
  11960. for n in $names_already_handled; do
  11961. if test "$n" = "$name"; then
  11962. already_handled=yes
  11963. break
  11964. fi
  11965. done
  11966. if test -z "$already_handled"; then
  11967. names_already_handled="$names_already_handled $name"
  11968. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11969. eval value=\"\$HAVE_LIB$uppername\"
  11970. if test -n "$value"; then
  11971. if test "$value" = yes; then
  11972. eval value=\"\$LIB$uppername\"
  11973. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11974. eval value=\"\$LTLIB$uppername\"
  11975. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11976. else
  11977. :
  11978. fi
  11979. else
  11980. found_dir=
  11981. found_la=
  11982. found_so=
  11983. found_a=
  11984. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11985. if test -n "$acl_shlibext"; then
  11986. shrext=".$acl_shlibext" # typically: shrext=.so
  11987. else
  11988. shrext=
  11989. fi
  11990. if test $use_additional = yes; then
  11991. dir="$additional_libdir"
  11992. if test -n "$acl_shlibext"; then
  11993. if test -f "$dir/$libname$shrext"; then
  11994. found_dir="$dir"
  11995. found_so="$dir/$libname$shrext"
  11996. else
  11997. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11998. ver=`(cd "$dir" && \
  11999. for f in "$libname$shrext".*; do echo "$f"; done \
  12000. | sed -e "s,^$libname$shrext\\\\.,," \
  12001. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12002. | sed 1q ) 2>/dev/null`
  12003. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12004. found_dir="$dir"
  12005. found_so="$dir/$libname$shrext.$ver"
  12006. fi
  12007. else
  12008. eval library_names=\"$acl_library_names_spec\"
  12009. for f in $library_names; do
  12010. if test -f "$dir/$f"; then
  12011. found_dir="$dir"
  12012. found_so="$dir/$f"
  12013. break
  12014. fi
  12015. done
  12016. fi
  12017. fi
  12018. fi
  12019. if test "X$found_dir" = "X"; then
  12020. if test -f "$dir/$libname.$acl_libext"; then
  12021. found_dir="$dir"
  12022. found_a="$dir/$libname.$acl_libext"
  12023. fi
  12024. fi
  12025. if test "X$found_dir" != "X"; then
  12026. if test -f "$dir/$libname.la"; then
  12027. found_la="$dir/$libname.la"
  12028. fi
  12029. fi
  12030. fi
  12031. if test "X$found_dir" = "X"; then
  12032. for x in $LDFLAGS $LTLIBICONV; do
  12033. acl_save_prefix="$prefix"
  12034. prefix="$acl_final_prefix"
  12035. acl_save_exec_prefix="$exec_prefix"
  12036. exec_prefix="$acl_final_exec_prefix"
  12037. eval x=\"$x\"
  12038. exec_prefix="$acl_save_exec_prefix"
  12039. prefix="$acl_save_prefix"
  12040. case "$x" in
  12041. -L*)
  12042. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12043. if test -n "$acl_shlibext"; then
  12044. if test -f "$dir/$libname$shrext"; then
  12045. found_dir="$dir"
  12046. found_so="$dir/$libname$shrext"
  12047. else
  12048. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12049. ver=`(cd "$dir" && \
  12050. for f in "$libname$shrext".*; do echo "$f"; done \
  12051. | sed -e "s,^$libname$shrext\\\\.,," \
  12052. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12053. | sed 1q ) 2>/dev/null`
  12054. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12055. found_dir="$dir"
  12056. found_so="$dir/$libname$shrext.$ver"
  12057. fi
  12058. else
  12059. eval library_names=\"$acl_library_names_spec\"
  12060. for f in $library_names; do
  12061. if test -f "$dir/$f"; then
  12062. found_dir="$dir"
  12063. found_so="$dir/$f"
  12064. break
  12065. fi
  12066. done
  12067. fi
  12068. fi
  12069. fi
  12070. if test "X$found_dir" = "X"; then
  12071. if test -f "$dir/$libname.$acl_libext"; then
  12072. found_dir="$dir"
  12073. found_a="$dir/$libname.$acl_libext"
  12074. fi
  12075. fi
  12076. if test "X$found_dir" != "X"; then
  12077. if test -f "$dir/$libname.la"; then
  12078. found_la="$dir/$libname.la"
  12079. fi
  12080. fi
  12081. ;;
  12082. esac
  12083. if test "X$found_dir" != "X"; then
  12084. break
  12085. fi
  12086. done
  12087. fi
  12088. if test "X$found_dir" != "X"; then
  12089. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12090. if test "X$found_so" != "X"; then
  12091. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12092. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12093. else
  12094. haveit=
  12095. for x in $ltrpathdirs; do
  12096. if test "X$x" = "X$found_dir"; then
  12097. haveit=yes
  12098. break
  12099. fi
  12100. done
  12101. if test -z "$haveit"; then
  12102. ltrpathdirs="$ltrpathdirs $found_dir"
  12103. fi
  12104. if test "$acl_hardcode_direct" = yes; then
  12105. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12106. else
  12107. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12108. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12109. haveit=
  12110. for x in $rpathdirs; do
  12111. if test "X$x" = "X$found_dir"; then
  12112. haveit=yes
  12113. break
  12114. fi
  12115. done
  12116. if test -z "$haveit"; then
  12117. rpathdirs="$rpathdirs $found_dir"
  12118. fi
  12119. else
  12120. haveit=
  12121. for x in $LDFLAGS $LIBICONV; do
  12122. acl_save_prefix="$prefix"
  12123. prefix="$acl_final_prefix"
  12124. acl_save_exec_prefix="$exec_prefix"
  12125. exec_prefix="$acl_final_exec_prefix"
  12126. eval x=\"$x\"
  12127. exec_prefix="$acl_save_exec_prefix"
  12128. prefix="$acl_save_prefix"
  12129. if test "X$x" = "X-L$found_dir"; then
  12130. haveit=yes
  12131. break
  12132. fi
  12133. done
  12134. if test -z "$haveit"; then
  12135. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12136. fi
  12137. if test "$acl_hardcode_minus_L" != no; then
  12138. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12139. else
  12140. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12141. fi
  12142. fi
  12143. fi
  12144. fi
  12145. else
  12146. if test "X$found_a" != "X"; then
  12147. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12148. else
  12149. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12150. fi
  12151. fi
  12152. additional_includedir=
  12153. case "$found_dir" in
  12154. */$acl_libdirstem | */$acl_libdirstem/)
  12155. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12156. LIBICONV_PREFIX="$basedir"
  12157. additional_includedir="$basedir/include"
  12158. ;;
  12159. esac
  12160. if test "X$additional_includedir" != "X"; then
  12161. if test "X$additional_includedir" != "X/usr/include"; then
  12162. haveit=
  12163. if test "X$additional_includedir" = "X/usr/local/include"; then
  12164. if test -n "$GCC"; then
  12165. case $host_os in
  12166. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12167. esac
  12168. fi
  12169. fi
  12170. if test -z "$haveit"; then
  12171. for x in $CPPFLAGS $INCICONV; do
  12172. acl_save_prefix="$prefix"
  12173. prefix="$acl_final_prefix"
  12174. acl_save_exec_prefix="$exec_prefix"
  12175. exec_prefix="$acl_final_exec_prefix"
  12176. eval x=\"$x\"
  12177. exec_prefix="$acl_save_exec_prefix"
  12178. prefix="$acl_save_prefix"
  12179. if test "X$x" = "X-I$additional_includedir"; then
  12180. haveit=yes
  12181. break
  12182. fi
  12183. done
  12184. if test -z "$haveit"; then
  12185. if test -d "$additional_includedir"; then
  12186. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12187. fi
  12188. fi
  12189. fi
  12190. fi
  12191. fi
  12192. if test -n "$found_la"; then
  12193. save_libdir="$libdir"
  12194. case "$found_la" in
  12195. */* | *\\*) . "$found_la" ;;
  12196. *) . "./$found_la" ;;
  12197. esac
  12198. libdir="$save_libdir"
  12199. for dep in $dependency_libs; do
  12200. case "$dep" in
  12201. -L*)
  12202. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12203. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12204. haveit=
  12205. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12206. if test -n "$GCC"; then
  12207. case $host_os in
  12208. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12209. esac
  12210. fi
  12211. fi
  12212. if test -z "$haveit"; then
  12213. haveit=
  12214. for x in $LDFLAGS $LIBICONV; do
  12215. acl_save_prefix="$prefix"
  12216. prefix="$acl_final_prefix"
  12217. acl_save_exec_prefix="$exec_prefix"
  12218. exec_prefix="$acl_final_exec_prefix"
  12219. eval x=\"$x\"
  12220. exec_prefix="$acl_save_exec_prefix"
  12221. prefix="$acl_save_prefix"
  12222. if test "X$x" = "X-L$additional_libdir"; then
  12223. haveit=yes
  12224. break
  12225. fi
  12226. done
  12227. if test -z "$haveit"; then
  12228. if test -d "$additional_libdir"; then
  12229. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12230. fi
  12231. fi
  12232. haveit=
  12233. for x in $LDFLAGS $LTLIBICONV; do
  12234. acl_save_prefix="$prefix"
  12235. prefix="$acl_final_prefix"
  12236. acl_save_exec_prefix="$exec_prefix"
  12237. exec_prefix="$acl_final_exec_prefix"
  12238. eval x=\"$x\"
  12239. exec_prefix="$acl_save_exec_prefix"
  12240. prefix="$acl_save_prefix"
  12241. if test "X$x" = "X-L$additional_libdir"; then
  12242. haveit=yes
  12243. break
  12244. fi
  12245. done
  12246. if test -z "$haveit"; then
  12247. if test -d "$additional_libdir"; then
  12248. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12249. fi
  12250. fi
  12251. fi
  12252. fi
  12253. ;;
  12254. -R*)
  12255. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12256. if test "$enable_rpath" != no; then
  12257. haveit=
  12258. for x in $rpathdirs; do
  12259. if test "X$x" = "X$dir"; then
  12260. haveit=yes
  12261. break
  12262. fi
  12263. done
  12264. if test -z "$haveit"; then
  12265. rpathdirs="$rpathdirs $dir"
  12266. fi
  12267. haveit=
  12268. for x in $ltrpathdirs; do
  12269. if test "X$x" = "X$dir"; then
  12270. haveit=yes
  12271. break
  12272. fi
  12273. done
  12274. if test -z "$haveit"; then
  12275. ltrpathdirs="$ltrpathdirs $dir"
  12276. fi
  12277. fi
  12278. ;;
  12279. -l*)
  12280. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12281. ;;
  12282. *.la)
  12283. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12284. ;;
  12285. *)
  12286. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12287. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12288. ;;
  12289. esac
  12290. done
  12291. fi
  12292. else
  12293. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12294. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12295. fi
  12296. fi
  12297. fi
  12298. done
  12299. done
  12300. if test "X$rpathdirs" != "X"; then
  12301. if test -n "$acl_hardcode_libdir_separator"; then
  12302. alldirs=
  12303. for found_dir in $rpathdirs; do
  12304. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12305. done
  12306. acl_save_libdir="$libdir"
  12307. libdir="$alldirs"
  12308. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12309. libdir="$acl_save_libdir"
  12310. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12311. else
  12312. for found_dir in $rpathdirs; do
  12313. acl_save_libdir="$libdir"
  12314. libdir="$found_dir"
  12315. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12316. libdir="$acl_save_libdir"
  12317. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12318. done
  12319. fi
  12320. fi
  12321. if test "X$ltrpathdirs" != "X"; then
  12322. for found_dir in $ltrpathdirs; do
  12323. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12324. done
  12325. fi
  12326. cat >conftest.$ac_ext <<_ACEOF
  12327. /* confdefs.h. */
  12328. _ACEOF
  12329. cat confdefs.h >>conftest.$ac_ext
  12330. cat >>conftest.$ac_ext <<_ACEOF
  12331. /* end confdefs.h. */
  12332. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12333. int
  12334. main ()
  12335. {
  12336. ;
  12337. return 0;
  12338. }
  12339. _ACEOF
  12340. rm -f conftest.$ac_objext conftest$ac_exeext
  12341. if { (ac_try="$ac_link"
  12342. case "(($ac_try" in
  12343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12344. *) ac_try_echo=$ac_try;;
  12345. esac
  12346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12347. (eval "$ac_link") 2>conftest.er1
  12348. ac_status=$?
  12349. grep -v '^ *+' conftest.er1 >conftest.err
  12350. rm -f conftest.er1
  12351. cat conftest.err >&5
  12352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12353. (exit $ac_status); } && {
  12354. test -z "$ac_cxx_werror_flag" ||
  12355. test ! -s conftest.err
  12356. } && test -s conftest$ac_exeext &&
  12357. $as_test_x conftest$ac_exeext; then
  12358. cat >>confdefs.h <<\_ACEOF
  12359. #define HAVE_BUILTIN_EXPECT 1
  12360. _ACEOF
  12361. else
  12362. echo "$as_me: failed program was:" >&5
  12363. sed 's/^/| /' conftest.$ac_ext >&5
  12364. fi
  12365. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12366. conftest$ac_exeext conftest.$ac_ext
  12367. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12368. do
  12369. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12370. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12371. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12372. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12373. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12374. echo $ECHO_N "(cached) $ECHO_C" >&6
  12375. fi
  12376. ac_res=`eval echo '${'$as_ac_Header'}'`
  12377. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12378. echo "${ECHO_T}$ac_res" >&6; }
  12379. else
  12380. # Is the header compilable?
  12381. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12382. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12383. cat >conftest.$ac_ext <<_ACEOF
  12384. /* confdefs.h. */
  12385. _ACEOF
  12386. cat confdefs.h >>conftest.$ac_ext
  12387. cat >>conftest.$ac_ext <<_ACEOF
  12388. /* end confdefs.h. */
  12389. $ac_includes_default
  12390. #include <$ac_header>
  12391. _ACEOF
  12392. rm -f conftest.$ac_objext
  12393. if { (ac_try="$ac_compile"
  12394. case "(($ac_try" in
  12395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12396. *) ac_try_echo=$ac_try;;
  12397. esac
  12398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12399. (eval "$ac_compile") 2>conftest.er1
  12400. ac_status=$?
  12401. grep -v '^ *+' conftest.er1 >conftest.err
  12402. rm -f conftest.er1
  12403. cat conftest.err >&5
  12404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. (exit $ac_status); } && {
  12406. test -z "$ac_cxx_werror_flag" ||
  12407. test ! -s conftest.err
  12408. } && test -s conftest.$ac_objext; then
  12409. ac_header_compiler=yes
  12410. else
  12411. echo "$as_me: failed program was:" >&5
  12412. sed 's/^/| /' conftest.$ac_ext >&5
  12413. ac_header_compiler=no
  12414. fi
  12415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12416. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12417. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12418. # Is the header present?
  12419. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12420. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12421. cat >conftest.$ac_ext <<_ACEOF
  12422. /* confdefs.h. */
  12423. _ACEOF
  12424. cat confdefs.h >>conftest.$ac_ext
  12425. cat >>conftest.$ac_ext <<_ACEOF
  12426. /* end confdefs.h. */
  12427. #include <$ac_header>
  12428. _ACEOF
  12429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12430. case "(($ac_try" in
  12431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12432. *) ac_try_echo=$ac_try;;
  12433. esac
  12434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12435. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12436. ac_status=$?
  12437. grep -v '^ *+' conftest.er1 >conftest.err
  12438. rm -f conftest.er1
  12439. cat conftest.err >&5
  12440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12441. (exit $ac_status); } >/dev/null && {
  12442. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12443. test ! -s conftest.err
  12444. }; then
  12445. ac_header_preproc=yes
  12446. else
  12447. echo "$as_me: failed program was:" >&5
  12448. sed 's/^/| /' conftest.$ac_ext >&5
  12449. ac_header_preproc=no
  12450. fi
  12451. rm -f conftest.err conftest.$ac_ext
  12452. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12453. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12454. # So? What about this header?
  12455. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12456. yes:no: )
  12457. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12458. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12459. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12460. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12461. ac_header_preproc=yes
  12462. ;;
  12463. no:yes:* )
  12464. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12465. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12466. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12467. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12468. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12469. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12470. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12471. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12472. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12473. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12474. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12475. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12476. ( cat <<\_ASBOX
  12477. ## ----------------------------------------------- ##
  12478. ## Report this to t-tujikawa@users.sourceforge.net ##
  12479. ## ----------------------------------------------- ##
  12480. _ASBOX
  12481. ) | sed "s/^/$as_me: WARNING: /" >&2
  12482. ;;
  12483. esac
  12484. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12486. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12487. echo $ECHO_N "(cached) $ECHO_C" >&6
  12488. else
  12489. eval "$as_ac_Header=\$ac_header_preproc"
  12490. fi
  12491. ac_res=`eval echo '${'$as_ac_Header'}'`
  12492. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12493. echo "${ECHO_T}$ac_res" >&6; }
  12494. fi
  12495. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12496. cat >>confdefs.h <<_ACEOF
  12497. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12498. _ACEOF
  12499. fi
  12500. done
  12501. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12502. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12503. argz_next __fsetlocking
  12504. do
  12505. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12506. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12507. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12508. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12509. echo $ECHO_N "(cached) $ECHO_C" >&6
  12510. else
  12511. cat >conftest.$ac_ext <<_ACEOF
  12512. /* confdefs.h. */
  12513. _ACEOF
  12514. cat confdefs.h >>conftest.$ac_ext
  12515. cat >>conftest.$ac_ext <<_ACEOF
  12516. /* end confdefs.h. */
  12517. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12518. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12519. #define $ac_func innocuous_$ac_func
  12520. /* System header to define __stub macros and hopefully few prototypes,
  12521. which can conflict with char $ac_func (); below.
  12522. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12523. <limits.h> exists even on freestanding compilers. */
  12524. #ifdef __STDC__
  12525. # include <limits.h>
  12526. #else
  12527. # include <assert.h>
  12528. #endif
  12529. #undef $ac_func
  12530. /* Override any GCC internal prototype to avoid an error.
  12531. Use char because int might match the return type of a GCC
  12532. builtin and then its argument prototype would still apply. */
  12533. #ifdef __cplusplus
  12534. extern "C"
  12535. #endif
  12536. char $ac_func ();
  12537. /* The GNU C library defines this for functions which it implements
  12538. to always fail with ENOSYS. Some functions are actually named
  12539. something starting with __ and the normal name is an alias. */
  12540. #if defined __stub_$ac_func || defined __stub___$ac_func
  12541. choke me
  12542. #endif
  12543. int
  12544. main ()
  12545. {
  12546. return $ac_func ();
  12547. ;
  12548. return 0;
  12549. }
  12550. _ACEOF
  12551. rm -f conftest.$ac_objext conftest$ac_exeext
  12552. if { (ac_try="$ac_link"
  12553. case "(($ac_try" in
  12554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12555. *) ac_try_echo=$ac_try;;
  12556. esac
  12557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12558. (eval "$ac_link") 2>conftest.er1
  12559. ac_status=$?
  12560. grep -v '^ *+' conftest.er1 >conftest.err
  12561. rm -f conftest.er1
  12562. cat conftest.err >&5
  12563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12564. (exit $ac_status); } && {
  12565. test -z "$ac_cxx_werror_flag" ||
  12566. test ! -s conftest.err
  12567. } && test -s conftest$ac_exeext &&
  12568. $as_test_x conftest$ac_exeext; then
  12569. eval "$as_ac_var=yes"
  12570. else
  12571. echo "$as_me: failed program was:" >&5
  12572. sed 's/^/| /' conftest.$ac_ext >&5
  12573. eval "$as_ac_var=no"
  12574. fi
  12575. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12576. conftest$ac_exeext conftest.$ac_ext
  12577. fi
  12578. ac_res=`eval echo '${'$as_ac_var'}'`
  12579. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12580. echo "${ECHO_T}$ac_res" >&6; }
  12581. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12582. cat >>confdefs.h <<_ACEOF
  12583. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12584. _ACEOF
  12585. fi
  12586. done
  12587. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12588. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12589. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12590. echo $ECHO_N "(cached) $ECHO_C" >&6
  12591. else
  12592. cat >conftest.$ac_ext <<_ACEOF
  12593. /* confdefs.h. */
  12594. _ACEOF
  12595. cat confdefs.h >>conftest.$ac_ext
  12596. cat >>conftest.$ac_ext <<_ACEOF
  12597. /* end confdefs.h. */
  12598. #include <stdio.h>
  12599. int
  12600. main ()
  12601. {
  12602. #ifndef feof_unlocked
  12603. char *p = (char *) feof_unlocked;
  12604. #endif
  12605. ;
  12606. return 0;
  12607. }
  12608. _ACEOF
  12609. rm -f conftest.$ac_objext
  12610. if { (ac_try="$ac_compile"
  12611. case "(($ac_try" in
  12612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12613. *) ac_try_echo=$ac_try;;
  12614. esac
  12615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12616. (eval "$ac_compile") 2>conftest.er1
  12617. ac_status=$?
  12618. grep -v '^ *+' conftest.er1 >conftest.err
  12619. rm -f conftest.er1
  12620. cat conftest.err >&5
  12621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12622. (exit $ac_status); } && {
  12623. test -z "$ac_cxx_werror_flag" ||
  12624. test ! -s conftest.err
  12625. } && test -s conftest.$ac_objext; then
  12626. ac_cv_have_decl_feof_unlocked=yes
  12627. else
  12628. echo "$as_me: failed program was:" >&5
  12629. sed 's/^/| /' conftest.$ac_ext >&5
  12630. ac_cv_have_decl_feof_unlocked=no
  12631. fi
  12632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12633. fi
  12634. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12635. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12636. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12637. gt_value=1
  12638. else
  12639. gt_value=0
  12640. fi
  12641. cat >>confdefs.h <<_ACEOF
  12642. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12643. _ACEOF
  12644. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12645. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12646. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12647. echo $ECHO_N "(cached) $ECHO_C" >&6
  12648. else
  12649. cat >conftest.$ac_ext <<_ACEOF
  12650. /* confdefs.h. */
  12651. _ACEOF
  12652. cat confdefs.h >>conftest.$ac_ext
  12653. cat >>conftest.$ac_ext <<_ACEOF
  12654. /* end confdefs.h. */
  12655. #include <stdio.h>
  12656. int
  12657. main ()
  12658. {
  12659. #ifndef fgets_unlocked
  12660. char *p = (char *) fgets_unlocked;
  12661. #endif
  12662. ;
  12663. return 0;
  12664. }
  12665. _ACEOF
  12666. rm -f conftest.$ac_objext
  12667. if { (ac_try="$ac_compile"
  12668. case "(($ac_try" in
  12669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12670. *) ac_try_echo=$ac_try;;
  12671. esac
  12672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12673. (eval "$ac_compile") 2>conftest.er1
  12674. ac_status=$?
  12675. grep -v '^ *+' conftest.er1 >conftest.err
  12676. rm -f conftest.er1
  12677. cat conftest.err >&5
  12678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12679. (exit $ac_status); } && {
  12680. test -z "$ac_cxx_werror_flag" ||
  12681. test ! -s conftest.err
  12682. } && test -s conftest.$ac_objext; then
  12683. ac_cv_have_decl_fgets_unlocked=yes
  12684. else
  12685. echo "$as_me: failed program was:" >&5
  12686. sed 's/^/| /' conftest.$ac_ext >&5
  12687. ac_cv_have_decl_fgets_unlocked=no
  12688. fi
  12689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12690. fi
  12691. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12692. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12693. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12694. gt_value=1
  12695. else
  12696. gt_value=0
  12697. fi
  12698. cat >>confdefs.h <<_ACEOF
  12699. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12700. _ACEOF
  12701. am_save_CPPFLAGS="$CPPFLAGS"
  12702. for element in $INCICONV; do
  12703. haveit=
  12704. for x in $CPPFLAGS; do
  12705. acl_save_prefix="$prefix"
  12706. prefix="$acl_final_prefix"
  12707. acl_save_exec_prefix="$exec_prefix"
  12708. exec_prefix="$acl_final_exec_prefix"
  12709. eval x=\"$x\"
  12710. exec_prefix="$acl_save_exec_prefix"
  12711. prefix="$acl_save_prefix"
  12712. if test "X$x" = "X$element"; then
  12713. haveit=yes
  12714. break
  12715. fi
  12716. done
  12717. if test -z "$haveit"; then
  12718. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12719. fi
  12720. done
  12721. { echo "$as_me:$LINENO: checking for iconv" >&5
  12722. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12723. if test "${am_cv_func_iconv+set}" = set; then
  12724. echo $ECHO_N "(cached) $ECHO_C" >&6
  12725. else
  12726. am_cv_func_iconv="no, consider installing GNU libiconv"
  12727. am_cv_lib_iconv=no
  12728. cat >conftest.$ac_ext <<_ACEOF
  12729. /* confdefs.h. */
  12730. _ACEOF
  12731. cat confdefs.h >>conftest.$ac_ext
  12732. cat >>conftest.$ac_ext <<_ACEOF
  12733. /* end confdefs.h. */
  12734. #include <stdlib.h>
  12735. #include <iconv.h>
  12736. int
  12737. main ()
  12738. {
  12739. iconv_t cd = iconv_open("","");
  12740. iconv(cd,NULL,NULL,NULL,NULL);
  12741. iconv_close(cd);
  12742. ;
  12743. return 0;
  12744. }
  12745. _ACEOF
  12746. rm -f conftest.$ac_objext conftest$ac_exeext
  12747. if { (ac_try="$ac_link"
  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_link") 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_exeext &&
  12763. $as_test_x conftest$ac_exeext; then
  12764. am_cv_func_iconv=yes
  12765. else
  12766. echo "$as_me: failed program was:" >&5
  12767. sed 's/^/| /' conftest.$ac_ext >&5
  12768. fi
  12769. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12770. conftest$ac_exeext conftest.$ac_ext
  12771. if test "$am_cv_func_iconv" != yes; then
  12772. am_save_LIBS="$LIBS"
  12773. LIBS="$LIBS $LIBICONV"
  12774. cat >conftest.$ac_ext <<_ACEOF
  12775. /* confdefs.h. */
  12776. _ACEOF
  12777. cat confdefs.h >>conftest.$ac_ext
  12778. cat >>conftest.$ac_ext <<_ACEOF
  12779. /* end confdefs.h. */
  12780. #include <stdlib.h>
  12781. #include <iconv.h>
  12782. int
  12783. main ()
  12784. {
  12785. iconv_t cd = iconv_open("","");
  12786. iconv(cd,NULL,NULL,NULL,NULL);
  12787. iconv_close(cd);
  12788. ;
  12789. return 0;
  12790. }
  12791. _ACEOF
  12792. rm -f conftest.$ac_objext conftest$ac_exeext
  12793. if { (ac_try="$ac_link"
  12794. case "(($ac_try" in
  12795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12796. *) ac_try_echo=$ac_try;;
  12797. esac
  12798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12799. (eval "$ac_link") 2>conftest.er1
  12800. ac_status=$?
  12801. grep -v '^ *+' conftest.er1 >conftest.err
  12802. rm -f conftest.er1
  12803. cat conftest.err >&5
  12804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12805. (exit $ac_status); } && {
  12806. test -z "$ac_cxx_werror_flag" ||
  12807. test ! -s conftest.err
  12808. } && test -s conftest$ac_exeext &&
  12809. $as_test_x conftest$ac_exeext; then
  12810. am_cv_lib_iconv=yes
  12811. am_cv_func_iconv=yes
  12812. else
  12813. echo "$as_me: failed program was:" >&5
  12814. sed 's/^/| /' conftest.$ac_ext >&5
  12815. fi
  12816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12817. conftest$ac_exeext conftest.$ac_ext
  12818. LIBS="$am_save_LIBS"
  12819. fi
  12820. fi
  12821. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12822. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12823. if test "$am_cv_func_iconv" = yes; then
  12824. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12825. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12826. if test "${am_cv_func_iconv_works+set}" = set; then
  12827. echo $ECHO_N "(cached) $ECHO_C" >&6
  12828. else
  12829. am_save_LIBS="$LIBS"
  12830. if test $am_cv_lib_iconv = yes; then
  12831. LIBS="$LIBS $LIBICONV"
  12832. fi
  12833. if test "$cross_compiling" = yes; then
  12834. case "$host_os" in
  12835. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12836. *) am_cv_func_iconv_works="guessing yes" ;;
  12837. esac
  12838. else
  12839. cat >conftest.$ac_ext <<_ACEOF
  12840. /* confdefs.h. */
  12841. _ACEOF
  12842. cat confdefs.h >>conftest.$ac_ext
  12843. cat >>conftest.$ac_ext <<_ACEOF
  12844. /* end confdefs.h. */
  12845. #include <iconv.h>
  12846. #include <string.h>
  12847. int main ()
  12848. {
  12849. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12850. returns. */
  12851. {
  12852. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12853. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12854. {
  12855. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12856. char buf[10];
  12857. const char *inptr = input;
  12858. size_t inbytesleft = strlen (input);
  12859. char *outptr = buf;
  12860. size_t outbytesleft = sizeof (buf);
  12861. size_t res = iconv (cd_utf8_to_88591,
  12862. (char **) &inptr, &inbytesleft,
  12863. &outptr, &outbytesleft);
  12864. if (res == 0)
  12865. return 1;
  12866. }
  12867. }
  12868. #if 0 /* This bug could be worked around by the caller. */
  12869. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12870. {
  12871. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12872. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12873. {
  12874. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12875. char buf[50];
  12876. const char *inptr = input;
  12877. size_t inbytesleft = strlen (input);
  12878. char *outptr = buf;
  12879. size_t outbytesleft = sizeof (buf);
  12880. size_t res = iconv (cd_88591_to_utf8,
  12881. (char **) &inptr, &inbytesleft,
  12882. &outptr, &outbytesleft);
  12883. if ((int)res > 0)
  12884. return 1;
  12885. }
  12886. }
  12887. #endif
  12888. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12889. provided. */
  12890. if (/* Try standardized names. */
  12891. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12892. /* Try IRIX, OSF/1 names. */
  12893. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12894. /* Try AIX names. */
  12895. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12896. /* Try HP-UX names. */
  12897. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12898. return 1;
  12899. return 0;
  12900. }
  12901. _ACEOF
  12902. rm -f conftest$ac_exeext
  12903. if { (ac_try="$ac_link"
  12904. case "(($ac_try" in
  12905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12906. *) ac_try_echo=$ac_try;;
  12907. esac
  12908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12909. (eval "$ac_link") 2>&5
  12910. ac_status=$?
  12911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12912. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12913. { (case "(($ac_try" in
  12914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12915. *) ac_try_echo=$ac_try;;
  12916. esac
  12917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12918. (eval "$ac_try") 2>&5
  12919. ac_status=$?
  12920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12921. (exit $ac_status); }; }; then
  12922. am_cv_func_iconv_works=yes
  12923. else
  12924. echo "$as_me: program exited with status $ac_status" >&5
  12925. echo "$as_me: failed program was:" >&5
  12926. sed 's/^/| /' conftest.$ac_ext >&5
  12927. ( exit $ac_status )
  12928. am_cv_func_iconv_works=no
  12929. fi
  12930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12931. fi
  12932. LIBS="$am_save_LIBS"
  12933. fi
  12934. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12935. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12936. case "$am_cv_func_iconv_works" in
  12937. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12938. *) am_func_iconv=yes ;;
  12939. esac
  12940. else
  12941. am_func_iconv=no am_cv_lib_iconv=no
  12942. fi
  12943. if test "$am_func_iconv" = yes; then
  12944. cat >>confdefs.h <<\_ACEOF
  12945. #define HAVE_ICONV 1
  12946. _ACEOF
  12947. fi
  12948. if test "$am_cv_lib_iconv" = yes; then
  12949. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12950. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12951. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12952. echo "${ECHO_T}$LIBICONV" >&6; }
  12953. else
  12954. CPPFLAGS="$am_save_CPPFLAGS"
  12955. LIBICONV=
  12956. LTLIBICONV=
  12957. fi
  12958. if test "$am_cv_func_iconv" = yes; then
  12959. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12960. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12961. if test "${am_cv_proto_iconv+set}" = set; then
  12962. echo $ECHO_N "(cached) $ECHO_C" >&6
  12963. else
  12964. cat >conftest.$ac_ext <<_ACEOF
  12965. /* confdefs.h. */
  12966. _ACEOF
  12967. cat confdefs.h >>conftest.$ac_ext
  12968. cat >>conftest.$ac_ext <<_ACEOF
  12969. /* end confdefs.h. */
  12970. #include <stdlib.h>
  12971. #include <iconv.h>
  12972. extern
  12973. #ifdef __cplusplus
  12974. "C"
  12975. #endif
  12976. #if defined(__STDC__) || defined(__cplusplus)
  12977. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12978. #else
  12979. size_t iconv();
  12980. #endif
  12981. int
  12982. main ()
  12983. {
  12984. ;
  12985. return 0;
  12986. }
  12987. _ACEOF
  12988. rm -f conftest.$ac_objext
  12989. if { (ac_try="$ac_compile"
  12990. case "(($ac_try" in
  12991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12992. *) ac_try_echo=$ac_try;;
  12993. esac
  12994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12995. (eval "$ac_compile") 2>conftest.er1
  12996. ac_status=$?
  12997. grep -v '^ *+' conftest.er1 >conftest.err
  12998. rm -f conftest.er1
  12999. cat conftest.err >&5
  13000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13001. (exit $ac_status); } && {
  13002. test -z "$ac_cxx_werror_flag" ||
  13003. test ! -s conftest.err
  13004. } && test -s conftest.$ac_objext; then
  13005. am_cv_proto_iconv_arg1=""
  13006. else
  13007. echo "$as_me: failed program was:" >&5
  13008. sed 's/^/| /' conftest.$ac_ext >&5
  13009. am_cv_proto_iconv_arg1="const"
  13010. fi
  13011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13012. 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);"
  13013. fi
  13014. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13015. { echo "$as_me:$LINENO: result: ${ac_t:-
  13016. }$am_cv_proto_iconv" >&5
  13017. echo "${ECHO_T}${ac_t:-
  13018. }$am_cv_proto_iconv" >&6; }
  13019. cat >>confdefs.h <<_ACEOF
  13020. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13021. _ACEOF
  13022. fi
  13023. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13024. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13025. if test "${gt_cv_nl_locale_name+set}" = set; then
  13026. echo $ECHO_N "(cached) $ECHO_C" >&6
  13027. else
  13028. cat >conftest.$ac_ext <<_ACEOF
  13029. /* confdefs.h. */
  13030. _ACEOF
  13031. cat confdefs.h >>conftest.$ac_ext
  13032. cat >>conftest.$ac_ext <<_ACEOF
  13033. /* end confdefs.h. */
  13034. #include <langinfo.h>
  13035. #include <locale.h>
  13036. int
  13037. main ()
  13038. {
  13039. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13040. return !cs;
  13041. ;
  13042. return 0;
  13043. }
  13044. _ACEOF
  13045. rm -f conftest.$ac_objext conftest$ac_exeext
  13046. if { (ac_try="$ac_link"
  13047. case "(($ac_try" in
  13048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13049. *) ac_try_echo=$ac_try;;
  13050. esac
  13051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13052. (eval "$ac_link") 2>conftest.er1
  13053. ac_status=$?
  13054. grep -v '^ *+' conftest.er1 >conftest.err
  13055. rm -f conftest.er1
  13056. cat conftest.err >&5
  13057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13058. (exit $ac_status); } && {
  13059. test -z "$ac_cxx_werror_flag" ||
  13060. test ! -s conftest.err
  13061. } && test -s conftest$ac_exeext &&
  13062. $as_test_x conftest$ac_exeext; then
  13063. gt_cv_nl_locale_name=yes
  13064. else
  13065. echo "$as_me: failed program was:" >&5
  13066. sed 's/^/| /' conftest.$ac_ext >&5
  13067. gt_cv_nl_locale_name=no
  13068. fi
  13069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13070. conftest$ac_exeext conftest.$ac_ext
  13071. fi
  13072. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13073. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13074. if test $gt_cv_nl_locale_name = yes; then
  13075. cat >>confdefs.h <<\_ACEOF
  13076. #define HAVE_NL_LOCALE_NAME 1
  13077. _ACEOF
  13078. fi
  13079. for ac_prog in bison
  13080. do
  13081. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13082. set dummy $ac_prog; ac_word=$2
  13083. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13084. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13085. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13086. echo $ECHO_N "(cached) $ECHO_C" >&6
  13087. else
  13088. if test -n "$INTLBISON"; then
  13089. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13090. else
  13091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13092. for as_dir in $PATH
  13093. do
  13094. IFS=$as_save_IFS
  13095. test -z "$as_dir" && as_dir=.
  13096. for ac_exec_ext in '' $ac_executable_extensions; do
  13097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13098. ac_cv_prog_INTLBISON="$ac_prog"
  13099. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13100. break 2
  13101. fi
  13102. done
  13103. done
  13104. IFS=$as_save_IFS
  13105. fi
  13106. fi
  13107. INTLBISON=$ac_cv_prog_INTLBISON
  13108. if test -n "$INTLBISON"; then
  13109. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13110. echo "${ECHO_T}$INTLBISON" >&6; }
  13111. else
  13112. { echo "$as_me:$LINENO: result: no" >&5
  13113. echo "${ECHO_T}no" >&6; }
  13114. fi
  13115. test -n "$INTLBISON" && break
  13116. done
  13117. if test -z "$INTLBISON"; then
  13118. ac_verc_fail=yes
  13119. else
  13120. { echo "$as_me:$LINENO: checking version of bison" >&5
  13121. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13122. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13123. case $ac_prog_version in
  13124. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13125. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13126. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13127. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13128. esac
  13129. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13130. echo "${ECHO_T}$ac_prog_version" >&6; }
  13131. fi
  13132. if test $ac_verc_fail = yes; then
  13133. INTLBISON=:
  13134. fi
  13135. { echo "$as_me:$LINENO: checking for long long int" >&5
  13136. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13137. if test "${ac_cv_type_long_long_int+set}" = set; then
  13138. echo $ECHO_N "(cached) $ECHO_C" >&6
  13139. else
  13140. cat >conftest.$ac_ext <<_ACEOF
  13141. /* confdefs.h. */
  13142. _ACEOF
  13143. cat confdefs.h >>conftest.$ac_ext
  13144. cat >>conftest.$ac_ext <<_ACEOF
  13145. /* end confdefs.h. */
  13146. /* Test preprocessor. */
  13147. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13148. error in preprocessor;
  13149. #endif
  13150. #if ! (18446744073709551615ULL <= -1ull)
  13151. error in preprocessor;
  13152. #endif
  13153. /* Test literals. */
  13154. long long int ll = 9223372036854775807ll;
  13155. long long int nll = -9223372036854775807LL;
  13156. unsigned long long int ull = 18446744073709551615ULL;
  13157. /* Test constant expressions. */
  13158. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13159. ? 1 : -1)];
  13160. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13161. ? 1 : -1)];
  13162. int i = 63;
  13163. int
  13164. main ()
  13165. {
  13166. /* Test availability of runtime routines for shift and division. */
  13167. long long int llmax = 9223372036854775807ll;
  13168. unsigned long long int ullmax = 18446744073709551615ull;
  13169. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13170. | (llmax / ll) | (llmax % ll)
  13171. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13172. | (ullmax / ull) | (ullmax % ull));
  13173. ;
  13174. return 0;
  13175. }
  13176. _ACEOF
  13177. rm -f conftest.$ac_objext conftest$ac_exeext
  13178. if { (ac_try="$ac_link"
  13179. case "(($ac_try" in
  13180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13181. *) ac_try_echo=$ac_try;;
  13182. esac
  13183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13184. (eval "$ac_link") 2>conftest.er1
  13185. ac_status=$?
  13186. grep -v '^ *+' conftest.er1 >conftest.err
  13187. rm -f conftest.er1
  13188. cat conftest.err >&5
  13189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13190. (exit $ac_status); } && {
  13191. test -z "$ac_cxx_werror_flag" ||
  13192. test ! -s conftest.err
  13193. } && test -s conftest$ac_exeext &&
  13194. $as_test_x conftest$ac_exeext; then
  13195. if test "$cross_compiling" = yes; then
  13196. ac_cv_type_long_long_int=yes
  13197. else
  13198. cat >conftest.$ac_ext <<_ACEOF
  13199. /* confdefs.h. */
  13200. _ACEOF
  13201. cat confdefs.h >>conftest.$ac_ext
  13202. cat >>conftest.$ac_ext <<_ACEOF
  13203. /* end confdefs.h. */
  13204. #include <limits.h>
  13205. #ifndef LLONG_MAX
  13206. # define HALF \
  13207. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13208. # define LLONG_MAX (HALF - 1 + HALF)
  13209. #endif
  13210. int
  13211. main ()
  13212. {
  13213. long long int n = 1;
  13214. int i;
  13215. for (i = 0; ; i++)
  13216. {
  13217. long long int m = n << i;
  13218. if (m >> i != n)
  13219. return 1;
  13220. if (LLONG_MAX / 2 < m)
  13221. break;
  13222. }
  13223. return 0;
  13224. ;
  13225. return 0;
  13226. }
  13227. _ACEOF
  13228. rm -f conftest$ac_exeext
  13229. if { (ac_try="$ac_link"
  13230. case "(($ac_try" in
  13231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13232. *) ac_try_echo=$ac_try;;
  13233. esac
  13234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13235. (eval "$ac_link") 2>&5
  13236. ac_status=$?
  13237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13238. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13239. { (case "(($ac_try" in
  13240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13241. *) ac_try_echo=$ac_try;;
  13242. esac
  13243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13244. (eval "$ac_try") 2>&5
  13245. ac_status=$?
  13246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13247. (exit $ac_status); }; }; then
  13248. ac_cv_type_long_long_int=yes
  13249. else
  13250. echo "$as_me: program exited with status $ac_status" >&5
  13251. echo "$as_me: failed program was:" >&5
  13252. sed 's/^/| /' conftest.$ac_ext >&5
  13253. ( exit $ac_status )
  13254. ac_cv_type_long_long_int=no
  13255. fi
  13256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13257. fi
  13258. else
  13259. echo "$as_me: failed program was:" >&5
  13260. sed 's/^/| /' conftest.$ac_ext >&5
  13261. ac_cv_type_long_long_int=no
  13262. fi
  13263. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13264. conftest$ac_exeext conftest.$ac_ext
  13265. fi
  13266. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13267. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13268. if test $ac_cv_type_long_long_int = yes; then
  13269. cat >>confdefs.h <<\_ACEOF
  13270. #define HAVE_LONG_LONG_INT 1
  13271. _ACEOF
  13272. fi
  13273. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13274. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13275. if test "${gt_cv_c_wchar_t+set}" = set; then
  13276. echo $ECHO_N "(cached) $ECHO_C" >&6
  13277. else
  13278. cat >conftest.$ac_ext <<_ACEOF
  13279. /* confdefs.h. */
  13280. _ACEOF
  13281. cat confdefs.h >>conftest.$ac_ext
  13282. cat >>conftest.$ac_ext <<_ACEOF
  13283. /* end confdefs.h. */
  13284. #include <stddef.h>
  13285. wchar_t foo = (wchar_t)'\0';
  13286. int
  13287. main ()
  13288. {
  13289. ;
  13290. return 0;
  13291. }
  13292. _ACEOF
  13293. rm -f conftest.$ac_objext
  13294. if { (ac_try="$ac_compile"
  13295. case "(($ac_try" in
  13296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13297. *) ac_try_echo=$ac_try;;
  13298. esac
  13299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13300. (eval "$ac_compile") 2>conftest.er1
  13301. ac_status=$?
  13302. grep -v '^ *+' conftest.er1 >conftest.err
  13303. rm -f conftest.er1
  13304. cat conftest.err >&5
  13305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13306. (exit $ac_status); } && {
  13307. test -z "$ac_cxx_werror_flag" ||
  13308. test ! -s conftest.err
  13309. } && test -s conftest.$ac_objext; then
  13310. gt_cv_c_wchar_t=yes
  13311. else
  13312. echo "$as_me: failed program was:" >&5
  13313. sed 's/^/| /' conftest.$ac_ext >&5
  13314. gt_cv_c_wchar_t=no
  13315. fi
  13316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13317. fi
  13318. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13319. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13320. if test $gt_cv_c_wchar_t = yes; then
  13321. cat >>confdefs.h <<\_ACEOF
  13322. #define HAVE_WCHAR_T 1
  13323. _ACEOF
  13324. fi
  13325. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13326. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13327. if test "${gt_cv_c_wint_t+set}" = set; then
  13328. echo $ECHO_N "(cached) $ECHO_C" >&6
  13329. else
  13330. cat >conftest.$ac_ext <<_ACEOF
  13331. /* confdefs.h. */
  13332. _ACEOF
  13333. cat confdefs.h >>conftest.$ac_ext
  13334. cat >>conftest.$ac_ext <<_ACEOF
  13335. /* end confdefs.h. */
  13336. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13337. <wchar.h>.
  13338. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13339. before <wchar.h>. */
  13340. #include <stddef.h>
  13341. #include <stdio.h>
  13342. #include <time.h>
  13343. #include <wchar.h>
  13344. wint_t foo = (wchar_t)'\0';
  13345. int
  13346. main ()
  13347. {
  13348. ;
  13349. return 0;
  13350. }
  13351. _ACEOF
  13352. rm -f conftest.$ac_objext
  13353. if { (ac_try="$ac_compile"
  13354. case "(($ac_try" in
  13355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13356. *) ac_try_echo=$ac_try;;
  13357. esac
  13358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13359. (eval "$ac_compile") 2>conftest.er1
  13360. ac_status=$?
  13361. grep -v '^ *+' conftest.er1 >conftest.err
  13362. rm -f conftest.er1
  13363. cat conftest.err >&5
  13364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13365. (exit $ac_status); } && {
  13366. test -z "$ac_cxx_werror_flag" ||
  13367. test ! -s conftest.err
  13368. } && test -s conftest.$ac_objext; then
  13369. gt_cv_c_wint_t=yes
  13370. else
  13371. echo "$as_me: failed program was:" >&5
  13372. sed 's/^/| /' conftest.$ac_ext >&5
  13373. gt_cv_c_wint_t=no
  13374. fi
  13375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13376. fi
  13377. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13378. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13379. if test $gt_cv_c_wint_t = yes; then
  13380. cat >>confdefs.h <<\_ACEOF
  13381. #define HAVE_WINT_T 1
  13382. _ACEOF
  13383. fi
  13384. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13385. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13386. if test "${gt_cv_c_intmax_t+set}" = set; then
  13387. echo $ECHO_N "(cached) $ECHO_C" >&6
  13388. else
  13389. cat >conftest.$ac_ext <<_ACEOF
  13390. /* confdefs.h. */
  13391. _ACEOF
  13392. cat confdefs.h >>conftest.$ac_ext
  13393. cat >>conftest.$ac_ext <<_ACEOF
  13394. /* end confdefs.h. */
  13395. #include <stddef.h>
  13396. #include <stdlib.h>
  13397. #if HAVE_STDINT_H_WITH_UINTMAX
  13398. #include <stdint.h>
  13399. #endif
  13400. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13401. #include <inttypes.h>
  13402. #endif
  13403. int
  13404. main ()
  13405. {
  13406. intmax_t x = -1;
  13407. return !x;
  13408. ;
  13409. return 0;
  13410. }
  13411. _ACEOF
  13412. rm -f conftest.$ac_objext
  13413. if { (ac_try="$ac_compile"
  13414. case "(($ac_try" in
  13415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13416. *) ac_try_echo=$ac_try;;
  13417. esac
  13418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13419. (eval "$ac_compile") 2>conftest.er1
  13420. ac_status=$?
  13421. grep -v '^ *+' conftest.er1 >conftest.err
  13422. rm -f conftest.er1
  13423. cat conftest.err >&5
  13424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13425. (exit $ac_status); } && {
  13426. test -z "$ac_cxx_werror_flag" ||
  13427. test ! -s conftest.err
  13428. } && test -s conftest.$ac_objext; then
  13429. gt_cv_c_intmax_t=yes
  13430. else
  13431. echo "$as_me: failed program was:" >&5
  13432. sed 's/^/| /' conftest.$ac_ext >&5
  13433. gt_cv_c_intmax_t=no
  13434. fi
  13435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13436. fi
  13437. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13438. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13439. if test $gt_cv_c_intmax_t = yes; then
  13440. cat >>confdefs.h <<\_ACEOF
  13441. #define HAVE_INTMAX_T 1
  13442. _ACEOF
  13443. fi
  13444. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13445. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13446. if test "${gt_cv_func_printf_posix+set}" = set; then
  13447. echo $ECHO_N "(cached) $ECHO_C" >&6
  13448. else
  13449. if test "$cross_compiling" = yes; then
  13450. cat >conftest.$ac_ext <<_ACEOF
  13451. /* confdefs.h. */
  13452. _ACEOF
  13453. cat confdefs.h >>conftest.$ac_ext
  13454. cat >>conftest.$ac_ext <<_ACEOF
  13455. /* end confdefs.h. */
  13456. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13457. notposix
  13458. #endif
  13459. _ACEOF
  13460. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13461. $EGREP "notposix" >/dev/null 2>&1; then
  13462. gt_cv_func_printf_posix="guessing no"
  13463. else
  13464. gt_cv_func_printf_posix="guessing yes"
  13465. fi
  13466. rm -f conftest*
  13467. else
  13468. cat >conftest.$ac_ext <<_ACEOF
  13469. /* confdefs.h. */
  13470. _ACEOF
  13471. cat confdefs.h >>conftest.$ac_ext
  13472. cat >>conftest.$ac_ext <<_ACEOF
  13473. /* end confdefs.h. */
  13474. #include <stdio.h>
  13475. #include <string.h>
  13476. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13477. dollar expansion (possibly an autoconf bug). */
  13478. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13479. static char buf[100];
  13480. int main ()
  13481. {
  13482. sprintf (buf, format, 33, 55);
  13483. return (strcmp (buf, "55 33") != 0);
  13484. }
  13485. _ACEOF
  13486. rm -f conftest$ac_exeext
  13487. if { (ac_try="$ac_link"
  13488. case "(($ac_try" in
  13489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13490. *) ac_try_echo=$ac_try;;
  13491. esac
  13492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13493. (eval "$ac_link") 2>&5
  13494. ac_status=$?
  13495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13496. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13497. { (case "(($ac_try" in
  13498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13499. *) ac_try_echo=$ac_try;;
  13500. esac
  13501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13502. (eval "$ac_try") 2>&5
  13503. ac_status=$?
  13504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13505. (exit $ac_status); }; }; then
  13506. gt_cv_func_printf_posix=yes
  13507. else
  13508. echo "$as_me: program exited with status $ac_status" >&5
  13509. echo "$as_me: failed program was:" >&5
  13510. sed 's/^/| /' conftest.$ac_ext >&5
  13511. ( exit $ac_status )
  13512. gt_cv_func_printf_posix=no
  13513. fi
  13514. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13515. fi
  13516. fi
  13517. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13518. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13519. case $gt_cv_func_printf_posix in
  13520. *yes)
  13521. cat >>confdefs.h <<\_ACEOF
  13522. #define HAVE_POSIX_PRINTF 1
  13523. _ACEOF
  13524. ;;
  13525. esac
  13526. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13527. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13528. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13529. echo $ECHO_N "(cached) $ECHO_C" >&6
  13530. else
  13531. cat >conftest.$ac_ext <<_ACEOF
  13532. /* confdefs.h. */
  13533. _ACEOF
  13534. cat confdefs.h >>conftest.$ac_ext
  13535. cat >>conftest.$ac_ext <<_ACEOF
  13536. /* end confdefs.h. */
  13537. #include <features.h>
  13538. #ifdef __GNU_LIBRARY__
  13539. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13540. Lucky GNU user
  13541. #endif
  13542. #endif
  13543. _ACEOF
  13544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13545. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13546. ac_cv_gnu_library_2_1=yes
  13547. else
  13548. ac_cv_gnu_library_2_1=no
  13549. fi
  13550. rm -f conftest*
  13551. fi
  13552. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13553. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13554. GLIBC21="$ac_cv_gnu_library_2_1"
  13555. for ac_header in stdint.h
  13556. do
  13557. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13558. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13559. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13560. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13561. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13562. echo $ECHO_N "(cached) $ECHO_C" >&6
  13563. fi
  13564. ac_res=`eval echo '${'$as_ac_Header'}'`
  13565. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13566. echo "${ECHO_T}$ac_res" >&6; }
  13567. else
  13568. # Is the header compilable?
  13569. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13570. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13571. cat >conftest.$ac_ext <<_ACEOF
  13572. /* confdefs.h. */
  13573. _ACEOF
  13574. cat confdefs.h >>conftest.$ac_ext
  13575. cat >>conftest.$ac_ext <<_ACEOF
  13576. /* end confdefs.h. */
  13577. $ac_includes_default
  13578. #include <$ac_header>
  13579. _ACEOF
  13580. rm -f conftest.$ac_objext
  13581. if { (ac_try="$ac_compile"
  13582. case "(($ac_try" in
  13583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13584. *) ac_try_echo=$ac_try;;
  13585. esac
  13586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13587. (eval "$ac_compile") 2>conftest.er1
  13588. ac_status=$?
  13589. grep -v '^ *+' conftest.er1 >conftest.err
  13590. rm -f conftest.er1
  13591. cat conftest.err >&5
  13592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13593. (exit $ac_status); } && {
  13594. test -z "$ac_cxx_werror_flag" ||
  13595. test ! -s conftest.err
  13596. } && test -s conftest.$ac_objext; then
  13597. ac_header_compiler=yes
  13598. else
  13599. echo "$as_me: failed program was:" >&5
  13600. sed 's/^/| /' conftest.$ac_ext >&5
  13601. ac_header_compiler=no
  13602. fi
  13603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13604. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13605. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13606. # Is the header present?
  13607. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13608. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13609. cat >conftest.$ac_ext <<_ACEOF
  13610. /* confdefs.h. */
  13611. _ACEOF
  13612. cat confdefs.h >>conftest.$ac_ext
  13613. cat >>conftest.$ac_ext <<_ACEOF
  13614. /* end confdefs.h. */
  13615. #include <$ac_header>
  13616. _ACEOF
  13617. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13618. case "(($ac_try" in
  13619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13620. *) ac_try_echo=$ac_try;;
  13621. esac
  13622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13623. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13624. ac_status=$?
  13625. grep -v '^ *+' conftest.er1 >conftest.err
  13626. rm -f conftest.er1
  13627. cat conftest.err >&5
  13628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13629. (exit $ac_status); } >/dev/null && {
  13630. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13631. test ! -s conftest.err
  13632. }; then
  13633. ac_header_preproc=yes
  13634. else
  13635. echo "$as_me: failed program was:" >&5
  13636. sed 's/^/| /' conftest.$ac_ext >&5
  13637. ac_header_preproc=no
  13638. fi
  13639. rm -f conftest.err conftest.$ac_ext
  13640. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13641. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13642. # So? What about this header?
  13643. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13644. yes:no: )
  13645. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13646. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13647. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13648. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13649. ac_header_preproc=yes
  13650. ;;
  13651. no:yes:* )
  13652. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13653. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13654. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13655. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13656. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13657. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13658. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13659. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13660. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13661. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13662. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13663. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13664. ( cat <<\_ASBOX
  13665. ## ----------------------------------------------- ##
  13666. ## Report this to t-tujikawa@users.sourceforge.net ##
  13667. ## ----------------------------------------------- ##
  13668. _ASBOX
  13669. ) | sed "s/^/$as_me: WARNING: /" >&2
  13670. ;;
  13671. esac
  13672. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13673. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13674. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13675. echo $ECHO_N "(cached) $ECHO_C" >&6
  13676. else
  13677. eval "$as_ac_Header=\$ac_header_preproc"
  13678. fi
  13679. ac_res=`eval echo '${'$as_ac_Header'}'`
  13680. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13681. echo "${ECHO_T}$ac_res" >&6; }
  13682. fi
  13683. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13684. cat >>confdefs.h <<_ACEOF
  13685. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13686. _ACEOF
  13687. fi
  13688. done
  13689. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13690. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13691. if test "${gl_cv_size_max+set}" = set; then
  13692. echo $ECHO_N "(cached) $ECHO_C" >&6
  13693. else
  13694. gl_cv_size_max=
  13695. cat >conftest.$ac_ext <<_ACEOF
  13696. /* confdefs.h. */
  13697. _ACEOF
  13698. cat confdefs.h >>conftest.$ac_ext
  13699. cat >>conftest.$ac_ext <<_ACEOF
  13700. /* end confdefs.h. */
  13701. #include <limits.h>
  13702. #if HAVE_STDINT_H
  13703. #include <stdint.h>
  13704. #endif
  13705. #ifdef SIZE_MAX
  13706. Found it
  13707. #endif
  13708. _ACEOF
  13709. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13710. $EGREP "Found it" >/dev/null 2>&1; then
  13711. gl_cv_size_max=yes
  13712. fi
  13713. rm -f conftest*
  13714. if test -z "$gl_cv_size_max"; then
  13715. if test "$cross_compiling" = yes; then
  13716. # Depending upon the size, compute the lo and hi bounds.
  13717. cat >conftest.$ac_ext <<_ACEOF
  13718. /* confdefs.h. */
  13719. _ACEOF
  13720. cat confdefs.h >>conftest.$ac_ext
  13721. cat >>conftest.$ac_ext <<_ACEOF
  13722. /* end confdefs.h. */
  13723. #include <stddef.h>
  13724. #include <limits.h>
  13725. int
  13726. main ()
  13727. {
  13728. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13729. test_array [0] = 0
  13730. ;
  13731. return 0;
  13732. }
  13733. _ACEOF
  13734. rm -f conftest.$ac_objext
  13735. if { (ac_try="$ac_compile"
  13736. case "(($ac_try" in
  13737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13738. *) ac_try_echo=$ac_try;;
  13739. esac
  13740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13741. (eval "$ac_compile") 2>conftest.er1
  13742. ac_status=$?
  13743. grep -v '^ *+' conftest.er1 >conftest.err
  13744. rm -f conftest.er1
  13745. cat conftest.err >&5
  13746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13747. (exit $ac_status); } && {
  13748. test -z "$ac_cxx_werror_flag" ||
  13749. test ! -s conftest.err
  13750. } && test -s conftest.$ac_objext; then
  13751. ac_lo=0 ac_mid=0
  13752. while :; do
  13753. cat >conftest.$ac_ext <<_ACEOF
  13754. /* confdefs.h. */
  13755. _ACEOF
  13756. cat confdefs.h >>conftest.$ac_ext
  13757. cat >>conftest.$ac_ext <<_ACEOF
  13758. /* end confdefs.h. */
  13759. #include <stddef.h>
  13760. #include <limits.h>
  13761. int
  13762. main ()
  13763. {
  13764. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13765. test_array [0] = 0
  13766. ;
  13767. return 0;
  13768. }
  13769. _ACEOF
  13770. rm -f conftest.$ac_objext
  13771. if { (ac_try="$ac_compile"
  13772. case "(($ac_try" in
  13773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13774. *) ac_try_echo=$ac_try;;
  13775. esac
  13776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13777. (eval "$ac_compile") 2>conftest.er1
  13778. ac_status=$?
  13779. grep -v '^ *+' conftest.er1 >conftest.err
  13780. rm -f conftest.er1
  13781. cat conftest.err >&5
  13782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13783. (exit $ac_status); } && {
  13784. test -z "$ac_cxx_werror_flag" ||
  13785. test ! -s conftest.err
  13786. } && test -s conftest.$ac_objext; then
  13787. ac_hi=$ac_mid; break
  13788. else
  13789. echo "$as_me: failed program was:" >&5
  13790. sed 's/^/| /' conftest.$ac_ext >&5
  13791. ac_lo=`expr $ac_mid + 1`
  13792. if test $ac_lo -le $ac_mid; then
  13793. ac_lo= ac_hi=
  13794. break
  13795. fi
  13796. ac_mid=`expr 2 '*' $ac_mid + 1`
  13797. fi
  13798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13799. done
  13800. else
  13801. echo "$as_me: failed program was:" >&5
  13802. sed 's/^/| /' conftest.$ac_ext >&5
  13803. cat >conftest.$ac_ext <<_ACEOF
  13804. /* confdefs.h. */
  13805. _ACEOF
  13806. cat confdefs.h >>conftest.$ac_ext
  13807. cat >>conftest.$ac_ext <<_ACEOF
  13808. /* end confdefs.h. */
  13809. #include <stddef.h>
  13810. #include <limits.h>
  13811. int
  13812. main ()
  13813. {
  13814. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13815. test_array [0] = 0
  13816. ;
  13817. return 0;
  13818. }
  13819. _ACEOF
  13820. rm -f conftest.$ac_objext
  13821. if { (ac_try="$ac_compile"
  13822. case "(($ac_try" in
  13823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13824. *) ac_try_echo=$ac_try;;
  13825. esac
  13826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13827. (eval "$ac_compile") 2>conftest.er1
  13828. ac_status=$?
  13829. grep -v '^ *+' conftest.er1 >conftest.err
  13830. rm -f conftest.er1
  13831. cat conftest.err >&5
  13832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13833. (exit $ac_status); } && {
  13834. test -z "$ac_cxx_werror_flag" ||
  13835. test ! -s conftest.err
  13836. } && test -s conftest.$ac_objext; then
  13837. ac_hi=-1 ac_mid=-1
  13838. while :; do
  13839. cat >conftest.$ac_ext <<_ACEOF
  13840. /* confdefs.h. */
  13841. _ACEOF
  13842. cat confdefs.h >>conftest.$ac_ext
  13843. cat >>conftest.$ac_ext <<_ACEOF
  13844. /* end confdefs.h. */
  13845. #include <stddef.h>
  13846. #include <limits.h>
  13847. int
  13848. main ()
  13849. {
  13850. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13851. test_array [0] = 0
  13852. ;
  13853. return 0;
  13854. }
  13855. _ACEOF
  13856. rm -f conftest.$ac_objext
  13857. if { (ac_try="$ac_compile"
  13858. case "(($ac_try" in
  13859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13860. *) ac_try_echo=$ac_try;;
  13861. esac
  13862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13863. (eval "$ac_compile") 2>conftest.er1
  13864. ac_status=$?
  13865. grep -v '^ *+' conftest.er1 >conftest.err
  13866. rm -f conftest.er1
  13867. cat conftest.err >&5
  13868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13869. (exit $ac_status); } && {
  13870. test -z "$ac_cxx_werror_flag" ||
  13871. test ! -s conftest.err
  13872. } && test -s conftest.$ac_objext; then
  13873. ac_lo=$ac_mid; break
  13874. else
  13875. echo "$as_me: failed program was:" >&5
  13876. sed 's/^/| /' conftest.$ac_ext >&5
  13877. ac_hi=`expr '(' $ac_mid ')' - 1`
  13878. if test $ac_mid -le $ac_hi; then
  13879. ac_lo= ac_hi=
  13880. break
  13881. fi
  13882. ac_mid=`expr 2 '*' $ac_mid`
  13883. fi
  13884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13885. done
  13886. else
  13887. echo "$as_me: failed program was:" >&5
  13888. sed 's/^/| /' conftest.$ac_ext >&5
  13889. ac_lo= ac_hi=
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13892. fi
  13893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13894. # Binary search between lo and hi bounds.
  13895. while test "x$ac_lo" != "x$ac_hi"; do
  13896. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13897. cat >conftest.$ac_ext <<_ACEOF
  13898. /* confdefs.h. */
  13899. _ACEOF
  13900. cat confdefs.h >>conftest.$ac_ext
  13901. cat >>conftest.$ac_ext <<_ACEOF
  13902. /* end confdefs.h. */
  13903. #include <stddef.h>
  13904. #include <limits.h>
  13905. int
  13906. main ()
  13907. {
  13908. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13909. test_array [0] = 0
  13910. ;
  13911. return 0;
  13912. }
  13913. _ACEOF
  13914. rm -f conftest.$ac_objext
  13915. if { (ac_try="$ac_compile"
  13916. case "(($ac_try" in
  13917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13918. *) ac_try_echo=$ac_try;;
  13919. esac
  13920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13921. (eval "$ac_compile") 2>conftest.er1
  13922. ac_status=$?
  13923. grep -v '^ *+' conftest.er1 >conftest.err
  13924. rm -f conftest.er1
  13925. cat conftest.err >&5
  13926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13927. (exit $ac_status); } && {
  13928. test -z "$ac_cxx_werror_flag" ||
  13929. test ! -s conftest.err
  13930. } && test -s conftest.$ac_objext; then
  13931. ac_hi=$ac_mid
  13932. else
  13933. echo "$as_me: failed program was:" >&5
  13934. sed 's/^/| /' conftest.$ac_ext >&5
  13935. ac_lo=`expr '(' $ac_mid ')' + 1`
  13936. fi
  13937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13938. done
  13939. case $ac_lo in
  13940. ?*) size_t_bits_minus_1=$ac_lo;;
  13941. '') size_t_bits_minus_1= ;;
  13942. esac
  13943. else
  13944. cat >conftest.$ac_ext <<_ACEOF
  13945. /* confdefs.h. */
  13946. _ACEOF
  13947. cat confdefs.h >>conftest.$ac_ext
  13948. cat >>conftest.$ac_ext <<_ACEOF
  13949. /* end confdefs.h. */
  13950. #include <stddef.h>
  13951. #include <limits.h>
  13952. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13953. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13954. #include <stdio.h>
  13955. #include <stdlib.h>
  13956. int
  13957. main ()
  13958. {
  13959. FILE *f = fopen ("conftest.val", "w");
  13960. if (! f)
  13961. return 1;
  13962. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13963. {
  13964. long int i = longval ();
  13965. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13966. return 1;
  13967. fprintf (f, "%ld\n", i);
  13968. }
  13969. else
  13970. {
  13971. unsigned long int i = ulongval ();
  13972. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13973. return 1;
  13974. fprintf (f, "%lu\n", i);
  13975. }
  13976. return ferror (f) || fclose (f) != 0;
  13977. ;
  13978. return 0;
  13979. }
  13980. _ACEOF
  13981. rm -f conftest$ac_exeext
  13982. if { (ac_try="$ac_link"
  13983. case "(($ac_try" in
  13984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13985. *) ac_try_echo=$ac_try;;
  13986. esac
  13987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13988. (eval "$ac_link") 2>&5
  13989. ac_status=$?
  13990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13991. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13992. { (case "(($ac_try" in
  13993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13994. *) ac_try_echo=$ac_try;;
  13995. esac
  13996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13997. (eval "$ac_try") 2>&5
  13998. ac_status=$?
  13999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14000. (exit $ac_status); }; }; then
  14001. size_t_bits_minus_1=`cat conftest.val`
  14002. else
  14003. echo "$as_me: program exited with status $ac_status" >&5
  14004. echo "$as_me: failed program was:" >&5
  14005. sed 's/^/| /' conftest.$ac_ext >&5
  14006. ( exit $ac_status )
  14007. size_t_bits_minus_1=
  14008. fi
  14009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14010. fi
  14011. rm -f conftest.val
  14012. if test "$cross_compiling" = yes; then
  14013. # Depending upon the size, compute the lo and hi bounds.
  14014. cat >conftest.$ac_ext <<_ACEOF
  14015. /* confdefs.h. */
  14016. _ACEOF
  14017. cat confdefs.h >>conftest.$ac_ext
  14018. cat >>conftest.$ac_ext <<_ACEOF
  14019. /* end confdefs.h. */
  14020. #include <stddef.h>
  14021. int
  14022. main ()
  14023. {
  14024. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14025. test_array [0] = 0
  14026. ;
  14027. return 0;
  14028. }
  14029. _ACEOF
  14030. rm -f conftest.$ac_objext
  14031. if { (ac_try="$ac_compile"
  14032. case "(($ac_try" in
  14033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14034. *) ac_try_echo=$ac_try;;
  14035. esac
  14036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14037. (eval "$ac_compile") 2>conftest.er1
  14038. ac_status=$?
  14039. grep -v '^ *+' conftest.er1 >conftest.err
  14040. rm -f conftest.er1
  14041. cat conftest.err >&5
  14042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14043. (exit $ac_status); } && {
  14044. test -z "$ac_cxx_werror_flag" ||
  14045. test ! -s conftest.err
  14046. } && test -s conftest.$ac_objext; then
  14047. ac_lo=0 ac_mid=0
  14048. while :; do
  14049. cat >conftest.$ac_ext <<_ACEOF
  14050. /* confdefs.h. */
  14051. _ACEOF
  14052. cat confdefs.h >>conftest.$ac_ext
  14053. cat >>conftest.$ac_ext <<_ACEOF
  14054. /* end confdefs.h. */
  14055. #include <stddef.h>
  14056. int
  14057. main ()
  14058. {
  14059. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14060. test_array [0] = 0
  14061. ;
  14062. return 0;
  14063. }
  14064. _ACEOF
  14065. rm -f conftest.$ac_objext
  14066. if { (ac_try="$ac_compile"
  14067. case "(($ac_try" in
  14068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14069. *) ac_try_echo=$ac_try;;
  14070. esac
  14071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14072. (eval "$ac_compile") 2>conftest.er1
  14073. ac_status=$?
  14074. grep -v '^ *+' conftest.er1 >conftest.err
  14075. rm -f conftest.er1
  14076. cat conftest.err >&5
  14077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14078. (exit $ac_status); } && {
  14079. test -z "$ac_cxx_werror_flag" ||
  14080. test ! -s conftest.err
  14081. } && test -s conftest.$ac_objext; then
  14082. ac_hi=$ac_mid; break
  14083. else
  14084. echo "$as_me: failed program was:" >&5
  14085. sed 's/^/| /' conftest.$ac_ext >&5
  14086. ac_lo=`expr $ac_mid + 1`
  14087. if test $ac_lo -le $ac_mid; then
  14088. ac_lo= ac_hi=
  14089. break
  14090. fi
  14091. ac_mid=`expr 2 '*' $ac_mid + 1`
  14092. fi
  14093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14094. done
  14095. else
  14096. echo "$as_me: failed program was:" >&5
  14097. sed 's/^/| /' conftest.$ac_ext >&5
  14098. cat >conftest.$ac_ext <<_ACEOF
  14099. /* confdefs.h. */
  14100. _ACEOF
  14101. cat confdefs.h >>conftest.$ac_ext
  14102. cat >>conftest.$ac_ext <<_ACEOF
  14103. /* end confdefs.h. */
  14104. #include <stddef.h>
  14105. int
  14106. main ()
  14107. {
  14108. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14109. test_array [0] = 0
  14110. ;
  14111. return 0;
  14112. }
  14113. _ACEOF
  14114. rm -f conftest.$ac_objext
  14115. if { (ac_try="$ac_compile"
  14116. case "(($ac_try" in
  14117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14118. *) ac_try_echo=$ac_try;;
  14119. esac
  14120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14121. (eval "$ac_compile") 2>conftest.er1
  14122. ac_status=$?
  14123. grep -v '^ *+' conftest.er1 >conftest.err
  14124. rm -f conftest.er1
  14125. cat conftest.err >&5
  14126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14127. (exit $ac_status); } && {
  14128. test -z "$ac_cxx_werror_flag" ||
  14129. test ! -s conftest.err
  14130. } && test -s conftest.$ac_objext; then
  14131. ac_hi=-1 ac_mid=-1
  14132. while :; do
  14133. cat >conftest.$ac_ext <<_ACEOF
  14134. /* confdefs.h. */
  14135. _ACEOF
  14136. cat confdefs.h >>conftest.$ac_ext
  14137. cat >>conftest.$ac_ext <<_ACEOF
  14138. /* end confdefs.h. */
  14139. #include <stddef.h>
  14140. int
  14141. main ()
  14142. {
  14143. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14144. test_array [0] = 0
  14145. ;
  14146. return 0;
  14147. }
  14148. _ACEOF
  14149. rm -f conftest.$ac_objext
  14150. if { (ac_try="$ac_compile"
  14151. case "(($ac_try" in
  14152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14153. *) ac_try_echo=$ac_try;;
  14154. esac
  14155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14156. (eval "$ac_compile") 2>conftest.er1
  14157. ac_status=$?
  14158. grep -v '^ *+' conftest.er1 >conftest.err
  14159. rm -f conftest.er1
  14160. cat conftest.err >&5
  14161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14162. (exit $ac_status); } && {
  14163. test -z "$ac_cxx_werror_flag" ||
  14164. test ! -s conftest.err
  14165. } && test -s conftest.$ac_objext; then
  14166. ac_lo=$ac_mid; break
  14167. else
  14168. echo "$as_me: failed program was:" >&5
  14169. sed 's/^/| /' conftest.$ac_ext >&5
  14170. ac_hi=`expr '(' $ac_mid ')' - 1`
  14171. if test $ac_mid -le $ac_hi; then
  14172. ac_lo= ac_hi=
  14173. break
  14174. fi
  14175. ac_mid=`expr 2 '*' $ac_mid`
  14176. fi
  14177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14178. done
  14179. else
  14180. echo "$as_me: failed program was:" >&5
  14181. sed 's/^/| /' conftest.$ac_ext >&5
  14182. ac_lo= ac_hi=
  14183. fi
  14184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14185. fi
  14186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14187. # Binary search between lo and hi bounds.
  14188. while test "x$ac_lo" != "x$ac_hi"; do
  14189. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14190. cat >conftest.$ac_ext <<_ACEOF
  14191. /* confdefs.h. */
  14192. _ACEOF
  14193. cat confdefs.h >>conftest.$ac_ext
  14194. cat >>conftest.$ac_ext <<_ACEOF
  14195. /* end confdefs.h. */
  14196. #include <stddef.h>
  14197. int
  14198. main ()
  14199. {
  14200. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14201. test_array [0] = 0
  14202. ;
  14203. return 0;
  14204. }
  14205. _ACEOF
  14206. rm -f conftest.$ac_objext
  14207. if { (ac_try="$ac_compile"
  14208. case "(($ac_try" in
  14209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14210. *) ac_try_echo=$ac_try;;
  14211. esac
  14212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14213. (eval "$ac_compile") 2>conftest.er1
  14214. ac_status=$?
  14215. grep -v '^ *+' conftest.er1 >conftest.err
  14216. rm -f conftest.er1
  14217. cat conftest.err >&5
  14218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14219. (exit $ac_status); } && {
  14220. test -z "$ac_cxx_werror_flag" ||
  14221. test ! -s conftest.err
  14222. } && test -s conftest.$ac_objext; then
  14223. ac_hi=$ac_mid
  14224. else
  14225. echo "$as_me: failed program was:" >&5
  14226. sed 's/^/| /' conftest.$ac_ext >&5
  14227. ac_lo=`expr '(' $ac_mid ')' + 1`
  14228. fi
  14229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14230. done
  14231. case $ac_lo in
  14232. ?*) fits_in_uint=$ac_lo;;
  14233. '') fits_in_uint= ;;
  14234. esac
  14235. else
  14236. cat >conftest.$ac_ext <<_ACEOF
  14237. /* confdefs.h. */
  14238. _ACEOF
  14239. cat confdefs.h >>conftest.$ac_ext
  14240. cat >>conftest.$ac_ext <<_ACEOF
  14241. /* end confdefs.h. */
  14242. #include <stddef.h>
  14243. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14244. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14245. #include <stdio.h>
  14246. #include <stdlib.h>
  14247. int
  14248. main ()
  14249. {
  14250. FILE *f = fopen ("conftest.val", "w");
  14251. if (! f)
  14252. return 1;
  14253. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14254. {
  14255. long int i = longval ();
  14256. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14257. return 1;
  14258. fprintf (f, "%ld\n", i);
  14259. }
  14260. else
  14261. {
  14262. unsigned long int i = ulongval ();
  14263. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14264. return 1;
  14265. fprintf (f, "%lu\n", i);
  14266. }
  14267. return ferror (f) || fclose (f) != 0;
  14268. ;
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. rm -f conftest$ac_exeext
  14273. if { (ac_try="$ac_link"
  14274. case "(($ac_try" in
  14275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14276. *) ac_try_echo=$ac_try;;
  14277. esac
  14278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14279. (eval "$ac_link") 2>&5
  14280. ac_status=$?
  14281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14282. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14283. { (case "(($ac_try" in
  14284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14285. *) ac_try_echo=$ac_try;;
  14286. esac
  14287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14288. (eval "$ac_try") 2>&5
  14289. ac_status=$?
  14290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14291. (exit $ac_status); }; }; then
  14292. fits_in_uint=`cat conftest.val`
  14293. else
  14294. echo "$as_me: program exited with status $ac_status" >&5
  14295. echo "$as_me: failed program was:" >&5
  14296. sed 's/^/| /' conftest.$ac_ext >&5
  14297. ( exit $ac_status )
  14298. fits_in_uint=
  14299. fi
  14300. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14301. fi
  14302. rm -f conftest.val
  14303. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14304. if test $fits_in_uint = 1; then
  14305. cat >conftest.$ac_ext <<_ACEOF
  14306. /* confdefs.h. */
  14307. _ACEOF
  14308. cat confdefs.h >>conftest.$ac_ext
  14309. cat >>conftest.$ac_ext <<_ACEOF
  14310. /* end confdefs.h. */
  14311. #include <stddef.h>
  14312. extern size_t foo;
  14313. extern unsigned long foo;
  14314. int
  14315. main ()
  14316. {
  14317. ;
  14318. return 0;
  14319. }
  14320. _ACEOF
  14321. rm -f conftest.$ac_objext
  14322. if { (ac_try="$ac_compile"
  14323. case "(($ac_try" in
  14324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14325. *) ac_try_echo=$ac_try;;
  14326. esac
  14327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14328. (eval "$ac_compile") 2>conftest.er1
  14329. ac_status=$?
  14330. grep -v '^ *+' conftest.er1 >conftest.err
  14331. rm -f conftest.er1
  14332. cat conftest.err >&5
  14333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14334. (exit $ac_status); } && {
  14335. test -z "$ac_cxx_werror_flag" ||
  14336. test ! -s conftest.err
  14337. } && test -s conftest.$ac_objext; then
  14338. fits_in_uint=0
  14339. else
  14340. echo "$as_me: failed program was:" >&5
  14341. sed 's/^/| /' conftest.$ac_ext >&5
  14342. fi
  14343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14344. fi
  14345. if test $fits_in_uint = 1; then
  14346. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14347. else
  14348. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14349. fi
  14350. else
  14351. gl_cv_size_max='((size_t)~(size_t)0)'
  14352. fi
  14353. fi
  14354. fi
  14355. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14356. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14357. if test "$gl_cv_size_max" != yes; then
  14358. cat >>confdefs.h <<_ACEOF
  14359. #define SIZE_MAX $gl_cv_size_max
  14360. _ACEOF
  14361. fi
  14362. for ac_header in stdint.h
  14363. do
  14364. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14365. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14366. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14367. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14368. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14369. echo $ECHO_N "(cached) $ECHO_C" >&6
  14370. fi
  14371. ac_res=`eval echo '${'$as_ac_Header'}'`
  14372. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14373. echo "${ECHO_T}$ac_res" >&6; }
  14374. else
  14375. # Is the header compilable?
  14376. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14377. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14378. cat >conftest.$ac_ext <<_ACEOF
  14379. /* confdefs.h. */
  14380. _ACEOF
  14381. cat confdefs.h >>conftest.$ac_ext
  14382. cat >>conftest.$ac_ext <<_ACEOF
  14383. /* end confdefs.h. */
  14384. $ac_includes_default
  14385. #include <$ac_header>
  14386. _ACEOF
  14387. rm -f conftest.$ac_objext
  14388. if { (ac_try="$ac_compile"
  14389. case "(($ac_try" in
  14390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14391. *) ac_try_echo=$ac_try;;
  14392. esac
  14393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14394. (eval "$ac_compile") 2>conftest.er1
  14395. ac_status=$?
  14396. grep -v '^ *+' conftest.er1 >conftest.err
  14397. rm -f conftest.er1
  14398. cat conftest.err >&5
  14399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14400. (exit $ac_status); } && {
  14401. test -z "$ac_cxx_werror_flag" ||
  14402. test ! -s conftest.err
  14403. } && test -s conftest.$ac_objext; then
  14404. ac_header_compiler=yes
  14405. else
  14406. echo "$as_me: failed program was:" >&5
  14407. sed 's/^/| /' conftest.$ac_ext >&5
  14408. ac_header_compiler=no
  14409. fi
  14410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14411. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14412. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14413. # Is the header present?
  14414. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14415. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14416. cat >conftest.$ac_ext <<_ACEOF
  14417. /* confdefs.h. */
  14418. _ACEOF
  14419. cat confdefs.h >>conftest.$ac_ext
  14420. cat >>conftest.$ac_ext <<_ACEOF
  14421. /* end confdefs.h. */
  14422. #include <$ac_header>
  14423. _ACEOF
  14424. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14425. case "(($ac_try" in
  14426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14427. *) ac_try_echo=$ac_try;;
  14428. esac
  14429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14430. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14431. ac_status=$?
  14432. grep -v '^ *+' conftest.er1 >conftest.err
  14433. rm -f conftest.er1
  14434. cat conftest.err >&5
  14435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14436. (exit $ac_status); } >/dev/null && {
  14437. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14438. test ! -s conftest.err
  14439. }; then
  14440. ac_header_preproc=yes
  14441. else
  14442. echo "$as_me: failed program was:" >&5
  14443. sed 's/^/| /' conftest.$ac_ext >&5
  14444. ac_header_preproc=no
  14445. fi
  14446. rm -f conftest.err conftest.$ac_ext
  14447. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14448. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14449. # So? What about this header?
  14450. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14451. yes:no: )
  14452. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14453. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14455. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14456. ac_header_preproc=yes
  14457. ;;
  14458. no:yes:* )
  14459. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14460. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14461. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14462. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14463. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14464. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14465. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14466. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14467. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14468. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14469. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14470. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14471. ( cat <<\_ASBOX
  14472. ## ----------------------------------------------- ##
  14473. ## Report this to t-tujikawa@users.sourceforge.net ##
  14474. ## ----------------------------------------------- ##
  14475. _ASBOX
  14476. ) | sed "s/^/$as_me: WARNING: /" >&2
  14477. ;;
  14478. esac
  14479. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14480. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14481. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14482. echo $ECHO_N "(cached) $ECHO_C" >&6
  14483. else
  14484. eval "$as_ac_Header=\$ac_header_preproc"
  14485. fi
  14486. ac_res=`eval echo '${'$as_ac_Header'}'`
  14487. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14488. echo "${ECHO_T}$ac_res" >&6; }
  14489. fi
  14490. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14491. cat >>confdefs.h <<_ACEOF
  14492. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14493. _ACEOF
  14494. fi
  14495. done
  14496. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14497. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14498. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14499. echo $ECHO_N "(cached) $ECHO_C" >&6
  14500. else
  14501. gt_save_LIBS="$LIBS"
  14502. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14503. cat >conftest.$ac_ext <<_ACEOF
  14504. /* confdefs.h. */
  14505. _ACEOF
  14506. cat confdefs.h >>conftest.$ac_ext
  14507. cat >>conftest.$ac_ext <<_ACEOF
  14508. /* end confdefs.h. */
  14509. #include <CoreFoundation/CFPreferences.h>
  14510. int
  14511. main ()
  14512. {
  14513. CFPreferencesCopyAppValue(NULL, NULL)
  14514. ;
  14515. return 0;
  14516. }
  14517. _ACEOF
  14518. rm -f conftest.$ac_objext conftest$ac_exeext
  14519. if { (ac_try="$ac_link"
  14520. case "(($ac_try" in
  14521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14522. *) ac_try_echo=$ac_try;;
  14523. esac
  14524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14525. (eval "$ac_link") 2>conftest.er1
  14526. ac_status=$?
  14527. grep -v '^ *+' conftest.er1 >conftest.err
  14528. rm -f conftest.er1
  14529. cat conftest.err >&5
  14530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14531. (exit $ac_status); } && {
  14532. test -z "$ac_cxx_werror_flag" ||
  14533. test ! -s conftest.err
  14534. } && test -s conftest$ac_exeext &&
  14535. $as_test_x conftest$ac_exeext; then
  14536. gt_cv_func_CFPreferencesCopyAppValue=yes
  14537. else
  14538. echo "$as_me: failed program was:" >&5
  14539. sed 's/^/| /' conftest.$ac_ext >&5
  14540. gt_cv_func_CFPreferencesCopyAppValue=no
  14541. fi
  14542. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14543. conftest$ac_exeext conftest.$ac_ext
  14544. LIBS="$gt_save_LIBS"
  14545. fi
  14546. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14547. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14548. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14549. cat >>confdefs.h <<\_ACEOF
  14550. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14551. _ACEOF
  14552. fi
  14553. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14554. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14555. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14556. echo $ECHO_N "(cached) $ECHO_C" >&6
  14557. else
  14558. gt_save_LIBS="$LIBS"
  14559. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14560. cat >conftest.$ac_ext <<_ACEOF
  14561. /* confdefs.h. */
  14562. _ACEOF
  14563. cat confdefs.h >>conftest.$ac_ext
  14564. cat >>conftest.$ac_ext <<_ACEOF
  14565. /* end confdefs.h. */
  14566. #include <CoreFoundation/CFLocale.h>
  14567. int
  14568. main ()
  14569. {
  14570. CFLocaleCopyCurrent();
  14571. ;
  14572. return 0;
  14573. }
  14574. _ACEOF
  14575. rm -f conftest.$ac_objext conftest$ac_exeext
  14576. if { (ac_try="$ac_link"
  14577. case "(($ac_try" in
  14578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14579. *) ac_try_echo=$ac_try;;
  14580. esac
  14581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14582. (eval "$ac_link") 2>conftest.er1
  14583. ac_status=$?
  14584. grep -v '^ *+' conftest.er1 >conftest.err
  14585. rm -f conftest.er1
  14586. cat conftest.err >&5
  14587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14588. (exit $ac_status); } && {
  14589. test -z "$ac_cxx_werror_flag" ||
  14590. test ! -s conftest.err
  14591. } && test -s conftest$ac_exeext &&
  14592. $as_test_x conftest$ac_exeext; then
  14593. gt_cv_func_CFLocaleCopyCurrent=yes
  14594. else
  14595. echo "$as_me: failed program was:" >&5
  14596. sed 's/^/| /' conftest.$ac_ext >&5
  14597. gt_cv_func_CFLocaleCopyCurrent=no
  14598. fi
  14599. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14600. conftest$ac_exeext conftest.$ac_ext
  14601. LIBS="$gt_save_LIBS"
  14602. fi
  14603. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14604. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14605. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14606. cat >>confdefs.h <<\_ACEOF
  14607. #define HAVE_CFLOCALECOPYCURRENT 1
  14608. _ACEOF
  14609. fi
  14610. INTL_MACOSX_LIBS=
  14611. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14612. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14613. fi
  14614. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14615. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14616. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14617. echo $ECHO_N "(cached) $ECHO_C" >&6
  14618. else
  14619. cat >conftest.$ac_ext <<_ACEOF
  14620. /* confdefs.h. */
  14621. _ACEOF
  14622. cat confdefs.h >>conftest.$ac_ext
  14623. cat >>conftest.$ac_ext <<_ACEOF
  14624. /* end confdefs.h. */
  14625. $ac_includes_default
  14626. typedef ptrdiff_t ac__type_new_;
  14627. int
  14628. main ()
  14629. {
  14630. if ((ac__type_new_ *) 0)
  14631. return 0;
  14632. if (sizeof (ac__type_new_))
  14633. return 0;
  14634. ;
  14635. return 0;
  14636. }
  14637. _ACEOF
  14638. rm -f conftest.$ac_objext
  14639. if { (ac_try="$ac_compile"
  14640. case "(($ac_try" in
  14641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14642. *) ac_try_echo=$ac_try;;
  14643. esac
  14644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14645. (eval "$ac_compile") 2>conftest.er1
  14646. ac_status=$?
  14647. grep -v '^ *+' conftest.er1 >conftest.err
  14648. rm -f conftest.er1
  14649. cat conftest.err >&5
  14650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14651. (exit $ac_status); } && {
  14652. test -z "$ac_cxx_werror_flag" ||
  14653. test ! -s conftest.err
  14654. } && test -s conftest.$ac_objext; then
  14655. ac_cv_type_ptrdiff_t=yes
  14656. else
  14657. echo "$as_me: failed program was:" >&5
  14658. sed 's/^/| /' conftest.$ac_ext >&5
  14659. ac_cv_type_ptrdiff_t=no
  14660. fi
  14661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14662. fi
  14663. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14664. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14665. if test $ac_cv_type_ptrdiff_t = yes; then
  14666. :
  14667. else
  14668. cat >>confdefs.h <<\_ACEOF
  14669. #define ptrdiff_t long
  14670. _ACEOF
  14671. fi
  14672. for ac_header in stddef.h stdlib.h string.h
  14673. do
  14674. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14675. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14676. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14677. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14678. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14679. echo $ECHO_N "(cached) $ECHO_C" >&6
  14680. fi
  14681. ac_res=`eval echo '${'$as_ac_Header'}'`
  14682. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14683. echo "${ECHO_T}$ac_res" >&6; }
  14684. else
  14685. # Is the header compilable?
  14686. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14687. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14688. cat >conftest.$ac_ext <<_ACEOF
  14689. /* confdefs.h. */
  14690. _ACEOF
  14691. cat confdefs.h >>conftest.$ac_ext
  14692. cat >>conftest.$ac_ext <<_ACEOF
  14693. /* end confdefs.h. */
  14694. $ac_includes_default
  14695. #include <$ac_header>
  14696. _ACEOF
  14697. rm -f conftest.$ac_objext
  14698. if { (ac_try="$ac_compile"
  14699. case "(($ac_try" in
  14700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14701. *) ac_try_echo=$ac_try;;
  14702. esac
  14703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14704. (eval "$ac_compile") 2>conftest.er1
  14705. ac_status=$?
  14706. grep -v '^ *+' conftest.er1 >conftest.err
  14707. rm -f conftest.er1
  14708. cat conftest.err >&5
  14709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14710. (exit $ac_status); } && {
  14711. test -z "$ac_cxx_werror_flag" ||
  14712. test ! -s conftest.err
  14713. } && test -s conftest.$ac_objext; then
  14714. ac_header_compiler=yes
  14715. else
  14716. echo "$as_me: failed program was:" >&5
  14717. sed 's/^/| /' conftest.$ac_ext >&5
  14718. ac_header_compiler=no
  14719. fi
  14720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14721. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14722. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14723. # Is the header present?
  14724. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14725. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14726. cat >conftest.$ac_ext <<_ACEOF
  14727. /* confdefs.h. */
  14728. _ACEOF
  14729. cat confdefs.h >>conftest.$ac_ext
  14730. cat >>conftest.$ac_ext <<_ACEOF
  14731. /* end confdefs.h. */
  14732. #include <$ac_header>
  14733. _ACEOF
  14734. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14735. case "(($ac_try" in
  14736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14737. *) ac_try_echo=$ac_try;;
  14738. esac
  14739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14740. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14741. ac_status=$?
  14742. grep -v '^ *+' conftest.er1 >conftest.err
  14743. rm -f conftest.er1
  14744. cat conftest.err >&5
  14745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14746. (exit $ac_status); } >/dev/null && {
  14747. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14748. test ! -s conftest.err
  14749. }; then
  14750. ac_header_preproc=yes
  14751. else
  14752. echo "$as_me: failed program was:" >&5
  14753. sed 's/^/| /' conftest.$ac_ext >&5
  14754. ac_header_preproc=no
  14755. fi
  14756. rm -f conftest.err conftest.$ac_ext
  14757. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14758. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14759. # So? What about this header?
  14760. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14761. yes:no: )
  14762. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14763. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14764. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14765. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14766. ac_header_preproc=yes
  14767. ;;
  14768. no:yes:* )
  14769. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14770. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14771. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14772. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14773. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14774. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14775. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14776. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14777. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14778. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14779. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14780. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14781. ( cat <<\_ASBOX
  14782. ## ----------------------------------------------- ##
  14783. ## Report this to t-tujikawa@users.sourceforge.net ##
  14784. ## ----------------------------------------------- ##
  14785. _ASBOX
  14786. ) | sed "s/^/$as_me: WARNING: /" >&2
  14787. ;;
  14788. esac
  14789. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14790. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14791. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14792. echo $ECHO_N "(cached) $ECHO_C" >&6
  14793. else
  14794. eval "$as_ac_Header=\$ac_header_preproc"
  14795. fi
  14796. ac_res=`eval echo '${'$as_ac_Header'}'`
  14797. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14798. echo "${ECHO_T}$ac_res" >&6; }
  14799. fi
  14800. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14801. cat >>confdefs.h <<_ACEOF
  14802. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14803. _ACEOF
  14804. fi
  14805. done
  14806. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14807. do
  14808. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14809. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14810. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14811. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14812. echo $ECHO_N "(cached) $ECHO_C" >&6
  14813. else
  14814. cat >conftest.$ac_ext <<_ACEOF
  14815. /* confdefs.h. */
  14816. _ACEOF
  14817. cat confdefs.h >>conftest.$ac_ext
  14818. cat >>conftest.$ac_ext <<_ACEOF
  14819. /* end confdefs.h. */
  14820. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14821. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14822. #define $ac_func innocuous_$ac_func
  14823. /* System header to define __stub macros and hopefully few prototypes,
  14824. which can conflict with char $ac_func (); below.
  14825. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14826. <limits.h> exists even on freestanding compilers. */
  14827. #ifdef __STDC__
  14828. # include <limits.h>
  14829. #else
  14830. # include <assert.h>
  14831. #endif
  14832. #undef $ac_func
  14833. /* Override any GCC internal prototype to avoid an error.
  14834. Use char because int might match the return type of a GCC
  14835. builtin and then its argument prototype would still apply. */
  14836. #ifdef __cplusplus
  14837. extern "C"
  14838. #endif
  14839. char $ac_func ();
  14840. /* The GNU C library defines this for functions which it implements
  14841. to always fail with ENOSYS. Some functions are actually named
  14842. something starting with __ and the normal name is an alias. */
  14843. #if defined __stub_$ac_func || defined __stub___$ac_func
  14844. choke me
  14845. #endif
  14846. int
  14847. main ()
  14848. {
  14849. return $ac_func ();
  14850. ;
  14851. return 0;
  14852. }
  14853. _ACEOF
  14854. rm -f conftest.$ac_objext conftest$ac_exeext
  14855. if { (ac_try="$ac_link"
  14856. case "(($ac_try" in
  14857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14858. *) ac_try_echo=$ac_try;;
  14859. esac
  14860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14861. (eval "$ac_link") 2>conftest.er1
  14862. ac_status=$?
  14863. grep -v '^ *+' conftest.er1 >conftest.err
  14864. rm -f conftest.er1
  14865. cat conftest.err >&5
  14866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14867. (exit $ac_status); } && {
  14868. test -z "$ac_cxx_werror_flag" ||
  14869. test ! -s conftest.err
  14870. } && test -s conftest$ac_exeext &&
  14871. $as_test_x conftest$ac_exeext; then
  14872. eval "$as_ac_var=yes"
  14873. else
  14874. echo "$as_me: failed program was:" >&5
  14875. sed 's/^/| /' conftest.$ac_ext >&5
  14876. eval "$as_ac_var=no"
  14877. fi
  14878. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14879. conftest$ac_exeext conftest.$ac_ext
  14880. fi
  14881. ac_res=`eval echo '${'$as_ac_var'}'`
  14882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14883. echo "${ECHO_T}$ac_res" >&6; }
  14884. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14885. cat >>confdefs.h <<_ACEOF
  14886. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14887. _ACEOF
  14888. fi
  14889. done
  14890. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14891. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14892. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14893. echo $ECHO_N "(cached) $ECHO_C" >&6
  14894. else
  14895. cat >conftest.$ac_ext <<_ACEOF
  14896. /* confdefs.h. */
  14897. _ACEOF
  14898. cat confdefs.h >>conftest.$ac_ext
  14899. cat >>conftest.$ac_ext <<_ACEOF
  14900. /* end confdefs.h. */
  14901. #include <stdio.h>
  14902. int
  14903. main ()
  14904. {
  14905. #ifndef _snprintf
  14906. char *p = (char *) _snprintf;
  14907. #endif
  14908. ;
  14909. return 0;
  14910. }
  14911. _ACEOF
  14912. rm -f conftest.$ac_objext
  14913. if { (ac_try="$ac_compile"
  14914. case "(($ac_try" in
  14915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14916. *) ac_try_echo=$ac_try;;
  14917. esac
  14918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14919. (eval "$ac_compile") 2>conftest.er1
  14920. ac_status=$?
  14921. grep -v '^ *+' conftest.er1 >conftest.err
  14922. rm -f conftest.er1
  14923. cat conftest.err >&5
  14924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14925. (exit $ac_status); } && {
  14926. test -z "$ac_cxx_werror_flag" ||
  14927. test ! -s conftest.err
  14928. } && test -s conftest.$ac_objext; then
  14929. ac_cv_have_decl__snprintf=yes
  14930. else
  14931. echo "$as_me: failed program was:" >&5
  14932. sed 's/^/| /' conftest.$ac_ext >&5
  14933. ac_cv_have_decl__snprintf=no
  14934. fi
  14935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14936. fi
  14937. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14938. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14939. if test $ac_cv_have_decl__snprintf = yes; then
  14940. gt_value=1
  14941. else
  14942. gt_value=0
  14943. fi
  14944. cat >>confdefs.h <<_ACEOF
  14945. #define HAVE_DECL__SNPRINTF $gt_value
  14946. _ACEOF
  14947. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14948. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14949. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14950. echo $ECHO_N "(cached) $ECHO_C" >&6
  14951. else
  14952. cat >conftest.$ac_ext <<_ACEOF
  14953. /* confdefs.h. */
  14954. _ACEOF
  14955. cat confdefs.h >>conftest.$ac_ext
  14956. cat >>conftest.$ac_ext <<_ACEOF
  14957. /* end confdefs.h. */
  14958. #include <stdio.h>
  14959. int
  14960. main ()
  14961. {
  14962. #ifndef _snwprintf
  14963. char *p = (char *) _snwprintf;
  14964. #endif
  14965. ;
  14966. return 0;
  14967. }
  14968. _ACEOF
  14969. rm -f conftest.$ac_objext
  14970. if { (ac_try="$ac_compile"
  14971. case "(($ac_try" in
  14972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14973. *) ac_try_echo=$ac_try;;
  14974. esac
  14975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14976. (eval "$ac_compile") 2>conftest.er1
  14977. ac_status=$?
  14978. grep -v '^ *+' conftest.er1 >conftest.err
  14979. rm -f conftest.er1
  14980. cat conftest.err >&5
  14981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14982. (exit $ac_status); } && {
  14983. test -z "$ac_cxx_werror_flag" ||
  14984. test ! -s conftest.err
  14985. } && test -s conftest.$ac_objext; then
  14986. ac_cv_have_decl__snwprintf=yes
  14987. else
  14988. echo "$as_me: failed program was:" >&5
  14989. sed 's/^/| /' conftest.$ac_ext >&5
  14990. ac_cv_have_decl__snwprintf=no
  14991. fi
  14992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14993. fi
  14994. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14995. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14996. if test $ac_cv_have_decl__snwprintf = yes; then
  14997. gt_value=1
  14998. else
  14999. gt_value=0
  15000. fi
  15001. cat >>confdefs.h <<_ACEOF
  15002. #define HAVE_DECL__SNWPRINTF $gt_value
  15003. _ACEOF
  15004. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15005. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15006. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15007. echo $ECHO_N "(cached) $ECHO_C" >&6
  15008. else
  15009. cat >conftest.$ac_ext <<_ACEOF
  15010. /* confdefs.h. */
  15011. _ACEOF
  15012. cat confdefs.h >>conftest.$ac_ext
  15013. cat >>conftest.$ac_ext <<_ACEOF
  15014. /* end confdefs.h. */
  15015. #include <stdio.h>
  15016. int
  15017. main ()
  15018. {
  15019. #ifndef getc_unlocked
  15020. char *p = (char *) getc_unlocked;
  15021. #endif
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. rm -f conftest.$ac_objext
  15027. if { (ac_try="$ac_compile"
  15028. case "(($ac_try" in
  15029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15030. *) ac_try_echo=$ac_try;;
  15031. esac
  15032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15033. (eval "$ac_compile") 2>conftest.er1
  15034. ac_status=$?
  15035. grep -v '^ *+' conftest.er1 >conftest.err
  15036. rm -f conftest.er1
  15037. cat conftest.err >&5
  15038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15039. (exit $ac_status); } && {
  15040. test -z "$ac_cxx_werror_flag" ||
  15041. test ! -s conftest.err
  15042. } && test -s conftest.$ac_objext; then
  15043. ac_cv_have_decl_getc_unlocked=yes
  15044. else
  15045. echo "$as_me: failed program was:" >&5
  15046. sed 's/^/| /' conftest.$ac_ext >&5
  15047. ac_cv_have_decl_getc_unlocked=no
  15048. fi
  15049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15050. fi
  15051. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15052. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15053. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15054. gt_value=1
  15055. else
  15056. gt_value=0
  15057. fi
  15058. cat >>confdefs.h <<_ACEOF
  15059. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15060. _ACEOF
  15061. case $gt_cv_func_printf_posix in
  15062. *yes) HAVE_POSIX_PRINTF=1 ;;
  15063. *) HAVE_POSIX_PRINTF=0 ;;
  15064. esac
  15065. if test "$ac_cv_func_asprintf" = yes; then
  15066. HAVE_ASPRINTF=1
  15067. else
  15068. HAVE_ASPRINTF=0
  15069. fi
  15070. if test "$ac_cv_func_snprintf" = yes; then
  15071. HAVE_SNPRINTF=1
  15072. else
  15073. HAVE_SNPRINTF=0
  15074. fi
  15075. if test "$ac_cv_func_wprintf" = yes; then
  15076. HAVE_WPRINTF=1
  15077. else
  15078. HAVE_WPRINTF=0
  15079. fi
  15080. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15081. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15082. if test "${am_cv_langinfo_codeset+set}" = set; then
  15083. echo $ECHO_N "(cached) $ECHO_C" >&6
  15084. else
  15085. cat >conftest.$ac_ext <<_ACEOF
  15086. /* confdefs.h. */
  15087. _ACEOF
  15088. cat confdefs.h >>conftest.$ac_ext
  15089. cat >>conftest.$ac_ext <<_ACEOF
  15090. /* end confdefs.h. */
  15091. #include <langinfo.h>
  15092. int
  15093. main ()
  15094. {
  15095. char* cs = nl_langinfo(CODESET); return !cs;
  15096. ;
  15097. return 0;
  15098. }
  15099. _ACEOF
  15100. rm -f conftest.$ac_objext conftest$ac_exeext
  15101. if { (ac_try="$ac_link"
  15102. case "(($ac_try" in
  15103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15104. *) ac_try_echo=$ac_try;;
  15105. esac
  15106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15107. (eval "$ac_link") 2>conftest.er1
  15108. ac_status=$?
  15109. grep -v '^ *+' conftest.er1 >conftest.err
  15110. rm -f conftest.er1
  15111. cat conftest.err >&5
  15112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15113. (exit $ac_status); } && {
  15114. test -z "$ac_cxx_werror_flag" ||
  15115. test ! -s conftest.err
  15116. } && test -s conftest$ac_exeext &&
  15117. $as_test_x conftest$ac_exeext; then
  15118. am_cv_langinfo_codeset=yes
  15119. else
  15120. echo "$as_me: failed program was:" >&5
  15121. sed 's/^/| /' conftest.$ac_ext >&5
  15122. am_cv_langinfo_codeset=no
  15123. fi
  15124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15125. conftest$ac_exeext conftest.$ac_ext
  15126. fi
  15127. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15128. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15129. if test $am_cv_langinfo_codeset = yes; then
  15130. cat >>confdefs.h <<\_ACEOF
  15131. #define HAVE_LANGINFO_CODESET 1
  15132. _ACEOF
  15133. fi
  15134. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15135. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15136. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15137. echo $ECHO_N "(cached) $ECHO_C" >&6
  15138. else
  15139. cat >conftest.$ac_ext <<_ACEOF
  15140. /* confdefs.h. */
  15141. _ACEOF
  15142. cat confdefs.h >>conftest.$ac_ext
  15143. cat >>conftest.$ac_ext <<_ACEOF
  15144. /* end confdefs.h. */
  15145. #include <locale.h>
  15146. int
  15147. main ()
  15148. {
  15149. return LC_MESSAGES
  15150. ;
  15151. return 0;
  15152. }
  15153. _ACEOF
  15154. rm -f conftest.$ac_objext conftest$ac_exeext
  15155. if { (ac_try="$ac_link"
  15156. case "(($ac_try" in
  15157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15158. *) ac_try_echo=$ac_try;;
  15159. esac
  15160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15161. (eval "$ac_link") 2>conftest.er1
  15162. ac_status=$?
  15163. grep -v '^ *+' conftest.er1 >conftest.err
  15164. rm -f conftest.er1
  15165. cat conftest.err >&5
  15166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15167. (exit $ac_status); } && {
  15168. test -z "$ac_cxx_werror_flag" ||
  15169. test ! -s conftest.err
  15170. } && test -s conftest$ac_exeext &&
  15171. $as_test_x conftest$ac_exeext; then
  15172. gt_cv_val_LC_MESSAGES=yes
  15173. else
  15174. echo "$as_me: failed program was:" >&5
  15175. sed 's/^/| /' conftest.$ac_ext >&5
  15176. gt_cv_val_LC_MESSAGES=no
  15177. fi
  15178. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15179. conftest$ac_exeext conftest.$ac_ext
  15180. fi
  15181. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15182. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15183. if test $gt_cv_val_LC_MESSAGES = yes; then
  15184. cat >>confdefs.h <<\_ACEOF
  15185. #define HAVE_LC_MESSAGES 1
  15186. _ACEOF
  15187. fi
  15188. if test "$enable_shared" = yes; then
  15189. case "$host_os" in
  15190. mingw* | cygwin*) is_woe32dll=yes ;;
  15191. *) is_woe32dll=no ;;
  15192. esac
  15193. else
  15194. is_woe32dll=no
  15195. fi
  15196. WOE32DLL=$is_woe32dll
  15197. case "$host_os" in
  15198. mingw* | cygwin*) is_woe32=yes ;;
  15199. *) is_woe32=no ;;
  15200. esac
  15201. WOE32=$is_woe32
  15202. if test $WOE32 = yes; then
  15203. if test -n "$ac_tool_prefix"; then
  15204. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15205. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15206. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15207. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15208. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15209. echo $ECHO_N "(cached) $ECHO_C" >&6
  15210. else
  15211. if test -n "$WINDRES"; then
  15212. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15213. else
  15214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15215. for as_dir in $PATH
  15216. do
  15217. IFS=$as_save_IFS
  15218. test -z "$as_dir" && as_dir=.
  15219. for ac_exec_ext in '' $ac_executable_extensions; do
  15220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15221. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15222. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15223. break 2
  15224. fi
  15225. done
  15226. done
  15227. IFS=$as_save_IFS
  15228. fi
  15229. fi
  15230. WINDRES=$ac_cv_prog_WINDRES
  15231. if test -n "$WINDRES"; then
  15232. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15233. echo "${ECHO_T}$WINDRES" >&6; }
  15234. else
  15235. { echo "$as_me:$LINENO: result: no" >&5
  15236. echo "${ECHO_T}no" >&6; }
  15237. fi
  15238. fi
  15239. if test -z "$ac_cv_prog_WINDRES"; then
  15240. ac_ct_WINDRES=$WINDRES
  15241. # Extract the first word of "windres", so it can be a program name with args.
  15242. set dummy windres; ac_word=$2
  15243. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15245. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15246. echo $ECHO_N "(cached) $ECHO_C" >&6
  15247. else
  15248. if test -n "$ac_ct_WINDRES"; then
  15249. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15250. else
  15251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15252. for as_dir in $PATH
  15253. do
  15254. IFS=$as_save_IFS
  15255. test -z "$as_dir" && as_dir=.
  15256. for ac_exec_ext in '' $ac_executable_extensions; do
  15257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15258. ac_cv_prog_ac_ct_WINDRES="windres"
  15259. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15260. break 2
  15261. fi
  15262. done
  15263. done
  15264. IFS=$as_save_IFS
  15265. fi
  15266. fi
  15267. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15268. if test -n "$ac_ct_WINDRES"; then
  15269. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15270. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15271. else
  15272. { echo "$as_me:$LINENO: result: no" >&5
  15273. echo "${ECHO_T}no" >&6; }
  15274. fi
  15275. if test "x$ac_ct_WINDRES" = x; then
  15276. WINDRES=""
  15277. else
  15278. case $cross_compiling:$ac_tool_warned in
  15279. yes:)
  15280. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15281. whose name does not start with the host triplet. If you think this
  15282. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15283. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15284. whose name does not start with the host triplet. If you think this
  15285. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15286. ac_tool_warned=yes ;;
  15287. esac
  15288. WINDRES=$ac_ct_WINDRES
  15289. fi
  15290. else
  15291. WINDRES="$ac_cv_prog_WINDRES"
  15292. fi
  15293. fi
  15294. case "$host_os" in
  15295. hpux*) LTLIBC="" ;;
  15296. *) LTLIBC="-lc" ;;
  15297. esac
  15298. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15299. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15300. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15301. echo $ECHO_N "(cached) $ECHO_C" >&6
  15302. else
  15303. gt_save_LIBS="$LIBS"
  15304. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15305. cat >conftest.$ac_ext <<_ACEOF
  15306. /* confdefs.h. */
  15307. _ACEOF
  15308. cat confdefs.h >>conftest.$ac_ext
  15309. cat >>conftest.$ac_ext <<_ACEOF
  15310. /* end confdefs.h. */
  15311. #include <CoreFoundation/CFPreferences.h>
  15312. int
  15313. main ()
  15314. {
  15315. CFPreferencesCopyAppValue(NULL, NULL)
  15316. ;
  15317. return 0;
  15318. }
  15319. _ACEOF
  15320. rm -f conftest.$ac_objext conftest$ac_exeext
  15321. if { (ac_try="$ac_link"
  15322. case "(($ac_try" in
  15323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15324. *) ac_try_echo=$ac_try;;
  15325. esac
  15326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15327. (eval "$ac_link") 2>conftest.er1
  15328. ac_status=$?
  15329. grep -v '^ *+' conftest.er1 >conftest.err
  15330. rm -f conftest.er1
  15331. cat conftest.err >&5
  15332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15333. (exit $ac_status); } && {
  15334. test -z "$ac_cxx_werror_flag" ||
  15335. test ! -s conftest.err
  15336. } && test -s conftest$ac_exeext &&
  15337. $as_test_x conftest$ac_exeext; then
  15338. gt_cv_func_CFPreferencesCopyAppValue=yes
  15339. else
  15340. echo "$as_me: failed program was:" >&5
  15341. sed 's/^/| /' conftest.$ac_ext >&5
  15342. gt_cv_func_CFPreferencesCopyAppValue=no
  15343. fi
  15344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15345. conftest$ac_exeext conftest.$ac_ext
  15346. LIBS="$gt_save_LIBS"
  15347. fi
  15348. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15349. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15350. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15351. cat >>confdefs.h <<\_ACEOF
  15352. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15353. _ACEOF
  15354. fi
  15355. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15356. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15357. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15358. echo $ECHO_N "(cached) $ECHO_C" >&6
  15359. else
  15360. gt_save_LIBS="$LIBS"
  15361. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15362. cat >conftest.$ac_ext <<_ACEOF
  15363. /* confdefs.h. */
  15364. _ACEOF
  15365. cat confdefs.h >>conftest.$ac_ext
  15366. cat >>conftest.$ac_ext <<_ACEOF
  15367. /* end confdefs.h. */
  15368. #include <CoreFoundation/CFLocale.h>
  15369. int
  15370. main ()
  15371. {
  15372. CFLocaleCopyCurrent();
  15373. ;
  15374. return 0;
  15375. }
  15376. _ACEOF
  15377. rm -f conftest.$ac_objext conftest$ac_exeext
  15378. if { (ac_try="$ac_link"
  15379. case "(($ac_try" in
  15380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15381. *) ac_try_echo=$ac_try;;
  15382. esac
  15383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15384. (eval "$ac_link") 2>conftest.er1
  15385. ac_status=$?
  15386. grep -v '^ *+' conftest.er1 >conftest.err
  15387. rm -f conftest.er1
  15388. cat conftest.err >&5
  15389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15390. (exit $ac_status); } && {
  15391. test -z "$ac_cxx_werror_flag" ||
  15392. test ! -s conftest.err
  15393. } && test -s conftest$ac_exeext &&
  15394. $as_test_x conftest$ac_exeext; then
  15395. gt_cv_func_CFLocaleCopyCurrent=yes
  15396. else
  15397. echo "$as_me: failed program was:" >&5
  15398. sed 's/^/| /' conftest.$ac_ext >&5
  15399. gt_cv_func_CFLocaleCopyCurrent=no
  15400. fi
  15401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15402. conftest$ac_exeext conftest.$ac_ext
  15403. LIBS="$gt_save_LIBS"
  15404. fi
  15405. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15406. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15407. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15408. cat >>confdefs.h <<\_ACEOF
  15409. #define HAVE_CFLOCALECOPYCURRENT 1
  15410. _ACEOF
  15411. fi
  15412. INTL_MACOSX_LIBS=
  15413. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15414. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15415. fi
  15416. BUILD_INCLUDED_LIBINTL=no
  15417. USE_INCLUDED_LIBINTL=no
  15418. LIBINTL=
  15419. LTLIBINTL=
  15420. POSUB=
  15421. case " $gt_needs " in
  15422. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15423. *" need-ngettext "*) gt_api_version=2 ;;
  15424. *) gt_api_version=1 ;;
  15425. esac
  15426. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15427. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15428. if test "$USE_NLS" = "yes"; then
  15429. gt_use_preinstalled_gnugettext=no
  15430. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15431. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15432. # Check whether --with-included-gettext was given.
  15433. if test "${with_included_gettext+set}" = set; then
  15434. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15435. else
  15436. nls_cv_force_use_gnu_gettext=no
  15437. fi
  15438. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15439. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15440. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15441. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15442. if test $gt_api_version -ge 3; then
  15443. gt_revision_test_code='
  15444. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15445. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15446. #endif
  15447. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15448. '
  15449. else
  15450. gt_revision_test_code=
  15451. fi
  15452. if test $gt_api_version -ge 2; then
  15453. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15454. else
  15455. gt_expression_test_code=
  15456. fi
  15457. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15458. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15459. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15460. echo $ECHO_N "(cached) $ECHO_C" >&6
  15461. else
  15462. cat >conftest.$ac_ext <<_ACEOF
  15463. /* confdefs.h. */
  15464. _ACEOF
  15465. cat confdefs.h >>conftest.$ac_ext
  15466. cat >>conftest.$ac_ext <<_ACEOF
  15467. /* end confdefs.h. */
  15468. #include <libintl.h>
  15469. $gt_revision_test_code
  15470. extern int _nl_msg_cat_cntr;
  15471. extern int *_nl_domain_bindings;
  15472. int
  15473. main ()
  15474. {
  15475. bindtextdomain ("", "");
  15476. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15477. ;
  15478. return 0;
  15479. }
  15480. _ACEOF
  15481. rm -f conftest.$ac_objext conftest$ac_exeext
  15482. if { (ac_try="$ac_link"
  15483. case "(($ac_try" in
  15484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15485. *) ac_try_echo=$ac_try;;
  15486. esac
  15487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15488. (eval "$ac_link") 2>conftest.er1
  15489. ac_status=$?
  15490. grep -v '^ *+' conftest.er1 >conftest.err
  15491. rm -f conftest.er1
  15492. cat conftest.err >&5
  15493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15494. (exit $ac_status); } && {
  15495. test -z "$ac_cxx_werror_flag" ||
  15496. test ! -s conftest.err
  15497. } && test -s conftest$ac_exeext &&
  15498. $as_test_x conftest$ac_exeext; then
  15499. eval "$gt_func_gnugettext_libc=yes"
  15500. else
  15501. echo "$as_me: failed program was:" >&5
  15502. sed 's/^/| /' conftest.$ac_ext >&5
  15503. eval "$gt_func_gnugettext_libc=no"
  15504. fi
  15505. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15506. conftest$ac_exeext conftest.$ac_ext
  15507. fi
  15508. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15509. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15510. echo "${ECHO_T}$ac_res" >&6; }
  15511. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15512. use_additional=yes
  15513. acl_save_prefix="$prefix"
  15514. prefix="$acl_final_prefix"
  15515. acl_save_exec_prefix="$exec_prefix"
  15516. exec_prefix="$acl_final_exec_prefix"
  15517. eval additional_includedir=\"$includedir\"
  15518. eval additional_libdir=\"$libdir\"
  15519. exec_prefix="$acl_save_exec_prefix"
  15520. prefix="$acl_save_prefix"
  15521. # Check whether --with-libintl-prefix was given.
  15522. if test "${with_libintl_prefix+set}" = set; then
  15523. withval=$with_libintl_prefix;
  15524. if test "X$withval" = "Xno"; then
  15525. use_additional=no
  15526. else
  15527. if test "X$withval" = "X"; then
  15528. acl_save_prefix="$prefix"
  15529. prefix="$acl_final_prefix"
  15530. acl_save_exec_prefix="$exec_prefix"
  15531. exec_prefix="$acl_final_exec_prefix"
  15532. eval additional_includedir=\"$includedir\"
  15533. eval additional_libdir=\"$libdir\"
  15534. exec_prefix="$acl_save_exec_prefix"
  15535. prefix="$acl_save_prefix"
  15536. else
  15537. additional_includedir="$withval/include"
  15538. additional_libdir="$withval/$acl_libdirstem"
  15539. fi
  15540. fi
  15541. fi
  15542. LIBINTL=
  15543. LTLIBINTL=
  15544. INCINTL=
  15545. LIBINTL_PREFIX=
  15546. rpathdirs=
  15547. ltrpathdirs=
  15548. names_already_handled=
  15549. names_next_round='intl '
  15550. while test -n "$names_next_round"; do
  15551. names_this_round="$names_next_round"
  15552. names_next_round=
  15553. for name in $names_this_round; do
  15554. already_handled=
  15555. for n in $names_already_handled; do
  15556. if test "$n" = "$name"; then
  15557. already_handled=yes
  15558. break
  15559. fi
  15560. done
  15561. if test -z "$already_handled"; then
  15562. names_already_handled="$names_already_handled $name"
  15563. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15564. eval value=\"\$HAVE_LIB$uppername\"
  15565. if test -n "$value"; then
  15566. if test "$value" = yes; then
  15567. eval value=\"\$LIB$uppername\"
  15568. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15569. eval value=\"\$LTLIB$uppername\"
  15570. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15571. else
  15572. :
  15573. fi
  15574. else
  15575. found_dir=
  15576. found_la=
  15577. found_so=
  15578. found_a=
  15579. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15580. if test -n "$acl_shlibext"; then
  15581. shrext=".$acl_shlibext" # typically: shrext=.so
  15582. else
  15583. shrext=
  15584. fi
  15585. if test $use_additional = yes; then
  15586. dir="$additional_libdir"
  15587. if test -n "$acl_shlibext"; then
  15588. if test -f "$dir/$libname$shrext"; then
  15589. found_dir="$dir"
  15590. found_so="$dir/$libname$shrext"
  15591. else
  15592. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15593. ver=`(cd "$dir" && \
  15594. for f in "$libname$shrext".*; do echo "$f"; done \
  15595. | sed -e "s,^$libname$shrext\\\\.,," \
  15596. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15597. | sed 1q ) 2>/dev/null`
  15598. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15599. found_dir="$dir"
  15600. found_so="$dir/$libname$shrext.$ver"
  15601. fi
  15602. else
  15603. eval library_names=\"$acl_library_names_spec\"
  15604. for f in $library_names; do
  15605. if test -f "$dir/$f"; then
  15606. found_dir="$dir"
  15607. found_so="$dir/$f"
  15608. break
  15609. fi
  15610. done
  15611. fi
  15612. fi
  15613. fi
  15614. if test "X$found_dir" = "X"; then
  15615. if test -f "$dir/$libname.$acl_libext"; then
  15616. found_dir="$dir"
  15617. found_a="$dir/$libname.$acl_libext"
  15618. fi
  15619. fi
  15620. if test "X$found_dir" != "X"; then
  15621. if test -f "$dir/$libname.la"; then
  15622. found_la="$dir/$libname.la"
  15623. fi
  15624. fi
  15625. fi
  15626. if test "X$found_dir" = "X"; then
  15627. for x in $LDFLAGS $LTLIBINTL; do
  15628. acl_save_prefix="$prefix"
  15629. prefix="$acl_final_prefix"
  15630. acl_save_exec_prefix="$exec_prefix"
  15631. exec_prefix="$acl_final_exec_prefix"
  15632. eval x=\"$x\"
  15633. exec_prefix="$acl_save_exec_prefix"
  15634. prefix="$acl_save_prefix"
  15635. case "$x" in
  15636. -L*)
  15637. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15638. if test -n "$acl_shlibext"; then
  15639. if test -f "$dir/$libname$shrext"; then
  15640. found_dir="$dir"
  15641. found_so="$dir/$libname$shrext"
  15642. else
  15643. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15644. ver=`(cd "$dir" && \
  15645. for f in "$libname$shrext".*; do echo "$f"; done \
  15646. | sed -e "s,^$libname$shrext\\\\.,," \
  15647. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15648. | sed 1q ) 2>/dev/null`
  15649. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15650. found_dir="$dir"
  15651. found_so="$dir/$libname$shrext.$ver"
  15652. fi
  15653. else
  15654. eval library_names=\"$acl_library_names_spec\"
  15655. for f in $library_names; do
  15656. if test -f "$dir/$f"; then
  15657. found_dir="$dir"
  15658. found_so="$dir/$f"
  15659. break
  15660. fi
  15661. done
  15662. fi
  15663. fi
  15664. fi
  15665. if test "X$found_dir" = "X"; then
  15666. if test -f "$dir/$libname.$acl_libext"; then
  15667. found_dir="$dir"
  15668. found_a="$dir/$libname.$acl_libext"
  15669. fi
  15670. fi
  15671. if test "X$found_dir" != "X"; then
  15672. if test -f "$dir/$libname.la"; then
  15673. found_la="$dir/$libname.la"
  15674. fi
  15675. fi
  15676. ;;
  15677. esac
  15678. if test "X$found_dir" != "X"; then
  15679. break
  15680. fi
  15681. done
  15682. fi
  15683. if test "X$found_dir" != "X"; then
  15684. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15685. if test "X$found_so" != "X"; then
  15686. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15687. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15688. else
  15689. haveit=
  15690. for x in $ltrpathdirs; do
  15691. if test "X$x" = "X$found_dir"; then
  15692. haveit=yes
  15693. break
  15694. fi
  15695. done
  15696. if test -z "$haveit"; then
  15697. ltrpathdirs="$ltrpathdirs $found_dir"
  15698. fi
  15699. if test "$acl_hardcode_direct" = yes; then
  15700. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15701. else
  15702. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15703. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15704. haveit=
  15705. for x in $rpathdirs; do
  15706. if test "X$x" = "X$found_dir"; then
  15707. haveit=yes
  15708. break
  15709. fi
  15710. done
  15711. if test -z "$haveit"; then
  15712. rpathdirs="$rpathdirs $found_dir"
  15713. fi
  15714. else
  15715. haveit=
  15716. for x in $LDFLAGS $LIBINTL; do
  15717. acl_save_prefix="$prefix"
  15718. prefix="$acl_final_prefix"
  15719. acl_save_exec_prefix="$exec_prefix"
  15720. exec_prefix="$acl_final_exec_prefix"
  15721. eval x=\"$x\"
  15722. exec_prefix="$acl_save_exec_prefix"
  15723. prefix="$acl_save_prefix"
  15724. if test "X$x" = "X-L$found_dir"; then
  15725. haveit=yes
  15726. break
  15727. fi
  15728. done
  15729. if test -z "$haveit"; then
  15730. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15731. fi
  15732. if test "$acl_hardcode_minus_L" != no; then
  15733. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15734. else
  15735. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15736. fi
  15737. fi
  15738. fi
  15739. fi
  15740. else
  15741. if test "X$found_a" != "X"; then
  15742. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15743. else
  15744. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15745. fi
  15746. fi
  15747. additional_includedir=
  15748. case "$found_dir" in
  15749. */$acl_libdirstem | */$acl_libdirstem/)
  15750. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15751. LIBINTL_PREFIX="$basedir"
  15752. additional_includedir="$basedir/include"
  15753. ;;
  15754. esac
  15755. if test "X$additional_includedir" != "X"; then
  15756. if test "X$additional_includedir" != "X/usr/include"; then
  15757. haveit=
  15758. if test "X$additional_includedir" = "X/usr/local/include"; then
  15759. if test -n "$GCC"; then
  15760. case $host_os in
  15761. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15762. esac
  15763. fi
  15764. fi
  15765. if test -z "$haveit"; then
  15766. for x in $CPPFLAGS $INCINTL; do
  15767. acl_save_prefix="$prefix"
  15768. prefix="$acl_final_prefix"
  15769. acl_save_exec_prefix="$exec_prefix"
  15770. exec_prefix="$acl_final_exec_prefix"
  15771. eval x=\"$x\"
  15772. exec_prefix="$acl_save_exec_prefix"
  15773. prefix="$acl_save_prefix"
  15774. if test "X$x" = "X-I$additional_includedir"; then
  15775. haveit=yes
  15776. break
  15777. fi
  15778. done
  15779. if test -z "$haveit"; then
  15780. if test -d "$additional_includedir"; then
  15781. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15782. fi
  15783. fi
  15784. fi
  15785. fi
  15786. fi
  15787. if test -n "$found_la"; then
  15788. save_libdir="$libdir"
  15789. case "$found_la" in
  15790. */* | *\\*) . "$found_la" ;;
  15791. *) . "./$found_la" ;;
  15792. esac
  15793. libdir="$save_libdir"
  15794. for dep in $dependency_libs; do
  15795. case "$dep" in
  15796. -L*)
  15797. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15798. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15799. haveit=
  15800. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15801. if test -n "$GCC"; then
  15802. case $host_os in
  15803. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15804. esac
  15805. fi
  15806. fi
  15807. if test -z "$haveit"; then
  15808. haveit=
  15809. for x in $LDFLAGS $LIBINTL; do
  15810. acl_save_prefix="$prefix"
  15811. prefix="$acl_final_prefix"
  15812. acl_save_exec_prefix="$exec_prefix"
  15813. exec_prefix="$acl_final_exec_prefix"
  15814. eval x=\"$x\"
  15815. exec_prefix="$acl_save_exec_prefix"
  15816. prefix="$acl_save_prefix"
  15817. if test "X$x" = "X-L$additional_libdir"; then
  15818. haveit=yes
  15819. break
  15820. fi
  15821. done
  15822. if test -z "$haveit"; then
  15823. if test -d "$additional_libdir"; then
  15824. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15825. fi
  15826. fi
  15827. haveit=
  15828. for x in $LDFLAGS $LTLIBINTL; do
  15829. acl_save_prefix="$prefix"
  15830. prefix="$acl_final_prefix"
  15831. acl_save_exec_prefix="$exec_prefix"
  15832. exec_prefix="$acl_final_exec_prefix"
  15833. eval x=\"$x\"
  15834. exec_prefix="$acl_save_exec_prefix"
  15835. prefix="$acl_save_prefix"
  15836. if test "X$x" = "X-L$additional_libdir"; then
  15837. haveit=yes
  15838. break
  15839. fi
  15840. done
  15841. if test -z "$haveit"; then
  15842. if test -d "$additional_libdir"; then
  15843. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15844. fi
  15845. fi
  15846. fi
  15847. fi
  15848. ;;
  15849. -R*)
  15850. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15851. if test "$enable_rpath" != no; then
  15852. haveit=
  15853. for x in $rpathdirs; do
  15854. if test "X$x" = "X$dir"; then
  15855. haveit=yes
  15856. break
  15857. fi
  15858. done
  15859. if test -z "$haveit"; then
  15860. rpathdirs="$rpathdirs $dir"
  15861. fi
  15862. haveit=
  15863. for x in $ltrpathdirs; do
  15864. if test "X$x" = "X$dir"; then
  15865. haveit=yes
  15866. break
  15867. fi
  15868. done
  15869. if test -z "$haveit"; then
  15870. ltrpathdirs="$ltrpathdirs $dir"
  15871. fi
  15872. fi
  15873. ;;
  15874. -l*)
  15875. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15876. ;;
  15877. *.la)
  15878. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15879. ;;
  15880. *)
  15881. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15882. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15883. ;;
  15884. esac
  15885. done
  15886. fi
  15887. else
  15888. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15889. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15890. fi
  15891. fi
  15892. fi
  15893. done
  15894. done
  15895. if test "X$rpathdirs" != "X"; then
  15896. if test -n "$acl_hardcode_libdir_separator"; then
  15897. alldirs=
  15898. for found_dir in $rpathdirs; do
  15899. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15900. done
  15901. acl_save_libdir="$libdir"
  15902. libdir="$alldirs"
  15903. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15904. libdir="$acl_save_libdir"
  15905. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15906. else
  15907. for found_dir in $rpathdirs; do
  15908. acl_save_libdir="$libdir"
  15909. libdir="$found_dir"
  15910. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15911. libdir="$acl_save_libdir"
  15912. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15913. done
  15914. fi
  15915. fi
  15916. if test "X$ltrpathdirs" != "X"; then
  15917. for found_dir in $ltrpathdirs; do
  15918. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15919. done
  15920. fi
  15921. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15922. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15923. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15924. echo $ECHO_N "(cached) $ECHO_C" >&6
  15925. else
  15926. gt_save_CPPFLAGS="$CPPFLAGS"
  15927. CPPFLAGS="$CPPFLAGS $INCINTL"
  15928. gt_save_LIBS="$LIBS"
  15929. LIBS="$LIBS $LIBINTL"
  15930. cat >conftest.$ac_ext <<_ACEOF
  15931. /* confdefs.h. */
  15932. _ACEOF
  15933. cat confdefs.h >>conftest.$ac_ext
  15934. cat >>conftest.$ac_ext <<_ACEOF
  15935. /* end confdefs.h. */
  15936. #include <libintl.h>
  15937. $gt_revision_test_code
  15938. extern int _nl_msg_cat_cntr;
  15939. extern
  15940. #ifdef __cplusplus
  15941. "C"
  15942. #endif
  15943. const char *_nl_expand_alias (const char *);
  15944. int
  15945. main ()
  15946. {
  15947. bindtextdomain ("", "");
  15948. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. rm -f conftest.$ac_objext conftest$ac_exeext
  15954. if { (ac_try="$ac_link"
  15955. case "(($ac_try" in
  15956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15957. *) ac_try_echo=$ac_try;;
  15958. esac
  15959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15960. (eval "$ac_link") 2>conftest.er1
  15961. ac_status=$?
  15962. grep -v '^ *+' conftest.er1 >conftest.err
  15963. rm -f conftest.er1
  15964. cat conftest.err >&5
  15965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15966. (exit $ac_status); } && {
  15967. test -z "$ac_cxx_werror_flag" ||
  15968. test ! -s conftest.err
  15969. } && test -s conftest$ac_exeext &&
  15970. $as_test_x conftest$ac_exeext; then
  15971. eval "$gt_func_gnugettext_libintl=yes"
  15972. else
  15973. echo "$as_me: failed program was:" >&5
  15974. sed 's/^/| /' conftest.$ac_ext >&5
  15975. eval "$gt_func_gnugettext_libintl=no"
  15976. fi
  15977. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15978. conftest$ac_exeext conftest.$ac_ext
  15979. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15980. LIBS="$LIBS $LIBICONV"
  15981. cat >conftest.$ac_ext <<_ACEOF
  15982. /* confdefs.h. */
  15983. _ACEOF
  15984. cat confdefs.h >>conftest.$ac_ext
  15985. cat >>conftest.$ac_ext <<_ACEOF
  15986. /* end confdefs.h. */
  15987. #include <libintl.h>
  15988. $gt_revision_test_code
  15989. extern int _nl_msg_cat_cntr;
  15990. extern
  15991. #ifdef __cplusplus
  15992. "C"
  15993. #endif
  15994. const char *_nl_expand_alias (const char *);
  15995. int
  15996. main ()
  15997. {
  15998. bindtextdomain ("", "");
  15999. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16000. ;
  16001. return 0;
  16002. }
  16003. _ACEOF
  16004. rm -f conftest.$ac_objext conftest$ac_exeext
  16005. if { (ac_try="$ac_link"
  16006. case "(($ac_try" in
  16007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16008. *) ac_try_echo=$ac_try;;
  16009. esac
  16010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16011. (eval "$ac_link") 2>conftest.er1
  16012. ac_status=$?
  16013. grep -v '^ *+' conftest.er1 >conftest.err
  16014. rm -f conftest.er1
  16015. cat conftest.err >&5
  16016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16017. (exit $ac_status); } && {
  16018. test -z "$ac_cxx_werror_flag" ||
  16019. test ! -s conftest.err
  16020. } && test -s conftest$ac_exeext &&
  16021. $as_test_x conftest$ac_exeext; then
  16022. LIBINTL="$LIBINTL $LIBICONV"
  16023. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16024. eval "$gt_func_gnugettext_libintl=yes"
  16025. else
  16026. echo "$as_me: failed program was:" >&5
  16027. sed 's/^/| /' conftest.$ac_ext >&5
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16030. conftest$ac_exeext conftest.$ac_ext
  16031. fi
  16032. CPPFLAGS="$gt_save_CPPFLAGS"
  16033. LIBS="$gt_save_LIBS"
  16034. fi
  16035. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16036. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16037. echo "${ECHO_T}$ac_res" >&6; }
  16038. fi
  16039. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16040. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16041. && test "$PACKAGE" != gettext-runtime \
  16042. && test "$PACKAGE" != gettext-tools; }; then
  16043. gt_use_preinstalled_gnugettext=yes
  16044. else
  16045. LIBINTL=
  16046. LTLIBINTL=
  16047. INCINTL=
  16048. fi
  16049. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16050. nls_cv_use_gnu_gettext=yes
  16051. fi
  16052. fi
  16053. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16054. BUILD_INCLUDED_LIBINTL=yes
  16055. USE_INCLUDED_LIBINTL=yes
  16056. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16057. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16058. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16059. fi
  16060. CATOBJEXT=
  16061. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16062. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16063. CATOBJEXT=.gmo
  16064. fi
  16065. if test -n "$INTL_MACOSX_LIBS"; then
  16066. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16067. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16068. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16069. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16070. fi
  16071. fi
  16072. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16073. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16074. cat >>confdefs.h <<\_ACEOF
  16075. #define ENABLE_NLS 1
  16076. _ACEOF
  16077. else
  16078. USE_NLS=no
  16079. fi
  16080. fi
  16081. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16082. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16083. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16084. echo "${ECHO_T}$USE_NLS" >&6; }
  16085. if test "$USE_NLS" = "yes"; then
  16086. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16087. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16088. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16089. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16090. gt_source="external libintl"
  16091. else
  16092. gt_source="libc"
  16093. fi
  16094. else
  16095. gt_source="included intl directory"
  16096. fi
  16097. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16098. echo "${ECHO_T}$gt_source" >&6; }
  16099. fi
  16100. if test "$USE_NLS" = "yes"; then
  16101. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16102. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16103. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16104. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16105. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16106. echo "${ECHO_T}$LIBINTL" >&6; }
  16107. for element in $INCINTL; do
  16108. haveit=
  16109. for x in $CPPFLAGS; do
  16110. acl_save_prefix="$prefix"
  16111. prefix="$acl_final_prefix"
  16112. acl_save_exec_prefix="$exec_prefix"
  16113. exec_prefix="$acl_final_exec_prefix"
  16114. eval x=\"$x\"
  16115. exec_prefix="$acl_save_exec_prefix"
  16116. prefix="$acl_save_prefix"
  16117. if test "X$x" = "X$element"; then
  16118. haveit=yes
  16119. break
  16120. fi
  16121. done
  16122. if test -z "$haveit"; then
  16123. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16124. fi
  16125. done
  16126. fi
  16127. cat >>confdefs.h <<\_ACEOF
  16128. #define HAVE_GETTEXT 1
  16129. _ACEOF
  16130. cat >>confdefs.h <<\_ACEOF
  16131. #define HAVE_DCGETTEXT 1
  16132. _ACEOF
  16133. fi
  16134. POSUB=po
  16135. fi
  16136. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16137. BUILD_INCLUDED_LIBINTL=yes
  16138. fi
  16139. nls_cv_header_intl=
  16140. nls_cv_header_libgt=
  16141. DATADIRNAME=share
  16142. INSTOBJEXT=.mo
  16143. GENCAT=gencat
  16144. INTLOBJS=
  16145. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16146. INTLOBJS="\$(GETTOBJS)"
  16147. fi
  16148. INTL_LIBTOOL_SUFFIX_PREFIX=
  16149. INTLLIBS="$LIBINTL"
  16150. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16151. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16152. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16153. echo $ECHO_N "(cached) $ECHO_C" >&6
  16154. else
  16155. cat >conftest.$ac_ext <<_ACEOF
  16156. /* confdefs.h. */
  16157. _ACEOF
  16158. cat confdefs.h >>conftest.$ac_ext
  16159. cat >>conftest.$ac_ext <<_ACEOF
  16160. /* end confdefs.h. */
  16161. #include <error.h>
  16162. int
  16163. main ()
  16164. {
  16165. error_at_line (0, 0, "", 0, "an error occurred");
  16166. ;
  16167. return 0;
  16168. }
  16169. _ACEOF
  16170. rm -f conftest.$ac_objext conftest$ac_exeext
  16171. if { (ac_try="$ac_link"
  16172. case "(($ac_try" in
  16173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16174. *) ac_try_echo=$ac_try;;
  16175. esac
  16176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16177. (eval "$ac_link") 2>conftest.er1
  16178. ac_status=$?
  16179. grep -v '^ *+' conftest.er1 >conftest.err
  16180. rm -f conftest.er1
  16181. cat conftest.err >&5
  16182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16183. (exit $ac_status); } && {
  16184. test -z "$ac_cxx_werror_flag" ||
  16185. test ! -s conftest.err
  16186. } && test -s conftest$ac_exeext &&
  16187. $as_test_x conftest$ac_exeext; then
  16188. ac_cv_lib_error_at_line=yes
  16189. else
  16190. echo "$as_me: failed program was:" >&5
  16191. sed 's/^/| /' conftest.$ac_ext >&5
  16192. ac_cv_lib_error_at_line=no
  16193. fi
  16194. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16195. conftest$ac_exeext conftest.$ac_ext
  16196. fi
  16197. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16198. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16199. if test $ac_cv_lib_error_at_line = no; then
  16200. case " $LIBOBJS " in
  16201. *" error.$ac_objext "* ) ;;
  16202. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16203. ;;
  16204. esac
  16205. fi
  16206. if test $ac_cv_c_compiler_gnu = yes; then
  16207. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16208. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16209. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16210. echo $ECHO_N "(cached) $ECHO_C" >&6
  16211. else
  16212. ac_pattern="Autoconf.*'x'"
  16213. cat >conftest.$ac_ext <<_ACEOF
  16214. /* confdefs.h. */
  16215. _ACEOF
  16216. cat confdefs.h >>conftest.$ac_ext
  16217. cat >>conftest.$ac_ext <<_ACEOF
  16218. /* end confdefs.h. */
  16219. #include <sgtty.h>
  16220. Autoconf TIOCGETP
  16221. _ACEOF
  16222. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16223. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16224. ac_cv_prog_gcc_traditional=yes
  16225. else
  16226. ac_cv_prog_gcc_traditional=no
  16227. fi
  16228. rm -f conftest*
  16229. if test $ac_cv_prog_gcc_traditional = no; then
  16230. cat >conftest.$ac_ext <<_ACEOF
  16231. /* confdefs.h. */
  16232. _ACEOF
  16233. cat confdefs.h >>conftest.$ac_ext
  16234. cat >>conftest.$ac_ext <<_ACEOF
  16235. /* end confdefs.h. */
  16236. #include <termio.h>
  16237. Autoconf TCGETA
  16238. _ACEOF
  16239. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16240. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16241. ac_cv_prog_gcc_traditional=yes
  16242. fi
  16243. rm -f conftest*
  16244. fi
  16245. fi
  16246. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16247. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16248. if test $ac_cv_prog_gcc_traditional = yes; then
  16249. CC="$CC -traditional"
  16250. fi
  16251. fi
  16252. case "$target" in
  16253. *mingw*)
  16254. ;;
  16255. *)
  16256. for ac_header in stdlib.h
  16257. do
  16258. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16259. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16260. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16261. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16262. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16263. echo $ECHO_N "(cached) $ECHO_C" >&6
  16264. fi
  16265. ac_res=`eval echo '${'$as_ac_Header'}'`
  16266. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16267. echo "${ECHO_T}$ac_res" >&6; }
  16268. else
  16269. # Is the header compilable?
  16270. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16271. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16272. cat >conftest.$ac_ext <<_ACEOF
  16273. /* confdefs.h. */
  16274. _ACEOF
  16275. cat confdefs.h >>conftest.$ac_ext
  16276. cat >>conftest.$ac_ext <<_ACEOF
  16277. /* end confdefs.h. */
  16278. $ac_includes_default
  16279. #include <$ac_header>
  16280. _ACEOF
  16281. rm -f conftest.$ac_objext
  16282. if { (ac_try="$ac_compile"
  16283. case "(($ac_try" in
  16284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16285. *) ac_try_echo=$ac_try;;
  16286. esac
  16287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16288. (eval "$ac_compile") 2>conftest.er1
  16289. ac_status=$?
  16290. grep -v '^ *+' conftest.er1 >conftest.err
  16291. rm -f conftest.er1
  16292. cat conftest.err >&5
  16293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16294. (exit $ac_status); } && {
  16295. test -z "$ac_cxx_werror_flag" ||
  16296. test ! -s conftest.err
  16297. } && test -s conftest.$ac_objext; then
  16298. ac_header_compiler=yes
  16299. else
  16300. echo "$as_me: failed program was:" >&5
  16301. sed 's/^/| /' conftest.$ac_ext >&5
  16302. ac_header_compiler=no
  16303. fi
  16304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16305. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16306. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16307. # Is the header present?
  16308. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16309. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16310. cat >conftest.$ac_ext <<_ACEOF
  16311. /* confdefs.h. */
  16312. _ACEOF
  16313. cat confdefs.h >>conftest.$ac_ext
  16314. cat >>conftest.$ac_ext <<_ACEOF
  16315. /* end confdefs.h. */
  16316. #include <$ac_header>
  16317. _ACEOF
  16318. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16319. case "(($ac_try" in
  16320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16321. *) ac_try_echo=$ac_try;;
  16322. esac
  16323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16324. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16325. ac_status=$?
  16326. grep -v '^ *+' conftest.er1 >conftest.err
  16327. rm -f conftest.er1
  16328. cat conftest.err >&5
  16329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16330. (exit $ac_status); } >/dev/null && {
  16331. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16332. test ! -s conftest.err
  16333. }; then
  16334. ac_header_preproc=yes
  16335. else
  16336. echo "$as_me: failed program was:" >&5
  16337. sed 's/^/| /' conftest.$ac_ext >&5
  16338. ac_header_preproc=no
  16339. fi
  16340. rm -f conftest.err conftest.$ac_ext
  16341. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16342. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16343. # So? What about this header?
  16344. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16345. yes:no: )
  16346. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16347. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16348. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16349. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16350. ac_header_preproc=yes
  16351. ;;
  16352. no:yes:* )
  16353. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16354. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16355. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16356. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16357. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16358. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16359. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16360. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16361. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16362. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16363. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16364. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16365. ( cat <<\_ASBOX
  16366. ## ----------------------------------------------- ##
  16367. ## Report this to t-tujikawa@users.sourceforge.net ##
  16368. ## ----------------------------------------------- ##
  16369. _ASBOX
  16370. ) | sed "s/^/$as_me: WARNING: /" >&2
  16371. ;;
  16372. esac
  16373. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16374. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16376. echo $ECHO_N "(cached) $ECHO_C" >&6
  16377. else
  16378. eval "$as_ac_Header=\$ac_header_preproc"
  16379. fi
  16380. ac_res=`eval echo '${'$as_ac_Header'}'`
  16381. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16382. echo "${ECHO_T}$ac_res" >&6; }
  16383. fi
  16384. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16385. cat >>confdefs.h <<_ACEOF
  16386. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16387. _ACEOF
  16388. fi
  16389. done
  16390. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16391. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16392. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16393. echo $ECHO_N "(cached) $ECHO_C" >&6
  16394. else
  16395. if test "$cross_compiling" = yes; then
  16396. ac_cv_func_malloc_0_nonnull=no
  16397. else
  16398. cat >conftest.$ac_ext <<_ACEOF
  16399. /* confdefs.h. */
  16400. _ACEOF
  16401. cat confdefs.h >>conftest.$ac_ext
  16402. cat >>conftest.$ac_ext <<_ACEOF
  16403. /* end confdefs.h. */
  16404. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16405. # include <stdlib.h>
  16406. #else
  16407. char *malloc ();
  16408. #endif
  16409. int
  16410. main ()
  16411. {
  16412. return ! malloc (0);
  16413. ;
  16414. return 0;
  16415. }
  16416. _ACEOF
  16417. rm -f conftest$ac_exeext
  16418. if { (ac_try="$ac_link"
  16419. case "(($ac_try" in
  16420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16421. *) ac_try_echo=$ac_try;;
  16422. esac
  16423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16424. (eval "$ac_link") 2>&5
  16425. ac_status=$?
  16426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16428. { (case "(($ac_try" in
  16429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16430. *) ac_try_echo=$ac_try;;
  16431. esac
  16432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16433. (eval "$ac_try") 2>&5
  16434. ac_status=$?
  16435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16436. (exit $ac_status); }; }; then
  16437. ac_cv_func_malloc_0_nonnull=yes
  16438. else
  16439. echo "$as_me: program exited with status $ac_status" >&5
  16440. echo "$as_me: failed program was:" >&5
  16441. sed 's/^/| /' conftest.$ac_ext >&5
  16442. ( exit $ac_status )
  16443. ac_cv_func_malloc_0_nonnull=no
  16444. fi
  16445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16446. fi
  16447. fi
  16448. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16449. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16450. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16451. cat >>confdefs.h <<\_ACEOF
  16452. #define HAVE_MALLOC 1
  16453. _ACEOF
  16454. else
  16455. cat >>confdefs.h <<\_ACEOF
  16456. #define HAVE_MALLOC 0
  16457. _ACEOF
  16458. case " $LIBOBJS " in
  16459. *" malloc.$ac_objext "* ) ;;
  16460. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16461. ;;
  16462. esac
  16463. cat >>confdefs.h <<\_ACEOF
  16464. #define malloc rpl_malloc
  16465. _ACEOF
  16466. fi
  16467. for ac_header in stdlib.h
  16468. do
  16469. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16470. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16471. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16472. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16473. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16474. echo $ECHO_N "(cached) $ECHO_C" >&6
  16475. fi
  16476. ac_res=`eval echo '${'$as_ac_Header'}'`
  16477. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16478. echo "${ECHO_T}$ac_res" >&6; }
  16479. else
  16480. # Is the header compilable?
  16481. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16482. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16483. cat >conftest.$ac_ext <<_ACEOF
  16484. /* confdefs.h. */
  16485. _ACEOF
  16486. cat confdefs.h >>conftest.$ac_ext
  16487. cat >>conftest.$ac_ext <<_ACEOF
  16488. /* end confdefs.h. */
  16489. $ac_includes_default
  16490. #include <$ac_header>
  16491. _ACEOF
  16492. rm -f conftest.$ac_objext
  16493. if { (ac_try="$ac_compile"
  16494. case "(($ac_try" in
  16495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16496. *) ac_try_echo=$ac_try;;
  16497. esac
  16498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16499. (eval "$ac_compile") 2>conftest.er1
  16500. ac_status=$?
  16501. grep -v '^ *+' conftest.er1 >conftest.err
  16502. rm -f conftest.er1
  16503. cat conftest.err >&5
  16504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16505. (exit $ac_status); } && {
  16506. test -z "$ac_cxx_werror_flag" ||
  16507. test ! -s conftest.err
  16508. } && test -s conftest.$ac_objext; then
  16509. ac_header_compiler=yes
  16510. else
  16511. echo "$as_me: failed program was:" >&5
  16512. sed 's/^/| /' conftest.$ac_ext >&5
  16513. ac_header_compiler=no
  16514. fi
  16515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16516. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16517. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16518. # Is the header present?
  16519. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16520. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16521. cat >conftest.$ac_ext <<_ACEOF
  16522. /* confdefs.h. */
  16523. _ACEOF
  16524. cat confdefs.h >>conftest.$ac_ext
  16525. cat >>conftest.$ac_ext <<_ACEOF
  16526. /* end confdefs.h. */
  16527. #include <$ac_header>
  16528. _ACEOF
  16529. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16530. case "(($ac_try" in
  16531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16532. *) ac_try_echo=$ac_try;;
  16533. esac
  16534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16535. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16536. ac_status=$?
  16537. grep -v '^ *+' conftest.er1 >conftest.err
  16538. rm -f conftest.er1
  16539. cat conftest.err >&5
  16540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16541. (exit $ac_status); } >/dev/null && {
  16542. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16543. test ! -s conftest.err
  16544. }; then
  16545. ac_header_preproc=yes
  16546. else
  16547. echo "$as_me: failed program was:" >&5
  16548. sed 's/^/| /' conftest.$ac_ext >&5
  16549. ac_header_preproc=no
  16550. fi
  16551. rm -f conftest.err conftest.$ac_ext
  16552. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16553. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16554. # So? What about this header?
  16555. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16556. yes:no: )
  16557. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16558. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16559. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16560. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16561. ac_header_preproc=yes
  16562. ;;
  16563. no:yes:* )
  16564. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16565. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16566. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16567. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16568. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16569. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16570. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16571. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16572. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16573. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16574. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16575. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16576. ( cat <<\_ASBOX
  16577. ## ----------------------------------------------- ##
  16578. ## Report this to t-tujikawa@users.sourceforge.net ##
  16579. ## ----------------------------------------------- ##
  16580. _ASBOX
  16581. ) | sed "s/^/$as_me: WARNING: /" >&2
  16582. ;;
  16583. esac
  16584. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16585. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16586. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16587. echo $ECHO_N "(cached) $ECHO_C" >&6
  16588. else
  16589. eval "$as_ac_Header=\$ac_header_preproc"
  16590. fi
  16591. ac_res=`eval echo '${'$as_ac_Header'}'`
  16592. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16593. echo "${ECHO_T}$ac_res" >&6; }
  16594. fi
  16595. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16596. cat >>confdefs.h <<_ACEOF
  16597. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16598. _ACEOF
  16599. fi
  16600. done
  16601. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16602. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16603. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16604. echo $ECHO_N "(cached) $ECHO_C" >&6
  16605. else
  16606. if test "$cross_compiling" = yes; then
  16607. ac_cv_func_realloc_0_nonnull=no
  16608. else
  16609. cat >conftest.$ac_ext <<_ACEOF
  16610. /* confdefs.h. */
  16611. _ACEOF
  16612. cat confdefs.h >>conftest.$ac_ext
  16613. cat >>conftest.$ac_ext <<_ACEOF
  16614. /* end confdefs.h. */
  16615. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16616. # include <stdlib.h>
  16617. #else
  16618. char *realloc ();
  16619. #endif
  16620. int
  16621. main ()
  16622. {
  16623. return ! realloc (0, 0);
  16624. ;
  16625. return 0;
  16626. }
  16627. _ACEOF
  16628. rm -f conftest$ac_exeext
  16629. if { (ac_try="$ac_link"
  16630. case "(($ac_try" in
  16631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16632. *) ac_try_echo=$ac_try;;
  16633. esac
  16634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16635. (eval "$ac_link") 2>&5
  16636. ac_status=$?
  16637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16638. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16639. { (case "(($ac_try" in
  16640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16641. *) ac_try_echo=$ac_try;;
  16642. esac
  16643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16644. (eval "$ac_try") 2>&5
  16645. ac_status=$?
  16646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16647. (exit $ac_status); }; }; then
  16648. ac_cv_func_realloc_0_nonnull=yes
  16649. else
  16650. echo "$as_me: program exited with status $ac_status" >&5
  16651. echo "$as_me: failed program was:" >&5
  16652. sed 's/^/| /' conftest.$ac_ext >&5
  16653. ( exit $ac_status )
  16654. ac_cv_func_realloc_0_nonnull=no
  16655. fi
  16656. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16657. fi
  16658. fi
  16659. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16660. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16661. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16662. cat >>confdefs.h <<\_ACEOF
  16663. #define HAVE_REALLOC 1
  16664. _ACEOF
  16665. else
  16666. cat >>confdefs.h <<\_ACEOF
  16667. #define HAVE_REALLOC 0
  16668. _ACEOF
  16669. case " $LIBOBJS " in
  16670. *" realloc.$ac_objext "* ) ;;
  16671. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16672. ;;
  16673. esac
  16674. cat >>confdefs.h <<\_ACEOF
  16675. #define realloc rpl_realloc
  16676. _ACEOF
  16677. fi
  16678. ;;
  16679. esac
  16680. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16681. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16682. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16683. echo $ECHO_N "(cached) $ECHO_C" >&6
  16684. else
  16685. if test "$cross_compiling" = yes; then
  16686. ac_cv_func_memcmp_working=no
  16687. else
  16688. cat >conftest.$ac_ext <<_ACEOF
  16689. /* confdefs.h. */
  16690. _ACEOF
  16691. cat confdefs.h >>conftest.$ac_ext
  16692. cat >>conftest.$ac_ext <<_ACEOF
  16693. /* end confdefs.h. */
  16694. $ac_includes_default
  16695. int
  16696. main ()
  16697. {
  16698. /* Some versions of memcmp are not 8-bit clean. */
  16699. char c0 = '\100', c1 = '\200', c2 = '\201';
  16700. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16701. return 1;
  16702. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16703. or more and with at least one buffer not starting on a 4-byte boundary.
  16704. William Lewis provided this test program. */
  16705. {
  16706. char foo[21];
  16707. char bar[21];
  16708. int i;
  16709. for (i = 0; i < 4; i++)
  16710. {
  16711. char *a = foo + i;
  16712. char *b = bar + i;
  16713. strcpy (a, "--------01111111");
  16714. strcpy (b, "--------10000000");
  16715. if (memcmp (a, b, 16) >= 0)
  16716. return 1;
  16717. }
  16718. return 0;
  16719. }
  16720. ;
  16721. return 0;
  16722. }
  16723. _ACEOF
  16724. rm -f conftest$ac_exeext
  16725. if { (ac_try="$ac_link"
  16726. case "(($ac_try" in
  16727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16728. *) ac_try_echo=$ac_try;;
  16729. esac
  16730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16731. (eval "$ac_link") 2>&5
  16732. ac_status=$?
  16733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16734. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16735. { (case "(($ac_try" in
  16736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16737. *) ac_try_echo=$ac_try;;
  16738. esac
  16739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16740. (eval "$ac_try") 2>&5
  16741. ac_status=$?
  16742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16743. (exit $ac_status); }; }; then
  16744. ac_cv_func_memcmp_working=yes
  16745. else
  16746. echo "$as_me: program exited with status $ac_status" >&5
  16747. echo "$as_me: failed program was:" >&5
  16748. sed 's/^/| /' conftest.$ac_ext >&5
  16749. ( exit $ac_status )
  16750. ac_cv_func_memcmp_working=no
  16751. fi
  16752. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16753. fi
  16754. fi
  16755. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16756. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16757. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16758. *" memcmp.$ac_objext "* ) ;;
  16759. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16760. ;;
  16761. esac
  16762. for ac_header in $ac_header_list
  16763. do
  16764. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16765. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16766. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16767. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16768. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16769. echo $ECHO_N "(cached) $ECHO_C" >&6
  16770. fi
  16771. ac_res=`eval echo '${'$as_ac_Header'}'`
  16772. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16773. echo "${ECHO_T}$ac_res" >&6; }
  16774. else
  16775. # Is the header compilable?
  16776. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16777. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16778. cat >conftest.$ac_ext <<_ACEOF
  16779. /* confdefs.h. */
  16780. _ACEOF
  16781. cat confdefs.h >>conftest.$ac_ext
  16782. cat >>conftest.$ac_ext <<_ACEOF
  16783. /* end confdefs.h. */
  16784. $ac_includes_default
  16785. #include <$ac_header>
  16786. _ACEOF
  16787. rm -f conftest.$ac_objext
  16788. if { (ac_try="$ac_compile"
  16789. case "(($ac_try" in
  16790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16791. *) ac_try_echo=$ac_try;;
  16792. esac
  16793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16794. (eval "$ac_compile") 2>conftest.er1
  16795. ac_status=$?
  16796. grep -v '^ *+' conftest.er1 >conftest.err
  16797. rm -f conftest.er1
  16798. cat conftest.err >&5
  16799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16800. (exit $ac_status); } && {
  16801. test -z "$ac_cxx_werror_flag" ||
  16802. test ! -s conftest.err
  16803. } && test -s conftest.$ac_objext; then
  16804. ac_header_compiler=yes
  16805. else
  16806. echo "$as_me: failed program was:" >&5
  16807. sed 's/^/| /' conftest.$ac_ext >&5
  16808. ac_header_compiler=no
  16809. fi
  16810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16811. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16812. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16813. # Is the header present?
  16814. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16815. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16816. cat >conftest.$ac_ext <<_ACEOF
  16817. /* confdefs.h. */
  16818. _ACEOF
  16819. cat confdefs.h >>conftest.$ac_ext
  16820. cat >>conftest.$ac_ext <<_ACEOF
  16821. /* end confdefs.h. */
  16822. #include <$ac_header>
  16823. _ACEOF
  16824. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16825. case "(($ac_try" in
  16826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16827. *) ac_try_echo=$ac_try;;
  16828. esac
  16829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16830. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16831. ac_status=$?
  16832. grep -v '^ *+' conftest.er1 >conftest.err
  16833. rm -f conftest.er1
  16834. cat conftest.err >&5
  16835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16836. (exit $ac_status); } >/dev/null && {
  16837. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16838. test ! -s conftest.err
  16839. }; then
  16840. ac_header_preproc=yes
  16841. else
  16842. echo "$as_me: failed program was:" >&5
  16843. sed 's/^/| /' conftest.$ac_ext >&5
  16844. ac_header_preproc=no
  16845. fi
  16846. rm -f conftest.err conftest.$ac_ext
  16847. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16848. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16849. # So? What about this header?
  16850. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16851. yes:no: )
  16852. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16853. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16854. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16855. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16856. ac_header_preproc=yes
  16857. ;;
  16858. no:yes:* )
  16859. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16860. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16861. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16862. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16863. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16864. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16865. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16866. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16867. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16868. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16869. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16870. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16871. ( cat <<\_ASBOX
  16872. ## ----------------------------------------------- ##
  16873. ## Report this to t-tujikawa@users.sourceforge.net ##
  16874. ## ----------------------------------------------- ##
  16875. _ASBOX
  16876. ) | sed "s/^/$as_me: WARNING: /" >&2
  16877. ;;
  16878. esac
  16879. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16880. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16881. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16882. echo $ECHO_N "(cached) $ECHO_C" >&6
  16883. else
  16884. eval "$as_ac_Header=\$ac_header_preproc"
  16885. fi
  16886. ac_res=`eval echo '${'$as_ac_Header'}'`
  16887. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16888. echo "${ECHO_T}$ac_res" >&6; }
  16889. fi
  16890. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16891. cat >>confdefs.h <<_ACEOF
  16892. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16893. _ACEOF
  16894. fi
  16895. done
  16896. for ac_func in $ac_func_list
  16897. do
  16898. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16899. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16900. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16901. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16902. echo $ECHO_N "(cached) $ECHO_C" >&6
  16903. else
  16904. cat >conftest.$ac_ext <<_ACEOF
  16905. /* confdefs.h. */
  16906. _ACEOF
  16907. cat confdefs.h >>conftest.$ac_ext
  16908. cat >>conftest.$ac_ext <<_ACEOF
  16909. /* end confdefs.h. */
  16910. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16912. #define $ac_func innocuous_$ac_func
  16913. /* System header to define __stub macros and hopefully few prototypes,
  16914. which can conflict with char $ac_func (); below.
  16915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16916. <limits.h> exists even on freestanding compilers. */
  16917. #ifdef __STDC__
  16918. # include <limits.h>
  16919. #else
  16920. # include <assert.h>
  16921. #endif
  16922. #undef $ac_func
  16923. /* Override any GCC internal prototype to avoid an error.
  16924. Use char because int might match the return type of a GCC
  16925. builtin and then its argument prototype would still apply. */
  16926. #ifdef __cplusplus
  16927. extern "C"
  16928. #endif
  16929. char $ac_func ();
  16930. /* The GNU C library defines this for functions which it implements
  16931. to always fail with ENOSYS. Some functions are actually named
  16932. something starting with __ and the normal name is an alias. */
  16933. #if defined __stub_$ac_func || defined __stub___$ac_func
  16934. choke me
  16935. #endif
  16936. int
  16937. main ()
  16938. {
  16939. return $ac_func ();
  16940. ;
  16941. return 0;
  16942. }
  16943. _ACEOF
  16944. rm -f conftest.$ac_objext conftest$ac_exeext
  16945. if { (ac_try="$ac_link"
  16946. case "(($ac_try" in
  16947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16948. *) ac_try_echo=$ac_try;;
  16949. esac
  16950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16951. (eval "$ac_link") 2>conftest.er1
  16952. ac_status=$?
  16953. grep -v '^ *+' conftest.er1 >conftest.err
  16954. rm -f conftest.er1
  16955. cat conftest.err >&5
  16956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16957. (exit $ac_status); } && {
  16958. test -z "$ac_cxx_werror_flag" ||
  16959. test ! -s conftest.err
  16960. } && test -s conftest$ac_exeext &&
  16961. $as_test_x conftest$ac_exeext; then
  16962. eval "$as_ac_var=yes"
  16963. else
  16964. echo "$as_me: failed program was:" >&5
  16965. sed 's/^/| /' conftest.$ac_ext >&5
  16966. eval "$as_ac_var=no"
  16967. fi
  16968. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16969. conftest$ac_exeext conftest.$ac_ext
  16970. fi
  16971. ac_res=`eval echo '${'$as_ac_var'}'`
  16972. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16973. echo "${ECHO_T}$ac_res" >&6; }
  16974. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16975. cat >>confdefs.h <<_ACEOF
  16976. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16977. _ACEOF
  16978. fi
  16979. done
  16980. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16981. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16982. if test "${ac_cv_func_working_mktime+set}" = set; then
  16983. echo $ECHO_N "(cached) $ECHO_C" >&6
  16984. else
  16985. if test "$cross_compiling" = yes; then
  16986. ac_cv_func_working_mktime=no
  16987. else
  16988. cat >conftest.$ac_ext <<_ACEOF
  16989. /* confdefs.h. */
  16990. _ACEOF
  16991. cat confdefs.h >>conftest.$ac_ext
  16992. cat >>conftest.$ac_ext <<_ACEOF
  16993. /* end confdefs.h. */
  16994. /* Test program from Paul Eggert and Tony Leneis. */
  16995. #ifdef TIME_WITH_SYS_TIME
  16996. # include <sys/time.h>
  16997. # include <time.h>
  16998. #else
  16999. # ifdef HAVE_SYS_TIME_H
  17000. # include <sys/time.h>
  17001. # else
  17002. # include <time.h>
  17003. # endif
  17004. #endif
  17005. #include <limits.h>
  17006. #include <stdlib.h>
  17007. #ifdef HAVE_UNISTD_H
  17008. # include <unistd.h>
  17009. #endif
  17010. #ifndef HAVE_ALARM
  17011. # define alarm(X) /* empty */
  17012. #endif
  17013. /* Work around redefinition to rpl_putenv by other config tests. */
  17014. #undef putenv
  17015. static time_t time_t_max;
  17016. static time_t time_t_min;
  17017. /* Values we'll use to set the TZ environment variable. */
  17018. static char *tz_strings[] = {
  17019. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17020. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17021. };
  17022. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17023. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17024. Based on a problem report from Andreas Jaeger. */
  17025. static int
  17026. spring_forward_gap ()
  17027. {
  17028. /* glibc (up to about 1998-10-07) failed this test. */
  17029. struct tm tm;
  17030. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17031. instead of "TZ=America/Vancouver" in order to detect the bug even
  17032. on systems that don't support the Olson extension, or don't have the
  17033. full zoneinfo tables installed. */
  17034. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17035. tm.tm_year = 98;
  17036. tm.tm_mon = 3;
  17037. tm.tm_mday = 5;
  17038. tm.tm_hour = 2;
  17039. tm.tm_min = 0;
  17040. tm.tm_sec = 0;
  17041. tm.tm_isdst = -1;
  17042. return mktime (&tm) != (time_t) -1;
  17043. }
  17044. static int
  17045. mktime_test1 (now)
  17046. time_t now;
  17047. {
  17048. struct tm *lt;
  17049. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17050. }
  17051. static int
  17052. mktime_test (now)
  17053. time_t now;
  17054. {
  17055. return (mktime_test1 (now)
  17056. && mktime_test1 ((time_t) (time_t_max - now))
  17057. && mktime_test1 ((time_t) (time_t_min + now)));
  17058. }
  17059. static int
  17060. irix_6_4_bug ()
  17061. {
  17062. /* Based on code from Ariel Faigon. */
  17063. struct tm tm;
  17064. tm.tm_year = 96;
  17065. tm.tm_mon = 3;
  17066. tm.tm_mday = 0;
  17067. tm.tm_hour = 0;
  17068. tm.tm_min = 0;
  17069. tm.tm_sec = 0;
  17070. tm.tm_isdst = -1;
  17071. mktime (&tm);
  17072. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17073. }
  17074. static int
  17075. bigtime_test (j)
  17076. int j;
  17077. {
  17078. struct tm tm;
  17079. time_t now;
  17080. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17081. now = mktime (&tm);
  17082. if (now != (time_t) -1)
  17083. {
  17084. struct tm *lt = localtime (&now);
  17085. if (! (lt
  17086. && lt->tm_year == tm.tm_year
  17087. && lt->tm_mon == tm.tm_mon
  17088. && lt->tm_mday == tm.tm_mday
  17089. && lt->tm_hour == tm.tm_hour
  17090. && lt->tm_min == tm.tm_min
  17091. && lt->tm_sec == tm.tm_sec
  17092. && lt->tm_yday == tm.tm_yday
  17093. && lt->tm_wday == tm.tm_wday
  17094. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17095. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17096. return 0;
  17097. }
  17098. return 1;
  17099. }
  17100. static int
  17101. year_2050_test ()
  17102. {
  17103. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17104. ignoring leap seconds. */
  17105. unsigned long int answer = 2527315200UL;
  17106. struct tm tm;
  17107. time_t t;
  17108. tm.tm_year = 2050 - 1900;
  17109. tm.tm_mon = 2 - 1;
  17110. tm.tm_mday = 1;
  17111. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17112. tm.tm_isdst = -1;
  17113. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17114. instead of "TZ=America/Vancouver" in order to detect the bug even
  17115. on systems that don't support the Olson extension, or don't have the
  17116. full zoneinfo tables installed. */
  17117. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17118. t = mktime (&tm);
  17119. /* Check that the result is either a failure, or close enough
  17120. to the correct answer that we can assume the discrepancy is
  17121. due to leap seconds. */
  17122. return (t == (time_t) -1
  17123. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17124. }
  17125. int
  17126. main ()
  17127. {
  17128. time_t t, delta;
  17129. int i, j;
  17130. /* This test makes some buggy mktime implementations loop.
  17131. Give up after 60 seconds; a mktime slower than that
  17132. isn't worth using anyway. */
  17133. alarm (60);
  17134. for (;;)
  17135. {
  17136. t = (time_t_max << 1) + 1;
  17137. if (t <= time_t_max)
  17138. break;
  17139. time_t_max = t;
  17140. }
  17141. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17142. delta = time_t_max / 997; /* a suitable prime number */
  17143. for (i = 0; i < N_STRINGS; i++)
  17144. {
  17145. if (tz_strings[i])
  17146. putenv (tz_strings[i]);
  17147. for (t = 0; t <= time_t_max - delta; t += delta)
  17148. if (! mktime_test (t))
  17149. return 1;
  17150. if (! (mktime_test ((time_t) 1)
  17151. && mktime_test ((time_t) (60 * 60))
  17152. && mktime_test ((time_t) (60 * 60 * 24))))
  17153. return 1;
  17154. for (j = 1; ; j <<= 1)
  17155. if (! bigtime_test (j))
  17156. return 1;
  17157. else if (INT_MAX / 2 < j)
  17158. break;
  17159. if (! bigtime_test (INT_MAX))
  17160. return 1;
  17161. }
  17162. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17163. }
  17164. _ACEOF
  17165. rm -f conftest$ac_exeext
  17166. if { (ac_try="$ac_link"
  17167. case "(($ac_try" in
  17168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17169. *) ac_try_echo=$ac_try;;
  17170. esac
  17171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17172. (eval "$ac_link") 2>&5
  17173. ac_status=$?
  17174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17175. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17176. { (case "(($ac_try" in
  17177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17178. *) ac_try_echo=$ac_try;;
  17179. esac
  17180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17181. (eval "$ac_try") 2>&5
  17182. ac_status=$?
  17183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17184. (exit $ac_status); }; }; then
  17185. ac_cv_func_working_mktime=yes
  17186. else
  17187. echo "$as_me: program exited with status $ac_status" >&5
  17188. echo "$as_me: failed program was:" >&5
  17189. sed 's/^/| /' conftest.$ac_ext >&5
  17190. ( exit $ac_status )
  17191. ac_cv_func_working_mktime=no
  17192. fi
  17193. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17194. fi
  17195. fi
  17196. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17197. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17198. if test $ac_cv_func_working_mktime = no; then
  17199. case " $LIBOBJS " in
  17200. *" mktime.$ac_objext "* ) ;;
  17201. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17202. ;;
  17203. esac
  17204. fi
  17205. for ac_header in stdlib.h unistd.h
  17206. do
  17207. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17208. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17209. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17210. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17211. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17212. echo $ECHO_N "(cached) $ECHO_C" >&6
  17213. fi
  17214. ac_res=`eval echo '${'$as_ac_Header'}'`
  17215. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17216. echo "${ECHO_T}$ac_res" >&6; }
  17217. else
  17218. # Is the header compilable?
  17219. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17220. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17221. cat >conftest.$ac_ext <<_ACEOF
  17222. /* confdefs.h. */
  17223. _ACEOF
  17224. cat confdefs.h >>conftest.$ac_ext
  17225. cat >>conftest.$ac_ext <<_ACEOF
  17226. /* end confdefs.h. */
  17227. $ac_includes_default
  17228. #include <$ac_header>
  17229. _ACEOF
  17230. rm -f conftest.$ac_objext
  17231. if { (ac_try="$ac_compile"
  17232. case "(($ac_try" in
  17233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17234. *) ac_try_echo=$ac_try;;
  17235. esac
  17236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17237. (eval "$ac_compile") 2>conftest.er1
  17238. ac_status=$?
  17239. grep -v '^ *+' conftest.er1 >conftest.err
  17240. rm -f conftest.er1
  17241. cat conftest.err >&5
  17242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17243. (exit $ac_status); } && {
  17244. test -z "$ac_cxx_werror_flag" ||
  17245. test ! -s conftest.err
  17246. } && test -s conftest.$ac_objext; then
  17247. ac_header_compiler=yes
  17248. else
  17249. echo "$as_me: failed program was:" >&5
  17250. sed 's/^/| /' conftest.$ac_ext >&5
  17251. ac_header_compiler=no
  17252. fi
  17253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17254. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17255. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17256. # Is the header present?
  17257. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17258. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17259. cat >conftest.$ac_ext <<_ACEOF
  17260. /* confdefs.h. */
  17261. _ACEOF
  17262. cat confdefs.h >>conftest.$ac_ext
  17263. cat >>conftest.$ac_ext <<_ACEOF
  17264. /* end confdefs.h. */
  17265. #include <$ac_header>
  17266. _ACEOF
  17267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17268. case "(($ac_try" in
  17269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17270. *) ac_try_echo=$ac_try;;
  17271. esac
  17272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17273. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17274. ac_status=$?
  17275. grep -v '^ *+' conftest.er1 >conftest.err
  17276. rm -f conftest.er1
  17277. cat conftest.err >&5
  17278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17279. (exit $ac_status); } >/dev/null && {
  17280. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17281. test ! -s conftest.err
  17282. }; then
  17283. ac_header_preproc=yes
  17284. else
  17285. echo "$as_me: failed program was:" >&5
  17286. sed 's/^/| /' conftest.$ac_ext >&5
  17287. ac_header_preproc=no
  17288. fi
  17289. rm -f conftest.err conftest.$ac_ext
  17290. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17291. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17292. # So? What about this header?
  17293. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17294. yes:no: )
  17295. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17296. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17297. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17298. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17299. ac_header_preproc=yes
  17300. ;;
  17301. no:yes:* )
  17302. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17303. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17304. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17305. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17306. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17307. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17308. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17309. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17310. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17311. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17312. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17313. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17314. ( cat <<\_ASBOX
  17315. ## ----------------------------------------------- ##
  17316. ## Report this to t-tujikawa@users.sourceforge.net ##
  17317. ## ----------------------------------------------- ##
  17318. _ASBOX
  17319. ) | sed "s/^/$as_me: WARNING: /" >&2
  17320. ;;
  17321. esac
  17322. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17323. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17324. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17325. echo $ECHO_N "(cached) $ECHO_C" >&6
  17326. else
  17327. eval "$as_ac_Header=\$ac_header_preproc"
  17328. fi
  17329. ac_res=`eval echo '${'$as_ac_Header'}'`
  17330. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17331. echo "${ECHO_T}$ac_res" >&6; }
  17332. fi
  17333. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17334. cat >>confdefs.h <<_ACEOF
  17335. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17336. _ACEOF
  17337. fi
  17338. done
  17339. for ac_func in getpagesize
  17340. do
  17341. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17342. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17343. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17344. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17345. echo $ECHO_N "(cached) $ECHO_C" >&6
  17346. else
  17347. cat >conftest.$ac_ext <<_ACEOF
  17348. /* confdefs.h. */
  17349. _ACEOF
  17350. cat confdefs.h >>conftest.$ac_ext
  17351. cat >>conftest.$ac_ext <<_ACEOF
  17352. /* end confdefs.h. */
  17353. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17354. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17355. #define $ac_func innocuous_$ac_func
  17356. /* System header to define __stub macros and hopefully few prototypes,
  17357. which can conflict with char $ac_func (); below.
  17358. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17359. <limits.h> exists even on freestanding compilers. */
  17360. #ifdef __STDC__
  17361. # include <limits.h>
  17362. #else
  17363. # include <assert.h>
  17364. #endif
  17365. #undef $ac_func
  17366. /* Override any GCC internal prototype to avoid an error.
  17367. Use char because int might match the return type of a GCC
  17368. builtin and then its argument prototype would still apply. */
  17369. #ifdef __cplusplus
  17370. extern "C"
  17371. #endif
  17372. char $ac_func ();
  17373. /* The GNU C library defines this for functions which it implements
  17374. to always fail with ENOSYS. Some functions are actually named
  17375. something starting with __ and the normal name is an alias. */
  17376. #if defined __stub_$ac_func || defined __stub___$ac_func
  17377. choke me
  17378. #endif
  17379. int
  17380. main ()
  17381. {
  17382. return $ac_func ();
  17383. ;
  17384. return 0;
  17385. }
  17386. _ACEOF
  17387. rm -f conftest.$ac_objext conftest$ac_exeext
  17388. if { (ac_try="$ac_link"
  17389. case "(($ac_try" in
  17390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17391. *) ac_try_echo=$ac_try;;
  17392. esac
  17393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17394. (eval "$ac_link") 2>conftest.er1
  17395. ac_status=$?
  17396. grep -v '^ *+' conftest.er1 >conftest.err
  17397. rm -f conftest.er1
  17398. cat conftest.err >&5
  17399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17400. (exit $ac_status); } && {
  17401. test -z "$ac_cxx_werror_flag" ||
  17402. test ! -s conftest.err
  17403. } && test -s conftest$ac_exeext &&
  17404. $as_test_x conftest$ac_exeext; then
  17405. eval "$as_ac_var=yes"
  17406. else
  17407. echo "$as_me: failed program was:" >&5
  17408. sed 's/^/| /' conftest.$ac_ext >&5
  17409. eval "$as_ac_var=no"
  17410. fi
  17411. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17412. conftest$ac_exeext conftest.$ac_ext
  17413. fi
  17414. ac_res=`eval echo '${'$as_ac_var'}'`
  17415. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17416. echo "${ECHO_T}$ac_res" >&6; }
  17417. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17418. cat >>confdefs.h <<_ACEOF
  17419. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17420. _ACEOF
  17421. fi
  17422. done
  17423. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17424. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17425. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17426. echo $ECHO_N "(cached) $ECHO_C" >&6
  17427. else
  17428. if test "$cross_compiling" = yes; then
  17429. ac_cv_func_mmap_fixed_mapped=no
  17430. else
  17431. cat >conftest.$ac_ext <<_ACEOF
  17432. /* confdefs.h. */
  17433. _ACEOF
  17434. cat confdefs.h >>conftest.$ac_ext
  17435. cat >>conftest.$ac_ext <<_ACEOF
  17436. /* end confdefs.h. */
  17437. $ac_includes_default
  17438. /* malloc might have been renamed as rpl_malloc. */
  17439. #undef malloc
  17440. /* Thanks to Mike Haertel and Jim Avera for this test.
  17441. Here is a matrix of mmap possibilities:
  17442. mmap private not fixed
  17443. mmap private fixed at somewhere currently unmapped
  17444. mmap private fixed at somewhere already mapped
  17445. mmap shared not fixed
  17446. mmap shared fixed at somewhere currently unmapped
  17447. mmap shared fixed at somewhere already mapped
  17448. For private mappings, we should verify that changes cannot be read()
  17449. back from the file, nor mmap's back from the file at a different
  17450. address. (There have been systems where private was not correctly
  17451. implemented like the infamous i386 svr4.0, and systems where the
  17452. VM page cache was not coherent with the file system buffer cache
  17453. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17454. For shared mappings, we should conversely verify that changes get
  17455. propagated back to all the places they're supposed to be.
  17456. Grep wants private fixed already mapped.
  17457. The main things grep needs to know about mmap are:
  17458. * does it exist and is it safe to write into the mmap'd area
  17459. * how to use it (BSD variants) */
  17460. #include <fcntl.h>
  17461. #include <sys/mman.h>
  17462. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17463. char *malloc ();
  17464. #endif
  17465. /* This mess was copied from the GNU getpagesize.h. */
  17466. #ifndef HAVE_GETPAGESIZE
  17467. /* Assume that all systems that can run configure have sys/param.h. */
  17468. # ifndef HAVE_SYS_PARAM_H
  17469. # define HAVE_SYS_PARAM_H 1
  17470. # endif
  17471. # ifdef _SC_PAGESIZE
  17472. # define getpagesize() sysconf(_SC_PAGESIZE)
  17473. # else /* no _SC_PAGESIZE */
  17474. # ifdef HAVE_SYS_PARAM_H
  17475. # include <sys/param.h>
  17476. # ifdef EXEC_PAGESIZE
  17477. # define getpagesize() EXEC_PAGESIZE
  17478. # else /* no EXEC_PAGESIZE */
  17479. # ifdef NBPG
  17480. # define getpagesize() NBPG * CLSIZE
  17481. # ifndef CLSIZE
  17482. # define CLSIZE 1
  17483. # endif /* no CLSIZE */
  17484. # else /* no NBPG */
  17485. # ifdef NBPC
  17486. # define getpagesize() NBPC
  17487. # else /* no NBPC */
  17488. # ifdef PAGESIZE
  17489. # define getpagesize() PAGESIZE
  17490. # endif /* PAGESIZE */
  17491. # endif /* no NBPC */
  17492. # endif /* no NBPG */
  17493. # endif /* no EXEC_PAGESIZE */
  17494. # else /* no HAVE_SYS_PARAM_H */
  17495. # define getpagesize() 8192 /* punt totally */
  17496. # endif /* no HAVE_SYS_PARAM_H */
  17497. # endif /* no _SC_PAGESIZE */
  17498. #endif /* no HAVE_GETPAGESIZE */
  17499. int
  17500. main ()
  17501. {
  17502. char *data, *data2, *data3;
  17503. int i, pagesize;
  17504. int fd;
  17505. pagesize = getpagesize ();
  17506. /* First, make a file with some known garbage in it. */
  17507. data = (char *) malloc (pagesize);
  17508. if (!data)
  17509. return 1;
  17510. for (i = 0; i < pagesize; ++i)
  17511. *(data + i) = rand ();
  17512. umask (0);
  17513. fd = creat ("conftest.mmap", 0600);
  17514. if (fd < 0)
  17515. return 1;
  17516. if (write (fd, data, pagesize) != pagesize)
  17517. return 1;
  17518. close (fd);
  17519. /* Next, try to mmap the file at a fixed address which already has
  17520. something else allocated at it. If we can, also make sure that
  17521. we see the same garbage. */
  17522. fd = open ("conftest.mmap", O_RDWR);
  17523. if (fd < 0)
  17524. return 1;
  17525. data2 = (char *) malloc (2 * pagesize);
  17526. if (!data2)
  17527. return 1;
  17528. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17529. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17530. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17531. return 1;
  17532. for (i = 0; i < pagesize; ++i)
  17533. if (*(data + i) != *(data2 + i))
  17534. return 1;
  17535. /* Finally, make sure that changes to the mapped area do not
  17536. percolate back to the file as seen by read(). (This is a bug on
  17537. some variants of i386 svr4.0.) */
  17538. for (i = 0; i < pagesize; ++i)
  17539. *(data2 + i) = *(data2 + i) + 1;
  17540. data3 = (char *) malloc (pagesize);
  17541. if (!data3)
  17542. return 1;
  17543. if (read (fd, data3, pagesize) != pagesize)
  17544. return 1;
  17545. for (i = 0; i < pagesize; ++i)
  17546. if (*(data + i) != *(data3 + i))
  17547. return 1;
  17548. close (fd);
  17549. return 0;
  17550. }
  17551. _ACEOF
  17552. rm -f conftest$ac_exeext
  17553. if { (ac_try="$ac_link"
  17554. case "(($ac_try" in
  17555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17556. *) ac_try_echo=$ac_try;;
  17557. esac
  17558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17559. (eval "$ac_link") 2>&5
  17560. ac_status=$?
  17561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17562. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17563. { (case "(($ac_try" in
  17564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17565. *) ac_try_echo=$ac_try;;
  17566. esac
  17567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17568. (eval "$ac_try") 2>&5
  17569. ac_status=$?
  17570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17571. (exit $ac_status); }; }; then
  17572. ac_cv_func_mmap_fixed_mapped=yes
  17573. else
  17574. echo "$as_me: program exited with status $ac_status" >&5
  17575. echo "$as_me: failed program was:" >&5
  17576. sed 's/^/| /' conftest.$ac_ext >&5
  17577. ( exit $ac_status )
  17578. ac_cv_func_mmap_fixed_mapped=no
  17579. fi
  17580. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17581. fi
  17582. fi
  17583. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17584. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17585. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17586. cat >>confdefs.h <<\_ACEOF
  17587. #define HAVE_MMAP 1
  17588. _ACEOF
  17589. fi
  17590. rm -f conftest.mmap
  17591. for ac_header in sys/select.h sys/socket.h
  17592. do
  17593. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17594. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17595. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17596. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17597. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17598. echo $ECHO_N "(cached) $ECHO_C" >&6
  17599. fi
  17600. ac_res=`eval echo '${'$as_ac_Header'}'`
  17601. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17602. echo "${ECHO_T}$ac_res" >&6; }
  17603. else
  17604. # Is the header compilable?
  17605. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17606. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17607. cat >conftest.$ac_ext <<_ACEOF
  17608. /* confdefs.h. */
  17609. _ACEOF
  17610. cat confdefs.h >>conftest.$ac_ext
  17611. cat >>conftest.$ac_ext <<_ACEOF
  17612. /* end confdefs.h. */
  17613. $ac_includes_default
  17614. #include <$ac_header>
  17615. _ACEOF
  17616. rm -f conftest.$ac_objext
  17617. if { (ac_try="$ac_compile"
  17618. case "(($ac_try" in
  17619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17620. *) ac_try_echo=$ac_try;;
  17621. esac
  17622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17623. (eval "$ac_compile") 2>conftest.er1
  17624. ac_status=$?
  17625. grep -v '^ *+' conftest.er1 >conftest.err
  17626. rm -f conftest.er1
  17627. cat conftest.err >&5
  17628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17629. (exit $ac_status); } && {
  17630. test -z "$ac_cxx_werror_flag" ||
  17631. test ! -s conftest.err
  17632. } && test -s conftest.$ac_objext; then
  17633. ac_header_compiler=yes
  17634. else
  17635. echo "$as_me: failed program was:" >&5
  17636. sed 's/^/| /' conftest.$ac_ext >&5
  17637. ac_header_compiler=no
  17638. fi
  17639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17640. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17641. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17642. # Is the header present?
  17643. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17644. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17645. cat >conftest.$ac_ext <<_ACEOF
  17646. /* confdefs.h. */
  17647. _ACEOF
  17648. cat confdefs.h >>conftest.$ac_ext
  17649. cat >>conftest.$ac_ext <<_ACEOF
  17650. /* end confdefs.h. */
  17651. #include <$ac_header>
  17652. _ACEOF
  17653. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17654. case "(($ac_try" in
  17655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17656. *) ac_try_echo=$ac_try;;
  17657. esac
  17658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17659. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17660. ac_status=$?
  17661. grep -v '^ *+' conftest.er1 >conftest.err
  17662. rm -f conftest.er1
  17663. cat conftest.err >&5
  17664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17665. (exit $ac_status); } >/dev/null && {
  17666. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17667. test ! -s conftest.err
  17668. }; then
  17669. ac_header_preproc=yes
  17670. else
  17671. echo "$as_me: failed program was:" >&5
  17672. sed 's/^/| /' conftest.$ac_ext >&5
  17673. ac_header_preproc=no
  17674. fi
  17675. rm -f conftest.err conftest.$ac_ext
  17676. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17677. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17678. # So? What about this header?
  17679. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17680. yes:no: )
  17681. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17682. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17683. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17684. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17685. ac_header_preproc=yes
  17686. ;;
  17687. no:yes:* )
  17688. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17689. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17690. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17691. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17692. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17693. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17694. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17695. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17696. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17697. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17698. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17699. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17700. ( cat <<\_ASBOX
  17701. ## ----------------------------------------------- ##
  17702. ## Report this to t-tujikawa@users.sourceforge.net ##
  17703. ## ----------------------------------------------- ##
  17704. _ASBOX
  17705. ) | sed "s/^/$as_me: WARNING: /" >&2
  17706. ;;
  17707. esac
  17708. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17709. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17710. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17711. echo $ECHO_N "(cached) $ECHO_C" >&6
  17712. else
  17713. eval "$as_ac_Header=\$ac_header_preproc"
  17714. fi
  17715. ac_res=`eval echo '${'$as_ac_Header'}'`
  17716. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17717. echo "${ECHO_T}$ac_res" >&6; }
  17718. fi
  17719. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17720. cat >>confdefs.h <<_ACEOF
  17721. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17722. _ACEOF
  17723. fi
  17724. done
  17725. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17726. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17727. if test "${ac_cv_func_select_args+set}" = set; then
  17728. echo $ECHO_N "(cached) $ECHO_C" >&6
  17729. else
  17730. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17731. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17732. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17733. cat >conftest.$ac_ext <<_ACEOF
  17734. /* confdefs.h. */
  17735. _ACEOF
  17736. cat confdefs.h >>conftest.$ac_ext
  17737. cat >>conftest.$ac_ext <<_ACEOF
  17738. /* end confdefs.h. */
  17739. $ac_includes_default
  17740. #ifdef HAVE_SYS_SELECT_H
  17741. # include <sys/select.h>
  17742. #endif
  17743. #ifdef HAVE_SYS_SOCKET_H
  17744. # include <sys/socket.h>
  17745. #endif
  17746. int
  17747. main ()
  17748. {
  17749. extern int select ($ac_arg1,
  17750. $ac_arg234, $ac_arg234, $ac_arg234,
  17751. $ac_arg5);
  17752. ;
  17753. return 0;
  17754. }
  17755. _ACEOF
  17756. rm -f conftest.$ac_objext
  17757. if { (ac_try="$ac_compile"
  17758. case "(($ac_try" in
  17759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17760. *) ac_try_echo=$ac_try;;
  17761. esac
  17762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17763. (eval "$ac_compile") 2>conftest.er1
  17764. ac_status=$?
  17765. grep -v '^ *+' conftest.er1 >conftest.err
  17766. rm -f conftest.er1
  17767. cat conftest.err >&5
  17768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17769. (exit $ac_status); } && {
  17770. test -z "$ac_cxx_werror_flag" ||
  17771. test ! -s conftest.err
  17772. } && test -s conftest.$ac_objext; then
  17773. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17774. else
  17775. echo "$as_me: failed program was:" >&5
  17776. sed 's/^/| /' conftest.$ac_ext >&5
  17777. fi
  17778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17779. done
  17780. done
  17781. done
  17782. # Provide a safe default value.
  17783. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17784. fi
  17785. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17786. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17787. ac_save_IFS=$IFS; IFS=','
  17788. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17789. IFS=$ac_save_IFS
  17790. shift
  17791. cat >>confdefs.h <<_ACEOF
  17792. #define SELECT_TYPE_ARG1 $1
  17793. _ACEOF
  17794. cat >>confdefs.h <<_ACEOF
  17795. #define SELECT_TYPE_ARG234 ($2)
  17796. _ACEOF
  17797. cat >>confdefs.h <<_ACEOF
  17798. #define SELECT_TYPE_ARG5 ($3)
  17799. _ACEOF
  17800. rm -f conftest*
  17801. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17802. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17803. if test "${ac_cv_type_signal+set}" = set; then
  17804. echo $ECHO_N "(cached) $ECHO_C" >&6
  17805. else
  17806. cat >conftest.$ac_ext <<_ACEOF
  17807. /* confdefs.h. */
  17808. _ACEOF
  17809. cat confdefs.h >>conftest.$ac_ext
  17810. cat >>conftest.$ac_ext <<_ACEOF
  17811. /* end confdefs.h. */
  17812. #include <sys/types.h>
  17813. #include <signal.h>
  17814. int
  17815. main ()
  17816. {
  17817. return *(signal (0, 0)) (0) == 1;
  17818. ;
  17819. return 0;
  17820. }
  17821. _ACEOF
  17822. rm -f conftest.$ac_objext
  17823. if { (ac_try="$ac_compile"
  17824. case "(($ac_try" in
  17825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17826. *) ac_try_echo=$ac_try;;
  17827. esac
  17828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17829. (eval "$ac_compile") 2>conftest.er1
  17830. ac_status=$?
  17831. grep -v '^ *+' conftest.er1 >conftest.err
  17832. rm -f conftest.er1
  17833. cat conftest.err >&5
  17834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17835. (exit $ac_status); } && {
  17836. test -z "$ac_cxx_werror_flag" ||
  17837. test ! -s conftest.err
  17838. } && test -s conftest.$ac_objext; then
  17839. ac_cv_type_signal=int
  17840. else
  17841. echo "$as_me: failed program was:" >&5
  17842. sed 's/^/| /' conftest.$ac_ext >&5
  17843. ac_cv_type_signal=void
  17844. fi
  17845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17846. fi
  17847. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17848. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17849. cat >>confdefs.h <<_ACEOF
  17850. #define RETSIGTYPE $ac_cv_type_signal
  17851. _ACEOF
  17852. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17853. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17854. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17855. echo $ECHO_N "(cached) $ECHO_C" >&6
  17856. else
  17857. rm -f conftest.sym conftest.file
  17858. echo >conftest.file
  17859. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17860. if test "$cross_compiling" = yes; then
  17861. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17862. else
  17863. cat >conftest.$ac_ext <<_ACEOF
  17864. /* confdefs.h. */
  17865. _ACEOF
  17866. cat confdefs.h >>conftest.$ac_ext
  17867. cat >>conftest.$ac_ext <<_ACEOF
  17868. /* end confdefs.h. */
  17869. $ac_includes_default
  17870. int
  17871. main ()
  17872. {
  17873. struct stat sbuf;
  17874. /* Linux will dereference the symlink and fail.
  17875. That is better in the sense that it means we will not
  17876. have to compile and use the lstat wrapper. */
  17877. return lstat ("conftest.sym/", &sbuf) == 0;
  17878. ;
  17879. return 0;
  17880. }
  17881. _ACEOF
  17882. rm -f conftest$ac_exeext
  17883. if { (ac_try="$ac_link"
  17884. case "(($ac_try" in
  17885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17886. *) ac_try_echo=$ac_try;;
  17887. esac
  17888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17889. (eval "$ac_link") 2>&5
  17890. ac_status=$?
  17891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17892. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17893. { (case "(($ac_try" in
  17894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17895. *) ac_try_echo=$ac_try;;
  17896. esac
  17897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17898. (eval "$ac_try") 2>&5
  17899. ac_status=$?
  17900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17901. (exit $ac_status); }; }; then
  17902. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17903. else
  17904. echo "$as_me: program exited with status $ac_status" >&5
  17905. echo "$as_me: failed program was:" >&5
  17906. sed 's/^/| /' conftest.$ac_ext >&5
  17907. ( exit $ac_status )
  17908. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17909. fi
  17910. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17911. fi
  17912. else
  17913. # If the `ln -s' command failed, then we probably don't even
  17914. # have an lstat function.
  17915. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17916. fi
  17917. rm -f conftest.sym conftest.file
  17918. fi
  17919. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17920. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17921. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17922. cat >>confdefs.h <<_ACEOF
  17923. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17924. _ACEOF
  17925. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17926. case " $LIBOBJS " in
  17927. *" lstat.$ac_objext "* ) ;;
  17928. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17929. ;;
  17930. esac
  17931. fi
  17932. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17933. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17934. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17935. echo $ECHO_N "(cached) $ECHO_C" >&6
  17936. else
  17937. if test "$cross_compiling" = yes; then
  17938. ac_cv_func_stat_empty_string_bug=yes
  17939. else
  17940. cat >conftest.$ac_ext <<_ACEOF
  17941. /* confdefs.h. */
  17942. _ACEOF
  17943. cat confdefs.h >>conftest.$ac_ext
  17944. cat >>conftest.$ac_ext <<_ACEOF
  17945. /* end confdefs.h. */
  17946. $ac_includes_default
  17947. int
  17948. main ()
  17949. {
  17950. struct stat sbuf;
  17951. return stat ("", &sbuf) == 0;
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. rm -f conftest$ac_exeext
  17957. if { (ac_try="$ac_link"
  17958. case "(($ac_try" in
  17959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17960. *) ac_try_echo=$ac_try;;
  17961. esac
  17962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17963. (eval "$ac_link") 2>&5
  17964. ac_status=$?
  17965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17966. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17967. { (case "(($ac_try" in
  17968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17969. *) ac_try_echo=$ac_try;;
  17970. esac
  17971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17972. (eval "$ac_try") 2>&5
  17973. ac_status=$?
  17974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17975. (exit $ac_status); }; }; then
  17976. ac_cv_func_stat_empty_string_bug=no
  17977. else
  17978. echo "$as_me: program exited with status $ac_status" >&5
  17979. echo "$as_me: failed program was:" >&5
  17980. sed 's/^/| /' conftest.$ac_ext >&5
  17981. ( exit $ac_status )
  17982. ac_cv_func_stat_empty_string_bug=yes
  17983. fi
  17984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17985. fi
  17986. fi
  17987. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17988. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17989. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17990. case " $LIBOBJS " in
  17991. *" stat.$ac_objext "* ) ;;
  17992. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17993. ;;
  17994. esac
  17995. cat >>confdefs.h <<_ACEOF
  17996. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17997. _ACEOF
  17998. fi
  17999. for ac_func in strftime
  18000. do
  18001. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18002. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18003. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18004. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18005. echo $ECHO_N "(cached) $ECHO_C" >&6
  18006. else
  18007. cat >conftest.$ac_ext <<_ACEOF
  18008. /* confdefs.h. */
  18009. _ACEOF
  18010. cat confdefs.h >>conftest.$ac_ext
  18011. cat >>conftest.$ac_ext <<_ACEOF
  18012. /* end confdefs.h. */
  18013. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18014. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18015. #define $ac_func innocuous_$ac_func
  18016. /* System header to define __stub macros and hopefully few prototypes,
  18017. which can conflict with char $ac_func (); below.
  18018. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18019. <limits.h> exists even on freestanding compilers. */
  18020. #ifdef __STDC__
  18021. # include <limits.h>
  18022. #else
  18023. # include <assert.h>
  18024. #endif
  18025. #undef $ac_func
  18026. /* Override any GCC internal prototype to avoid an error.
  18027. Use char because int might match the return type of a GCC
  18028. builtin and then its argument prototype would still apply. */
  18029. #ifdef __cplusplus
  18030. extern "C"
  18031. #endif
  18032. char $ac_func ();
  18033. /* The GNU C library defines this for functions which it implements
  18034. to always fail with ENOSYS. Some functions are actually named
  18035. something starting with __ and the normal name is an alias. */
  18036. #if defined __stub_$ac_func || defined __stub___$ac_func
  18037. choke me
  18038. #endif
  18039. int
  18040. main ()
  18041. {
  18042. return $ac_func ();
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. rm -f conftest.$ac_objext conftest$ac_exeext
  18048. if { (ac_try="$ac_link"
  18049. case "(($ac_try" in
  18050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18051. *) ac_try_echo=$ac_try;;
  18052. esac
  18053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18054. (eval "$ac_link") 2>conftest.er1
  18055. ac_status=$?
  18056. grep -v '^ *+' conftest.er1 >conftest.err
  18057. rm -f conftest.er1
  18058. cat conftest.err >&5
  18059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18060. (exit $ac_status); } && {
  18061. test -z "$ac_cxx_werror_flag" ||
  18062. test ! -s conftest.err
  18063. } && test -s conftest$ac_exeext &&
  18064. $as_test_x conftest$ac_exeext; then
  18065. eval "$as_ac_var=yes"
  18066. else
  18067. echo "$as_me: failed program was:" >&5
  18068. sed 's/^/| /' conftest.$ac_ext >&5
  18069. eval "$as_ac_var=no"
  18070. fi
  18071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18072. conftest$ac_exeext conftest.$ac_ext
  18073. fi
  18074. ac_res=`eval echo '${'$as_ac_var'}'`
  18075. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18076. echo "${ECHO_T}$ac_res" >&6; }
  18077. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18078. cat >>confdefs.h <<_ACEOF
  18079. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18080. _ACEOF
  18081. else
  18082. # strftime is in -lintl on SCO UNIX.
  18083. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18084. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18085. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18086. echo $ECHO_N "(cached) $ECHO_C" >&6
  18087. else
  18088. ac_check_lib_save_LIBS=$LIBS
  18089. LIBS="-lintl $LIBS"
  18090. cat >conftest.$ac_ext <<_ACEOF
  18091. /* confdefs.h. */
  18092. _ACEOF
  18093. cat confdefs.h >>conftest.$ac_ext
  18094. cat >>conftest.$ac_ext <<_ACEOF
  18095. /* end confdefs.h. */
  18096. /* Override any GCC internal prototype to avoid an error.
  18097. Use char because int might match the return type of a GCC
  18098. builtin and then its argument prototype would still apply. */
  18099. #ifdef __cplusplus
  18100. extern "C"
  18101. #endif
  18102. char strftime ();
  18103. int
  18104. main ()
  18105. {
  18106. return strftime ();
  18107. ;
  18108. return 0;
  18109. }
  18110. _ACEOF
  18111. rm -f conftest.$ac_objext conftest$ac_exeext
  18112. if { (ac_try="$ac_link"
  18113. case "(($ac_try" in
  18114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18115. *) ac_try_echo=$ac_try;;
  18116. esac
  18117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18118. (eval "$ac_link") 2>conftest.er1
  18119. ac_status=$?
  18120. grep -v '^ *+' conftest.er1 >conftest.err
  18121. rm -f conftest.er1
  18122. cat conftest.err >&5
  18123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18124. (exit $ac_status); } && {
  18125. test -z "$ac_cxx_werror_flag" ||
  18126. test ! -s conftest.err
  18127. } && test -s conftest$ac_exeext &&
  18128. $as_test_x conftest$ac_exeext; then
  18129. ac_cv_lib_intl_strftime=yes
  18130. else
  18131. echo "$as_me: failed program was:" >&5
  18132. sed 's/^/| /' conftest.$ac_ext >&5
  18133. ac_cv_lib_intl_strftime=no
  18134. fi
  18135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18136. conftest$ac_exeext conftest.$ac_ext
  18137. LIBS=$ac_check_lib_save_LIBS
  18138. fi
  18139. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18140. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18141. if test $ac_cv_lib_intl_strftime = yes; then
  18142. cat >>confdefs.h <<\_ACEOF
  18143. #define HAVE_STRFTIME 1
  18144. _ACEOF
  18145. LIBS="-lintl $LIBS"
  18146. fi
  18147. fi
  18148. done
  18149. for ac_func in vprintf
  18150. do
  18151. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18152. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18153. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18154. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18155. echo $ECHO_N "(cached) $ECHO_C" >&6
  18156. else
  18157. cat >conftest.$ac_ext <<_ACEOF
  18158. /* confdefs.h. */
  18159. _ACEOF
  18160. cat confdefs.h >>conftest.$ac_ext
  18161. cat >>conftest.$ac_ext <<_ACEOF
  18162. /* end confdefs.h. */
  18163. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18164. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18165. #define $ac_func innocuous_$ac_func
  18166. /* System header to define __stub macros and hopefully few prototypes,
  18167. which can conflict with char $ac_func (); below.
  18168. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18169. <limits.h> exists even on freestanding compilers. */
  18170. #ifdef __STDC__
  18171. # include <limits.h>
  18172. #else
  18173. # include <assert.h>
  18174. #endif
  18175. #undef $ac_func
  18176. /* Override any GCC internal prototype to avoid an error.
  18177. Use char because int might match the return type of a GCC
  18178. builtin and then its argument prototype would still apply. */
  18179. #ifdef __cplusplus
  18180. extern "C"
  18181. #endif
  18182. char $ac_func ();
  18183. /* The GNU C library defines this for functions which it implements
  18184. to always fail with ENOSYS. Some functions are actually named
  18185. something starting with __ and the normal name is an alias. */
  18186. #if defined __stub_$ac_func || defined __stub___$ac_func
  18187. choke me
  18188. #endif
  18189. int
  18190. main ()
  18191. {
  18192. return $ac_func ();
  18193. ;
  18194. return 0;
  18195. }
  18196. _ACEOF
  18197. rm -f conftest.$ac_objext conftest$ac_exeext
  18198. if { (ac_try="$ac_link"
  18199. case "(($ac_try" in
  18200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18201. *) ac_try_echo=$ac_try;;
  18202. esac
  18203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18204. (eval "$ac_link") 2>conftest.er1
  18205. ac_status=$?
  18206. grep -v '^ *+' conftest.er1 >conftest.err
  18207. rm -f conftest.er1
  18208. cat conftest.err >&5
  18209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18210. (exit $ac_status); } && {
  18211. test -z "$ac_cxx_werror_flag" ||
  18212. test ! -s conftest.err
  18213. } && test -s conftest$ac_exeext &&
  18214. $as_test_x conftest$ac_exeext; then
  18215. eval "$as_ac_var=yes"
  18216. else
  18217. echo "$as_me: failed program was:" >&5
  18218. sed 's/^/| /' conftest.$ac_ext >&5
  18219. eval "$as_ac_var=no"
  18220. fi
  18221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18222. conftest$ac_exeext conftest.$ac_ext
  18223. fi
  18224. ac_res=`eval echo '${'$as_ac_var'}'`
  18225. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18226. echo "${ECHO_T}$ac_res" >&6; }
  18227. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18228. cat >>confdefs.h <<_ACEOF
  18229. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18230. _ACEOF
  18231. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18232. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18233. if test "${ac_cv_func__doprnt+set}" = set; then
  18234. echo $ECHO_N "(cached) $ECHO_C" >&6
  18235. else
  18236. cat >conftest.$ac_ext <<_ACEOF
  18237. /* confdefs.h. */
  18238. _ACEOF
  18239. cat confdefs.h >>conftest.$ac_ext
  18240. cat >>conftest.$ac_ext <<_ACEOF
  18241. /* end confdefs.h. */
  18242. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18243. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18244. #define _doprnt innocuous__doprnt
  18245. /* System header to define __stub macros and hopefully few prototypes,
  18246. which can conflict with char _doprnt (); below.
  18247. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18248. <limits.h> exists even on freestanding compilers. */
  18249. #ifdef __STDC__
  18250. # include <limits.h>
  18251. #else
  18252. # include <assert.h>
  18253. #endif
  18254. #undef _doprnt
  18255. /* Override any GCC internal prototype to avoid an error.
  18256. Use char because int might match the return type of a GCC
  18257. builtin and then its argument prototype would still apply. */
  18258. #ifdef __cplusplus
  18259. extern "C"
  18260. #endif
  18261. char _doprnt ();
  18262. /* The GNU C library defines this for functions which it implements
  18263. to always fail with ENOSYS. Some functions are actually named
  18264. something starting with __ and the normal name is an alias. */
  18265. #if defined __stub__doprnt || defined __stub____doprnt
  18266. choke me
  18267. #endif
  18268. int
  18269. main ()
  18270. {
  18271. return _doprnt ();
  18272. ;
  18273. return 0;
  18274. }
  18275. _ACEOF
  18276. rm -f conftest.$ac_objext conftest$ac_exeext
  18277. if { (ac_try="$ac_link"
  18278. case "(($ac_try" in
  18279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18280. *) ac_try_echo=$ac_try;;
  18281. esac
  18282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18283. (eval "$ac_link") 2>conftest.er1
  18284. ac_status=$?
  18285. grep -v '^ *+' conftest.er1 >conftest.err
  18286. rm -f conftest.er1
  18287. cat conftest.err >&5
  18288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18289. (exit $ac_status); } && {
  18290. test -z "$ac_cxx_werror_flag" ||
  18291. test ! -s conftest.err
  18292. } && test -s conftest$ac_exeext &&
  18293. $as_test_x conftest$ac_exeext; then
  18294. ac_cv_func__doprnt=yes
  18295. else
  18296. echo "$as_me: failed program was:" >&5
  18297. sed 's/^/| /' conftest.$ac_ext >&5
  18298. ac_cv_func__doprnt=no
  18299. fi
  18300. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18301. conftest$ac_exeext conftest.$ac_ext
  18302. fi
  18303. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18304. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18305. if test $ac_cv_func__doprnt = yes; then
  18306. cat >>confdefs.h <<\_ACEOF
  18307. #define HAVE_DOPRNT 1
  18308. _ACEOF
  18309. fi
  18310. fi
  18311. done
  18312. for ac_func in __argz_count \
  18313. __argz_next \
  18314. __argz_stringify \
  18315. atexit \
  18316. daemon \
  18317. ftruncate \
  18318. getcwd \
  18319. gethostbyaddr \
  18320. gethostbyname \
  18321. getpagesize \
  18322. inet_ntoa \
  18323. memchr \
  18324. memmove \
  18325. mempcpy \
  18326. memset \
  18327. mkdir \
  18328. munmap \
  18329. nl_langinfo \
  18330. posix_memalign \
  18331. putenv \
  18332. rmdir \
  18333. select \
  18334. setlocale \
  18335. sleep \
  18336. socket \
  18337. stpcpy \
  18338. strcasecmp \
  18339. strchr \
  18340. strcspn \
  18341. strdup \
  18342. strerror \
  18343. strncasecmp \
  18344. strstr \
  18345. strtol \
  18346. strtoul \
  18347. strtoull \
  18348. tzset \
  18349. unsetenv \
  18350. usleep
  18351. do
  18352. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18353. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18354. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18355. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18356. echo $ECHO_N "(cached) $ECHO_C" >&6
  18357. else
  18358. cat >conftest.$ac_ext <<_ACEOF
  18359. /* confdefs.h. */
  18360. _ACEOF
  18361. cat confdefs.h >>conftest.$ac_ext
  18362. cat >>conftest.$ac_ext <<_ACEOF
  18363. /* end confdefs.h. */
  18364. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18365. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18366. #define $ac_func innocuous_$ac_func
  18367. /* System header to define __stub macros and hopefully few prototypes,
  18368. which can conflict with char $ac_func (); below.
  18369. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18370. <limits.h> exists even on freestanding compilers. */
  18371. #ifdef __STDC__
  18372. # include <limits.h>
  18373. #else
  18374. # include <assert.h>
  18375. #endif
  18376. #undef $ac_func
  18377. /* Override any GCC internal prototype to avoid an error.
  18378. Use char because int might match the return type of a GCC
  18379. builtin and then its argument prototype would still apply. */
  18380. #ifdef __cplusplus
  18381. extern "C"
  18382. #endif
  18383. char $ac_func ();
  18384. /* The GNU C library defines this for functions which it implements
  18385. to always fail with ENOSYS. Some functions are actually named
  18386. something starting with __ and the normal name is an alias. */
  18387. #if defined __stub_$ac_func || defined __stub___$ac_func
  18388. choke me
  18389. #endif
  18390. int
  18391. main ()
  18392. {
  18393. return $ac_func ();
  18394. ;
  18395. return 0;
  18396. }
  18397. _ACEOF
  18398. rm -f conftest.$ac_objext conftest$ac_exeext
  18399. if { (ac_try="$ac_link"
  18400. case "(($ac_try" in
  18401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18402. *) ac_try_echo=$ac_try;;
  18403. esac
  18404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18405. (eval "$ac_link") 2>conftest.er1
  18406. ac_status=$?
  18407. grep -v '^ *+' conftest.er1 >conftest.err
  18408. rm -f conftest.er1
  18409. cat conftest.err >&5
  18410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18411. (exit $ac_status); } && {
  18412. test -z "$ac_cxx_werror_flag" ||
  18413. test ! -s conftest.err
  18414. } && test -s conftest$ac_exeext &&
  18415. $as_test_x conftest$ac_exeext; then
  18416. eval "$as_ac_var=yes"
  18417. else
  18418. echo "$as_me: failed program was:" >&5
  18419. sed 's/^/| /' conftest.$ac_ext >&5
  18420. eval "$as_ac_var=no"
  18421. fi
  18422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18423. conftest$ac_exeext conftest.$ac_ext
  18424. fi
  18425. ac_res=`eval echo '${'$as_ac_var'}'`
  18426. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18427. echo "${ECHO_T}$ac_res" >&6; }
  18428. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18429. cat >>confdefs.h <<_ACEOF
  18430. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18431. _ACEOF
  18432. fi
  18433. done
  18434. if test "x$enable_epoll" = "xyes"; then
  18435. for ac_func in epoll_create
  18436. do
  18437. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18438. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18439. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18440. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18441. echo $ECHO_N "(cached) $ECHO_C" >&6
  18442. else
  18443. cat >conftest.$ac_ext <<_ACEOF
  18444. /* confdefs.h. */
  18445. _ACEOF
  18446. cat confdefs.h >>conftest.$ac_ext
  18447. cat >>conftest.$ac_ext <<_ACEOF
  18448. /* end confdefs.h. */
  18449. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18450. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18451. #define $ac_func innocuous_$ac_func
  18452. /* System header to define __stub macros and hopefully few prototypes,
  18453. which can conflict with char $ac_func (); below.
  18454. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18455. <limits.h> exists even on freestanding compilers. */
  18456. #ifdef __STDC__
  18457. # include <limits.h>
  18458. #else
  18459. # include <assert.h>
  18460. #endif
  18461. #undef $ac_func
  18462. /* Override any GCC internal prototype to avoid an error.
  18463. Use char because int might match the return type of a GCC
  18464. builtin and then its argument prototype would still apply. */
  18465. #ifdef __cplusplus
  18466. extern "C"
  18467. #endif
  18468. char $ac_func ();
  18469. /* The GNU C library defines this for functions which it implements
  18470. to always fail with ENOSYS. Some functions are actually named
  18471. something starting with __ and the normal name is an alias. */
  18472. #if defined __stub_$ac_func || defined __stub___$ac_func
  18473. choke me
  18474. #endif
  18475. int
  18476. main ()
  18477. {
  18478. return $ac_func ();
  18479. ;
  18480. return 0;
  18481. }
  18482. _ACEOF
  18483. rm -f conftest.$ac_objext conftest$ac_exeext
  18484. if { (ac_try="$ac_link"
  18485. case "(($ac_try" in
  18486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18487. *) ac_try_echo=$ac_try;;
  18488. esac
  18489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18490. (eval "$ac_link") 2>conftest.er1
  18491. ac_status=$?
  18492. grep -v '^ *+' conftest.er1 >conftest.err
  18493. rm -f conftest.er1
  18494. cat conftest.err >&5
  18495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18496. (exit $ac_status); } && {
  18497. test -z "$ac_cxx_werror_flag" ||
  18498. test ! -s conftest.err
  18499. } && test -s conftest$ac_exeext &&
  18500. $as_test_x conftest$ac_exeext; then
  18501. eval "$as_ac_var=yes"
  18502. else
  18503. echo "$as_me: failed program was:" >&5
  18504. sed 's/^/| /' conftest.$ac_ext >&5
  18505. eval "$as_ac_var=no"
  18506. fi
  18507. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18508. conftest$ac_exeext conftest.$ac_ext
  18509. fi
  18510. ac_res=`eval echo '${'$as_ac_var'}'`
  18511. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18512. echo "${ECHO_T}$ac_res" >&6; }
  18513. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18514. cat >>confdefs.h <<_ACEOF
  18515. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18516. _ACEOF
  18517. fi
  18518. done
  18519. fi
  18520. for ac_func in asctime_r
  18521. do
  18522. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18523. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18524. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18525. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18526. echo $ECHO_N "(cached) $ECHO_C" >&6
  18527. else
  18528. cat >conftest.$ac_ext <<_ACEOF
  18529. /* confdefs.h. */
  18530. _ACEOF
  18531. cat confdefs.h >>conftest.$ac_ext
  18532. cat >>conftest.$ac_ext <<_ACEOF
  18533. /* end confdefs.h. */
  18534. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18535. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18536. #define $ac_func innocuous_$ac_func
  18537. /* System header to define __stub macros and hopefully few prototypes,
  18538. which can conflict with char $ac_func (); below.
  18539. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18540. <limits.h> exists even on freestanding compilers. */
  18541. #ifdef __STDC__
  18542. # include <limits.h>
  18543. #else
  18544. # include <assert.h>
  18545. #endif
  18546. #undef $ac_func
  18547. /* Override any GCC internal prototype to avoid an error.
  18548. Use char because int might match the return type of a GCC
  18549. builtin and then its argument prototype would still apply. */
  18550. #ifdef __cplusplus
  18551. extern "C"
  18552. #endif
  18553. char $ac_func ();
  18554. /* The GNU C library defines this for functions which it implements
  18555. to always fail with ENOSYS. Some functions are actually named
  18556. something starting with __ and the normal name is an alias. */
  18557. #if defined __stub_$ac_func || defined __stub___$ac_func
  18558. choke me
  18559. #endif
  18560. int
  18561. main ()
  18562. {
  18563. return $ac_func ();
  18564. ;
  18565. return 0;
  18566. }
  18567. _ACEOF
  18568. rm -f conftest.$ac_objext conftest$ac_exeext
  18569. if { (ac_try="$ac_link"
  18570. case "(($ac_try" in
  18571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18572. *) ac_try_echo=$ac_try;;
  18573. esac
  18574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18575. (eval "$ac_link") 2>conftest.er1
  18576. ac_status=$?
  18577. grep -v '^ *+' conftest.er1 >conftest.err
  18578. rm -f conftest.er1
  18579. cat conftest.err >&5
  18580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18581. (exit $ac_status); } && {
  18582. test -z "$ac_cxx_werror_flag" ||
  18583. test ! -s conftest.err
  18584. } && test -s conftest$ac_exeext &&
  18585. $as_test_x conftest$ac_exeext; then
  18586. eval "$as_ac_var=yes"
  18587. else
  18588. echo "$as_me: failed program was:" >&5
  18589. sed 's/^/| /' conftest.$ac_ext >&5
  18590. eval "$as_ac_var=no"
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18593. conftest$ac_exeext conftest.$ac_ext
  18594. fi
  18595. ac_res=`eval echo '${'$as_ac_var'}'`
  18596. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18597. echo "${ECHO_T}$ac_res" >&6; }
  18598. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18599. cat >>confdefs.h <<_ACEOF
  18600. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18601. _ACEOF
  18602. if true; then
  18603. HAVE_ASCTIME_R_TRUE=
  18604. HAVE_ASCTIME_R_FALSE='#'
  18605. else
  18606. HAVE_ASCTIME_R_TRUE='#'
  18607. HAVE_ASCTIME_R_FALSE=
  18608. fi
  18609. else
  18610. if false; then
  18611. HAVE_ASCTIME_R_TRUE=
  18612. HAVE_ASCTIME_R_FALSE='#'
  18613. else
  18614. HAVE_ASCTIME_R_TRUE='#'
  18615. HAVE_ASCTIME_R_FALSE=
  18616. fi
  18617. fi
  18618. done
  18619. for ac_func in basename
  18620. do
  18621. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18622. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18623. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18624. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18625. echo $ECHO_N "(cached) $ECHO_C" >&6
  18626. else
  18627. cat >conftest.$ac_ext <<_ACEOF
  18628. /* confdefs.h. */
  18629. _ACEOF
  18630. cat confdefs.h >>conftest.$ac_ext
  18631. cat >>conftest.$ac_ext <<_ACEOF
  18632. /* end confdefs.h. */
  18633. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18634. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18635. #define $ac_func innocuous_$ac_func
  18636. /* System header to define __stub macros and hopefully few prototypes,
  18637. which can conflict with char $ac_func (); below.
  18638. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18639. <limits.h> exists even on freestanding compilers. */
  18640. #ifdef __STDC__
  18641. # include <limits.h>
  18642. #else
  18643. # include <assert.h>
  18644. #endif
  18645. #undef $ac_func
  18646. /* Override any GCC internal prototype to avoid an error.
  18647. Use char because int might match the return type of a GCC
  18648. builtin and then its argument prototype would still apply. */
  18649. #ifdef __cplusplus
  18650. extern "C"
  18651. #endif
  18652. char $ac_func ();
  18653. /* The GNU C library defines this for functions which it implements
  18654. to always fail with ENOSYS. Some functions are actually named
  18655. something starting with __ and the normal name is an alias. */
  18656. #if defined __stub_$ac_func || defined __stub___$ac_func
  18657. choke me
  18658. #endif
  18659. int
  18660. main ()
  18661. {
  18662. return $ac_func ();
  18663. ;
  18664. return 0;
  18665. }
  18666. _ACEOF
  18667. rm -f conftest.$ac_objext conftest$ac_exeext
  18668. if { (ac_try="$ac_link"
  18669. case "(($ac_try" in
  18670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18671. *) ac_try_echo=$ac_try;;
  18672. esac
  18673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18674. (eval "$ac_link") 2>conftest.er1
  18675. ac_status=$?
  18676. grep -v '^ *+' conftest.er1 >conftest.err
  18677. rm -f conftest.er1
  18678. cat conftest.err >&5
  18679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18680. (exit $ac_status); } && {
  18681. test -z "$ac_cxx_werror_flag" ||
  18682. test ! -s conftest.err
  18683. } && test -s conftest$ac_exeext &&
  18684. $as_test_x conftest$ac_exeext; then
  18685. eval "$as_ac_var=yes"
  18686. else
  18687. echo "$as_me: failed program was:" >&5
  18688. sed 's/^/| /' conftest.$ac_ext >&5
  18689. eval "$as_ac_var=no"
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. fi
  18694. ac_res=`eval echo '${'$as_ac_var'}'`
  18695. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18696. echo "${ECHO_T}$ac_res" >&6; }
  18697. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18698. cat >>confdefs.h <<_ACEOF
  18699. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18700. _ACEOF
  18701. if true; then
  18702. HAVE_BASENAME_TRUE=
  18703. HAVE_BASENAME_FALSE='#'
  18704. else
  18705. HAVE_BASENAME_TRUE='#'
  18706. HAVE_BASENAME_FALSE=
  18707. fi
  18708. else
  18709. if false; then
  18710. HAVE_BASENAME_TRUE=
  18711. HAVE_BASENAME_FALSE='#'
  18712. else
  18713. HAVE_BASENAME_TRUE='#'
  18714. HAVE_BASENAME_FALSE=
  18715. fi
  18716. fi
  18717. done
  18718. for ac_func in gai_strerror
  18719. do
  18720. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18721. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18722. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18723. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18724. echo $ECHO_N "(cached) $ECHO_C" >&6
  18725. else
  18726. cat >conftest.$ac_ext <<_ACEOF
  18727. /* confdefs.h. */
  18728. _ACEOF
  18729. cat confdefs.h >>conftest.$ac_ext
  18730. cat >>conftest.$ac_ext <<_ACEOF
  18731. /* end confdefs.h. */
  18732. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18733. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18734. #define $ac_func innocuous_$ac_func
  18735. /* System header to define __stub macros and hopefully few prototypes,
  18736. which can conflict with char $ac_func (); below.
  18737. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18738. <limits.h> exists even on freestanding compilers. */
  18739. #ifdef __STDC__
  18740. # include <limits.h>
  18741. #else
  18742. # include <assert.h>
  18743. #endif
  18744. #undef $ac_func
  18745. /* Override any GCC internal prototype to avoid an error.
  18746. Use char because int might match the return type of a GCC
  18747. builtin and then its argument prototype would still apply. */
  18748. #ifdef __cplusplus
  18749. extern "C"
  18750. #endif
  18751. char $ac_func ();
  18752. /* The GNU C library defines this for functions which it implements
  18753. to always fail with ENOSYS. Some functions are actually named
  18754. something starting with __ and the normal name is an alias. */
  18755. #if defined __stub_$ac_func || defined __stub___$ac_func
  18756. choke me
  18757. #endif
  18758. int
  18759. main ()
  18760. {
  18761. return $ac_func ();
  18762. ;
  18763. return 0;
  18764. }
  18765. _ACEOF
  18766. rm -f conftest.$ac_objext conftest$ac_exeext
  18767. if { (ac_try="$ac_link"
  18768. case "(($ac_try" in
  18769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18770. *) ac_try_echo=$ac_try;;
  18771. esac
  18772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18773. (eval "$ac_link") 2>conftest.er1
  18774. ac_status=$?
  18775. grep -v '^ *+' conftest.er1 >conftest.err
  18776. rm -f conftest.er1
  18777. cat conftest.err >&5
  18778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18779. (exit $ac_status); } && {
  18780. test -z "$ac_cxx_werror_flag" ||
  18781. test ! -s conftest.err
  18782. } && test -s conftest$ac_exeext &&
  18783. $as_test_x conftest$ac_exeext; then
  18784. eval "$as_ac_var=yes"
  18785. else
  18786. echo "$as_me: failed program was:" >&5
  18787. sed 's/^/| /' conftest.$ac_ext >&5
  18788. eval "$as_ac_var=no"
  18789. fi
  18790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18791. conftest$ac_exeext conftest.$ac_ext
  18792. fi
  18793. ac_res=`eval echo '${'$as_ac_var'}'`
  18794. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18795. echo "${ECHO_T}$ac_res" >&6; }
  18796. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18797. cat >>confdefs.h <<_ACEOF
  18798. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18799. _ACEOF
  18800. if true; then
  18801. HAVE_GAI_STRERROR_TRUE=
  18802. HAVE_GAI_STRERROR_FALSE='#'
  18803. else
  18804. HAVE_GAI_STRERROR_TRUE='#'
  18805. HAVE_GAI_STRERROR_FALSE=
  18806. fi
  18807. else
  18808. if false; then
  18809. HAVE_GAI_STRERROR_TRUE=
  18810. HAVE_GAI_STRERROR_FALSE='#'
  18811. else
  18812. HAVE_GAI_STRERROR_TRUE='#'
  18813. HAVE_GAI_STRERROR_FALSE=
  18814. fi
  18815. fi
  18816. done
  18817. for ac_func in getaddrinfo
  18818. do
  18819. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18820. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18821. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18822. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18823. echo $ECHO_N "(cached) $ECHO_C" >&6
  18824. else
  18825. cat >conftest.$ac_ext <<_ACEOF
  18826. /* confdefs.h. */
  18827. _ACEOF
  18828. cat confdefs.h >>conftest.$ac_ext
  18829. cat >>conftest.$ac_ext <<_ACEOF
  18830. /* end confdefs.h. */
  18831. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18833. #define $ac_func innocuous_$ac_func
  18834. /* System header to define __stub macros and hopefully few prototypes,
  18835. which can conflict with char $ac_func (); below.
  18836. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18837. <limits.h> exists even on freestanding compilers. */
  18838. #ifdef __STDC__
  18839. # include <limits.h>
  18840. #else
  18841. # include <assert.h>
  18842. #endif
  18843. #undef $ac_func
  18844. /* Override any GCC internal prototype to avoid an error.
  18845. Use char because int might match the return type of a GCC
  18846. builtin and then its argument prototype would still apply. */
  18847. #ifdef __cplusplus
  18848. extern "C"
  18849. #endif
  18850. char $ac_func ();
  18851. /* The GNU C library defines this for functions which it implements
  18852. to always fail with ENOSYS. Some functions are actually named
  18853. something starting with __ and the normal name is an alias. */
  18854. #if defined __stub_$ac_func || defined __stub___$ac_func
  18855. choke me
  18856. #endif
  18857. int
  18858. main ()
  18859. {
  18860. return $ac_func ();
  18861. ;
  18862. return 0;
  18863. }
  18864. _ACEOF
  18865. rm -f conftest.$ac_objext conftest$ac_exeext
  18866. if { (ac_try="$ac_link"
  18867. case "(($ac_try" in
  18868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18869. *) ac_try_echo=$ac_try;;
  18870. esac
  18871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18872. (eval "$ac_link") 2>conftest.er1
  18873. ac_status=$?
  18874. grep -v '^ *+' conftest.er1 >conftest.err
  18875. rm -f conftest.er1
  18876. cat conftest.err >&5
  18877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18878. (exit $ac_status); } && {
  18879. test -z "$ac_cxx_werror_flag" ||
  18880. test ! -s conftest.err
  18881. } && test -s conftest$ac_exeext &&
  18882. $as_test_x conftest$ac_exeext; then
  18883. eval "$as_ac_var=yes"
  18884. else
  18885. echo "$as_me: failed program was:" >&5
  18886. sed 's/^/| /' conftest.$ac_ext >&5
  18887. eval "$as_ac_var=no"
  18888. fi
  18889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18890. conftest$ac_exeext conftest.$ac_ext
  18891. fi
  18892. ac_res=`eval echo '${'$as_ac_var'}'`
  18893. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18894. echo "${ECHO_T}$ac_res" >&6; }
  18895. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18896. cat >>confdefs.h <<_ACEOF
  18897. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18898. _ACEOF
  18899. if true; then
  18900. HAVE_GETADDRINFO_TRUE=
  18901. HAVE_GETADDRINFO_FALSE='#'
  18902. else
  18903. HAVE_GETADDRINFO_TRUE='#'
  18904. HAVE_GETADDRINFO_FALSE=
  18905. fi
  18906. else
  18907. if false; then
  18908. HAVE_GETADDRINFO_TRUE=
  18909. HAVE_GETADDRINFO_FALSE='#'
  18910. else
  18911. HAVE_GETADDRINFO_TRUE='#'
  18912. HAVE_GETADDRINFO_FALSE=
  18913. fi
  18914. fi
  18915. done
  18916. for ac_func in gettimeofday
  18917. do
  18918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18919. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18921. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18922. echo $ECHO_N "(cached) $ECHO_C" >&6
  18923. else
  18924. cat >conftest.$ac_ext <<_ACEOF
  18925. /* confdefs.h. */
  18926. _ACEOF
  18927. cat confdefs.h >>conftest.$ac_ext
  18928. cat >>conftest.$ac_ext <<_ACEOF
  18929. /* end confdefs.h. */
  18930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18932. #define $ac_func innocuous_$ac_func
  18933. /* System header to define __stub macros and hopefully few prototypes,
  18934. which can conflict with char $ac_func (); below.
  18935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18936. <limits.h> exists even on freestanding compilers. */
  18937. #ifdef __STDC__
  18938. # include <limits.h>
  18939. #else
  18940. # include <assert.h>
  18941. #endif
  18942. #undef $ac_func
  18943. /* Override any GCC internal prototype to avoid an error.
  18944. Use char because int might match the return type of a GCC
  18945. builtin and then its argument prototype would still apply. */
  18946. #ifdef __cplusplus
  18947. extern "C"
  18948. #endif
  18949. char $ac_func ();
  18950. /* The GNU C library defines this for functions which it implements
  18951. to always fail with ENOSYS. Some functions are actually named
  18952. something starting with __ and the normal name is an alias. */
  18953. #if defined __stub_$ac_func || defined __stub___$ac_func
  18954. choke me
  18955. #endif
  18956. int
  18957. main ()
  18958. {
  18959. return $ac_func ();
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. rm -f conftest.$ac_objext conftest$ac_exeext
  18965. if { (ac_try="$ac_link"
  18966. case "(($ac_try" in
  18967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18968. *) ac_try_echo=$ac_try;;
  18969. esac
  18970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18971. (eval "$ac_link") 2>conftest.er1
  18972. ac_status=$?
  18973. grep -v '^ *+' conftest.er1 >conftest.err
  18974. rm -f conftest.er1
  18975. cat conftest.err >&5
  18976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18977. (exit $ac_status); } && {
  18978. test -z "$ac_cxx_werror_flag" ||
  18979. test ! -s conftest.err
  18980. } && test -s conftest$ac_exeext &&
  18981. $as_test_x conftest$ac_exeext; then
  18982. eval "$as_ac_var=yes"
  18983. else
  18984. echo "$as_me: failed program was:" >&5
  18985. sed 's/^/| /' conftest.$ac_ext >&5
  18986. eval "$as_ac_var=no"
  18987. fi
  18988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18989. conftest$ac_exeext conftest.$ac_ext
  18990. fi
  18991. ac_res=`eval echo '${'$as_ac_var'}'`
  18992. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18993. echo "${ECHO_T}$ac_res" >&6; }
  18994. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18995. cat >>confdefs.h <<_ACEOF
  18996. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18997. _ACEOF
  18998. if true; then
  18999. HAVE_GETTIMEOFDAY_TRUE=
  19000. HAVE_GETTIMEOFDAY_FALSE='#'
  19001. else
  19002. HAVE_GETTIMEOFDAY_TRUE='#'
  19003. HAVE_GETTIMEOFDAY_FALSE=
  19004. fi
  19005. else
  19006. if false; then
  19007. HAVE_GETTIMEOFDAY_TRUE=
  19008. HAVE_GETTIMEOFDAY_FALSE='#'
  19009. else
  19010. HAVE_GETTIMEOFDAY_TRUE='#'
  19011. HAVE_GETTIMEOFDAY_FALSE=
  19012. fi
  19013. fi
  19014. done
  19015. for ac_func in inet_aton
  19016. do
  19017. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19018. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19019. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19020. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19021. echo $ECHO_N "(cached) $ECHO_C" >&6
  19022. else
  19023. cat >conftest.$ac_ext <<_ACEOF
  19024. /* confdefs.h. */
  19025. _ACEOF
  19026. cat confdefs.h >>conftest.$ac_ext
  19027. cat >>conftest.$ac_ext <<_ACEOF
  19028. /* end confdefs.h. */
  19029. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19030. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19031. #define $ac_func innocuous_$ac_func
  19032. /* System header to define __stub macros and hopefully few prototypes,
  19033. which can conflict with char $ac_func (); below.
  19034. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19035. <limits.h> exists even on freestanding compilers. */
  19036. #ifdef __STDC__
  19037. # include <limits.h>
  19038. #else
  19039. # include <assert.h>
  19040. #endif
  19041. #undef $ac_func
  19042. /* Override any GCC internal prototype to avoid an error.
  19043. Use char because int might match the return type of a GCC
  19044. builtin and then its argument prototype would still apply. */
  19045. #ifdef __cplusplus
  19046. extern "C"
  19047. #endif
  19048. char $ac_func ();
  19049. /* The GNU C library defines this for functions which it implements
  19050. to always fail with ENOSYS. Some functions are actually named
  19051. something starting with __ and the normal name is an alias. */
  19052. #if defined __stub_$ac_func || defined __stub___$ac_func
  19053. choke me
  19054. #endif
  19055. int
  19056. main ()
  19057. {
  19058. return $ac_func ();
  19059. ;
  19060. return 0;
  19061. }
  19062. _ACEOF
  19063. rm -f conftest.$ac_objext conftest$ac_exeext
  19064. if { (ac_try="$ac_link"
  19065. case "(($ac_try" in
  19066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19067. *) ac_try_echo=$ac_try;;
  19068. esac
  19069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19070. (eval "$ac_link") 2>conftest.er1
  19071. ac_status=$?
  19072. grep -v '^ *+' conftest.er1 >conftest.err
  19073. rm -f conftest.er1
  19074. cat conftest.err >&5
  19075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19076. (exit $ac_status); } && {
  19077. test -z "$ac_cxx_werror_flag" ||
  19078. test ! -s conftest.err
  19079. } && test -s conftest$ac_exeext &&
  19080. $as_test_x conftest$ac_exeext; then
  19081. eval "$as_ac_var=yes"
  19082. else
  19083. echo "$as_me: failed program was:" >&5
  19084. sed 's/^/| /' conftest.$ac_ext >&5
  19085. eval "$as_ac_var=no"
  19086. fi
  19087. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19088. conftest$ac_exeext conftest.$ac_ext
  19089. fi
  19090. ac_res=`eval echo '${'$as_ac_var'}'`
  19091. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19092. echo "${ECHO_T}$ac_res" >&6; }
  19093. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19094. cat >>confdefs.h <<_ACEOF
  19095. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19096. _ACEOF
  19097. if true; then
  19098. HAVE_INET_ATON_TRUE=
  19099. HAVE_INET_ATON_FALSE='#'
  19100. else
  19101. HAVE_INET_ATON_TRUE='#'
  19102. HAVE_INET_ATON_FALSE=
  19103. fi
  19104. else
  19105. if false; then
  19106. HAVE_INET_ATON_TRUE=
  19107. HAVE_INET_ATON_FALSE='#'
  19108. else
  19109. HAVE_INET_ATON_TRUE='#'
  19110. HAVE_INET_ATON_FALSE=
  19111. fi
  19112. fi
  19113. done
  19114. for ac_func in localtime_r
  19115. do
  19116. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19117. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19118. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19119. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19120. echo $ECHO_N "(cached) $ECHO_C" >&6
  19121. else
  19122. cat >conftest.$ac_ext <<_ACEOF
  19123. /* confdefs.h. */
  19124. _ACEOF
  19125. cat confdefs.h >>conftest.$ac_ext
  19126. cat >>conftest.$ac_ext <<_ACEOF
  19127. /* end confdefs.h. */
  19128. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19129. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19130. #define $ac_func innocuous_$ac_func
  19131. /* System header to define __stub macros and hopefully few prototypes,
  19132. which can conflict with char $ac_func (); below.
  19133. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19134. <limits.h> exists even on freestanding compilers. */
  19135. #ifdef __STDC__
  19136. # include <limits.h>
  19137. #else
  19138. # include <assert.h>
  19139. #endif
  19140. #undef $ac_func
  19141. /* Override any GCC internal prototype to avoid an error.
  19142. Use char because int might match the return type of a GCC
  19143. builtin and then its argument prototype would still apply. */
  19144. #ifdef __cplusplus
  19145. extern "C"
  19146. #endif
  19147. char $ac_func ();
  19148. /* The GNU C library defines this for functions which it implements
  19149. to always fail with ENOSYS. Some functions are actually named
  19150. something starting with __ and the normal name is an alias. */
  19151. #if defined __stub_$ac_func || defined __stub___$ac_func
  19152. choke me
  19153. #endif
  19154. int
  19155. main ()
  19156. {
  19157. return $ac_func ();
  19158. ;
  19159. return 0;
  19160. }
  19161. _ACEOF
  19162. rm -f conftest.$ac_objext conftest$ac_exeext
  19163. if { (ac_try="$ac_link"
  19164. case "(($ac_try" in
  19165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19166. *) ac_try_echo=$ac_try;;
  19167. esac
  19168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19169. (eval "$ac_link") 2>conftest.er1
  19170. ac_status=$?
  19171. grep -v '^ *+' conftest.er1 >conftest.err
  19172. rm -f conftest.er1
  19173. cat conftest.err >&5
  19174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19175. (exit $ac_status); } && {
  19176. test -z "$ac_cxx_werror_flag" ||
  19177. test ! -s conftest.err
  19178. } && test -s conftest$ac_exeext &&
  19179. $as_test_x conftest$ac_exeext; then
  19180. eval "$as_ac_var=yes"
  19181. else
  19182. echo "$as_me: failed program was:" >&5
  19183. sed 's/^/| /' conftest.$ac_ext >&5
  19184. eval "$as_ac_var=no"
  19185. fi
  19186. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19187. conftest$ac_exeext conftest.$ac_ext
  19188. fi
  19189. ac_res=`eval echo '${'$as_ac_var'}'`
  19190. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19191. echo "${ECHO_T}$ac_res" >&6; }
  19192. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19193. cat >>confdefs.h <<_ACEOF
  19194. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19195. _ACEOF
  19196. if true; then
  19197. HAVE_LOCALTIME_R_TRUE=
  19198. HAVE_LOCALTIME_R_FALSE='#'
  19199. else
  19200. HAVE_LOCALTIME_R_TRUE='#'
  19201. HAVE_LOCALTIME_R_FALSE=
  19202. fi
  19203. else
  19204. if false; then
  19205. HAVE_LOCALTIME_R_TRUE=
  19206. HAVE_LOCALTIME_R_FALSE='#'
  19207. else
  19208. HAVE_LOCALTIME_R_TRUE='#'
  19209. HAVE_LOCALTIME_R_FALSE=
  19210. fi
  19211. fi
  19212. done
  19213. for ac_func in strptime
  19214. do
  19215. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19216. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19217. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19218. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19219. echo $ECHO_N "(cached) $ECHO_C" >&6
  19220. else
  19221. cat >conftest.$ac_ext <<_ACEOF
  19222. /* confdefs.h. */
  19223. _ACEOF
  19224. cat confdefs.h >>conftest.$ac_ext
  19225. cat >>conftest.$ac_ext <<_ACEOF
  19226. /* end confdefs.h. */
  19227. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19228. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19229. #define $ac_func innocuous_$ac_func
  19230. /* System header to define __stub macros and hopefully few prototypes,
  19231. which can conflict with char $ac_func (); below.
  19232. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19233. <limits.h> exists even on freestanding compilers. */
  19234. #ifdef __STDC__
  19235. # include <limits.h>
  19236. #else
  19237. # include <assert.h>
  19238. #endif
  19239. #undef $ac_func
  19240. /* Override any GCC internal prototype to avoid an error.
  19241. Use char because int might match the return type of a GCC
  19242. builtin and then its argument prototype would still apply. */
  19243. #ifdef __cplusplus
  19244. extern "C"
  19245. #endif
  19246. char $ac_func ();
  19247. /* The GNU C library defines this for functions which it implements
  19248. to always fail with ENOSYS. Some functions are actually named
  19249. something starting with __ and the normal name is an alias. */
  19250. #if defined __stub_$ac_func || defined __stub___$ac_func
  19251. choke me
  19252. #endif
  19253. int
  19254. main ()
  19255. {
  19256. return $ac_func ();
  19257. ;
  19258. return 0;
  19259. }
  19260. _ACEOF
  19261. rm -f conftest.$ac_objext conftest$ac_exeext
  19262. if { (ac_try="$ac_link"
  19263. case "(($ac_try" in
  19264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19265. *) ac_try_echo=$ac_try;;
  19266. esac
  19267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19268. (eval "$ac_link") 2>conftest.er1
  19269. ac_status=$?
  19270. grep -v '^ *+' conftest.er1 >conftest.err
  19271. rm -f conftest.er1
  19272. cat conftest.err >&5
  19273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19274. (exit $ac_status); } && {
  19275. test -z "$ac_cxx_werror_flag" ||
  19276. test ! -s conftest.err
  19277. } && test -s conftest$ac_exeext &&
  19278. $as_test_x conftest$ac_exeext; then
  19279. eval "$as_ac_var=yes"
  19280. else
  19281. echo "$as_me: failed program was:" >&5
  19282. sed 's/^/| /' conftest.$ac_ext >&5
  19283. eval "$as_ac_var=no"
  19284. fi
  19285. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19286. conftest$ac_exeext conftest.$ac_ext
  19287. fi
  19288. ac_res=`eval echo '${'$as_ac_var'}'`
  19289. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19290. echo "${ECHO_T}$ac_res" >&6; }
  19291. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19292. cat >>confdefs.h <<_ACEOF
  19293. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19294. _ACEOF
  19295. if true; then
  19296. HAVE_STRPTIME_TRUE=
  19297. HAVE_STRPTIME_FALSE='#'
  19298. else
  19299. HAVE_STRPTIME_TRUE='#'
  19300. HAVE_STRPTIME_FALSE=
  19301. fi
  19302. else
  19303. if false; then
  19304. HAVE_STRPTIME_TRUE=
  19305. HAVE_STRPTIME_FALSE='#'
  19306. else
  19307. HAVE_STRPTIME_TRUE='#'
  19308. HAVE_STRPTIME_FALSE=
  19309. fi
  19310. fi
  19311. done
  19312. for ac_func in timegm
  19313. do
  19314. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19315. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19316. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19317. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19318. echo $ECHO_N "(cached) $ECHO_C" >&6
  19319. else
  19320. cat >conftest.$ac_ext <<_ACEOF
  19321. /* confdefs.h. */
  19322. _ACEOF
  19323. cat confdefs.h >>conftest.$ac_ext
  19324. cat >>conftest.$ac_ext <<_ACEOF
  19325. /* end confdefs.h. */
  19326. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19327. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19328. #define $ac_func innocuous_$ac_func
  19329. /* System header to define __stub macros and hopefully few prototypes,
  19330. which can conflict with char $ac_func (); below.
  19331. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19332. <limits.h> exists even on freestanding compilers. */
  19333. #ifdef __STDC__
  19334. # include <limits.h>
  19335. #else
  19336. # include <assert.h>
  19337. #endif
  19338. #undef $ac_func
  19339. /* Override any GCC internal prototype to avoid an error.
  19340. Use char because int might match the return type of a GCC
  19341. builtin and then its argument prototype would still apply. */
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. #endif
  19345. char $ac_func ();
  19346. /* The GNU C library defines this for functions which it implements
  19347. to always fail with ENOSYS. Some functions are actually named
  19348. something starting with __ and the normal name is an alias. */
  19349. #if defined __stub_$ac_func || defined __stub___$ac_func
  19350. choke me
  19351. #endif
  19352. int
  19353. main ()
  19354. {
  19355. return $ac_func ();
  19356. ;
  19357. return 0;
  19358. }
  19359. _ACEOF
  19360. rm -f conftest.$ac_objext conftest$ac_exeext
  19361. if { (ac_try="$ac_link"
  19362. case "(($ac_try" in
  19363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19364. *) ac_try_echo=$ac_try;;
  19365. esac
  19366. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19367. (eval "$ac_link") 2>conftest.er1
  19368. ac_status=$?
  19369. grep -v '^ *+' conftest.er1 >conftest.err
  19370. rm -f conftest.er1
  19371. cat conftest.err >&5
  19372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19373. (exit $ac_status); } && {
  19374. test -z "$ac_cxx_werror_flag" ||
  19375. test ! -s conftest.err
  19376. } && test -s conftest$ac_exeext &&
  19377. $as_test_x conftest$ac_exeext; then
  19378. eval "$as_ac_var=yes"
  19379. else
  19380. echo "$as_me: failed program was:" >&5
  19381. sed 's/^/| /' conftest.$ac_ext >&5
  19382. eval "$as_ac_var=no"
  19383. fi
  19384. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19385. conftest$ac_exeext conftest.$ac_ext
  19386. fi
  19387. ac_res=`eval echo '${'$as_ac_var'}'`
  19388. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19389. echo "${ECHO_T}$ac_res" >&6; }
  19390. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19391. cat >>confdefs.h <<_ACEOF
  19392. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19393. _ACEOF
  19394. if true; then
  19395. HAVE_TIMEGM_TRUE=
  19396. HAVE_TIMEGM_FALSE='#'
  19397. else
  19398. HAVE_TIMEGM_TRUE='#'
  19399. HAVE_TIMEGM_FALSE=
  19400. fi
  19401. else
  19402. if false; then
  19403. HAVE_TIMEGM_TRUE=
  19404. HAVE_TIMEGM_FALSE='#'
  19405. else
  19406. HAVE_TIMEGM_TRUE='#'
  19407. HAVE_TIMEGM_FALSE=
  19408. fi
  19409. fi
  19410. done
  19411. case "$target" in
  19412. *mingw*)
  19413. if true; then
  19414. HAVE_GETADDRINFO_TRUE=
  19415. HAVE_GETADDRINFO_FALSE='#'
  19416. else
  19417. HAVE_GETADDRINFO_TRUE='#'
  19418. HAVE_GETADDRINFO_FALSE=
  19419. fi
  19420. if false; then
  19421. HAVE_GAI_STRERROR_TRUE=
  19422. HAVE_GAI_STRERROR_FALSE='#'
  19423. else
  19424. HAVE_GAI_STRERROR_TRUE='#'
  19425. HAVE_GAI_STRERROR_FALSE=
  19426. fi
  19427. ;;
  19428. esac
  19429. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19430. cat >confcache <<\_ACEOF
  19431. # This file is a shell script that caches the results of configure
  19432. # tests run on this system so they can be shared between configure
  19433. # scripts and configure runs, see configure's option --config-cache.
  19434. # It is not useful on other systems. If it contains results you don't
  19435. # want to keep, you may remove or edit it.
  19436. #
  19437. # config.status only pays attention to the cache file if you give it
  19438. # the --recheck option to rerun configure.
  19439. #
  19440. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19441. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19442. # following values.
  19443. _ACEOF
  19444. # The following way of writing the cache mishandles newlines in values,
  19445. # but we know of no workaround that is simple, portable, and efficient.
  19446. # So, we kill variables containing newlines.
  19447. # Ultrix sh set writes to stderr and can't be redirected directly,
  19448. # and sets the high bit in the cache file unless we assign to the vars.
  19449. (
  19450. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19451. eval ac_val=\$$ac_var
  19452. case $ac_val in #(
  19453. *${as_nl}*)
  19454. case $ac_var in #(
  19455. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19456. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19457. esac
  19458. case $ac_var in #(
  19459. _ | IFS | as_nl) ;; #(
  19460. *) $as_unset $ac_var ;;
  19461. esac ;;
  19462. esac
  19463. done
  19464. (set) 2>&1 |
  19465. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19466. *${as_nl}ac_space=\ *)
  19467. # `set' does not quote correctly, so add quotes (double-quote
  19468. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19469. sed -n \
  19470. "s/'/'\\\\''/g;
  19471. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19472. ;; #(
  19473. *)
  19474. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19475. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19476. ;;
  19477. esac |
  19478. sort
  19479. ) |
  19480. sed '
  19481. /^ac_cv_env_/b end
  19482. t clear
  19483. :clear
  19484. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19485. t end
  19486. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19487. :end' >>confcache
  19488. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19489. if test -w "$cache_file"; then
  19490. test "x$cache_file" != "x/dev/null" &&
  19491. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19492. echo "$as_me: updating cache $cache_file" >&6;}
  19493. cat confcache >$cache_file
  19494. else
  19495. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19496. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19497. fi
  19498. fi
  19499. rm -f confcache
  19500. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19501. # Let make expand exec_prefix.
  19502. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19503. DEFS=-DHAVE_CONFIG_H
  19504. ac_libobjs=
  19505. ac_ltlibobjs=
  19506. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19507. # 1. Remove the extension, and $U if already installed.
  19508. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19509. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19510. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19511. # will be set to the directory where LIBOBJS objects are built.
  19512. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19513. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19514. done
  19515. LIBOBJS=$ac_libobjs
  19516. LTLIBOBJS=$ac_ltlibobjs
  19517. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19518. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19519. Usually this means the macro was only invoked conditionally." >&5
  19520. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19521. Usually this means the macro was only invoked conditionally." >&2;}
  19522. { (exit 1); exit 1; }; }
  19523. fi
  19524. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19525. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19526. Usually this means the macro was only invoked conditionally." >&5
  19527. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19528. Usually this means the macro was only invoked conditionally." >&2;}
  19529. { (exit 1); exit 1; }; }
  19530. fi
  19531. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19532. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19533. Usually this means the macro was only invoked conditionally." >&5
  19534. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19535. Usually this means the macro was only invoked conditionally." >&2;}
  19536. { (exit 1); exit 1; }; }
  19537. fi
  19538. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19539. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19540. Usually this means the macro was only invoked conditionally." >&5
  19541. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19542. Usually this means the macro was only invoked conditionally." >&2;}
  19543. { (exit 1); exit 1; }; }
  19544. fi
  19545. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19546. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19547. Usually this means the macro was only invoked conditionally." >&5
  19548. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19549. Usually this means the macro was only invoked conditionally." >&2;}
  19550. { (exit 1); exit 1; }; }
  19551. fi
  19552. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19553. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19554. Usually this means the macro was only invoked conditionally." >&5
  19555. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19556. Usually this means the macro was only invoked conditionally." >&2;}
  19557. { (exit 1); exit 1; }; }
  19558. fi
  19559. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19560. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19561. Usually this means the macro was only invoked conditionally." >&5
  19562. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19563. Usually this means the macro was only invoked conditionally." >&2;}
  19564. { (exit 1); exit 1; }; }
  19565. fi
  19566. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19567. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19568. Usually this means the macro was only invoked conditionally." >&5
  19569. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19570. Usually this means the macro was only invoked conditionally." >&2;}
  19571. { (exit 1); exit 1; }; }
  19572. fi
  19573. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19574. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19575. Usually this means the macro was only invoked conditionally." >&5
  19576. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19577. Usually this means the macro was only invoked conditionally." >&2;}
  19578. { (exit 1); exit 1; }; }
  19579. fi
  19580. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19581. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19582. Usually this means the macro was only invoked conditionally." >&5
  19583. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19584. Usually this means the macro was only invoked conditionally." >&2;}
  19585. { (exit 1); exit 1; }; }
  19586. fi
  19587. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19588. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19589. Usually this means the macro was only invoked conditionally." >&5
  19590. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19591. Usually this means the macro was only invoked conditionally." >&2;}
  19592. { (exit 1); exit 1; }; }
  19593. fi
  19594. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19595. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19596. Usually this means the macro was only invoked conditionally." >&5
  19597. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19598. Usually this means the macro was only invoked conditionally." >&2;}
  19599. { (exit 1); exit 1; }; }
  19600. fi
  19601. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19602. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19603. Usually this means the macro was only invoked conditionally." >&5
  19604. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19605. Usually this means the macro was only invoked conditionally." >&2;}
  19606. { (exit 1); exit 1; }; }
  19607. fi
  19608. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19609. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19610. Usually this means the macro was only invoked conditionally." >&5
  19611. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19612. Usually this means the macro was only invoked conditionally." >&2;}
  19613. { (exit 1); exit 1; }; }
  19614. fi
  19615. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19616. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19617. Usually this means the macro was only invoked conditionally." >&5
  19618. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19619. Usually this means the macro was only invoked conditionally." >&2;}
  19620. { (exit 1); exit 1; }; }
  19621. fi
  19622. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19623. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19624. Usually this means the macro was only invoked conditionally." >&5
  19625. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19626. Usually this means the macro was only invoked conditionally." >&2;}
  19627. { (exit 1); exit 1; }; }
  19628. fi
  19629. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19630. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19631. Usually this means the macro was only invoked conditionally." >&5
  19632. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19633. Usually this means the macro was only invoked conditionally." >&2;}
  19634. { (exit 1); exit 1; }; }
  19635. fi
  19636. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19637. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19638. Usually this means the macro was only invoked conditionally." >&5
  19639. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19640. Usually this means the macro was only invoked conditionally." >&2;}
  19641. { (exit 1); exit 1; }; }
  19642. fi
  19643. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19644. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19645. Usually this means the macro was only invoked conditionally." >&5
  19646. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19647. Usually this means the macro was only invoked conditionally." >&2;}
  19648. { (exit 1); exit 1; }; }
  19649. fi
  19650. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19651. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19652. Usually this means the macro was only invoked conditionally." >&5
  19653. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19654. Usually this means the macro was only invoked conditionally." >&2;}
  19655. { (exit 1); exit 1; }; }
  19656. fi
  19657. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19658. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19659. Usually this means the macro was only invoked conditionally." >&5
  19660. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19661. Usually this means the macro was only invoked conditionally." >&2;}
  19662. { (exit 1); exit 1; }; }
  19663. fi
  19664. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19665. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19666. Usually this means the macro was only invoked conditionally." >&5
  19667. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19668. Usually this means the macro was only invoked conditionally." >&2;}
  19669. { (exit 1); exit 1; }; }
  19670. fi
  19671. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19672. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19673. Usually this means the macro was only invoked conditionally." >&5
  19674. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19675. Usually this means the macro was only invoked conditionally." >&2;}
  19676. { (exit 1); exit 1; }; }
  19677. fi
  19678. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19679. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19680. Usually this means the macro was only invoked conditionally." >&5
  19681. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19682. Usually this means the macro was only invoked conditionally." >&2;}
  19683. { (exit 1); exit 1; }; }
  19684. fi
  19685. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19686. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19687. Usually this means the macro was only invoked conditionally." >&5
  19688. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19689. Usually this means the macro was only invoked conditionally." >&2;}
  19690. { (exit 1); exit 1; }; }
  19691. fi
  19692. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19693. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19694. Usually this means the macro was only invoked conditionally." >&5
  19695. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19696. Usually this means the macro was only invoked conditionally." >&2;}
  19697. { (exit 1); exit 1; }; }
  19698. fi
  19699. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19700. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19701. Usually this means the macro was only invoked conditionally." >&5
  19702. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19703. Usually this means the macro was only invoked conditionally." >&2;}
  19704. { (exit 1); exit 1; }; }
  19705. fi
  19706. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19707. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19708. Usually this means the macro was only invoked conditionally." >&5
  19709. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19710. Usually this means the macro was only invoked conditionally." >&2;}
  19711. { (exit 1); exit 1; }; }
  19712. fi
  19713. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19714. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19715. Usually this means the macro was only invoked conditionally." >&5
  19716. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19717. Usually this means the macro was only invoked conditionally." >&2;}
  19718. { (exit 1); exit 1; }; }
  19719. fi
  19720. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19721. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19722. Usually this means the macro was only invoked conditionally." >&5
  19723. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19724. Usually this means the macro was only invoked conditionally." >&2;}
  19725. { (exit 1); exit 1; }; }
  19726. fi
  19727. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19728. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19729. Usually this means the macro was only invoked conditionally." >&5
  19730. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19731. Usually this means the macro was only invoked conditionally." >&2;}
  19732. { (exit 1); exit 1; }; }
  19733. fi
  19734. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19735. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19736. Usually this means the macro was only invoked conditionally." >&5
  19737. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19738. Usually this means the macro was only invoked conditionally." >&2;}
  19739. { (exit 1); exit 1; }; }
  19740. fi
  19741. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19742. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19743. Usually this means the macro was only invoked conditionally." >&5
  19744. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19745. Usually this means the macro was only invoked conditionally." >&2;}
  19746. { (exit 1); exit 1; }; }
  19747. fi
  19748. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19749. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19750. Usually this means the macro was only invoked conditionally." >&5
  19751. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19752. Usually this means the macro was only invoked conditionally." >&2;}
  19753. { (exit 1); exit 1; }; }
  19754. fi
  19755. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19756. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19757. Usually this means the macro was only invoked conditionally." >&5
  19758. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19759. Usually this means the macro was only invoked conditionally." >&2;}
  19760. { (exit 1); exit 1; }; }
  19761. fi
  19762. : ${CONFIG_STATUS=./config.status}
  19763. ac_clean_files_save=$ac_clean_files
  19764. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19765. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19766. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19767. cat >$CONFIG_STATUS <<_ACEOF
  19768. #! $SHELL
  19769. # Generated by $as_me.
  19770. # Run this file to recreate the current configuration.
  19771. # Compiler output produced by configure, useful for debugging
  19772. # configure, is in config.log if it exists.
  19773. debug=false
  19774. ac_cs_recheck=false
  19775. ac_cs_silent=false
  19776. SHELL=\${CONFIG_SHELL-$SHELL}
  19777. _ACEOF
  19778. cat >>$CONFIG_STATUS <<\_ACEOF
  19779. ## --------------------- ##
  19780. ## M4sh Initialization. ##
  19781. ## --------------------- ##
  19782. # Be more Bourne compatible
  19783. DUALCASE=1; export DUALCASE # for MKS sh
  19784. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19785. emulate sh
  19786. NULLCMD=:
  19787. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19788. # is contrary to our usage. Disable this feature.
  19789. alias -g '${1+"$@"}'='"$@"'
  19790. setopt NO_GLOB_SUBST
  19791. else
  19792. case `(set -o) 2>/dev/null` in
  19793. *posix*) set -o posix ;;
  19794. esac
  19795. fi
  19796. # PATH needs CR
  19797. # Avoid depending upon Character Ranges.
  19798. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19799. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19800. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19801. as_cr_digits='0123456789'
  19802. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19803. # The user is always right.
  19804. if test "${PATH_SEPARATOR+set}" != set; then
  19805. echo "#! /bin/sh" >conf$$.sh
  19806. echo "exit 0" >>conf$$.sh
  19807. chmod +x conf$$.sh
  19808. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19809. PATH_SEPARATOR=';'
  19810. else
  19811. PATH_SEPARATOR=:
  19812. fi
  19813. rm -f conf$$.sh
  19814. fi
  19815. # Support unset when possible.
  19816. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19817. as_unset=unset
  19818. else
  19819. as_unset=false
  19820. fi
  19821. # IFS
  19822. # We need space, tab and new line, in precisely that order. Quoting is
  19823. # there to prevent editors from complaining about space-tab.
  19824. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19825. # splitting by setting IFS to empty value.)
  19826. as_nl='
  19827. '
  19828. IFS=" "" $as_nl"
  19829. # Find who we are. Look in the path if we contain no directory separator.
  19830. case $0 in
  19831. *[\\/]* ) as_myself=$0 ;;
  19832. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19833. for as_dir in $PATH
  19834. do
  19835. IFS=$as_save_IFS
  19836. test -z "$as_dir" && as_dir=.
  19837. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19838. done
  19839. IFS=$as_save_IFS
  19840. ;;
  19841. esac
  19842. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19843. # in which case we are not to be found in the path.
  19844. if test "x$as_myself" = x; then
  19845. as_myself=$0
  19846. fi
  19847. if test ! -f "$as_myself"; then
  19848. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19849. { (exit 1); exit 1; }
  19850. fi
  19851. # Work around bugs in pre-3.0 UWIN ksh.
  19852. for as_var in ENV MAIL MAILPATH
  19853. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19854. done
  19855. PS1='$ '
  19856. PS2='> '
  19857. PS4='+ '
  19858. # NLS nuisances.
  19859. for as_var in \
  19860. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19861. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19862. LC_TELEPHONE LC_TIME
  19863. do
  19864. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19865. eval $as_var=C; export $as_var
  19866. else
  19867. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19868. fi
  19869. done
  19870. # Required to use basename.
  19871. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19872. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19873. as_expr=expr
  19874. else
  19875. as_expr=false
  19876. fi
  19877. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19878. as_basename=basename
  19879. else
  19880. as_basename=false
  19881. fi
  19882. # Name of the executable.
  19883. as_me=`$as_basename -- "$0" ||
  19884. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19885. X"$0" : 'X\(//\)$' \| \
  19886. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19887. echo X/"$0" |
  19888. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19889. s//\1/
  19890. q
  19891. }
  19892. /^X\/\(\/\/\)$/{
  19893. s//\1/
  19894. q
  19895. }
  19896. /^X\/\(\/\).*/{
  19897. s//\1/
  19898. q
  19899. }
  19900. s/.*/./; q'`
  19901. # CDPATH.
  19902. $as_unset CDPATH
  19903. as_lineno_1=$LINENO
  19904. as_lineno_2=$LINENO
  19905. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19906. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19907. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19908. # uniformly replaced by the line number. The first 'sed' inserts a
  19909. # line-number line after each line using $LINENO; the second 'sed'
  19910. # does the real work. The second script uses 'N' to pair each
  19911. # line-number line with the line containing $LINENO, and appends
  19912. # trailing '-' during substitution so that $LINENO is not a special
  19913. # case at line end.
  19914. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19915. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19916. # E. McMahon (1931-1989) for sed's syntax. :-)
  19917. sed -n '
  19918. p
  19919. /[$]LINENO/=
  19920. ' <$as_myself |
  19921. sed '
  19922. s/[$]LINENO.*/&-/
  19923. t lineno
  19924. b
  19925. :lineno
  19926. N
  19927. :loop
  19928. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19929. t loop
  19930. s/-\n.*//
  19931. ' >$as_me.lineno &&
  19932. chmod +x "$as_me.lineno" ||
  19933. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19934. { (exit 1); exit 1; }; }
  19935. # Don't try to exec as it changes $[0], causing all sort of problems
  19936. # (the dirname of $[0] is not the place where we might find the
  19937. # original and so on. Autoconf is especially sensitive to this).
  19938. . "./$as_me.lineno"
  19939. # Exit status is that of the last command.
  19940. exit
  19941. }
  19942. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19943. as_dirname=dirname
  19944. else
  19945. as_dirname=false
  19946. fi
  19947. ECHO_C= ECHO_N= ECHO_T=
  19948. case `echo -n x` in
  19949. -n*)
  19950. case `echo 'x\c'` in
  19951. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19952. *) ECHO_C='\c';;
  19953. esac;;
  19954. *)
  19955. ECHO_N='-n';;
  19956. esac
  19957. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19958. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19959. as_expr=expr
  19960. else
  19961. as_expr=false
  19962. fi
  19963. rm -f conf$$ conf$$.exe conf$$.file
  19964. if test -d conf$$.dir; then
  19965. rm -f conf$$.dir/conf$$.file
  19966. else
  19967. rm -f conf$$.dir
  19968. mkdir conf$$.dir
  19969. fi
  19970. echo >conf$$.file
  19971. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19972. as_ln_s='ln -s'
  19973. # ... but there are two gotchas:
  19974. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19975. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19976. # In both cases, we have to default to `cp -p'.
  19977. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19978. as_ln_s='cp -p'
  19979. elif ln conf$$.file conf$$ 2>/dev/null; then
  19980. as_ln_s=ln
  19981. else
  19982. as_ln_s='cp -p'
  19983. fi
  19984. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19985. rmdir conf$$.dir 2>/dev/null
  19986. if mkdir -p . 2>/dev/null; then
  19987. as_mkdir_p=:
  19988. else
  19989. test -d ./-p && rmdir ./-p
  19990. as_mkdir_p=false
  19991. fi
  19992. if test -x / >/dev/null 2>&1; then
  19993. as_test_x='test -x'
  19994. else
  19995. if ls -dL / >/dev/null 2>&1; then
  19996. as_ls_L_option=L
  19997. else
  19998. as_ls_L_option=
  19999. fi
  20000. as_test_x='
  20001. eval sh -c '\''
  20002. if test -d "$1"; then
  20003. test -d "$1/.";
  20004. else
  20005. case $1 in
  20006. -*)set "./$1";;
  20007. esac;
  20008. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20009. ???[sx]*):;;*)false;;esac;fi
  20010. '\'' sh
  20011. '
  20012. fi
  20013. as_executable_p=$as_test_x
  20014. # Sed expression to map a string onto a valid CPP name.
  20015. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20016. # Sed expression to map a string onto a valid variable name.
  20017. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20018. exec 6>&1
  20019. # Save the log message, to keep $[0] and so on meaningful, and to
  20020. # report actual input values of CONFIG_FILES etc. instead of their
  20021. # values after options handling.
  20022. ac_log="
  20023. This file was extended by aria2c $as_me 0.16.0b, which was
  20024. generated by GNU Autoconf 2.61. Invocation command line was
  20025. CONFIG_FILES = $CONFIG_FILES
  20026. CONFIG_HEADERS = $CONFIG_HEADERS
  20027. CONFIG_LINKS = $CONFIG_LINKS
  20028. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20029. $ $0 $@
  20030. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20031. "
  20032. _ACEOF
  20033. cat >>$CONFIG_STATUS <<_ACEOF
  20034. # Files that config.status was made for.
  20035. config_files="$ac_config_files"
  20036. config_headers="$ac_config_headers"
  20037. config_commands="$ac_config_commands"
  20038. _ACEOF
  20039. cat >>$CONFIG_STATUS <<\_ACEOF
  20040. ac_cs_usage="\
  20041. \`$as_me' instantiates files from templates according to the
  20042. current configuration.
  20043. Usage: $0 [OPTIONS] [FILE]...
  20044. -h, --help print this help, then exit
  20045. -V, --version print version number and configuration settings, then exit
  20046. -q, --quiet do not print progress messages
  20047. -d, --debug don't remove temporary files
  20048. --recheck update $as_me by reconfiguring in the same conditions
  20049. --file=FILE[:TEMPLATE]
  20050. instantiate the configuration file FILE
  20051. --header=FILE[:TEMPLATE]
  20052. instantiate the configuration header FILE
  20053. Configuration files:
  20054. $config_files
  20055. Configuration headers:
  20056. $config_headers
  20057. Configuration commands:
  20058. $config_commands
  20059. Report bugs to <bug-autoconf@gnu.org>."
  20060. _ACEOF
  20061. cat >>$CONFIG_STATUS <<_ACEOF
  20062. ac_cs_version="\\
  20063. aria2c config.status 0.16.0b
  20064. configured by $0, generated by GNU Autoconf 2.61,
  20065. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20066. Copyright (C) 2006 Free Software Foundation, Inc.
  20067. This config.status script is free software; the Free Software Foundation
  20068. gives unlimited permission to copy, distribute and modify it."
  20069. ac_pwd='$ac_pwd'
  20070. srcdir='$srcdir'
  20071. INSTALL='$INSTALL'
  20072. MKDIR_P='$MKDIR_P'
  20073. _ACEOF
  20074. cat >>$CONFIG_STATUS <<\_ACEOF
  20075. # If no file are specified by the user, then we need to provide default
  20076. # value. By we need to know if files were specified by the user.
  20077. ac_need_defaults=:
  20078. while test $# != 0
  20079. do
  20080. case $1 in
  20081. --*=*)
  20082. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20083. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20084. ac_shift=:
  20085. ;;
  20086. *)
  20087. ac_option=$1
  20088. ac_optarg=$2
  20089. ac_shift=shift
  20090. ;;
  20091. esac
  20092. case $ac_option in
  20093. # Handling of the options.
  20094. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20095. ac_cs_recheck=: ;;
  20096. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20097. echo "$ac_cs_version"; exit ;;
  20098. --debug | --debu | --deb | --de | --d | -d )
  20099. debug=: ;;
  20100. --file | --fil | --fi | --f )
  20101. $ac_shift
  20102. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20103. ac_need_defaults=false;;
  20104. --header | --heade | --head | --hea )
  20105. $ac_shift
  20106. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20107. ac_need_defaults=false;;
  20108. --he | --h)
  20109. # Conflict between --help and --header
  20110. { echo "$as_me: error: ambiguous option: $1
  20111. Try \`$0 --help' for more information." >&2
  20112. { (exit 1); exit 1; }; };;
  20113. --help | --hel | -h )
  20114. echo "$ac_cs_usage"; exit ;;
  20115. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20116. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20117. ac_cs_silent=: ;;
  20118. # This is an error.
  20119. -*) { echo "$as_me: error: unrecognized option: $1
  20120. Try \`$0 --help' for more information." >&2
  20121. { (exit 1); exit 1; }; } ;;
  20122. *) ac_config_targets="$ac_config_targets $1"
  20123. ac_need_defaults=false ;;
  20124. esac
  20125. shift
  20126. done
  20127. ac_configure_extra_args=
  20128. if $ac_cs_silent; then
  20129. exec 6>/dev/null
  20130. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20131. fi
  20132. _ACEOF
  20133. cat >>$CONFIG_STATUS <<_ACEOF
  20134. if \$ac_cs_recheck; then
  20135. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20136. CONFIG_SHELL=$SHELL
  20137. export CONFIG_SHELL
  20138. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20139. fi
  20140. _ACEOF
  20141. cat >>$CONFIG_STATUS <<\_ACEOF
  20142. exec 5>>config.log
  20143. {
  20144. echo
  20145. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20146. ## Running $as_me. ##
  20147. _ASBOX
  20148. echo "$ac_log"
  20149. } >&5
  20150. _ACEOF
  20151. cat >>$CONFIG_STATUS <<_ACEOF
  20152. #
  20153. # INIT-COMMANDS
  20154. #
  20155. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20156. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20157. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20158. # from automake < 1.5.
  20159. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20160. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20161. LINGUAS="${LINGUAS-%UNSET%}"
  20162. _ACEOF
  20163. cat >>$CONFIG_STATUS <<\_ACEOF
  20164. # Handling of arguments.
  20165. for ac_config_target in $ac_config_targets
  20166. do
  20167. case $ac_config_target in
  20168. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20169. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20170. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20171. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20172. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20173. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20174. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20175. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20176. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20177. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20178. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20179. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20180. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20181. { (exit 1); exit 1; }; };;
  20182. esac
  20183. done
  20184. # If the user did not use the arguments to specify the items to instantiate,
  20185. # then the envvar interface is used. Set only those that are not.
  20186. # We use the long form for the default assignment because of an extremely
  20187. # bizarre bug on SunOS 4.1.3.
  20188. if $ac_need_defaults; then
  20189. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20190. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20191. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20192. fi
  20193. # Have a temporary directory for convenience. Make it in the build tree
  20194. # simply because there is no reason against having it here, and in addition,
  20195. # creating and moving files from /tmp can sometimes cause problems.
  20196. # Hook for its removal unless debugging.
  20197. # Note that there is a small window in which the directory will not be cleaned:
  20198. # after its creation but before its name has been assigned to `$tmp'.
  20199. $debug ||
  20200. {
  20201. tmp=
  20202. trap 'exit_status=$?
  20203. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20204. ' 0
  20205. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20206. }
  20207. # Create a (secure) tmp directory for tmp files.
  20208. {
  20209. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20210. test -n "$tmp" && test -d "$tmp"
  20211. } ||
  20212. {
  20213. tmp=./conf$$-$RANDOM
  20214. (umask 077 && mkdir "$tmp")
  20215. } ||
  20216. {
  20217. echo "$me: cannot create a temporary directory in ." >&2
  20218. { (exit 1); exit 1; }
  20219. }
  20220. #
  20221. # Set up the sed scripts for CONFIG_FILES section.
  20222. #
  20223. # No need to generate the scripts if there are no CONFIG_FILES.
  20224. # This happens for instance when ./config.status config.h
  20225. if test -n "$CONFIG_FILES"; then
  20226. _ACEOF
  20227. ac_delim='%!_!# '
  20228. for ac_last_try in false false false false false :; do
  20229. cat >conf$$subs.sed <<_ACEOF
  20230. SHELL!$SHELL$ac_delim
  20231. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20232. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20233. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20234. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20235. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20236. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20237. exec_prefix!$exec_prefix$ac_delim
  20238. prefix!$prefix$ac_delim
  20239. program_transform_name!$program_transform_name$ac_delim
  20240. bindir!$bindir$ac_delim
  20241. sbindir!$sbindir$ac_delim
  20242. libexecdir!$libexecdir$ac_delim
  20243. datarootdir!$datarootdir$ac_delim
  20244. datadir!$datadir$ac_delim
  20245. sysconfdir!$sysconfdir$ac_delim
  20246. sharedstatedir!$sharedstatedir$ac_delim
  20247. localstatedir!$localstatedir$ac_delim
  20248. includedir!$includedir$ac_delim
  20249. oldincludedir!$oldincludedir$ac_delim
  20250. docdir!$docdir$ac_delim
  20251. infodir!$infodir$ac_delim
  20252. htmldir!$htmldir$ac_delim
  20253. dvidir!$dvidir$ac_delim
  20254. pdfdir!$pdfdir$ac_delim
  20255. psdir!$psdir$ac_delim
  20256. libdir!$libdir$ac_delim
  20257. localedir!$localedir$ac_delim
  20258. mandir!$mandir$ac_delim
  20259. DEFS!$DEFS$ac_delim
  20260. ECHO_C!$ECHO_C$ac_delim
  20261. ECHO_N!$ECHO_N$ac_delim
  20262. ECHO_T!$ECHO_T$ac_delim
  20263. LIBS!$LIBS$ac_delim
  20264. build_alias!$build_alias$ac_delim
  20265. host_alias!$host_alias$ac_delim
  20266. target_alias!$target_alias$ac_delim
  20267. build!$build$ac_delim
  20268. build_cpu!$build_cpu$ac_delim
  20269. build_vendor!$build_vendor$ac_delim
  20270. build_os!$build_os$ac_delim
  20271. host!$host$ac_delim
  20272. host_cpu!$host_cpu$ac_delim
  20273. host_vendor!$host_vendor$ac_delim
  20274. host_os!$host_os$ac_delim
  20275. target!$target$ac_delim
  20276. target_cpu!$target_cpu$ac_delim
  20277. target_vendor!$target_vendor$ac_delim
  20278. target_os!$target_os$ac_delim
  20279. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20280. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20281. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20282. am__isrc!$am__isrc$ac_delim
  20283. CYGPATH_W!$CYGPATH_W$ac_delim
  20284. PACKAGE!$PACKAGE$ac_delim
  20285. VERSION!$VERSION$ac_delim
  20286. ACLOCAL!$ACLOCAL$ac_delim
  20287. AUTOCONF!$AUTOCONF$ac_delim
  20288. AUTOMAKE!$AUTOMAKE$ac_delim
  20289. AUTOHEADER!$AUTOHEADER$ac_delim
  20290. MAKEINFO!$MAKEINFO$ac_delim
  20291. install_sh!$install_sh$ac_delim
  20292. STRIP!$STRIP$ac_delim
  20293. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20294. mkdir_p!$mkdir_p$ac_delim
  20295. AWK!$AWK$ac_delim
  20296. SET_MAKE!$SET_MAKE$ac_delim
  20297. am__leading_dot!$am__leading_dot$ac_delim
  20298. AMTAR!$AMTAR$ac_delim
  20299. am__tar!$am__tar$ac_delim
  20300. am__untar!$am__untar$ac_delim
  20301. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20302. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20303. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20304. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20305. CXX!$CXX$ac_delim
  20306. CXXFLAGS!$CXXFLAGS$ac_delim
  20307. LDFLAGS!$LDFLAGS$ac_delim
  20308. CPPFLAGS!$CPPFLAGS$ac_delim
  20309. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20310. EXEEXT!$EXEEXT$ac_delim
  20311. OBJEXT!$OBJEXT$ac_delim
  20312. DEPDIR!$DEPDIR$ac_delim
  20313. am__include!$am__include$ac_delim
  20314. am__quote!$am__quote$ac_delim
  20315. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20316. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20317. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20318. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20319. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20320. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20321. CC!$CC$ac_delim
  20322. CFLAGS!$CFLAGS$ac_delim
  20323. ac_ct_CC!$ac_ct_CC$ac_delim
  20324. CCDEPMODE!$CCDEPMODE$ac_delim
  20325. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20326. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20327. _ACEOF
  20328. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20329. break
  20330. elif $ac_last_try; then
  20331. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20332. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20333. { (exit 1); exit 1; }; }
  20334. else
  20335. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20336. fi
  20337. done
  20338. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20339. if test -n "$ac_eof"; then
  20340. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20341. ac_eof=`expr $ac_eof + 1`
  20342. fi
  20343. cat >>$CONFIG_STATUS <<_ACEOF
  20344. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20345. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20346. _ACEOF
  20347. sed '
  20348. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20349. s/^/s,@/; s/!/@,|#_!!_#|/
  20350. :n
  20351. t n
  20352. s/'"$ac_delim"'$/,g/; t
  20353. s/$/\\/; p
  20354. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20355. ' >>$CONFIG_STATUS <conf$$subs.sed
  20356. rm -f conf$$subs.sed
  20357. cat >>$CONFIG_STATUS <<_ACEOF
  20358. CEOF$ac_eof
  20359. _ACEOF
  20360. ac_delim='%!_!# '
  20361. for ac_last_try in false false false false false :; do
  20362. cat >conf$$subs.sed <<_ACEOF
  20363. RANLIB!$RANLIB$ac_delim
  20364. YACC!$YACC$ac_delim
  20365. YFLAGS!$YFLAGS$ac_delim
  20366. CXXCPP!$CXXCPP$ac_delim
  20367. GREP!$GREP$ac_delim
  20368. EGREP!$EGREP$ac_delim
  20369. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20370. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20371. XML_LIBS!$XML_LIBS$ac_delim
  20372. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20373. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20374. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20375. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20376. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20377. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20378. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20379. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20380. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20381. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20382. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20383. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20384. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20385. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20386. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20387. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20388. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20389. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20390. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20391. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20392. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20393. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20394. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20395. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20396. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20397. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20398. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20399. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20400. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20401. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20402. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20403. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20404. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20405. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20406. ALLOCA!$ALLOCA$ac_delim
  20407. USE_NLS!$USE_NLS$ac_delim
  20408. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20409. MSGFMT!$MSGFMT$ac_delim
  20410. GMSGFMT!$GMSGFMT$ac_delim
  20411. MSGFMT_015!$MSGFMT_015$ac_delim
  20412. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20413. XGETTEXT!$XGETTEXT$ac_delim
  20414. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20415. MSGMERGE!$MSGMERGE$ac_delim
  20416. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20417. GLIBC2!$GLIBC2$ac_delim
  20418. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20419. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20420. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20421. LIBPTH!$LIBPTH$ac_delim
  20422. LTLIBPTH!$LTLIBPTH$ac_delim
  20423. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20424. LIBTHREAD!$LIBTHREAD$ac_delim
  20425. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20426. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20427. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20428. LIBICONV!$LIBICONV$ac_delim
  20429. LTLIBICONV!$LTLIBICONV$ac_delim
  20430. INTLBISON!$INTLBISON$ac_delim
  20431. GLIBC21!$GLIBC21$ac_delim
  20432. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20433. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20434. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20435. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20436. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20437. WOE32DLL!$WOE32DLL$ac_delim
  20438. WOE32!$WOE32$ac_delim
  20439. WINDRES!$WINDRES$ac_delim
  20440. LTLIBC!$LTLIBC$ac_delim
  20441. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20442. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20443. CATOBJEXT!$CATOBJEXT$ac_delim
  20444. DATADIRNAME!$DATADIRNAME$ac_delim
  20445. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20446. GENCAT!$GENCAT$ac_delim
  20447. INTLOBJS!$INTLOBJS$ac_delim
  20448. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20449. INTLLIBS!$INTLLIBS$ac_delim
  20450. LIBINTL!$LIBINTL$ac_delim
  20451. LTLIBINTL!$LTLIBINTL$ac_delim
  20452. POSUB!$POSUB$ac_delim
  20453. LIBOBJS!$LIBOBJS$ac_delim
  20454. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20455. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20456. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20457. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20458. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20459. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20460. _ACEOF
  20461. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20462. break
  20463. elif $ac_last_try; then
  20464. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20465. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20466. { (exit 1); exit 1; }; }
  20467. else
  20468. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20469. fi
  20470. done
  20471. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20472. if test -n "$ac_eof"; then
  20473. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20474. ac_eof=`expr $ac_eof + 1`
  20475. fi
  20476. cat >>$CONFIG_STATUS <<_ACEOF
  20477. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20478. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20479. _ACEOF
  20480. sed '
  20481. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20482. s/^/s,@/; s/!/@,|#_!!_#|/
  20483. :n
  20484. t n
  20485. s/'"$ac_delim"'$/,g/; t
  20486. s/$/\\/; p
  20487. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20488. ' >>$CONFIG_STATUS <conf$$subs.sed
  20489. rm -f conf$$subs.sed
  20490. cat >>$CONFIG_STATUS <<_ACEOF
  20491. CEOF$ac_eof
  20492. _ACEOF
  20493. ac_delim='%!_!# '
  20494. for ac_last_try in false false false false false :; do
  20495. cat >conf$$subs.sed <<_ACEOF
  20496. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20497. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20498. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20499. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20500. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20501. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20502. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20503. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20504. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20505. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20506. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20507. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20508. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20509. _ACEOF
  20510. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
  20511. break
  20512. elif $ac_last_try; then
  20513. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20514. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20515. { (exit 1); exit 1; }; }
  20516. else
  20517. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20518. fi
  20519. done
  20520. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20521. if test -n "$ac_eof"; then
  20522. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20523. ac_eof=`expr $ac_eof + 1`
  20524. fi
  20525. cat >>$CONFIG_STATUS <<_ACEOF
  20526. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20527. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20528. _ACEOF
  20529. sed '
  20530. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20531. s/^/s,@/; s/!/@,|#_!!_#|/
  20532. :n
  20533. t n
  20534. s/'"$ac_delim"'$/,g/; t
  20535. s/$/\\/; p
  20536. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20537. ' >>$CONFIG_STATUS <conf$$subs.sed
  20538. rm -f conf$$subs.sed
  20539. cat >>$CONFIG_STATUS <<_ACEOF
  20540. :end
  20541. s/|#_!!_#|//g
  20542. CEOF$ac_eof
  20543. _ACEOF
  20544. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20545. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20546. # trailing colons and then remove the whole line if VPATH becomes empty
  20547. # (actually we leave an empty line to preserve line numbers).
  20548. if test "x$srcdir" = x.; then
  20549. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20550. s/:*\$(srcdir):*/:/
  20551. s/:*\${srcdir}:*/:/
  20552. s/:*@srcdir@:*/:/
  20553. s/^\([^=]*=[ ]*\):*/\1/
  20554. s/:*$//
  20555. s/^[^=]*=[ ]*$//
  20556. }'
  20557. fi
  20558. cat >>$CONFIG_STATUS <<\_ACEOF
  20559. fi # test -n "$CONFIG_FILES"
  20560. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20561. do
  20562. case $ac_tag in
  20563. :[FHLC]) ac_mode=$ac_tag; continue;;
  20564. esac
  20565. case $ac_mode$ac_tag in
  20566. :[FHL]*:*);;
  20567. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20568. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20569. { (exit 1); exit 1; }; };;
  20570. :[FH]-) ac_tag=-:-;;
  20571. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20572. esac
  20573. ac_save_IFS=$IFS
  20574. IFS=:
  20575. set x $ac_tag
  20576. IFS=$ac_save_IFS
  20577. shift
  20578. ac_file=$1
  20579. shift
  20580. case $ac_mode in
  20581. :L) ac_source=$1;;
  20582. :[FH])
  20583. ac_file_inputs=
  20584. for ac_f
  20585. do
  20586. case $ac_f in
  20587. -) ac_f="$tmp/stdin";;
  20588. *) # Look for the file first in the build tree, then in the source tree
  20589. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20590. # because $ac_f cannot contain `:'.
  20591. test -f "$ac_f" ||
  20592. case $ac_f in
  20593. [\\/$]*) false;;
  20594. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20595. esac ||
  20596. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20597. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20598. { (exit 1); exit 1; }; };;
  20599. esac
  20600. ac_file_inputs="$ac_file_inputs $ac_f"
  20601. done
  20602. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20603. # use $as_me), people would be surprised to read:
  20604. # /* config.h. Generated by config.status. */
  20605. configure_input="Generated from "`IFS=:
  20606. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20607. if test x"$ac_file" != x-; then
  20608. configure_input="$ac_file. $configure_input"
  20609. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20610. echo "$as_me: creating $ac_file" >&6;}
  20611. fi
  20612. case $ac_tag in
  20613. *:-:* | *:-) cat >"$tmp/stdin";;
  20614. esac
  20615. ;;
  20616. esac
  20617. ac_dir=`$as_dirname -- "$ac_file" ||
  20618. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20619. X"$ac_file" : 'X\(//\)[^/]' \| \
  20620. X"$ac_file" : 'X\(//\)$' \| \
  20621. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20622. echo X"$ac_file" |
  20623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20624. s//\1/
  20625. q
  20626. }
  20627. /^X\(\/\/\)[^/].*/{
  20628. s//\1/
  20629. q
  20630. }
  20631. /^X\(\/\/\)$/{
  20632. s//\1/
  20633. q
  20634. }
  20635. /^X\(\/\).*/{
  20636. s//\1/
  20637. q
  20638. }
  20639. s/.*/./; q'`
  20640. { as_dir="$ac_dir"
  20641. case $as_dir in #(
  20642. -*) as_dir=./$as_dir;;
  20643. esac
  20644. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20645. as_dirs=
  20646. while :; do
  20647. case $as_dir in #(
  20648. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20649. *) as_qdir=$as_dir;;
  20650. esac
  20651. as_dirs="'$as_qdir' $as_dirs"
  20652. as_dir=`$as_dirname -- "$as_dir" ||
  20653. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20654. X"$as_dir" : 'X\(//\)[^/]' \| \
  20655. X"$as_dir" : 'X\(//\)$' \| \
  20656. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20657. echo X"$as_dir" |
  20658. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20659. s//\1/
  20660. q
  20661. }
  20662. /^X\(\/\/\)[^/].*/{
  20663. s//\1/
  20664. q
  20665. }
  20666. /^X\(\/\/\)$/{
  20667. s//\1/
  20668. q
  20669. }
  20670. /^X\(\/\).*/{
  20671. s//\1/
  20672. q
  20673. }
  20674. s/.*/./; q'`
  20675. test -d "$as_dir" && break
  20676. done
  20677. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20678. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20679. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20680. { (exit 1); exit 1; }; }; }
  20681. ac_builddir=.
  20682. case "$ac_dir" in
  20683. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20684. *)
  20685. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20686. # A ".." for each directory in $ac_dir_suffix.
  20687. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20688. case $ac_top_builddir_sub in
  20689. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20690. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20691. esac ;;
  20692. esac
  20693. ac_abs_top_builddir=$ac_pwd
  20694. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20695. # for backward compatibility:
  20696. ac_top_builddir=$ac_top_build_prefix
  20697. case $srcdir in
  20698. .) # We are building in place.
  20699. ac_srcdir=.
  20700. ac_top_srcdir=$ac_top_builddir_sub
  20701. ac_abs_top_srcdir=$ac_pwd ;;
  20702. [\\/]* | ?:[\\/]* ) # Absolute name.
  20703. ac_srcdir=$srcdir$ac_dir_suffix;
  20704. ac_top_srcdir=$srcdir
  20705. ac_abs_top_srcdir=$srcdir ;;
  20706. *) # Relative name.
  20707. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20708. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20709. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20710. esac
  20711. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20712. case $ac_mode in
  20713. :F)
  20714. #
  20715. # CONFIG_FILE
  20716. #
  20717. case $INSTALL in
  20718. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20719. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20720. esac
  20721. ac_MKDIR_P=$MKDIR_P
  20722. case $MKDIR_P in
  20723. [\\/$]* | ?:[\\/]* ) ;;
  20724. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20725. esac
  20726. _ACEOF
  20727. cat >>$CONFIG_STATUS <<\_ACEOF
  20728. # If the template does not know about datarootdir, expand it.
  20729. # FIXME: This hack should be removed a few years after 2.60.
  20730. ac_datarootdir_hack=; ac_datarootdir_seen=
  20731. case `sed -n '/datarootdir/ {
  20732. p
  20733. q
  20734. }
  20735. /@datadir@/p
  20736. /@docdir@/p
  20737. /@infodir@/p
  20738. /@localedir@/p
  20739. /@mandir@/p
  20740. ' $ac_file_inputs` in
  20741. *datarootdir*) ac_datarootdir_seen=yes;;
  20742. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20743. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20744. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20745. _ACEOF
  20746. cat >>$CONFIG_STATUS <<_ACEOF
  20747. ac_datarootdir_hack='
  20748. s&@datadir@&$datadir&g
  20749. s&@docdir@&$docdir&g
  20750. s&@infodir@&$infodir&g
  20751. s&@localedir@&$localedir&g
  20752. s&@mandir@&$mandir&g
  20753. s&\\\${datarootdir}&$datarootdir&g' ;;
  20754. esac
  20755. _ACEOF
  20756. # Neutralize VPATH when `$srcdir' = `.'.
  20757. # Shell code in configure.ac might set extrasub.
  20758. # FIXME: do we really want to maintain this feature?
  20759. cat >>$CONFIG_STATUS <<_ACEOF
  20760. sed "$ac_vpsub
  20761. $extrasub
  20762. _ACEOF
  20763. cat >>$CONFIG_STATUS <<\_ACEOF
  20764. :t
  20765. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20766. s&@configure_input@&$configure_input&;t t
  20767. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20768. s&@srcdir@&$ac_srcdir&;t t
  20769. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20770. s&@top_srcdir@&$ac_top_srcdir&;t t
  20771. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20772. s&@builddir@&$ac_builddir&;t t
  20773. s&@abs_builddir@&$ac_abs_builddir&;t t
  20774. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20775. s&@INSTALL@&$ac_INSTALL&;t t
  20776. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20777. $ac_datarootdir_hack
  20778. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20779. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20780. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20781. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20782. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20783. which seems to be undefined. Please make sure it is defined." >&5
  20784. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20785. which seems to be undefined. Please make sure it is defined." >&2;}
  20786. rm -f "$tmp/stdin"
  20787. case $ac_file in
  20788. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20789. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20790. esac
  20791. ;;
  20792. :H)
  20793. #
  20794. # CONFIG_HEADER
  20795. #
  20796. _ACEOF
  20797. # Transform confdefs.h into a sed script `conftest.defines', that
  20798. # substitutes the proper values into config.h.in to produce config.h.
  20799. rm -f conftest.defines conftest.tail
  20800. # First, append a space to every undef/define line, to ease matching.
  20801. echo 's/$/ /' >conftest.defines
  20802. # Then, protect against being on the right side of a sed subst, or in
  20803. # an unquoted here document, in config.status. If some macros were
  20804. # called several times there might be several #defines for the same
  20805. # symbol, which is useless. But do not sort them, since the last
  20806. # AC_DEFINE must be honored.
  20807. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20808. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20809. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20810. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20811. # just an empty string.
  20812. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20813. ac_dB='\\)[ (].*,\\1define\\2'
  20814. ac_dC=' '
  20815. ac_dD=' ,'
  20816. uniq confdefs.h |
  20817. sed -n '
  20818. t rset
  20819. :rset
  20820. s/^[ ]*#[ ]*define[ ][ ]*//
  20821. t ok
  20822. d
  20823. :ok
  20824. s/[\\&,]/\\&/g
  20825. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20826. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20827. ' >>conftest.defines
  20828. # Remove the space that was appended to ease matching.
  20829. # Then replace #undef with comments. This is necessary, for
  20830. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20831. # on some systems where configure will not decide to define it.
  20832. # (The regexp can be short, since the line contains either #define or #undef.)
  20833. echo 's/ $//
  20834. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20835. # Break up conftest.defines:
  20836. ac_max_sed_lines=50
  20837. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20838. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20839. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20840. # et cetera.
  20841. ac_in='$ac_file_inputs'
  20842. ac_out='"$tmp/out1"'
  20843. ac_nxt='"$tmp/out2"'
  20844. while :
  20845. do
  20846. # Write a here document:
  20847. cat >>$CONFIG_STATUS <<_ACEOF
  20848. # First, check the format of the line:
  20849. cat >"\$tmp/defines.sed" <<\\CEOF
  20850. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20851. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20852. b
  20853. :def
  20854. _ACEOF
  20855. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20856. echo 'CEOF
  20857. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20858. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20859. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20860. grep . conftest.tail >/dev/null || break
  20861. rm -f conftest.defines
  20862. mv conftest.tail conftest.defines
  20863. done
  20864. rm -f conftest.defines conftest.tail
  20865. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20866. cat >>$CONFIG_STATUS <<\_ACEOF
  20867. if test x"$ac_file" != x-; then
  20868. echo "/* $configure_input */" >"$tmp/config.h"
  20869. cat "$ac_result" >>"$tmp/config.h"
  20870. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20871. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20872. echo "$as_me: $ac_file is unchanged" >&6;}
  20873. else
  20874. rm -f $ac_file
  20875. mv "$tmp/config.h" $ac_file
  20876. fi
  20877. else
  20878. echo "/* $configure_input */"
  20879. cat "$ac_result"
  20880. fi
  20881. rm -f "$tmp/out12"
  20882. # Compute $ac_file's index in $config_headers.
  20883. _am_arg=$ac_file
  20884. _am_stamp_count=1
  20885. for _am_header in $config_headers :; do
  20886. case $_am_header in
  20887. $_am_arg | $_am_arg:* )
  20888. break ;;
  20889. * )
  20890. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20891. esac
  20892. done
  20893. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20894. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20895. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20896. X"$_am_arg" : 'X\(//\)$' \| \
  20897. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20898. echo X"$_am_arg" |
  20899. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20900. s//\1/
  20901. q
  20902. }
  20903. /^X\(\/\/\)[^/].*/{
  20904. s//\1/
  20905. q
  20906. }
  20907. /^X\(\/\/\)$/{
  20908. s//\1/
  20909. q
  20910. }
  20911. /^X\(\/\).*/{
  20912. s//\1/
  20913. q
  20914. }
  20915. s/.*/./; q'`/stamp-h$_am_stamp_count
  20916. ;;
  20917. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20918. echo "$as_me: executing $ac_file commands" >&6;}
  20919. ;;
  20920. esac
  20921. case $ac_file$ac_mode in
  20922. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20923. # Strip MF so we end up with the name of the file.
  20924. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20925. # Check whether this is an Automake generated Makefile or not.
  20926. # We used to match only the files named `Makefile.in', but
  20927. # some people rename them; so instead we look at the file content.
  20928. # Grep'ing the first line is not enough: some people post-process
  20929. # each Makefile.in and add a new line on top of each file to say so.
  20930. # Grep'ing the whole file is not good either: AIX grep has a line
  20931. # limit of 2048, but all sed's we know have understand at least 4000.
  20932. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20933. dirpart=`$as_dirname -- "$mf" ||
  20934. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20935. X"$mf" : 'X\(//\)[^/]' \| \
  20936. X"$mf" : 'X\(//\)$' \| \
  20937. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20938. echo X"$mf" |
  20939. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20940. s//\1/
  20941. q
  20942. }
  20943. /^X\(\/\/\)[^/].*/{
  20944. s//\1/
  20945. q
  20946. }
  20947. /^X\(\/\/\)$/{
  20948. s//\1/
  20949. q
  20950. }
  20951. /^X\(\/\).*/{
  20952. s//\1/
  20953. q
  20954. }
  20955. s/.*/./; q'`
  20956. else
  20957. continue
  20958. fi
  20959. # Extract the definition of DEPDIR, am__include, and am__quote
  20960. # from the Makefile without running `make'.
  20961. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20962. test -z "$DEPDIR" && continue
  20963. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20964. test -z "am__include" && continue
  20965. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20966. # When using ansi2knr, U may be empty or an underscore; expand it
  20967. U=`sed -n 's/^U = //p' < "$mf"`
  20968. # Find all dependency output files, they are included files with
  20969. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20970. # simplest approach to changing $(DEPDIR) to its actual value in the
  20971. # expansion.
  20972. for file in `sed -n "
  20973. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20974. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20975. # Make sure the directory exists.
  20976. test -f "$dirpart/$file" && continue
  20977. fdir=`$as_dirname -- "$file" ||
  20978. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20979. X"$file" : 'X\(//\)[^/]' \| \
  20980. X"$file" : 'X\(//\)$' \| \
  20981. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20982. echo X"$file" |
  20983. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20984. s//\1/
  20985. q
  20986. }
  20987. /^X\(\/\/\)[^/].*/{
  20988. s//\1/
  20989. q
  20990. }
  20991. /^X\(\/\/\)$/{
  20992. s//\1/
  20993. q
  20994. }
  20995. /^X\(\/\).*/{
  20996. s//\1/
  20997. q
  20998. }
  20999. s/.*/./; q'`
  21000. { as_dir=$dirpart/$fdir
  21001. case $as_dir in #(
  21002. -*) as_dir=./$as_dir;;
  21003. esac
  21004. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21005. as_dirs=
  21006. while :; do
  21007. case $as_dir in #(
  21008. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21009. *) as_qdir=$as_dir;;
  21010. esac
  21011. as_dirs="'$as_qdir' $as_dirs"
  21012. as_dir=`$as_dirname -- "$as_dir" ||
  21013. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21014. X"$as_dir" : 'X\(//\)[^/]' \| \
  21015. X"$as_dir" : 'X\(//\)$' \| \
  21016. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21017. echo X"$as_dir" |
  21018. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21019. s//\1/
  21020. q
  21021. }
  21022. /^X\(\/\/\)[^/].*/{
  21023. s//\1/
  21024. q
  21025. }
  21026. /^X\(\/\/\)$/{
  21027. s//\1/
  21028. q
  21029. }
  21030. /^X\(\/\).*/{
  21031. s//\1/
  21032. q
  21033. }
  21034. s/.*/./; q'`
  21035. test -d "$as_dir" && break
  21036. done
  21037. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21038. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21039. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21040. { (exit 1); exit 1; }; }; }
  21041. # echo "creating $dirpart/$file"
  21042. echo '# dummy' > "$dirpart/$file"
  21043. done
  21044. done
  21045. ;;
  21046. "po-directories":C)
  21047. for ac_file in $CONFIG_FILES; do
  21048. # Support "outfile[:infile[:infile...]]"
  21049. case "$ac_file" in
  21050. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21051. esac
  21052. # PO directories have a Makefile.in generated from Makefile.in.in.
  21053. case "$ac_file" in */Makefile.in)
  21054. # Adjust a relative srcdir.
  21055. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21056. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21057. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21058. # In autoconf-2.13 it is called $ac_given_srcdir.
  21059. # In autoconf-2.50 it is called $srcdir.
  21060. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21061. case "$ac_given_srcdir" in
  21062. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21063. /*) top_srcdir="$ac_given_srcdir" ;;
  21064. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21065. esac
  21066. # Treat a directory as a PO directory if and only if it has a
  21067. # POTFILES.in file. This allows packages to have multiple PO
  21068. # directories under different names or in different locations.
  21069. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21070. rm -f "$ac_dir/POTFILES"
  21071. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21072. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21073. POMAKEFILEDEPS="POTFILES.in"
  21074. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21075. # on $ac_dir but don't depend on user-specified configuration
  21076. # parameters.
  21077. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21078. # The LINGUAS file contains the set of available languages.
  21079. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21080. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21081. fi
  21082. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21083. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21084. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21085. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21086. else
  21087. # The set of available languages was given in configure.in.
  21088. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21089. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21090. fi
  21091. # Compute POFILES
  21092. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21093. # Compute UPDATEPOFILES
  21094. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21095. # Compute DUMMYPOFILES
  21096. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21097. # Compute GMOFILES
  21098. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21099. case "$ac_given_srcdir" in
  21100. .) srcdirpre= ;;
  21101. *) srcdirpre='$(srcdir)/' ;;
  21102. esac
  21103. POFILES=
  21104. UPDATEPOFILES=
  21105. DUMMYPOFILES=
  21106. GMOFILES=
  21107. for lang in $ALL_LINGUAS; do
  21108. POFILES="$POFILES $srcdirpre$lang.po"
  21109. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21110. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21111. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21112. done
  21113. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21114. # environment variable.
  21115. INST_LINGUAS=
  21116. if test -n "$ALL_LINGUAS"; then
  21117. for presentlang in $ALL_LINGUAS; do
  21118. useit=no
  21119. if test "%UNSET%" != "$LINGUAS"; then
  21120. desiredlanguages="$LINGUAS"
  21121. else
  21122. desiredlanguages="$ALL_LINGUAS"
  21123. fi
  21124. for desiredlang in $desiredlanguages; do
  21125. # Use the presentlang catalog if desiredlang is
  21126. # a. equal to presentlang, or
  21127. # b. a variant of presentlang (because in this case,
  21128. # presentlang can be used as a fallback for messages
  21129. # which are not translated in the desiredlang catalog).
  21130. case "$desiredlang" in
  21131. "$presentlang"*) useit=yes;;
  21132. esac
  21133. done
  21134. if test $useit = yes; then
  21135. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21136. fi
  21137. done
  21138. fi
  21139. CATALOGS=
  21140. if test -n "$INST_LINGUAS"; then
  21141. for lang in $INST_LINGUAS; do
  21142. CATALOGS="$CATALOGS $lang.gmo"
  21143. done
  21144. fi
  21145. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21146. 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"
  21147. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21148. if test -f "$f"; then
  21149. case "$f" in
  21150. *.orig | *.bak | *~) ;;
  21151. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21152. esac
  21153. fi
  21154. done
  21155. fi
  21156. ;;
  21157. esac
  21158. done ;;
  21159. esac
  21160. done # for ac_tag
  21161. { (exit 0); exit 0; }
  21162. _ACEOF
  21163. chmod +x $CONFIG_STATUS
  21164. ac_clean_files=$ac_clean_files_save
  21165. # configure is writing to config.log, and then calls config.status.
  21166. # config.status does its own redirection, appending to config.log.
  21167. # Unfortunately, on DOS this fails, as config.log is still kept open
  21168. # by configure, so config.status won't be able to write to it; its
  21169. # output is simply discarded. So we exec the FD to /dev/null,
  21170. # effectively closing config.log, so it can be properly (re)opened and
  21171. # appended to by config.status. When coming back to configure, we
  21172. # need to make the FD available again.
  21173. if test "$no_create" != yes; then
  21174. ac_cs_success=:
  21175. ac_config_status_args=
  21176. test "$silent" = yes &&
  21177. ac_config_status_args="$ac_config_status_args --quiet"
  21178. exec 5>/dev/null
  21179. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21180. exec 5>>config.log
  21181. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21182. # would make configure fail if this is the last instruction.
  21183. $ac_cs_success || { (exit 1); exit 1; }
  21184. fi
  21185. echo " "
  21186. echo "Build: $build"
  21187. echo "Target: $target"
  21188. echo "Install prefix: $prefix"
  21189. echo "CFLAGS: $CFLAGS"
  21190. echo "CPPFLAGS: $CPPFLAGS"
  21191. echo "LDFLAGS: $LDFLAGS"
  21192. echo "LIBS: $LIBS"
  21193. echo "SQLite3: $have_sqlite3"
  21194. echo "GnuTLS: $have_libgnutls"
  21195. echo "OpenSSL: $have_openssl"
  21196. echo "LibXML2: $have_libxml2"
  21197. echo "LibExpat: $have_libexpat"
  21198. echo "LibAres: $have_libares"
  21199. echo "LibCares: $have_libcares"
  21200. echo "Libz: $have_libz"
  21201. echo "Bittorrent: $enable_bittorrent"
  21202. echo "Metalink: $enable_metalink"