configure 651 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.15.1+1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.15.1+1'
  496. PACKAGE_STRING='aria2c 0.15.1+1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. LIBGNUTLS_CONFIG
  646. LIBGNUTLS_CFLAGS
  647. LIBGNUTLS_LIBS
  648. LIBGCRYPT_CONFIG
  649. LIBGCRYPT_CFLAGS
  650. LIBGCRYPT_LIBS
  651. OPENSSL_LIBS
  652. OPENSSL_CFLAGS
  653. LIBCARES_LIBS
  654. LIBCARES_CPPFLAGS
  655. LIBARES_LIBS
  656. LIBARES_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBZ_CPPFLAGS
  659. ENABLE_MESSAGE_DIGEST_TRUE
  660. ENABLE_MESSAGE_DIGEST_FALSE
  661. ENABLE_BITTORRENT_TRUE
  662. ENABLE_BITTORRENT_FALSE
  663. ENABLE_METALINK_TRUE
  664. ENABLE_METALINK_FALSE
  665. ENABLE_LIBXML2_TRUE
  666. ENABLE_LIBXML2_FALSE
  667. ENABLE_LIBEXPAT_TRUE
  668. ENABLE_LIBEXPAT_FALSE
  669. ENABLE_ASYNC_DNS_TRUE
  670. ENABLE_ASYNC_DNS_FALSE
  671. HAVE_LIBZ_TRUE
  672. HAVE_LIBZ_FALSE
  673. ALLOCA
  674. USE_NLS
  675. GETTEXT_MACRO_VERSION
  676. MSGFMT
  677. GMSGFMT
  678. MSGFMT_015
  679. GMSGFMT_015
  680. XGETTEXT
  681. XGETTEXT_015
  682. MSGMERGE
  683. XGETTEXT_EXTRA_OPTIONS
  684. GLIBC2
  685. CFLAG_VISIBILITY
  686. HAVE_VISIBILITY
  687. PRI_MACROS_BROKEN
  688. LIBPTH
  689. LTLIBPTH
  690. LIBPTH_PREFIX
  691. LIBTHREAD
  692. LTLIBTHREAD
  693. LIBMULTITHREAD
  694. LTLIBMULTITHREAD
  695. LIBICONV
  696. LTLIBICONV
  697. INTLBISON
  698. GLIBC21
  699. INTL_MACOSX_LIBS
  700. HAVE_POSIX_PRINTF
  701. HAVE_ASPRINTF
  702. HAVE_SNPRINTF
  703. HAVE_WPRINTF
  704. WOE32DLL
  705. WOE32
  706. WINDRES
  707. LTLIBC
  708. BUILD_INCLUDED_LIBINTL
  709. USE_INCLUDED_LIBINTL
  710. CATOBJEXT
  711. DATADIRNAME
  712. INSTOBJEXT
  713. GENCAT
  714. INTLOBJS
  715. INTL_LIBTOOL_SUFFIX_PREFIX
  716. INTLLIBS
  717. LIBINTL
  718. LTLIBINTL
  719. POSUB
  720. LIBOBJS
  721. HAVE_ASCTIME_R_TRUE
  722. HAVE_ASCTIME_R_FALSE
  723. HAVE_BASENAME_TRUE
  724. HAVE_BASENAME_FALSE
  725. HAVE_GAI_STRERROR_TRUE
  726. HAVE_GAI_STRERROR_FALSE
  727. HAVE_GETADDRINFO_TRUE
  728. HAVE_GETADDRINFO_FALSE
  729. HAVE_GETTIMEOFDAY_TRUE
  730. HAVE_GETTIMEOFDAY_FALSE
  731. HAVE_INET_ATON_TRUE
  732. HAVE_INET_ATON_FALSE
  733. HAVE_LOCALTIME_R_TRUE
  734. HAVE_LOCALTIME_R_FALSE
  735. HAVE_STRPTIME_TRUE
  736. HAVE_STRPTIME_FALSE
  737. HAVE_TIMEGM_TRUE
  738. HAVE_TIMEGM_FALSE
  739. LTLIBOBJS'
  740. ac_subst_files=''
  741. ac_precious_vars='build_alias
  742. host_alias
  743. target_alias
  744. CXX
  745. CXXFLAGS
  746. LDFLAGS
  747. LIBS
  748. CPPFLAGS
  749. CCC
  750. CC
  751. CFLAGS
  752. YACC
  753. YFLAGS
  754. CXXCPP'
  755. # Initialize some variables set by options.
  756. ac_init_help=
  757. ac_init_version=false
  758. # The variables have the same names as the options, with
  759. # dashes changed to underlines.
  760. cache_file=/dev/null
  761. exec_prefix=NONE
  762. no_create=
  763. no_recursion=
  764. prefix=NONE
  765. program_prefix=NONE
  766. program_suffix=NONE
  767. program_transform_name=s,x,x,
  768. silent=
  769. site=
  770. srcdir=
  771. verbose=
  772. x_includes=NONE
  773. x_libraries=NONE
  774. # Installation directory options.
  775. # These are left unexpanded so users can "make install exec_prefix=/foo"
  776. # and all the variables that are supposed to be based on exec_prefix
  777. # by default will actually change.
  778. # Use braces instead of parens because sh, perl, etc. also accept them.
  779. # (The list follows the same order as the GNU Coding Standards.)
  780. bindir='${exec_prefix}/bin'
  781. sbindir='${exec_prefix}/sbin'
  782. libexecdir='${exec_prefix}/libexec'
  783. datarootdir='${prefix}/share'
  784. datadir='${datarootdir}'
  785. sysconfdir='${prefix}/etc'
  786. sharedstatedir='${prefix}/com'
  787. localstatedir='${prefix}/var'
  788. includedir='${prefix}/include'
  789. oldincludedir='/usr/include'
  790. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  791. infodir='${datarootdir}/info'
  792. htmldir='${docdir}'
  793. dvidir='${docdir}'
  794. pdfdir='${docdir}'
  795. psdir='${docdir}'
  796. libdir='${exec_prefix}/lib'
  797. localedir='${datarootdir}/locale'
  798. mandir='${datarootdir}/man'
  799. ac_prev=
  800. ac_dashdash=
  801. for ac_option
  802. do
  803. # If the previous option needs an argument, assign it.
  804. if test -n "$ac_prev"; then
  805. eval $ac_prev=\$ac_option
  806. ac_prev=
  807. continue
  808. fi
  809. case $ac_option in
  810. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. # Accept the important Cygnus configure options, so we can diagnose typos.
  814. case $ac_dashdash$ac_option in
  815. --)
  816. ac_dashdash=yes ;;
  817. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  818. ac_prev=bindir ;;
  819. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  820. bindir=$ac_optarg ;;
  821. -build | --build | --buil | --bui | --bu)
  822. ac_prev=build_alias ;;
  823. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  824. build_alias=$ac_optarg ;;
  825. -cache-file | --cache-file | --cache-fil | --cache-fi \
  826. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  827. ac_prev=cache_file ;;
  828. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  829. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  830. cache_file=$ac_optarg ;;
  831. --config-cache | -C)
  832. cache_file=config.cache ;;
  833. -datadir | --datadir | --datadi | --datad)
  834. ac_prev=datadir ;;
  835. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  836. datadir=$ac_optarg ;;
  837. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  838. | --dataroo | --dataro | --datar)
  839. ac_prev=datarootdir ;;
  840. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  841. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  842. datarootdir=$ac_optarg ;;
  843. -disable-* | --disable-*)
  844. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  847. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  848. { (exit 1); exit 1; }; }
  849. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  850. eval enable_$ac_feature=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  863. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  864. { (exit 1); exit 1; }; }
  865. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  866. eval enable_$ac_feature=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1028. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1029. { (exit 1); exit 1; }; }
  1030. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1031. eval with_$ac_package=\$ac_optarg ;;
  1032. -without-* | --without-*)
  1033. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1036. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1037. { (exit 1); exit 1; }; }
  1038. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1039. eval with_$ac_package=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1056. Try \`$0 --help' for more information." >&2
  1057. { (exit 1); exit 1; }; }
  1058. ;;
  1059. *=*)
  1060. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1061. # Reject names that are not valid shell variable names.
  1062. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1063. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1064. { (exit 1); exit 1; }; }
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. { echo "$as_me: error: missing argument to $ac_option" >&2
  1079. { (exit 1); exit 1; }; }
  1080. fi
  1081. # Be sure to have absolute directory names.
  1082. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1083. datadir sysconfdir sharedstatedir localstatedir includedir \
  1084. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1085. libdir localedir mandir
  1086. do
  1087. eval ac_val=\$$ac_var
  1088. case $ac_val in
  1089. [\\/$]* | ?:[\\/]* ) continue;;
  1090. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1091. esac
  1092. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1093. { (exit 1); exit 1; }; }
  1094. done
  1095. # There might be people who depend on the old broken behavior: `$host'
  1096. # used to hold the argument of --host etc.
  1097. # FIXME: To remove some day.
  1098. build=$build_alias
  1099. host=$host_alias
  1100. target=$target_alias
  1101. # FIXME: To remove some day.
  1102. if test "x$host_alias" != x; then
  1103. if test "x$build_alias" = x; then
  1104. cross_compiling=maybe
  1105. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1106. If a cross compiler is detected then cross compile mode will be used." >&2
  1107. elif test "x$build_alias" != "x$host_alias"; then
  1108. cross_compiling=yes
  1109. fi
  1110. fi
  1111. ac_tool_prefix=
  1112. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1113. test "$silent" = yes && exec 6>/dev/null
  1114. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1115. ac_ls_di=`ls -di .` &&
  1116. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1117. { echo "$as_me: error: Working directory cannot be determined" >&2
  1118. { (exit 1); exit 1; }; }
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1121. { (exit 1); exit 1; }; }
  1122. # Find the source files, if location was not specified.
  1123. if test -z "$srcdir"; then
  1124. ac_srcdir_defaulted=yes
  1125. # Try the directory containing this script, then the parent directory.
  1126. ac_confdir=`$as_dirname -- "$0" ||
  1127. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1128. X"$0" : 'X\(//\)[^/]' \| \
  1129. X"$0" : 'X\(//\)$' \| \
  1130. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1131. echo X"$0" |
  1132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)[^/].*/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\).*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. s/.*/./; q'`
  1149. srcdir=$ac_confdir
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. srcdir=..
  1152. fi
  1153. else
  1154. ac_srcdir_defaulted=no
  1155. fi
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1158. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1159. { (exit 1); exit 1; }; }
  1160. fi
  1161. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1162. ac_abs_confdir=`(
  1163. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1164. { (exit 1); exit 1; }; }
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures aria2c 0.15.1+1 to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --libdir=DIR object code libraries [EPREFIX/lib]
  1222. --includedir=DIR C header files [PREFIX/include]
  1223. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1224. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1225. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1226. --infodir=DIR info documentation [DATAROOTDIR/info]
  1227. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1228. --mandir=DIR man documentation [DATAROOTDIR/man]
  1229. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1230. --htmldir=DIR html documentation [DOCDIR]
  1231. --dvidir=DIR dvi documentation [DOCDIR]
  1232. --pdfdir=DIR pdf documentation [DOCDIR]
  1233. --psdir=DIR ps documentation [DOCDIR]
  1234. _ACEOF
  1235. cat <<\_ACEOF
  1236. Program names:
  1237. --program-prefix=PREFIX prepend PREFIX to installed program names
  1238. --program-suffix=SUFFIX append SUFFIX to installed program names
  1239. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1240. System types:
  1241. --build=BUILD configure for building on BUILD [guessed]
  1242. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1243. --target=TARGET configure for building compilers for TARGET [HOST]
  1244. _ACEOF
  1245. fi
  1246. if test -n "$ac_init_help"; then
  1247. case $ac_init_help in
  1248. short | recursive ) echo "Configuration of aria2c 0.15.1+1:";;
  1249. esac
  1250. cat <<\_ACEOF
  1251. Optional Features:
  1252. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1253. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1254. --enable-bittorrent enable bittorrent support.
  1255. --enable-metalink enable metalink support.
  1256. --enable-epoll enable epoll support.
  1257. --disable-dependency-tracking speeds up one-time build
  1258. --enable-dependency-tracking do not reject slow dependency extractors
  1259. --disable-xmltest Do not try to compile and run a test LIBXML program
  1260. --disable-largefile omit support for large files
  1261. --disable-nls do not use Native Language Support
  1262. --enable-threads={posix|solaris|pth|win32}
  1263. specify multithreading API
  1264. --disable-threads build without multithread safety
  1265. --disable-rpath do not hardcode runtime library paths
  1266. Optional Packages:
  1267. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1268. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1269. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1270. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1271. --with-gnutls use gnutls if it is installed.
  1272. --with-openssl use openssl if it is installed.
  1273. --with-libxml2 use libxml2 if it is installed.
  1274. --with-libexpat use libexpat if it is installed.
  1275. --with-libares use libares if it is installed.
  1276. --with-libcares use libcares if it is installed.
  1277. --with-libz use libz if it is installed.
  1278. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1279. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1280. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1281. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1282. --with-libgcrypt-prefix=PFX
  1283. prefix where LIBGCRYPT is installed (optional)
  1284. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1285. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1286. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1287. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1288. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1289. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1290. --without-libpth-prefix don't search for libpth in includedir and libdir
  1291. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1292. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1293. --with-included-gettext use the GNU gettext library included here
  1294. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1295. --without-libintl-prefix don't search for libintl in includedir and libdir
  1296. Some influential environment variables:
  1297. CXX C++ compiler command
  1298. CXXFLAGS C++ compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CC C compiler command
  1305. CFLAGS C compiler flags
  1306. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1307. the first program found out of: `bison -y', `byacc', `yacc'.
  1308. YFLAGS The list of arguments that will be passed by default to $YACC.
  1309. This script will default YFLAGS to the empty string to avoid a
  1310. default value of `-d' given by some make applications.
  1311. CXXCPP C++ preprocessor
  1312. Use these variables to override the choices made by `configure' or to help
  1313. it to find libraries and programs with nonstandard names/locations.
  1314. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1315. _ACEOF
  1316. ac_status=$?
  1317. fi
  1318. if test "$ac_init_help" = "recursive"; then
  1319. # If there are subdirs, report their specific --help.
  1320. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1321. test -d "$ac_dir" || continue
  1322. ac_builddir=.
  1323. case "$ac_dir" in
  1324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *)
  1326. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1327. # A ".." for each directory in $ac_dir_suffix.
  1328. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1329. case $ac_top_builddir_sub in
  1330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1332. esac ;;
  1333. esac
  1334. ac_abs_top_builddir=$ac_pwd
  1335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1336. # for backward compatibility:
  1337. ac_top_builddir=$ac_top_build_prefix
  1338. case $srcdir in
  1339. .) # We are building in place.
  1340. ac_srcdir=.
  1341. ac_top_srcdir=$ac_top_builddir_sub
  1342. ac_abs_top_srcdir=$ac_pwd ;;
  1343. [\\/]* | ?:[\\/]* ) # Absolute name.
  1344. ac_srcdir=$srcdir$ac_dir_suffix;
  1345. ac_top_srcdir=$srcdir
  1346. ac_abs_top_srcdir=$srcdir ;;
  1347. *) # Relative name.
  1348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1351. esac
  1352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1353. cd "$ac_dir" || { ac_status=$?; continue; }
  1354. # Check for guested configure.
  1355. if test -f "$ac_srcdir/configure.gnu"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1358. elif test -f "$ac_srcdir/configure"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure" --help=recursive
  1361. else
  1362. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1363. fi || ac_status=$?
  1364. cd "$ac_pwd" || { ac_status=$?; break; }
  1365. done
  1366. fi
  1367. test -n "$ac_init_help" && exit $ac_status
  1368. if $ac_init_version; then
  1369. cat <<\_ACEOF
  1370. aria2c configure 0.15.1+1
  1371. generated by GNU Autoconf 2.61
  1372. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1373. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1374. This configure script is free software; the Free Software Foundation
  1375. gives unlimited permission to copy, distribute and modify it.
  1376. _ACEOF
  1377. exit
  1378. fi
  1379. cat >config.log <<_ACEOF
  1380. This file contains any messages produced by compilers while
  1381. running configure, to aid debugging if configure makes a mistake.
  1382. It was created by aria2c $as_me 0.15.1+1, which was
  1383. generated by GNU Autoconf 2.61. Invocation command line was
  1384. $ $0 $@
  1385. _ACEOF
  1386. exec 5>>config.log
  1387. {
  1388. cat <<_ASUNAME
  1389. ## --------- ##
  1390. ## Platform. ##
  1391. ## --------- ##
  1392. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1393. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1394. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1395. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1396. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1397. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1398. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1399. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1400. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1401. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1402. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1403. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1404. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1405. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1406. _ASUNAME
  1407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1408. for as_dir in $PATH
  1409. do
  1410. IFS=$as_save_IFS
  1411. test -z "$as_dir" && as_dir=.
  1412. echo "PATH: $as_dir"
  1413. done
  1414. IFS=$as_save_IFS
  1415. } >&5
  1416. cat >&5 <<_ACEOF
  1417. ## ----------- ##
  1418. ## Core tests. ##
  1419. ## ----------- ##
  1420. _ACEOF
  1421. # Keep a trace of the command line.
  1422. # Strip out --no-create and --no-recursion so they do not pile up.
  1423. # Strip out --silent because we don't want to record it for future runs.
  1424. # Also quote any args containing shell meta-characters.
  1425. # Make two passes to allow for proper duplicate-argument suppression.
  1426. ac_configure_args=
  1427. ac_configure_args0=
  1428. ac_configure_args1=
  1429. ac_must_keep_next=false
  1430. for ac_pass in 1 2
  1431. do
  1432. for ac_arg
  1433. do
  1434. case $ac_arg in
  1435. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1436. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1437. | -silent | --silent | --silen | --sile | --sil)
  1438. continue ;;
  1439. *\'*)
  1440. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1441. esac
  1442. case $ac_pass in
  1443. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1444. 2)
  1445. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1446. if test $ac_must_keep_next = true; then
  1447. ac_must_keep_next=false # Got value, back to normal.
  1448. else
  1449. case $ac_arg in
  1450. *=* | --config-cache | -C | -disable-* | --disable-* \
  1451. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1452. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1453. | -with-* | --with-* | -without-* | --without-* | --x)
  1454. case "$ac_configure_args0 " in
  1455. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1456. esac
  1457. ;;
  1458. -* ) ac_must_keep_next=true ;;
  1459. esac
  1460. fi
  1461. ac_configure_args="$ac_configure_args '$ac_arg'"
  1462. ;;
  1463. esac
  1464. done
  1465. done
  1466. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1467. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1468. # When interrupted or exit'd, cleanup temporary files, and complete
  1469. # config.log. We remove comments because anyway the quotes in there
  1470. # would cause problems or look ugly.
  1471. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1472. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1473. trap 'exit_status=$?
  1474. # Save into config.log some information that might help in debugging.
  1475. {
  1476. echo
  1477. cat <<\_ASBOX
  1478. ## ---------------- ##
  1479. ## Cache variables. ##
  1480. ## ---------------- ##
  1481. _ASBOX
  1482. echo
  1483. # The following way of writing the cache mishandles newlines in values,
  1484. (
  1485. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1486. eval ac_val=\$$ac_var
  1487. case $ac_val in #(
  1488. *${as_nl}*)
  1489. case $ac_var in #(
  1490. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1491. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1492. esac
  1493. case $ac_var in #(
  1494. _ | IFS | as_nl) ;; #(
  1495. *) $as_unset $ac_var ;;
  1496. esac ;;
  1497. esac
  1498. done
  1499. (set) 2>&1 |
  1500. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1501. *${as_nl}ac_space=\ *)
  1502. sed -n \
  1503. "s/'\''/'\''\\\\'\'''\''/g;
  1504. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1505. ;; #(
  1506. *)
  1507. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1508. ;;
  1509. esac |
  1510. sort
  1511. )
  1512. echo
  1513. cat <<\_ASBOX
  1514. ## ----------------- ##
  1515. ## Output variables. ##
  1516. ## ----------------- ##
  1517. _ASBOX
  1518. echo
  1519. for ac_var in $ac_subst_vars
  1520. do
  1521. eval ac_val=\$$ac_var
  1522. case $ac_val in
  1523. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1524. esac
  1525. echo "$ac_var='\''$ac_val'\''"
  1526. done | sort
  1527. echo
  1528. if test -n "$ac_subst_files"; then
  1529. cat <<\_ASBOX
  1530. ## ------------------- ##
  1531. ## File substitutions. ##
  1532. ## ------------------- ##
  1533. _ASBOX
  1534. echo
  1535. for ac_var in $ac_subst_files
  1536. do
  1537. eval ac_val=\$$ac_var
  1538. case $ac_val in
  1539. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1540. esac
  1541. echo "$ac_var='\''$ac_val'\''"
  1542. done | sort
  1543. echo
  1544. fi
  1545. if test -s confdefs.h; then
  1546. cat <<\_ASBOX
  1547. ## ----------- ##
  1548. ## confdefs.h. ##
  1549. ## ----------- ##
  1550. _ASBOX
  1551. echo
  1552. cat confdefs.h
  1553. echo
  1554. fi
  1555. test "$ac_signal" != 0 &&
  1556. echo "$as_me: caught signal $ac_signal"
  1557. echo "$as_me: exit $exit_status"
  1558. } >&5
  1559. rm -f core *.core core.conftest.* &&
  1560. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1561. exit $exit_status
  1562. ' 0
  1563. for ac_signal in 1 2 13 15; do
  1564. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1565. done
  1566. ac_signal=0
  1567. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1568. rm -f -r conftest* confdefs.h
  1569. # Predefined preprocessor variables.
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_NAME "$PACKAGE_NAME"
  1572. _ACEOF
  1573. cat >>confdefs.h <<_ACEOF
  1574. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1575. _ACEOF
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_STRING "$PACKAGE_STRING"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1584. _ACEOF
  1585. # Let the site file select an alternate cache file if it wants to.
  1586. # Prefer explicitly selected file to automatically selected ones.
  1587. if test -n "$CONFIG_SITE"; then
  1588. set x "$CONFIG_SITE"
  1589. elif test "x$prefix" != xNONE; then
  1590. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1591. else
  1592. set x "$ac_default_prefix/share/config.site" \
  1593. "$ac_default_prefix/etc/config.site"
  1594. fi
  1595. shift
  1596. for ac_site_file
  1597. do
  1598. if test -r "$ac_site_file"; then
  1599. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1600. echo "$as_me: loading site script $ac_site_file" >&6;}
  1601. sed 's/^/| /' "$ac_site_file" >&5
  1602. . "$ac_site_file"
  1603. fi
  1604. done
  1605. if test -r "$cache_file"; then
  1606. # Some versions of bash will fail to source /dev/null (special
  1607. # files actually), so we avoid doing that.
  1608. if test -f "$cache_file"; then
  1609. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1610. echo "$as_me: loading cache $cache_file" >&6;}
  1611. case $cache_file in
  1612. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1613. *) . "./$cache_file";;
  1614. esac
  1615. fi
  1616. else
  1617. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1618. echo "$as_me: creating cache $cache_file" >&6;}
  1619. >$cache_file
  1620. fi
  1621. gt_needs="$gt_needs "
  1622. ac_header_list="$ac_header_list sys/time.h"
  1623. ac_header_list="$ac_header_list unistd.h"
  1624. ac_func_list="$ac_func_list alarm"
  1625. # Check that the precious variables saved in the cache have kept the same
  1626. # value.
  1627. ac_cache_corrupted=false
  1628. for ac_var in $ac_precious_vars; do
  1629. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1630. eval ac_new_set=\$ac_env_${ac_var}_set
  1631. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1632. eval ac_new_val=\$ac_env_${ac_var}_value
  1633. case $ac_old_set,$ac_new_set in
  1634. set,)
  1635. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1636. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1637. ac_cache_corrupted=: ;;
  1638. ,set)
  1639. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1640. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1641. ac_cache_corrupted=: ;;
  1642. ,);;
  1643. *)
  1644. if test "x$ac_old_val" != "x$ac_new_val"; then
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1646. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1647. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1648. echo "$as_me: former value: $ac_old_val" >&2;}
  1649. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1650. echo "$as_me: current value: $ac_new_val" >&2;}
  1651. ac_cache_corrupted=:
  1652. fi;;
  1653. esac
  1654. # Pass precious variables to config.status.
  1655. if test "$ac_new_set" = set; then
  1656. case $ac_new_val in
  1657. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1658. *) ac_arg=$ac_var=$ac_new_val ;;
  1659. esac
  1660. case " $ac_configure_args " in
  1661. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1662. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1663. esac
  1664. fi
  1665. done
  1666. if $ac_cache_corrupted; then
  1667. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1668. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1669. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1670. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1671. { (exit 1); exit 1; }; }
  1672. fi
  1673. ac_ext=c
  1674. ac_cpp='$CPP $CPPFLAGS'
  1675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1678. ac_aux_dir=
  1679. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1680. if test -f "$ac_dir/install-sh"; then
  1681. ac_aux_dir=$ac_dir
  1682. ac_install_sh="$ac_aux_dir/install-sh -c"
  1683. break
  1684. elif test -f "$ac_dir/install.sh"; then
  1685. ac_aux_dir=$ac_dir
  1686. ac_install_sh="$ac_aux_dir/install.sh -c"
  1687. break
  1688. elif test -f "$ac_dir/shtool"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/shtool install -c"
  1691. break
  1692. fi
  1693. done
  1694. if test -z "$ac_aux_dir"; then
  1695. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1696. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1697. { (exit 1); exit 1; }; }
  1698. fi
  1699. # These three variables are undocumented and unsupported,
  1700. # and are intended to be withdrawn in a future Autoconf release.
  1701. # They can cause serious problems if a builder's source tree is in a directory
  1702. # whose full name contains unusual characters.
  1703. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1704. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1705. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1706. # Make sure we can run config.sub.
  1707. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1708. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1709. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1710. { (exit 1); exit 1; }; }
  1711. { echo "$as_me:$LINENO: checking build system type" >&5
  1712. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1713. if test "${ac_cv_build+set}" = set; then
  1714. echo $ECHO_N "(cached) $ECHO_C" >&6
  1715. else
  1716. ac_build_alias=$build_alias
  1717. test "x$ac_build_alias" = x &&
  1718. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1719. test "x$ac_build_alias" = x &&
  1720. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1721. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1722. { (exit 1); exit 1; }; }
  1723. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1724. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1725. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1726. { (exit 1); exit 1; }; }
  1727. fi
  1728. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1729. echo "${ECHO_T}$ac_cv_build" >&6; }
  1730. case $ac_cv_build in
  1731. *-*-*) ;;
  1732. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1733. echo "$as_me: error: invalid value of canonical build" >&2;}
  1734. { (exit 1); exit 1; }; };;
  1735. esac
  1736. build=$ac_cv_build
  1737. ac_save_IFS=$IFS; IFS='-'
  1738. set x $ac_cv_build
  1739. shift
  1740. build_cpu=$1
  1741. build_vendor=$2
  1742. shift; shift
  1743. # Remember, the first character of IFS is used to create $*,
  1744. # except with old shells:
  1745. build_os=$*
  1746. IFS=$ac_save_IFS
  1747. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1748. { echo "$as_me:$LINENO: checking host system type" >&5
  1749. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1750. if test "${ac_cv_host+set}" = set; then
  1751. echo $ECHO_N "(cached) $ECHO_C" >&6
  1752. else
  1753. if test "x$host_alias" = x; then
  1754. ac_cv_host=$ac_cv_build
  1755. else
  1756. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1757. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1758. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1759. { (exit 1); exit 1; }; }
  1760. fi
  1761. fi
  1762. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1763. echo "${ECHO_T}$ac_cv_host" >&6; }
  1764. case $ac_cv_host in
  1765. *-*-*) ;;
  1766. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1767. echo "$as_me: error: invalid value of canonical host" >&2;}
  1768. { (exit 1); exit 1; }; };;
  1769. esac
  1770. host=$ac_cv_host
  1771. ac_save_IFS=$IFS; IFS='-'
  1772. set x $ac_cv_host
  1773. shift
  1774. host_cpu=$1
  1775. host_vendor=$2
  1776. shift; shift
  1777. # Remember, the first character of IFS is used to create $*,
  1778. # except with old shells:
  1779. host_os=$*
  1780. IFS=$ac_save_IFS
  1781. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1782. { echo "$as_me:$LINENO: checking target system type" >&5
  1783. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1784. if test "${ac_cv_target+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. if test "x$target_alias" = x; then
  1788. ac_cv_target=$ac_cv_host
  1789. else
  1790. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1791. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1792. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1793. { (exit 1); exit 1; }; }
  1794. fi
  1795. fi
  1796. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1797. echo "${ECHO_T}$ac_cv_target" >&6; }
  1798. case $ac_cv_target in
  1799. *-*-*) ;;
  1800. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1801. echo "$as_me: error: invalid value of canonical target" >&2;}
  1802. { (exit 1); exit 1; }; };;
  1803. esac
  1804. target=$ac_cv_target
  1805. ac_save_IFS=$IFS; IFS='-'
  1806. set x $ac_cv_target
  1807. shift
  1808. target_cpu=$1
  1809. target_vendor=$2
  1810. shift; shift
  1811. # Remember, the first character of IFS is used to create $*,
  1812. # except with old shells:
  1813. target_os=$*
  1814. IFS=$ac_save_IFS
  1815. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1816. # The aliases save the names the user supplied, while $host etc.
  1817. # will get canonicalized.
  1818. test -n "$target_alias" &&
  1819. test "$program_prefix$program_suffix$program_transform_name" = \
  1820. NONENONEs,x,x, &&
  1821. program_prefix=${target_alias}-
  1822. am__api_version='1.10'
  1823. # Find a good install program. We prefer a C program (faster),
  1824. # so one script is as good as another. But avoid the broken or
  1825. # incompatible versions:
  1826. # SysV /etc/install, /usr/sbin/install
  1827. # SunOS /usr/etc/install
  1828. # IRIX /sbin/install
  1829. # AIX /bin/install
  1830. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1831. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1832. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1833. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1834. # OS/2's system install, which has a completely different semantic
  1835. # ./install, which can be erroneously created by make from ./install.sh.
  1836. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1837. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1838. if test -z "$INSTALL"; then
  1839. if test "${ac_cv_path_install+set}" = set; then
  1840. echo $ECHO_N "(cached) $ECHO_C" >&6
  1841. else
  1842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1843. for as_dir in $PATH
  1844. do
  1845. IFS=$as_save_IFS
  1846. test -z "$as_dir" && as_dir=.
  1847. # Account for people who put trailing slashes in PATH elements.
  1848. case $as_dir/ in
  1849. ./ | .// | /cC/* | \
  1850. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1851. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1852. /usr/ucb/* ) ;;
  1853. *)
  1854. # OSF1 and SCO ODT 3.0 have their own names for install.
  1855. # Don't use installbsd from OSF since it installs stuff as root
  1856. # by default.
  1857. for ac_prog in ginstall scoinst install; do
  1858. for ac_exec_ext in '' $ac_executable_extensions; do
  1859. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1860. if test $ac_prog = install &&
  1861. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1862. # AIX install. It has an incompatible calling convention.
  1863. :
  1864. elif test $ac_prog = install &&
  1865. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1866. # program-specific install script used by HP pwplus--don't use.
  1867. :
  1868. else
  1869. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1870. break 3
  1871. fi
  1872. fi
  1873. done
  1874. done
  1875. ;;
  1876. esac
  1877. done
  1878. IFS=$as_save_IFS
  1879. fi
  1880. if test "${ac_cv_path_install+set}" = set; then
  1881. INSTALL=$ac_cv_path_install
  1882. else
  1883. # As a last resort, use the slow shell script. Don't cache a
  1884. # value for INSTALL within a source directory, because that will
  1885. # break other packages using the cache if that directory is
  1886. # removed, or if the value is a relative name.
  1887. INSTALL=$ac_install_sh
  1888. fi
  1889. fi
  1890. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1891. echo "${ECHO_T}$INSTALL" >&6; }
  1892. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1893. # It thinks the first close brace ends the variable substitution.
  1894. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1895. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1896. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1897. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1898. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1899. # Just in case
  1900. sleep 1
  1901. echo timestamp > conftest.file
  1902. # Do `set' in a subshell so we don't clobber the current shell's
  1903. # arguments. Must try -L first in case configure is actually a
  1904. # symlink; some systems play weird games with the mod time of symlinks
  1905. # (eg FreeBSD returns the mod time of the symlink's containing
  1906. # directory).
  1907. if (
  1908. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1909. if test "$*" = "X"; then
  1910. # -L didn't work.
  1911. set X `ls -t $srcdir/configure conftest.file`
  1912. fi
  1913. rm -f conftest.file
  1914. if test "$*" != "X $srcdir/configure conftest.file" \
  1915. && test "$*" != "X conftest.file $srcdir/configure"; then
  1916. # If neither matched, then we have a broken ls. This can happen
  1917. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1918. # broken ls alias from the environment. This has actually
  1919. # happened. Such a system could not be considered "sane".
  1920. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1921. alias in your environment" >&5
  1922. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1923. alias in your environment" >&2;}
  1924. { (exit 1); exit 1; }; }
  1925. fi
  1926. test "$2" = conftest.file
  1927. )
  1928. then
  1929. # Ok.
  1930. :
  1931. else
  1932. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1933. Check your system clock" >&5
  1934. echo "$as_me: error: newly created file is older than distributed files!
  1935. Check your system clock" >&2;}
  1936. { (exit 1); exit 1; }; }
  1937. fi
  1938. { echo "$as_me:$LINENO: result: yes" >&5
  1939. echo "${ECHO_T}yes" >&6; }
  1940. test "$program_prefix" != NONE &&
  1941. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1942. # Use a double $ so make ignores it.
  1943. test "$program_suffix" != NONE &&
  1944. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1945. # Double any \ or $. echo might interpret backslashes.
  1946. # By default was `s,x,x', remove it if useless.
  1947. cat <<\_ACEOF >conftest.sed
  1948. s/[\\$]/&&/g;s/;s,x,x,$//
  1949. _ACEOF
  1950. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1951. rm -f conftest.sed
  1952. # expand $ac_aux_dir to an absolute path
  1953. am_aux_dir=`cd $ac_aux_dir && pwd`
  1954. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1955. # Use eval to expand $SHELL
  1956. if eval "$MISSING --run true"; then
  1957. am_missing_run="$MISSING --run "
  1958. else
  1959. am_missing_run=
  1960. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1961. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1962. fi
  1963. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1964. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1965. if test -z "$MKDIR_P"; then
  1966. if test "${ac_cv_path_mkdir+set}" = set; then
  1967. echo $ECHO_N "(cached) $ECHO_C" >&6
  1968. else
  1969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1970. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1971. do
  1972. IFS=$as_save_IFS
  1973. test -z "$as_dir" && as_dir=.
  1974. for ac_prog in mkdir gmkdir; do
  1975. for ac_exec_ext in '' $ac_executable_extensions; do
  1976. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1977. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1978. 'mkdir (GNU coreutils) '* | \
  1979. 'mkdir (coreutils) '* | \
  1980. 'mkdir (fileutils) '4.1*)
  1981. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1982. break 3;;
  1983. esac
  1984. done
  1985. done
  1986. done
  1987. IFS=$as_save_IFS
  1988. fi
  1989. if test "${ac_cv_path_mkdir+set}" = set; then
  1990. MKDIR_P="$ac_cv_path_mkdir -p"
  1991. else
  1992. # As a last resort, use the slow shell script. Don't cache a
  1993. # value for MKDIR_P within a source directory, because that will
  1994. # break other packages using the cache if that directory is
  1995. # removed, or if the value is a relative name.
  1996. test -d ./--version && rmdir ./--version
  1997. MKDIR_P="$ac_install_sh -d"
  1998. fi
  1999. fi
  2000. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2001. echo "${ECHO_T}$MKDIR_P" >&6; }
  2002. mkdir_p="$MKDIR_P"
  2003. case $mkdir_p in
  2004. [\\/$]* | ?:[\\/]*) ;;
  2005. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2006. esac
  2007. for ac_prog in gawk mawk nawk awk
  2008. do
  2009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2010. set dummy $ac_prog; ac_word=$2
  2011. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2013. if test "${ac_cv_prog_AWK+set}" = set; then
  2014. echo $ECHO_N "(cached) $ECHO_C" >&6
  2015. else
  2016. if test -n "$AWK"; then
  2017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2018. else
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2026. ac_cv_prog_AWK="$ac_prog"
  2027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2028. break 2
  2029. fi
  2030. done
  2031. done
  2032. IFS=$as_save_IFS
  2033. fi
  2034. fi
  2035. AWK=$ac_cv_prog_AWK
  2036. if test -n "$AWK"; then
  2037. { echo "$as_me:$LINENO: result: $AWK" >&5
  2038. echo "${ECHO_T}$AWK" >&6; }
  2039. else
  2040. { echo "$as_me:$LINENO: result: no" >&5
  2041. echo "${ECHO_T}no" >&6; }
  2042. fi
  2043. test -n "$AWK" && break
  2044. done
  2045. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2046. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2047. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2048. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. cat >conftest.make <<\_ACEOF
  2052. SHELL = /bin/sh
  2053. all:
  2054. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2055. _ACEOF
  2056. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2057. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2058. *@@@%%%=?*=@@@%%%*)
  2059. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2060. *)
  2061. eval ac_cv_prog_make_${ac_make}_set=no;;
  2062. esac
  2063. rm -f conftest.make
  2064. fi
  2065. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2066. { echo "$as_me:$LINENO: result: yes" >&5
  2067. echo "${ECHO_T}yes" >&6; }
  2068. SET_MAKE=
  2069. else
  2070. { echo "$as_me:$LINENO: result: no" >&5
  2071. echo "${ECHO_T}no" >&6; }
  2072. SET_MAKE="MAKE=${MAKE-make}"
  2073. fi
  2074. rm -rf .tst 2>/dev/null
  2075. mkdir .tst 2>/dev/null
  2076. if test -d .tst; then
  2077. am__leading_dot=.
  2078. else
  2079. am__leading_dot=_
  2080. fi
  2081. rmdir .tst 2>/dev/null
  2082. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2083. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2084. # is not polluted with repeated "-I."
  2085. am__isrc=' -I$(srcdir)'
  2086. # test to see if srcdir already configured
  2087. if test -f $srcdir/config.status; then
  2088. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2089. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2090. { (exit 1); exit 1; }; }
  2091. fi
  2092. fi
  2093. # test whether we have cygpath
  2094. if test -z "$CYGPATH_W"; then
  2095. if (cygpath --version) >/dev/null 2>/dev/null; then
  2096. CYGPATH_W='cygpath -w'
  2097. else
  2098. CYGPATH_W=echo
  2099. fi
  2100. fi
  2101. # Define the identity of the package.
  2102. PACKAGE='aria2c'
  2103. VERSION='0.15.1+1'
  2104. cat >>confdefs.h <<_ACEOF
  2105. #define PACKAGE "$PACKAGE"
  2106. _ACEOF
  2107. cat >>confdefs.h <<_ACEOF
  2108. #define VERSION "$VERSION"
  2109. _ACEOF
  2110. # Some tools Automake needs.
  2111. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2112. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2113. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2114. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2115. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2116. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2117. # Installed binaries are usually stripped using `strip' when the user
  2118. # run `make install-strip'. However `strip' might not be the right
  2119. # tool to use in cross-compilation environments, therefore Automake
  2120. # will honor the `STRIP' environment variable to overrule this program.
  2121. if test "$cross_compiling" != no; then
  2122. if test -n "$ac_tool_prefix"; then
  2123. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2124. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2125. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2126. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2127. if test "${ac_cv_prog_STRIP+set}" = set; then
  2128. echo $ECHO_N "(cached) $ECHO_C" >&6
  2129. else
  2130. if test -n "$STRIP"; then
  2131. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2132. else
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. for ac_exec_ext in '' $ac_executable_extensions; do
  2139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2140. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2141. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2142. break 2
  2143. fi
  2144. done
  2145. done
  2146. IFS=$as_save_IFS
  2147. fi
  2148. fi
  2149. STRIP=$ac_cv_prog_STRIP
  2150. if test -n "$STRIP"; then
  2151. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2152. echo "${ECHO_T}$STRIP" >&6; }
  2153. else
  2154. { echo "$as_me:$LINENO: result: no" >&5
  2155. echo "${ECHO_T}no" >&6; }
  2156. fi
  2157. fi
  2158. if test -z "$ac_cv_prog_STRIP"; then
  2159. ac_ct_STRIP=$STRIP
  2160. # Extract the first word of "strip", so it can be a program name with args.
  2161. set dummy strip; ac_word=$2
  2162. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2164. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2165. echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167. if test -n "$ac_ct_STRIP"; then
  2168. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. for ac_exec_ext in '' $ac_executable_extensions; do
  2176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177. ac_cv_prog_ac_ct_STRIP="strip"
  2178. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179. break 2
  2180. fi
  2181. done
  2182. done
  2183. IFS=$as_save_IFS
  2184. fi
  2185. fi
  2186. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2187. if test -n "$ac_ct_STRIP"; then
  2188. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2189. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2190. else
  2191. { echo "$as_me:$LINENO: result: no" >&5
  2192. echo "${ECHO_T}no" >&6; }
  2193. fi
  2194. if test "x$ac_ct_STRIP" = x; then
  2195. STRIP=":"
  2196. else
  2197. case $cross_compiling:$ac_tool_warned in
  2198. yes:)
  2199. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2200. whose name does not start with the host triplet. If you think this
  2201. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2202. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2203. whose name does not start with the host triplet. If you think this
  2204. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2205. ac_tool_warned=yes ;;
  2206. esac
  2207. STRIP=$ac_ct_STRIP
  2208. fi
  2209. else
  2210. STRIP="$ac_cv_prog_STRIP"
  2211. fi
  2212. fi
  2213. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2214. # We need awk for the "check" target. The system "awk" is bad on
  2215. # some platforms.
  2216. # Always define AMTAR for backward compatibility.
  2217. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2218. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2219. # Check whether --with-cppunit-prefix was given.
  2220. if test "${with_cppunit_prefix+set}" = set; then
  2221. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2222. else
  2223. cppunit_config_prefix=""
  2224. fi
  2225. # Check whether --with-cppunit-exec-prefix was given.
  2226. if test "${with_cppunit_exec_prefix+set}" = set; then
  2227. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2228. else
  2229. cppunit_config_exec_prefix=""
  2230. fi
  2231. if test x$cppunit_config_exec_prefix != x ; then
  2232. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2233. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2234. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2235. fi
  2236. fi
  2237. if test x$cppunit_config_prefix != x ; then
  2238. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2239. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2240. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2241. fi
  2242. fi
  2243. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2244. set dummy cppunit-config; ac_word=$2
  2245. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2246. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2247. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2248. echo $ECHO_N "(cached) $ECHO_C" >&6
  2249. else
  2250. case $CPPUNIT_CONFIG in
  2251. [\\/]* | ?:[\\/]*)
  2252. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2253. ;;
  2254. *)
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. test -z "$as_dir" && as_dir=.
  2260. for ac_exec_ext in '' $ac_executable_extensions; do
  2261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2262. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2264. break 2
  2265. fi
  2266. done
  2267. done
  2268. IFS=$as_save_IFS
  2269. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2270. ;;
  2271. esac
  2272. fi
  2273. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2274. if test -n "$CPPUNIT_CONFIG"; then
  2275. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2276. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2277. else
  2278. { echo "$as_me:$LINENO: result: no" >&5
  2279. echo "${ECHO_T}no" >&6; }
  2280. fi
  2281. cppunit_version_min=1.10.2
  2282. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2283. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2284. no_cppunit=""
  2285. if test "$CPPUNIT_CONFIG" = "no" ; then
  2286. { echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6; }
  2288. no_cppunit=yes
  2289. else
  2290. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2291. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2292. cppunit_version=`$CPPUNIT_CONFIG --version`
  2293. cppunit_major_version=`echo $cppunit_version | \
  2294. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2295. cppunit_minor_version=`echo $cppunit_version | \
  2296. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2297. cppunit_micro_version=`echo $cppunit_version | \
  2298. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2299. cppunit_major_min=`echo $cppunit_version_min | \
  2300. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2301. if test "x${cppunit_major_min}" = "x" ; then
  2302. cppunit_major_min=0
  2303. fi
  2304. cppunit_minor_min=`echo $cppunit_version_min | \
  2305. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2306. if test "x${cppunit_minor_min}" = "x" ; then
  2307. cppunit_minor_min=0
  2308. fi
  2309. cppunit_micro_min=`echo $cppunit_version_min | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2311. if test "x${cppunit_micro_min}" = "x" ; then
  2312. cppunit_micro_min=0
  2313. fi
  2314. cppunit_version_proper=`expr \
  2315. $cppunit_major_version \> $cppunit_major_min \| \
  2316. $cppunit_major_version \= $cppunit_major_min \& \
  2317. $cppunit_minor_version \> $cppunit_minor_min \| \
  2318. $cppunit_major_version \= $cppunit_major_min \& \
  2319. $cppunit_minor_version \= $cppunit_minor_min \& \
  2320. $cppunit_micro_version \>= $cppunit_micro_min `
  2321. if test "$cppunit_version_proper" = "1" ; then
  2322. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2323. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2324. else
  2325. { echo "$as_me:$LINENO: result: no" >&5
  2326. echo "${ECHO_T}no" >&6; }
  2327. no_cppunit=yes
  2328. fi
  2329. fi
  2330. if test "x$no_cppunit" = x ; then
  2331. :
  2332. else
  2333. CPPUNIT_CFLAGS=""
  2334. CPPUNIT_LIBS=""
  2335. :
  2336. fi
  2337. ac_config_headers="$ac_config_headers config.h"
  2338. case "$target" in
  2339. *mingw*|*cygwin*)
  2340. WINSOCK_LIBS="-lws2_32 -lpthread"
  2341. ;;
  2342. esac
  2343. cat >>confdefs.h <<_ACEOF
  2344. #define TARGET "$target"
  2345. _ACEOF
  2346. # Set localedir
  2347. localedir=${datadir}/locale
  2348. # Checks for arguments.
  2349. # Check whether --with-gnutls was given.
  2350. if test "${with_gnutls+set}" = set; then
  2351. withval=$with_gnutls; with_gnutls=$withval
  2352. else
  2353. with_gnutls=yes
  2354. fi
  2355. # Check whether --with-openssl was given.
  2356. if test "${with_openssl+set}" = set; then
  2357. withval=$with_openssl; with_openssl=$withval
  2358. else
  2359. with_openssl=yes
  2360. fi
  2361. # Check whether --with-libxml2 was given.
  2362. if test "${with_libxml2+set}" = set; then
  2363. withval=$with_libxml2; with_libxml2=$withval
  2364. else
  2365. with_libxml2=yes
  2366. fi
  2367. # Check whether --with-libexpat was given.
  2368. if test "${with_libexpat+set}" = set; then
  2369. withval=$with_libexpat; with_libexpat=$withval
  2370. else
  2371. with_libexpat=yes
  2372. fi
  2373. # Check whether --with-libares was given.
  2374. if test "${with_libares+set}" = set; then
  2375. withval=$with_libares; with_libares=$withval
  2376. else
  2377. with_libares=yes
  2378. fi
  2379. # Check whether --with-libcares was given.
  2380. if test "${with_libcares+set}" = set; then
  2381. withval=$with_libcares; with_libcares=$withval
  2382. else
  2383. with_libcares=yes
  2384. fi
  2385. # Check whether --with-libz was given.
  2386. if test "${with_libz+set}" = set; then
  2387. withval=$with_libz; with_libz=$withval
  2388. else
  2389. with_libz=yes
  2390. fi
  2391. # Check whether --enable-bittorrent was given.
  2392. if test "${enable_bittorrent+set}" = set; then
  2393. enableval=$enable_bittorrent; enable_bittorrent=$withval
  2394. else
  2395. enable_bittorrent=yes
  2396. fi
  2397. # Check whether --enable-metalink was given.
  2398. if test "${enable_metalink+set}" = set; then
  2399. enableval=$enable_metalink; enable_metalink=$withval
  2400. else
  2401. enable_metalink=yes
  2402. fi
  2403. # Check whether --enable-epoll was given.
  2404. if test "${enable_epoll+set}" = set; then
  2405. enableval=$enable_epoll; enable_epoll=$withval
  2406. else
  2407. enable_epoll=yes
  2408. fi
  2409. # Checks for programs.
  2410. ac_ext=cpp
  2411. ac_cpp='$CXXCPP $CPPFLAGS'
  2412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2415. if test -z "$CXX"; then
  2416. if test -n "$CCC"; then
  2417. CXX=$CCC
  2418. else
  2419. if test -n "$ac_tool_prefix"; then
  2420. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2421. do
  2422. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2423. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2424. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2426. if test "${ac_cv_prog_CXX+set}" = set; then
  2427. echo $ECHO_N "(cached) $ECHO_C" >&6
  2428. else
  2429. if test -n "$CXX"; then
  2430. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2440. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. CXX=$ac_cv_prog_CXX
  2449. if test -n "$CXX"; then
  2450. { echo "$as_me:$LINENO: result: $CXX" >&5
  2451. echo "${ECHO_T}$CXX" >&6; }
  2452. else
  2453. { echo "$as_me:$LINENO: result: no" >&5
  2454. echo "${ECHO_T}no" >&6; }
  2455. fi
  2456. test -n "$CXX" && break
  2457. done
  2458. fi
  2459. if test -z "$CXX"; then
  2460. ac_ct_CXX=$CXX
  2461. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2462. do
  2463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2464. set dummy $ac_prog; ac_word=$2
  2465. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2466. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2467. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2468. echo $ECHO_N "(cached) $ECHO_C" >&6
  2469. else
  2470. if test -n "$ac_ct_CXX"; then
  2471. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. for ac_exec_ext in '' $ac_executable_extensions; do
  2479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2480. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2481. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2482. break 2
  2483. fi
  2484. done
  2485. done
  2486. IFS=$as_save_IFS
  2487. fi
  2488. fi
  2489. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2490. if test -n "$ac_ct_CXX"; then
  2491. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2492. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2493. else
  2494. { echo "$as_me:$LINENO: result: no" >&5
  2495. echo "${ECHO_T}no" >&6; }
  2496. fi
  2497. test -n "$ac_ct_CXX" && break
  2498. done
  2499. if test "x$ac_ct_CXX" = x; then
  2500. CXX="g++"
  2501. else
  2502. case $cross_compiling:$ac_tool_warned in
  2503. yes:)
  2504. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2505. whose name does not start with the host triplet. If you think this
  2506. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2507. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2508. whose name does not start with the host triplet. If you think this
  2509. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2510. ac_tool_warned=yes ;;
  2511. esac
  2512. CXX=$ac_ct_CXX
  2513. fi
  2514. fi
  2515. fi
  2516. fi
  2517. # Provide some information about the compiler.
  2518. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2519. ac_compiler=`set X $ac_compile; echo $2`
  2520. { (ac_try="$ac_compiler --version >&5"
  2521. case "(($ac_try" in
  2522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2523. *) ac_try_echo=$ac_try;;
  2524. esac
  2525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2526. (eval "$ac_compiler --version >&5") 2>&5
  2527. ac_status=$?
  2528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2529. (exit $ac_status); }
  2530. { (ac_try="$ac_compiler -v >&5"
  2531. case "(($ac_try" in
  2532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2533. *) ac_try_echo=$ac_try;;
  2534. esac
  2535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2536. (eval "$ac_compiler -v >&5") 2>&5
  2537. ac_status=$?
  2538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2539. (exit $ac_status); }
  2540. { (ac_try="$ac_compiler -V >&5"
  2541. case "(($ac_try" in
  2542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2543. *) ac_try_echo=$ac_try;;
  2544. esac
  2545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2546. (eval "$ac_compiler -V >&5") 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }
  2550. cat >conftest.$ac_ext <<_ACEOF
  2551. /* confdefs.h. */
  2552. _ACEOF
  2553. cat confdefs.h >>conftest.$ac_ext
  2554. cat >>conftest.$ac_ext <<_ACEOF
  2555. /* end confdefs.h. */
  2556. int
  2557. main ()
  2558. {
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. ac_clean_files_save=$ac_clean_files
  2564. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2565. # Try to create an executable without -o first, disregard a.out.
  2566. # It will help us diagnose broken compilers, and finding out an intuition
  2567. # of exeext.
  2568. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2569. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2570. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2571. #
  2572. # List of possible output files, starting from the most likely.
  2573. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2574. # only as a last resort. b.out is created by i960 compilers.
  2575. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2576. #
  2577. # The IRIX 6 linker writes into existing files which may not be
  2578. # executable, retaining their permissions. Remove them first so a
  2579. # subsequent execution test works.
  2580. ac_rmfiles=
  2581. for ac_file in $ac_files
  2582. do
  2583. case $ac_file in
  2584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2585. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2586. esac
  2587. done
  2588. rm -f $ac_rmfiles
  2589. if { (ac_try="$ac_link_default"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2595. (eval "$ac_link_default") 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; then
  2599. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2600. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2601. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2602. # so that the user can short-circuit this test for compilers unknown to
  2603. # Autoconf.
  2604. for ac_file in $ac_files ''
  2605. do
  2606. test -f "$ac_file" || continue
  2607. case $ac_file in
  2608. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2609. ;;
  2610. [ab].out )
  2611. # We found the default executable, but exeext='' is most
  2612. # certainly right.
  2613. break;;
  2614. *.* )
  2615. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2616. then :; else
  2617. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2618. fi
  2619. # We set ac_cv_exeext here because the later test for it is not
  2620. # safe: cross compilers may not add the suffix if given an `-o'
  2621. # argument, so we may need to know it at that point already.
  2622. # Even if this section looks crufty: it has the advantage of
  2623. # actually working.
  2624. break;;
  2625. * )
  2626. break;;
  2627. esac
  2628. done
  2629. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2630. else
  2631. ac_file=''
  2632. fi
  2633. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2634. echo "${ECHO_T}$ac_file" >&6; }
  2635. if test -z "$ac_file"; then
  2636. echo "$as_me: failed program was:" >&5
  2637. sed 's/^/| /' conftest.$ac_ext >&5
  2638. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2639. See \`config.log' for more details." >&5
  2640. echo "$as_me: error: C++ compiler cannot create executables
  2641. See \`config.log' for more details." >&2;}
  2642. { (exit 77); exit 77; }; }
  2643. fi
  2644. ac_exeext=$ac_cv_exeext
  2645. # Check that the compiler produces executables we can run. If not, either
  2646. # the compiler is broken, or we cross compile.
  2647. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2648. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2649. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2650. # If not cross compiling, check that we can run a simple program.
  2651. if test "$cross_compiling" != yes; then
  2652. if { ac_try='./$ac_file'
  2653. { (case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_try") 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; }; then
  2662. cross_compiling=no
  2663. else
  2664. if test "$cross_compiling" = maybe; then
  2665. cross_compiling=yes
  2666. else
  2667. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2668. If you meant to cross compile, use \`--host'.
  2669. See \`config.log' for more details." >&5
  2670. echo "$as_me: error: cannot run C++ compiled programs.
  2671. If you meant to cross compile, use \`--host'.
  2672. See \`config.log' for more details." >&2;}
  2673. { (exit 1); exit 1; }; }
  2674. fi
  2675. fi
  2676. fi
  2677. { echo "$as_me:$LINENO: result: yes" >&5
  2678. echo "${ECHO_T}yes" >&6; }
  2679. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2680. ac_clean_files=$ac_clean_files_save
  2681. # Check that the compiler produces executables we can run. If not, either
  2682. # the compiler is broken, or we cross compile.
  2683. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2684. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2685. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2686. echo "${ECHO_T}$cross_compiling" >&6; }
  2687. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2688. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2689. if { (ac_try="$ac_link"
  2690. case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2695. (eval "$ac_link") 2>&5
  2696. ac_status=$?
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); }; then
  2699. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2700. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2701. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2702. # `rm'.
  2703. for ac_file in conftest.exe conftest conftest.*; do
  2704. test -f "$ac_file" || continue
  2705. case $ac_file in
  2706. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2707. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2708. break;;
  2709. * ) break;;
  2710. esac
  2711. done
  2712. else
  2713. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2714. See \`config.log' for more details." >&5
  2715. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2716. See \`config.log' for more details." >&2;}
  2717. { (exit 1); exit 1; }; }
  2718. fi
  2719. rm -f conftest$ac_cv_exeext
  2720. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2721. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2722. rm -f conftest.$ac_ext
  2723. EXEEXT=$ac_cv_exeext
  2724. ac_exeext=$EXEEXT
  2725. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2726. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2727. if test "${ac_cv_objext+set}" = set; then
  2728. echo $ECHO_N "(cached) $ECHO_C" >&6
  2729. else
  2730. cat >conftest.$ac_ext <<_ACEOF
  2731. /* confdefs.h. */
  2732. _ACEOF
  2733. cat confdefs.h >>conftest.$ac_ext
  2734. cat >>conftest.$ac_ext <<_ACEOF
  2735. /* end confdefs.h. */
  2736. int
  2737. main ()
  2738. {
  2739. ;
  2740. return 0;
  2741. }
  2742. _ACEOF
  2743. rm -f conftest.o conftest.obj
  2744. if { (ac_try="$ac_compile"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2750. (eval "$ac_compile") 2>&5
  2751. ac_status=$?
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); }; then
  2754. for ac_file in conftest.o conftest.obj conftest.*; do
  2755. test -f "$ac_file" || continue;
  2756. case $ac_file in
  2757. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2758. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2759. break;;
  2760. esac
  2761. done
  2762. else
  2763. echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2766. See \`config.log' for more details." >&5
  2767. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2768. See \`config.log' for more details." >&2;}
  2769. { (exit 1); exit 1; }; }
  2770. fi
  2771. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2772. fi
  2773. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2774. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2775. OBJEXT=$ac_cv_objext
  2776. ac_objext=$OBJEXT
  2777. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2778. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2779. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2780. echo $ECHO_N "(cached) $ECHO_C" >&6
  2781. else
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. #ifndef __GNUC__
  2792. choke me
  2793. #endif
  2794. ;
  2795. return 0;
  2796. }
  2797. _ACEOF
  2798. rm -f conftest.$ac_objext
  2799. if { (ac_try="$ac_compile"
  2800. case "(($ac_try" in
  2801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2802. *) ac_try_echo=$ac_try;;
  2803. esac
  2804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2805. (eval "$ac_compile") 2>conftest.er1
  2806. ac_status=$?
  2807. grep -v '^ *+' conftest.er1 >conftest.err
  2808. rm -f conftest.er1
  2809. cat conftest.err >&5
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); } && {
  2812. test -z "$ac_cxx_werror_flag" ||
  2813. test ! -s conftest.err
  2814. } && test -s conftest.$ac_objext; then
  2815. ac_compiler_gnu=yes
  2816. else
  2817. echo "$as_me: failed program was:" >&5
  2818. sed 's/^/| /' conftest.$ac_ext >&5
  2819. ac_compiler_gnu=no
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2823. fi
  2824. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2825. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2826. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2827. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2828. ac_save_CXXFLAGS=$CXXFLAGS
  2829. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2830. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2831. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2832. echo $ECHO_N "(cached) $ECHO_C" >&6
  2833. else
  2834. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2835. ac_cxx_werror_flag=yes
  2836. ac_cv_prog_cxx_g=no
  2837. CXXFLAGS="-g"
  2838. cat >conftest.$ac_ext <<_ACEOF
  2839. /* confdefs.h. */
  2840. _ACEOF
  2841. cat confdefs.h >>conftest.$ac_ext
  2842. cat >>conftest.$ac_ext <<_ACEOF
  2843. /* end confdefs.h. */
  2844. int
  2845. main ()
  2846. {
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. rm -f conftest.$ac_objext
  2852. if { (ac_try="$ac_compile"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2858. (eval "$ac_compile") 2>conftest.er1
  2859. ac_status=$?
  2860. grep -v '^ *+' conftest.er1 >conftest.err
  2861. rm -f conftest.er1
  2862. cat conftest.err >&5
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); } && {
  2865. test -z "$ac_cxx_werror_flag" ||
  2866. test ! -s conftest.err
  2867. } && test -s conftest.$ac_objext; then
  2868. ac_cv_prog_cxx_g=yes
  2869. else
  2870. echo "$as_me: failed program was:" >&5
  2871. sed 's/^/| /' conftest.$ac_ext >&5
  2872. CXXFLAGS=""
  2873. cat >conftest.$ac_ext <<_ACEOF
  2874. /* confdefs.h. */
  2875. _ACEOF
  2876. cat confdefs.h >>conftest.$ac_ext
  2877. cat >>conftest.$ac_ext <<_ACEOF
  2878. /* end confdefs.h. */
  2879. int
  2880. main ()
  2881. {
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. rm -f conftest.$ac_objext
  2887. if { (ac_try="$ac_compile"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2893. (eval "$ac_compile") 2>conftest.er1
  2894. ac_status=$?
  2895. grep -v '^ *+' conftest.er1 >conftest.err
  2896. rm -f conftest.er1
  2897. cat conftest.err >&5
  2898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. (exit $ac_status); } && {
  2900. test -z "$ac_cxx_werror_flag" ||
  2901. test ! -s conftest.err
  2902. } && test -s conftest.$ac_objext; then
  2903. :
  2904. else
  2905. echo "$as_me: failed program was:" >&5
  2906. sed 's/^/| /' conftest.$ac_ext >&5
  2907. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2908. CXXFLAGS="-g"
  2909. cat >conftest.$ac_ext <<_ACEOF
  2910. /* confdefs.h. */
  2911. _ACEOF
  2912. cat confdefs.h >>conftest.$ac_ext
  2913. cat >>conftest.$ac_ext <<_ACEOF
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. rm -f conftest.$ac_objext
  2923. if { (ac_try="$ac_compile"
  2924. case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2929. (eval "$ac_compile") 2>conftest.er1
  2930. ac_status=$?
  2931. grep -v '^ *+' conftest.er1 >conftest.err
  2932. rm -f conftest.er1
  2933. cat conftest.err >&5
  2934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); } && {
  2936. test -z "$ac_cxx_werror_flag" ||
  2937. test ! -s conftest.err
  2938. } && test -s conftest.$ac_objext; then
  2939. ac_cv_prog_cxx_g=yes
  2940. else
  2941. echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. fi
  2944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2945. fi
  2946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2950. fi
  2951. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2952. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2953. if test "$ac_test_CXXFLAGS" = set; then
  2954. CXXFLAGS=$ac_save_CXXFLAGS
  2955. elif test $ac_cv_prog_cxx_g = yes; then
  2956. if test "$GXX" = yes; then
  2957. CXXFLAGS="-g -O2"
  2958. else
  2959. CXXFLAGS="-g"
  2960. fi
  2961. else
  2962. if test "$GXX" = yes; then
  2963. CXXFLAGS="-O2"
  2964. else
  2965. CXXFLAGS=
  2966. fi
  2967. fi
  2968. ac_ext=c
  2969. ac_cpp='$CPP $CPPFLAGS'
  2970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2973. DEPDIR="${am__leading_dot}deps"
  2974. ac_config_commands="$ac_config_commands depfiles"
  2975. am_make=${MAKE-make}
  2976. cat > confinc << 'END'
  2977. am__doit:
  2978. @echo done
  2979. .PHONY: am__doit
  2980. END
  2981. # If we don't find an include directive, just comment out the code.
  2982. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2983. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2984. am__include="#"
  2985. am__quote=
  2986. _am_result=none
  2987. # First try GNU make style include.
  2988. echo "include confinc" > confmf
  2989. # We grep out `Entering directory' and `Leaving directory'
  2990. # messages which can occur if `w' ends up in MAKEFLAGS.
  2991. # In particular we don't look at `^make:' because GNU make might
  2992. # be invoked under some other name (usually "gmake"), in which
  2993. # case it prints its new name instead of `make'.
  2994. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2995. am__include=include
  2996. am__quote=
  2997. _am_result=GNU
  2998. fi
  2999. # Now try BSD make style include.
  3000. if test "$am__include" = "#"; then
  3001. echo '.include "confinc"' > confmf
  3002. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3003. am__include=.include
  3004. am__quote="\""
  3005. _am_result=BSD
  3006. fi
  3007. fi
  3008. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3009. echo "${ECHO_T}$_am_result" >&6; }
  3010. rm -f confinc confmf
  3011. # Check whether --enable-dependency-tracking was given.
  3012. if test "${enable_dependency_tracking+set}" = set; then
  3013. enableval=$enable_dependency_tracking;
  3014. fi
  3015. if test "x$enable_dependency_tracking" != xno; then
  3016. am_depcomp="$ac_aux_dir/depcomp"
  3017. AMDEPBACKSLASH='\'
  3018. fi
  3019. if test "x$enable_dependency_tracking" != xno; then
  3020. AMDEP_TRUE=
  3021. AMDEP_FALSE='#'
  3022. else
  3023. AMDEP_TRUE='#'
  3024. AMDEP_FALSE=
  3025. fi
  3026. depcc="$CXX" am_compiler_list=
  3027. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3028. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3029. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3030. echo $ECHO_N "(cached) $ECHO_C" >&6
  3031. else
  3032. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3033. # We make a subdir and do the tests there. Otherwise we can end up
  3034. # making bogus files that we don't know about and never remove. For
  3035. # instance it was reported that on HP-UX the gcc test will end up
  3036. # making a dummy file named `D' -- because `-MD' means `put the output
  3037. # in D'.
  3038. mkdir conftest.dir
  3039. # Copy depcomp to subdir because otherwise we won't find it if we're
  3040. # using a relative directory.
  3041. cp "$am_depcomp" conftest.dir
  3042. cd conftest.dir
  3043. # We will build objects and dependencies in a subdirectory because
  3044. # it helps to detect inapplicable dependency modes. For instance
  3045. # both Tru64's cc and ICC support -MD to output dependencies as a
  3046. # side effect of compilation, but ICC will put the dependencies in
  3047. # the current directory while Tru64 will put them in the object
  3048. # directory.
  3049. mkdir sub
  3050. am_cv_CXX_dependencies_compiler_type=none
  3051. if test "$am_compiler_list" = ""; then
  3052. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3053. fi
  3054. for depmode in $am_compiler_list; do
  3055. # Setup a source with many dependencies, because some compilers
  3056. # like to wrap large dependency lists on column 80 (with \), and
  3057. # we should not choose a depcomp mode which is confused by this.
  3058. #
  3059. # We need to recreate these files for each test, as the compiler may
  3060. # overwrite some of them when testing with obscure command lines.
  3061. # This happens at least with the AIX C compiler.
  3062. : > sub/conftest.c
  3063. for i in 1 2 3 4 5 6; do
  3064. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3065. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3066. # Solaris 8's {/usr,}/bin/sh.
  3067. touch sub/conftst$i.h
  3068. done
  3069. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3070. case $depmode in
  3071. nosideeffect)
  3072. # after this tag, mechanisms are not by side-effect, so they'll
  3073. # only be used when explicitly requested
  3074. if test "x$enable_dependency_tracking" = xyes; then
  3075. continue
  3076. else
  3077. break
  3078. fi
  3079. ;;
  3080. none) break ;;
  3081. esac
  3082. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3083. # mode. It turns out that the SunPro C++ compiler does not properly
  3084. # handle `-M -o', and we need to detect this.
  3085. if depmode=$depmode \
  3086. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3087. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3088. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3089. >/dev/null 2>conftest.err &&
  3090. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3091. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3092. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3093. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3094. # icc doesn't choke on unknown options, it will just issue warnings
  3095. # or remarks (even with -Werror). So we grep stderr for any message
  3096. # that says an option was ignored or not supported.
  3097. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3098. # icc: Command line warning: ignoring option '-M'; no argument required
  3099. # The diagnosis changed in icc 8.0:
  3100. # icc: Command line remark: option '-MP' not supported
  3101. if (grep 'ignoring option' conftest.err ||
  3102. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3103. am_cv_CXX_dependencies_compiler_type=$depmode
  3104. break
  3105. fi
  3106. fi
  3107. done
  3108. cd ..
  3109. rm -rf conftest.dir
  3110. else
  3111. am_cv_CXX_dependencies_compiler_type=none
  3112. fi
  3113. fi
  3114. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3115. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3116. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3117. if
  3118. test "x$enable_dependency_tracking" != xno \
  3119. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3120. am__fastdepCXX_TRUE=
  3121. am__fastdepCXX_FALSE='#'
  3122. else
  3123. am__fastdepCXX_TRUE='#'
  3124. am__fastdepCXX_FALSE=
  3125. fi
  3126. ac_ext=c
  3127. ac_cpp='$CPP $CPPFLAGS'
  3128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3131. if test -n "$ac_tool_prefix"; then
  3132. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3133. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3134. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3135. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3136. if test "${ac_cv_prog_CC+set}" = set; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. if test -n "$CC"; then
  3140. ac_cv_prog_CC="$CC" # Let the user override the test.
  3141. else
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. for as_dir in $PATH
  3144. do
  3145. IFS=$as_save_IFS
  3146. test -z "$as_dir" && as_dir=.
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3149. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3150. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. IFS=$as_save_IFS
  3156. fi
  3157. fi
  3158. CC=$ac_cv_prog_CC
  3159. if test -n "$CC"; then
  3160. { echo "$as_me:$LINENO: result: $CC" >&5
  3161. echo "${ECHO_T}$CC" >&6; }
  3162. else
  3163. { echo "$as_me:$LINENO: result: no" >&5
  3164. echo "${ECHO_T}no" >&6; }
  3165. fi
  3166. fi
  3167. if test -z "$ac_cv_prog_CC"; then
  3168. ac_ct_CC=$CC
  3169. # Extract the first word of "gcc", so it can be a program name with args.
  3170. set dummy gcc; ac_word=$2
  3171. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3173. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -n "$ac_ct_CC"; then
  3177. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3186. ac_cv_prog_ac_ct_CC="gcc"
  3187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. IFS=$as_save_IFS
  3193. fi
  3194. fi
  3195. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3196. if test -n "$ac_ct_CC"; then
  3197. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3198. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3199. else
  3200. { echo "$as_me:$LINENO: result: no" >&5
  3201. echo "${ECHO_T}no" >&6; }
  3202. fi
  3203. if test "x$ac_ct_CC" = x; then
  3204. CC=""
  3205. else
  3206. case $cross_compiling:$ac_tool_warned in
  3207. yes:)
  3208. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3209. whose name does not start with the host triplet. If you think this
  3210. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3211. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3212. whose name does not start with the host triplet. If you think this
  3213. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3214. ac_tool_warned=yes ;;
  3215. esac
  3216. CC=$ac_ct_CC
  3217. fi
  3218. else
  3219. CC="$ac_cv_prog_CC"
  3220. fi
  3221. if test -z "$CC"; then
  3222. if test -n "$ac_tool_prefix"; then
  3223. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3224. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3225. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3226. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3227. if test "${ac_cv_prog_CC+set}" = set; then
  3228. echo $ECHO_N "(cached) $ECHO_C" >&6
  3229. else
  3230. if test -n "$CC"; then
  3231. ac_cv_prog_CC="$CC" # Let the user override the test.
  3232. else
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3241. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3242. break 2
  3243. fi
  3244. done
  3245. done
  3246. IFS=$as_save_IFS
  3247. fi
  3248. fi
  3249. CC=$ac_cv_prog_CC
  3250. if test -n "$CC"; then
  3251. { echo "$as_me:$LINENO: result: $CC" >&5
  3252. echo "${ECHO_T}$CC" >&6; }
  3253. else
  3254. { echo "$as_me:$LINENO: result: no" >&5
  3255. echo "${ECHO_T}no" >&6; }
  3256. fi
  3257. fi
  3258. fi
  3259. if test -z "$CC"; then
  3260. # Extract the first word of "cc", so it can be a program name with args.
  3261. set dummy cc; ac_word=$2
  3262. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3264. if test "${ac_cv_prog_CC+set}" = set; then
  3265. echo $ECHO_N "(cached) $ECHO_C" >&6
  3266. else
  3267. if test -n "$CC"; then
  3268. ac_cv_prog_CC="$CC" # Let the user override the test.
  3269. else
  3270. ac_prog_rejected=no
  3271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3272. for as_dir in $PATH
  3273. do
  3274. IFS=$as_save_IFS
  3275. test -z "$as_dir" && as_dir=.
  3276. for ac_exec_ext in '' $ac_executable_extensions; do
  3277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3278. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3279. ac_prog_rejected=yes
  3280. continue
  3281. fi
  3282. ac_cv_prog_CC="cc"
  3283. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3284. break 2
  3285. fi
  3286. done
  3287. done
  3288. IFS=$as_save_IFS
  3289. if test $ac_prog_rejected = yes; then
  3290. # We found a bogon in the path, so make sure we never use it.
  3291. set dummy $ac_cv_prog_CC
  3292. shift
  3293. if test $# != 0; then
  3294. # We chose a different compiler from the bogus one.
  3295. # However, it has the same basename, so the bogon will be chosen
  3296. # first if we set CC to just the basename; use the full file name.
  3297. shift
  3298. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3299. fi
  3300. fi
  3301. fi
  3302. fi
  3303. CC=$ac_cv_prog_CC
  3304. if test -n "$CC"; then
  3305. { echo "$as_me:$LINENO: result: $CC" >&5
  3306. echo "${ECHO_T}$CC" >&6; }
  3307. else
  3308. { echo "$as_me:$LINENO: result: no" >&5
  3309. echo "${ECHO_T}no" >&6; }
  3310. fi
  3311. fi
  3312. if test -z "$CC"; then
  3313. if test -n "$ac_tool_prefix"; then
  3314. for ac_prog in cl.exe
  3315. do
  3316. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3317. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3318. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3320. if test "${ac_cv_prog_CC+set}" = set; then
  3321. echo $ECHO_N "(cached) $ECHO_C" >&6
  3322. else
  3323. if test -n "$CC"; then
  3324. ac_cv_prog_CC="$CC" # Let the user override the test.
  3325. else
  3326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3327. for as_dir in $PATH
  3328. do
  3329. IFS=$as_save_IFS
  3330. test -z "$as_dir" && as_dir=.
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3333. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3334. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. CC=$ac_cv_prog_CC
  3343. if test -n "$CC"; then
  3344. { echo "$as_me:$LINENO: result: $CC" >&5
  3345. echo "${ECHO_T}$CC" >&6; }
  3346. else
  3347. { echo "$as_me:$LINENO: result: no" >&5
  3348. echo "${ECHO_T}no" >&6; }
  3349. fi
  3350. test -n "$CC" && break
  3351. done
  3352. fi
  3353. if test -z "$CC"; then
  3354. ac_ct_CC=$CC
  3355. for ac_prog in cl.exe
  3356. do
  3357. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3358. set dummy $ac_prog; ac_word=$2
  3359. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3361. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3362. echo $ECHO_N "(cached) $ECHO_C" >&6
  3363. else
  3364. if test -n "$ac_ct_CC"; then
  3365. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3374. ac_cv_prog_ac_ct_CC="$ac_prog"
  3375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3384. if test -n "$ac_ct_CC"; then
  3385. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3386. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3387. else
  3388. { echo "$as_me:$LINENO: result: no" >&5
  3389. echo "${ECHO_T}no" >&6; }
  3390. fi
  3391. test -n "$ac_ct_CC" && break
  3392. done
  3393. if test "x$ac_ct_CC" = x; then
  3394. CC=""
  3395. else
  3396. case $cross_compiling:$ac_tool_warned in
  3397. yes:)
  3398. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3399. whose name does not start with the host triplet. If you think this
  3400. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3401. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3402. whose name does not start with the host triplet. If you think this
  3403. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3404. ac_tool_warned=yes ;;
  3405. esac
  3406. CC=$ac_ct_CC
  3407. fi
  3408. fi
  3409. fi
  3410. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3411. See \`config.log' for more details." >&5
  3412. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3413. See \`config.log' for more details." >&2;}
  3414. { (exit 1); exit 1; }; }
  3415. # Provide some information about the compiler.
  3416. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3417. ac_compiler=`set X $ac_compile; echo $2`
  3418. { (ac_try="$ac_compiler --version >&5"
  3419. case "(($ac_try" in
  3420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3421. *) ac_try_echo=$ac_try;;
  3422. esac
  3423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3424. (eval "$ac_compiler --version >&5") 2>&5
  3425. ac_status=$?
  3426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3427. (exit $ac_status); }
  3428. { (ac_try="$ac_compiler -v >&5"
  3429. case "(($ac_try" in
  3430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3431. *) ac_try_echo=$ac_try;;
  3432. esac
  3433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3434. (eval "$ac_compiler -v >&5") 2>&5
  3435. ac_status=$?
  3436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3437. (exit $ac_status); }
  3438. { (ac_try="$ac_compiler -V >&5"
  3439. case "(($ac_try" in
  3440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3441. *) ac_try_echo=$ac_try;;
  3442. esac
  3443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3444. (eval "$ac_compiler -V >&5") 2>&5
  3445. ac_status=$?
  3446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3447. (exit $ac_status); }
  3448. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3449. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3450. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3451. echo $ECHO_N "(cached) $ECHO_C" >&6
  3452. else
  3453. cat >conftest.$ac_ext <<_ACEOF
  3454. /* confdefs.h. */
  3455. _ACEOF
  3456. cat confdefs.h >>conftest.$ac_ext
  3457. cat >>conftest.$ac_ext <<_ACEOF
  3458. /* end confdefs.h. */
  3459. int
  3460. main ()
  3461. {
  3462. #ifndef __GNUC__
  3463. choke me
  3464. #endif
  3465. ;
  3466. return 0;
  3467. }
  3468. _ACEOF
  3469. rm -f conftest.$ac_objext
  3470. if { (ac_try="$ac_compile"
  3471. case "(($ac_try" in
  3472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3473. *) ac_try_echo=$ac_try;;
  3474. esac
  3475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3476. (eval "$ac_compile") 2>conftest.er1
  3477. ac_status=$?
  3478. grep -v '^ *+' conftest.er1 >conftest.err
  3479. rm -f conftest.er1
  3480. cat conftest.err >&5
  3481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3482. (exit $ac_status); } && {
  3483. test -z "$ac_c_werror_flag" ||
  3484. test ! -s conftest.err
  3485. } && test -s conftest.$ac_objext; then
  3486. ac_compiler_gnu=yes
  3487. else
  3488. echo "$as_me: failed program was:" >&5
  3489. sed 's/^/| /' conftest.$ac_ext >&5
  3490. ac_compiler_gnu=no
  3491. fi
  3492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3493. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3494. fi
  3495. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3496. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3497. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3498. ac_test_CFLAGS=${CFLAGS+set}
  3499. ac_save_CFLAGS=$CFLAGS
  3500. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3501. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3502. if test "${ac_cv_prog_cc_g+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. ac_save_c_werror_flag=$ac_c_werror_flag
  3506. ac_c_werror_flag=yes
  3507. ac_cv_prog_cc_g=no
  3508. CFLAGS="-g"
  3509. cat >conftest.$ac_ext <<_ACEOF
  3510. /* confdefs.h. */
  3511. _ACEOF
  3512. cat confdefs.h >>conftest.$ac_ext
  3513. cat >>conftest.$ac_ext <<_ACEOF
  3514. /* end confdefs.h. */
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. rm -f conftest.$ac_objext
  3523. if { (ac_try="$ac_compile"
  3524. case "(($ac_try" in
  3525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3526. *) ac_try_echo=$ac_try;;
  3527. esac
  3528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3529. (eval "$ac_compile") 2>conftest.er1
  3530. ac_status=$?
  3531. grep -v '^ *+' conftest.er1 >conftest.err
  3532. rm -f conftest.er1
  3533. cat conftest.err >&5
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); } && {
  3536. test -z "$ac_c_werror_flag" ||
  3537. test ! -s conftest.err
  3538. } && test -s conftest.$ac_objext; then
  3539. ac_cv_prog_cc_g=yes
  3540. else
  3541. echo "$as_me: failed program was:" >&5
  3542. sed 's/^/| /' conftest.$ac_ext >&5
  3543. CFLAGS=""
  3544. cat >conftest.$ac_ext <<_ACEOF
  3545. /* confdefs.h. */
  3546. _ACEOF
  3547. cat confdefs.h >>conftest.$ac_ext
  3548. cat >>conftest.$ac_ext <<_ACEOF
  3549. /* end confdefs.h. */
  3550. int
  3551. main ()
  3552. {
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. rm -f conftest.$ac_objext
  3558. if { (ac_try="$ac_compile"
  3559. case "(($ac_try" in
  3560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3561. *) ac_try_echo=$ac_try;;
  3562. esac
  3563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3564. (eval "$ac_compile") 2>conftest.er1
  3565. ac_status=$?
  3566. grep -v '^ *+' conftest.er1 >conftest.err
  3567. rm -f conftest.er1
  3568. cat conftest.err >&5
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); } && {
  3571. test -z "$ac_c_werror_flag" ||
  3572. test ! -s conftest.err
  3573. } && test -s conftest.$ac_objext; then
  3574. :
  3575. else
  3576. echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. ac_c_werror_flag=$ac_save_c_werror_flag
  3579. CFLAGS="-g"
  3580. cat >conftest.$ac_ext <<_ACEOF
  3581. /* confdefs.h. */
  3582. _ACEOF
  3583. cat confdefs.h >>conftest.$ac_ext
  3584. cat >>conftest.$ac_ext <<_ACEOF
  3585. /* end confdefs.h. */
  3586. int
  3587. main ()
  3588. {
  3589. ;
  3590. return 0;
  3591. }
  3592. _ACEOF
  3593. rm -f conftest.$ac_objext
  3594. if { (ac_try="$ac_compile"
  3595. case "(($ac_try" in
  3596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3597. *) ac_try_echo=$ac_try;;
  3598. esac
  3599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3600. (eval "$ac_compile") 2>conftest.er1
  3601. ac_status=$?
  3602. grep -v '^ *+' conftest.er1 >conftest.err
  3603. rm -f conftest.er1
  3604. cat conftest.err >&5
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); } && {
  3607. test -z "$ac_c_werror_flag" ||
  3608. test ! -s conftest.err
  3609. } && test -s conftest.$ac_objext; then
  3610. ac_cv_prog_cc_g=yes
  3611. else
  3612. echo "$as_me: failed program was:" >&5
  3613. sed 's/^/| /' conftest.$ac_ext >&5
  3614. fi
  3615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3616. fi
  3617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3618. fi
  3619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3620. ac_c_werror_flag=$ac_save_c_werror_flag
  3621. fi
  3622. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3623. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3624. if test "$ac_test_CFLAGS" = set; then
  3625. CFLAGS=$ac_save_CFLAGS
  3626. elif test $ac_cv_prog_cc_g = yes; then
  3627. if test "$GCC" = yes; then
  3628. CFLAGS="-g -O2"
  3629. else
  3630. CFLAGS="-g"
  3631. fi
  3632. else
  3633. if test "$GCC" = yes; then
  3634. CFLAGS="-O2"
  3635. else
  3636. CFLAGS=
  3637. fi
  3638. fi
  3639. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3640. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3641. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3642. echo $ECHO_N "(cached) $ECHO_C" >&6
  3643. else
  3644. ac_cv_prog_cc_c89=no
  3645. ac_save_CC=$CC
  3646. cat >conftest.$ac_ext <<_ACEOF
  3647. /* confdefs.h. */
  3648. _ACEOF
  3649. cat confdefs.h >>conftest.$ac_ext
  3650. cat >>conftest.$ac_ext <<_ACEOF
  3651. /* end confdefs.h. */
  3652. #include <stdarg.h>
  3653. #include <stdio.h>
  3654. #include <sys/types.h>
  3655. #include <sys/stat.h>
  3656. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3657. struct buf { int x; };
  3658. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3659. static char *e (p, i)
  3660. char **p;
  3661. int i;
  3662. {
  3663. return p[i];
  3664. }
  3665. static char *f (char * (*g) (char **, int), char **p, ...)
  3666. {
  3667. char *s;
  3668. va_list v;
  3669. va_start (v,p);
  3670. s = g (p, va_arg (v,int));
  3671. va_end (v);
  3672. return s;
  3673. }
  3674. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3675. function prototypes and stuff, but not '\xHH' hex character constants.
  3676. These don't provoke an error unfortunately, instead are silently treated
  3677. as 'x'. The following induces an error, until -std is added to get
  3678. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3679. array size at least. It's necessary to write '\x00'==0 to get something
  3680. that's true only with -std. */
  3681. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3682. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3683. inside strings and character constants. */
  3684. #define FOO(x) 'x'
  3685. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3686. int test (int i, double x);
  3687. struct s1 {int (*f) (int a);};
  3688. struct s2 {int (*f) (double a);};
  3689. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3690. int argc;
  3691. char **argv;
  3692. int
  3693. main ()
  3694. {
  3695. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3696. ;
  3697. return 0;
  3698. }
  3699. _ACEOF
  3700. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3701. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3702. do
  3703. CC="$ac_save_CC $ac_arg"
  3704. rm -f conftest.$ac_objext
  3705. if { (ac_try="$ac_compile"
  3706. case "(($ac_try" in
  3707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3708. *) ac_try_echo=$ac_try;;
  3709. esac
  3710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3711. (eval "$ac_compile") 2>conftest.er1
  3712. ac_status=$?
  3713. grep -v '^ *+' conftest.er1 >conftest.err
  3714. rm -f conftest.er1
  3715. cat conftest.err >&5
  3716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3717. (exit $ac_status); } && {
  3718. test -z "$ac_c_werror_flag" ||
  3719. test ! -s conftest.err
  3720. } && test -s conftest.$ac_objext; then
  3721. ac_cv_prog_cc_c89=$ac_arg
  3722. else
  3723. echo "$as_me: failed program was:" >&5
  3724. sed 's/^/| /' conftest.$ac_ext >&5
  3725. fi
  3726. rm -f core conftest.err conftest.$ac_objext
  3727. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3728. done
  3729. rm -f conftest.$ac_ext
  3730. CC=$ac_save_CC
  3731. fi
  3732. # AC_CACHE_VAL
  3733. case "x$ac_cv_prog_cc_c89" in
  3734. x)
  3735. { echo "$as_me:$LINENO: result: none needed" >&5
  3736. echo "${ECHO_T}none needed" >&6; } ;;
  3737. xno)
  3738. { echo "$as_me:$LINENO: result: unsupported" >&5
  3739. echo "${ECHO_T}unsupported" >&6; } ;;
  3740. *)
  3741. CC="$CC $ac_cv_prog_cc_c89"
  3742. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3743. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3744. esac
  3745. ac_ext=c
  3746. ac_cpp='$CPP $CPPFLAGS'
  3747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3750. depcc="$CC" am_compiler_list=
  3751. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3752. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3753. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3754. echo $ECHO_N "(cached) $ECHO_C" >&6
  3755. else
  3756. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3757. # We make a subdir and do the tests there. Otherwise we can end up
  3758. # making bogus files that we don't know about and never remove. For
  3759. # instance it was reported that on HP-UX the gcc test will end up
  3760. # making a dummy file named `D' -- because `-MD' means `put the output
  3761. # in D'.
  3762. mkdir conftest.dir
  3763. # Copy depcomp to subdir because otherwise we won't find it if we're
  3764. # using a relative directory.
  3765. cp "$am_depcomp" conftest.dir
  3766. cd conftest.dir
  3767. # We will build objects and dependencies in a subdirectory because
  3768. # it helps to detect inapplicable dependency modes. For instance
  3769. # both Tru64's cc and ICC support -MD to output dependencies as a
  3770. # side effect of compilation, but ICC will put the dependencies in
  3771. # the current directory while Tru64 will put them in the object
  3772. # directory.
  3773. mkdir sub
  3774. am_cv_CC_dependencies_compiler_type=none
  3775. if test "$am_compiler_list" = ""; then
  3776. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3777. fi
  3778. for depmode in $am_compiler_list; do
  3779. # Setup a source with many dependencies, because some compilers
  3780. # like to wrap large dependency lists on column 80 (with \), and
  3781. # we should not choose a depcomp mode which is confused by this.
  3782. #
  3783. # We need to recreate these files for each test, as the compiler may
  3784. # overwrite some of them when testing with obscure command lines.
  3785. # This happens at least with the AIX C compiler.
  3786. : > sub/conftest.c
  3787. for i in 1 2 3 4 5 6; do
  3788. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3789. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3790. # Solaris 8's {/usr,}/bin/sh.
  3791. touch sub/conftst$i.h
  3792. done
  3793. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3794. case $depmode in
  3795. nosideeffect)
  3796. # after this tag, mechanisms are not by side-effect, so they'll
  3797. # only be used when explicitly requested
  3798. if test "x$enable_dependency_tracking" = xyes; then
  3799. continue
  3800. else
  3801. break
  3802. fi
  3803. ;;
  3804. none) break ;;
  3805. esac
  3806. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3807. # mode. It turns out that the SunPro C++ compiler does not properly
  3808. # handle `-M -o', and we need to detect this.
  3809. if depmode=$depmode \
  3810. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3811. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3812. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3813. >/dev/null 2>conftest.err &&
  3814. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3815. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3816. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3817. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3818. # icc doesn't choke on unknown options, it will just issue warnings
  3819. # or remarks (even with -Werror). So we grep stderr for any message
  3820. # that says an option was ignored or not supported.
  3821. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3822. # icc: Command line warning: ignoring option '-M'; no argument required
  3823. # The diagnosis changed in icc 8.0:
  3824. # icc: Command line remark: option '-MP' not supported
  3825. if (grep 'ignoring option' conftest.err ||
  3826. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3827. am_cv_CC_dependencies_compiler_type=$depmode
  3828. break
  3829. fi
  3830. fi
  3831. done
  3832. cd ..
  3833. rm -rf conftest.dir
  3834. else
  3835. am_cv_CC_dependencies_compiler_type=none
  3836. fi
  3837. fi
  3838. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3839. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3840. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3841. if
  3842. test "x$enable_dependency_tracking" != xno \
  3843. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3844. am__fastdepCC_TRUE=
  3845. am__fastdepCC_FALSE='#'
  3846. else
  3847. am__fastdepCC_TRUE='#'
  3848. am__fastdepCC_FALSE=
  3849. fi
  3850. # Find a good install program. We prefer a C program (faster),
  3851. # so one script is as good as another. But avoid the broken or
  3852. # incompatible versions:
  3853. # SysV /etc/install, /usr/sbin/install
  3854. # SunOS /usr/etc/install
  3855. # IRIX /sbin/install
  3856. # AIX /bin/install
  3857. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3858. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3859. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3860. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3861. # OS/2's system install, which has a completely different semantic
  3862. # ./install, which can be erroneously created by make from ./install.sh.
  3863. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3864. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3865. if test -z "$INSTALL"; then
  3866. if test "${ac_cv_path_install+set}" = set; then
  3867. echo $ECHO_N "(cached) $ECHO_C" >&6
  3868. else
  3869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3870. for as_dir in $PATH
  3871. do
  3872. IFS=$as_save_IFS
  3873. test -z "$as_dir" && as_dir=.
  3874. # Account for people who put trailing slashes in PATH elements.
  3875. case $as_dir/ in
  3876. ./ | .// | /cC/* | \
  3877. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3878. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3879. /usr/ucb/* ) ;;
  3880. *)
  3881. # OSF1 and SCO ODT 3.0 have their own names for install.
  3882. # Don't use installbsd from OSF since it installs stuff as root
  3883. # by default.
  3884. for ac_prog in ginstall scoinst install; do
  3885. for ac_exec_ext in '' $ac_executable_extensions; do
  3886. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3887. if test $ac_prog = install &&
  3888. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3889. # AIX install. It has an incompatible calling convention.
  3890. :
  3891. elif test $ac_prog = install &&
  3892. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3893. # program-specific install script used by HP pwplus--don't use.
  3894. :
  3895. else
  3896. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3897. break 3
  3898. fi
  3899. fi
  3900. done
  3901. done
  3902. ;;
  3903. esac
  3904. done
  3905. IFS=$as_save_IFS
  3906. fi
  3907. if test "${ac_cv_path_install+set}" = set; then
  3908. INSTALL=$ac_cv_path_install
  3909. else
  3910. # As a last resort, use the slow shell script. Don't cache a
  3911. # value for INSTALL within a source directory, because that will
  3912. # break other packages using the cache if that directory is
  3913. # removed, or if the value is a relative name.
  3914. INSTALL=$ac_install_sh
  3915. fi
  3916. fi
  3917. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3918. echo "${ECHO_T}$INSTALL" >&6; }
  3919. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3920. # It thinks the first close brace ends the variable substitution.
  3921. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3922. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3923. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3924. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3925. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3926. if test -z "$MKDIR_P"; then
  3927. if test "${ac_cv_path_mkdir+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_prog in mkdir gmkdir; do
  3936. for ac_exec_ext in '' $ac_executable_extensions; do
  3937. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3938. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3939. 'mkdir (GNU coreutils) '* | \
  3940. 'mkdir (coreutils) '* | \
  3941. 'mkdir (fileutils) '4.1*)
  3942. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3943. break 3;;
  3944. esac
  3945. done
  3946. done
  3947. done
  3948. IFS=$as_save_IFS
  3949. fi
  3950. if test "${ac_cv_path_mkdir+set}" = set; then
  3951. MKDIR_P="$ac_cv_path_mkdir -p"
  3952. else
  3953. # As a last resort, use the slow shell script. Don't cache a
  3954. # value for MKDIR_P within a source directory, because that will
  3955. # break other packages using the cache if that directory is
  3956. # removed, or if the value is a relative name.
  3957. test -d ./--version && rmdir ./--version
  3958. MKDIR_P="$ac_install_sh -d"
  3959. fi
  3960. fi
  3961. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3962. echo "${ECHO_T}$MKDIR_P" >&6; }
  3963. if test -n "$ac_tool_prefix"; then
  3964. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3965. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3966. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3967. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3968. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3969. echo $ECHO_N "(cached) $ECHO_C" >&6
  3970. else
  3971. if test -n "$RANLIB"; then
  3972. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3973. else
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_exec_ext in '' $ac_executable_extensions; do
  3980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3981. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3982. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3983. break 2
  3984. fi
  3985. done
  3986. done
  3987. IFS=$as_save_IFS
  3988. fi
  3989. fi
  3990. RANLIB=$ac_cv_prog_RANLIB
  3991. if test -n "$RANLIB"; then
  3992. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3993. echo "${ECHO_T}$RANLIB" >&6; }
  3994. else
  3995. { echo "$as_me:$LINENO: result: no" >&5
  3996. echo "${ECHO_T}no" >&6; }
  3997. fi
  3998. fi
  3999. if test -z "$ac_cv_prog_RANLIB"; then
  4000. ac_ct_RANLIB=$RANLIB
  4001. # Extract the first word of "ranlib", so it can be a program name with args.
  4002. set dummy ranlib; ac_word=$2
  4003. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4005. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4006. echo $ECHO_N "(cached) $ECHO_C" >&6
  4007. else
  4008. if test -n "$ac_ct_RANLIB"; then
  4009. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. fi
  4026. fi
  4027. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4028. if test -n "$ac_ct_RANLIB"; then
  4029. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4030. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4031. else
  4032. { echo "$as_me:$LINENO: result: no" >&5
  4033. echo "${ECHO_T}no" >&6; }
  4034. fi
  4035. if test "x$ac_ct_RANLIB" = x; then
  4036. RANLIB=":"
  4037. else
  4038. case $cross_compiling:$ac_tool_warned in
  4039. yes:)
  4040. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4041. whose name does not start with the host triplet. If you think this
  4042. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4043. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4044. whose name does not start with the host triplet. If you think this
  4045. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4046. ac_tool_warned=yes ;;
  4047. esac
  4048. RANLIB=$ac_ct_RANLIB
  4049. fi
  4050. else
  4051. RANLIB="$ac_cv_prog_RANLIB"
  4052. fi
  4053. for ac_prog in 'bison -y' byacc
  4054. do
  4055. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4056. set dummy $ac_prog; ac_word=$2
  4057. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4058. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4059. if test "${ac_cv_prog_YACC+set}" = set; then
  4060. echo $ECHO_N "(cached) $ECHO_C" >&6
  4061. else
  4062. if test -n "$YACC"; then
  4063. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4064. else
  4065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4066. for as_dir in $PATH
  4067. do
  4068. IFS=$as_save_IFS
  4069. test -z "$as_dir" && as_dir=.
  4070. for ac_exec_ext in '' $ac_executable_extensions; do
  4071. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4072. ac_cv_prog_YACC="$ac_prog"
  4073. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4074. break 2
  4075. fi
  4076. done
  4077. done
  4078. IFS=$as_save_IFS
  4079. fi
  4080. fi
  4081. YACC=$ac_cv_prog_YACC
  4082. if test -n "$YACC"; then
  4083. { echo "$as_me:$LINENO: result: $YACC" >&5
  4084. echo "${ECHO_T}$YACC" >&6; }
  4085. else
  4086. { echo "$as_me:$LINENO: result: no" >&5
  4087. echo "${ECHO_T}no" >&6; }
  4088. fi
  4089. test -n "$YACC" && break
  4090. done
  4091. test -n "$YACC" || YACC="yacc"
  4092. # Setting language choice
  4093. ac_ext=cpp
  4094. ac_cpp='$CXXCPP $CPPFLAGS'
  4095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4098. # Check for GNU library
  4099. cat >>confdefs.h <<\_ACEOF
  4100. #define _GNU_SOURCE 1
  4101. _ACEOF
  4102. # Enable system extensions
  4103. ac_ext=cpp
  4104. ac_cpp='$CXXCPP $CPPFLAGS'
  4105. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4108. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4109. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4110. if test -z "$CXXCPP"; then
  4111. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4112. echo $ECHO_N "(cached) $ECHO_C" >&6
  4113. else
  4114. # Double quotes because CXXCPP needs to be expanded
  4115. for CXXCPP in "$CXX -E" "/lib/cpp"
  4116. do
  4117. ac_preproc_ok=false
  4118. for ac_cxx_preproc_warn_flag in '' yes
  4119. do
  4120. # Use a header file that comes with gcc, so configuring glibc
  4121. # with a fresh cross-compiler works.
  4122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4123. # <limits.h> exists even on freestanding compilers.
  4124. # On the NeXT, cc -E runs the code through the compiler's parser,
  4125. # not just through cpp. "Syntax error" is here to catch this case.
  4126. cat >conftest.$ac_ext <<_ACEOF
  4127. /* confdefs.h. */
  4128. _ACEOF
  4129. cat confdefs.h >>conftest.$ac_ext
  4130. cat >>conftest.$ac_ext <<_ACEOF
  4131. /* end confdefs.h. */
  4132. #ifdef __STDC__
  4133. # include <limits.h>
  4134. #else
  4135. # include <assert.h>
  4136. #endif
  4137. Syntax error
  4138. _ACEOF
  4139. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4140. case "(($ac_try" in
  4141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4142. *) ac_try_echo=$ac_try;;
  4143. esac
  4144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4146. ac_status=$?
  4147. grep -v '^ *+' conftest.er1 >conftest.err
  4148. rm -f conftest.er1
  4149. cat conftest.err >&5
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); } >/dev/null && {
  4152. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4153. test ! -s conftest.err
  4154. }; then
  4155. :
  4156. else
  4157. echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. # Broken: fails on valid input.
  4160. continue
  4161. fi
  4162. rm -f conftest.err conftest.$ac_ext
  4163. # OK, works on sane cases. Now check whether nonexistent headers
  4164. # can be detected and how.
  4165. cat >conftest.$ac_ext <<_ACEOF
  4166. /* confdefs.h. */
  4167. _ACEOF
  4168. cat confdefs.h >>conftest.$ac_ext
  4169. cat >>conftest.$ac_ext <<_ACEOF
  4170. /* end confdefs.h. */
  4171. #include <ac_nonexistent.h>
  4172. _ACEOF
  4173. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4174. case "(($ac_try" in
  4175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4176. *) ac_try_echo=$ac_try;;
  4177. esac
  4178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4179. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4180. ac_status=$?
  4181. grep -v '^ *+' conftest.er1 >conftest.err
  4182. rm -f conftest.er1
  4183. cat conftest.err >&5
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } >/dev/null && {
  4186. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4187. test ! -s conftest.err
  4188. }; then
  4189. # Broken: success on invalid input.
  4190. continue
  4191. else
  4192. echo "$as_me: failed program was:" >&5
  4193. sed 's/^/| /' conftest.$ac_ext >&5
  4194. # Passes both tests.
  4195. ac_preproc_ok=:
  4196. break
  4197. fi
  4198. rm -f conftest.err conftest.$ac_ext
  4199. done
  4200. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4201. rm -f conftest.err conftest.$ac_ext
  4202. if $ac_preproc_ok; then
  4203. break
  4204. fi
  4205. done
  4206. ac_cv_prog_CXXCPP=$CXXCPP
  4207. fi
  4208. CXXCPP=$ac_cv_prog_CXXCPP
  4209. else
  4210. ac_cv_prog_CXXCPP=$CXXCPP
  4211. fi
  4212. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4213. echo "${ECHO_T}$CXXCPP" >&6; }
  4214. ac_preproc_ok=false
  4215. for ac_cxx_preproc_warn_flag in '' yes
  4216. do
  4217. # Use a header file that comes with gcc, so configuring glibc
  4218. # with a fresh cross-compiler works.
  4219. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4220. # <limits.h> exists even on freestanding compilers.
  4221. # On the NeXT, cc -E runs the code through the compiler's parser,
  4222. # not just through cpp. "Syntax error" is here to catch this case.
  4223. cat >conftest.$ac_ext <<_ACEOF
  4224. /* confdefs.h. */
  4225. _ACEOF
  4226. cat confdefs.h >>conftest.$ac_ext
  4227. cat >>conftest.$ac_ext <<_ACEOF
  4228. /* end confdefs.h. */
  4229. #ifdef __STDC__
  4230. # include <limits.h>
  4231. #else
  4232. # include <assert.h>
  4233. #endif
  4234. Syntax error
  4235. _ACEOF
  4236. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4237. case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4242. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4243. ac_status=$?
  4244. grep -v '^ *+' conftest.er1 >conftest.err
  4245. rm -f conftest.er1
  4246. cat conftest.err >&5
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); } >/dev/null && {
  4249. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4250. test ! -s conftest.err
  4251. }; then
  4252. :
  4253. else
  4254. echo "$as_me: failed program was:" >&5
  4255. sed 's/^/| /' conftest.$ac_ext >&5
  4256. # Broken: fails on valid input.
  4257. continue
  4258. fi
  4259. rm -f conftest.err conftest.$ac_ext
  4260. # OK, works on sane cases. Now check whether nonexistent headers
  4261. # can be detected and how.
  4262. cat >conftest.$ac_ext <<_ACEOF
  4263. /* confdefs.h. */
  4264. _ACEOF
  4265. cat confdefs.h >>conftest.$ac_ext
  4266. cat >>conftest.$ac_ext <<_ACEOF
  4267. /* end confdefs.h. */
  4268. #include <ac_nonexistent.h>
  4269. _ACEOF
  4270. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } >/dev/null && {
  4283. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4284. test ! -s conftest.err
  4285. }; then
  4286. # Broken: success on invalid input.
  4287. continue
  4288. else
  4289. echo "$as_me: failed program was:" >&5
  4290. sed 's/^/| /' conftest.$ac_ext >&5
  4291. # Passes both tests.
  4292. ac_preproc_ok=:
  4293. break
  4294. fi
  4295. rm -f conftest.err conftest.$ac_ext
  4296. done
  4297. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4298. rm -f conftest.err conftest.$ac_ext
  4299. if $ac_preproc_ok; then
  4300. :
  4301. else
  4302. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4303. See \`config.log' for more details." >&5
  4304. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4305. See \`config.log' for more details." >&2;}
  4306. { (exit 1); exit 1; }; }
  4307. fi
  4308. ac_ext=cpp
  4309. ac_cpp='$CXXCPP $CPPFLAGS'
  4310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4313. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4314. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4315. if test "${ac_cv_path_GREP+set}" = set; then
  4316. echo $ECHO_N "(cached) $ECHO_C" >&6
  4317. else
  4318. # Extract the first word of "grep ggrep" to use in msg output
  4319. if test -z "$GREP"; then
  4320. set dummy grep ggrep; ac_prog_name=$2
  4321. if test "${ac_cv_path_GREP+set}" = set; then
  4322. echo $ECHO_N "(cached) $ECHO_C" >&6
  4323. else
  4324. ac_path_GREP_found=false
  4325. # Loop through the user's path and test for each of PROGNAME-LIST
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_prog in grep ggrep; do
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4334. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4335. # Check for GNU ac_path_GREP and select it if it is found.
  4336. # Check for GNU $ac_path_GREP
  4337. case `"$ac_path_GREP" --version 2>&1` in
  4338. *GNU*)
  4339. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4340. *)
  4341. ac_count=0
  4342. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4343. while :
  4344. do
  4345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4346. mv "conftest.tmp" "conftest.in"
  4347. cp "conftest.in" "conftest.nl"
  4348. echo 'GREP' >> "conftest.nl"
  4349. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4351. ac_count=`expr $ac_count + 1`
  4352. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4353. # Best one so far, save it but keep looking for a better one
  4354. ac_cv_path_GREP="$ac_path_GREP"
  4355. ac_path_GREP_max=$ac_count
  4356. fi
  4357. # 10*(2^10) chars as input seems more than enough
  4358. test $ac_count -gt 10 && break
  4359. done
  4360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4361. esac
  4362. $ac_path_GREP_found && break 3
  4363. done
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. fi
  4368. GREP="$ac_cv_path_GREP"
  4369. if test -z "$GREP"; then
  4370. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4371. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4372. { (exit 1); exit 1; }; }
  4373. fi
  4374. else
  4375. ac_cv_path_GREP=$GREP
  4376. fi
  4377. fi
  4378. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4379. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4380. GREP="$ac_cv_path_GREP"
  4381. { echo "$as_me:$LINENO: checking for egrep" >&5
  4382. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4383. if test "${ac_cv_path_EGREP+set}" = set; then
  4384. echo $ECHO_N "(cached) $ECHO_C" >&6
  4385. else
  4386. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4387. then ac_cv_path_EGREP="$GREP -E"
  4388. else
  4389. # Extract the first word of "egrep" to use in msg output
  4390. if test -z "$EGREP"; then
  4391. set dummy egrep; ac_prog_name=$2
  4392. if test "${ac_cv_path_EGREP+set}" = set; then
  4393. echo $ECHO_N "(cached) $ECHO_C" >&6
  4394. else
  4395. ac_path_EGREP_found=false
  4396. # Loop through the user's path and test for each of PROGNAME-LIST
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_prog in egrep; do
  4403. for ac_exec_ext in '' $ac_executable_extensions; do
  4404. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4405. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4406. # Check for GNU ac_path_EGREP and select it if it is found.
  4407. # Check for GNU $ac_path_EGREP
  4408. case `"$ac_path_EGREP" --version 2>&1` in
  4409. *GNU*)
  4410. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4411. *)
  4412. ac_count=0
  4413. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4414. while :
  4415. do
  4416. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4417. mv "conftest.tmp" "conftest.in"
  4418. cp "conftest.in" "conftest.nl"
  4419. echo 'EGREP' >> "conftest.nl"
  4420. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4421. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4422. ac_count=`expr $ac_count + 1`
  4423. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4424. # Best one so far, save it but keep looking for a better one
  4425. ac_cv_path_EGREP="$ac_path_EGREP"
  4426. ac_path_EGREP_max=$ac_count
  4427. fi
  4428. # 10*(2^10) chars as input seems more than enough
  4429. test $ac_count -gt 10 && break
  4430. done
  4431. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4432. esac
  4433. $ac_path_EGREP_found && break 3
  4434. done
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. fi
  4439. EGREP="$ac_cv_path_EGREP"
  4440. if test -z "$EGREP"; then
  4441. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4442. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4443. { (exit 1); exit 1; }; }
  4444. fi
  4445. else
  4446. ac_cv_path_EGREP=$EGREP
  4447. fi
  4448. fi
  4449. fi
  4450. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4451. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4452. EGREP="$ac_cv_path_EGREP"
  4453. { echo "$as_me:$LINENO: checking for AIX" >&5
  4454. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4455. cat >conftest.$ac_ext <<_ACEOF
  4456. /* confdefs.h. */
  4457. _ACEOF
  4458. cat confdefs.h >>conftest.$ac_ext
  4459. cat >>conftest.$ac_ext <<_ACEOF
  4460. /* end confdefs.h. */
  4461. #ifdef _AIX
  4462. yes
  4463. #endif
  4464. _ACEOF
  4465. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4466. $EGREP "yes" >/dev/null 2>&1; then
  4467. { echo "$as_me:$LINENO: result: yes" >&5
  4468. echo "${ECHO_T}yes" >&6; }
  4469. cat >>confdefs.h <<\_ACEOF
  4470. #define _ALL_SOURCE 1
  4471. _ACEOF
  4472. else
  4473. { echo "$as_me:$LINENO: result: no" >&5
  4474. echo "${ECHO_T}no" >&6; }
  4475. fi
  4476. rm -f conftest*
  4477. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4478. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4479. if test "${ac_cv_header_stdc+set}" = set; then
  4480. echo $ECHO_N "(cached) $ECHO_C" >&6
  4481. else
  4482. cat >conftest.$ac_ext <<_ACEOF
  4483. /* confdefs.h. */
  4484. _ACEOF
  4485. cat confdefs.h >>conftest.$ac_ext
  4486. cat >>conftest.$ac_ext <<_ACEOF
  4487. /* end confdefs.h. */
  4488. #include <stdlib.h>
  4489. #include <stdarg.h>
  4490. #include <string.h>
  4491. #include <float.h>
  4492. int
  4493. main ()
  4494. {
  4495. ;
  4496. return 0;
  4497. }
  4498. _ACEOF
  4499. rm -f conftest.$ac_objext
  4500. if { (ac_try="$ac_compile"
  4501. case "(($ac_try" in
  4502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4503. *) ac_try_echo=$ac_try;;
  4504. esac
  4505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4506. (eval "$ac_compile") 2>conftest.er1
  4507. ac_status=$?
  4508. grep -v '^ *+' conftest.er1 >conftest.err
  4509. rm -f conftest.er1
  4510. cat conftest.err >&5
  4511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512. (exit $ac_status); } && {
  4513. test -z "$ac_cxx_werror_flag" ||
  4514. test ! -s conftest.err
  4515. } && test -s conftest.$ac_objext; then
  4516. ac_cv_header_stdc=yes
  4517. else
  4518. echo "$as_me: failed program was:" >&5
  4519. sed 's/^/| /' conftest.$ac_ext >&5
  4520. ac_cv_header_stdc=no
  4521. fi
  4522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4523. if test $ac_cv_header_stdc = yes; then
  4524. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4525. cat >conftest.$ac_ext <<_ACEOF
  4526. /* confdefs.h. */
  4527. _ACEOF
  4528. cat confdefs.h >>conftest.$ac_ext
  4529. cat >>conftest.$ac_ext <<_ACEOF
  4530. /* end confdefs.h. */
  4531. #include <string.h>
  4532. _ACEOF
  4533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4534. $EGREP "memchr" >/dev/null 2>&1; then
  4535. :
  4536. else
  4537. ac_cv_header_stdc=no
  4538. fi
  4539. rm -f conftest*
  4540. fi
  4541. if test $ac_cv_header_stdc = yes; then
  4542. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <stdlib.h>
  4550. _ACEOF
  4551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4552. $EGREP "free" >/dev/null 2>&1; then
  4553. :
  4554. else
  4555. ac_cv_header_stdc=no
  4556. fi
  4557. rm -f conftest*
  4558. fi
  4559. if test $ac_cv_header_stdc = yes; then
  4560. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4561. if test "$cross_compiling" = yes; then
  4562. :
  4563. else
  4564. cat >conftest.$ac_ext <<_ACEOF
  4565. /* confdefs.h. */
  4566. _ACEOF
  4567. cat confdefs.h >>conftest.$ac_ext
  4568. cat >>conftest.$ac_ext <<_ACEOF
  4569. /* end confdefs.h. */
  4570. #include <ctype.h>
  4571. #include <stdlib.h>
  4572. #if ((' ' & 0x0FF) == 0x020)
  4573. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4574. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4575. #else
  4576. # define ISLOWER(c) \
  4577. (('a' <= (c) && (c) <= 'i') \
  4578. || ('j' <= (c) && (c) <= 'r') \
  4579. || ('s' <= (c) && (c) <= 'z'))
  4580. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4581. #endif
  4582. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4583. int
  4584. main ()
  4585. {
  4586. int i;
  4587. for (i = 0; i < 256; i++)
  4588. if (XOR (islower (i), ISLOWER (i))
  4589. || toupper (i) != TOUPPER (i))
  4590. return 2;
  4591. return 0;
  4592. }
  4593. _ACEOF
  4594. rm -f conftest$ac_exeext
  4595. if { (ac_try="$ac_link"
  4596. case "(($ac_try" in
  4597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4598. *) ac_try_echo=$ac_try;;
  4599. esac
  4600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4601. (eval "$ac_link") 2>&5
  4602. ac_status=$?
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4605. { (case "(($ac_try" in
  4606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4607. *) ac_try_echo=$ac_try;;
  4608. esac
  4609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4610. (eval "$ac_try") 2>&5
  4611. ac_status=$?
  4612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4613. (exit $ac_status); }; }; then
  4614. :
  4615. else
  4616. echo "$as_me: program exited with status $ac_status" >&5
  4617. echo "$as_me: failed program was:" >&5
  4618. sed 's/^/| /' conftest.$ac_ext >&5
  4619. ( exit $ac_status )
  4620. ac_cv_header_stdc=no
  4621. fi
  4622. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4623. fi
  4624. fi
  4625. fi
  4626. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4627. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4628. if test $ac_cv_header_stdc = yes; then
  4629. cat >>confdefs.h <<\_ACEOF
  4630. #define STDC_HEADERS 1
  4631. _ACEOF
  4632. fi
  4633. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4634. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4635. inttypes.h stdint.h unistd.h
  4636. do
  4637. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4638. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4640. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4641. echo $ECHO_N "(cached) $ECHO_C" >&6
  4642. else
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. $ac_includes_default
  4650. #include <$ac_header>
  4651. _ACEOF
  4652. rm -f conftest.$ac_objext
  4653. if { (ac_try="$ac_compile"
  4654. case "(($ac_try" in
  4655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4656. *) ac_try_echo=$ac_try;;
  4657. esac
  4658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4659. (eval "$ac_compile") 2>conftest.er1
  4660. ac_status=$?
  4661. grep -v '^ *+' conftest.er1 >conftest.err
  4662. rm -f conftest.er1
  4663. cat conftest.err >&5
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); } && {
  4666. test -z "$ac_cxx_werror_flag" ||
  4667. test ! -s conftest.err
  4668. } && test -s conftest.$ac_objext; then
  4669. eval "$as_ac_Header=yes"
  4670. else
  4671. echo "$as_me: failed program was:" >&5
  4672. sed 's/^/| /' conftest.$ac_ext >&5
  4673. eval "$as_ac_Header=no"
  4674. fi
  4675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4676. fi
  4677. ac_res=`eval echo '${'$as_ac_Header'}'`
  4678. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4679. echo "${ECHO_T}$ac_res" >&6; }
  4680. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4681. cat >>confdefs.h <<_ACEOF
  4682. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4683. _ACEOF
  4684. fi
  4685. done
  4686. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4687. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4688. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4689. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4690. echo $ECHO_N "(cached) $ECHO_C" >&6
  4691. fi
  4692. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4693. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4694. else
  4695. # Is the header compilable?
  4696. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4697. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4698. cat >conftest.$ac_ext <<_ACEOF
  4699. /* confdefs.h. */
  4700. _ACEOF
  4701. cat confdefs.h >>conftest.$ac_ext
  4702. cat >>conftest.$ac_ext <<_ACEOF
  4703. /* end confdefs.h. */
  4704. $ac_includes_default
  4705. #include <minix/config.h>
  4706. _ACEOF
  4707. rm -f conftest.$ac_objext
  4708. if { (ac_try="$ac_compile"
  4709. case "(($ac_try" in
  4710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4711. *) ac_try_echo=$ac_try;;
  4712. esac
  4713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4714. (eval "$ac_compile") 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } && {
  4721. test -z "$ac_cxx_werror_flag" ||
  4722. test ! -s conftest.err
  4723. } && test -s conftest.$ac_objext; then
  4724. ac_header_compiler=yes
  4725. else
  4726. echo "$as_me: failed program was:" >&5
  4727. sed 's/^/| /' conftest.$ac_ext >&5
  4728. ac_header_compiler=no
  4729. fi
  4730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4731. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4732. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4733. # Is the header present?
  4734. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4735. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4736. cat >conftest.$ac_ext <<_ACEOF
  4737. /* confdefs.h. */
  4738. _ACEOF
  4739. cat confdefs.h >>conftest.$ac_ext
  4740. cat >>conftest.$ac_ext <<_ACEOF
  4741. /* end confdefs.h. */
  4742. #include <minix/config.h>
  4743. _ACEOF
  4744. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4745. case "(($ac_try" in
  4746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4747. *) ac_try_echo=$ac_try;;
  4748. esac
  4749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4750. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } >/dev/null && {
  4757. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4758. test ! -s conftest.err
  4759. }; then
  4760. ac_header_preproc=yes
  4761. else
  4762. echo "$as_me: failed program was:" >&5
  4763. sed 's/^/| /' conftest.$ac_ext >&5
  4764. ac_header_preproc=no
  4765. fi
  4766. rm -f conftest.err conftest.$ac_ext
  4767. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4768. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4769. # So? What about this header?
  4770. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4771. yes:no: )
  4772. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4773. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4774. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4775. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4776. ac_header_preproc=yes
  4777. ;;
  4778. no:yes:* )
  4779. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4780. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4781. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4782. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4783. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4784. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4785. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4786. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4787. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4788. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4789. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4790. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4791. ( cat <<\_ASBOX
  4792. ## ----------------------------------------------- ##
  4793. ## Report this to t-tujikawa@users.sourceforge.net ##
  4794. ## ----------------------------------------------- ##
  4795. _ASBOX
  4796. ) | sed "s/^/$as_me: WARNING: /" >&2
  4797. ;;
  4798. esac
  4799. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4800. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4801. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4802. echo $ECHO_N "(cached) $ECHO_C" >&6
  4803. else
  4804. ac_cv_header_minix_config_h=$ac_header_preproc
  4805. fi
  4806. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4807. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4808. fi
  4809. if test $ac_cv_header_minix_config_h = yes; then
  4810. MINIX=yes
  4811. else
  4812. MINIX=
  4813. fi
  4814. if test "$MINIX" = yes; then
  4815. cat >>confdefs.h <<\_ACEOF
  4816. #define _POSIX_SOURCE 1
  4817. _ACEOF
  4818. cat >>confdefs.h <<\_ACEOF
  4819. #define _POSIX_1_SOURCE 2
  4820. _ACEOF
  4821. cat >>confdefs.h <<\_ACEOF
  4822. #define _MINIX 1
  4823. _ACEOF
  4824. fi
  4825. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4826. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4827. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4828. echo $ECHO_N "(cached) $ECHO_C" >&6
  4829. else
  4830. cat >conftest.$ac_ext <<_ACEOF
  4831. /* confdefs.h. */
  4832. _ACEOF
  4833. cat confdefs.h >>conftest.$ac_ext
  4834. cat >>conftest.$ac_ext <<_ACEOF
  4835. /* end confdefs.h. */
  4836. # define __EXTENSIONS__ 1
  4837. $ac_includes_default
  4838. int
  4839. main ()
  4840. {
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. rm -f conftest.$ac_objext
  4846. if { (ac_try="$ac_compile"
  4847. case "(($ac_try" in
  4848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4849. *) ac_try_echo=$ac_try;;
  4850. esac
  4851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4852. (eval "$ac_compile") 2>conftest.er1
  4853. ac_status=$?
  4854. grep -v '^ *+' conftest.er1 >conftest.err
  4855. rm -f conftest.er1
  4856. cat conftest.err >&5
  4857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858. (exit $ac_status); } && {
  4859. test -z "$ac_cxx_werror_flag" ||
  4860. test ! -s conftest.err
  4861. } && test -s conftest.$ac_objext; then
  4862. ac_cv_safe_to_define___extensions__=yes
  4863. else
  4864. echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866. ac_cv_safe_to_define___extensions__=no
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4869. fi
  4870. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4871. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4872. test $ac_cv_safe_to_define___extensions__ = yes &&
  4873. cat >>confdefs.h <<\_ACEOF
  4874. #define __EXTENSIONS__ 1
  4875. _ACEOF
  4876. cat >>confdefs.h <<\_ACEOF
  4877. #define _POSIX_PTHREAD_SEMANTICS 1
  4878. _ACEOF
  4879. cat >>confdefs.h <<\_ACEOF
  4880. #define _TANDEM_SOURCE 1
  4881. _ACEOF
  4882. # Checks for libraries.
  4883. if test "x$with_libxml2" = "xyes"; then
  4884. # Check whether --with-xml-prefix was given.
  4885. if test "${with_xml_prefix+set}" = set; then
  4886. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4887. else
  4888. xml_config_prefix=""
  4889. fi
  4890. # Check whether --with-xml-exec-prefix was given.
  4891. if test "${with_xml_exec_prefix+set}" = set; then
  4892. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4893. else
  4894. xml_config_exec_prefix=""
  4895. fi
  4896. # Check whether --enable-xmltest was given.
  4897. if test "${enable_xmltest+set}" = set; then
  4898. enableval=$enable_xmltest;
  4899. else
  4900. enable_xmltest=yes
  4901. fi
  4902. if test x$xml_config_exec_prefix != x ; then
  4903. xml_config_args="$xml_config_args"
  4904. if test x${XML2_CONFIG+set} != xset ; then
  4905. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4906. fi
  4907. fi
  4908. if test x$xml_config_prefix != x ; then
  4909. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4910. if test x${XML2_CONFIG+set} != xset ; then
  4911. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4912. fi
  4913. fi
  4914. # Extract the first word of "xml2-config", so it can be a program name with args.
  4915. set dummy xml2-config; ac_word=$2
  4916. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4918. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4919. echo $ECHO_N "(cached) $ECHO_C" >&6
  4920. else
  4921. case $XML2_CONFIG in
  4922. [\\/]* | ?:[\\/]*)
  4923. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4924. ;;
  4925. *)
  4926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4927. for as_dir in $PATH
  4928. do
  4929. IFS=$as_save_IFS
  4930. test -z "$as_dir" && as_dir=.
  4931. for ac_exec_ext in '' $ac_executable_extensions; do
  4932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4933. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4935. break 2
  4936. fi
  4937. done
  4938. done
  4939. IFS=$as_save_IFS
  4940. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4941. ;;
  4942. esac
  4943. fi
  4944. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4945. if test -n "$XML2_CONFIG"; then
  4946. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4947. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4948. else
  4949. { echo "$as_me:$LINENO: result: no" >&5
  4950. echo "${ECHO_T}no" >&6; }
  4951. fi
  4952. min_xml_version=2.6.24
  4953. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4954. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4955. no_xml=""
  4956. if test "$XML2_CONFIG" = "no" ; then
  4957. no_xml=yes
  4958. else
  4959. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4960. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4961. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4962. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4963. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4964. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4965. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4966. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4967. if test "x$enable_xmltest" = "xyes" ; then
  4968. ac_save_CPPFLAGS="$CPPFLAGS"
  4969. ac_save_LIBS="$LIBS"
  4970. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4971. LIBS="$XML_LIBS $LIBS"
  4972. rm -f conf.xmltest
  4973. if test "$cross_compiling" = yes; then
  4974. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4975. else
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #include <stdlib.h>
  4983. #include <stdio.h>
  4984. #include <string.h>
  4985. #include <libxml/xmlversion.h>
  4986. int
  4987. main()
  4988. {
  4989. int xml_major_version, xml_minor_version, xml_micro_version;
  4990. int major, minor, micro;
  4991. char *tmp_version;
  4992. system("touch conf.xmltest");
  4993. /* Capture xml2-config output via autoconf/configure variables */
  4994. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4995. tmp_version = (char *)strdup("$min_xml_version");
  4996. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4997. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4998. exit(1);
  4999. }
  5000. free(tmp_version);
  5001. /* Capture the version information from the header files */
  5002. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5003. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5004. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5005. exit(1);
  5006. }
  5007. free(tmp_version);
  5008. /* Compare xml2-config output to the libxml headers */
  5009. if ((xml_major_version != $xml_config_major_version) ||
  5010. (xml_minor_version != $xml_config_minor_version) ||
  5011. (xml_micro_version != $xml_config_micro_version))
  5012. {
  5013. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5014. xml_major_version, xml_minor_version, xml_micro_version);
  5015. printf("*** xml2-config (version %d.%d.%d)\n",
  5016. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5017. return 1;
  5018. }
  5019. /* Compare the headers to the library to make sure we match */
  5020. /* Less than ideal -- doesn't provide us with return value feedback,
  5021. * only exits if there's a serious mismatch between header and library.
  5022. */
  5023. LIBXML_TEST_VERSION;
  5024. /* Test that the library is greater than our minimum version */
  5025. if ((xml_major_version > major) ||
  5026. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5027. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5028. (xml_micro_version >= micro)))
  5029. {
  5030. return 0;
  5031. }
  5032. else
  5033. {
  5034. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5035. xml_major_version, xml_minor_version, xml_micro_version);
  5036. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5037. major, minor, micro);
  5038. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5039. printf("***\n");
  5040. printf("*** If you have already installed a sufficiently new version, this error\n");
  5041. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5042. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5043. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5044. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5045. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5046. printf("*** so that the correct libraries are found at run-time))\n");
  5047. }
  5048. return 1;
  5049. }
  5050. _ACEOF
  5051. rm -f conftest$ac_exeext
  5052. if { (ac_try="$ac_link"
  5053. case "(($ac_try" in
  5054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5055. *) ac_try_echo=$ac_try;;
  5056. esac
  5057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5058. (eval "$ac_link") 2>&5
  5059. ac_status=$?
  5060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5061. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5062. { (case "(($ac_try" in
  5063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5064. *) ac_try_echo=$ac_try;;
  5065. esac
  5066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5067. (eval "$ac_try") 2>&5
  5068. ac_status=$?
  5069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5070. (exit $ac_status); }; }; then
  5071. :
  5072. else
  5073. echo "$as_me: program exited with status $ac_status" >&5
  5074. echo "$as_me: failed program was:" >&5
  5075. sed 's/^/| /' conftest.$ac_ext >&5
  5076. ( exit $ac_status )
  5077. no_xml=yes
  5078. fi
  5079. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5080. fi
  5081. CPPFLAGS="$ac_save_CPPFLAGS"
  5082. LIBS="$ac_save_LIBS"
  5083. fi
  5084. fi
  5085. if test "x$no_xml" = x ; then
  5086. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5087. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5088. have_libxml2=yes
  5089. else
  5090. { echo "$as_me:$LINENO: result: no" >&5
  5091. echo "${ECHO_T}no" >&6; }
  5092. if test "$XML2_CONFIG" = "no" ; then
  5093. echo "*** The xml2-config script installed by LIBXML could not be found"
  5094. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5095. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5096. echo "*** full path to xml2-config."
  5097. else
  5098. if test -f conf.xmltest ; then
  5099. :
  5100. else
  5101. echo "*** Could not run libxml test program, checking why..."
  5102. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5103. LIBS="$LIBS $XML_LIBS"
  5104. cat >conftest.$ac_ext <<_ACEOF
  5105. /* confdefs.h. */
  5106. _ACEOF
  5107. cat confdefs.h >>conftest.$ac_ext
  5108. cat >>conftest.$ac_ext <<_ACEOF
  5109. /* end confdefs.h. */
  5110. #include <libxml/xmlversion.h>
  5111. #include <stdio.h>
  5112. int
  5113. main ()
  5114. {
  5115. LIBXML_TEST_VERSION; return 0;
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. rm -f conftest.$ac_objext conftest$ac_exeext
  5121. if { (ac_try="$ac_link"
  5122. case "(($ac_try" in
  5123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5124. *) ac_try_echo=$ac_try;;
  5125. esac
  5126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5127. (eval "$ac_link") 2>conftest.er1
  5128. ac_status=$?
  5129. grep -v '^ *+' conftest.er1 >conftest.err
  5130. rm -f conftest.er1
  5131. cat conftest.err >&5
  5132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. (exit $ac_status); } && {
  5134. test -z "$ac_cxx_werror_flag" ||
  5135. test ! -s conftest.err
  5136. } && test -s conftest$ac_exeext &&
  5137. $as_test_x conftest$ac_exeext; then
  5138. echo "*** The test program compiled, but did not run. This usually means"
  5139. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5140. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5141. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5142. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5143. echo "*** is required on your system"
  5144. echo "***"
  5145. echo "*** If you have an old version installed, it is best to remove it, although"
  5146. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5147. else
  5148. echo "$as_me: failed program was:" >&5
  5149. sed 's/^/| /' conftest.$ac_ext >&5
  5150. echo "*** The test program failed to compile or link. See the file config.log for the"
  5151. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5152. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5153. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5154. fi
  5155. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5156. conftest$ac_exeext conftest.$ac_ext
  5157. CPPFLAGS="$ac_save_CPPFLAGS"
  5158. LIBS="$ac_save_LIBS"
  5159. fi
  5160. fi
  5161. XML_CPPFLAGS=""
  5162. XML_LIBS=""
  5163. :
  5164. fi
  5165. rm -f conf.xmltest
  5166. if test "x$have_libxml2" = "xyes"; then
  5167. cat >>confdefs.h <<\_ACEOF
  5168. #define HAVE_LIBXML2 1
  5169. _ACEOF
  5170. fi
  5171. fi
  5172. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5173. # Check whether --with-libexpat-prefix was given.
  5174. if test "${with_libexpat_prefix+set}" = set; then
  5175. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5176. else
  5177. libexpat_prefix=""
  5178. fi
  5179. if test "x$libexpat_prefix" = "x"; then
  5180. libexpat_prefix="/usr"
  5181. fi
  5182. libexpat_prefix_lib=$libexpat_prefix/lib
  5183. libexpat_prefix_include=$libexpat_prefix/include
  5184. LIBS_save=$LIBS
  5185. CPPFLAGS_save=$CPPFLAGS
  5186. LIBS="-L$libexpat_prefix_lib $LIBS"
  5187. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5188. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5189. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5190. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. else
  5193. ac_check_lib_save_LIBS=$LIBS
  5194. LIBS="-lexpat $LIBS"
  5195. cat >conftest.$ac_ext <<_ACEOF
  5196. /* confdefs.h. */
  5197. _ACEOF
  5198. cat confdefs.h >>conftest.$ac_ext
  5199. cat >>conftest.$ac_ext <<_ACEOF
  5200. /* end confdefs.h. */
  5201. /* Override any GCC internal prototype to avoid an error.
  5202. Use char because int might match the return type of a GCC
  5203. builtin and then its argument prototype would still apply. */
  5204. #ifdef __cplusplus
  5205. extern "C"
  5206. #endif
  5207. char XML_ParserCreate ();
  5208. int
  5209. main ()
  5210. {
  5211. return XML_ParserCreate ();
  5212. ;
  5213. return 0;
  5214. }
  5215. _ACEOF
  5216. rm -f conftest.$ac_objext conftest$ac_exeext
  5217. if { (ac_try="$ac_link"
  5218. case "(($ac_try" in
  5219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5220. *) ac_try_echo=$ac_try;;
  5221. esac
  5222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5223. (eval "$ac_link") 2>conftest.er1
  5224. ac_status=$?
  5225. grep -v '^ *+' conftest.er1 >conftest.err
  5226. rm -f conftest.er1
  5227. cat conftest.err >&5
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); } && {
  5230. test -z "$ac_cxx_werror_flag" ||
  5231. test ! -s conftest.err
  5232. } && test -s conftest$ac_exeext &&
  5233. $as_test_x conftest$ac_exeext; then
  5234. ac_cv_lib_expat_XML_ParserCreate=yes
  5235. else
  5236. echo "$as_me: failed program was:" >&5
  5237. sed 's/^/| /' conftest.$ac_ext >&5
  5238. ac_cv_lib_expat_XML_ParserCreate=no
  5239. fi
  5240. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5241. conftest$ac_exeext conftest.$ac_ext
  5242. LIBS=$ac_check_lib_save_LIBS
  5243. fi
  5244. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5245. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5246. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5247. have_libexpat=yes
  5248. fi
  5249. if test "x$have_libexpat" = "xyes"; then
  5250. cat >>confdefs.h <<\_ACEOF
  5251. #define HAVE_LIBEXPAT 1
  5252. _ACEOF
  5253. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5254. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5255. fi
  5256. LIBS=$LIBS_save
  5257. CPPFLAGS=$CPPFLAGS_save
  5258. fi
  5259. if test "x$with_gnutls" = "xyes"; then
  5260. # Check whether --with-libgnutls-prefix was given.
  5261. if test "${with_libgnutls_prefix+set}" = set; then
  5262. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5263. else
  5264. libgnutls_config_prefix=""
  5265. fi
  5266. if test x$libgnutls_config_prefix != x ; then
  5267. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5268. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5269. fi
  5270. fi
  5271. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5272. set dummy libgnutls-config; ac_word=$2
  5273. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5275. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5276. echo $ECHO_N "(cached) $ECHO_C" >&6
  5277. else
  5278. case $LIBGNUTLS_CONFIG in
  5279. [\\/]* | ?:[\\/]*)
  5280. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5281. ;;
  5282. *)
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. test -z "$as_dir" && as_dir=.
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5290. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5298. ;;
  5299. esac
  5300. fi
  5301. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5302. if test -n "$LIBGNUTLS_CONFIG"; then
  5303. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5304. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5305. else
  5306. { echo "$as_me:$LINENO: result: no" >&5
  5307. echo "${ECHO_T}no" >&6; }
  5308. fi
  5309. min_libgnutls_version=1.2.9
  5310. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5311. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5312. no_libgnutls=""
  5313. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5314. no_libgnutls=yes
  5315. else
  5316. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5317. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5318. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5319. ac_save_CFLAGS="$CFLAGS"
  5320. ac_save_LIBS="$LIBS"
  5321. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5322. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5323. rm -f conf.libgnutlstest
  5324. if test "$cross_compiling" = yes; then
  5325. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5326. else
  5327. cat >conftest.$ac_ext <<_ACEOF
  5328. /* confdefs.h. */
  5329. _ACEOF
  5330. cat confdefs.h >>conftest.$ac_ext
  5331. cat >>conftest.$ac_ext <<_ACEOF
  5332. /* end confdefs.h. */
  5333. #include <stdio.h>
  5334. #include <stdlib.h>
  5335. #include <string.h>
  5336. #include <gnutls/gnutls.h>
  5337. int
  5338. main ()
  5339. {
  5340. system ("touch conf.libgnutlstest");
  5341. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5342. {
  5343. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5344. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5345. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5346. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5347. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5348. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5349. printf("*** required on your system.\n");
  5350. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5351. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5352. printf("*** before re-running configure\n");
  5353. }
  5354. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5355. {
  5356. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5357. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5358. }
  5359. else
  5360. {
  5361. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5362. {
  5363. return 0;
  5364. }
  5365. else
  5366. {
  5367. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5368. gnutls_check_version(NULL) );
  5369. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5370. "$min_libgnutls_version" );
  5371. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5372. printf("*** \n");
  5373. printf("*** If you have already installed a sufficiently new version, this error\n");
  5374. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5375. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5376. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5377. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5378. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5379. printf("*** so that the correct libraries are found at run-time))\n");
  5380. }
  5381. }
  5382. return 1;
  5383. }
  5384. _ACEOF
  5385. rm -f conftest$ac_exeext
  5386. if { (ac_try="$ac_link"
  5387. case "(($ac_try" in
  5388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5389. *) ac_try_echo=$ac_try;;
  5390. esac
  5391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5392. (eval "$ac_link") 2>&5
  5393. ac_status=$?
  5394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5395. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5396. { (case "(($ac_try" in
  5397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5398. *) ac_try_echo=$ac_try;;
  5399. esac
  5400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5401. (eval "$ac_try") 2>&5
  5402. ac_status=$?
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); }; }; then
  5405. :
  5406. else
  5407. echo "$as_me: program exited with status $ac_status" >&5
  5408. echo "$as_me: failed program was:" >&5
  5409. sed 's/^/| /' conftest.$ac_ext >&5
  5410. ( exit $ac_status )
  5411. no_libgnutls=yes
  5412. fi
  5413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5414. fi
  5415. CFLAGS="$ac_save_CFLAGS"
  5416. LIBS="$ac_save_LIBS"
  5417. fi
  5418. if test "x$no_libgnutls" = x ; then
  5419. { echo "$as_me:$LINENO: result: yes" >&5
  5420. echo "${ECHO_T}yes" >&6; }
  5421. have_libgnutls=yes
  5422. else
  5423. if test -f conf.libgnutlstest ; then
  5424. :
  5425. else
  5426. { echo "$as_me:$LINENO: result: no" >&5
  5427. echo "${ECHO_T}no" >&6; }
  5428. fi
  5429. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5430. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5431. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5432. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5433. echo "*** full path to libgnutls-config."
  5434. else
  5435. if test -f conf.libgnutlstest ; then
  5436. :
  5437. else
  5438. echo "*** Could not run libgnutls test program, checking why..."
  5439. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5440. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5441. cat >conftest.$ac_ext <<_ACEOF
  5442. /* confdefs.h. */
  5443. _ACEOF
  5444. cat confdefs.h >>conftest.$ac_ext
  5445. cat >>conftest.$ac_ext <<_ACEOF
  5446. /* end confdefs.h. */
  5447. #include <stdio.h>
  5448. #include <stdlib.h>
  5449. #include <string.h>
  5450. #include <gnutls/gnutls.h>
  5451. int
  5452. main ()
  5453. {
  5454. return !!gnutls_check_version(NULL);
  5455. ;
  5456. return 0;
  5457. }
  5458. _ACEOF
  5459. rm -f conftest.$ac_objext conftest$ac_exeext
  5460. if { (ac_try="$ac_link"
  5461. case "(($ac_try" in
  5462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5463. *) ac_try_echo=$ac_try;;
  5464. esac
  5465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5466. (eval "$ac_link") 2>conftest.er1
  5467. ac_status=$?
  5468. grep -v '^ *+' conftest.er1 >conftest.err
  5469. rm -f conftest.er1
  5470. cat conftest.err >&5
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); } && {
  5473. test -z "$ac_cxx_werror_flag" ||
  5474. test ! -s conftest.err
  5475. } && test -s conftest$ac_exeext &&
  5476. $as_test_x conftest$ac_exeext; then
  5477. echo "*** The test program compiled, but did not run. This usually means"
  5478. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5479. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5480. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5481. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5482. echo "*** is required on your system"
  5483. echo "***"
  5484. echo "*** If you have an old version installed, it is best to remove it, although"
  5485. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5486. echo "***"
  5487. else
  5488. echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490. echo "*** The test program failed to compile or link. See the file config.log for the"
  5491. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5492. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5493. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5496. conftest$ac_exeext conftest.$ac_ext
  5497. CFLAGS="$ac_save_CFLAGS"
  5498. LIBS="$ac_save_LIBS"
  5499. fi
  5500. fi
  5501. LIBGNUTLS_CFLAGS=""
  5502. LIBGNUTLS_LIBS=""
  5503. :
  5504. fi
  5505. rm -f conf.libgnutlstest
  5506. if test "x$have_libgnutls" = "xyes"; then
  5507. cat >>confdefs.h <<\_ACEOF
  5508. #define HAVE_LIBGNUTLS 1
  5509. _ACEOF
  5510. fi
  5511. fi
  5512. if test "x$have_libgnutls" = "xyes"; then
  5513. # Check whether --with-libgcrypt-prefix was given.
  5514. if test "${with_libgcrypt_prefix+set}" = set; then
  5515. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5516. else
  5517. libgcrypt_config_prefix=""
  5518. fi
  5519. if test x$libgcrypt_config_prefix != x ; then
  5520. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5521. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5522. fi
  5523. fi
  5524. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5525. set dummy libgcrypt-config; ac_word=$2
  5526. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5527. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5528. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5529. echo $ECHO_N "(cached) $ECHO_C" >&6
  5530. else
  5531. case $LIBGCRYPT_CONFIG in
  5532. [\\/]* | ?:[\\/]*)
  5533. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5534. ;;
  5535. *)
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5543. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5551. ;;
  5552. esac
  5553. fi
  5554. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5555. if test -n "$LIBGCRYPT_CONFIG"; then
  5556. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5557. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5558. else
  5559. { echo "$as_me:$LINENO: result: no" >&5
  5560. echo "${ECHO_T}no" >&6; }
  5561. fi
  5562. tmp=1.2.2
  5563. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5564. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5565. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5566. else
  5567. req_libgcrypt_api=0
  5568. min_libgcrypt_version="$tmp"
  5569. fi
  5570. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5571. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5572. ok=no
  5573. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5574. req_major=`echo $min_libgcrypt_version | \
  5575. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5576. req_minor=`echo $min_libgcrypt_version | \
  5577. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5578. req_micro=`echo $min_libgcrypt_version | \
  5579. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5580. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5581. major=`echo $libgcrypt_config_version | \
  5582. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5583. minor=`echo $libgcrypt_config_version | \
  5584. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5585. micro=`echo $libgcrypt_config_version | \
  5586. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5587. if test "$major" -gt "$req_major"; then
  5588. ok=yes
  5589. else
  5590. if test "$major" -eq "$req_major"; then
  5591. if test "$minor" -gt "$req_minor"; then
  5592. ok=yes
  5593. else
  5594. if test "$minor" -eq "$req_minor"; then
  5595. if test "$micro" -ge "$req_micro"; then
  5596. ok=yes
  5597. fi
  5598. fi
  5599. fi
  5600. fi
  5601. fi
  5602. fi
  5603. if test $ok = yes; then
  5604. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5605. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5606. else
  5607. { echo "$as_me:$LINENO: result: no" >&5
  5608. echo "${ECHO_T}no" >&6; }
  5609. fi
  5610. if test $ok = yes; then
  5611. # If we have a recent libgcrypt, we should also check that the
  5612. # API is compatible
  5613. if test "$req_libgcrypt_api" -gt 0 ; then
  5614. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5615. if test "$tmp" -gt 0 ; then
  5616. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5617. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5618. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5619. { echo "$as_me:$LINENO: result: okay" >&5
  5620. echo "${ECHO_T}okay" >&6; }
  5621. else
  5622. ok=no
  5623. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5624. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5625. fi
  5626. fi
  5627. fi
  5628. fi
  5629. if test $ok = yes; then
  5630. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5631. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5632. have_libgcrypt=yes
  5633. else
  5634. LIBGCRYPT_CFLAGS=""
  5635. LIBGCRYPT_LIBS=""
  5636. :
  5637. fi
  5638. if test "x$have_libgcrypt" = "xyes"; then
  5639. cat >>confdefs.h <<\_ACEOF
  5640. #define HAVE_LIBGCRYPT 1
  5641. _ACEOF
  5642. fi
  5643. fi
  5644. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5645. # Check whether --with-openssl-prefix was given.
  5646. if test "${with_openssl_prefix+set}" = set; then
  5647. withval=$with_openssl_prefix; openssl_prefix=$withval
  5648. else
  5649. openssl_prefix=""
  5650. fi
  5651. if test "x$openssl_prefix" = "x"; then
  5652. openssl_prefix="/usr/local"
  5653. fi
  5654. openssl_prefix_lib=$openssl_prefix/lib
  5655. openssl_prefix_include=$openssl_prefix/include
  5656. LIBS_save=$LIBS
  5657. CPPFLAGS_save=$CPPFLAGS
  5658. LIBS="-L$openssl_prefix_lib $LIBS"
  5659. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5660. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5661. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5662. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5663. echo $ECHO_N "(cached) $ECHO_C" >&6
  5664. else
  5665. ac_check_lib_save_LIBS=$LIBS
  5666. LIBS="-lssl $LIBS"
  5667. cat >conftest.$ac_ext <<_ACEOF
  5668. /* confdefs.h. */
  5669. _ACEOF
  5670. cat confdefs.h >>conftest.$ac_ext
  5671. cat >>conftest.$ac_ext <<_ACEOF
  5672. /* end confdefs.h. */
  5673. /* Override any GCC internal prototype to avoid an error.
  5674. Use char because int might match the return type of a GCC
  5675. builtin and then its argument prototype would still apply. */
  5676. #ifdef __cplusplus
  5677. extern "C"
  5678. #endif
  5679. char SSL_library_init ();
  5680. int
  5681. main ()
  5682. {
  5683. return SSL_library_init ();
  5684. ;
  5685. return 0;
  5686. }
  5687. _ACEOF
  5688. rm -f conftest.$ac_objext conftest$ac_exeext
  5689. if { (ac_try="$ac_link"
  5690. case "(($ac_try" in
  5691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5692. *) ac_try_echo=$ac_try;;
  5693. esac
  5694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5695. (eval "$ac_link") 2>conftest.er1
  5696. ac_status=$?
  5697. grep -v '^ *+' conftest.er1 >conftest.err
  5698. rm -f conftest.er1
  5699. cat conftest.err >&5
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); } && {
  5702. test -z "$ac_cxx_werror_flag" ||
  5703. test ! -s conftest.err
  5704. } && test -s conftest$ac_exeext &&
  5705. $as_test_x conftest$ac_exeext; then
  5706. ac_cv_lib_ssl_SSL_library_init=yes
  5707. else
  5708. echo "$as_me: failed program was:" >&5
  5709. sed 's/^/| /' conftest.$ac_ext >&5
  5710. ac_cv_lib_ssl_SSL_library_init=no
  5711. fi
  5712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5713. conftest$ac_exeext conftest.$ac_ext
  5714. LIBS=$ac_check_lib_save_LIBS
  5715. fi
  5716. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5717. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5718. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5719. have_openssl=yes; LIBS="-lssl $LIBS"
  5720. fi
  5721. if test "x$have_openssl" = "xyes"; then
  5722. have_openssl=no
  5723. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5724. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5725. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5726. echo $ECHO_N "(cached) $ECHO_C" >&6
  5727. else
  5728. ac_check_lib_save_LIBS=$LIBS
  5729. LIBS="-lcrypto $LIBS"
  5730. cat >conftest.$ac_ext <<_ACEOF
  5731. /* confdefs.h. */
  5732. _ACEOF
  5733. cat confdefs.h >>conftest.$ac_ext
  5734. cat >>conftest.$ac_ext <<_ACEOF
  5735. /* end confdefs.h. */
  5736. int
  5737. main ()
  5738. {
  5739. return main ();
  5740. ;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. rm -f conftest.$ac_objext conftest$ac_exeext
  5745. if { (ac_try="$ac_link"
  5746. case "(($ac_try" in
  5747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748. *) ac_try_echo=$ac_try;;
  5749. esac
  5750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751. (eval "$ac_link") 2>conftest.er1
  5752. ac_status=$?
  5753. grep -v '^ *+' conftest.er1 >conftest.err
  5754. rm -f conftest.er1
  5755. cat conftest.err >&5
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); } && {
  5758. test -z "$ac_cxx_werror_flag" ||
  5759. test ! -s conftest.err
  5760. } && test -s conftest$ac_exeext &&
  5761. $as_test_x conftest$ac_exeext; then
  5762. ac_cv_lib_crypto_main=yes
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. ac_cv_lib_crypto_main=no
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5769. conftest$ac_exeext conftest.$ac_ext
  5770. LIBS=$ac_check_lib_save_LIBS
  5771. fi
  5772. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5773. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5774. if test $ac_cv_lib_crypto_main = yes; then
  5775. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5776. fi
  5777. if test "x$have_openssl" = "xyes"; then
  5778. cat >>confdefs.h <<\_ACEOF
  5779. #define HAVE_LIBSSL 1
  5780. _ACEOF
  5781. for ac_func in EVP_DigestInit_ex
  5782. do
  5783. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5784. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5785. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5786. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5787. echo $ECHO_N "(cached) $ECHO_C" >&6
  5788. else
  5789. cat >conftest.$ac_ext <<_ACEOF
  5790. /* confdefs.h. */
  5791. _ACEOF
  5792. cat confdefs.h >>conftest.$ac_ext
  5793. cat >>conftest.$ac_ext <<_ACEOF
  5794. /* end confdefs.h. */
  5795. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5796. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5797. #define $ac_func innocuous_$ac_func
  5798. /* System header to define __stub macros and hopefully few prototypes,
  5799. which can conflict with char $ac_func (); below.
  5800. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5801. <limits.h> exists even on freestanding compilers. */
  5802. #ifdef __STDC__
  5803. # include <limits.h>
  5804. #else
  5805. # include <assert.h>
  5806. #endif
  5807. #undef $ac_func
  5808. /* Override any GCC internal prototype to avoid an error.
  5809. Use char because int might match the return type of a GCC
  5810. builtin and then its argument prototype would still apply. */
  5811. #ifdef __cplusplus
  5812. extern "C"
  5813. #endif
  5814. char $ac_func ();
  5815. /* The GNU C library defines this for functions which it implements
  5816. to always fail with ENOSYS. Some functions are actually named
  5817. something starting with __ and the normal name is an alias. */
  5818. #if defined __stub_$ac_func || defined __stub___$ac_func
  5819. choke me
  5820. #endif
  5821. int
  5822. main ()
  5823. {
  5824. return $ac_func ();
  5825. ;
  5826. return 0;
  5827. }
  5828. _ACEOF
  5829. rm -f conftest.$ac_objext conftest$ac_exeext
  5830. if { (ac_try="$ac_link"
  5831. case "(($ac_try" in
  5832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5833. *) ac_try_echo=$ac_try;;
  5834. esac
  5835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5836. (eval "$ac_link") 2>conftest.er1
  5837. ac_status=$?
  5838. grep -v '^ *+' conftest.er1 >conftest.err
  5839. rm -f conftest.er1
  5840. cat conftest.err >&5
  5841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5842. (exit $ac_status); } && {
  5843. test -z "$ac_cxx_werror_flag" ||
  5844. test ! -s conftest.err
  5845. } && test -s conftest$ac_exeext &&
  5846. $as_test_x conftest$ac_exeext; then
  5847. eval "$as_ac_var=yes"
  5848. else
  5849. echo "$as_me: failed program was:" >&5
  5850. sed 's/^/| /' conftest.$ac_ext >&5
  5851. eval "$as_ac_var=no"
  5852. fi
  5853. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5854. conftest$ac_exeext conftest.$ac_ext
  5855. fi
  5856. ac_res=`eval echo '${'$as_ac_var'}'`
  5857. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5858. echo "${ECHO_T}$ac_res" >&6; }
  5859. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5860. cat >>confdefs.h <<_ACEOF
  5861. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5862. _ACEOF
  5863. have_digestinit_ex=yes
  5864. fi
  5865. done
  5866. if test "x$have_digestinit_ex" = "x"; then
  5867. cat >>confdefs.h <<\_ACEOF
  5868. #define HAVE_OLD_LIBSSL 1
  5869. _ACEOF
  5870. fi
  5871. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5872. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5873. for ac_func in EVP_sha256
  5874. do
  5875. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5876. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5877. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5878. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5879. echo $ECHO_N "(cached) $ECHO_C" >&6
  5880. else
  5881. cat >conftest.$ac_ext <<_ACEOF
  5882. /* confdefs.h. */
  5883. _ACEOF
  5884. cat confdefs.h >>conftest.$ac_ext
  5885. cat >>conftest.$ac_ext <<_ACEOF
  5886. /* end confdefs.h. */
  5887. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5888. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5889. #define $ac_func innocuous_$ac_func
  5890. /* System header to define __stub macros and hopefully few prototypes,
  5891. which can conflict with char $ac_func (); below.
  5892. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5893. <limits.h> exists even on freestanding compilers. */
  5894. #ifdef __STDC__
  5895. # include <limits.h>
  5896. #else
  5897. # include <assert.h>
  5898. #endif
  5899. #undef $ac_func
  5900. /* Override any GCC internal prototype to avoid an error.
  5901. Use char because int might match the return type of a GCC
  5902. builtin and then its argument prototype would still apply. */
  5903. #ifdef __cplusplus
  5904. extern "C"
  5905. #endif
  5906. char $ac_func ();
  5907. /* The GNU C library defines this for functions which it implements
  5908. to always fail with ENOSYS. Some functions are actually named
  5909. something starting with __ and the normal name is an alias. */
  5910. #if defined __stub_$ac_func || defined __stub___$ac_func
  5911. choke me
  5912. #endif
  5913. int
  5914. main ()
  5915. {
  5916. return $ac_func ();
  5917. ;
  5918. return 0;
  5919. }
  5920. _ACEOF
  5921. rm -f conftest.$ac_objext conftest$ac_exeext
  5922. if { (ac_try="$ac_link"
  5923. case "(($ac_try" in
  5924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5925. *) ac_try_echo=$ac_try;;
  5926. esac
  5927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5928. (eval "$ac_link") 2>conftest.er1
  5929. ac_status=$?
  5930. grep -v '^ *+' conftest.er1 >conftest.err
  5931. rm -f conftest.er1
  5932. cat conftest.err >&5
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && {
  5935. test -z "$ac_cxx_werror_flag" ||
  5936. test ! -s conftest.err
  5937. } && test -s conftest$ac_exeext &&
  5938. $as_test_x conftest$ac_exeext; then
  5939. eval "$as_ac_var=yes"
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. eval "$as_ac_var=no"
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5946. conftest$ac_exeext conftest.$ac_ext
  5947. fi
  5948. ac_res=`eval echo '${'$as_ac_var'}'`
  5949. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5950. echo "${ECHO_T}$ac_res" >&6; }
  5951. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5952. cat >>confdefs.h <<_ACEOF
  5953. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5954. _ACEOF
  5955. fi
  5956. done
  5957. fi
  5958. fi
  5959. LIBS=$LIBS_save
  5960. CPPFLAGS=$CPPFLAGS_save
  5961. fi
  5962. if test "x$with_libcares" = "xyes"; then
  5963. # Check whether --with-libcares-prefix was given.
  5964. if test "${with_libcares_prefix+set}" = set; then
  5965. withval=$with_libcares_prefix; libcares_prefix=$withval
  5966. else
  5967. libcares_prefix=""
  5968. fi
  5969. if test "x$libcares_prefix" = "x"; then
  5970. libcares_prefix="/usr"
  5971. fi
  5972. libcares_prefix_lib=$libcares_prefix/lib
  5973. libcares_prefix_include=$libcares_prefix/include
  5974. LIBS_save=$LIBS
  5975. CPPFLAGS_save=$CPPFLAGS
  5976. LIBS="-L$libcares_prefix_lib $LIBS"
  5977. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5978. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5979. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5980. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5981. echo $ECHO_N "(cached) $ECHO_C" >&6
  5982. else
  5983. ac_check_lib_save_LIBS=$LIBS
  5984. LIBS="-lcares $LIBS"
  5985. cat >conftest.$ac_ext <<_ACEOF
  5986. /* confdefs.h. */
  5987. _ACEOF
  5988. cat confdefs.h >>conftest.$ac_ext
  5989. cat >>conftest.$ac_ext <<_ACEOF
  5990. /* end confdefs.h. */
  5991. /* Override any GCC internal prototype to avoid an error.
  5992. Use char because int might match the return type of a GCC
  5993. builtin and then its argument prototype would still apply. */
  5994. #ifdef __cplusplus
  5995. extern "C"
  5996. #endif
  5997. char ares_init ();
  5998. int
  5999. main ()
  6000. {
  6001. return ares_init ();
  6002. ;
  6003. return 0;
  6004. }
  6005. _ACEOF
  6006. rm -f conftest.$ac_objext conftest$ac_exeext
  6007. if { (ac_try="$ac_link"
  6008. case "(($ac_try" in
  6009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6010. *) ac_try_echo=$ac_try;;
  6011. esac
  6012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6013. (eval "$ac_link") 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } && {
  6020. test -z "$ac_cxx_werror_flag" ||
  6021. test ! -s conftest.err
  6022. } && test -s conftest$ac_exeext &&
  6023. $as_test_x conftest$ac_exeext; then
  6024. ac_cv_lib_cares_ares_init=yes
  6025. else
  6026. echo "$as_me: failed program was:" >&5
  6027. sed 's/^/| /' conftest.$ac_ext >&5
  6028. ac_cv_lib_cares_ares_init=no
  6029. fi
  6030. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6031. conftest$ac_exeext conftest.$ac_ext
  6032. LIBS=$ac_check_lib_save_LIBS
  6033. fi
  6034. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6035. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6036. if test $ac_cv_lib_cares_ares_init = yes; then
  6037. have_libcares=yes
  6038. fi
  6039. if test "x$have_libcares" = "xyes"; then
  6040. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6041. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6042. cat >conftest.$ac_ext <<_ACEOF
  6043. /* confdefs.h. */
  6044. _ACEOF
  6045. cat confdefs.h >>conftest.$ac_ext
  6046. cat >>conftest.$ac_ext <<_ACEOF
  6047. /* end confdefs.h. */
  6048. #include <ares.h>
  6049. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6050. int
  6051. main ()
  6052. {
  6053. ares_channel channel;
  6054. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6055. ;
  6056. return 0;
  6057. }
  6058. _ACEOF
  6059. rm -f conftest.$ac_objext
  6060. if { (ac_try="$ac_compile"
  6061. case "(($ac_try" in
  6062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6063. *) ac_try_echo=$ac_try;;
  6064. esac
  6065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6066. (eval "$ac_compile") 2>conftest.er1
  6067. ac_status=$?
  6068. grep -v '^ *+' conftest.er1 >conftest.err
  6069. rm -f conftest.er1
  6070. cat conftest.err >&5
  6071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6072. (exit $ac_status); } && {
  6073. test -z "$ac_cxx_werror_flag" ||
  6074. test ! -s conftest.err
  6075. } && test -s conftest.$ac_objext; then
  6076. have_libcares1_5=yes
  6077. else
  6078. echo "$as_me: failed program was:" >&5
  6079. sed 's/^/| /' conftest.$ac_ext >&5
  6080. have_libcares1_5=no
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6083. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6084. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6085. if test "x$have_libcares1_5" = "xyes"; then
  6086. cat >>confdefs.h <<\_ACEOF
  6087. #define HAVE_LIBCARES1_5 1
  6088. _ACEOF
  6089. fi
  6090. cat >>confdefs.h <<\_ACEOF
  6091. #define HAVE_LIBCARES 1
  6092. _ACEOF
  6093. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6094. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6095. fi
  6096. LIBS=$LIBS_save
  6097. CPPFLAGS=$CPPFLAGS_save
  6098. fi
  6099. if test "x$have_libcares" = "x"; then
  6100. if test "x$with_libares" = "xyes"; then
  6101. # Check whether --with-libares-prefix was given.
  6102. if test "${with_libares_prefix+set}" = set; then
  6103. withval=$with_libares_prefix; libares_prefix=$withval
  6104. else
  6105. libares_prefix=""
  6106. fi
  6107. if test "x$libares_prefix" = "x"; then
  6108. libares_prefix="/usr"
  6109. fi
  6110. libares_prefix_lib=$libares_prefix/lib
  6111. libares_prefix_include=$libares_prefix/include
  6112. LIBS_save=$LIBS
  6113. CPPFLAGS_save=$CPPFLAGS
  6114. LIBS="-L$libares_prefix_lib $LIBS"
  6115. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6116. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6117. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6118. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6119. echo $ECHO_N "(cached) $ECHO_C" >&6
  6120. else
  6121. ac_check_lib_save_LIBS=$LIBS
  6122. LIBS="-lares $LIBS"
  6123. cat >conftest.$ac_ext <<_ACEOF
  6124. /* confdefs.h. */
  6125. _ACEOF
  6126. cat confdefs.h >>conftest.$ac_ext
  6127. cat >>conftest.$ac_ext <<_ACEOF
  6128. /* end confdefs.h. */
  6129. /* Override any GCC internal prototype to avoid an error.
  6130. Use char because int might match the return type of a GCC
  6131. builtin and then its argument prototype would still apply. */
  6132. #ifdef __cplusplus
  6133. extern "C"
  6134. #endif
  6135. char ares_init ();
  6136. int
  6137. main ()
  6138. {
  6139. return ares_init ();
  6140. ;
  6141. return 0;
  6142. }
  6143. _ACEOF
  6144. rm -f conftest.$ac_objext conftest$ac_exeext
  6145. if { (ac_try="$ac_link"
  6146. case "(($ac_try" in
  6147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6148. *) ac_try_echo=$ac_try;;
  6149. esac
  6150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6151. (eval "$ac_link") 2>conftest.er1
  6152. ac_status=$?
  6153. grep -v '^ *+' conftest.er1 >conftest.err
  6154. rm -f conftest.er1
  6155. cat conftest.err >&5
  6156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); } && {
  6158. test -z "$ac_cxx_werror_flag" ||
  6159. test ! -s conftest.err
  6160. } && test -s conftest$ac_exeext &&
  6161. $as_test_x conftest$ac_exeext; then
  6162. ac_cv_lib_ares_ares_init=yes
  6163. else
  6164. echo "$as_me: failed program was:" >&5
  6165. sed 's/^/| /' conftest.$ac_ext >&5
  6166. ac_cv_lib_ares_ares_init=no
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6169. conftest$ac_exeext conftest.$ac_ext
  6170. LIBS=$ac_check_lib_save_LIBS
  6171. fi
  6172. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6173. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6174. if test $ac_cv_lib_ares_ares_init = yes; then
  6175. have_libares=yes
  6176. fi
  6177. if test "x$have_libares" = "xyes"; then
  6178. cat >>confdefs.h <<\_ACEOF
  6179. #define HAVE_LIBARES 1
  6180. _ACEOF
  6181. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6182. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6183. fi
  6184. LIBS=$LIBS_save
  6185. CPPFLAGS=$CPPFLAGS_save
  6186. fi
  6187. fi
  6188. # Check availability of libz
  6189. if test "x$with_libz" = "xyes"; then
  6190. # Check whether --with-libz-prefix was given.
  6191. if test "${with_libz_prefix+set}" = set; then
  6192. withval=$with_libz_prefix; libz_prefix=$withval
  6193. else
  6194. libz_prefix=""
  6195. fi
  6196. if test "x$libz_prefix" = "x"; then
  6197. libz_prefix="/usr"
  6198. fi
  6199. libz_prefix_lib=$libz_prefix/lib
  6200. libz_prefix_include=$libz_prefix/include
  6201. LIBS_save=$LIBS
  6202. CPPFLAGS_save=$CPPFLAGS
  6203. LIBS="-L$libz_prefix_lib $LIBS"
  6204. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6205. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6206. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6207. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6208. echo $ECHO_N "(cached) $ECHO_C" >&6
  6209. else
  6210. ac_check_lib_save_LIBS=$LIBS
  6211. LIBS="-lz $LIBS"
  6212. cat >conftest.$ac_ext <<_ACEOF
  6213. /* confdefs.h. */
  6214. _ACEOF
  6215. cat confdefs.h >>conftest.$ac_ext
  6216. cat >>conftest.$ac_ext <<_ACEOF
  6217. /* end confdefs.h. */
  6218. /* Override any GCC internal prototype to avoid an error.
  6219. Use char because int might match the return type of a GCC
  6220. builtin and then its argument prototype would still apply. */
  6221. #ifdef __cplusplus
  6222. extern "C"
  6223. #endif
  6224. char zlibVersion ();
  6225. int
  6226. main ()
  6227. {
  6228. return zlibVersion ();
  6229. ;
  6230. return 0;
  6231. }
  6232. _ACEOF
  6233. rm -f conftest.$ac_objext conftest$ac_exeext
  6234. if { (ac_try="$ac_link"
  6235. case "(($ac_try" in
  6236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6237. *) ac_try_echo=$ac_try;;
  6238. esac
  6239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6240. (eval "$ac_link") 2>conftest.er1
  6241. ac_status=$?
  6242. grep -v '^ *+' conftest.er1 >conftest.err
  6243. rm -f conftest.er1
  6244. cat conftest.err >&5
  6245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6246. (exit $ac_status); } && {
  6247. test -z "$ac_cxx_werror_flag" ||
  6248. test ! -s conftest.err
  6249. } && test -s conftest$ac_exeext &&
  6250. $as_test_x conftest$ac_exeext; then
  6251. ac_cv_lib_z_zlibVersion=yes
  6252. else
  6253. echo "$as_me: failed program was:" >&5
  6254. sed 's/^/| /' conftest.$ac_ext >&5
  6255. ac_cv_lib_z_zlibVersion=no
  6256. fi
  6257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6258. conftest$ac_exeext conftest.$ac_ext
  6259. LIBS=$ac_check_lib_save_LIBS
  6260. fi
  6261. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6262. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6263. if test $ac_cv_lib_z_zlibVersion = yes; then
  6264. have_libz=yes
  6265. fi
  6266. if test "x$have_libz" = "xyes"; then
  6267. cat >>confdefs.h <<\_ACEOF
  6268. #define HAVE_LIBZ 1
  6269. _ACEOF
  6270. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6271. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6272. fi
  6273. LIBS=$LIBS_save
  6274. CPPFLAGS=$CPPFLAGS_save
  6275. fi
  6276. # Define variables based on the result of the checks for libraries.
  6277. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6278. cat >>confdefs.h <<\_ACEOF
  6279. #define ENABLE_SSL 1
  6280. _ACEOF
  6281. fi
  6282. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6283. cat >>confdefs.h <<\_ACEOF
  6284. #define ENABLE_MESSAGE_DIGEST 1
  6285. _ACEOF
  6286. if true; then
  6287. ENABLE_MESSAGE_DIGEST_TRUE=
  6288. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6289. else
  6290. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6291. ENABLE_MESSAGE_DIGEST_FALSE=
  6292. fi
  6293. enable_message_digest=yes
  6294. else
  6295. if false; then
  6296. ENABLE_MESSAGE_DIGEST_TRUE=
  6297. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6298. else
  6299. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6300. ENABLE_MESSAGE_DIGEST_FALSE=
  6301. fi
  6302. fi
  6303. if test "x$enable_bittorrent" = "xyes" &&
  6304. test "x$enable_message_digest" = "xyes"; then
  6305. cat >>confdefs.h <<\_ACEOF
  6306. #define ENABLE_BITTORRENT 1
  6307. _ACEOF
  6308. if true; then
  6309. ENABLE_BITTORRENT_TRUE=
  6310. ENABLE_BITTORRENT_FALSE='#'
  6311. else
  6312. ENABLE_BITTORRENT_TRUE='#'
  6313. ENABLE_BITTORRENT_FALSE=
  6314. fi
  6315. else
  6316. enable_bittorrent=no
  6317. if false; then
  6318. ENABLE_BITTORRENT_TRUE=
  6319. ENABLE_BITTORRENT_FALSE='#'
  6320. else
  6321. ENABLE_BITTORRENT_TRUE='#'
  6322. ENABLE_BITTORRENT_FALSE=
  6323. fi
  6324. fi
  6325. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6326. test "x$enable_metalink" = "xyes"; then
  6327. cat >>confdefs.h <<\_ACEOF
  6328. #define ENABLE_METALINK 1
  6329. _ACEOF
  6330. if true; then
  6331. ENABLE_METALINK_TRUE=
  6332. ENABLE_METALINK_FALSE='#'
  6333. else
  6334. ENABLE_METALINK_TRUE='#'
  6335. ENABLE_METALINK_FALSE=
  6336. fi
  6337. else
  6338. enable_metalink=no
  6339. if false; then
  6340. ENABLE_METALINK_TRUE=
  6341. ENABLE_METALINK_FALSE='#'
  6342. else
  6343. ENABLE_METALINK_TRUE='#'
  6344. ENABLE_METALINK_FALSE=
  6345. fi
  6346. fi
  6347. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6348. ENABLE_LIBXML2_TRUE=
  6349. ENABLE_LIBXML2_FALSE='#'
  6350. else
  6351. ENABLE_LIBXML2_TRUE='#'
  6352. ENABLE_LIBXML2_FALSE=
  6353. fi
  6354. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6355. ENABLE_LIBEXPAT_TRUE=
  6356. ENABLE_LIBEXPAT_FALSE='#'
  6357. else
  6358. ENABLE_LIBEXPAT_TRUE='#'
  6359. ENABLE_LIBEXPAT_FALSE=
  6360. fi
  6361. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6362. cat >>confdefs.h <<\_ACEOF
  6363. #define ENABLE_ASYNC_DNS 1
  6364. _ACEOF
  6365. if true; then
  6366. ENABLE_ASYNC_DNS_TRUE=
  6367. ENABLE_ASYNC_DNS_FALSE='#'
  6368. else
  6369. ENABLE_ASYNC_DNS_TRUE='#'
  6370. ENABLE_ASYNC_DNS_FALSE=
  6371. fi
  6372. else
  6373. if false; then
  6374. ENABLE_ASYNC_DNS_TRUE=
  6375. ENABLE_ASYNC_DNS_FALSE='#'
  6376. else
  6377. ENABLE_ASYNC_DNS_TRUE='#'
  6378. ENABLE_ASYNC_DNS_FALSE=
  6379. fi
  6380. fi
  6381. # Set conditional for libz
  6382. if test "x$have_libz" = "xyes"; then
  6383. HAVE_LIBZ_TRUE=
  6384. HAVE_LIBZ_FALSE='#'
  6385. else
  6386. HAVE_LIBZ_TRUE='#'
  6387. HAVE_LIBZ_FALSE=
  6388. fi
  6389. # Checks for header files.
  6390. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6391. # for constant arguments. Useless!
  6392. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6393. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6394. if test "${ac_cv_working_alloca_h+set}" = set; then
  6395. echo $ECHO_N "(cached) $ECHO_C" >&6
  6396. else
  6397. cat >conftest.$ac_ext <<_ACEOF
  6398. /* confdefs.h. */
  6399. _ACEOF
  6400. cat confdefs.h >>conftest.$ac_ext
  6401. cat >>conftest.$ac_ext <<_ACEOF
  6402. /* end confdefs.h. */
  6403. #include <alloca.h>
  6404. int
  6405. main ()
  6406. {
  6407. char *p = (char *) alloca (2 * sizeof (int));
  6408. if (p) return 0;
  6409. ;
  6410. return 0;
  6411. }
  6412. _ACEOF
  6413. rm -f conftest.$ac_objext conftest$ac_exeext
  6414. if { (ac_try="$ac_link"
  6415. case "(($ac_try" in
  6416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6417. *) ac_try_echo=$ac_try;;
  6418. esac
  6419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6420. (eval "$ac_link") 2>conftest.er1
  6421. ac_status=$?
  6422. grep -v '^ *+' conftest.er1 >conftest.err
  6423. rm -f conftest.er1
  6424. cat conftest.err >&5
  6425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6426. (exit $ac_status); } && {
  6427. test -z "$ac_cxx_werror_flag" ||
  6428. test ! -s conftest.err
  6429. } && test -s conftest$ac_exeext &&
  6430. $as_test_x conftest$ac_exeext; then
  6431. ac_cv_working_alloca_h=yes
  6432. else
  6433. echo "$as_me: failed program was:" >&5
  6434. sed 's/^/| /' conftest.$ac_ext >&5
  6435. ac_cv_working_alloca_h=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6438. conftest$ac_exeext conftest.$ac_ext
  6439. fi
  6440. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6441. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6442. if test $ac_cv_working_alloca_h = yes; then
  6443. cat >>confdefs.h <<\_ACEOF
  6444. #define HAVE_ALLOCA_H 1
  6445. _ACEOF
  6446. fi
  6447. { echo "$as_me:$LINENO: checking for alloca" >&5
  6448. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6449. if test "${ac_cv_func_alloca_works+set}" = set; then
  6450. echo $ECHO_N "(cached) $ECHO_C" >&6
  6451. else
  6452. cat >conftest.$ac_ext <<_ACEOF
  6453. /* confdefs.h. */
  6454. _ACEOF
  6455. cat confdefs.h >>conftest.$ac_ext
  6456. cat >>conftest.$ac_ext <<_ACEOF
  6457. /* end confdefs.h. */
  6458. #ifdef __GNUC__
  6459. # define alloca __builtin_alloca
  6460. #else
  6461. # ifdef _MSC_VER
  6462. # include <malloc.h>
  6463. # define alloca _alloca
  6464. # else
  6465. # ifdef HAVE_ALLOCA_H
  6466. # include <alloca.h>
  6467. # else
  6468. # ifdef _AIX
  6469. #pragma alloca
  6470. # else
  6471. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6472. char *alloca ();
  6473. # endif
  6474. # endif
  6475. # endif
  6476. # endif
  6477. #endif
  6478. int
  6479. main ()
  6480. {
  6481. char *p = (char *) alloca (1);
  6482. if (p) return 0;
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. rm -f conftest.$ac_objext conftest$ac_exeext
  6488. if { (ac_try="$ac_link"
  6489. case "(($ac_try" in
  6490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6491. *) ac_try_echo=$ac_try;;
  6492. esac
  6493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6494. (eval "$ac_link") 2>conftest.er1
  6495. ac_status=$?
  6496. grep -v '^ *+' conftest.er1 >conftest.err
  6497. rm -f conftest.er1
  6498. cat conftest.err >&5
  6499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6500. (exit $ac_status); } && {
  6501. test -z "$ac_cxx_werror_flag" ||
  6502. test ! -s conftest.err
  6503. } && test -s conftest$ac_exeext &&
  6504. $as_test_x conftest$ac_exeext; then
  6505. ac_cv_func_alloca_works=yes
  6506. else
  6507. echo "$as_me: failed program was:" >&5
  6508. sed 's/^/| /' conftest.$ac_ext >&5
  6509. ac_cv_func_alloca_works=no
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6512. conftest$ac_exeext conftest.$ac_ext
  6513. fi
  6514. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6515. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6516. if test $ac_cv_func_alloca_works = yes; then
  6517. cat >>confdefs.h <<\_ACEOF
  6518. #define HAVE_ALLOCA 1
  6519. _ACEOF
  6520. else
  6521. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6522. # that cause trouble. Some versions do not even contain alloca or
  6523. # contain a buggy version. If you still want to use their alloca,
  6524. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6525. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6526. cat >>confdefs.h <<\_ACEOF
  6527. #define C_ALLOCA 1
  6528. _ACEOF
  6529. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6530. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6531. if test "${ac_cv_os_cray+set}" = set; then
  6532. echo $ECHO_N "(cached) $ECHO_C" >&6
  6533. else
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. /* confdefs.h. */
  6536. _ACEOF
  6537. cat confdefs.h >>conftest.$ac_ext
  6538. cat >>conftest.$ac_ext <<_ACEOF
  6539. /* end confdefs.h. */
  6540. #if defined CRAY && ! defined CRAY2
  6541. webecray
  6542. #else
  6543. wenotbecray
  6544. #endif
  6545. _ACEOF
  6546. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6547. $EGREP "webecray" >/dev/null 2>&1; then
  6548. ac_cv_os_cray=yes
  6549. else
  6550. ac_cv_os_cray=no
  6551. fi
  6552. rm -f conftest*
  6553. fi
  6554. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6555. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6556. if test $ac_cv_os_cray = yes; then
  6557. for ac_func in _getb67 GETB67 getb67; do
  6558. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6559. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6560. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6561. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6562. echo $ECHO_N "(cached) $ECHO_C" >&6
  6563. else
  6564. cat >conftest.$ac_ext <<_ACEOF
  6565. /* confdefs.h. */
  6566. _ACEOF
  6567. cat confdefs.h >>conftest.$ac_ext
  6568. cat >>conftest.$ac_ext <<_ACEOF
  6569. /* end confdefs.h. */
  6570. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6571. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6572. #define $ac_func innocuous_$ac_func
  6573. /* System header to define __stub macros and hopefully few prototypes,
  6574. which can conflict with char $ac_func (); below.
  6575. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6576. <limits.h> exists even on freestanding compilers. */
  6577. #ifdef __STDC__
  6578. # include <limits.h>
  6579. #else
  6580. # include <assert.h>
  6581. #endif
  6582. #undef $ac_func
  6583. /* Override any GCC internal prototype to avoid an error.
  6584. Use char because int might match the return type of a GCC
  6585. builtin and then its argument prototype would still apply. */
  6586. #ifdef __cplusplus
  6587. extern "C"
  6588. #endif
  6589. char $ac_func ();
  6590. /* The GNU C library defines this for functions which it implements
  6591. to always fail with ENOSYS. Some functions are actually named
  6592. something starting with __ and the normal name is an alias. */
  6593. #if defined __stub_$ac_func || defined __stub___$ac_func
  6594. choke me
  6595. #endif
  6596. int
  6597. main ()
  6598. {
  6599. return $ac_func ();
  6600. ;
  6601. return 0;
  6602. }
  6603. _ACEOF
  6604. rm -f conftest.$ac_objext conftest$ac_exeext
  6605. if { (ac_try="$ac_link"
  6606. case "(($ac_try" in
  6607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6608. *) ac_try_echo=$ac_try;;
  6609. esac
  6610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6611. (eval "$ac_link") 2>conftest.er1
  6612. ac_status=$?
  6613. grep -v '^ *+' conftest.er1 >conftest.err
  6614. rm -f conftest.er1
  6615. cat conftest.err >&5
  6616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); } && {
  6618. test -z "$ac_cxx_werror_flag" ||
  6619. test ! -s conftest.err
  6620. } && test -s conftest$ac_exeext &&
  6621. $as_test_x conftest$ac_exeext; then
  6622. eval "$as_ac_var=yes"
  6623. else
  6624. echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. eval "$as_ac_var=no"
  6627. fi
  6628. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6629. conftest$ac_exeext conftest.$ac_ext
  6630. fi
  6631. ac_res=`eval echo '${'$as_ac_var'}'`
  6632. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6633. echo "${ECHO_T}$ac_res" >&6; }
  6634. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define CRAY_STACKSEG_END $ac_func
  6637. _ACEOF
  6638. break
  6639. fi
  6640. done
  6641. fi
  6642. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6643. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6644. if test "${ac_cv_c_stack_direction+set}" = set; then
  6645. echo $ECHO_N "(cached) $ECHO_C" >&6
  6646. else
  6647. if test "$cross_compiling" = yes; then
  6648. ac_cv_c_stack_direction=0
  6649. else
  6650. cat >conftest.$ac_ext <<_ACEOF
  6651. /* confdefs.h. */
  6652. _ACEOF
  6653. cat confdefs.h >>conftest.$ac_ext
  6654. cat >>conftest.$ac_ext <<_ACEOF
  6655. /* end confdefs.h. */
  6656. $ac_includes_default
  6657. int
  6658. find_stack_direction ()
  6659. {
  6660. static char *addr = 0;
  6661. auto char dummy;
  6662. if (addr == 0)
  6663. {
  6664. addr = &dummy;
  6665. return find_stack_direction ();
  6666. }
  6667. else
  6668. return (&dummy > addr) ? 1 : -1;
  6669. }
  6670. int
  6671. main ()
  6672. {
  6673. return find_stack_direction () < 0;
  6674. }
  6675. _ACEOF
  6676. rm -f conftest$ac_exeext
  6677. if { (ac_try="$ac_link"
  6678. case "(($ac_try" in
  6679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6680. *) ac_try_echo=$ac_try;;
  6681. esac
  6682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6683. (eval "$ac_link") 2>&5
  6684. ac_status=$?
  6685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6687. { (case "(($ac_try" in
  6688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6689. *) ac_try_echo=$ac_try;;
  6690. esac
  6691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6692. (eval "$ac_try") 2>&5
  6693. ac_status=$?
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }; }; then
  6696. ac_cv_c_stack_direction=1
  6697. else
  6698. echo "$as_me: program exited with status $ac_status" >&5
  6699. echo "$as_me: failed program was:" >&5
  6700. sed 's/^/| /' conftest.$ac_ext >&5
  6701. ( exit $ac_status )
  6702. ac_cv_c_stack_direction=-1
  6703. fi
  6704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6705. fi
  6706. fi
  6707. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6708. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6709. cat >>confdefs.h <<_ACEOF
  6710. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6711. _ACEOF
  6712. fi
  6713. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6714. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6715. if test "${ac_cv_header_stdc+set}" = set; then
  6716. echo $ECHO_N "(cached) $ECHO_C" >&6
  6717. else
  6718. cat >conftest.$ac_ext <<_ACEOF
  6719. /* confdefs.h. */
  6720. _ACEOF
  6721. cat confdefs.h >>conftest.$ac_ext
  6722. cat >>conftest.$ac_ext <<_ACEOF
  6723. /* end confdefs.h. */
  6724. #include <stdlib.h>
  6725. #include <stdarg.h>
  6726. #include <string.h>
  6727. #include <float.h>
  6728. int
  6729. main ()
  6730. {
  6731. ;
  6732. return 0;
  6733. }
  6734. _ACEOF
  6735. rm -f conftest.$ac_objext
  6736. if { (ac_try="$ac_compile"
  6737. case "(($ac_try" in
  6738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6739. *) ac_try_echo=$ac_try;;
  6740. esac
  6741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6742. (eval "$ac_compile") 2>conftest.er1
  6743. ac_status=$?
  6744. grep -v '^ *+' conftest.er1 >conftest.err
  6745. rm -f conftest.er1
  6746. cat conftest.err >&5
  6747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); } && {
  6749. test -z "$ac_cxx_werror_flag" ||
  6750. test ! -s conftest.err
  6751. } && test -s conftest.$ac_objext; then
  6752. ac_cv_header_stdc=yes
  6753. else
  6754. echo "$as_me: failed program was:" >&5
  6755. sed 's/^/| /' conftest.$ac_ext >&5
  6756. ac_cv_header_stdc=no
  6757. fi
  6758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6759. if test $ac_cv_header_stdc = yes; then
  6760. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6761. cat >conftest.$ac_ext <<_ACEOF
  6762. /* confdefs.h. */
  6763. _ACEOF
  6764. cat confdefs.h >>conftest.$ac_ext
  6765. cat >>conftest.$ac_ext <<_ACEOF
  6766. /* end confdefs.h. */
  6767. #include <string.h>
  6768. _ACEOF
  6769. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6770. $EGREP "memchr" >/dev/null 2>&1; then
  6771. :
  6772. else
  6773. ac_cv_header_stdc=no
  6774. fi
  6775. rm -f conftest*
  6776. fi
  6777. if test $ac_cv_header_stdc = yes; then
  6778. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6779. cat >conftest.$ac_ext <<_ACEOF
  6780. /* confdefs.h. */
  6781. _ACEOF
  6782. cat confdefs.h >>conftest.$ac_ext
  6783. cat >>conftest.$ac_ext <<_ACEOF
  6784. /* end confdefs.h. */
  6785. #include <stdlib.h>
  6786. _ACEOF
  6787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6788. $EGREP "free" >/dev/null 2>&1; then
  6789. :
  6790. else
  6791. ac_cv_header_stdc=no
  6792. fi
  6793. rm -f conftest*
  6794. fi
  6795. if test $ac_cv_header_stdc = yes; then
  6796. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6797. if test "$cross_compiling" = yes; then
  6798. :
  6799. else
  6800. cat >conftest.$ac_ext <<_ACEOF
  6801. /* confdefs.h. */
  6802. _ACEOF
  6803. cat confdefs.h >>conftest.$ac_ext
  6804. cat >>conftest.$ac_ext <<_ACEOF
  6805. /* end confdefs.h. */
  6806. #include <ctype.h>
  6807. #include <stdlib.h>
  6808. #if ((' ' & 0x0FF) == 0x020)
  6809. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6810. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6811. #else
  6812. # define ISLOWER(c) \
  6813. (('a' <= (c) && (c) <= 'i') \
  6814. || ('j' <= (c) && (c) <= 'r') \
  6815. || ('s' <= (c) && (c) <= 'z'))
  6816. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6817. #endif
  6818. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6819. int
  6820. main ()
  6821. {
  6822. int i;
  6823. for (i = 0; i < 256; i++)
  6824. if (XOR (islower (i), ISLOWER (i))
  6825. || toupper (i) != TOUPPER (i))
  6826. return 2;
  6827. return 0;
  6828. }
  6829. _ACEOF
  6830. rm -f conftest$ac_exeext
  6831. if { (ac_try="$ac_link"
  6832. case "(($ac_try" in
  6833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6834. *) ac_try_echo=$ac_try;;
  6835. esac
  6836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6837. (eval "$ac_link") 2>&5
  6838. ac_status=$?
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6841. { (case "(($ac_try" in
  6842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6843. *) ac_try_echo=$ac_try;;
  6844. esac
  6845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6846. (eval "$ac_try") 2>&5
  6847. ac_status=$?
  6848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. (exit $ac_status); }; }; then
  6850. :
  6851. else
  6852. echo "$as_me: program exited with status $ac_status" >&5
  6853. echo "$as_me: failed program was:" >&5
  6854. sed 's/^/| /' conftest.$ac_ext >&5
  6855. ( exit $ac_status )
  6856. ac_cv_header_stdc=no
  6857. fi
  6858. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6859. fi
  6860. fi
  6861. fi
  6862. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6863. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6864. if test $ac_cv_header_stdc = yes; then
  6865. cat >>confdefs.h <<\_ACEOF
  6866. #define STDC_HEADERS 1
  6867. _ACEOF
  6868. fi
  6869. for ac_header in winsock2.h \
  6870. ws2tcpip.h \
  6871. argz.h \
  6872. arpa/inet.h \
  6873. fcntl.h \
  6874. float.h \
  6875. inttypes.h \
  6876. io.h \
  6877. langinfo.h \
  6878. libintl.h \
  6879. limits.h \
  6880. locale.h \
  6881. malloc.h \
  6882. netdb.h \
  6883. netinet/in.h \
  6884. stddef.h \
  6885. stdint.h \
  6886. stdio_ext.h \
  6887. stdlib.h \
  6888. string.h \
  6889. strings.h \
  6890. sys/ioctl.h \
  6891. sys/param.h \
  6892. sys/socket.h \
  6893. sys/time.h \
  6894. termios.h \
  6895. unistd.h \
  6896. wchar.h
  6897. do
  6898. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6899. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6900. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6901. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6902. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6903. echo $ECHO_N "(cached) $ECHO_C" >&6
  6904. fi
  6905. ac_res=`eval echo '${'$as_ac_Header'}'`
  6906. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6907. echo "${ECHO_T}$ac_res" >&6; }
  6908. else
  6909. # Is the header compilable?
  6910. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6911. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6912. cat >conftest.$ac_ext <<_ACEOF
  6913. /* confdefs.h. */
  6914. _ACEOF
  6915. cat confdefs.h >>conftest.$ac_ext
  6916. cat >>conftest.$ac_ext <<_ACEOF
  6917. /* end confdefs.h. */
  6918. $ac_includes_default
  6919. #include <$ac_header>
  6920. _ACEOF
  6921. rm -f conftest.$ac_objext
  6922. if { (ac_try="$ac_compile"
  6923. case "(($ac_try" in
  6924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6925. *) ac_try_echo=$ac_try;;
  6926. esac
  6927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6928. (eval "$ac_compile") 2>conftest.er1
  6929. ac_status=$?
  6930. grep -v '^ *+' conftest.er1 >conftest.err
  6931. rm -f conftest.er1
  6932. cat conftest.err >&5
  6933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6934. (exit $ac_status); } && {
  6935. test -z "$ac_cxx_werror_flag" ||
  6936. test ! -s conftest.err
  6937. } && test -s conftest.$ac_objext; then
  6938. ac_header_compiler=yes
  6939. else
  6940. echo "$as_me: failed program was:" >&5
  6941. sed 's/^/| /' conftest.$ac_ext >&5
  6942. ac_header_compiler=no
  6943. fi
  6944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6945. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6946. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6947. # Is the header present?
  6948. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6949. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6950. cat >conftest.$ac_ext <<_ACEOF
  6951. /* confdefs.h. */
  6952. _ACEOF
  6953. cat confdefs.h >>conftest.$ac_ext
  6954. cat >>conftest.$ac_ext <<_ACEOF
  6955. /* end confdefs.h. */
  6956. #include <$ac_header>
  6957. _ACEOF
  6958. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6959. case "(($ac_try" in
  6960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6961. *) ac_try_echo=$ac_try;;
  6962. esac
  6963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6964. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6965. ac_status=$?
  6966. grep -v '^ *+' conftest.er1 >conftest.err
  6967. rm -f conftest.er1
  6968. cat conftest.err >&5
  6969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6970. (exit $ac_status); } >/dev/null && {
  6971. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6972. test ! -s conftest.err
  6973. }; then
  6974. ac_header_preproc=yes
  6975. else
  6976. echo "$as_me: failed program was:" >&5
  6977. sed 's/^/| /' conftest.$ac_ext >&5
  6978. ac_header_preproc=no
  6979. fi
  6980. rm -f conftest.err conftest.$ac_ext
  6981. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6982. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6983. # So? What about this header?
  6984. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6985. yes:no: )
  6986. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6987. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6988. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6989. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6990. ac_header_preproc=yes
  6991. ;;
  6992. no:yes:* )
  6993. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6994. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6995. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6996. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6997. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6998. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6999. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7000. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7001. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7002. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7003. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7004. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7005. ( cat <<\_ASBOX
  7006. ## ----------------------------------------------- ##
  7007. ## Report this to t-tujikawa@users.sourceforge.net ##
  7008. ## ----------------------------------------------- ##
  7009. _ASBOX
  7010. ) | sed "s/^/$as_me: WARNING: /" >&2
  7011. ;;
  7012. esac
  7013. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7014. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7015. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7016. echo $ECHO_N "(cached) $ECHO_C" >&6
  7017. else
  7018. eval "$as_ac_Header=\$ac_header_preproc"
  7019. fi
  7020. ac_res=`eval echo '${'$as_ac_Header'}'`
  7021. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7022. echo "${ECHO_T}$ac_res" >&6; }
  7023. fi
  7024. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7025. cat >>confdefs.h <<_ACEOF
  7026. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7027. _ACEOF
  7028. fi
  7029. done
  7030. # Checks for typedefs, structures, and compiler characteristics.
  7031. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7032. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7033. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7034. echo $ECHO_N "(cached) $ECHO_C" >&6
  7035. else
  7036. cat >conftest.$ac_ext <<_ACEOF
  7037. /* confdefs.h. */
  7038. _ACEOF
  7039. cat confdefs.h >>conftest.$ac_ext
  7040. cat >>conftest.$ac_ext <<_ACEOF
  7041. /* end confdefs.h. */
  7042. #include <stdbool.h>
  7043. #ifndef bool
  7044. "error: bool is not defined"
  7045. #endif
  7046. #ifndef false
  7047. "error: false is not defined"
  7048. #endif
  7049. #if false
  7050. "error: false is not 0"
  7051. #endif
  7052. #ifndef true
  7053. "error: true is not defined"
  7054. #endif
  7055. #if true != 1
  7056. "error: true is not 1"
  7057. #endif
  7058. #ifndef __bool_true_false_are_defined
  7059. "error: __bool_true_false_are_defined is not defined"
  7060. #endif
  7061. struct s { _Bool s: 1; _Bool t; } s;
  7062. char a[true == 1 ? 1 : -1];
  7063. char b[false == 0 ? 1 : -1];
  7064. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7065. char d[(bool) 0.5 == true ? 1 : -1];
  7066. bool e = &s;
  7067. char f[(_Bool) 0.0 == false ? 1 : -1];
  7068. char g[true];
  7069. char h[sizeof (_Bool)];
  7070. char i[sizeof s.t];
  7071. enum { j = false, k = true, l = false * true, m = true * 256 };
  7072. _Bool n[m];
  7073. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7074. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7075. # if defined __xlc__ || defined __GNUC__
  7076. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7077. reported by James Lemley on 2005-10-05; see
  7078. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7079. This test is not quite right, since xlc is allowed to
  7080. reject this program, as the initializer for xlcbug is
  7081. not one of the forms that C requires support for.
  7082. However, doing the test right would require a runtime
  7083. test, and that would make cross-compilation harder.
  7084. Let us hope that IBM fixes the xlc bug, and also adds
  7085. support for this kind of constant expression. In the
  7086. meantime, this test will reject xlc, which is OK, since
  7087. our stdbool.h substitute should suffice. We also test
  7088. this with GCC, where it should work, to detect more
  7089. quickly whether someone messes up the test in the
  7090. future. */
  7091. char digs[] = "0123456789";
  7092. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7093. # endif
  7094. /* Catch a bug in an HP-UX C compiler. See
  7095. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7096. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7097. */
  7098. _Bool q = true;
  7099. _Bool *pq = &q;
  7100. int
  7101. main ()
  7102. {
  7103. *pq |= q;
  7104. *pq |= ! q;
  7105. /* Refer to every declared value, to avoid compiler optimizations. */
  7106. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7107. + !m + !n + !o + !p + !q + !pq);
  7108. ;
  7109. return 0;
  7110. }
  7111. _ACEOF
  7112. rm -f conftest.$ac_objext
  7113. if { (ac_try="$ac_compile"
  7114. case "(($ac_try" in
  7115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7116. *) ac_try_echo=$ac_try;;
  7117. esac
  7118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7119. (eval "$ac_compile") 2>conftest.er1
  7120. ac_status=$?
  7121. grep -v '^ *+' conftest.er1 >conftest.err
  7122. rm -f conftest.er1
  7123. cat conftest.err >&5
  7124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7125. (exit $ac_status); } && {
  7126. test -z "$ac_cxx_werror_flag" ||
  7127. test ! -s conftest.err
  7128. } && test -s conftest.$ac_objext; then
  7129. ac_cv_header_stdbool_h=yes
  7130. else
  7131. echo "$as_me: failed program was:" >&5
  7132. sed 's/^/| /' conftest.$ac_ext >&5
  7133. ac_cv_header_stdbool_h=no
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7136. fi
  7137. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7138. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7139. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7140. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7141. if test "${ac_cv_type__Bool+set}" = set; then
  7142. echo $ECHO_N "(cached) $ECHO_C" >&6
  7143. else
  7144. cat >conftest.$ac_ext <<_ACEOF
  7145. /* confdefs.h. */
  7146. _ACEOF
  7147. cat confdefs.h >>conftest.$ac_ext
  7148. cat >>conftest.$ac_ext <<_ACEOF
  7149. /* end confdefs.h. */
  7150. $ac_includes_default
  7151. typedef _Bool ac__type_new_;
  7152. int
  7153. main ()
  7154. {
  7155. if ((ac__type_new_ *) 0)
  7156. return 0;
  7157. if (sizeof (ac__type_new_))
  7158. return 0;
  7159. ;
  7160. return 0;
  7161. }
  7162. _ACEOF
  7163. rm -f conftest.$ac_objext
  7164. if { (ac_try="$ac_compile"
  7165. case "(($ac_try" in
  7166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7167. *) ac_try_echo=$ac_try;;
  7168. esac
  7169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7170. (eval "$ac_compile") 2>conftest.er1
  7171. ac_status=$?
  7172. grep -v '^ *+' conftest.er1 >conftest.err
  7173. rm -f conftest.er1
  7174. cat conftest.err >&5
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); } && {
  7177. test -z "$ac_cxx_werror_flag" ||
  7178. test ! -s conftest.err
  7179. } && test -s conftest.$ac_objext; then
  7180. ac_cv_type__Bool=yes
  7181. else
  7182. echo "$as_me: failed program was:" >&5
  7183. sed 's/^/| /' conftest.$ac_ext >&5
  7184. ac_cv_type__Bool=no
  7185. fi
  7186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7187. fi
  7188. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7189. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7190. if test $ac_cv_type__Bool = yes; then
  7191. cat >>confdefs.h <<_ACEOF
  7192. #define HAVE__BOOL 1
  7193. _ACEOF
  7194. fi
  7195. if test $ac_cv_header_stdbool_h = yes; then
  7196. cat >>confdefs.h <<\_ACEOF
  7197. #define HAVE_STDBOOL_H 1
  7198. _ACEOF
  7199. fi
  7200. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7201. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7202. if test "${ac_cv_c_const+set}" = set; then
  7203. echo $ECHO_N "(cached) $ECHO_C" >&6
  7204. else
  7205. cat >conftest.$ac_ext <<_ACEOF
  7206. /* confdefs.h. */
  7207. _ACEOF
  7208. cat confdefs.h >>conftest.$ac_ext
  7209. cat >>conftest.$ac_ext <<_ACEOF
  7210. /* end confdefs.h. */
  7211. int
  7212. main ()
  7213. {
  7214. /* FIXME: Include the comments suggested by Paul. */
  7215. #ifndef __cplusplus
  7216. /* Ultrix mips cc rejects this. */
  7217. typedef int charset[2];
  7218. const charset cs;
  7219. /* SunOS 4.1.1 cc rejects this. */
  7220. char const *const *pcpcc;
  7221. char **ppc;
  7222. /* NEC SVR4.0.2 mips cc rejects this. */
  7223. struct point {int x, y;};
  7224. static struct point const zero = {0,0};
  7225. /* AIX XL C 1.02.0.0 rejects this.
  7226. It does not let you subtract one const X* pointer from another in
  7227. an arm of an if-expression whose if-part is not a constant
  7228. expression */
  7229. const char *g = "string";
  7230. pcpcc = &g + (g ? g-g : 0);
  7231. /* HPUX 7.0 cc rejects these. */
  7232. ++pcpcc;
  7233. ppc = (char**) pcpcc;
  7234. pcpcc = (char const *const *) ppc;
  7235. { /* SCO 3.2v4 cc rejects this. */
  7236. char *t;
  7237. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7238. *t++ = 0;
  7239. if (s) return 0;
  7240. }
  7241. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7242. int x[] = {25, 17};
  7243. const int *foo = &x[0];
  7244. ++foo;
  7245. }
  7246. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7247. typedef const int *iptr;
  7248. iptr p = 0;
  7249. ++p;
  7250. }
  7251. { /* AIX XL C 1.02.0.0 rejects this saying
  7252. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7253. struct s { int j; const int *ap[3]; };
  7254. struct s *b; b->j = 5;
  7255. }
  7256. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7257. const int foo = 10;
  7258. if (!foo) return 0;
  7259. }
  7260. return !cs[0] && !zero.x;
  7261. #endif
  7262. ;
  7263. return 0;
  7264. }
  7265. _ACEOF
  7266. rm -f conftest.$ac_objext
  7267. if { (ac_try="$ac_compile"
  7268. case "(($ac_try" in
  7269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7270. *) ac_try_echo=$ac_try;;
  7271. esac
  7272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7273. (eval "$ac_compile") 2>conftest.er1
  7274. ac_status=$?
  7275. grep -v '^ *+' conftest.er1 >conftest.err
  7276. rm -f conftest.er1
  7277. cat conftest.err >&5
  7278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. (exit $ac_status); } && {
  7280. test -z "$ac_cxx_werror_flag" ||
  7281. test ! -s conftest.err
  7282. } && test -s conftest.$ac_objext; then
  7283. ac_cv_c_const=yes
  7284. else
  7285. echo "$as_me: failed program was:" >&5
  7286. sed 's/^/| /' conftest.$ac_ext >&5
  7287. ac_cv_c_const=no
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7290. fi
  7291. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7292. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7293. if test $ac_cv_c_const = no; then
  7294. cat >>confdefs.h <<\_ACEOF
  7295. #define const
  7296. _ACEOF
  7297. fi
  7298. { echo "$as_me:$LINENO: checking for inline" >&5
  7299. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7300. if test "${ac_cv_c_inline+set}" = set; then
  7301. echo $ECHO_N "(cached) $ECHO_C" >&6
  7302. else
  7303. ac_cv_c_inline=no
  7304. for ac_kw in inline __inline__ __inline; do
  7305. cat >conftest.$ac_ext <<_ACEOF
  7306. /* confdefs.h. */
  7307. _ACEOF
  7308. cat confdefs.h >>conftest.$ac_ext
  7309. cat >>conftest.$ac_ext <<_ACEOF
  7310. /* end confdefs.h. */
  7311. #ifndef __cplusplus
  7312. typedef int foo_t;
  7313. static $ac_kw foo_t static_foo () {return 0; }
  7314. $ac_kw foo_t foo () {return 0; }
  7315. #endif
  7316. _ACEOF
  7317. rm -f conftest.$ac_objext
  7318. if { (ac_try="$ac_compile"
  7319. case "(($ac_try" in
  7320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7321. *) ac_try_echo=$ac_try;;
  7322. esac
  7323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7324. (eval "$ac_compile") 2>conftest.er1
  7325. ac_status=$?
  7326. grep -v '^ *+' conftest.er1 >conftest.err
  7327. rm -f conftest.er1
  7328. cat conftest.err >&5
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. (exit $ac_status); } && {
  7331. test -z "$ac_cxx_werror_flag" ||
  7332. test ! -s conftest.err
  7333. } && test -s conftest.$ac_objext; then
  7334. ac_cv_c_inline=$ac_kw
  7335. else
  7336. echo "$as_me: failed program was:" >&5
  7337. sed 's/^/| /' conftest.$ac_ext >&5
  7338. fi
  7339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7340. test "$ac_cv_c_inline" != no && break
  7341. done
  7342. fi
  7343. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7344. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7345. case $ac_cv_c_inline in
  7346. inline | yes) ;;
  7347. *)
  7348. case $ac_cv_c_inline in
  7349. no) ac_val=;;
  7350. *) ac_val=$ac_cv_c_inline;;
  7351. esac
  7352. cat >>confdefs.h <<_ACEOF
  7353. #ifndef __cplusplus
  7354. #define inline $ac_val
  7355. #endif
  7356. _ACEOF
  7357. ;;
  7358. esac
  7359. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7360. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7361. if test "${ac_cv_c_int16_t+set}" = set; then
  7362. echo $ECHO_N "(cached) $ECHO_C" >&6
  7363. else
  7364. ac_cv_c_int16_t=no
  7365. for ac_type in 'int16_t' 'int' 'long int' \
  7366. 'long long int' 'short int' 'signed char'; do
  7367. cat >conftest.$ac_ext <<_ACEOF
  7368. /* confdefs.h. */
  7369. _ACEOF
  7370. cat confdefs.h >>conftest.$ac_ext
  7371. cat >>conftest.$ac_ext <<_ACEOF
  7372. /* end confdefs.h. */
  7373. $ac_includes_default
  7374. int
  7375. main ()
  7376. {
  7377. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7378. test_array [0] = 0
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. rm -f conftest.$ac_objext
  7384. if { (ac_try="$ac_compile"
  7385. case "(($ac_try" in
  7386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7387. *) ac_try_echo=$ac_try;;
  7388. esac
  7389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7390. (eval "$ac_compile") 2>conftest.er1
  7391. ac_status=$?
  7392. grep -v '^ *+' conftest.er1 >conftest.err
  7393. rm -f conftest.er1
  7394. cat conftest.err >&5
  7395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7396. (exit $ac_status); } && {
  7397. test -z "$ac_cxx_werror_flag" ||
  7398. test ! -s conftest.err
  7399. } && test -s conftest.$ac_objext; then
  7400. cat >conftest.$ac_ext <<_ACEOF
  7401. /* confdefs.h. */
  7402. _ACEOF
  7403. cat confdefs.h >>conftest.$ac_ext
  7404. cat >>conftest.$ac_ext <<_ACEOF
  7405. /* end confdefs.h. */
  7406. $ac_includes_default
  7407. int
  7408. main ()
  7409. {
  7410. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7411. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7412. test_array [0] = 0
  7413. ;
  7414. return 0;
  7415. }
  7416. _ACEOF
  7417. rm -f conftest.$ac_objext
  7418. if { (ac_try="$ac_compile"
  7419. case "(($ac_try" in
  7420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7421. *) ac_try_echo=$ac_try;;
  7422. esac
  7423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7424. (eval "$ac_compile") 2>conftest.er1
  7425. ac_status=$?
  7426. grep -v '^ *+' conftest.er1 >conftest.err
  7427. rm -f conftest.er1
  7428. cat conftest.err >&5
  7429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7430. (exit $ac_status); } && {
  7431. test -z "$ac_cxx_werror_flag" ||
  7432. test ! -s conftest.err
  7433. } && test -s conftest.$ac_objext; then
  7434. :
  7435. else
  7436. echo "$as_me: failed program was:" >&5
  7437. sed 's/^/| /' conftest.$ac_ext >&5
  7438. case $ac_type in
  7439. int16_t) ac_cv_c_int16_t=yes ;;
  7440. *) ac_cv_c_int16_t=$ac_type ;;
  7441. esac
  7442. fi
  7443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7444. else
  7445. echo "$as_me: failed program was:" >&5
  7446. sed 's/^/| /' conftest.$ac_ext >&5
  7447. fi
  7448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7449. test "$ac_cv_c_int16_t" != no && break
  7450. done
  7451. fi
  7452. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7453. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7454. case $ac_cv_c_int16_t in #(
  7455. no|yes) ;; #(
  7456. *)
  7457. cat >>confdefs.h <<_ACEOF
  7458. #define int16_t $ac_cv_c_int16_t
  7459. _ACEOF
  7460. ;;
  7461. esac
  7462. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7463. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7464. if test "${ac_cv_c_int32_t+set}" = set; then
  7465. echo $ECHO_N "(cached) $ECHO_C" >&6
  7466. else
  7467. ac_cv_c_int32_t=no
  7468. for ac_type in 'int32_t' 'int' 'long int' \
  7469. 'long long int' 'short int' 'signed char'; do
  7470. cat >conftest.$ac_ext <<_ACEOF
  7471. /* confdefs.h. */
  7472. _ACEOF
  7473. cat confdefs.h >>conftest.$ac_ext
  7474. cat >>conftest.$ac_ext <<_ACEOF
  7475. /* end confdefs.h. */
  7476. $ac_includes_default
  7477. int
  7478. main ()
  7479. {
  7480. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7481. test_array [0] = 0
  7482. ;
  7483. return 0;
  7484. }
  7485. _ACEOF
  7486. rm -f conftest.$ac_objext
  7487. if { (ac_try="$ac_compile"
  7488. case "(($ac_try" in
  7489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7490. *) ac_try_echo=$ac_try;;
  7491. esac
  7492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7493. (eval "$ac_compile") 2>conftest.er1
  7494. ac_status=$?
  7495. grep -v '^ *+' conftest.er1 >conftest.err
  7496. rm -f conftest.er1
  7497. cat conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); } && {
  7500. test -z "$ac_cxx_werror_flag" ||
  7501. test ! -s conftest.err
  7502. } && test -s conftest.$ac_objext; then
  7503. cat >conftest.$ac_ext <<_ACEOF
  7504. /* confdefs.h. */
  7505. _ACEOF
  7506. cat confdefs.h >>conftest.$ac_ext
  7507. cat >>conftest.$ac_ext <<_ACEOF
  7508. /* end confdefs.h. */
  7509. $ac_includes_default
  7510. int
  7511. main ()
  7512. {
  7513. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7514. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7515. test_array [0] = 0
  7516. ;
  7517. return 0;
  7518. }
  7519. _ACEOF
  7520. rm -f conftest.$ac_objext
  7521. if { (ac_try="$ac_compile"
  7522. case "(($ac_try" in
  7523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7524. *) ac_try_echo=$ac_try;;
  7525. esac
  7526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7527. (eval "$ac_compile") 2>conftest.er1
  7528. ac_status=$?
  7529. grep -v '^ *+' conftest.er1 >conftest.err
  7530. rm -f conftest.er1
  7531. cat conftest.err >&5
  7532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7533. (exit $ac_status); } && {
  7534. test -z "$ac_cxx_werror_flag" ||
  7535. test ! -s conftest.err
  7536. } && test -s conftest.$ac_objext; then
  7537. :
  7538. else
  7539. echo "$as_me: failed program was:" >&5
  7540. sed 's/^/| /' conftest.$ac_ext >&5
  7541. case $ac_type in
  7542. int32_t) ac_cv_c_int32_t=yes ;;
  7543. *) ac_cv_c_int32_t=$ac_type ;;
  7544. esac
  7545. fi
  7546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7547. else
  7548. echo "$as_me: failed program was:" >&5
  7549. sed 's/^/| /' conftest.$ac_ext >&5
  7550. fi
  7551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7552. test "$ac_cv_c_int32_t" != no && break
  7553. done
  7554. fi
  7555. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7556. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7557. case $ac_cv_c_int32_t in #(
  7558. no|yes) ;; #(
  7559. *)
  7560. cat >>confdefs.h <<_ACEOF
  7561. #define int32_t $ac_cv_c_int32_t
  7562. _ACEOF
  7563. ;;
  7564. esac
  7565. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7566. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7567. if test "${ac_cv_c_int64_t+set}" = set; then
  7568. echo $ECHO_N "(cached) $ECHO_C" >&6
  7569. else
  7570. ac_cv_c_int64_t=no
  7571. for ac_type in 'int64_t' 'int' 'long int' \
  7572. 'long long int' 'short int' 'signed char'; do
  7573. cat >conftest.$ac_ext <<_ACEOF
  7574. /* confdefs.h. */
  7575. _ACEOF
  7576. cat confdefs.h >>conftest.$ac_ext
  7577. cat >>conftest.$ac_ext <<_ACEOF
  7578. /* end confdefs.h. */
  7579. $ac_includes_default
  7580. int
  7581. main ()
  7582. {
  7583. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7584. test_array [0] = 0
  7585. ;
  7586. return 0;
  7587. }
  7588. _ACEOF
  7589. rm -f conftest.$ac_objext
  7590. if { (ac_try="$ac_compile"
  7591. case "(($ac_try" in
  7592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7593. *) ac_try_echo=$ac_try;;
  7594. esac
  7595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7596. (eval "$ac_compile") 2>conftest.er1
  7597. ac_status=$?
  7598. grep -v '^ *+' conftest.er1 >conftest.err
  7599. rm -f conftest.er1
  7600. cat conftest.err >&5
  7601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7602. (exit $ac_status); } && {
  7603. test -z "$ac_cxx_werror_flag" ||
  7604. test ! -s conftest.err
  7605. } && test -s conftest.$ac_objext; then
  7606. cat >conftest.$ac_ext <<_ACEOF
  7607. /* confdefs.h. */
  7608. _ACEOF
  7609. cat confdefs.h >>conftest.$ac_ext
  7610. cat >>conftest.$ac_ext <<_ACEOF
  7611. /* end confdefs.h. */
  7612. $ac_includes_default
  7613. int
  7614. main ()
  7615. {
  7616. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7617. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7618. test_array [0] = 0
  7619. ;
  7620. return 0;
  7621. }
  7622. _ACEOF
  7623. rm -f conftest.$ac_objext
  7624. if { (ac_try="$ac_compile"
  7625. case "(($ac_try" in
  7626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7627. *) ac_try_echo=$ac_try;;
  7628. esac
  7629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7630. (eval "$ac_compile") 2>conftest.er1
  7631. ac_status=$?
  7632. grep -v '^ *+' conftest.er1 >conftest.err
  7633. rm -f conftest.er1
  7634. cat conftest.err >&5
  7635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. (exit $ac_status); } && {
  7637. test -z "$ac_cxx_werror_flag" ||
  7638. test ! -s conftest.err
  7639. } && test -s conftest.$ac_objext; then
  7640. :
  7641. else
  7642. echo "$as_me: failed program was:" >&5
  7643. sed 's/^/| /' conftest.$ac_ext >&5
  7644. case $ac_type in
  7645. int64_t) ac_cv_c_int64_t=yes ;;
  7646. *) ac_cv_c_int64_t=$ac_type ;;
  7647. esac
  7648. fi
  7649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7650. else
  7651. echo "$as_me: failed program was:" >&5
  7652. sed 's/^/| /' conftest.$ac_ext >&5
  7653. fi
  7654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7655. test "$ac_cv_c_int64_t" != no && break
  7656. done
  7657. fi
  7658. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7659. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7660. case $ac_cv_c_int64_t in #(
  7661. no|yes) ;; #(
  7662. *)
  7663. cat >>confdefs.h <<_ACEOF
  7664. #define int64_t $ac_cv_c_int64_t
  7665. _ACEOF
  7666. ;;
  7667. esac
  7668. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7669. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7670. if test "${ac_cv_c_int8_t+set}" = set; then
  7671. echo $ECHO_N "(cached) $ECHO_C" >&6
  7672. else
  7673. ac_cv_c_int8_t=no
  7674. for ac_type in 'int8_t' 'int' 'long int' \
  7675. 'long long int' 'short int' 'signed char'; do
  7676. cat >conftest.$ac_ext <<_ACEOF
  7677. /* confdefs.h. */
  7678. _ACEOF
  7679. cat confdefs.h >>conftest.$ac_ext
  7680. cat >>conftest.$ac_ext <<_ACEOF
  7681. /* end confdefs.h. */
  7682. $ac_includes_default
  7683. int
  7684. main ()
  7685. {
  7686. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7687. test_array [0] = 0
  7688. ;
  7689. return 0;
  7690. }
  7691. _ACEOF
  7692. rm -f conftest.$ac_objext
  7693. if { (ac_try="$ac_compile"
  7694. case "(($ac_try" in
  7695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7696. *) ac_try_echo=$ac_try;;
  7697. esac
  7698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7699. (eval "$ac_compile") 2>conftest.er1
  7700. ac_status=$?
  7701. grep -v '^ *+' conftest.er1 >conftest.err
  7702. rm -f conftest.er1
  7703. cat conftest.err >&5
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); } && {
  7706. test -z "$ac_cxx_werror_flag" ||
  7707. test ! -s conftest.err
  7708. } && test -s conftest.$ac_objext; then
  7709. cat >conftest.$ac_ext <<_ACEOF
  7710. /* confdefs.h. */
  7711. _ACEOF
  7712. cat confdefs.h >>conftest.$ac_ext
  7713. cat >>conftest.$ac_ext <<_ACEOF
  7714. /* end confdefs.h. */
  7715. $ac_includes_default
  7716. int
  7717. main ()
  7718. {
  7719. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7720. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7721. test_array [0] = 0
  7722. ;
  7723. return 0;
  7724. }
  7725. _ACEOF
  7726. rm -f conftest.$ac_objext
  7727. if { (ac_try="$ac_compile"
  7728. case "(($ac_try" in
  7729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7730. *) ac_try_echo=$ac_try;;
  7731. esac
  7732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7733. (eval "$ac_compile") 2>conftest.er1
  7734. ac_status=$?
  7735. grep -v '^ *+' conftest.er1 >conftest.err
  7736. rm -f conftest.er1
  7737. cat conftest.err >&5
  7738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7739. (exit $ac_status); } && {
  7740. test -z "$ac_cxx_werror_flag" ||
  7741. test ! -s conftest.err
  7742. } && test -s conftest.$ac_objext; then
  7743. :
  7744. else
  7745. echo "$as_me: failed program was:" >&5
  7746. sed 's/^/| /' conftest.$ac_ext >&5
  7747. case $ac_type in
  7748. int8_t) ac_cv_c_int8_t=yes ;;
  7749. *) ac_cv_c_int8_t=$ac_type ;;
  7750. esac
  7751. fi
  7752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7753. else
  7754. echo "$as_me: failed program was:" >&5
  7755. sed 's/^/| /' conftest.$ac_ext >&5
  7756. fi
  7757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7758. test "$ac_cv_c_int8_t" != no && break
  7759. done
  7760. fi
  7761. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7762. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7763. case $ac_cv_c_int8_t in #(
  7764. no|yes) ;; #(
  7765. *)
  7766. cat >>confdefs.h <<_ACEOF
  7767. #define int8_t $ac_cv_c_int8_t
  7768. _ACEOF
  7769. ;;
  7770. esac
  7771. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7772. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7773. if test "${ac_cv_type_mode_t+set}" = set; then
  7774. echo $ECHO_N "(cached) $ECHO_C" >&6
  7775. else
  7776. cat >conftest.$ac_ext <<_ACEOF
  7777. /* confdefs.h. */
  7778. _ACEOF
  7779. cat confdefs.h >>conftest.$ac_ext
  7780. cat >>conftest.$ac_ext <<_ACEOF
  7781. /* end confdefs.h. */
  7782. $ac_includes_default
  7783. typedef mode_t ac__type_new_;
  7784. int
  7785. main ()
  7786. {
  7787. if ((ac__type_new_ *) 0)
  7788. return 0;
  7789. if (sizeof (ac__type_new_))
  7790. return 0;
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. rm -f conftest.$ac_objext
  7796. if { (ac_try="$ac_compile"
  7797. case "(($ac_try" in
  7798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7799. *) ac_try_echo=$ac_try;;
  7800. esac
  7801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7802. (eval "$ac_compile") 2>conftest.er1
  7803. ac_status=$?
  7804. grep -v '^ *+' conftest.er1 >conftest.err
  7805. rm -f conftest.er1
  7806. cat conftest.err >&5
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); } && {
  7809. test -z "$ac_cxx_werror_flag" ||
  7810. test ! -s conftest.err
  7811. } && test -s conftest.$ac_objext; then
  7812. ac_cv_type_mode_t=yes
  7813. else
  7814. echo "$as_me: failed program was:" >&5
  7815. sed 's/^/| /' conftest.$ac_ext >&5
  7816. ac_cv_type_mode_t=no
  7817. fi
  7818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7819. fi
  7820. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7821. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7822. if test $ac_cv_type_mode_t = yes; then
  7823. :
  7824. else
  7825. cat >>confdefs.h <<_ACEOF
  7826. #define mode_t int
  7827. _ACEOF
  7828. fi
  7829. { echo "$as_me:$LINENO: checking for off_t" >&5
  7830. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7831. if test "${ac_cv_type_off_t+set}" = set; then
  7832. echo $ECHO_N "(cached) $ECHO_C" >&6
  7833. else
  7834. cat >conftest.$ac_ext <<_ACEOF
  7835. /* confdefs.h. */
  7836. _ACEOF
  7837. cat confdefs.h >>conftest.$ac_ext
  7838. cat >>conftest.$ac_ext <<_ACEOF
  7839. /* end confdefs.h. */
  7840. $ac_includes_default
  7841. typedef off_t ac__type_new_;
  7842. int
  7843. main ()
  7844. {
  7845. if ((ac__type_new_ *) 0)
  7846. return 0;
  7847. if (sizeof (ac__type_new_))
  7848. return 0;
  7849. ;
  7850. return 0;
  7851. }
  7852. _ACEOF
  7853. rm -f conftest.$ac_objext
  7854. if { (ac_try="$ac_compile"
  7855. case "(($ac_try" in
  7856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7857. *) ac_try_echo=$ac_try;;
  7858. esac
  7859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7860. (eval "$ac_compile") 2>conftest.er1
  7861. ac_status=$?
  7862. grep -v '^ *+' conftest.er1 >conftest.err
  7863. rm -f conftest.er1
  7864. cat conftest.err >&5
  7865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7866. (exit $ac_status); } && {
  7867. test -z "$ac_cxx_werror_flag" ||
  7868. test ! -s conftest.err
  7869. } && test -s conftest.$ac_objext; then
  7870. ac_cv_type_off_t=yes
  7871. else
  7872. echo "$as_me: failed program was:" >&5
  7873. sed 's/^/| /' conftest.$ac_ext >&5
  7874. ac_cv_type_off_t=no
  7875. fi
  7876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7877. fi
  7878. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7879. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7880. if test $ac_cv_type_off_t = yes; then
  7881. :
  7882. else
  7883. cat >>confdefs.h <<_ACEOF
  7884. #define off_t long int
  7885. _ACEOF
  7886. fi
  7887. { echo "$as_me:$LINENO: checking for size_t" >&5
  7888. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7889. if test "${ac_cv_type_size_t+set}" = set; then
  7890. echo $ECHO_N "(cached) $ECHO_C" >&6
  7891. else
  7892. cat >conftest.$ac_ext <<_ACEOF
  7893. /* confdefs.h. */
  7894. _ACEOF
  7895. cat confdefs.h >>conftest.$ac_ext
  7896. cat >>conftest.$ac_ext <<_ACEOF
  7897. /* end confdefs.h. */
  7898. $ac_includes_default
  7899. typedef size_t ac__type_new_;
  7900. int
  7901. main ()
  7902. {
  7903. if ((ac__type_new_ *) 0)
  7904. return 0;
  7905. if (sizeof (ac__type_new_))
  7906. return 0;
  7907. ;
  7908. return 0;
  7909. }
  7910. _ACEOF
  7911. rm -f conftest.$ac_objext
  7912. if { (ac_try="$ac_compile"
  7913. case "(($ac_try" in
  7914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7915. *) ac_try_echo=$ac_try;;
  7916. esac
  7917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7918. (eval "$ac_compile") 2>conftest.er1
  7919. ac_status=$?
  7920. grep -v '^ *+' conftest.er1 >conftest.err
  7921. rm -f conftest.er1
  7922. cat conftest.err >&5
  7923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7924. (exit $ac_status); } && {
  7925. test -z "$ac_cxx_werror_flag" ||
  7926. test ! -s conftest.err
  7927. } && test -s conftest.$ac_objext; then
  7928. ac_cv_type_size_t=yes
  7929. else
  7930. echo "$as_me: failed program was:" >&5
  7931. sed 's/^/| /' conftest.$ac_ext >&5
  7932. ac_cv_type_size_t=no
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7935. fi
  7936. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7937. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7938. if test $ac_cv_type_size_t = yes; then
  7939. :
  7940. else
  7941. cat >>confdefs.h <<_ACEOF
  7942. #define size_t unsigned int
  7943. _ACEOF
  7944. fi
  7945. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7946. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7947. if test "${ac_cv_type_ssize_t+set}" = set; then
  7948. echo $ECHO_N "(cached) $ECHO_C" >&6
  7949. else
  7950. cat >conftest.$ac_ext <<_ACEOF
  7951. /* confdefs.h. */
  7952. _ACEOF
  7953. cat confdefs.h >>conftest.$ac_ext
  7954. cat >>conftest.$ac_ext <<_ACEOF
  7955. /* end confdefs.h. */
  7956. $ac_includes_default
  7957. typedef ssize_t ac__type_new_;
  7958. int
  7959. main ()
  7960. {
  7961. if ((ac__type_new_ *) 0)
  7962. return 0;
  7963. if (sizeof (ac__type_new_))
  7964. return 0;
  7965. ;
  7966. return 0;
  7967. }
  7968. _ACEOF
  7969. rm -f conftest.$ac_objext
  7970. if { (ac_try="$ac_compile"
  7971. case "(($ac_try" in
  7972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7973. *) ac_try_echo=$ac_try;;
  7974. esac
  7975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7976. (eval "$ac_compile") 2>conftest.er1
  7977. ac_status=$?
  7978. grep -v '^ *+' conftest.er1 >conftest.err
  7979. rm -f conftest.er1
  7980. cat conftest.err >&5
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. (exit $ac_status); } && {
  7983. test -z "$ac_cxx_werror_flag" ||
  7984. test ! -s conftest.err
  7985. } && test -s conftest.$ac_objext; then
  7986. ac_cv_type_ssize_t=yes
  7987. else
  7988. echo "$as_me: failed program was:" >&5
  7989. sed 's/^/| /' conftest.$ac_ext >&5
  7990. ac_cv_type_ssize_t=no
  7991. fi
  7992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7993. fi
  7994. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7995. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7996. if test $ac_cv_type_ssize_t = yes; then
  7997. :
  7998. else
  7999. cat >>confdefs.h <<_ACEOF
  8000. #define ssize_t int
  8001. _ACEOF
  8002. fi
  8003. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8004. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8005. if test "${ac_cv_header_time+set}" = set; then
  8006. echo $ECHO_N "(cached) $ECHO_C" >&6
  8007. else
  8008. cat >conftest.$ac_ext <<_ACEOF
  8009. /* confdefs.h. */
  8010. _ACEOF
  8011. cat confdefs.h >>conftest.$ac_ext
  8012. cat >>conftest.$ac_ext <<_ACEOF
  8013. /* end confdefs.h. */
  8014. #include <sys/types.h>
  8015. #include <sys/time.h>
  8016. #include <time.h>
  8017. int
  8018. main ()
  8019. {
  8020. if ((struct tm *) 0)
  8021. return 0;
  8022. ;
  8023. return 0;
  8024. }
  8025. _ACEOF
  8026. rm -f conftest.$ac_objext
  8027. if { (ac_try="$ac_compile"
  8028. case "(($ac_try" in
  8029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8030. *) ac_try_echo=$ac_try;;
  8031. esac
  8032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8033. (eval "$ac_compile") 2>conftest.er1
  8034. ac_status=$?
  8035. grep -v '^ *+' conftest.er1 >conftest.err
  8036. rm -f conftest.er1
  8037. cat conftest.err >&5
  8038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8039. (exit $ac_status); } && {
  8040. test -z "$ac_cxx_werror_flag" ||
  8041. test ! -s conftest.err
  8042. } && test -s conftest.$ac_objext; then
  8043. ac_cv_header_time=yes
  8044. else
  8045. echo "$as_me: failed program was:" >&5
  8046. sed 's/^/| /' conftest.$ac_ext >&5
  8047. ac_cv_header_time=no
  8048. fi
  8049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8050. fi
  8051. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8052. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8053. if test $ac_cv_header_time = yes; then
  8054. cat >>confdefs.h <<\_ACEOF
  8055. #define TIME_WITH_SYS_TIME 1
  8056. _ACEOF
  8057. fi
  8058. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8059. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8060. if test "${ac_cv_struct_tm+set}" = set; then
  8061. echo $ECHO_N "(cached) $ECHO_C" >&6
  8062. else
  8063. cat >conftest.$ac_ext <<_ACEOF
  8064. /* confdefs.h. */
  8065. _ACEOF
  8066. cat confdefs.h >>conftest.$ac_ext
  8067. cat >>conftest.$ac_ext <<_ACEOF
  8068. /* end confdefs.h. */
  8069. #include <sys/types.h>
  8070. #include <time.h>
  8071. int
  8072. main ()
  8073. {
  8074. struct tm tm;
  8075. int *p = &tm.tm_sec;
  8076. return !p;
  8077. ;
  8078. return 0;
  8079. }
  8080. _ACEOF
  8081. rm -f conftest.$ac_objext
  8082. if { (ac_try="$ac_compile"
  8083. case "(($ac_try" in
  8084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8085. *) ac_try_echo=$ac_try;;
  8086. esac
  8087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8088. (eval "$ac_compile") 2>conftest.er1
  8089. ac_status=$?
  8090. grep -v '^ *+' conftest.er1 >conftest.err
  8091. rm -f conftest.er1
  8092. cat conftest.err >&5
  8093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8094. (exit $ac_status); } && {
  8095. test -z "$ac_cxx_werror_flag" ||
  8096. test ! -s conftest.err
  8097. } && test -s conftest.$ac_objext; then
  8098. ac_cv_struct_tm=time.h
  8099. else
  8100. echo "$as_me: failed program was:" >&5
  8101. sed 's/^/| /' conftest.$ac_ext >&5
  8102. ac_cv_struct_tm=sys/time.h
  8103. fi
  8104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8105. fi
  8106. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8107. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8108. if test $ac_cv_struct_tm = sys/time.h; then
  8109. cat >>confdefs.h <<\_ACEOF
  8110. #define TM_IN_SYS_TIME 1
  8111. _ACEOF
  8112. fi
  8113. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8114. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8115. if test "${ac_cv_c_uint16_t+set}" = set; then
  8116. echo $ECHO_N "(cached) $ECHO_C" >&6
  8117. else
  8118. ac_cv_c_uint16_t=no
  8119. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8120. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8121. cat >conftest.$ac_ext <<_ACEOF
  8122. /* confdefs.h. */
  8123. _ACEOF
  8124. cat confdefs.h >>conftest.$ac_ext
  8125. cat >>conftest.$ac_ext <<_ACEOF
  8126. /* end confdefs.h. */
  8127. $ac_includes_default
  8128. int
  8129. main ()
  8130. {
  8131. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8132. test_array [0] = 0
  8133. ;
  8134. return 0;
  8135. }
  8136. _ACEOF
  8137. rm -f conftest.$ac_objext
  8138. if { (ac_try="$ac_compile"
  8139. case "(($ac_try" in
  8140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8141. *) ac_try_echo=$ac_try;;
  8142. esac
  8143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8144. (eval "$ac_compile") 2>conftest.er1
  8145. ac_status=$?
  8146. grep -v '^ *+' conftest.er1 >conftest.err
  8147. rm -f conftest.er1
  8148. cat conftest.err >&5
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. (exit $ac_status); } && {
  8151. test -z "$ac_cxx_werror_flag" ||
  8152. test ! -s conftest.err
  8153. } && test -s conftest.$ac_objext; then
  8154. case $ac_type in
  8155. uint16_t) ac_cv_c_uint16_t=yes ;;
  8156. *) ac_cv_c_uint16_t=$ac_type ;;
  8157. esac
  8158. else
  8159. echo "$as_me: failed program was:" >&5
  8160. sed 's/^/| /' conftest.$ac_ext >&5
  8161. fi
  8162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8163. test "$ac_cv_c_uint16_t" != no && break
  8164. done
  8165. fi
  8166. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8167. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8168. case $ac_cv_c_uint16_t in #(
  8169. no|yes) ;; #(
  8170. *)
  8171. cat >>confdefs.h <<_ACEOF
  8172. #define uint16_t $ac_cv_c_uint16_t
  8173. _ACEOF
  8174. ;;
  8175. esac
  8176. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8177. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8178. if test "${ac_cv_c_uint32_t+set}" = set; then
  8179. echo $ECHO_N "(cached) $ECHO_C" >&6
  8180. else
  8181. ac_cv_c_uint32_t=no
  8182. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8183. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8184. cat >conftest.$ac_ext <<_ACEOF
  8185. /* confdefs.h. */
  8186. _ACEOF
  8187. cat confdefs.h >>conftest.$ac_ext
  8188. cat >>conftest.$ac_ext <<_ACEOF
  8189. /* end confdefs.h. */
  8190. $ac_includes_default
  8191. int
  8192. main ()
  8193. {
  8194. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8195. test_array [0] = 0
  8196. ;
  8197. return 0;
  8198. }
  8199. _ACEOF
  8200. rm -f conftest.$ac_objext
  8201. if { (ac_try="$ac_compile"
  8202. case "(($ac_try" in
  8203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8204. *) ac_try_echo=$ac_try;;
  8205. esac
  8206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8207. (eval "$ac_compile") 2>conftest.er1
  8208. ac_status=$?
  8209. grep -v '^ *+' conftest.er1 >conftest.err
  8210. rm -f conftest.er1
  8211. cat conftest.err >&5
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. (exit $ac_status); } && {
  8214. test -z "$ac_cxx_werror_flag" ||
  8215. test ! -s conftest.err
  8216. } && test -s conftest.$ac_objext; then
  8217. case $ac_type in
  8218. uint32_t) ac_cv_c_uint32_t=yes ;;
  8219. *) ac_cv_c_uint32_t=$ac_type ;;
  8220. esac
  8221. else
  8222. echo "$as_me: failed program was:" >&5
  8223. sed 's/^/| /' conftest.$ac_ext >&5
  8224. fi
  8225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8226. test "$ac_cv_c_uint32_t" != no && break
  8227. done
  8228. fi
  8229. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8230. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8231. case $ac_cv_c_uint32_t in #(
  8232. no|yes) ;; #(
  8233. *)
  8234. cat >>confdefs.h <<\_ACEOF
  8235. #define _UINT32_T 1
  8236. _ACEOF
  8237. cat >>confdefs.h <<_ACEOF
  8238. #define uint32_t $ac_cv_c_uint32_t
  8239. _ACEOF
  8240. ;;
  8241. esac
  8242. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8243. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8244. if test "${ac_cv_c_uint64_t+set}" = set; then
  8245. echo $ECHO_N "(cached) $ECHO_C" >&6
  8246. else
  8247. ac_cv_c_uint64_t=no
  8248. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8249. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8250. cat >conftest.$ac_ext <<_ACEOF
  8251. /* confdefs.h. */
  8252. _ACEOF
  8253. cat confdefs.h >>conftest.$ac_ext
  8254. cat >>conftest.$ac_ext <<_ACEOF
  8255. /* end confdefs.h. */
  8256. $ac_includes_default
  8257. int
  8258. main ()
  8259. {
  8260. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8261. test_array [0] = 0
  8262. ;
  8263. return 0;
  8264. }
  8265. _ACEOF
  8266. rm -f conftest.$ac_objext
  8267. if { (ac_try="$ac_compile"
  8268. case "(($ac_try" in
  8269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8270. *) ac_try_echo=$ac_try;;
  8271. esac
  8272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8273. (eval "$ac_compile") 2>conftest.er1
  8274. ac_status=$?
  8275. grep -v '^ *+' conftest.er1 >conftest.err
  8276. rm -f conftest.er1
  8277. cat conftest.err >&5
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); } && {
  8280. test -z "$ac_cxx_werror_flag" ||
  8281. test ! -s conftest.err
  8282. } && test -s conftest.$ac_objext; then
  8283. case $ac_type in
  8284. uint64_t) ac_cv_c_uint64_t=yes ;;
  8285. *) ac_cv_c_uint64_t=$ac_type ;;
  8286. esac
  8287. else
  8288. echo "$as_me: failed program was:" >&5
  8289. sed 's/^/| /' conftest.$ac_ext >&5
  8290. fi
  8291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8292. test "$ac_cv_c_uint64_t" != no && break
  8293. done
  8294. fi
  8295. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8296. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8297. case $ac_cv_c_uint64_t in #(
  8298. no|yes) ;; #(
  8299. *)
  8300. cat >>confdefs.h <<\_ACEOF
  8301. #define _UINT64_T 1
  8302. _ACEOF
  8303. cat >>confdefs.h <<_ACEOF
  8304. #define uint64_t $ac_cv_c_uint64_t
  8305. _ACEOF
  8306. ;;
  8307. esac
  8308. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8309. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8310. if test "${ac_cv_c_uint8_t+set}" = set; then
  8311. echo $ECHO_N "(cached) $ECHO_C" >&6
  8312. else
  8313. ac_cv_c_uint8_t=no
  8314. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8315. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8316. cat >conftest.$ac_ext <<_ACEOF
  8317. /* confdefs.h. */
  8318. _ACEOF
  8319. cat confdefs.h >>conftest.$ac_ext
  8320. cat >>conftest.$ac_ext <<_ACEOF
  8321. /* end confdefs.h. */
  8322. $ac_includes_default
  8323. int
  8324. main ()
  8325. {
  8326. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8327. test_array [0] = 0
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. rm -f conftest.$ac_objext
  8333. if { (ac_try="$ac_compile"
  8334. case "(($ac_try" in
  8335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8336. *) ac_try_echo=$ac_try;;
  8337. esac
  8338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8339. (eval "$ac_compile") 2>conftest.er1
  8340. ac_status=$?
  8341. grep -v '^ *+' conftest.er1 >conftest.err
  8342. rm -f conftest.er1
  8343. cat conftest.err >&5
  8344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8345. (exit $ac_status); } && {
  8346. test -z "$ac_cxx_werror_flag" ||
  8347. test ! -s conftest.err
  8348. } && test -s conftest.$ac_objext; then
  8349. case $ac_type in
  8350. uint8_t) ac_cv_c_uint8_t=yes ;;
  8351. *) ac_cv_c_uint8_t=$ac_type ;;
  8352. esac
  8353. else
  8354. echo "$as_me: failed program was:" >&5
  8355. sed 's/^/| /' conftest.$ac_ext >&5
  8356. fi
  8357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8358. test "$ac_cv_c_uint8_t" != no && break
  8359. done
  8360. fi
  8361. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8362. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8363. case $ac_cv_c_uint8_t in #(
  8364. no|yes) ;; #(
  8365. *)
  8366. cat >>confdefs.h <<\_ACEOF
  8367. #define _UINT8_T 1
  8368. _ACEOF
  8369. cat >>confdefs.h <<_ACEOF
  8370. #define uint8_t $ac_cv_c_uint8_t
  8371. _ACEOF
  8372. ;;
  8373. esac
  8374. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8375. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8376. if test "${ac_cv_c_volatile+set}" = set; then
  8377. echo $ECHO_N "(cached) $ECHO_C" >&6
  8378. else
  8379. cat >conftest.$ac_ext <<_ACEOF
  8380. /* confdefs.h. */
  8381. _ACEOF
  8382. cat confdefs.h >>conftest.$ac_ext
  8383. cat >>conftest.$ac_ext <<_ACEOF
  8384. /* end confdefs.h. */
  8385. int
  8386. main ()
  8387. {
  8388. volatile int x;
  8389. int * volatile y = (int *) 0;
  8390. return !x && !y;
  8391. ;
  8392. return 0;
  8393. }
  8394. _ACEOF
  8395. rm -f conftest.$ac_objext
  8396. if { (ac_try="$ac_compile"
  8397. case "(($ac_try" in
  8398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8399. *) ac_try_echo=$ac_try;;
  8400. esac
  8401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8402. (eval "$ac_compile") 2>conftest.er1
  8403. ac_status=$?
  8404. grep -v '^ *+' conftest.er1 >conftest.err
  8405. rm -f conftest.er1
  8406. cat conftest.err >&5
  8407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408. (exit $ac_status); } && {
  8409. test -z "$ac_cxx_werror_flag" ||
  8410. test ! -s conftest.err
  8411. } && test -s conftest.$ac_objext; then
  8412. ac_cv_c_volatile=yes
  8413. else
  8414. echo "$as_me: failed program was:" >&5
  8415. sed 's/^/| /' conftest.$ac_ext >&5
  8416. ac_cv_c_volatile=no
  8417. fi
  8418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8419. fi
  8420. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8421. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8422. if test $ac_cv_c_volatile = no; then
  8423. cat >>confdefs.h <<\_ACEOF
  8424. #define volatile
  8425. _ACEOF
  8426. fi
  8427. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8428. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8429. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8430. echo $ECHO_N "(cached) $ECHO_C" >&6
  8431. else
  8432. cat >conftest.$ac_ext <<_ACEOF
  8433. /* confdefs.h. */
  8434. _ACEOF
  8435. cat confdefs.h >>conftest.$ac_ext
  8436. cat >>conftest.$ac_ext <<_ACEOF
  8437. /* end confdefs.h. */
  8438. $ac_includes_default
  8439. typedef ptrdiff_t ac__type_new_;
  8440. int
  8441. main ()
  8442. {
  8443. if ((ac__type_new_ *) 0)
  8444. return 0;
  8445. if (sizeof (ac__type_new_))
  8446. return 0;
  8447. ;
  8448. return 0;
  8449. }
  8450. _ACEOF
  8451. rm -f conftest.$ac_objext
  8452. if { (ac_try="$ac_compile"
  8453. case "(($ac_try" in
  8454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8455. *) ac_try_echo=$ac_try;;
  8456. esac
  8457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8458. (eval "$ac_compile") 2>conftest.er1
  8459. ac_status=$?
  8460. grep -v '^ *+' conftest.er1 >conftest.err
  8461. rm -f conftest.er1
  8462. cat conftest.err >&5
  8463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8464. (exit $ac_status); } && {
  8465. test -z "$ac_cxx_werror_flag" ||
  8466. test ! -s conftest.err
  8467. } && test -s conftest.$ac_objext; then
  8468. ac_cv_type_ptrdiff_t=yes
  8469. else
  8470. echo "$as_me: failed program was:" >&5
  8471. sed 's/^/| /' conftest.$ac_ext >&5
  8472. ac_cv_type_ptrdiff_t=no
  8473. fi
  8474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8475. fi
  8476. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8477. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8478. if test $ac_cv_type_ptrdiff_t = yes; then
  8479. cat >>confdefs.h <<_ACEOF
  8480. #define HAVE_PTRDIFF_T 1
  8481. _ACEOF
  8482. fi
  8483. # Check whether --enable-largefile was given.
  8484. if test "${enable_largefile+set}" = set; then
  8485. enableval=$enable_largefile;
  8486. fi
  8487. if test "$enable_largefile" != no; then
  8488. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8489. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8490. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8491. echo $ECHO_N "(cached) $ECHO_C" >&6
  8492. else
  8493. ac_cv_sys_largefile_CC=no
  8494. if test "$GCC" != yes; then
  8495. ac_save_CC=$CC
  8496. while :; do
  8497. # IRIX 6.2 and later do not support large files by default,
  8498. # so use the C compiler's -n32 option if that helps.
  8499. cat >conftest.$ac_ext <<_ACEOF
  8500. /* confdefs.h. */
  8501. _ACEOF
  8502. cat confdefs.h >>conftest.$ac_ext
  8503. cat >>conftest.$ac_ext <<_ACEOF
  8504. /* end confdefs.h. */
  8505. #include <sys/types.h>
  8506. /* Check that off_t can represent 2**63 - 1 correctly.
  8507. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8508. since some C++ compilers masquerading as C compilers
  8509. incorrectly reject 9223372036854775807. */
  8510. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8511. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8512. && LARGE_OFF_T % 2147483647 == 1)
  8513. ? 1 : -1];
  8514. int
  8515. main ()
  8516. {
  8517. ;
  8518. return 0;
  8519. }
  8520. _ACEOF
  8521. rm -f conftest.$ac_objext
  8522. if { (ac_try="$ac_compile"
  8523. case "(($ac_try" in
  8524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8525. *) ac_try_echo=$ac_try;;
  8526. esac
  8527. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8528. (eval "$ac_compile") 2>conftest.er1
  8529. ac_status=$?
  8530. grep -v '^ *+' conftest.er1 >conftest.err
  8531. rm -f conftest.er1
  8532. cat conftest.err >&5
  8533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8534. (exit $ac_status); } && {
  8535. test -z "$ac_cxx_werror_flag" ||
  8536. test ! -s conftest.err
  8537. } && test -s conftest.$ac_objext; then
  8538. break
  8539. else
  8540. echo "$as_me: failed program was:" >&5
  8541. sed 's/^/| /' conftest.$ac_ext >&5
  8542. fi
  8543. rm -f core conftest.err conftest.$ac_objext
  8544. CC="$CC -n32"
  8545. rm -f conftest.$ac_objext
  8546. if { (ac_try="$ac_compile"
  8547. case "(($ac_try" in
  8548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8549. *) ac_try_echo=$ac_try;;
  8550. esac
  8551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8552. (eval "$ac_compile") 2>conftest.er1
  8553. ac_status=$?
  8554. grep -v '^ *+' conftest.er1 >conftest.err
  8555. rm -f conftest.er1
  8556. cat conftest.err >&5
  8557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8558. (exit $ac_status); } && {
  8559. test -z "$ac_cxx_werror_flag" ||
  8560. test ! -s conftest.err
  8561. } && test -s conftest.$ac_objext; then
  8562. ac_cv_sys_largefile_CC=' -n32'; break
  8563. else
  8564. echo "$as_me: failed program was:" >&5
  8565. sed 's/^/| /' conftest.$ac_ext >&5
  8566. fi
  8567. rm -f core conftest.err conftest.$ac_objext
  8568. break
  8569. done
  8570. CC=$ac_save_CC
  8571. rm -f conftest.$ac_ext
  8572. fi
  8573. fi
  8574. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8575. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8576. if test "$ac_cv_sys_largefile_CC" != no; then
  8577. CC=$CC$ac_cv_sys_largefile_CC
  8578. fi
  8579. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8580. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8581. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8582. echo $ECHO_N "(cached) $ECHO_C" >&6
  8583. else
  8584. while :; do
  8585. cat >conftest.$ac_ext <<_ACEOF
  8586. /* confdefs.h. */
  8587. _ACEOF
  8588. cat confdefs.h >>conftest.$ac_ext
  8589. cat >>conftest.$ac_ext <<_ACEOF
  8590. /* end confdefs.h. */
  8591. #include <sys/types.h>
  8592. /* Check that off_t can represent 2**63 - 1 correctly.
  8593. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8594. since some C++ compilers masquerading as C compilers
  8595. incorrectly reject 9223372036854775807. */
  8596. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8597. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8598. && LARGE_OFF_T % 2147483647 == 1)
  8599. ? 1 : -1];
  8600. int
  8601. main ()
  8602. {
  8603. ;
  8604. return 0;
  8605. }
  8606. _ACEOF
  8607. rm -f conftest.$ac_objext
  8608. if { (ac_try="$ac_compile"
  8609. case "(($ac_try" in
  8610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8611. *) ac_try_echo=$ac_try;;
  8612. esac
  8613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8614. (eval "$ac_compile") 2>conftest.er1
  8615. ac_status=$?
  8616. grep -v '^ *+' conftest.er1 >conftest.err
  8617. rm -f conftest.er1
  8618. cat conftest.err >&5
  8619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8620. (exit $ac_status); } && {
  8621. test -z "$ac_cxx_werror_flag" ||
  8622. test ! -s conftest.err
  8623. } && test -s conftest.$ac_objext; then
  8624. ac_cv_sys_file_offset_bits=no; break
  8625. else
  8626. echo "$as_me: failed program was:" >&5
  8627. sed 's/^/| /' conftest.$ac_ext >&5
  8628. fi
  8629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8630. cat >conftest.$ac_ext <<_ACEOF
  8631. /* confdefs.h. */
  8632. _ACEOF
  8633. cat confdefs.h >>conftest.$ac_ext
  8634. cat >>conftest.$ac_ext <<_ACEOF
  8635. /* end confdefs.h. */
  8636. #define _FILE_OFFSET_BITS 64
  8637. #include <sys/types.h>
  8638. /* Check that off_t can represent 2**63 - 1 correctly.
  8639. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8640. since some C++ compilers masquerading as C compilers
  8641. incorrectly reject 9223372036854775807. */
  8642. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8643. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8644. && LARGE_OFF_T % 2147483647 == 1)
  8645. ? 1 : -1];
  8646. int
  8647. main ()
  8648. {
  8649. ;
  8650. return 0;
  8651. }
  8652. _ACEOF
  8653. rm -f conftest.$ac_objext
  8654. if { (ac_try="$ac_compile"
  8655. case "(($ac_try" in
  8656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8657. *) ac_try_echo=$ac_try;;
  8658. esac
  8659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8660. (eval "$ac_compile") 2>conftest.er1
  8661. ac_status=$?
  8662. grep -v '^ *+' conftest.er1 >conftest.err
  8663. rm -f conftest.er1
  8664. cat conftest.err >&5
  8665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8666. (exit $ac_status); } && {
  8667. test -z "$ac_cxx_werror_flag" ||
  8668. test ! -s conftest.err
  8669. } && test -s conftest.$ac_objext; then
  8670. ac_cv_sys_file_offset_bits=64; break
  8671. else
  8672. echo "$as_me: failed program was:" >&5
  8673. sed 's/^/| /' conftest.$ac_ext >&5
  8674. fi
  8675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8676. ac_cv_sys_file_offset_bits=unknown
  8677. break
  8678. done
  8679. fi
  8680. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8681. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8682. case $ac_cv_sys_file_offset_bits in #(
  8683. no | unknown) ;;
  8684. *)
  8685. cat >>confdefs.h <<_ACEOF
  8686. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8687. _ACEOF
  8688. ;;
  8689. esac
  8690. rm -f conftest*
  8691. if test $ac_cv_sys_file_offset_bits = unknown; then
  8692. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8693. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8694. if test "${ac_cv_sys_large_files+set}" = set; then
  8695. echo $ECHO_N "(cached) $ECHO_C" >&6
  8696. else
  8697. while :; do
  8698. cat >conftest.$ac_ext <<_ACEOF
  8699. /* confdefs.h. */
  8700. _ACEOF
  8701. cat confdefs.h >>conftest.$ac_ext
  8702. cat >>conftest.$ac_ext <<_ACEOF
  8703. /* end confdefs.h. */
  8704. #include <sys/types.h>
  8705. /* Check that off_t can represent 2**63 - 1 correctly.
  8706. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8707. since some C++ compilers masquerading as C compilers
  8708. incorrectly reject 9223372036854775807. */
  8709. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8710. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8711. && LARGE_OFF_T % 2147483647 == 1)
  8712. ? 1 : -1];
  8713. int
  8714. main ()
  8715. {
  8716. ;
  8717. return 0;
  8718. }
  8719. _ACEOF
  8720. rm -f conftest.$ac_objext
  8721. if { (ac_try="$ac_compile"
  8722. case "(($ac_try" in
  8723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8724. *) ac_try_echo=$ac_try;;
  8725. esac
  8726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8727. (eval "$ac_compile") 2>conftest.er1
  8728. ac_status=$?
  8729. grep -v '^ *+' conftest.er1 >conftest.err
  8730. rm -f conftest.er1
  8731. cat conftest.err >&5
  8732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733. (exit $ac_status); } && {
  8734. test -z "$ac_cxx_werror_flag" ||
  8735. test ! -s conftest.err
  8736. } && test -s conftest.$ac_objext; then
  8737. ac_cv_sys_large_files=no; break
  8738. else
  8739. echo "$as_me: failed program was:" >&5
  8740. sed 's/^/| /' conftest.$ac_ext >&5
  8741. fi
  8742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8743. cat >conftest.$ac_ext <<_ACEOF
  8744. /* confdefs.h. */
  8745. _ACEOF
  8746. cat confdefs.h >>conftest.$ac_ext
  8747. cat >>conftest.$ac_ext <<_ACEOF
  8748. /* end confdefs.h. */
  8749. #define _LARGE_FILES 1
  8750. #include <sys/types.h>
  8751. /* Check that off_t can represent 2**63 - 1 correctly.
  8752. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8753. since some C++ compilers masquerading as C compilers
  8754. incorrectly reject 9223372036854775807. */
  8755. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8756. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8757. && LARGE_OFF_T % 2147483647 == 1)
  8758. ? 1 : -1];
  8759. int
  8760. main ()
  8761. {
  8762. ;
  8763. return 0;
  8764. }
  8765. _ACEOF
  8766. rm -f conftest.$ac_objext
  8767. if { (ac_try="$ac_compile"
  8768. case "(($ac_try" in
  8769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8770. *) ac_try_echo=$ac_try;;
  8771. esac
  8772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8773. (eval "$ac_compile") 2>conftest.er1
  8774. ac_status=$?
  8775. grep -v '^ *+' conftest.er1 >conftest.err
  8776. rm -f conftest.er1
  8777. cat conftest.err >&5
  8778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8779. (exit $ac_status); } && {
  8780. test -z "$ac_cxx_werror_flag" ||
  8781. test ! -s conftest.err
  8782. } && test -s conftest.$ac_objext; then
  8783. ac_cv_sys_large_files=1; break
  8784. else
  8785. echo "$as_me: failed program was:" >&5
  8786. sed 's/^/| /' conftest.$ac_ext >&5
  8787. fi
  8788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8789. ac_cv_sys_large_files=unknown
  8790. break
  8791. done
  8792. fi
  8793. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8794. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8795. case $ac_cv_sys_large_files in #(
  8796. no | unknown) ;;
  8797. *)
  8798. cat >>confdefs.h <<_ACEOF
  8799. #define _LARGE_FILES $ac_cv_sys_large_files
  8800. _ACEOF
  8801. ;;
  8802. esac
  8803. rm -f conftest*
  8804. fi
  8805. fi
  8806. # Checks for library functions.
  8807. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8808. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8809. # Check whether --enable-nls was given.
  8810. if test "${enable_nls+set}" = set; then
  8811. enableval=$enable_nls; USE_NLS=$enableval
  8812. else
  8813. USE_NLS=yes
  8814. fi
  8815. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8816. echo "${ECHO_T}$USE_NLS" >&6; }
  8817. GETTEXT_MACRO_VERSION=0.17
  8818. # Prepare PATH_SEPARATOR.
  8819. # The user is always right.
  8820. if test "${PATH_SEPARATOR+set}" != set; then
  8821. echo "#! /bin/sh" >conf$$.sh
  8822. echo "exit 0" >>conf$$.sh
  8823. chmod +x conf$$.sh
  8824. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8825. PATH_SEPARATOR=';'
  8826. else
  8827. PATH_SEPARATOR=:
  8828. fi
  8829. rm -f conf$$.sh
  8830. fi
  8831. # Find out how to test for executable files. Don't use a zero-byte file,
  8832. # as systems may use methods other than mode bits to determine executability.
  8833. cat >conf$$.file <<_ASEOF
  8834. #! /bin/sh
  8835. exit 0
  8836. _ASEOF
  8837. chmod +x conf$$.file
  8838. if test -x conf$$.file >/dev/null 2>&1; then
  8839. ac_executable_p="test -x"
  8840. else
  8841. ac_executable_p="test -f"
  8842. fi
  8843. rm -f conf$$.file
  8844. # Extract the first word of "msgfmt", so it can be a program name with args.
  8845. set dummy msgfmt; ac_word=$2
  8846. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8847. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8848. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8849. echo $ECHO_N "(cached) $ECHO_C" >&6
  8850. else
  8851. case "$MSGFMT" in
  8852. [\\/]* | ?:[\\/]*)
  8853. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8854. ;;
  8855. *)
  8856. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8857. for ac_dir in $PATH; do
  8858. IFS="$ac_save_IFS"
  8859. test -z "$ac_dir" && ac_dir=.
  8860. for ac_exec_ext in '' $ac_executable_extensions; do
  8861. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8862. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8863. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8864. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8865. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8866. break 2
  8867. fi
  8868. fi
  8869. done
  8870. done
  8871. IFS="$ac_save_IFS"
  8872. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8873. ;;
  8874. esac
  8875. fi
  8876. MSGFMT="$ac_cv_path_MSGFMT"
  8877. if test "$MSGFMT" != ":"; then
  8878. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8879. echo "${ECHO_T}$MSGFMT" >&6; }
  8880. else
  8881. { echo "$as_me:$LINENO: result: no" >&5
  8882. echo "${ECHO_T}no" >&6; }
  8883. fi
  8884. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8885. set dummy gmsgfmt; ac_word=$2
  8886. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8887. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8888. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8889. echo $ECHO_N "(cached) $ECHO_C" >&6
  8890. else
  8891. case $GMSGFMT in
  8892. [\\/]* | ?:[\\/]*)
  8893. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8894. ;;
  8895. *)
  8896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8897. for as_dir in $PATH
  8898. do
  8899. IFS=$as_save_IFS
  8900. test -z "$as_dir" && as_dir=.
  8901. for ac_exec_ext in '' $ac_executable_extensions; do
  8902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8903. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8904. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8905. break 2
  8906. fi
  8907. done
  8908. done
  8909. IFS=$as_save_IFS
  8910. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8911. ;;
  8912. esac
  8913. fi
  8914. GMSGFMT=$ac_cv_path_GMSGFMT
  8915. if test -n "$GMSGFMT"; then
  8916. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8917. echo "${ECHO_T}$GMSGFMT" >&6; }
  8918. else
  8919. { echo "$as_me:$LINENO: result: no" >&5
  8920. echo "${ECHO_T}no" >&6; }
  8921. fi
  8922. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8923. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8924. *) MSGFMT_015=$MSGFMT ;;
  8925. esac
  8926. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8927. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8928. *) GMSGFMT_015=$GMSGFMT ;;
  8929. esac
  8930. # Prepare PATH_SEPARATOR.
  8931. # The user is always right.
  8932. if test "${PATH_SEPARATOR+set}" != set; then
  8933. echo "#! /bin/sh" >conf$$.sh
  8934. echo "exit 0" >>conf$$.sh
  8935. chmod +x conf$$.sh
  8936. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8937. PATH_SEPARATOR=';'
  8938. else
  8939. PATH_SEPARATOR=:
  8940. fi
  8941. rm -f conf$$.sh
  8942. fi
  8943. # Find out how to test for executable files. Don't use a zero-byte file,
  8944. # as systems may use methods other than mode bits to determine executability.
  8945. cat >conf$$.file <<_ASEOF
  8946. #! /bin/sh
  8947. exit 0
  8948. _ASEOF
  8949. chmod +x conf$$.file
  8950. if test -x conf$$.file >/dev/null 2>&1; then
  8951. ac_executable_p="test -x"
  8952. else
  8953. ac_executable_p="test -f"
  8954. fi
  8955. rm -f conf$$.file
  8956. # Extract the first word of "xgettext", so it can be a program name with args.
  8957. set dummy xgettext; ac_word=$2
  8958. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8960. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8961. echo $ECHO_N "(cached) $ECHO_C" >&6
  8962. else
  8963. case "$XGETTEXT" in
  8964. [\\/]* | ?:[\\/]*)
  8965. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8966. ;;
  8967. *)
  8968. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8969. for ac_dir in $PATH; do
  8970. IFS="$ac_save_IFS"
  8971. test -z "$ac_dir" && ac_dir=.
  8972. for ac_exec_ext in '' $ac_executable_extensions; do
  8973. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8974. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8975. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8976. (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
  8977. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8978. break 2
  8979. fi
  8980. fi
  8981. done
  8982. done
  8983. IFS="$ac_save_IFS"
  8984. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8985. ;;
  8986. esac
  8987. fi
  8988. XGETTEXT="$ac_cv_path_XGETTEXT"
  8989. if test "$XGETTEXT" != ":"; then
  8990. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8991. echo "${ECHO_T}$XGETTEXT" >&6; }
  8992. else
  8993. { echo "$as_me:$LINENO: result: no" >&5
  8994. echo "${ECHO_T}no" >&6; }
  8995. fi
  8996. rm -f messages.po
  8997. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8998. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8999. *) XGETTEXT_015=$XGETTEXT ;;
  9000. esac
  9001. # Prepare PATH_SEPARATOR.
  9002. # The user is always right.
  9003. if test "${PATH_SEPARATOR+set}" != set; then
  9004. echo "#! /bin/sh" >conf$$.sh
  9005. echo "exit 0" >>conf$$.sh
  9006. chmod +x conf$$.sh
  9007. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9008. PATH_SEPARATOR=';'
  9009. else
  9010. PATH_SEPARATOR=:
  9011. fi
  9012. rm -f conf$$.sh
  9013. fi
  9014. # Find out how to test for executable files. Don't use a zero-byte file,
  9015. # as systems may use methods other than mode bits to determine executability.
  9016. cat >conf$$.file <<_ASEOF
  9017. #! /bin/sh
  9018. exit 0
  9019. _ASEOF
  9020. chmod +x conf$$.file
  9021. if test -x conf$$.file >/dev/null 2>&1; then
  9022. ac_executable_p="test -x"
  9023. else
  9024. ac_executable_p="test -f"
  9025. fi
  9026. rm -f conf$$.file
  9027. # Extract the first word of "msgmerge", so it can be a program name with args.
  9028. set dummy msgmerge; ac_word=$2
  9029. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9030. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9031. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9032. echo $ECHO_N "(cached) $ECHO_C" >&6
  9033. else
  9034. case "$MSGMERGE" in
  9035. [\\/]* | ?:[\\/]*)
  9036. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9037. ;;
  9038. *)
  9039. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9040. for ac_dir in $PATH; do
  9041. IFS="$ac_save_IFS"
  9042. test -z "$ac_dir" && ac_dir=.
  9043. for ac_exec_ext in '' $ac_executable_extensions; do
  9044. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9045. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9046. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9047. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9048. break 2
  9049. fi
  9050. fi
  9051. done
  9052. done
  9053. IFS="$ac_save_IFS"
  9054. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9055. ;;
  9056. esac
  9057. fi
  9058. MSGMERGE="$ac_cv_path_MSGMERGE"
  9059. if test "$MSGMERGE" != ":"; then
  9060. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9061. echo "${ECHO_T}$MSGMERGE" >&6; }
  9062. else
  9063. { echo "$as_me:$LINENO: result: no" >&5
  9064. echo "${ECHO_T}no" >&6; }
  9065. fi
  9066. test -n "$localedir" || localedir='${datadir}/locale'
  9067. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9068. ac_config_commands="$ac_config_commands po-directories"
  9069. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9070. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9071. if test "${ac_cv_gnu_library_2+set}" = set; then
  9072. echo $ECHO_N "(cached) $ECHO_C" >&6
  9073. else
  9074. cat >conftest.$ac_ext <<_ACEOF
  9075. /* confdefs.h. */
  9076. _ACEOF
  9077. cat confdefs.h >>conftest.$ac_ext
  9078. cat >>conftest.$ac_ext <<_ACEOF
  9079. /* end confdefs.h. */
  9080. #include <features.h>
  9081. #ifdef __GNU_LIBRARY__
  9082. #if (__GLIBC__ >= 2)
  9083. Lucky GNU user
  9084. #endif
  9085. #endif
  9086. _ACEOF
  9087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9088. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9089. ac_cv_gnu_library_2=yes
  9090. else
  9091. ac_cv_gnu_library_2=no
  9092. fi
  9093. rm -f conftest*
  9094. fi
  9095. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9096. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9097. GLIBC2="$ac_cv_gnu_library_2"
  9098. CFLAG_VISIBILITY=
  9099. HAVE_VISIBILITY=0
  9100. if test -n "$GCC"; then
  9101. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9102. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9103. if test "${gl_cv_cc_visibility+set}" = set; then
  9104. echo $ECHO_N "(cached) $ECHO_C" >&6
  9105. else
  9106. gl_save_CFLAGS="$CFLAGS"
  9107. CFLAGS="$CFLAGS -fvisibility=hidden"
  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. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9115. extern __attribute__((__visibility__("default"))) int exportedvar;
  9116. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9117. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9118. int
  9119. main ()
  9120. {
  9121. ;
  9122. return 0;
  9123. }
  9124. _ACEOF
  9125. rm -f conftest.$ac_objext
  9126. if { (ac_try="$ac_compile"
  9127. case "(($ac_try" in
  9128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9129. *) ac_try_echo=$ac_try;;
  9130. esac
  9131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9132. (eval "$ac_compile") 2>conftest.er1
  9133. ac_status=$?
  9134. grep -v '^ *+' conftest.er1 >conftest.err
  9135. rm -f conftest.er1
  9136. cat conftest.err >&5
  9137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9138. (exit $ac_status); } && {
  9139. test -z "$ac_cxx_werror_flag" ||
  9140. test ! -s conftest.err
  9141. } && test -s conftest.$ac_objext; then
  9142. gl_cv_cc_visibility=yes
  9143. else
  9144. echo "$as_me: failed program was:" >&5
  9145. sed 's/^/| /' conftest.$ac_ext >&5
  9146. gl_cv_cc_visibility=no
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9149. CFLAGS="$gl_save_CFLAGS"
  9150. fi
  9151. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9152. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9153. if test $gl_cv_cc_visibility = yes; then
  9154. CFLAG_VISIBILITY="-fvisibility=hidden"
  9155. HAVE_VISIBILITY=1
  9156. fi
  9157. fi
  9158. cat >>confdefs.h <<_ACEOF
  9159. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9160. _ACEOF
  9161. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9162. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9163. if test "${gl_cv_header_stdint_h+set}" = set; then
  9164. echo $ECHO_N "(cached) $ECHO_C" >&6
  9165. else
  9166. cat >conftest.$ac_ext <<_ACEOF
  9167. /* confdefs.h. */
  9168. _ACEOF
  9169. cat confdefs.h >>conftest.$ac_ext
  9170. cat >>conftest.$ac_ext <<_ACEOF
  9171. /* end confdefs.h. */
  9172. #include <sys/types.h>
  9173. #include <stdint.h>
  9174. int
  9175. main ()
  9176. {
  9177. uintmax_t i = (uintmax_t) -1; return !i;
  9178. ;
  9179. return 0;
  9180. }
  9181. _ACEOF
  9182. rm -f conftest.$ac_objext
  9183. if { (ac_try="$ac_compile"
  9184. case "(($ac_try" in
  9185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9186. *) ac_try_echo=$ac_try;;
  9187. esac
  9188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9189. (eval "$ac_compile") 2>conftest.er1
  9190. ac_status=$?
  9191. grep -v '^ *+' conftest.er1 >conftest.err
  9192. rm -f conftest.er1
  9193. cat conftest.err >&5
  9194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9195. (exit $ac_status); } && {
  9196. test -z "$ac_cxx_werror_flag" ||
  9197. test ! -s conftest.err
  9198. } && test -s conftest.$ac_objext; then
  9199. gl_cv_header_stdint_h=yes
  9200. else
  9201. echo "$as_me: failed program was:" >&5
  9202. sed 's/^/| /' conftest.$ac_ext >&5
  9203. gl_cv_header_stdint_h=no
  9204. fi
  9205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9206. fi
  9207. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9208. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9209. if test $gl_cv_header_stdint_h = yes; then
  9210. cat >>confdefs.h <<_ACEOF
  9211. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9212. _ACEOF
  9213. fi
  9214. for ac_header in stdlib.h unistd.h
  9215. do
  9216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9217. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9218. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9219. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9220. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9221. echo $ECHO_N "(cached) $ECHO_C" >&6
  9222. fi
  9223. ac_res=`eval echo '${'$as_ac_Header'}'`
  9224. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9225. echo "${ECHO_T}$ac_res" >&6; }
  9226. else
  9227. # Is the header compilable?
  9228. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9229. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9230. cat >conftest.$ac_ext <<_ACEOF
  9231. /* confdefs.h. */
  9232. _ACEOF
  9233. cat confdefs.h >>conftest.$ac_ext
  9234. cat >>conftest.$ac_ext <<_ACEOF
  9235. /* end confdefs.h. */
  9236. $ac_includes_default
  9237. #include <$ac_header>
  9238. _ACEOF
  9239. rm -f conftest.$ac_objext
  9240. if { (ac_try="$ac_compile"
  9241. case "(($ac_try" in
  9242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9243. *) ac_try_echo=$ac_try;;
  9244. esac
  9245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9246. (eval "$ac_compile") 2>conftest.er1
  9247. ac_status=$?
  9248. grep -v '^ *+' conftest.er1 >conftest.err
  9249. rm -f conftest.er1
  9250. cat conftest.err >&5
  9251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9252. (exit $ac_status); } && {
  9253. test -z "$ac_cxx_werror_flag" ||
  9254. test ! -s conftest.err
  9255. } && test -s conftest.$ac_objext; then
  9256. ac_header_compiler=yes
  9257. else
  9258. echo "$as_me: failed program was:" >&5
  9259. sed 's/^/| /' conftest.$ac_ext >&5
  9260. ac_header_compiler=no
  9261. fi
  9262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9263. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9264. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9265. # Is the header present?
  9266. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9267. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9268. cat >conftest.$ac_ext <<_ACEOF
  9269. /* confdefs.h. */
  9270. _ACEOF
  9271. cat confdefs.h >>conftest.$ac_ext
  9272. cat >>conftest.$ac_ext <<_ACEOF
  9273. /* end confdefs.h. */
  9274. #include <$ac_header>
  9275. _ACEOF
  9276. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9277. case "(($ac_try" in
  9278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9279. *) ac_try_echo=$ac_try;;
  9280. esac
  9281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9282. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9283. ac_status=$?
  9284. grep -v '^ *+' conftest.er1 >conftest.err
  9285. rm -f conftest.er1
  9286. cat conftest.err >&5
  9287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9288. (exit $ac_status); } >/dev/null && {
  9289. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9290. test ! -s conftest.err
  9291. }; then
  9292. ac_header_preproc=yes
  9293. else
  9294. echo "$as_me: failed program was:" >&5
  9295. sed 's/^/| /' conftest.$ac_ext >&5
  9296. ac_header_preproc=no
  9297. fi
  9298. rm -f conftest.err conftest.$ac_ext
  9299. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9300. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9301. # So? What about this header?
  9302. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9303. yes:no: )
  9304. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9305. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9306. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9307. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9308. ac_header_preproc=yes
  9309. ;;
  9310. no:yes:* )
  9311. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9312. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9313. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9314. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9315. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9316. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9317. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9318. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9319. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9320. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9321. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9322. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9323. ( cat <<\_ASBOX
  9324. ## ----------------------------------------------- ##
  9325. ## Report this to t-tujikawa@users.sourceforge.net ##
  9326. ## ----------------------------------------------- ##
  9327. _ASBOX
  9328. ) | sed "s/^/$as_me: WARNING: /" >&2
  9329. ;;
  9330. esac
  9331. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9332. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9333. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9334. echo $ECHO_N "(cached) $ECHO_C" >&6
  9335. else
  9336. eval "$as_ac_Header=\$ac_header_preproc"
  9337. fi
  9338. ac_res=`eval echo '${'$as_ac_Header'}'`
  9339. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9340. echo "${ECHO_T}$ac_res" >&6; }
  9341. fi
  9342. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9343. cat >>confdefs.h <<_ACEOF
  9344. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9345. _ACEOF
  9346. fi
  9347. done
  9348. for ac_func in getpagesize
  9349. do
  9350. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9351. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9352. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9353. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9354. echo $ECHO_N "(cached) $ECHO_C" >&6
  9355. else
  9356. cat >conftest.$ac_ext <<_ACEOF
  9357. /* confdefs.h. */
  9358. _ACEOF
  9359. cat confdefs.h >>conftest.$ac_ext
  9360. cat >>conftest.$ac_ext <<_ACEOF
  9361. /* end confdefs.h. */
  9362. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9363. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9364. #define $ac_func innocuous_$ac_func
  9365. /* System header to define __stub macros and hopefully few prototypes,
  9366. which can conflict with char $ac_func (); below.
  9367. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9368. <limits.h> exists even on freestanding compilers. */
  9369. #ifdef __STDC__
  9370. # include <limits.h>
  9371. #else
  9372. # include <assert.h>
  9373. #endif
  9374. #undef $ac_func
  9375. /* Override any GCC internal prototype to avoid an error.
  9376. Use char because int might match the return type of a GCC
  9377. builtin and then its argument prototype would still apply. */
  9378. #ifdef __cplusplus
  9379. extern "C"
  9380. #endif
  9381. char $ac_func ();
  9382. /* The GNU C library defines this for functions which it implements
  9383. to always fail with ENOSYS. Some functions are actually named
  9384. something starting with __ and the normal name is an alias. */
  9385. #if defined __stub_$ac_func || defined __stub___$ac_func
  9386. choke me
  9387. #endif
  9388. int
  9389. main ()
  9390. {
  9391. return $ac_func ();
  9392. ;
  9393. return 0;
  9394. }
  9395. _ACEOF
  9396. rm -f conftest.$ac_objext conftest$ac_exeext
  9397. if { (ac_try="$ac_link"
  9398. case "(($ac_try" in
  9399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9400. *) ac_try_echo=$ac_try;;
  9401. esac
  9402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9403. (eval "$ac_link") 2>conftest.er1
  9404. ac_status=$?
  9405. grep -v '^ *+' conftest.er1 >conftest.err
  9406. rm -f conftest.er1
  9407. cat conftest.err >&5
  9408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9409. (exit $ac_status); } && {
  9410. test -z "$ac_cxx_werror_flag" ||
  9411. test ! -s conftest.err
  9412. } && test -s conftest$ac_exeext &&
  9413. $as_test_x conftest$ac_exeext; then
  9414. eval "$as_ac_var=yes"
  9415. else
  9416. echo "$as_me: failed program was:" >&5
  9417. sed 's/^/| /' conftest.$ac_ext >&5
  9418. eval "$as_ac_var=no"
  9419. fi
  9420. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9421. conftest$ac_exeext conftest.$ac_ext
  9422. fi
  9423. ac_res=`eval echo '${'$as_ac_var'}'`
  9424. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9425. echo "${ECHO_T}$ac_res" >&6; }
  9426. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9427. cat >>confdefs.h <<_ACEOF
  9428. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9429. _ACEOF
  9430. fi
  9431. done
  9432. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9433. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9434. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9435. echo $ECHO_N "(cached) $ECHO_C" >&6
  9436. else
  9437. if test "$cross_compiling" = yes; then
  9438. ac_cv_func_mmap_fixed_mapped=no
  9439. else
  9440. cat >conftest.$ac_ext <<_ACEOF
  9441. /* confdefs.h. */
  9442. _ACEOF
  9443. cat confdefs.h >>conftest.$ac_ext
  9444. cat >>conftest.$ac_ext <<_ACEOF
  9445. /* end confdefs.h. */
  9446. $ac_includes_default
  9447. /* malloc might have been renamed as rpl_malloc. */
  9448. #undef malloc
  9449. /* Thanks to Mike Haertel and Jim Avera for this test.
  9450. Here is a matrix of mmap possibilities:
  9451. mmap private not fixed
  9452. mmap private fixed at somewhere currently unmapped
  9453. mmap private fixed at somewhere already mapped
  9454. mmap shared not fixed
  9455. mmap shared fixed at somewhere currently unmapped
  9456. mmap shared fixed at somewhere already mapped
  9457. For private mappings, we should verify that changes cannot be read()
  9458. back from the file, nor mmap's back from the file at a different
  9459. address. (There have been systems where private was not correctly
  9460. implemented like the infamous i386 svr4.0, and systems where the
  9461. VM page cache was not coherent with the file system buffer cache
  9462. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9463. For shared mappings, we should conversely verify that changes get
  9464. propagated back to all the places they're supposed to be.
  9465. Grep wants private fixed already mapped.
  9466. The main things grep needs to know about mmap are:
  9467. * does it exist and is it safe to write into the mmap'd area
  9468. * how to use it (BSD variants) */
  9469. #include <fcntl.h>
  9470. #include <sys/mman.h>
  9471. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9472. char *malloc ();
  9473. #endif
  9474. /* This mess was copied from the GNU getpagesize.h. */
  9475. #ifndef HAVE_GETPAGESIZE
  9476. /* Assume that all systems that can run configure have sys/param.h. */
  9477. # ifndef HAVE_SYS_PARAM_H
  9478. # define HAVE_SYS_PARAM_H 1
  9479. # endif
  9480. # ifdef _SC_PAGESIZE
  9481. # define getpagesize() sysconf(_SC_PAGESIZE)
  9482. # else /* no _SC_PAGESIZE */
  9483. # ifdef HAVE_SYS_PARAM_H
  9484. # include <sys/param.h>
  9485. # ifdef EXEC_PAGESIZE
  9486. # define getpagesize() EXEC_PAGESIZE
  9487. # else /* no EXEC_PAGESIZE */
  9488. # ifdef NBPG
  9489. # define getpagesize() NBPG * CLSIZE
  9490. # ifndef CLSIZE
  9491. # define CLSIZE 1
  9492. # endif /* no CLSIZE */
  9493. # else /* no NBPG */
  9494. # ifdef NBPC
  9495. # define getpagesize() NBPC
  9496. # else /* no NBPC */
  9497. # ifdef PAGESIZE
  9498. # define getpagesize() PAGESIZE
  9499. # endif /* PAGESIZE */
  9500. # endif /* no NBPC */
  9501. # endif /* no NBPG */
  9502. # endif /* no EXEC_PAGESIZE */
  9503. # else /* no HAVE_SYS_PARAM_H */
  9504. # define getpagesize() 8192 /* punt totally */
  9505. # endif /* no HAVE_SYS_PARAM_H */
  9506. # endif /* no _SC_PAGESIZE */
  9507. #endif /* no HAVE_GETPAGESIZE */
  9508. int
  9509. main ()
  9510. {
  9511. char *data, *data2, *data3;
  9512. int i, pagesize;
  9513. int fd;
  9514. pagesize = getpagesize ();
  9515. /* First, make a file with some known garbage in it. */
  9516. data = (char *) malloc (pagesize);
  9517. if (!data)
  9518. return 1;
  9519. for (i = 0; i < pagesize; ++i)
  9520. *(data + i) = rand ();
  9521. umask (0);
  9522. fd = creat ("conftest.mmap", 0600);
  9523. if (fd < 0)
  9524. return 1;
  9525. if (write (fd, data, pagesize) != pagesize)
  9526. return 1;
  9527. close (fd);
  9528. /* Next, try to mmap the file at a fixed address which already has
  9529. something else allocated at it. If we can, also make sure that
  9530. we see the same garbage. */
  9531. fd = open ("conftest.mmap", O_RDWR);
  9532. if (fd < 0)
  9533. return 1;
  9534. data2 = (char *) malloc (2 * pagesize);
  9535. if (!data2)
  9536. return 1;
  9537. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9538. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9539. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9540. return 1;
  9541. for (i = 0; i < pagesize; ++i)
  9542. if (*(data + i) != *(data2 + i))
  9543. return 1;
  9544. /* Finally, make sure that changes to the mapped area do not
  9545. percolate back to the file as seen by read(). (This is a bug on
  9546. some variants of i386 svr4.0.) */
  9547. for (i = 0; i < pagesize; ++i)
  9548. *(data2 + i) = *(data2 + i) + 1;
  9549. data3 = (char *) malloc (pagesize);
  9550. if (!data3)
  9551. return 1;
  9552. if (read (fd, data3, pagesize) != pagesize)
  9553. return 1;
  9554. for (i = 0; i < pagesize; ++i)
  9555. if (*(data + i) != *(data3 + i))
  9556. return 1;
  9557. close (fd);
  9558. return 0;
  9559. }
  9560. _ACEOF
  9561. rm -f conftest$ac_exeext
  9562. if { (ac_try="$ac_link"
  9563. case "(($ac_try" in
  9564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9565. *) ac_try_echo=$ac_try;;
  9566. esac
  9567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9568. (eval "$ac_link") 2>&5
  9569. ac_status=$?
  9570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9572. { (case "(($ac_try" in
  9573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9574. *) ac_try_echo=$ac_try;;
  9575. esac
  9576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9577. (eval "$ac_try") 2>&5
  9578. ac_status=$?
  9579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9580. (exit $ac_status); }; }; then
  9581. ac_cv_func_mmap_fixed_mapped=yes
  9582. else
  9583. echo "$as_me: program exited with status $ac_status" >&5
  9584. echo "$as_me: failed program was:" >&5
  9585. sed 's/^/| /' conftest.$ac_ext >&5
  9586. ( exit $ac_status )
  9587. ac_cv_func_mmap_fixed_mapped=no
  9588. fi
  9589. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9590. fi
  9591. fi
  9592. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9593. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9594. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9595. cat >>confdefs.h <<\_ACEOF
  9596. #define HAVE_MMAP 1
  9597. _ACEOF
  9598. fi
  9599. rm -f conftest.mmap
  9600. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9601. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9602. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9603. echo $ECHO_N "(cached) $ECHO_C" >&6
  9604. else
  9605. gt_cv_int_divbyzero_sigfpe=
  9606. case "$host_os" in
  9607. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9608. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9609. # compiling. If we were to perform the real test, 1 Crash Report
  9610. # dialog window would pop up.
  9611. case "$host_cpu" in
  9612. i[34567]86 | x86_64)
  9613. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9614. esac
  9615. ;;
  9616. esac
  9617. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9618. if test "$cross_compiling" = yes; then
  9619. # Guess based on the CPU.
  9620. case "$host_cpu" in
  9621. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9622. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9623. *)
  9624. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9625. esac
  9626. else
  9627. cat >conftest.$ac_ext <<_ACEOF
  9628. /* confdefs.h. */
  9629. _ACEOF
  9630. cat confdefs.h >>conftest.$ac_ext
  9631. cat >>conftest.$ac_ext <<_ACEOF
  9632. /* end confdefs.h. */
  9633. #include <stdlib.h>
  9634. #include <signal.h>
  9635. static void
  9636. sigfpe_handler (int sig)
  9637. {
  9638. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9639. exit (sig != SIGFPE);
  9640. }
  9641. int x = 1;
  9642. int y = 0;
  9643. int z;
  9644. int nan;
  9645. int main ()
  9646. {
  9647. signal (SIGFPE, sigfpe_handler);
  9648. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9649. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9650. signal (SIGTRAP, sigfpe_handler);
  9651. #endif
  9652. /* Linux/SPARC yields signal SIGILL. */
  9653. #if defined (__sparc__) && defined (__linux__)
  9654. signal (SIGILL, sigfpe_handler);
  9655. #endif
  9656. z = x / y;
  9657. nan = y / y;
  9658. exit (1);
  9659. }
  9660. _ACEOF
  9661. rm -f conftest$ac_exeext
  9662. if { (ac_try="$ac_link"
  9663. case "(($ac_try" in
  9664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9665. *) ac_try_echo=$ac_try;;
  9666. esac
  9667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9668. (eval "$ac_link") 2>&5
  9669. ac_status=$?
  9670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9671. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9672. { (case "(($ac_try" in
  9673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9674. *) ac_try_echo=$ac_try;;
  9675. esac
  9676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9677. (eval "$ac_try") 2>&5
  9678. ac_status=$?
  9679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9680. (exit $ac_status); }; }; then
  9681. gt_cv_int_divbyzero_sigfpe=yes
  9682. else
  9683. echo "$as_me: program exited with status $ac_status" >&5
  9684. echo "$as_me: failed program was:" >&5
  9685. sed 's/^/| /' conftest.$ac_ext >&5
  9686. ( exit $ac_status )
  9687. gt_cv_int_divbyzero_sigfpe=no
  9688. fi
  9689. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9690. fi
  9691. fi
  9692. fi
  9693. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9694. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9695. case "$gt_cv_int_divbyzero_sigfpe" in
  9696. *yes) value=1;;
  9697. *) value=0;;
  9698. esac
  9699. cat >>confdefs.h <<_ACEOF
  9700. #define INTDIV0_RAISES_SIGFPE $value
  9701. _ACEOF
  9702. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9703. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9704. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9705. echo $ECHO_N "(cached) $ECHO_C" >&6
  9706. else
  9707. cat >conftest.$ac_ext <<_ACEOF
  9708. /* confdefs.h. */
  9709. _ACEOF
  9710. cat confdefs.h >>conftest.$ac_ext
  9711. cat >>conftest.$ac_ext <<_ACEOF
  9712. /* end confdefs.h. */
  9713. #include <sys/types.h>
  9714. #include <inttypes.h>
  9715. int
  9716. main ()
  9717. {
  9718. uintmax_t i = (uintmax_t) -1; return !i;
  9719. ;
  9720. return 0;
  9721. }
  9722. _ACEOF
  9723. rm -f conftest.$ac_objext
  9724. if { (ac_try="$ac_compile"
  9725. case "(($ac_try" in
  9726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9727. *) ac_try_echo=$ac_try;;
  9728. esac
  9729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9730. (eval "$ac_compile") 2>conftest.er1
  9731. ac_status=$?
  9732. grep -v '^ *+' conftest.er1 >conftest.err
  9733. rm -f conftest.er1
  9734. cat conftest.err >&5
  9735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9736. (exit $ac_status); } && {
  9737. test -z "$ac_cxx_werror_flag" ||
  9738. test ! -s conftest.err
  9739. } && test -s conftest.$ac_objext; then
  9740. gl_cv_header_inttypes_h=yes
  9741. else
  9742. echo "$as_me: failed program was:" >&5
  9743. sed 's/^/| /' conftest.$ac_ext >&5
  9744. gl_cv_header_inttypes_h=no
  9745. fi
  9746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9747. fi
  9748. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9749. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9750. if test $gl_cv_header_inttypes_h = yes; then
  9751. cat >>confdefs.h <<_ACEOF
  9752. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9753. _ACEOF
  9754. fi
  9755. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9756. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9757. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9758. echo $ECHO_N "(cached) $ECHO_C" >&6
  9759. else
  9760. cat >conftest.$ac_ext <<_ACEOF
  9761. /* confdefs.h. */
  9762. _ACEOF
  9763. cat confdefs.h >>conftest.$ac_ext
  9764. cat >>conftest.$ac_ext <<_ACEOF
  9765. /* end confdefs.h. */
  9766. /* Test preprocessor. */
  9767. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9768. error in preprocessor;
  9769. #endif
  9770. #if ! (18446744073709551615ULL <= -1ull)
  9771. error in preprocessor;
  9772. #endif
  9773. /* Test literals. */
  9774. long long int ll = 9223372036854775807ll;
  9775. long long int nll = -9223372036854775807LL;
  9776. unsigned long long int ull = 18446744073709551615ULL;
  9777. /* Test constant expressions. */
  9778. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9779. ? 1 : -1)];
  9780. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9781. ? 1 : -1)];
  9782. int i = 63;
  9783. int
  9784. main ()
  9785. {
  9786. /* Test availability of runtime routines for shift and division. */
  9787. long long int llmax = 9223372036854775807ll;
  9788. unsigned long long int ullmax = 18446744073709551615ull;
  9789. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9790. | (llmax / ll) | (llmax % ll)
  9791. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9792. | (ullmax / ull) | (ullmax % ull));
  9793. ;
  9794. return 0;
  9795. }
  9796. _ACEOF
  9797. rm -f conftest.$ac_objext conftest$ac_exeext
  9798. if { (ac_try="$ac_link"
  9799. case "(($ac_try" in
  9800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9801. *) ac_try_echo=$ac_try;;
  9802. esac
  9803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9804. (eval "$ac_link") 2>conftest.er1
  9805. ac_status=$?
  9806. grep -v '^ *+' conftest.er1 >conftest.err
  9807. rm -f conftest.er1
  9808. cat conftest.err >&5
  9809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9810. (exit $ac_status); } && {
  9811. test -z "$ac_cxx_werror_flag" ||
  9812. test ! -s conftest.err
  9813. } && test -s conftest$ac_exeext &&
  9814. $as_test_x conftest$ac_exeext; then
  9815. ac_cv_type_unsigned_long_long_int=yes
  9816. else
  9817. echo "$as_me: failed program was:" >&5
  9818. sed 's/^/| /' conftest.$ac_ext >&5
  9819. ac_cv_type_unsigned_long_long_int=no
  9820. fi
  9821. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9822. conftest$ac_exeext conftest.$ac_ext
  9823. fi
  9824. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9825. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9826. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9827. cat >>confdefs.h <<\_ACEOF
  9828. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9829. _ACEOF
  9830. fi
  9831. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9832. test $ac_cv_type_unsigned_long_long_int = yes \
  9833. && ac_type='unsigned long long' \
  9834. || ac_type='unsigned long'
  9835. cat >>confdefs.h <<_ACEOF
  9836. #define uintmax_t $ac_type
  9837. _ACEOF
  9838. else
  9839. cat >>confdefs.h <<\_ACEOF
  9840. #define HAVE_UINTMAX_T 1
  9841. _ACEOF
  9842. fi
  9843. for ac_header in inttypes.h
  9844. do
  9845. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9846. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9847. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9848. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9849. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9850. echo $ECHO_N "(cached) $ECHO_C" >&6
  9851. fi
  9852. ac_res=`eval echo '${'$as_ac_Header'}'`
  9853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9854. echo "${ECHO_T}$ac_res" >&6; }
  9855. else
  9856. # Is the header compilable?
  9857. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9858. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9859. cat >conftest.$ac_ext <<_ACEOF
  9860. /* confdefs.h. */
  9861. _ACEOF
  9862. cat confdefs.h >>conftest.$ac_ext
  9863. cat >>conftest.$ac_ext <<_ACEOF
  9864. /* end confdefs.h. */
  9865. $ac_includes_default
  9866. #include <$ac_header>
  9867. _ACEOF
  9868. rm -f conftest.$ac_objext
  9869. if { (ac_try="$ac_compile"
  9870. case "(($ac_try" in
  9871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9872. *) ac_try_echo=$ac_try;;
  9873. esac
  9874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9875. (eval "$ac_compile") 2>conftest.er1
  9876. ac_status=$?
  9877. grep -v '^ *+' conftest.er1 >conftest.err
  9878. rm -f conftest.er1
  9879. cat conftest.err >&5
  9880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9881. (exit $ac_status); } && {
  9882. test -z "$ac_cxx_werror_flag" ||
  9883. test ! -s conftest.err
  9884. } && test -s conftest.$ac_objext; then
  9885. ac_header_compiler=yes
  9886. else
  9887. echo "$as_me: failed program was:" >&5
  9888. sed 's/^/| /' conftest.$ac_ext >&5
  9889. ac_header_compiler=no
  9890. fi
  9891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9892. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9893. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9894. # Is the header present?
  9895. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9896. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9897. cat >conftest.$ac_ext <<_ACEOF
  9898. /* confdefs.h. */
  9899. _ACEOF
  9900. cat confdefs.h >>conftest.$ac_ext
  9901. cat >>conftest.$ac_ext <<_ACEOF
  9902. /* end confdefs.h. */
  9903. #include <$ac_header>
  9904. _ACEOF
  9905. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9906. case "(($ac_try" in
  9907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9908. *) ac_try_echo=$ac_try;;
  9909. esac
  9910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9911. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9912. ac_status=$?
  9913. grep -v '^ *+' conftest.er1 >conftest.err
  9914. rm -f conftest.er1
  9915. cat conftest.err >&5
  9916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9917. (exit $ac_status); } >/dev/null && {
  9918. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9919. test ! -s conftest.err
  9920. }; then
  9921. ac_header_preproc=yes
  9922. else
  9923. echo "$as_me: failed program was:" >&5
  9924. sed 's/^/| /' conftest.$ac_ext >&5
  9925. ac_header_preproc=no
  9926. fi
  9927. rm -f conftest.err conftest.$ac_ext
  9928. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9929. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9930. # So? What about this header?
  9931. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9932. yes:no: )
  9933. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9934. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9935. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9936. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9937. ac_header_preproc=yes
  9938. ;;
  9939. no:yes:* )
  9940. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9941. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9942. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9943. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9944. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9945. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9946. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9947. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9948. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9949. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9950. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9951. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9952. ( cat <<\_ASBOX
  9953. ## ----------------------------------------------- ##
  9954. ## Report this to t-tujikawa@users.sourceforge.net ##
  9955. ## ----------------------------------------------- ##
  9956. _ASBOX
  9957. ) | sed "s/^/$as_me: WARNING: /" >&2
  9958. ;;
  9959. esac
  9960. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9961. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9962. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9963. echo $ECHO_N "(cached) $ECHO_C" >&6
  9964. else
  9965. eval "$as_ac_Header=\$ac_header_preproc"
  9966. fi
  9967. ac_res=`eval echo '${'$as_ac_Header'}'`
  9968. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9969. echo "${ECHO_T}$ac_res" >&6; }
  9970. fi
  9971. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9972. cat >>confdefs.h <<_ACEOF
  9973. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9974. _ACEOF
  9975. fi
  9976. done
  9977. if test $ac_cv_header_inttypes_h = yes; then
  9978. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  9979. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  9980. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  9981. echo $ECHO_N "(cached) $ECHO_C" >&6
  9982. else
  9983. cat >conftest.$ac_ext <<_ACEOF
  9984. /* confdefs.h. */
  9985. _ACEOF
  9986. cat confdefs.h >>conftest.$ac_ext
  9987. cat >>conftest.$ac_ext <<_ACEOF
  9988. /* end confdefs.h. */
  9989. #include <inttypes.h>
  9990. #ifdef PRId32
  9991. char *p = PRId32;
  9992. #endif
  9993. int
  9994. main ()
  9995. {
  9996. ;
  9997. return 0;
  9998. }
  9999. _ACEOF
  10000. rm -f conftest.$ac_objext
  10001. if { (ac_try="$ac_compile"
  10002. case "(($ac_try" in
  10003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10004. *) ac_try_echo=$ac_try;;
  10005. esac
  10006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10007. (eval "$ac_compile") 2>conftest.er1
  10008. ac_status=$?
  10009. grep -v '^ *+' conftest.er1 >conftest.err
  10010. rm -f conftest.er1
  10011. cat conftest.err >&5
  10012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10013. (exit $ac_status); } && {
  10014. test -z "$ac_cxx_werror_flag" ||
  10015. test ! -s conftest.err
  10016. } && test -s conftest.$ac_objext; then
  10017. gt_cv_inttypes_pri_broken=no
  10018. else
  10019. echo "$as_me: failed program was:" >&5
  10020. sed 's/^/| /' conftest.$ac_ext >&5
  10021. gt_cv_inttypes_pri_broken=yes
  10022. fi
  10023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10024. fi
  10025. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10026. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10027. fi
  10028. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10029. cat >>confdefs.h <<_ACEOF
  10030. #define PRI_MACROS_BROKEN 1
  10031. _ACEOF
  10032. PRI_MACROS_BROKEN=1
  10033. else
  10034. PRI_MACROS_BROKEN=0
  10035. fi
  10036. # Check whether --enable-threads was given.
  10037. if test "${enable_threads+set}" = set; then
  10038. enableval=$enable_threads; gl_use_threads=$enableval
  10039. else
  10040. case "$host_os" in
  10041. osf*) gl_use_threads=no ;;
  10042. *) gl_use_threads=yes ;;
  10043. esac
  10044. fi
  10045. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10046. # For using <pthread.h>:
  10047. case "$host_os" in
  10048. osf*)
  10049. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10050. # groks <pthread.h>. cc also understands the flag -pthread, but
  10051. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10052. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10053. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10054. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10055. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10056. ;;
  10057. esac
  10058. # Some systems optimize for single-threaded programs by default, and
  10059. # need special flags to disable these optimizations. For example, the
  10060. # definition of 'errno' in <errno.h>.
  10061. case "$host_os" in
  10062. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10063. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10064. esac
  10065. fi
  10066. if test "X$prefix" = "XNONE"; then
  10067. acl_final_prefix="$ac_default_prefix"
  10068. else
  10069. acl_final_prefix="$prefix"
  10070. fi
  10071. if test "X$exec_prefix" = "XNONE"; then
  10072. acl_final_exec_prefix='${prefix}'
  10073. else
  10074. acl_final_exec_prefix="$exec_prefix"
  10075. fi
  10076. acl_save_prefix="$prefix"
  10077. prefix="$acl_final_prefix"
  10078. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10079. prefix="$acl_save_prefix"
  10080. # Check whether --with-gnu-ld was given.
  10081. if test "${with_gnu_ld+set}" = set; then
  10082. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10083. else
  10084. with_gnu_ld=no
  10085. fi
  10086. # Prepare PATH_SEPARATOR.
  10087. # The user is always right.
  10088. if test "${PATH_SEPARATOR+set}" != set; then
  10089. echo "#! /bin/sh" >conf$$.sh
  10090. echo "exit 0" >>conf$$.sh
  10091. chmod +x conf$$.sh
  10092. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10093. PATH_SEPARATOR=';'
  10094. else
  10095. PATH_SEPARATOR=:
  10096. fi
  10097. rm -f conf$$.sh
  10098. fi
  10099. ac_prog=ld
  10100. if test "$GCC" = yes; then
  10101. # Check if gcc -print-prog-name=ld gives a path.
  10102. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10103. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10104. case $host in
  10105. *-*-mingw*)
  10106. # gcc leaves a trailing carriage return which upsets mingw
  10107. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10108. *)
  10109. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10110. esac
  10111. case $ac_prog in
  10112. # Accept absolute paths.
  10113. [\\/]* | [A-Za-z]:[\\/]*)
  10114. re_direlt='/[^/][^/]*/\.\./'
  10115. # Canonicalize the path of ld
  10116. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10117. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10118. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10119. done
  10120. test -z "$LD" && LD="$ac_prog"
  10121. ;;
  10122. "")
  10123. # If it fails, then pretend we aren't using GCC.
  10124. ac_prog=ld
  10125. ;;
  10126. *)
  10127. # If it is relative, then search for the first ld in PATH.
  10128. with_gnu_ld=unknown
  10129. ;;
  10130. esac
  10131. elif test "$with_gnu_ld" = yes; then
  10132. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10133. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10134. else
  10135. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10136. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10137. fi
  10138. if test "${acl_cv_path_LD+set}" = set; then
  10139. echo $ECHO_N "(cached) $ECHO_C" >&6
  10140. else
  10141. if test -z "$LD"; then
  10142. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10143. for ac_dir in $PATH; do
  10144. test -z "$ac_dir" && ac_dir=.
  10145. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10146. acl_cv_path_LD="$ac_dir/$ac_prog"
  10147. # Check to see if the program is GNU ld. I'd rather use --version,
  10148. # but apparently some GNU ld's only accept -v.
  10149. # Break only if it was the GNU/non-GNU ld that we prefer.
  10150. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10151. *GNU* | *'with BFD'*)
  10152. test "$with_gnu_ld" != no && break ;;
  10153. *)
  10154. test "$with_gnu_ld" != yes && break ;;
  10155. esac
  10156. fi
  10157. done
  10158. IFS="$ac_save_ifs"
  10159. else
  10160. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10161. fi
  10162. fi
  10163. LD="$acl_cv_path_LD"
  10164. if test -n "$LD"; then
  10165. { echo "$as_me:$LINENO: result: $LD" >&5
  10166. echo "${ECHO_T}$LD" >&6; }
  10167. else
  10168. { echo "$as_me:$LINENO: result: no" >&5
  10169. echo "${ECHO_T}no" >&6; }
  10170. fi
  10171. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10172. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10173. { (exit 1); exit 1; }; }
  10174. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10175. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10176. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10177. echo $ECHO_N "(cached) $ECHO_C" >&6
  10178. else
  10179. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10180. case `$LD -v 2>&1 </dev/null` in
  10181. *GNU* | *'with BFD'*)
  10182. acl_cv_prog_gnu_ld=yes ;;
  10183. *)
  10184. acl_cv_prog_gnu_ld=no ;;
  10185. esac
  10186. fi
  10187. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10188. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10189. with_gnu_ld=$acl_cv_prog_gnu_ld
  10190. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10191. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10192. if test "${acl_cv_rpath+set}" = set; then
  10193. echo $ECHO_N "(cached) $ECHO_C" >&6
  10194. else
  10195. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10196. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10197. . ./conftest.sh
  10198. rm -f ./conftest.sh
  10199. acl_cv_rpath=done
  10200. fi
  10201. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10202. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10203. wl="$acl_cv_wl"
  10204. acl_libext="$acl_cv_libext"
  10205. acl_shlibext="$acl_cv_shlibext"
  10206. acl_libname_spec="$acl_cv_libname_spec"
  10207. acl_library_names_spec="$acl_cv_library_names_spec"
  10208. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10209. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10210. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10211. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10212. # Check whether --enable-rpath was given.
  10213. if test "${enable_rpath+set}" = set; then
  10214. enableval=$enable_rpath; :
  10215. else
  10216. enable_rpath=yes
  10217. fi
  10218. acl_libdirstem=lib
  10219. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10220. if test -n "$searchpath"; then
  10221. acl_save_IFS="${IFS= }"; IFS=":"
  10222. for searchdir in $searchpath; do
  10223. if test -d "$searchdir"; then
  10224. case "$searchdir" in
  10225. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10226. *) searchdir=`cd "$searchdir" && pwd`
  10227. case "$searchdir" in
  10228. */lib64 ) acl_libdirstem=lib64 ;;
  10229. esac ;;
  10230. esac
  10231. fi
  10232. done
  10233. IFS="$acl_save_IFS"
  10234. fi
  10235. gl_threads_api=none
  10236. LIBTHREAD=
  10237. LTLIBTHREAD=
  10238. LIBMULTITHREAD=
  10239. LTLIBMULTITHREAD=
  10240. if test "$gl_use_threads" != no; then
  10241. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10242. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10243. gl_have_weak=no
  10244. cat >conftest.$ac_ext <<_ACEOF
  10245. /* confdefs.h. */
  10246. _ACEOF
  10247. cat confdefs.h >>conftest.$ac_ext
  10248. cat >>conftest.$ac_ext <<_ACEOF
  10249. /* end confdefs.h. */
  10250. extern void xyzzy ();
  10251. #pragma weak xyzzy
  10252. int
  10253. main ()
  10254. {
  10255. xyzzy();
  10256. ;
  10257. return 0;
  10258. }
  10259. _ACEOF
  10260. rm -f conftest.$ac_objext conftest$ac_exeext
  10261. if { (ac_try="$ac_link"
  10262. case "(($ac_try" in
  10263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10264. *) ac_try_echo=$ac_try;;
  10265. esac
  10266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10267. (eval "$ac_link") 2>conftest.er1
  10268. ac_status=$?
  10269. grep -v '^ *+' conftest.er1 >conftest.err
  10270. rm -f conftest.er1
  10271. cat conftest.err >&5
  10272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10273. (exit $ac_status); } && {
  10274. test -z "$ac_cxx_werror_flag" ||
  10275. test ! -s conftest.err
  10276. } && test -s conftest$ac_exeext &&
  10277. $as_test_x conftest$ac_exeext; then
  10278. gl_have_weak=yes
  10279. else
  10280. echo "$as_me: failed program was:" >&5
  10281. sed 's/^/| /' conftest.$ac_ext >&5
  10282. fi
  10283. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10284. conftest$ac_exeext conftest.$ac_ext
  10285. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10286. echo "${ECHO_T}$gl_have_weak" >&6; }
  10287. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10288. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10289. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10290. if test "${ac_cv_header_pthread_h+set}" = set; then
  10291. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10292. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10293. if test "${ac_cv_header_pthread_h+set}" = set; then
  10294. echo $ECHO_N "(cached) $ECHO_C" >&6
  10295. fi
  10296. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10297. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10298. else
  10299. # Is the header compilable?
  10300. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10301. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10302. cat >conftest.$ac_ext <<_ACEOF
  10303. /* confdefs.h. */
  10304. _ACEOF
  10305. cat confdefs.h >>conftest.$ac_ext
  10306. cat >>conftest.$ac_ext <<_ACEOF
  10307. /* end confdefs.h. */
  10308. $ac_includes_default
  10309. #include <pthread.h>
  10310. _ACEOF
  10311. rm -f conftest.$ac_objext
  10312. if { (ac_try="$ac_compile"
  10313. case "(($ac_try" in
  10314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10315. *) ac_try_echo=$ac_try;;
  10316. esac
  10317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10318. (eval "$ac_compile") 2>conftest.er1
  10319. ac_status=$?
  10320. grep -v '^ *+' conftest.er1 >conftest.err
  10321. rm -f conftest.er1
  10322. cat conftest.err >&5
  10323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10324. (exit $ac_status); } && {
  10325. test -z "$ac_cxx_werror_flag" ||
  10326. test ! -s conftest.err
  10327. } && test -s conftest.$ac_objext; then
  10328. ac_header_compiler=yes
  10329. else
  10330. echo "$as_me: failed program was:" >&5
  10331. sed 's/^/| /' conftest.$ac_ext >&5
  10332. ac_header_compiler=no
  10333. fi
  10334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10335. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10336. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10337. # Is the header present?
  10338. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10339. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10340. cat >conftest.$ac_ext <<_ACEOF
  10341. /* confdefs.h. */
  10342. _ACEOF
  10343. cat confdefs.h >>conftest.$ac_ext
  10344. cat >>conftest.$ac_ext <<_ACEOF
  10345. /* end confdefs.h. */
  10346. #include <pthread.h>
  10347. _ACEOF
  10348. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10349. case "(($ac_try" in
  10350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10351. *) ac_try_echo=$ac_try;;
  10352. esac
  10353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10354. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10355. ac_status=$?
  10356. grep -v '^ *+' conftest.er1 >conftest.err
  10357. rm -f conftest.er1
  10358. cat conftest.err >&5
  10359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10360. (exit $ac_status); } >/dev/null && {
  10361. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10362. test ! -s conftest.err
  10363. }; then
  10364. ac_header_preproc=yes
  10365. else
  10366. echo "$as_me: failed program was:" >&5
  10367. sed 's/^/| /' conftest.$ac_ext >&5
  10368. ac_header_preproc=no
  10369. fi
  10370. rm -f conftest.err conftest.$ac_ext
  10371. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10372. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10373. # So? What about this header?
  10374. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10375. yes:no: )
  10376. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10377. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10378. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10379. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10380. ac_header_preproc=yes
  10381. ;;
  10382. no:yes:* )
  10383. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10384. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10385. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10386. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10387. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10388. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10389. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10390. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10391. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10392. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10393. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10394. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10395. ( cat <<\_ASBOX
  10396. ## ----------------------------------------------- ##
  10397. ## Report this to t-tujikawa@users.sourceforge.net ##
  10398. ## ----------------------------------------------- ##
  10399. _ASBOX
  10400. ) | sed "s/^/$as_me: WARNING: /" >&2
  10401. ;;
  10402. esac
  10403. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10404. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10405. if test "${ac_cv_header_pthread_h+set}" = set; then
  10406. echo $ECHO_N "(cached) $ECHO_C" >&6
  10407. else
  10408. ac_cv_header_pthread_h=$ac_header_preproc
  10409. fi
  10410. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10411. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10412. fi
  10413. if test $ac_cv_header_pthread_h = yes; then
  10414. gl_have_pthread_h=yes
  10415. else
  10416. gl_have_pthread_h=no
  10417. fi
  10418. if test "$gl_have_pthread_h" = yes; then
  10419. # Other possible tests:
  10420. # -lpthreads (FSU threads, PCthreads)
  10421. # -lgthreads
  10422. gl_have_pthread=
  10423. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10424. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10425. # the second one only in libpthread, and lock.c needs it.
  10426. cat >conftest.$ac_ext <<_ACEOF
  10427. /* confdefs.h. */
  10428. _ACEOF
  10429. cat confdefs.h >>conftest.$ac_ext
  10430. cat >>conftest.$ac_ext <<_ACEOF
  10431. /* end confdefs.h. */
  10432. #include <pthread.h>
  10433. int
  10434. main ()
  10435. {
  10436. pthread_mutex_lock((pthread_mutex_t*)0);
  10437. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10438. ;
  10439. return 0;
  10440. }
  10441. _ACEOF
  10442. rm -f conftest.$ac_objext conftest$ac_exeext
  10443. if { (ac_try="$ac_link"
  10444. case "(($ac_try" in
  10445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10446. *) ac_try_echo=$ac_try;;
  10447. esac
  10448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10449. (eval "$ac_link") 2>conftest.er1
  10450. ac_status=$?
  10451. grep -v '^ *+' conftest.er1 >conftest.err
  10452. rm -f conftest.er1
  10453. cat conftest.err >&5
  10454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10455. (exit $ac_status); } && {
  10456. test -z "$ac_cxx_werror_flag" ||
  10457. test ! -s conftest.err
  10458. } && test -s conftest$ac_exeext &&
  10459. $as_test_x conftest$ac_exeext; then
  10460. gl_have_pthread=yes
  10461. else
  10462. echo "$as_me: failed program was:" >&5
  10463. sed 's/^/| /' conftest.$ac_ext >&5
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10466. conftest$ac_exeext conftest.$ac_ext
  10467. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10468. # since it is defined as a macro on OSF/1.)
  10469. if test -n "$gl_have_pthread"; then
  10470. # The program links fine without libpthread. But it may actually
  10471. # need to link with libpthread in order to create multiple threads.
  10472. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10473. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10474. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10475. echo $ECHO_N "(cached) $ECHO_C" >&6
  10476. else
  10477. ac_check_lib_save_LIBS=$LIBS
  10478. LIBS="-lpthread $LIBS"
  10479. cat >conftest.$ac_ext <<_ACEOF
  10480. /* confdefs.h. */
  10481. _ACEOF
  10482. cat confdefs.h >>conftest.$ac_ext
  10483. cat >>conftest.$ac_ext <<_ACEOF
  10484. /* end confdefs.h. */
  10485. /* Override any GCC internal prototype to avoid an error.
  10486. Use char because int might match the return type of a GCC
  10487. builtin and then its argument prototype would still apply. */
  10488. #ifdef __cplusplus
  10489. extern "C"
  10490. #endif
  10491. char pthread_kill ();
  10492. int
  10493. main ()
  10494. {
  10495. return pthread_kill ();
  10496. ;
  10497. return 0;
  10498. }
  10499. _ACEOF
  10500. rm -f conftest.$ac_objext conftest$ac_exeext
  10501. if { (ac_try="$ac_link"
  10502. case "(($ac_try" in
  10503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10504. *) ac_try_echo=$ac_try;;
  10505. esac
  10506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10507. (eval "$ac_link") 2>conftest.er1
  10508. ac_status=$?
  10509. grep -v '^ *+' conftest.er1 >conftest.err
  10510. rm -f conftest.er1
  10511. cat conftest.err >&5
  10512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10513. (exit $ac_status); } && {
  10514. test -z "$ac_cxx_werror_flag" ||
  10515. test ! -s conftest.err
  10516. } && test -s conftest$ac_exeext &&
  10517. $as_test_x conftest$ac_exeext; then
  10518. ac_cv_lib_pthread_pthread_kill=yes
  10519. else
  10520. echo "$as_me: failed program was:" >&5
  10521. sed 's/^/| /' conftest.$ac_ext >&5
  10522. ac_cv_lib_pthread_pthread_kill=no
  10523. fi
  10524. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10525. conftest$ac_exeext conftest.$ac_ext
  10526. LIBS=$ac_check_lib_save_LIBS
  10527. fi
  10528. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10529. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10530. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10531. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10532. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10533. # Therefore pthread_in_use() needs to actually try to create a
  10534. # thread: pthread_create from libc will fail, whereas
  10535. # pthread_create will actually create a thread.
  10536. case "$host_os" in
  10537. solaris* | hpux*)
  10538. cat >>confdefs.h <<\_ACEOF
  10539. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10540. _ACEOF
  10541. esac
  10542. fi
  10543. else
  10544. # Some library is needed. Try libpthread and libc_r.
  10545. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10546. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10547. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10548. echo $ECHO_N "(cached) $ECHO_C" >&6
  10549. else
  10550. ac_check_lib_save_LIBS=$LIBS
  10551. LIBS="-lpthread $LIBS"
  10552. cat >conftest.$ac_ext <<_ACEOF
  10553. /* confdefs.h. */
  10554. _ACEOF
  10555. cat confdefs.h >>conftest.$ac_ext
  10556. cat >>conftest.$ac_ext <<_ACEOF
  10557. /* end confdefs.h. */
  10558. /* Override any GCC internal prototype to avoid an error.
  10559. Use char because int might match the return type of a GCC
  10560. builtin and then its argument prototype would still apply. */
  10561. #ifdef __cplusplus
  10562. extern "C"
  10563. #endif
  10564. char pthread_kill ();
  10565. int
  10566. main ()
  10567. {
  10568. return pthread_kill ();
  10569. ;
  10570. return 0;
  10571. }
  10572. _ACEOF
  10573. rm -f conftest.$ac_objext conftest$ac_exeext
  10574. if { (ac_try="$ac_link"
  10575. case "(($ac_try" in
  10576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10577. *) ac_try_echo=$ac_try;;
  10578. esac
  10579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10580. (eval "$ac_link") 2>conftest.er1
  10581. ac_status=$?
  10582. grep -v '^ *+' conftest.er1 >conftest.err
  10583. rm -f conftest.er1
  10584. cat conftest.err >&5
  10585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10586. (exit $ac_status); } && {
  10587. test -z "$ac_cxx_werror_flag" ||
  10588. test ! -s conftest.err
  10589. } && test -s conftest$ac_exeext &&
  10590. $as_test_x conftest$ac_exeext; then
  10591. ac_cv_lib_pthread_pthread_kill=yes
  10592. else
  10593. echo "$as_me: failed program was:" >&5
  10594. sed 's/^/| /' conftest.$ac_ext >&5
  10595. ac_cv_lib_pthread_pthread_kill=no
  10596. fi
  10597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10598. conftest$ac_exeext conftest.$ac_ext
  10599. LIBS=$ac_check_lib_save_LIBS
  10600. fi
  10601. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10602. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10603. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10604. gl_have_pthread=yes
  10605. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10606. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10607. fi
  10608. if test -z "$gl_have_pthread"; then
  10609. # For FreeBSD 4.
  10610. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10611. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10612. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10613. echo $ECHO_N "(cached) $ECHO_C" >&6
  10614. else
  10615. ac_check_lib_save_LIBS=$LIBS
  10616. LIBS="-lc_r $LIBS"
  10617. cat >conftest.$ac_ext <<_ACEOF
  10618. /* confdefs.h. */
  10619. _ACEOF
  10620. cat confdefs.h >>conftest.$ac_ext
  10621. cat >>conftest.$ac_ext <<_ACEOF
  10622. /* end confdefs.h. */
  10623. /* Override any GCC internal prototype to avoid an error.
  10624. Use char because int might match the return type of a GCC
  10625. builtin and then its argument prototype would still apply. */
  10626. #ifdef __cplusplus
  10627. extern "C"
  10628. #endif
  10629. char pthread_kill ();
  10630. int
  10631. main ()
  10632. {
  10633. return pthread_kill ();
  10634. ;
  10635. return 0;
  10636. }
  10637. _ACEOF
  10638. rm -f conftest.$ac_objext conftest$ac_exeext
  10639. if { (ac_try="$ac_link"
  10640. case "(($ac_try" in
  10641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10642. *) ac_try_echo=$ac_try;;
  10643. esac
  10644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10645. (eval "$ac_link") 2>conftest.er1
  10646. ac_status=$?
  10647. grep -v '^ *+' conftest.er1 >conftest.err
  10648. rm -f conftest.er1
  10649. cat conftest.err >&5
  10650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10651. (exit $ac_status); } && {
  10652. test -z "$ac_cxx_werror_flag" ||
  10653. test ! -s conftest.err
  10654. } && test -s conftest$ac_exeext &&
  10655. $as_test_x conftest$ac_exeext; then
  10656. ac_cv_lib_c_r_pthread_kill=yes
  10657. else
  10658. echo "$as_me: failed program was:" >&5
  10659. sed 's/^/| /' conftest.$ac_ext >&5
  10660. ac_cv_lib_c_r_pthread_kill=no
  10661. fi
  10662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10663. conftest$ac_exeext conftest.$ac_ext
  10664. LIBS=$ac_check_lib_save_LIBS
  10665. fi
  10666. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10667. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10668. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10669. gl_have_pthread=yes
  10670. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10671. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10672. fi
  10673. fi
  10674. fi
  10675. if test -n "$gl_have_pthread"; then
  10676. gl_threads_api=posix
  10677. cat >>confdefs.h <<\_ACEOF
  10678. #define USE_POSIX_THREADS 1
  10679. _ACEOF
  10680. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10681. if test $gl_have_weak = yes; then
  10682. cat >>confdefs.h <<\_ACEOF
  10683. #define USE_POSIX_THREADS_WEAK 1
  10684. _ACEOF
  10685. LIBTHREAD=
  10686. LTLIBTHREAD=
  10687. fi
  10688. fi
  10689. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10690. # pthread_rwlock_* functions.
  10691. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10692. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10693. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10694. echo $ECHO_N "(cached) $ECHO_C" >&6
  10695. else
  10696. cat >conftest.$ac_ext <<_ACEOF
  10697. /* confdefs.h. */
  10698. _ACEOF
  10699. cat confdefs.h >>conftest.$ac_ext
  10700. cat >>conftest.$ac_ext <<_ACEOF
  10701. /* end confdefs.h. */
  10702. #include <pthread.h>
  10703. typedef pthread_rwlock_t ac__type_new_;
  10704. int
  10705. main ()
  10706. {
  10707. if ((ac__type_new_ *) 0)
  10708. return 0;
  10709. if (sizeof (ac__type_new_))
  10710. return 0;
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. rm -f conftest.$ac_objext
  10716. if { (ac_try="$ac_compile"
  10717. case "(($ac_try" in
  10718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10719. *) ac_try_echo=$ac_try;;
  10720. esac
  10721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10722. (eval "$ac_compile") 2>conftest.er1
  10723. ac_status=$?
  10724. grep -v '^ *+' conftest.er1 >conftest.err
  10725. rm -f conftest.er1
  10726. cat conftest.err >&5
  10727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10728. (exit $ac_status); } && {
  10729. test -z "$ac_cxx_werror_flag" ||
  10730. test ! -s conftest.err
  10731. } && test -s conftest.$ac_objext; then
  10732. ac_cv_type_pthread_rwlock_t=yes
  10733. else
  10734. echo "$as_me: failed program was:" >&5
  10735. sed 's/^/| /' conftest.$ac_ext >&5
  10736. ac_cv_type_pthread_rwlock_t=no
  10737. fi
  10738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10739. fi
  10740. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10741. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10742. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10743. cat >>confdefs.h <<\_ACEOF
  10744. #define HAVE_PTHREAD_RWLOCK 1
  10745. _ACEOF
  10746. fi
  10747. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10748. cat >conftest.$ac_ext <<_ACEOF
  10749. /* confdefs.h. */
  10750. _ACEOF
  10751. cat confdefs.h >>conftest.$ac_ext
  10752. cat >>conftest.$ac_ext <<_ACEOF
  10753. /* end confdefs.h. */
  10754. #include <pthread.h>
  10755. int
  10756. main ()
  10757. {
  10758. #if __FreeBSD__ == 4
  10759. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10760. #else
  10761. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10762. return !x;
  10763. #endif
  10764. ;
  10765. return 0;
  10766. }
  10767. _ACEOF
  10768. rm -f conftest.$ac_objext
  10769. if { (ac_try="$ac_compile"
  10770. case "(($ac_try" in
  10771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10772. *) ac_try_echo=$ac_try;;
  10773. esac
  10774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10775. (eval "$ac_compile") 2>conftest.er1
  10776. ac_status=$?
  10777. grep -v '^ *+' conftest.er1 >conftest.err
  10778. rm -f conftest.er1
  10779. cat conftest.err >&5
  10780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10781. (exit $ac_status); } && {
  10782. test -z "$ac_cxx_werror_flag" ||
  10783. test ! -s conftest.err
  10784. } && test -s conftest.$ac_objext; then
  10785. cat >>confdefs.h <<\_ACEOF
  10786. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10787. _ACEOF
  10788. else
  10789. echo "$as_me: failed program was:" >&5
  10790. sed 's/^/| /' conftest.$ac_ext >&5
  10791. fi
  10792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10793. fi
  10794. fi
  10795. fi
  10796. if test -z "$gl_have_pthread"; then
  10797. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10798. gl_have_solaristhread=
  10799. gl_save_LIBS="$LIBS"
  10800. LIBS="$LIBS -lthread"
  10801. cat >conftest.$ac_ext <<_ACEOF
  10802. /* confdefs.h. */
  10803. _ACEOF
  10804. cat confdefs.h >>conftest.$ac_ext
  10805. cat >>conftest.$ac_ext <<_ACEOF
  10806. /* end confdefs.h. */
  10807. #include <thread.h>
  10808. #include <synch.h>
  10809. int
  10810. main ()
  10811. {
  10812. thr_self();
  10813. ;
  10814. return 0;
  10815. }
  10816. _ACEOF
  10817. rm -f conftest.$ac_objext conftest$ac_exeext
  10818. if { (ac_try="$ac_link"
  10819. case "(($ac_try" in
  10820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10821. *) ac_try_echo=$ac_try;;
  10822. esac
  10823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10824. (eval "$ac_link") 2>conftest.er1
  10825. ac_status=$?
  10826. grep -v '^ *+' conftest.er1 >conftest.err
  10827. rm -f conftest.er1
  10828. cat conftest.err >&5
  10829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10830. (exit $ac_status); } && {
  10831. test -z "$ac_cxx_werror_flag" ||
  10832. test ! -s conftest.err
  10833. } && test -s conftest$ac_exeext &&
  10834. $as_test_x conftest$ac_exeext; then
  10835. gl_have_solaristhread=yes
  10836. else
  10837. echo "$as_me: failed program was:" >&5
  10838. sed 's/^/| /' conftest.$ac_ext >&5
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10841. conftest$ac_exeext conftest.$ac_ext
  10842. LIBS="$gl_save_LIBS"
  10843. if test -n "$gl_have_solaristhread"; then
  10844. gl_threads_api=solaris
  10845. LIBTHREAD=-lthread
  10846. LTLIBTHREAD=-lthread
  10847. LIBMULTITHREAD="$LIBTHREAD"
  10848. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10849. cat >>confdefs.h <<\_ACEOF
  10850. #define USE_SOLARIS_THREADS 1
  10851. _ACEOF
  10852. if test $gl_have_weak = yes; then
  10853. cat >>confdefs.h <<\_ACEOF
  10854. #define USE_SOLARIS_THREADS_WEAK 1
  10855. _ACEOF
  10856. LIBTHREAD=
  10857. LTLIBTHREAD=
  10858. fi
  10859. fi
  10860. fi
  10861. fi
  10862. if test "$gl_use_threads" = pth; then
  10863. gl_save_CPPFLAGS="$CPPFLAGS"
  10864. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10865. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10866. if test "${ac_cv_libpth_libs+set}" = set; then
  10867. echo $ECHO_N "(cached) $ECHO_C" >&6
  10868. else
  10869. use_additional=yes
  10870. acl_save_prefix="$prefix"
  10871. prefix="$acl_final_prefix"
  10872. acl_save_exec_prefix="$exec_prefix"
  10873. exec_prefix="$acl_final_exec_prefix"
  10874. eval additional_includedir=\"$includedir\"
  10875. eval additional_libdir=\"$libdir\"
  10876. exec_prefix="$acl_save_exec_prefix"
  10877. prefix="$acl_save_prefix"
  10878. # Check whether --with-libpth-prefix was given.
  10879. if test "${with_libpth_prefix+set}" = set; then
  10880. withval=$with_libpth_prefix;
  10881. if test "X$withval" = "Xno"; then
  10882. use_additional=no
  10883. else
  10884. if test "X$withval" = "X"; then
  10885. acl_save_prefix="$prefix"
  10886. prefix="$acl_final_prefix"
  10887. acl_save_exec_prefix="$exec_prefix"
  10888. exec_prefix="$acl_final_exec_prefix"
  10889. eval additional_includedir=\"$includedir\"
  10890. eval additional_libdir=\"$libdir\"
  10891. exec_prefix="$acl_save_exec_prefix"
  10892. prefix="$acl_save_prefix"
  10893. else
  10894. additional_includedir="$withval/include"
  10895. additional_libdir="$withval/$acl_libdirstem"
  10896. fi
  10897. fi
  10898. fi
  10899. LIBPTH=
  10900. LTLIBPTH=
  10901. INCPTH=
  10902. LIBPTH_PREFIX=
  10903. rpathdirs=
  10904. ltrpathdirs=
  10905. names_already_handled=
  10906. names_next_round='pth '
  10907. while test -n "$names_next_round"; do
  10908. names_this_round="$names_next_round"
  10909. names_next_round=
  10910. for name in $names_this_round; do
  10911. already_handled=
  10912. for n in $names_already_handled; do
  10913. if test "$n" = "$name"; then
  10914. already_handled=yes
  10915. break
  10916. fi
  10917. done
  10918. if test -z "$already_handled"; then
  10919. names_already_handled="$names_already_handled $name"
  10920. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10921. eval value=\"\$HAVE_LIB$uppername\"
  10922. if test -n "$value"; then
  10923. if test "$value" = yes; then
  10924. eval value=\"\$LIB$uppername\"
  10925. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10926. eval value=\"\$LTLIB$uppername\"
  10927. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10928. else
  10929. :
  10930. fi
  10931. else
  10932. found_dir=
  10933. found_la=
  10934. found_so=
  10935. found_a=
  10936. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10937. if test -n "$acl_shlibext"; then
  10938. shrext=".$acl_shlibext" # typically: shrext=.so
  10939. else
  10940. shrext=
  10941. fi
  10942. if test $use_additional = yes; then
  10943. dir="$additional_libdir"
  10944. if test -n "$acl_shlibext"; then
  10945. if test -f "$dir/$libname$shrext"; then
  10946. found_dir="$dir"
  10947. found_so="$dir/$libname$shrext"
  10948. else
  10949. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10950. ver=`(cd "$dir" && \
  10951. for f in "$libname$shrext".*; do echo "$f"; done \
  10952. | sed -e "s,^$libname$shrext\\\\.,," \
  10953. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10954. | sed 1q ) 2>/dev/null`
  10955. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10956. found_dir="$dir"
  10957. found_so="$dir/$libname$shrext.$ver"
  10958. fi
  10959. else
  10960. eval library_names=\"$acl_library_names_spec\"
  10961. for f in $library_names; do
  10962. if test -f "$dir/$f"; then
  10963. found_dir="$dir"
  10964. found_so="$dir/$f"
  10965. break
  10966. fi
  10967. done
  10968. fi
  10969. fi
  10970. fi
  10971. if test "X$found_dir" = "X"; then
  10972. if test -f "$dir/$libname.$acl_libext"; then
  10973. found_dir="$dir"
  10974. found_a="$dir/$libname.$acl_libext"
  10975. fi
  10976. fi
  10977. if test "X$found_dir" != "X"; then
  10978. if test -f "$dir/$libname.la"; then
  10979. found_la="$dir/$libname.la"
  10980. fi
  10981. fi
  10982. fi
  10983. if test "X$found_dir" = "X"; then
  10984. for x in $LDFLAGS $LTLIBPTH; do
  10985. acl_save_prefix="$prefix"
  10986. prefix="$acl_final_prefix"
  10987. acl_save_exec_prefix="$exec_prefix"
  10988. exec_prefix="$acl_final_exec_prefix"
  10989. eval x=\"$x\"
  10990. exec_prefix="$acl_save_exec_prefix"
  10991. prefix="$acl_save_prefix"
  10992. case "$x" in
  10993. -L*)
  10994. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10995. if test -n "$acl_shlibext"; then
  10996. if test -f "$dir/$libname$shrext"; then
  10997. found_dir="$dir"
  10998. found_so="$dir/$libname$shrext"
  10999. else
  11000. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11001. ver=`(cd "$dir" && \
  11002. for f in "$libname$shrext".*; do echo "$f"; done \
  11003. | sed -e "s,^$libname$shrext\\\\.,," \
  11004. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11005. | sed 1q ) 2>/dev/null`
  11006. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11007. found_dir="$dir"
  11008. found_so="$dir/$libname$shrext.$ver"
  11009. fi
  11010. else
  11011. eval library_names=\"$acl_library_names_spec\"
  11012. for f in $library_names; do
  11013. if test -f "$dir/$f"; then
  11014. found_dir="$dir"
  11015. found_so="$dir/$f"
  11016. break
  11017. fi
  11018. done
  11019. fi
  11020. fi
  11021. fi
  11022. if test "X$found_dir" = "X"; then
  11023. if test -f "$dir/$libname.$acl_libext"; then
  11024. found_dir="$dir"
  11025. found_a="$dir/$libname.$acl_libext"
  11026. fi
  11027. fi
  11028. if test "X$found_dir" != "X"; then
  11029. if test -f "$dir/$libname.la"; then
  11030. found_la="$dir/$libname.la"
  11031. fi
  11032. fi
  11033. ;;
  11034. esac
  11035. if test "X$found_dir" != "X"; then
  11036. break
  11037. fi
  11038. done
  11039. fi
  11040. if test "X$found_dir" != "X"; then
  11041. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11042. if test "X$found_so" != "X"; then
  11043. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11044. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11045. else
  11046. haveit=
  11047. for x in $ltrpathdirs; do
  11048. if test "X$x" = "X$found_dir"; then
  11049. haveit=yes
  11050. break
  11051. fi
  11052. done
  11053. if test -z "$haveit"; then
  11054. ltrpathdirs="$ltrpathdirs $found_dir"
  11055. fi
  11056. if test "$acl_hardcode_direct" = yes; then
  11057. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11058. else
  11059. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11060. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11061. haveit=
  11062. for x in $rpathdirs; do
  11063. if test "X$x" = "X$found_dir"; then
  11064. haveit=yes
  11065. break
  11066. fi
  11067. done
  11068. if test -z "$haveit"; then
  11069. rpathdirs="$rpathdirs $found_dir"
  11070. fi
  11071. else
  11072. haveit=
  11073. for x in $LDFLAGS $LIBPTH; do
  11074. acl_save_prefix="$prefix"
  11075. prefix="$acl_final_prefix"
  11076. acl_save_exec_prefix="$exec_prefix"
  11077. exec_prefix="$acl_final_exec_prefix"
  11078. eval x=\"$x\"
  11079. exec_prefix="$acl_save_exec_prefix"
  11080. prefix="$acl_save_prefix"
  11081. if test "X$x" = "X-L$found_dir"; then
  11082. haveit=yes
  11083. break
  11084. fi
  11085. done
  11086. if test -z "$haveit"; then
  11087. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11088. fi
  11089. if test "$acl_hardcode_minus_L" != no; then
  11090. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11091. else
  11092. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11093. fi
  11094. fi
  11095. fi
  11096. fi
  11097. else
  11098. if test "X$found_a" != "X"; then
  11099. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11100. else
  11101. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11102. fi
  11103. fi
  11104. additional_includedir=
  11105. case "$found_dir" in
  11106. */$acl_libdirstem | */$acl_libdirstem/)
  11107. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11108. LIBPTH_PREFIX="$basedir"
  11109. additional_includedir="$basedir/include"
  11110. ;;
  11111. esac
  11112. if test "X$additional_includedir" != "X"; then
  11113. if test "X$additional_includedir" != "X/usr/include"; then
  11114. haveit=
  11115. if test "X$additional_includedir" = "X/usr/local/include"; then
  11116. if test -n "$GCC"; then
  11117. case $host_os in
  11118. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11119. esac
  11120. fi
  11121. fi
  11122. if test -z "$haveit"; then
  11123. for x in $CPPFLAGS $INCPTH; do
  11124. acl_save_prefix="$prefix"
  11125. prefix="$acl_final_prefix"
  11126. acl_save_exec_prefix="$exec_prefix"
  11127. exec_prefix="$acl_final_exec_prefix"
  11128. eval x=\"$x\"
  11129. exec_prefix="$acl_save_exec_prefix"
  11130. prefix="$acl_save_prefix"
  11131. if test "X$x" = "X-I$additional_includedir"; then
  11132. haveit=yes
  11133. break
  11134. fi
  11135. done
  11136. if test -z "$haveit"; then
  11137. if test -d "$additional_includedir"; then
  11138. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11139. fi
  11140. fi
  11141. fi
  11142. fi
  11143. fi
  11144. if test -n "$found_la"; then
  11145. save_libdir="$libdir"
  11146. case "$found_la" in
  11147. */* | *\\*) . "$found_la" ;;
  11148. *) . "./$found_la" ;;
  11149. esac
  11150. libdir="$save_libdir"
  11151. for dep in $dependency_libs; do
  11152. case "$dep" in
  11153. -L*)
  11154. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11155. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11156. haveit=
  11157. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11158. if test -n "$GCC"; then
  11159. case $host_os in
  11160. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11161. esac
  11162. fi
  11163. fi
  11164. if test -z "$haveit"; then
  11165. haveit=
  11166. for x in $LDFLAGS $LIBPTH; do
  11167. acl_save_prefix="$prefix"
  11168. prefix="$acl_final_prefix"
  11169. acl_save_exec_prefix="$exec_prefix"
  11170. exec_prefix="$acl_final_exec_prefix"
  11171. eval x=\"$x\"
  11172. exec_prefix="$acl_save_exec_prefix"
  11173. prefix="$acl_save_prefix"
  11174. if test "X$x" = "X-L$additional_libdir"; then
  11175. haveit=yes
  11176. break
  11177. fi
  11178. done
  11179. if test -z "$haveit"; then
  11180. if test -d "$additional_libdir"; then
  11181. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11182. fi
  11183. fi
  11184. haveit=
  11185. for x in $LDFLAGS $LTLIBPTH; do
  11186. acl_save_prefix="$prefix"
  11187. prefix="$acl_final_prefix"
  11188. acl_save_exec_prefix="$exec_prefix"
  11189. exec_prefix="$acl_final_exec_prefix"
  11190. eval x=\"$x\"
  11191. exec_prefix="$acl_save_exec_prefix"
  11192. prefix="$acl_save_prefix"
  11193. if test "X$x" = "X-L$additional_libdir"; then
  11194. haveit=yes
  11195. break
  11196. fi
  11197. done
  11198. if test -z "$haveit"; then
  11199. if test -d "$additional_libdir"; then
  11200. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11201. fi
  11202. fi
  11203. fi
  11204. fi
  11205. ;;
  11206. -R*)
  11207. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11208. if test "$enable_rpath" != no; then
  11209. haveit=
  11210. for x in $rpathdirs; do
  11211. if test "X$x" = "X$dir"; then
  11212. haveit=yes
  11213. break
  11214. fi
  11215. done
  11216. if test -z "$haveit"; then
  11217. rpathdirs="$rpathdirs $dir"
  11218. fi
  11219. haveit=
  11220. for x in $ltrpathdirs; do
  11221. if test "X$x" = "X$dir"; then
  11222. haveit=yes
  11223. break
  11224. fi
  11225. done
  11226. if test -z "$haveit"; then
  11227. ltrpathdirs="$ltrpathdirs $dir"
  11228. fi
  11229. fi
  11230. ;;
  11231. -l*)
  11232. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11233. ;;
  11234. *.la)
  11235. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11236. ;;
  11237. *)
  11238. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11239. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11240. ;;
  11241. esac
  11242. done
  11243. fi
  11244. else
  11245. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11246. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11247. fi
  11248. fi
  11249. fi
  11250. done
  11251. done
  11252. if test "X$rpathdirs" != "X"; then
  11253. if test -n "$acl_hardcode_libdir_separator"; then
  11254. alldirs=
  11255. for found_dir in $rpathdirs; do
  11256. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11257. done
  11258. acl_save_libdir="$libdir"
  11259. libdir="$alldirs"
  11260. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11261. libdir="$acl_save_libdir"
  11262. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11263. else
  11264. for found_dir in $rpathdirs; do
  11265. acl_save_libdir="$libdir"
  11266. libdir="$found_dir"
  11267. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11268. libdir="$acl_save_libdir"
  11269. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11270. done
  11271. fi
  11272. fi
  11273. if test "X$ltrpathdirs" != "X"; then
  11274. for found_dir in $ltrpathdirs; do
  11275. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11276. done
  11277. fi
  11278. ac_cv_libpth_libs="$LIBPTH"
  11279. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11280. ac_cv_libpth_cppflags="$INCPTH"
  11281. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11282. fi
  11283. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11284. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11285. LIBPTH="$ac_cv_libpth_libs"
  11286. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11287. INCPTH="$ac_cv_libpth_cppflags"
  11288. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11289. for element in $INCPTH; do
  11290. haveit=
  11291. for x in $CPPFLAGS; do
  11292. acl_save_prefix="$prefix"
  11293. prefix="$acl_final_prefix"
  11294. acl_save_exec_prefix="$exec_prefix"
  11295. exec_prefix="$acl_final_exec_prefix"
  11296. eval x=\"$x\"
  11297. exec_prefix="$acl_save_exec_prefix"
  11298. prefix="$acl_save_prefix"
  11299. if test "X$x" = "X$element"; then
  11300. haveit=yes
  11301. break
  11302. fi
  11303. done
  11304. if test -z "$haveit"; then
  11305. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11306. fi
  11307. done
  11308. HAVE_LIBPTH=yes
  11309. gl_have_pth=
  11310. gl_save_LIBS="$LIBS"
  11311. LIBS="$LIBS -lpth"
  11312. cat >conftest.$ac_ext <<_ACEOF
  11313. /* confdefs.h. */
  11314. _ACEOF
  11315. cat confdefs.h >>conftest.$ac_ext
  11316. cat >>conftest.$ac_ext <<_ACEOF
  11317. /* end confdefs.h. */
  11318. #include <pth.h>
  11319. int
  11320. main ()
  11321. {
  11322. pth_self();
  11323. ;
  11324. return 0;
  11325. }
  11326. _ACEOF
  11327. rm -f conftest.$ac_objext conftest$ac_exeext
  11328. if { (ac_try="$ac_link"
  11329. case "(($ac_try" in
  11330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11331. *) ac_try_echo=$ac_try;;
  11332. esac
  11333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11334. (eval "$ac_link") 2>conftest.er1
  11335. ac_status=$?
  11336. grep -v '^ *+' conftest.er1 >conftest.err
  11337. rm -f conftest.er1
  11338. cat conftest.err >&5
  11339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11340. (exit $ac_status); } && {
  11341. test -z "$ac_cxx_werror_flag" ||
  11342. test ! -s conftest.err
  11343. } && test -s conftest$ac_exeext &&
  11344. $as_test_x conftest$ac_exeext; then
  11345. gl_have_pth=yes
  11346. else
  11347. echo "$as_me: failed program was:" >&5
  11348. sed 's/^/| /' conftest.$ac_ext >&5
  11349. fi
  11350. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11351. conftest$ac_exeext conftest.$ac_ext
  11352. LIBS="$gl_save_LIBS"
  11353. if test -n "$gl_have_pth"; then
  11354. gl_threads_api=pth
  11355. LIBTHREAD="$LIBPTH"
  11356. LTLIBTHREAD="$LTLIBPTH"
  11357. LIBMULTITHREAD="$LIBTHREAD"
  11358. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11359. cat >>confdefs.h <<\_ACEOF
  11360. #define USE_PTH_THREADS 1
  11361. _ACEOF
  11362. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11363. if test $gl_have_weak = yes; then
  11364. cat >>confdefs.h <<\_ACEOF
  11365. #define USE_PTH_THREADS_WEAK 1
  11366. _ACEOF
  11367. LIBTHREAD=
  11368. LTLIBTHREAD=
  11369. fi
  11370. fi
  11371. else
  11372. CPPFLAGS="$gl_save_CPPFLAGS"
  11373. fi
  11374. fi
  11375. if test -z "$gl_have_pthread"; then
  11376. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11377. if { case "$host_os" in
  11378. mingw*) true;;
  11379. *) false;;
  11380. esac
  11381. }; then
  11382. gl_threads_api=win32
  11383. cat >>confdefs.h <<\_ACEOF
  11384. #define USE_WIN32_THREADS 1
  11385. _ACEOF
  11386. fi
  11387. fi
  11388. fi
  11389. fi
  11390. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11391. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11392. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11393. echo "${ECHO_T}$gl_threads_api" >&6; }
  11394. use_additional=yes
  11395. acl_save_prefix="$prefix"
  11396. prefix="$acl_final_prefix"
  11397. acl_save_exec_prefix="$exec_prefix"
  11398. exec_prefix="$acl_final_exec_prefix"
  11399. eval additional_includedir=\"$includedir\"
  11400. eval additional_libdir=\"$libdir\"
  11401. exec_prefix="$acl_save_exec_prefix"
  11402. prefix="$acl_save_prefix"
  11403. # Check whether --with-libiconv-prefix was given.
  11404. if test "${with_libiconv_prefix+set}" = set; then
  11405. withval=$with_libiconv_prefix;
  11406. if test "X$withval" = "Xno"; then
  11407. use_additional=no
  11408. else
  11409. if test "X$withval" = "X"; then
  11410. acl_save_prefix="$prefix"
  11411. prefix="$acl_final_prefix"
  11412. acl_save_exec_prefix="$exec_prefix"
  11413. exec_prefix="$acl_final_exec_prefix"
  11414. eval additional_includedir=\"$includedir\"
  11415. eval additional_libdir=\"$libdir\"
  11416. exec_prefix="$acl_save_exec_prefix"
  11417. prefix="$acl_save_prefix"
  11418. else
  11419. additional_includedir="$withval/include"
  11420. additional_libdir="$withval/$acl_libdirstem"
  11421. fi
  11422. fi
  11423. fi
  11424. LIBICONV=
  11425. LTLIBICONV=
  11426. INCICONV=
  11427. LIBICONV_PREFIX=
  11428. rpathdirs=
  11429. ltrpathdirs=
  11430. names_already_handled=
  11431. names_next_round='iconv '
  11432. while test -n "$names_next_round"; do
  11433. names_this_round="$names_next_round"
  11434. names_next_round=
  11435. for name in $names_this_round; do
  11436. already_handled=
  11437. for n in $names_already_handled; do
  11438. if test "$n" = "$name"; then
  11439. already_handled=yes
  11440. break
  11441. fi
  11442. done
  11443. if test -z "$already_handled"; then
  11444. names_already_handled="$names_already_handled $name"
  11445. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11446. eval value=\"\$HAVE_LIB$uppername\"
  11447. if test -n "$value"; then
  11448. if test "$value" = yes; then
  11449. eval value=\"\$LIB$uppername\"
  11450. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11451. eval value=\"\$LTLIB$uppername\"
  11452. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11453. else
  11454. :
  11455. fi
  11456. else
  11457. found_dir=
  11458. found_la=
  11459. found_so=
  11460. found_a=
  11461. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11462. if test -n "$acl_shlibext"; then
  11463. shrext=".$acl_shlibext" # typically: shrext=.so
  11464. else
  11465. shrext=
  11466. fi
  11467. if test $use_additional = yes; then
  11468. dir="$additional_libdir"
  11469. if test -n "$acl_shlibext"; then
  11470. if test -f "$dir/$libname$shrext"; then
  11471. found_dir="$dir"
  11472. found_so="$dir/$libname$shrext"
  11473. else
  11474. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11475. ver=`(cd "$dir" && \
  11476. for f in "$libname$shrext".*; do echo "$f"; done \
  11477. | sed -e "s,^$libname$shrext\\\\.,," \
  11478. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11479. | sed 1q ) 2>/dev/null`
  11480. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11481. found_dir="$dir"
  11482. found_so="$dir/$libname$shrext.$ver"
  11483. fi
  11484. else
  11485. eval library_names=\"$acl_library_names_spec\"
  11486. for f in $library_names; do
  11487. if test -f "$dir/$f"; then
  11488. found_dir="$dir"
  11489. found_so="$dir/$f"
  11490. break
  11491. fi
  11492. done
  11493. fi
  11494. fi
  11495. fi
  11496. if test "X$found_dir" = "X"; then
  11497. if test -f "$dir/$libname.$acl_libext"; then
  11498. found_dir="$dir"
  11499. found_a="$dir/$libname.$acl_libext"
  11500. fi
  11501. fi
  11502. if test "X$found_dir" != "X"; then
  11503. if test -f "$dir/$libname.la"; then
  11504. found_la="$dir/$libname.la"
  11505. fi
  11506. fi
  11507. fi
  11508. if test "X$found_dir" = "X"; then
  11509. for x in $LDFLAGS $LTLIBICONV; do
  11510. acl_save_prefix="$prefix"
  11511. prefix="$acl_final_prefix"
  11512. acl_save_exec_prefix="$exec_prefix"
  11513. exec_prefix="$acl_final_exec_prefix"
  11514. eval x=\"$x\"
  11515. exec_prefix="$acl_save_exec_prefix"
  11516. prefix="$acl_save_prefix"
  11517. case "$x" in
  11518. -L*)
  11519. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11520. if test -n "$acl_shlibext"; then
  11521. if test -f "$dir/$libname$shrext"; then
  11522. found_dir="$dir"
  11523. found_so="$dir/$libname$shrext"
  11524. else
  11525. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11526. ver=`(cd "$dir" && \
  11527. for f in "$libname$shrext".*; do echo "$f"; done \
  11528. | sed -e "s,^$libname$shrext\\\\.,," \
  11529. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11530. | sed 1q ) 2>/dev/null`
  11531. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11532. found_dir="$dir"
  11533. found_so="$dir/$libname$shrext.$ver"
  11534. fi
  11535. else
  11536. eval library_names=\"$acl_library_names_spec\"
  11537. for f in $library_names; do
  11538. if test -f "$dir/$f"; then
  11539. found_dir="$dir"
  11540. found_so="$dir/$f"
  11541. break
  11542. fi
  11543. done
  11544. fi
  11545. fi
  11546. fi
  11547. if test "X$found_dir" = "X"; then
  11548. if test -f "$dir/$libname.$acl_libext"; then
  11549. found_dir="$dir"
  11550. found_a="$dir/$libname.$acl_libext"
  11551. fi
  11552. fi
  11553. if test "X$found_dir" != "X"; then
  11554. if test -f "$dir/$libname.la"; then
  11555. found_la="$dir/$libname.la"
  11556. fi
  11557. fi
  11558. ;;
  11559. esac
  11560. if test "X$found_dir" != "X"; then
  11561. break
  11562. fi
  11563. done
  11564. fi
  11565. if test "X$found_dir" != "X"; then
  11566. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11567. if test "X$found_so" != "X"; then
  11568. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11569. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11570. else
  11571. haveit=
  11572. for x in $ltrpathdirs; do
  11573. if test "X$x" = "X$found_dir"; then
  11574. haveit=yes
  11575. break
  11576. fi
  11577. done
  11578. if test -z "$haveit"; then
  11579. ltrpathdirs="$ltrpathdirs $found_dir"
  11580. fi
  11581. if test "$acl_hardcode_direct" = yes; then
  11582. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11583. else
  11584. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11585. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11586. haveit=
  11587. for x in $rpathdirs; do
  11588. if test "X$x" = "X$found_dir"; then
  11589. haveit=yes
  11590. break
  11591. fi
  11592. done
  11593. if test -z "$haveit"; then
  11594. rpathdirs="$rpathdirs $found_dir"
  11595. fi
  11596. else
  11597. haveit=
  11598. for x in $LDFLAGS $LIBICONV; do
  11599. acl_save_prefix="$prefix"
  11600. prefix="$acl_final_prefix"
  11601. acl_save_exec_prefix="$exec_prefix"
  11602. exec_prefix="$acl_final_exec_prefix"
  11603. eval x=\"$x\"
  11604. exec_prefix="$acl_save_exec_prefix"
  11605. prefix="$acl_save_prefix"
  11606. if test "X$x" = "X-L$found_dir"; then
  11607. haveit=yes
  11608. break
  11609. fi
  11610. done
  11611. if test -z "$haveit"; then
  11612. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11613. fi
  11614. if test "$acl_hardcode_minus_L" != no; then
  11615. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11616. else
  11617. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11618. fi
  11619. fi
  11620. fi
  11621. fi
  11622. else
  11623. if test "X$found_a" != "X"; then
  11624. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11625. else
  11626. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11627. fi
  11628. fi
  11629. additional_includedir=
  11630. case "$found_dir" in
  11631. */$acl_libdirstem | */$acl_libdirstem/)
  11632. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11633. LIBICONV_PREFIX="$basedir"
  11634. additional_includedir="$basedir/include"
  11635. ;;
  11636. esac
  11637. if test "X$additional_includedir" != "X"; then
  11638. if test "X$additional_includedir" != "X/usr/include"; then
  11639. haveit=
  11640. if test "X$additional_includedir" = "X/usr/local/include"; then
  11641. if test -n "$GCC"; then
  11642. case $host_os in
  11643. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11644. esac
  11645. fi
  11646. fi
  11647. if test -z "$haveit"; then
  11648. for x in $CPPFLAGS $INCICONV; do
  11649. acl_save_prefix="$prefix"
  11650. prefix="$acl_final_prefix"
  11651. acl_save_exec_prefix="$exec_prefix"
  11652. exec_prefix="$acl_final_exec_prefix"
  11653. eval x=\"$x\"
  11654. exec_prefix="$acl_save_exec_prefix"
  11655. prefix="$acl_save_prefix"
  11656. if test "X$x" = "X-I$additional_includedir"; then
  11657. haveit=yes
  11658. break
  11659. fi
  11660. done
  11661. if test -z "$haveit"; then
  11662. if test -d "$additional_includedir"; then
  11663. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11664. fi
  11665. fi
  11666. fi
  11667. fi
  11668. fi
  11669. if test -n "$found_la"; then
  11670. save_libdir="$libdir"
  11671. case "$found_la" in
  11672. */* | *\\*) . "$found_la" ;;
  11673. *) . "./$found_la" ;;
  11674. esac
  11675. libdir="$save_libdir"
  11676. for dep in $dependency_libs; do
  11677. case "$dep" in
  11678. -L*)
  11679. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11680. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11681. haveit=
  11682. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11683. if test -n "$GCC"; then
  11684. case $host_os in
  11685. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11686. esac
  11687. fi
  11688. fi
  11689. if test -z "$haveit"; then
  11690. haveit=
  11691. for x in $LDFLAGS $LIBICONV; do
  11692. acl_save_prefix="$prefix"
  11693. prefix="$acl_final_prefix"
  11694. acl_save_exec_prefix="$exec_prefix"
  11695. exec_prefix="$acl_final_exec_prefix"
  11696. eval x=\"$x\"
  11697. exec_prefix="$acl_save_exec_prefix"
  11698. prefix="$acl_save_prefix"
  11699. if test "X$x" = "X-L$additional_libdir"; then
  11700. haveit=yes
  11701. break
  11702. fi
  11703. done
  11704. if test -z "$haveit"; then
  11705. if test -d "$additional_libdir"; then
  11706. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11707. fi
  11708. fi
  11709. haveit=
  11710. for x in $LDFLAGS $LTLIBICONV; do
  11711. acl_save_prefix="$prefix"
  11712. prefix="$acl_final_prefix"
  11713. acl_save_exec_prefix="$exec_prefix"
  11714. exec_prefix="$acl_final_exec_prefix"
  11715. eval x=\"$x\"
  11716. exec_prefix="$acl_save_exec_prefix"
  11717. prefix="$acl_save_prefix"
  11718. if test "X$x" = "X-L$additional_libdir"; then
  11719. haveit=yes
  11720. break
  11721. fi
  11722. done
  11723. if test -z "$haveit"; then
  11724. if test -d "$additional_libdir"; then
  11725. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11726. fi
  11727. fi
  11728. fi
  11729. fi
  11730. ;;
  11731. -R*)
  11732. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11733. if test "$enable_rpath" != no; then
  11734. haveit=
  11735. for x in $rpathdirs; do
  11736. if test "X$x" = "X$dir"; then
  11737. haveit=yes
  11738. break
  11739. fi
  11740. done
  11741. if test -z "$haveit"; then
  11742. rpathdirs="$rpathdirs $dir"
  11743. fi
  11744. haveit=
  11745. for x in $ltrpathdirs; do
  11746. if test "X$x" = "X$dir"; then
  11747. haveit=yes
  11748. break
  11749. fi
  11750. done
  11751. if test -z "$haveit"; then
  11752. ltrpathdirs="$ltrpathdirs $dir"
  11753. fi
  11754. fi
  11755. ;;
  11756. -l*)
  11757. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11758. ;;
  11759. *.la)
  11760. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11761. ;;
  11762. *)
  11763. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11764. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11765. ;;
  11766. esac
  11767. done
  11768. fi
  11769. else
  11770. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11771. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11772. fi
  11773. fi
  11774. fi
  11775. done
  11776. done
  11777. if test "X$rpathdirs" != "X"; then
  11778. if test -n "$acl_hardcode_libdir_separator"; then
  11779. alldirs=
  11780. for found_dir in $rpathdirs; do
  11781. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11782. done
  11783. acl_save_libdir="$libdir"
  11784. libdir="$alldirs"
  11785. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11786. libdir="$acl_save_libdir"
  11787. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11788. else
  11789. for found_dir in $rpathdirs; do
  11790. acl_save_libdir="$libdir"
  11791. libdir="$found_dir"
  11792. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11793. libdir="$acl_save_libdir"
  11794. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11795. done
  11796. fi
  11797. fi
  11798. if test "X$ltrpathdirs" != "X"; then
  11799. for found_dir in $ltrpathdirs; do
  11800. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11801. done
  11802. fi
  11803. cat >conftest.$ac_ext <<_ACEOF
  11804. /* confdefs.h. */
  11805. _ACEOF
  11806. cat confdefs.h >>conftest.$ac_ext
  11807. cat >>conftest.$ac_ext <<_ACEOF
  11808. /* end confdefs.h. */
  11809. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11810. int
  11811. main ()
  11812. {
  11813. ;
  11814. return 0;
  11815. }
  11816. _ACEOF
  11817. rm -f conftest.$ac_objext conftest$ac_exeext
  11818. if { (ac_try="$ac_link"
  11819. case "(($ac_try" in
  11820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11821. *) ac_try_echo=$ac_try;;
  11822. esac
  11823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11824. (eval "$ac_link") 2>conftest.er1
  11825. ac_status=$?
  11826. grep -v '^ *+' conftest.er1 >conftest.err
  11827. rm -f conftest.er1
  11828. cat conftest.err >&5
  11829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11830. (exit $ac_status); } && {
  11831. test -z "$ac_cxx_werror_flag" ||
  11832. test ! -s conftest.err
  11833. } && test -s conftest$ac_exeext &&
  11834. $as_test_x conftest$ac_exeext; then
  11835. cat >>confdefs.h <<\_ACEOF
  11836. #define HAVE_BUILTIN_EXPECT 1
  11837. _ACEOF
  11838. else
  11839. echo "$as_me: failed program was:" >&5
  11840. sed 's/^/| /' conftest.$ac_ext >&5
  11841. fi
  11842. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11843. conftest$ac_exeext conftest.$ac_ext
  11844. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11845. do
  11846. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11848. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11849. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11850. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11851. echo $ECHO_N "(cached) $ECHO_C" >&6
  11852. fi
  11853. ac_res=`eval echo '${'$as_ac_Header'}'`
  11854. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11855. echo "${ECHO_T}$ac_res" >&6; }
  11856. else
  11857. # Is the header compilable?
  11858. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11859. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11860. cat >conftest.$ac_ext <<_ACEOF
  11861. /* confdefs.h. */
  11862. _ACEOF
  11863. cat confdefs.h >>conftest.$ac_ext
  11864. cat >>conftest.$ac_ext <<_ACEOF
  11865. /* end confdefs.h. */
  11866. $ac_includes_default
  11867. #include <$ac_header>
  11868. _ACEOF
  11869. rm -f conftest.$ac_objext
  11870. if { (ac_try="$ac_compile"
  11871. case "(($ac_try" in
  11872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11873. *) ac_try_echo=$ac_try;;
  11874. esac
  11875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11876. (eval "$ac_compile") 2>conftest.er1
  11877. ac_status=$?
  11878. grep -v '^ *+' conftest.er1 >conftest.err
  11879. rm -f conftest.er1
  11880. cat conftest.err >&5
  11881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11882. (exit $ac_status); } && {
  11883. test -z "$ac_cxx_werror_flag" ||
  11884. test ! -s conftest.err
  11885. } && test -s conftest.$ac_objext; then
  11886. ac_header_compiler=yes
  11887. else
  11888. echo "$as_me: failed program was:" >&5
  11889. sed 's/^/| /' conftest.$ac_ext >&5
  11890. ac_header_compiler=no
  11891. fi
  11892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11893. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11894. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11895. # Is the header present?
  11896. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11897. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11898. cat >conftest.$ac_ext <<_ACEOF
  11899. /* confdefs.h. */
  11900. _ACEOF
  11901. cat confdefs.h >>conftest.$ac_ext
  11902. cat >>conftest.$ac_ext <<_ACEOF
  11903. /* end confdefs.h. */
  11904. #include <$ac_header>
  11905. _ACEOF
  11906. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11907. case "(($ac_try" in
  11908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11909. *) ac_try_echo=$ac_try;;
  11910. esac
  11911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11912. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11913. ac_status=$?
  11914. grep -v '^ *+' conftest.er1 >conftest.err
  11915. rm -f conftest.er1
  11916. cat conftest.err >&5
  11917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11918. (exit $ac_status); } >/dev/null && {
  11919. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11920. test ! -s conftest.err
  11921. }; then
  11922. ac_header_preproc=yes
  11923. else
  11924. echo "$as_me: failed program was:" >&5
  11925. sed 's/^/| /' conftest.$ac_ext >&5
  11926. ac_header_preproc=no
  11927. fi
  11928. rm -f conftest.err conftest.$ac_ext
  11929. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11930. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11931. # So? What about this header?
  11932. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11933. yes:no: )
  11934. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11935. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11937. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11938. ac_header_preproc=yes
  11939. ;;
  11940. no:yes:* )
  11941. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11942. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11943. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11944. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11945. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11946. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11947. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11948. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11949. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11950. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11951. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11952. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11953. ( cat <<\_ASBOX
  11954. ## ----------------------------------------------- ##
  11955. ## Report this to t-tujikawa@users.sourceforge.net ##
  11956. ## ----------------------------------------------- ##
  11957. _ASBOX
  11958. ) | sed "s/^/$as_me: WARNING: /" >&2
  11959. ;;
  11960. esac
  11961. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11962. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11963. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11964. echo $ECHO_N "(cached) $ECHO_C" >&6
  11965. else
  11966. eval "$as_ac_Header=\$ac_header_preproc"
  11967. fi
  11968. ac_res=`eval echo '${'$as_ac_Header'}'`
  11969. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11970. echo "${ECHO_T}$ac_res" >&6; }
  11971. fi
  11972. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11973. cat >>confdefs.h <<_ACEOF
  11974. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11975. _ACEOF
  11976. fi
  11977. done
  11978. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  11979. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  11980. argz_next __fsetlocking
  11981. do
  11982. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11983. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11984. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11985. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11986. echo $ECHO_N "(cached) $ECHO_C" >&6
  11987. else
  11988. cat >conftest.$ac_ext <<_ACEOF
  11989. /* confdefs.h. */
  11990. _ACEOF
  11991. cat confdefs.h >>conftest.$ac_ext
  11992. cat >>conftest.$ac_ext <<_ACEOF
  11993. /* end confdefs.h. */
  11994. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11995. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11996. #define $ac_func innocuous_$ac_func
  11997. /* System header to define __stub macros and hopefully few prototypes,
  11998. which can conflict with char $ac_func (); below.
  11999. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12000. <limits.h> exists even on freestanding compilers. */
  12001. #ifdef __STDC__
  12002. # include <limits.h>
  12003. #else
  12004. # include <assert.h>
  12005. #endif
  12006. #undef $ac_func
  12007. /* Override any GCC internal prototype to avoid an error.
  12008. Use char because int might match the return type of a GCC
  12009. builtin and then its argument prototype would still apply. */
  12010. #ifdef __cplusplus
  12011. extern "C"
  12012. #endif
  12013. char $ac_func ();
  12014. /* The GNU C library defines this for functions which it implements
  12015. to always fail with ENOSYS. Some functions are actually named
  12016. something starting with __ and the normal name is an alias. */
  12017. #if defined __stub_$ac_func || defined __stub___$ac_func
  12018. choke me
  12019. #endif
  12020. int
  12021. main ()
  12022. {
  12023. return $ac_func ();
  12024. ;
  12025. return 0;
  12026. }
  12027. _ACEOF
  12028. rm -f conftest.$ac_objext conftest$ac_exeext
  12029. if { (ac_try="$ac_link"
  12030. case "(($ac_try" in
  12031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12032. *) ac_try_echo=$ac_try;;
  12033. esac
  12034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12035. (eval "$ac_link") 2>conftest.er1
  12036. ac_status=$?
  12037. grep -v '^ *+' conftest.er1 >conftest.err
  12038. rm -f conftest.er1
  12039. cat conftest.err >&5
  12040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12041. (exit $ac_status); } && {
  12042. test -z "$ac_cxx_werror_flag" ||
  12043. test ! -s conftest.err
  12044. } && test -s conftest$ac_exeext &&
  12045. $as_test_x conftest$ac_exeext; then
  12046. eval "$as_ac_var=yes"
  12047. else
  12048. echo "$as_me: failed program was:" >&5
  12049. sed 's/^/| /' conftest.$ac_ext >&5
  12050. eval "$as_ac_var=no"
  12051. fi
  12052. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12053. conftest$ac_exeext conftest.$ac_ext
  12054. fi
  12055. ac_res=`eval echo '${'$as_ac_var'}'`
  12056. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12057. echo "${ECHO_T}$ac_res" >&6; }
  12058. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12059. cat >>confdefs.h <<_ACEOF
  12060. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12061. _ACEOF
  12062. fi
  12063. done
  12064. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12065. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12066. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12067. echo $ECHO_N "(cached) $ECHO_C" >&6
  12068. else
  12069. cat >conftest.$ac_ext <<_ACEOF
  12070. /* confdefs.h. */
  12071. _ACEOF
  12072. cat confdefs.h >>conftest.$ac_ext
  12073. cat >>conftest.$ac_ext <<_ACEOF
  12074. /* end confdefs.h. */
  12075. #include <stdio.h>
  12076. int
  12077. main ()
  12078. {
  12079. #ifndef feof_unlocked
  12080. char *p = (char *) feof_unlocked;
  12081. #endif
  12082. ;
  12083. return 0;
  12084. }
  12085. _ACEOF
  12086. rm -f conftest.$ac_objext
  12087. if { (ac_try="$ac_compile"
  12088. case "(($ac_try" in
  12089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12090. *) ac_try_echo=$ac_try;;
  12091. esac
  12092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12093. (eval "$ac_compile") 2>conftest.er1
  12094. ac_status=$?
  12095. grep -v '^ *+' conftest.er1 >conftest.err
  12096. rm -f conftest.er1
  12097. cat conftest.err >&5
  12098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12099. (exit $ac_status); } && {
  12100. test -z "$ac_cxx_werror_flag" ||
  12101. test ! -s conftest.err
  12102. } && test -s conftest.$ac_objext; then
  12103. ac_cv_have_decl_feof_unlocked=yes
  12104. else
  12105. echo "$as_me: failed program was:" >&5
  12106. sed 's/^/| /' conftest.$ac_ext >&5
  12107. ac_cv_have_decl_feof_unlocked=no
  12108. fi
  12109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12110. fi
  12111. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12112. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12113. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12114. gt_value=1
  12115. else
  12116. gt_value=0
  12117. fi
  12118. cat >>confdefs.h <<_ACEOF
  12119. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12120. _ACEOF
  12121. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12122. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12123. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12124. echo $ECHO_N "(cached) $ECHO_C" >&6
  12125. else
  12126. cat >conftest.$ac_ext <<_ACEOF
  12127. /* confdefs.h. */
  12128. _ACEOF
  12129. cat confdefs.h >>conftest.$ac_ext
  12130. cat >>conftest.$ac_ext <<_ACEOF
  12131. /* end confdefs.h. */
  12132. #include <stdio.h>
  12133. int
  12134. main ()
  12135. {
  12136. #ifndef fgets_unlocked
  12137. char *p = (char *) fgets_unlocked;
  12138. #endif
  12139. ;
  12140. return 0;
  12141. }
  12142. _ACEOF
  12143. rm -f conftest.$ac_objext
  12144. if { (ac_try="$ac_compile"
  12145. case "(($ac_try" in
  12146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12147. *) ac_try_echo=$ac_try;;
  12148. esac
  12149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12150. (eval "$ac_compile") 2>conftest.er1
  12151. ac_status=$?
  12152. grep -v '^ *+' conftest.er1 >conftest.err
  12153. rm -f conftest.er1
  12154. cat conftest.err >&5
  12155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12156. (exit $ac_status); } && {
  12157. test -z "$ac_cxx_werror_flag" ||
  12158. test ! -s conftest.err
  12159. } && test -s conftest.$ac_objext; then
  12160. ac_cv_have_decl_fgets_unlocked=yes
  12161. else
  12162. echo "$as_me: failed program was:" >&5
  12163. sed 's/^/| /' conftest.$ac_ext >&5
  12164. ac_cv_have_decl_fgets_unlocked=no
  12165. fi
  12166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12167. fi
  12168. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12169. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12170. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12171. gt_value=1
  12172. else
  12173. gt_value=0
  12174. fi
  12175. cat >>confdefs.h <<_ACEOF
  12176. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12177. _ACEOF
  12178. am_save_CPPFLAGS="$CPPFLAGS"
  12179. for element in $INCICONV; do
  12180. haveit=
  12181. for x in $CPPFLAGS; do
  12182. acl_save_prefix="$prefix"
  12183. prefix="$acl_final_prefix"
  12184. acl_save_exec_prefix="$exec_prefix"
  12185. exec_prefix="$acl_final_exec_prefix"
  12186. eval x=\"$x\"
  12187. exec_prefix="$acl_save_exec_prefix"
  12188. prefix="$acl_save_prefix"
  12189. if test "X$x" = "X$element"; then
  12190. haveit=yes
  12191. break
  12192. fi
  12193. done
  12194. if test -z "$haveit"; then
  12195. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12196. fi
  12197. done
  12198. { echo "$as_me:$LINENO: checking for iconv" >&5
  12199. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12200. if test "${am_cv_func_iconv+set}" = set; then
  12201. echo $ECHO_N "(cached) $ECHO_C" >&6
  12202. else
  12203. am_cv_func_iconv="no, consider installing GNU libiconv"
  12204. am_cv_lib_iconv=no
  12205. cat >conftest.$ac_ext <<_ACEOF
  12206. /* confdefs.h. */
  12207. _ACEOF
  12208. cat confdefs.h >>conftest.$ac_ext
  12209. cat >>conftest.$ac_ext <<_ACEOF
  12210. /* end confdefs.h. */
  12211. #include <stdlib.h>
  12212. #include <iconv.h>
  12213. int
  12214. main ()
  12215. {
  12216. iconv_t cd = iconv_open("","");
  12217. iconv(cd,NULL,NULL,NULL,NULL);
  12218. iconv_close(cd);
  12219. ;
  12220. return 0;
  12221. }
  12222. _ACEOF
  12223. rm -f conftest.$ac_objext conftest$ac_exeext
  12224. if { (ac_try="$ac_link"
  12225. case "(($ac_try" in
  12226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12227. *) ac_try_echo=$ac_try;;
  12228. esac
  12229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12230. (eval "$ac_link") 2>conftest.er1
  12231. ac_status=$?
  12232. grep -v '^ *+' conftest.er1 >conftest.err
  12233. rm -f conftest.er1
  12234. cat conftest.err >&5
  12235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12236. (exit $ac_status); } && {
  12237. test -z "$ac_cxx_werror_flag" ||
  12238. test ! -s conftest.err
  12239. } && test -s conftest$ac_exeext &&
  12240. $as_test_x conftest$ac_exeext; then
  12241. am_cv_func_iconv=yes
  12242. else
  12243. echo "$as_me: failed program was:" >&5
  12244. sed 's/^/| /' conftest.$ac_ext >&5
  12245. fi
  12246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12247. conftest$ac_exeext conftest.$ac_ext
  12248. if test "$am_cv_func_iconv" != yes; then
  12249. am_save_LIBS="$LIBS"
  12250. LIBS="$LIBS $LIBICONV"
  12251. cat >conftest.$ac_ext <<_ACEOF
  12252. /* confdefs.h. */
  12253. _ACEOF
  12254. cat confdefs.h >>conftest.$ac_ext
  12255. cat >>conftest.$ac_ext <<_ACEOF
  12256. /* end confdefs.h. */
  12257. #include <stdlib.h>
  12258. #include <iconv.h>
  12259. int
  12260. main ()
  12261. {
  12262. iconv_t cd = iconv_open("","");
  12263. iconv(cd,NULL,NULL,NULL,NULL);
  12264. iconv_close(cd);
  12265. ;
  12266. return 0;
  12267. }
  12268. _ACEOF
  12269. rm -f conftest.$ac_objext conftest$ac_exeext
  12270. if { (ac_try="$ac_link"
  12271. case "(($ac_try" in
  12272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12273. *) ac_try_echo=$ac_try;;
  12274. esac
  12275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12276. (eval "$ac_link") 2>conftest.er1
  12277. ac_status=$?
  12278. grep -v '^ *+' conftest.er1 >conftest.err
  12279. rm -f conftest.er1
  12280. cat conftest.err >&5
  12281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12282. (exit $ac_status); } && {
  12283. test -z "$ac_cxx_werror_flag" ||
  12284. test ! -s conftest.err
  12285. } && test -s conftest$ac_exeext &&
  12286. $as_test_x conftest$ac_exeext; then
  12287. am_cv_lib_iconv=yes
  12288. am_cv_func_iconv=yes
  12289. else
  12290. echo "$as_me: failed program was:" >&5
  12291. sed 's/^/| /' conftest.$ac_ext >&5
  12292. fi
  12293. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12294. conftest$ac_exeext conftest.$ac_ext
  12295. LIBS="$am_save_LIBS"
  12296. fi
  12297. fi
  12298. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12299. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12300. if test "$am_cv_func_iconv" = yes; then
  12301. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12302. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12303. if test "${am_cv_func_iconv_works+set}" = set; then
  12304. echo $ECHO_N "(cached) $ECHO_C" >&6
  12305. else
  12306. am_save_LIBS="$LIBS"
  12307. if test $am_cv_lib_iconv = yes; then
  12308. LIBS="$LIBS $LIBICONV"
  12309. fi
  12310. if test "$cross_compiling" = yes; then
  12311. case "$host_os" in
  12312. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12313. *) am_cv_func_iconv_works="guessing yes" ;;
  12314. esac
  12315. else
  12316. cat >conftest.$ac_ext <<_ACEOF
  12317. /* confdefs.h. */
  12318. _ACEOF
  12319. cat confdefs.h >>conftest.$ac_ext
  12320. cat >>conftest.$ac_ext <<_ACEOF
  12321. /* end confdefs.h. */
  12322. #include <iconv.h>
  12323. #include <string.h>
  12324. int main ()
  12325. {
  12326. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12327. returns. */
  12328. {
  12329. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12330. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12331. {
  12332. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12333. char buf[10];
  12334. const char *inptr = input;
  12335. size_t inbytesleft = strlen (input);
  12336. char *outptr = buf;
  12337. size_t outbytesleft = sizeof (buf);
  12338. size_t res = iconv (cd_utf8_to_88591,
  12339. (char **) &inptr, &inbytesleft,
  12340. &outptr, &outbytesleft);
  12341. if (res == 0)
  12342. return 1;
  12343. }
  12344. }
  12345. #if 0 /* This bug could be worked around by the caller. */
  12346. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12347. {
  12348. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12349. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12350. {
  12351. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12352. char buf[50];
  12353. const char *inptr = input;
  12354. size_t inbytesleft = strlen (input);
  12355. char *outptr = buf;
  12356. size_t outbytesleft = sizeof (buf);
  12357. size_t res = iconv (cd_88591_to_utf8,
  12358. (char **) &inptr, &inbytesleft,
  12359. &outptr, &outbytesleft);
  12360. if ((int)res > 0)
  12361. return 1;
  12362. }
  12363. }
  12364. #endif
  12365. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12366. provided. */
  12367. if (/* Try standardized names. */
  12368. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12369. /* Try IRIX, OSF/1 names. */
  12370. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12371. /* Try AIX names. */
  12372. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12373. /* Try HP-UX names. */
  12374. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12375. return 1;
  12376. return 0;
  12377. }
  12378. _ACEOF
  12379. rm -f conftest$ac_exeext
  12380. if { (ac_try="$ac_link"
  12381. case "(($ac_try" in
  12382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12383. *) ac_try_echo=$ac_try;;
  12384. esac
  12385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12386. (eval "$ac_link") 2>&5
  12387. ac_status=$?
  12388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12389. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12390. { (case "(($ac_try" in
  12391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12392. *) ac_try_echo=$ac_try;;
  12393. esac
  12394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12395. (eval "$ac_try") 2>&5
  12396. ac_status=$?
  12397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12398. (exit $ac_status); }; }; then
  12399. am_cv_func_iconv_works=yes
  12400. else
  12401. echo "$as_me: program exited with status $ac_status" >&5
  12402. echo "$as_me: failed program was:" >&5
  12403. sed 's/^/| /' conftest.$ac_ext >&5
  12404. ( exit $ac_status )
  12405. am_cv_func_iconv_works=no
  12406. fi
  12407. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12408. fi
  12409. LIBS="$am_save_LIBS"
  12410. fi
  12411. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12412. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12413. case "$am_cv_func_iconv_works" in
  12414. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12415. *) am_func_iconv=yes ;;
  12416. esac
  12417. else
  12418. am_func_iconv=no am_cv_lib_iconv=no
  12419. fi
  12420. if test "$am_func_iconv" = yes; then
  12421. cat >>confdefs.h <<\_ACEOF
  12422. #define HAVE_ICONV 1
  12423. _ACEOF
  12424. fi
  12425. if test "$am_cv_lib_iconv" = yes; then
  12426. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12427. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12428. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12429. echo "${ECHO_T}$LIBICONV" >&6; }
  12430. else
  12431. CPPFLAGS="$am_save_CPPFLAGS"
  12432. LIBICONV=
  12433. LTLIBICONV=
  12434. fi
  12435. if test "$am_cv_func_iconv" = yes; then
  12436. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12437. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12438. if test "${am_cv_proto_iconv+set}" = set; then
  12439. echo $ECHO_N "(cached) $ECHO_C" >&6
  12440. else
  12441. cat >conftest.$ac_ext <<_ACEOF
  12442. /* confdefs.h. */
  12443. _ACEOF
  12444. cat confdefs.h >>conftest.$ac_ext
  12445. cat >>conftest.$ac_ext <<_ACEOF
  12446. /* end confdefs.h. */
  12447. #include <stdlib.h>
  12448. #include <iconv.h>
  12449. extern
  12450. #ifdef __cplusplus
  12451. "C"
  12452. #endif
  12453. #if defined(__STDC__) || defined(__cplusplus)
  12454. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12455. #else
  12456. size_t iconv();
  12457. #endif
  12458. int
  12459. main ()
  12460. {
  12461. ;
  12462. return 0;
  12463. }
  12464. _ACEOF
  12465. rm -f conftest.$ac_objext
  12466. if { (ac_try="$ac_compile"
  12467. case "(($ac_try" in
  12468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12469. *) ac_try_echo=$ac_try;;
  12470. esac
  12471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12472. (eval "$ac_compile") 2>conftest.er1
  12473. ac_status=$?
  12474. grep -v '^ *+' conftest.er1 >conftest.err
  12475. rm -f conftest.er1
  12476. cat conftest.err >&5
  12477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12478. (exit $ac_status); } && {
  12479. test -z "$ac_cxx_werror_flag" ||
  12480. test ! -s conftest.err
  12481. } && test -s conftest.$ac_objext; then
  12482. am_cv_proto_iconv_arg1=""
  12483. else
  12484. echo "$as_me: failed program was:" >&5
  12485. sed 's/^/| /' conftest.$ac_ext >&5
  12486. am_cv_proto_iconv_arg1="const"
  12487. fi
  12488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12489. 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);"
  12490. fi
  12491. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12492. { echo "$as_me:$LINENO: result: ${ac_t:-
  12493. }$am_cv_proto_iconv" >&5
  12494. echo "${ECHO_T}${ac_t:-
  12495. }$am_cv_proto_iconv" >&6; }
  12496. cat >>confdefs.h <<_ACEOF
  12497. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12498. _ACEOF
  12499. fi
  12500. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12501. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12502. if test "${gt_cv_nl_locale_name+set}" = set; then
  12503. echo $ECHO_N "(cached) $ECHO_C" >&6
  12504. else
  12505. cat >conftest.$ac_ext <<_ACEOF
  12506. /* confdefs.h. */
  12507. _ACEOF
  12508. cat confdefs.h >>conftest.$ac_ext
  12509. cat >>conftest.$ac_ext <<_ACEOF
  12510. /* end confdefs.h. */
  12511. #include <langinfo.h>
  12512. #include <locale.h>
  12513. int
  12514. main ()
  12515. {
  12516. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12517. return !cs;
  12518. ;
  12519. return 0;
  12520. }
  12521. _ACEOF
  12522. rm -f conftest.$ac_objext conftest$ac_exeext
  12523. if { (ac_try="$ac_link"
  12524. case "(($ac_try" in
  12525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12526. *) ac_try_echo=$ac_try;;
  12527. esac
  12528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12529. (eval "$ac_link") 2>conftest.er1
  12530. ac_status=$?
  12531. grep -v '^ *+' conftest.er1 >conftest.err
  12532. rm -f conftest.er1
  12533. cat conftest.err >&5
  12534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12535. (exit $ac_status); } && {
  12536. test -z "$ac_cxx_werror_flag" ||
  12537. test ! -s conftest.err
  12538. } && test -s conftest$ac_exeext &&
  12539. $as_test_x conftest$ac_exeext; then
  12540. gt_cv_nl_locale_name=yes
  12541. else
  12542. echo "$as_me: failed program was:" >&5
  12543. sed 's/^/| /' conftest.$ac_ext >&5
  12544. gt_cv_nl_locale_name=no
  12545. fi
  12546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12547. conftest$ac_exeext conftest.$ac_ext
  12548. fi
  12549. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12550. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12551. if test $gt_cv_nl_locale_name = yes; then
  12552. cat >>confdefs.h <<\_ACEOF
  12553. #define HAVE_NL_LOCALE_NAME 1
  12554. _ACEOF
  12555. fi
  12556. for ac_prog in bison
  12557. do
  12558. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12559. set dummy $ac_prog; ac_word=$2
  12560. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12561. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12562. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12563. echo $ECHO_N "(cached) $ECHO_C" >&6
  12564. else
  12565. if test -n "$INTLBISON"; then
  12566. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12567. else
  12568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12569. for as_dir in $PATH
  12570. do
  12571. IFS=$as_save_IFS
  12572. test -z "$as_dir" && as_dir=.
  12573. for ac_exec_ext in '' $ac_executable_extensions; do
  12574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12575. ac_cv_prog_INTLBISON="$ac_prog"
  12576. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12577. break 2
  12578. fi
  12579. done
  12580. done
  12581. IFS=$as_save_IFS
  12582. fi
  12583. fi
  12584. INTLBISON=$ac_cv_prog_INTLBISON
  12585. if test -n "$INTLBISON"; then
  12586. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12587. echo "${ECHO_T}$INTLBISON" >&6; }
  12588. else
  12589. { echo "$as_me:$LINENO: result: no" >&5
  12590. echo "${ECHO_T}no" >&6; }
  12591. fi
  12592. test -n "$INTLBISON" && break
  12593. done
  12594. if test -z "$INTLBISON"; then
  12595. ac_verc_fail=yes
  12596. else
  12597. { echo "$as_me:$LINENO: checking version of bison" >&5
  12598. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12599. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12600. case $ac_prog_version in
  12601. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12602. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12603. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12604. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12605. esac
  12606. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12607. echo "${ECHO_T}$ac_prog_version" >&6; }
  12608. fi
  12609. if test $ac_verc_fail = yes; then
  12610. INTLBISON=:
  12611. fi
  12612. { echo "$as_me:$LINENO: checking for long long int" >&5
  12613. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12614. if test "${ac_cv_type_long_long_int+set}" = set; then
  12615. echo $ECHO_N "(cached) $ECHO_C" >&6
  12616. else
  12617. cat >conftest.$ac_ext <<_ACEOF
  12618. /* confdefs.h. */
  12619. _ACEOF
  12620. cat confdefs.h >>conftest.$ac_ext
  12621. cat >>conftest.$ac_ext <<_ACEOF
  12622. /* end confdefs.h. */
  12623. /* Test preprocessor. */
  12624. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12625. error in preprocessor;
  12626. #endif
  12627. #if ! (18446744073709551615ULL <= -1ull)
  12628. error in preprocessor;
  12629. #endif
  12630. /* Test literals. */
  12631. long long int ll = 9223372036854775807ll;
  12632. long long int nll = -9223372036854775807LL;
  12633. unsigned long long int ull = 18446744073709551615ULL;
  12634. /* Test constant expressions. */
  12635. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12636. ? 1 : -1)];
  12637. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12638. ? 1 : -1)];
  12639. int i = 63;
  12640. int
  12641. main ()
  12642. {
  12643. /* Test availability of runtime routines for shift and division. */
  12644. long long int llmax = 9223372036854775807ll;
  12645. unsigned long long int ullmax = 18446744073709551615ull;
  12646. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12647. | (llmax / ll) | (llmax % ll)
  12648. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12649. | (ullmax / ull) | (ullmax % ull));
  12650. ;
  12651. return 0;
  12652. }
  12653. _ACEOF
  12654. rm -f conftest.$ac_objext conftest$ac_exeext
  12655. if { (ac_try="$ac_link"
  12656. case "(($ac_try" in
  12657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12658. *) ac_try_echo=$ac_try;;
  12659. esac
  12660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12661. (eval "$ac_link") 2>conftest.er1
  12662. ac_status=$?
  12663. grep -v '^ *+' conftest.er1 >conftest.err
  12664. rm -f conftest.er1
  12665. cat conftest.err >&5
  12666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12667. (exit $ac_status); } && {
  12668. test -z "$ac_cxx_werror_flag" ||
  12669. test ! -s conftest.err
  12670. } && test -s conftest$ac_exeext &&
  12671. $as_test_x conftest$ac_exeext; then
  12672. if test "$cross_compiling" = yes; then
  12673. ac_cv_type_long_long_int=yes
  12674. else
  12675. cat >conftest.$ac_ext <<_ACEOF
  12676. /* confdefs.h. */
  12677. _ACEOF
  12678. cat confdefs.h >>conftest.$ac_ext
  12679. cat >>conftest.$ac_ext <<_ACEOF
  12680. /* end confdefs.h. */
  12681. #include <limits.h>
  12682. #ifndef LLONG_MAX
  12683. # define HALF \
  12684. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12685. # define LLONG_MAX (HALF - 1 + HALF)
  12686. #endif
  12687. int
  12688. main ()
  12689. {
  12690. long long int n = 1;
  12691. int i;
  12692. for (i = 0; ; i++)
  12693. {
  12694. long long int m = n << i;
  12695. if (m >> i != n)
  12696. return 1;
  12697. if (LLONG_MAX / 2 < m)
  12698. break;
  12699. }
  12700. return 0;
  12701. ;
  12702. return 0;
  12703. }
  12704. _ACEOF
  12705. rm -f conftest$ac_exeext
  12706. if { (ac_try="$ac_link"
  12707. case "(($ac_try" in
  12708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12709. *) ac_try_echo=$ac_try;;
  12710. esac
  12711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12712. (eval "$ac_link") 2>&5
  12713. ac_status=$?
  12714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12716. { (case "(($ac_try" in
  12717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12718. *) ac_try_echo=$ac_try;;
  12719. esac
  12720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12721. (eval "$ac_try") 2>&5
  12722. ac_status=$?
  12723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12724. (exit $ac_status); }; }; then
  12725. ac_cv_type_long_long_int=yes
  12726. else
  12727. echo "$as_me: program exited with status $ac_status" >&5
  12728. echo "$as_me: failed program was:" >&5
  12729. sed 's/^/| /' conftest.$ac_ext >&5
  12730. ( exit $ac_status )
  12731. ac_cv_type_long_long_int=no
  12732. fi
  12733. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12734. fi
  12735. else
  12736. echo "$as_me: failed program was:" >&5
  12737. sed 's/^/| /' conftest.$ac_ext >&5
  12738. ac_cv_type_long_long_int=no
  12739. fi
  12740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12741. conftest$ac_exeext conftest.$ac_ext
  12742. fi
  12743. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12744. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12745. if test $ac_cv_type_long_long_int = yes; then
  12746. cat >>confdefs.h <<\_ACEOF
  12747. #define HAVE_LONG_LONG_INT 1
  12748. _ACEOF
  12749. fi
  12750. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12751. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12752. if test "${gt_cv_c_wchar_t+set}" = set; then
  12753. echo $ECHO_N "(cached) $ECHO_C" >&6
  12754. else
  12755. cat >conftest.$ac_ext <<_ACEOF
  12756. /* confdefs.h. */
  12757. _ACEOF
  12758. cat confdefs.h >>conftest.$ac_ext
  12759. cat >>conftest.$ac_ext <<_ACEOF
  12760. /* end confdefs.h. */
  12761. #include <stddef.h>
  12762. wchar_t foo = (wchar_t)'\0';
  12763. int
  12764. main ()
  12765. {
  12766. ;
  12767. return 0;
  12768. }
  12769. _ACEOF
  12770. rm -f conftest.$ac_objext
  12771. if { (ac_try="$ac_compile"
  12772. case "(($ac_try" in
  12773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12774. *) ac_try_echo=$ac_try;;
  12775. esac
  12776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12777. (eval "$ac_compile") 2>conftest.er1
  12778. ac_status=$?
  12779. grep -v '^ *+' conftest.er1 >conftest.err
  12780. rm -f conftest.er1
  12781. cat conftest.err >&5
  12782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12783. (exit $ac_status); } && {
  12784. test -z "$ac_cxx_werror_flag" ||
  12785. test ! -s conftest.err
  12786. } && test -s conftest.$ac_objext; then
  12787. gt_cv_c_wchar_t=yes
  12788. else
  12789. echo "$as_me: failed program was:" >&5
  12790. sed 's/^/| /' conftest.$ac_ext >&5
  12791. gt_cv_c_wchar_t=no
  12792. fi
  12793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12794. fi
  12795. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12796. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12797. if test $gt_cv_c_wchar_t = yes; then
  12798. cat >>confdefs.h <<\_ACEOF
  12799. #define HAVE_WCHAR_T 1
  12800. _ACEOF
  12801. fi
  12802. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12803. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12804. if test "${gt_cv_c_wint_t+set}" = set; then
  12805. echo $ECHO_N "(cached) $ECHO_C" >&6
  12806. else
  12807. cat >conftest.$ac_ext <<_ACEOF
  12808. /* confdefs.h. */
  12809. _ACEOF
  12810. cat confdefs.h >>conftest.$ac_ext
  12811. cat >>conftest.$ac_ext <<_ACEOF
  12812. /* end confdefs.h. */
  12813. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12814. <wchar.h>.
  12815. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12816. before <wchar.h>. */
  12817. #include <stddef.h>
  12818. #include <stdio.h>
  12819. #include <time.h>
  12820. #include <wchar.h>
  12821. wint_t foo = (wchar_t)'\0';
  12822. int
  12823. main ()
  12824. {
  12825. ;
  12826. return 0;
  12827. }
  12828. _ACEOF
  12829. rm -f conftest.$ac_objext
  12830. if { (ac_try="$ac_compile"
  12831. case "(($ac_try" in
  12832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12833. *) ac_try_echo=$ac_try;;
  12834. esac
  12835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12836. (eval "$ac_compile") 2>conftest.er1
  12837. ac_status=$?
  12838. grep -v '^ *+' conftest.er1 >conftest.err
  12839. rm -f conftest.er1
  12840. cat conftest.err >&5
  12841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12842. (exit $ac_status); } && {
  12843. test -z "$ac_cxx_werror_flag" ||
  12844. test ! -s conftest.err
  12845. } && test -s conftest.$ac_objext; then
  12846. gt_cv_c_wint_t=yes
  12847. else
  12848. echo "$as_me: failed program was:" >&5
  12849. sed 's/^/| /' conftest.$ac_ext >&5
  12850. gt_cv_c_wint_t=no
  12851. fi
  12852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12853. fi
  12854. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12855. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12856. if test $gt_cv_c_wint_t = yes; then
  12857. cat >>confdefs.h <<\_ACEOF
  12858. #define HAVE_WINT_T 1
  12859. _ACEOF
  12860. fi
  12861. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12862. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12863. if test "${gt_cv_c_intmax_t+set}" = set; then
  12864. echo $ECHO_N "(cached) $ECHO_C" >&6
  12865. else
  12866. cat >conftest.$ac_ext <<_ACEOF
  12867. /* confdefs.h. */
  12868. _ACEOF
  12869. cat confdefs.h >>conftest.$ac_ext
  12870. cat >>conftest.$ac_ext <<_ACEOF
  12871. /* end confdefs.h. */
  12872. #include <stddef.h>
  12873. #include <stdlib.h>
  12874. #if HAVE_STDINT_H_WITH_UINTMAX
  12875. #include <stdint.h>
  12876. #endif
  12877. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12878. #include <inttypes.h>
  12879. #endif
  12880. int
  12881. main ()
  12882. {
  12883. intmax_t x = -1;
  12884. return !x;
  12885. ;
  12886. return 0;
  12887. }
  12888. _ACEOF
  12889. rm -f conftest.$ac_objext
  12890. if { (ac_try="$ac_compile"
  12891. case "(($ac_try" in
  12892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12893. *) ac_try_echo=$ac_try;;
  12894. esac
  12895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12896. (eval "$ac_compile") 2>conftest.er1
  12897. ac_status=$?
  12898. grep -v '^ *+' conftest.er1 >conftest.err
  12899. rm -f conftest.er1
  12900. cat conftest.err >&5
  12901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12902. (exit $ac_status); } && {
  12903. test -z "$ac_cxx_werror_flag" ||
  12904. test ! -s conftest.err
  12905. } && test -s conftest.$ac_objext; then
  12906. gt_cv_c_intmax_t=yes
  12907. else
  12908. echo "$as_me: failed program was:" >&5
  12909. sed 's/^/| /' conftest.$ac_ext >&5
  12910. gt_cv_c_intmax_t=no
  12911. fi
  12912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12913. fi
  12914. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12915. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12916. if test $gt_cv_c_intmax_t = yes; then
  12917. cat >>confdefs.h <<\_ACEOF
  12918. #define HAVE_INTMAX_T 1
  12919. _ACEOF
  12920. fi
  12921. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12922. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12923. if test "${gt_cv_func_printf_posix+set}" = set; then
  12924. echo $ECHO_N "(cached) $ECHO_C" >&6
  12925. else
  12926. if test "$cross_compiling" = yes; then
  12927. cat >conftest.$ac_ext <<_ACEOF
  12928. /* confdefs.h. */
  12929. _ACEOF
  12930. cat confdefs.h >>conftest.$ac_ext
  12931. cat >>conftest.$ac_ext <<_ACEOF
  12932. /* end confdefs.h. */
  12933. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  12934. notposix
  12935. #endif
  12936. _ACEOF
  12937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12938. $EGREP "notposix" >/dev/null 2>&1; then
  12939. gt_cv_func_printf_posix="guessing no"
  12940. else
  12941. gt_cv_func_printf_posix="guessing yes"
  12942. fi
  12943. rm -f conftest*
  12944. else
  12945. cat >conftest.$ac_ext <<_ACEOF
  12946. /* confdefs.h. */
  12947. _ACEOF
  12948. cat confdefs.h >>conftest.$ac_ext
  12949. cat >>conftest.$ac_ext <<_ACEOF
  12950. /* end confdefs.h. */
  12951. #include <stdio.h>
  12952. #include <string.h>
  12953. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  12954. dollar expansion (possibly an autoconf bug). */
  12955. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  12956. static char buf[100];
  12957. int main ()
  12958. {
  12959. sprintf (buf, format, 33, 55);
  12960. return (strcmp (buf, "55 33") != 0);
  12961. }
  12962. _ACEOF
  12963. rm -f conftest$ac_exeext
  12964. if { (ac_try="$ac_link"
  12965. case "(($ac_try" in
  12966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12967. *) ac_try_echo=$ac_try;;
  12968. esac
  12969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12970. (eval "$ac_link") 2>&5
  12971. ac_status=$?
  12972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12973. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12974. { (case "(($ac_try" in
  12975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12976. *) ac_try_echo=$ac_try;;
  12977. esac
  12978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12979. (eval "$ac_try") 2>&5
  12980. ac_status=$?
  12981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12982. (exit $ac_status); }; }; then
  12983. gt_cv_func_printf_posix=yes
  12984. else
  12985. echo "$as_me: program exited with status $ac_status" >&5
  12986. echo "$as_me: failed program was:" >&5
  12987. sed 's/^/| /' conftest.$ac_ext >&5
  12988. ( exit $ac_status )
  12989. gt_cv_func_printf_posix=no
  12990. fi
  12991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12992. fi
  12993. fi
  12994. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  12995. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  12996. case $gt_cv_func_printf_posix in
  12997. *yes)
  12998. cat >>confdefs.h <<\_ACEOF
  12999. #define HAVE_POSIX_PRINTF 1
  13000. _ACEOF
  13001. ;;
  13002. esac
  13003. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13004. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13005. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13006. echo $ECHO_N "(cached) $ECHO_C" >&6
  13007. else
  13008. cat >conftest.$ac_ext <<_ACEOF
  13009. /* confdefs.h. */
  13010. _ACEOF
  13011. cat confdefs.h >>conftest.$ac_ext
  13012. cat >>conftest.$ac_ext <<_ACEOF
  13013. /* end confdefs.h. */
  13014. #include <features.h>
  13015. #ifdef __GNU_LIBRARY__
  13016. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13017. Lucky GNU user
  13018. #endif
  13019. #endif
  13020. _ACEOF
  13021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13022. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13023. ac_cv_gnu_library_2_1=yes
  13024. else
  13025. ac_cv_gnu_library_2_1=no
  13026. fi
  13027. rm -f conftest*
  13028. fi
  13029. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13030. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13031. GLIBC21="$ac_cv_gnu_library_2_1"
  13032. for ac_header in stdint.h
  13033. do
  13034. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13035. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13036. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13037. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13038. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13039. echo $ECHO_N "(cached) $ECHO_C" >&6
  13040. fi
  13041. ac_res=`eval echo '${'$as_ac_Header'}'`
  13042. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13043. echo "${ECHO_T}$ac_res" >&6; }
  13044. else
  13045. # Is the header compilable?
  13046. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13047. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13048. cat >conftest.$ac_ext <<_ACEOF
  13049. /* confdefs.h. */
  13050. _ACEOF
  13051. cat confdefs.h >>conftest.$ac_ext
  13052. cat >>conftest.$ac_ext <<_ACEOF
  13053. /* end confdefs.h. */
  13054. $ac_includes_default
  13055. #include <$ac_header>
  13056. _ACEOF
  13057. rm -f conftest.$ac_objext
  13058. if { (ac_try="$ac_compile"
  13059. case "(($ac_try" in
  13060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13061. *) ac_try_echo=$ac_try;;
  13062. esac
  13063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13064. (eval "$ac_compile") 2>conftest.er1
  13065. ac_status=$?
  13066. grep -v '^ *+' conftest.er1 >conftest.err
  13067. rm -f conftest.er1
  13068. cat conftest.err >&5
  13069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13070. (exit $ac_status); } && {
  13071. test -z "$ac_cxx_werror_flag" ||
  13072. test ! -s conftest.err
  13073. } && test -s conftest.$ac_objext; then
  13074. ac_header_compiler=yes
  13075. else
  13076. echo "$as_me: failed program was:" >&5
  13077. sed 's/^/| /' conftest.$ac_ext >&5
  13078. ac_header_compiler=no
  13079. fi
  13080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13081. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13082. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13083. # Is the header present?
  13084. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13085. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13086. cat >conftest.$ac_ext <<_ACEOF
  13087. /* confdefs.h. */
  13088. _ACEOF
  13089. cat confdefs.h >>conftest.$ac_ext
  13090. cat >>conftest.$ac_ext <<_ACEOF
  13091. /* end confdefs.h. */
  13092. #include <$ac_header>
  13093. _ACEOF
  13094. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13095. case "(($ac_try" in
  13096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13097. *) ac_try_echo=$ac_try;;
  13098. esac
  13099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13100. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13101. ac_status=$?
  13102. grep -v '^ *+' conftest.er1 >conftest.err
  13103. rm -f conftest.er1
  13104. cat conftest.err >&5
  13105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13106. (exit $ac_status); } >/dev/null && {
  13107. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13108. test ! -s conftest.err
  13109. }; then
  13110. ac_header_preproc=yes
  13111. else
  13112. echo "$as_me: failed program was:" >&5
  13113. sed 's/^/| /' conftest.$ac_ext >&5
  13114. ac_header_preproc=no
  13115. fi
  13116. rm -f conftest.err conftest.$ac_ext
  13117. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13118. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13119. # So? What about this header?
  13120. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13121. yes:no: )
  13122. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13123. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13124. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13125. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13126. ac_header_preproc=yes
  13127. ;;
  13128. no:yes:* )
  13129. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13130. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13131. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13132. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13133. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13134. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13135. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13136. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13138. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13139. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13140. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13141. ( cat <<\_ASBOX
  13142. ## ----------------------------------------------- ##
  13143. ## Report this to t-tujikawa@users.sourceforge.net ##
  13144. ## ----------------------------------------------- ##
  13145. _ASBOX
  13146. ) | sed "s/^/$as_me: WARNING: /" >&2
  13147. ;;
  13148. esac
  13149. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13150. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13151. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13152. echo $ECHO_N "(cached) $ECHO_C" >&6
  13153. else
  13154. eval "$as_ac_Header=\$ac_header_preproc"
  13155. fi
  13156. ac_res=`eval echo '${'$as_ac_Header'}'`
  13157. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13158. echo "${ECHO_T}$ac_res" >&6; }
  13159. fi
  13160. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13161. cat >>confdefs.h <<_ACEOF
  13162. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13163. _ACEOF
  13164. fi
  13165. done
  13166. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13167. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13168. if test "${gl_cv_size_max+set}" = set; then
  13169. echo $ECHO_N "(cached) $ECHO_C" >&6
  13170. else
  13171. gl_cv_size_max=
  13172. cat >conftest.$ac_ext <<_ACEOF
  13173. /* confdefs.h. */
  13174. _ACEOF
  13175. cat confdefs.h >>conftest.$ac_ext
  13176. cat >>conftest.$ac_ext <<_ACEOF
  13177. /* end confdefs.h. */
  13178. #include <limits.h>
  13179. #if HAVE_STDINT_H
  13180. #include <stdint.h>
  13181. #endif
  13182. #ifdef SIZE_MAX
  13183. Found it
  13184. #endif
  13185. _ACEOF
  13186. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13187. $EGREP "Found it" >/dev/null 2>&1; then
  13188. gl_cv_size_max=yes
  13189. fi
  13190. rm -f conftest*
  13191. if test -z "$gl_cv_size_max"; then
  13192. if test "$cross_compiling" = yes; then
  13193. # Depending upon the size, compute the lo and hi bounds.
  13194. cat >conftest.$ac_ext <<_ACEOF
  13195. /* confdefs.h. */
  13196. _ACEOF
  13197. cat confdefs.h >>conftest.$ac_ext
  13198. cat >>conftest.$ac_ext <<_ACEOF
  13199. /* end confdefs.h. */
  13200. #include <stddef.h>
  13201. #include <limits.h>
  13202. int
  13203. main ()
  13204. {
  13205. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13206. test_array [0] = 0
  13207. ;
  13208. return 0;
  13209. }
  13210. _ACEOF
  13211. rm -f conftest.$ac_objext
  13212. if { (ac_try="$ac_compile"
  13213. case "(($ac_try" in
  13214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13215. *) ac_try_echo=$ac_try;;
  13216. esac
  13217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13218. (eval "$ac_compile") 2>conftest.er1
  13219. ac_status=$?
  13220. grep -v '^ *+' conftest.er1 >conftest.err
  13221. rm -f conftest.er1
  13222. cat conftest.err >&5
  13223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13224. (exit $ac_status); } && {
  13225. test -z "$ac_cxx_werror_flag" ||
  13226. test ! -s conftest.err
  13227. } && test -s conftest.$ac_objext; then
  13228. ac_lo=0 ac_mid=0
  13229. while :; do
  13230. cat >conftest.$ac_ext <<_ACEOF
  13231. /* confdefs.h. */
  13232. _ACEOF
  13233. cat confdefs.h >>conftest.$ac_ext
  13234. cat >>conftest.$ac_ext <<_ACEOF
  13235. /* end confdefs.h. */
  13236. #include <stddef.h>
  13237. #include <limits.h>
  13238. int
  13239. main ()
  13240. {
  13241. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13242. test_array [0] = 0
  13243. ;
  13244. return 0;
  13245. }
  13246. _ACEOF
  13247. rm -f conftest.$ac_objext
  13248. if { (ac_try="$ac_compile"
  13249. case "(($ac_try" in
  13250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13251. *) ac_try_echo=$ac_try;;
  13252. esac
  13253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13254. (eval "$ac_compile") 2>conftest.er1
  13255. ac_status=$?
  13256. grep -v '^ *+' conftest.er1 >conftest.err
  13257. rm -f conftest.er1
  13258. cat conftest.err >&5
  13259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13260. (exit $ac_status); } && {
  13261. test -z "$ac_cxx_werror_flag" ||
  13262. test ! -s conftest.err
  13263. } && test -s conftest.$ac_objext; then
  13264. ac_hi=$ac_mid; break
  13265. else
  13266. echo "$as_me: failed program was:" >&5
  13267. sed 's/^/| /' conftest.$ac_ext >&5
  13268. ac_lo=`expr $ac_mid + 1`
  13269. if test $ac_lo -le $ac_mid; then
  13270. ac_lo= ac_hi=
  13271. break
  13272. fi
  13273. ac_mid=`expr 2 '*' $ac_mid + 1`
  13274. fi
  13275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13276. done
  13277. else
  13278. echo "$as_me: failed program was:" >&5
  13279. sed 's/^/| /' conftest.$ac_ext >&5
  13280. cat >conftest.$ac_ext <<_ACEOF
  13281. /* confdefs.h. */
  13282. _ACEOF
  13283. cat confdefs.h >>conftest.$ac_ext
  13284. cat >>conftest.$ac_ext <<_ACEOF
  13285. /* end confdefs.h. */
  13286. #include <stddef.h>
  13287. #include <limits.h>
  13288. int
  13289. main ()
  13290. {
  13291. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13292. test_array [0] = 0
  13293. ;
  13294. return 0;
  13295. }
  13296. _ACEOF
  13297. rm -f conftest.$ac_objext
  13298. if { (ac_try="$ac_compile"
  13299. case "(($ac_try" in
  13300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13301. *) ac_try_echo=$ac_try;;
  13302. esac
  13303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13304. (eval "$ac_compile") 2>conftest.er1
  13305. ac_status=$?
  13306. grep -v '^ *+' conftest.er1 >conftest.err
  13307. rm -f conftest.er1
  13308. cat conftest.err >&5
  13309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13310. (exit $ac_status); } && {
  13311. test -z "$ac_cxx_werror_flag" ||
  13312. test ! -s conftest.err
  13313. } && test -s conftest.$ac_objext; then
  13314. ac_hi=-1 ac_mid=-1
  13315. while :; do
  13316. cat >conftest.$ac_ext <<_ACEOF
  13317. /* confdefs.h. */
  13318. _ACEOF
  13319. cat confdefs.h >>conftest.$ac_ext
  13320. cat >>conftest.$ac_ext <<_ACEOF
  13321. /* end confdefs.h. */
  13322. #include <stddef.h>
  13323. #include <limits.h>
  13324. int
  13325. main ()
  13326. {
  13327. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13328. test_array [0] = 0
  13329. ;
  13330. return 0;
  13331. }
  13332. _ACEOF
  13333. rm -f conftest.$ac_objext
  13334. if { (ac_try="$ac_compile"
  13335. case "(($ac_try" in
  13336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13337. *) ac_try_echo=$ac_try;;
  13338. esac
  13339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13340. (eval "$ac_compile") 2>conftest.er1
  13341. ac_status=$?
  13342. grep -v '^ *+' conftest.er1 >conftest.err
  13343. rm -f conftest.er1
  13344. cat conftest.err >&5
  13345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13346. (exit $ac_status); } && {
  13347. test -z "$ac_cxx_werror_flag" ||
  13348. test ! -s conftest.err
  13349. } && test -s conftest.$ac_objext; then
  13350. ac_lo=$ac_mid; break
  13351. else
  13352. echo "$as_me: failed program was:" >&5
  13353. sed 's/^/| /' conftest.$ac_ext >&5
  13354. ac_hi=`expr '(' $ac_mid ')' - 1`
  13355. if test $ac_mid -le $ac_hi; then
  13356. ac_lo= ac_hi=
  13357. break
  13358. fi
  13359. ac_mid=`expr 2 '*' $ac_mid`
  13360. fi
  13361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13362. done
  13363. else
  13364. echo "$as_me: failed program was:" >&5
  13365. sed 's/^/| /' conftest.$ac_ext >&5
  13366. ac_lo= ac_hi=
  13367. fi
  13368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13369. fi
  13370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13371. # Binary search between lo and hi bounds.
  13372. while test "x$ac_lo" != "x$ac_hi"; do
  13373. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13374. cat >conftest.$ac_ext <<_ACEOF
  13375. /* confdefs.h. */
  13376. _ACEOF
  13377. cat confdefs.h >>conftest.$ac_ext
  13378. cat >>conftest.$ac_ext <<_ACEOF
  13379. /* end confdefs.h. */
  13380. #include <stddef.h>
  13381. #include <limits.h>
  13382. int
  13383. main ()
  13384. {
  13385. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13386. test_array [0] = 0
  13387. ;
  13388. return 0;
  13389. }
  13390. _ACEOF
  13391. rm -f conftest.$ac_objext
  13392. if { (ac_try="$ac_compile"
  13393. case "(($ac_try" in
  13394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13395. *) ac_try_echo=$ac_try;;
  13396. esac
  13397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13398. (eval "$ac_compile") 2>conftest.er1
  13399. ac_status=$?
  13400. grep -v '^ *+' conftest.er1 >conftest.err
  13401. rm -f conftest.er1
  13402. cat conftest.err >&5
  13403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13404. (exit $ac_status); } && {
  13405. test -z "$ac_cxx_werror_flag" ||
  13406. test ! -s conftest.err
  13407. } && test -s conftest.$ac_objext; then
  13408. ac_hi=$ac_mid
  13409. else
  13410. echo "$as_me: failed program was:" >&5
  13411. sed 's/^/| /' conftest.$ac_ext >&5
  13412. ac_lo=`expr '(' $ac_mid ')' + 1`
  13413. fi
  13414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13415. done
  13416. case $ac_lo in
  13417. ?*) size_t_bits_minus_1=$ac_lo;;
  13418. '') size_t_bits_minus_1= ;;
  13419. esac
  13420. else
  13421. cat >conftest.$ac_ext <<_ACEOF
  13422. /* confdefs.h. */
  13423. _ACEOF
  13424. cat confdefs.h >>conftest.$ac_ext
  13425. cat >>conftest.$ac_ext <<_ACEOF
  13426. /* end confdefs.h. */
  13427. #include <stddef.h>
  13428. #include <limits.h>
  13429. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13430. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13431. #include <stdio.h>
  13432. #include <stdlib.h>
  13433. int
  13434. main ()
  13435. {
  13436. FILE *f = fopen ("conftest.val", "w");
  13437. if (! f)
  13438. return 1;
  13439. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13440. {
  13441. long int i = longval ();
  13442. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13443. return 1;
  13444. fprintf (f, "%ld\n", i);
  13445. }
  13446. else
  13447. {
  13448. unsigned long int i = ulongval ();
  13449. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13450. return 1;
  13451. fprintf (f, "%lu\n", i);
  13452. }
  13453. return ferror (f) || fclose (f) != 0;
  13454. ;
  13455. return 0;
  13456. }
  13457. _ACEOF
  13458. rm -f conftest$ac_exeext
  13459. if { (ac_try="$ac_link"
  13460. case "(($ac_try" in
  13461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13462. *) ac_try_echo=$ac_try;;
  13463. esac
  13464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13465. (eval "$ac_link") 2>&5
  13466. ac_status=$?
  13467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13468. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13469. { (case "(($ac_try" in
  13470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13471. *) ac_try_echo=$ac_try;;
  13472. esac
  13473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13474. (eval "$ac_try") 2>&5
  13475. ac_status=$?
  13476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13477. (exit $ac_status); }; }; then
  13478. size_t_bits_minus_1=`cat conftest.val`
  13479. else
  13480. echo "$as_me: program exited with status $ac_status" >&5
  13481. echo "$as_me: failed program was:" >&5
  13482. sed 's/^/| /' conftest.$ac_ext >&5
  13483. ( exit $ac_status )
  13484. size_t_bits_minus_1=
  13485. fi
  13486. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13487. fi
  13488. rm -f conftest.val
  13489. if test "$cross_compiling" = yes; then
  13490. # Depending upon the size, compute the lo and hi bounds.
  13491. cat >conftest.$ac_ext <<_ACEOF
  13492. /* confdefs.h. */
  13493. _ACEOF
  13494. cat confdefs.h >>conftest.$ac_ext
  13495. cat >>conftest.$ac_ext <<_ACEOF
  13496. /* end confdefs.h. */
  13497. #include <stddef.h>
  13498. int
  13499. main ()
  13500. {
  13501. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13502. test_array [0] = 0
  13503. ;
  13504. return 0;
  13505. }
  13506. _ACEOF
  13507. rm -f conftest.$ac_objext
  13508. if { (ac_try="$ac_compile"
  13509. case "(($ac_try" in
  13510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13511. *) ac_try_echo=$ac_try;;
  13512. esac
  13513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13514. (eval "$ac_compile") 2>conftest.er1
  13515. ac_status=$?
  13516. grep -v '^ *+' conftest.er1 >conftest.err
  13517. rm -f conftest.er1
  13518. cat conftest.err >&5
  13519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13520. (exit $ac_status); } && {
  13521. test -z "$ac_cxx_werror_flag" ||
  13522. test ! -s conftest.err
  13523. } && test -s conftest.$ac_objext; then
  13524. ac_lo=0 ac_mid=0
  13525. while :; do
  13526. cat >conftest.$ac_ext <<_ACEOF
  13527. /* confdefs.h. */
  13528. _ACEOF
  13529. cat confdefs.h >>conftest.$ac_ext
  13530. cat >>conftest.$ac_ext <<_ACEOF
  13531. /* end confdefs.h. */
  13532. #include <stddef.h>
  13533. int
  13534. main ()
  13535. {
  13536. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13537. test_array [0] = 0
  13538. ;
  13539. return 0;
  13540. }
  13541. _ACEOF
  13542. rm -f conftest.$ac_objext
  13543. if { (ac_try="$ac_compile"
  13544. case "(($ac_try" in
  13545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13546. *) ac_try_echo=$ac_try;;
  13547. esac
  13548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13549. (eval "$ac_compile") 2>conftest.er1
  13550. ac_status=$?
  13551. grep -v '^ *+' conftest.er1 >conftest.err
  13552. rm -f conftest.er1
  13553. cat conftest.err >&5
  13554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13555. (exit $ac_status); } && {
  13556. test -z "$ac_cxx_werror_flag" ||
  13557. test ! -s conftest.err
  13558. } && test -s conftest.$ac_objext; then
  13559. ac_hi=$ac_mid; break
  13560. else
  13561. echo "$as_me: failed program was:" >&5
  13562. sed 's/^/| /' conftest.$ac_ext >&5
  13563. ac_lo=`expr $ac_mid + 1`
  13564. if test $ac_lo -le $ac_mid; then
  13565. ac_lo= ac_hi=
  13566. break
  13567. fi
  13568. ac_mid=`expr 2 '*' $ac_mid + 1`
  13569. fi
  13570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13571. done
  13572. else
  13573. echo "$as_me: failed program was:" >&5
  13574. sed 's/^/| /' conftest.$ac_ext >&5
  13575. cat >conftest.$ac_ext <<_ACEOF
  13576. /* confdefs.h. */
  13577. _ACEOF
  13578. cat confdefs.h >>conftest.$ac_ext
  13579. cat >>conftest.$ac_ext <<_ACEOF
  13580. /* end confdefs.h. */
  13581. #include <stddef.h>
  13582. int
  13583. main ()
  13584. {
  13585. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13586. test_array [0] = 0
  13587. ;
  13588. return 0;
  13589. }
  13590. _ACEOF
  13591. rm -f conftest.$ac_objext
  13592. if { (ac_try="$ac_compile"
  13593. case "(($ac_try" in
  13594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13595. *) ac_try_echo=$ac_try;;
  13596. esac
  13597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13598. (eval "$ac_compile") 2>conftest.er1
  13599. ac_status=$?
  13600. grep -v '^ *+' conftest.er1 >conftest.err
  13601. rm -f conftest.er1
  13602. cat conftest.err >&5
  13603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13604. (exit $ac_status); } && {
  13605. test -z "$ac_cxx_werror_flag" ||
  13606. test ! -s conftest.err
  13607. } && test -s conftest.$ac_objext; then
  13608. ac_hi=-1 ac_mid=-1
  13609. while :; do
  13610. cat >conftest.$ac_ext <<_ACEOF
  13611. /* confdefs.h. */
  13612. _ACEOF
  13613. cat confdefs.h >>conftest.$ac_ext
  13614. cat >>conftest.$ac_ext <<_ACEOF
  13615. /* end confdefs.h. */
  13616. #include <stddef.h>
  13617. int
  13618. main ()
  13619. {
  13620. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13621. test_array [0] = 0
  13622. ;
  13623. return 0;
  13624. }
  13625. _ACEOF
  13626. rm -f conftest.$ac_objext
  13627. if { (ac_try="$ac_compile"
  13628. case "(($ac_try" in
  13629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13630. *) ac_try_echo=$ac_try;;
  13631. esac
  13632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13633. (eval "$ac_compile") 2>conftest.er1
  13634. ac_status=$?
  13635. grep -v '^ *+' conftest.er1 >conftest.err
  13636. rm -f conftest.er1
  13637. cat conftest.err >&5
  13638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13639. (exit $ac_status); } && {
  13640. test -z "$ac_cxx_werror_flag" ||
  13641. test ! -s conftest.err
  13642. } && test -s conftest.$ac_objext; then
  13643. ac_lo=$ac_mid; break
  13644. else
  13645. echo "$as_me: failed program was:" >&5
  13646. sed 's/^/| /' conftest.$ac_ext >&5
  13647. ac_hi=`expr '(' $ac_mid ')' - 1`
  13648. if test $ac_mid -le $ac_hi; then
  13649. ac_lo= ac_hi=
  13650. break
  13651. fi
  13652. ac_mid=`expr 2 '*' $ac_mid`
  13653. fi
  13654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13655. done
  13656. else
  13657. echo "$as_me: failed program was:" >&5
  13658. sed 's/^/| /' conftest.$ac_ext >&5
  13659. ac_lo= ac_hi=
  13660. fi
  13661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13662. fi
  13663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13664. # Binary search between lo and hi bounds.
  13665. while test "x$ac_lo" != "x$ac_hi"; do
  13666. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13667. cat >conftest.$ac_ext <<_ACEOF
  13668. /* confdefs.h. */
  13669. _ACEOF
  13670. cat confdefs.h >>conftest.$ac_ext
  13671. cat >>conftest.$ac_ext <<_ACEOF
  13672. /* end confdefs.h. */
  13673. #include <stddef.h>
  13674. int
  13675. main ()
  13676. {
  13677. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13678. test_array [0] = 0
  13679. ;
  13680. return 0;
  13681. }
  13682. _ACEOF
  13683. rm -f conftest.$ac_objext
  13684. if { (ac_try="$ac_compile"
  13685. case "(($ac_try" in
  13686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13687. *) ac_try_echo=$ac_try;;
  13688. esac
  13689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13690. (eval "$ac_compile") 2>conftest.er1
  13691. ac_status=$?
  13692. grep -v '^ *+' conftest.er1 >conftest.err
  13693. rm -f conftest.er1
  13694. cat conftest.err >&5
  13695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13696. (exit $ac_status); } && {
  13697. test -z "$ac_cxx_werror_flag" ||
  13698. test ! -s conftest.err
  13699. } && test -s conftest.$ac_objext; then
  13700. ac_hi=$ac_mid
  13701. else
  13702. echo "$as_me: failed program was:" >&5
  13703. sed 's/^/| /' conftest.$ac_ext >&5
  13704. ac_lo=`expr '(' $ac_mid ')' + 1`
  13705. fi
  13706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13707. done
  13708. case $ac_lo in
  13709. ?*) fits_in_uint=$ac_lo;;
  13710. '') fits_in_uint= ;;
  13711. esac
  13712. else
  13713. cat >conftest.$ac_ext <<_ACEOF
  13714. /* confdefs.h. */
  13715. _ACEOF
  13716. cat confdefs.h >>conftest.$ac_ext
  13717. cat >>conftest.$ac_ext <<_ACEOF
  13718. /* end confdefs.h. */
  13719. #include <stddef.h>
  13720. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13721. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13722. #include <stdio.h>
  13723. #include <stdlib.h>
  13724. int
  13725. main ()
  13726. {
  13727. FILE *f = fopen ("conftest.val", "w");
  13728. if (! f)
  13729. return 1;
  13730. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13731. {
  13732. long int i = longval ();
  13733. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13734. return 1;
  13735. fprintf (f, "%ld\n", i);
  13736. }
  13737. else
  13738. {
  13739. unsigned long int i = ulongval ();
  13740. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13741. return 1;
  13742. fprintf (f, "%lu\n", i);
  13743. }
  13744. return ferror (f) || fclose (f) != 0;
  13745. ;
  13746. return 0;
  13747. }
  13748. _ACEOF
  13749. rm -f conftest$ac_exeext
  13750. if { (ac_try="$ac_link"
  13751. case "(($ac_try" in
  13752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13753. *) ac_try_echo=$ac_try;;
  13754. esac
  13755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13756. (eval "$ac_link") 2>&5
  13757. ac_status=$?
  13758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13759. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13760. { (case "(($ac_try" in
  13761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13762. *) ac_try_echo=$ac_try;;
  13763. esac
  13764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13765. (eval "$ac_try") 2>&5
  13766. ac_status=$?
  13767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13768. (exit $ac_status); }; }; then
  13769. fits_in_uint=`cat conftest.val`
  13770. else
  13771. echo "$as_me: program exited with status $ac_status" >&5
  13772. echo "$as_me: failed program was:" >&5
  13773. sed 's/^/| /' conftest.$ac_ext >&5
  13774. ( exit $ac_status )
  13775. fits_in_uint=
  13776. fi
  13777. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13778. fi
  13779. rm -f conftest.val
  13780. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13781. if test $fits_in_uint = 1; then
  13782. cat >conftest.$ac_ext <<_ACEOF
  13783. /* confdefs.h. */
  13784. _ACEOF
  13785. cat confdefs.h >>conftest.$ac_ext
  13786. cat >>conftest.$ac_ext <<_ACEOF
  13787. /* end confdefs.h. */
  13788. #include <stddef.h>
  13789. extern size_t foo;
  13790. extern unsigned long foo;
  13791. int
  13792. main ()
  13793. {
  13794. ;
  13795. return 0;
  13796. }
  13797. _ACEOF
  13798. rm -f conftest.$ac_objext
  13799. if { (ac_try="$ac_compile"
  13800. case "(($ac_try" in
  13801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13802. *) ac_try_echo=$ac_try;;
  13803. esac
  13804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13805. (eval "$ac_compile") 2>conftest.er1
  13806. ac_status=$?
  13807. grep -v '^ *+' conftest.er1 >conftest.err
  13808. rm -f conftest.er1
  13809. cat conftest.err >&5
  13810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13811. (exit $ac_status); } && {
  13812. test -z "$ac_cxx_werror_flag" ||
  13813. test ! -s conftest.err
  13814. } && test -s conftest.$ac_objext; then
  13815. fits_in_uint=0
  13816. else
  13817. echo "$as_me: failed program was:" >&5
  13818. sed 's/^/| /' conftest.$ac_ext >&5
  13819. fi
  13820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13821. fi
  13822. if test $fits_in_uint = 1; then
  13823. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13824. else
  13825. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13826. fi
  13827. else
  13828. gl_cv_size_max='((size_t)~(size_t)0)'
  13829. fi
  13830. fi
  13831. fi
  13832. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13833. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13834. if test "$gl_cv_size_max" != yes; then
  13835. cat >>confdefs.h <<_ACEOF
  13836. #define SIZE_MAX $gl_cv_size_max
  13837. _ACEOF
  13838. fi
  13839. for ac_header in stdint.h
  13840. do
  13841. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13842. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13843. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13844. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13845. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13846. echo $ECHO_N "(cached) $ECHO_C" >&6
  13847. fi
  13848. ac_res=`eval echo '${'$as_ac_Header'}'`
  13849. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13850. echo "${ECHO_T}$ac_res" >&6; }
  13851. else
  13852. # Is the header compilable?
  13853. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13854. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13855. cat >conftest.$ac_ext <<_ACEOF
  13856. /* confdefs.h. */
  13857. _ACEOF
  13858. cat confdefs.h >>conftest.$ac_ext
  13859. cat >>conftest.$ac_ext <<_ACEOF
  13860. /* end confdefs.h. */
  13861. $ac_includes_default
  13862. #include <$ac_header>
  13863. _ACEOF
  13864. rm -f conftest.$ac_objext
  13865. if { (ac_try="$ac_compile"
  13866. case "(($ac_try" in
  13867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13868. *) ac_try_echo=$ac_try;;
  13869. esac
  13870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13871. (eval "$ac_compile") 2>conftest.er1
  13872. ac_status=$?
  13873. grep -v '^ *+' conftest.er1 >conftest.err
  13874. rm -f conftest.er1
  13875. cat conftest.err >&5
  13876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13877. (exit $ac_status); } && {
  13878. test -z "$ac_cxx_werror_flag" ||
  13879. test ! -s conftest.err
  13880. } && test -s conftest.$ac_objext; then
  13881. ac_header_compiler=yes
  13882. else
  13883. echo "$as_me: failed program was:" >&5
  13884. sed 's/^/| /' conftest.$ac_ext >&5
  13885. ac_header_compiler=no
  13886. fi
  13887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13888. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13889. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13890. # Is the header present?
  13891. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13892. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13893. cat >conftest.$ac_ext <<_ACEOF
  13894. /* confdefs.h. */
  13895. _ACEOF
  13896. cat confdefs.h >>conftest.$ac_ext
  13897. cat >>conftest.$ac_ext <<_ACEOF
  13898. /* end confdefs.h. */
  13899. #include <$ac_header>
  13900. _ACEOF
  13901. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13902. case "(($ac_try" in
  13903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13904. *) ac_try_echo=$ac_try;;
  13905. esac
  13906. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13907. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13908. ac_status=$?
  13909. grep -v '^ *+' conftest.er1 >conftest.err
  13910. rm -f conftest.er1
  13911. cat conftest.err >&5
  13912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13913. (exit $ac_status); } >/dev/null && {
  13914. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13915. test ! -s conftest.err
  13916. }; then
  13917. ac_header_preproc=yes
  13918. else
  13919. echo "$as_me: failed program was:" >&5
  13920. sed 's/^/| /' conftest.$ac_ext >&5
  13921. ac_header_preproc=no
  13922. fi
  13923. rm -f conftest.err conftest.$ac_ext
  13924. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13925. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13926. # So? What about this header?
  13927. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13928. yes:no: )
  13929. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13930. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13931. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13932. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13933. ac_header_preproc=yes
  13934. ;;
  13935. no:yes:* )
  13936. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13937. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13938. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13939. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13940. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13941. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13942. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13943. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13944. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13945. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13946. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13947. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13948. ( cat <<\_ASBOX
  13949. ## ----------------------------------------------- ##
  13950. ## Report this to t-tujikawa@users.sourceforge.net ##
  13951. ## ----------------------------------------------- ##
  13952. _ASBOX
  13953. ) | sed "s/^/$as_me: WARNING: /" >&2
  13954. ;;
  13955. esac
  13956. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13957. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13958. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13959. echo $ECHO_N "(cached) $ECHO_C" >&6
  13960. else
  13961. eval "$as_ac_Header=\$ac_header_preproc"
  13962. fi
  13963. ac_res=`eval echo '${'$as_ac_Header'}'`
  13964. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13965. echo "${ECHO_T}$ac_res" >&6; }
  13966. fi
  13967. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13968. cat >>confdefs.h <<_ACEOF
  13969. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13970. _ACEOF
  13971. fi
  13972. done
  13973. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13974. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13975. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13976. echo $ECHO_N "(cached) $ECHO_C" >&6
  13977. else
  13978. gt_save_LIBS="$LIBS"
  13979. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13980. cat >conftest.$ac_ext <<_ACEOF
  13981. /* confdefs.h. */
  13982. _ACEOF
  13983. cat confdefs.h >>conftest.$ac_ext
  13984. cat >>conftest.$ac_ext <<_ACEOF
  13985. /* end confdefs.h. */
  13986. #include <CoreFoundation/CFPreferences.h>
  13987. int
  13988. main ()
  13989. {
  13990. CFPreferencesCopyAppValue(NULL, NULL)
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. rm -f conftest.$ac_objext conftest$ac_exeext
  13996. if { (ac_try="$ac_link"
  13997. case "(($ac_try" in
  13998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13999. *) ac_try_echo=$ac_try;;
  14000. esac
  14001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14002. (eval "$ac_link") 2>conftest.er1
  14003. ac_status=$?
  14004. grep -v '^ *+' conftest.er1 >conftest.err
  14005. rm -f conftest.er1
  14006. cat conftest.err >&5
  14007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14008. (exit $ac_status); } && {
  14009. test -z "$ac_cxx_werror_flag" ||
  14010. test ! -s conftest.err
  14011. } && test -s conftest$ac_exeext &&
  14012. $as_test_x conftest$ac_exeext; then
  14013. gt_cv_func_CFPreferencesCopyAppValue=yes
  14014. else
  14015. echo "$as_me: failed program was:" >&5
  14016. sed 's/^/| /' conftest.$ac_ext >&5
  14017. gt_cv_func_CFPreferencesCopyAppValue=no
  14018. fi
  14019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14020. conftest$ac_exeext conftest.$ac_ext
  14021. LIBS="$gt_save_LIBS"
  14022. fi
  14023. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14024. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14025. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14026. cat >>confdefs.h <<\_ACEOF
  14027. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14028. _ACEOF
  14029. fi
  14030. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14031. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14032. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14033. echo $ECHO_N "(cached) $ECHO_C" >&6
  14034. else
  14035. gt_save_LIBS="$LIBS"
  14036. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14037. cat >conftest.$ac_ext <<_ACEOF
  14038. /* confdefs.h. */
  14039. _ACEOF
  14040. cat confdefs.h >>conftest.$ac_ext
  14041. cat >>conftest.$ac_ext <<_ACEOF
  14042. /* end confdefs.h. */
  14043. #include <CoreFoundation/CFLocale.h>
  14044. int
  14045. main ()
  14046. {
  14047. CFLocaleCopyCurrent();
  14048. ;
  14049. return 0;
  14050. }
  14051. _ACEOF
  14052. rm -f conftest.$ac_objext conftest$ac_exeext
  14053. if { (ac_try="$ac_link"
  14054. case "(($ac_try" in
  14055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14056. *) ac_try_echo=$ac_try;;
  14057. esac
  14058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14059. (eval "$ac_link") 2>conftest.er1
  14060. ac_status=$?
  14061. grep -v '^ *+' conftest.er1 >conftest.err
  14062. rm -f conftest.er1
  14063. cat conftest.err >&5
  14064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14065. (exit $ac_status); } && {
  14066. test -z "$ac_cxx_werror_flag" ||
  14067. test ! -s conftest.err
  14068. } && test -s conftest$ac_exeext &&
  14069. $as_test_x conftest$ac_exeext; then
  14070. gt_cv_func_CFLocaleCopyCurrent=yes
  14071. else
  14072. echo "$as_me: failed program was:" >&5
  14073. sed 's/^/| /' conftest.$ac_ext >&5
  14074. gt_cv_func_CFLocaleCopyCurrent=no
  14075. fi
  14076. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14077. conftest$ac_exeext conftest.$ac_ext
  14078. LIBS="$gt_save_LIBS"
  14079. fi
  14080. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14081. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14082. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14083. cat >>confdefs.h <<\_ACEOF
  14084. #define HAVE_CFLOCALECOPYCURRENT 1
  14085. _ACEOF
  14086. fi
  14087. INTL_MACOSX_LIBS=
  14088. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14089. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14090. fi
  14091. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14092. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14093. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14094. echo $ECHO_N "(cached) $ECHO_C" >&6
  14095. else
  14096. cat >conftest.$ac_ext <<_ACEOF
  14097. /* confdefs.h. */
  14098. _ACEOF
  14099. cat confdefs.h >>conftest.$ac_ext
  14100. cat >>conftest.$ac_ext <<_ACEOF
  14101. /* end confdefs.h. */
  14102. $ac_includes_default
  14103. typedef ptrdiff_t ac__type_new_;
  14104. int
  14105. main ()
  14106. {
  14107. if ((ac__type_new_ *) 0)
  14108. return 0;
  14109. if (sizeof (ac__type_new_))
  14110. return 0;
  14111. ;
  14112. return 0;
  14113. }
  14114. _ACEOF
  14115. rm -f conftest.$ac_objext
  14116. if { (ac_try="$ac_compile"
  14117. case "(($ac_try" in
  14118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14119. *) ac_try_echo=$ac_try;;
  14120. esac
  14121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14122. (eval "$ac_compile") 2>conftest.er1
  14123. ac_status=$?
  14124. grep -v '^ *+' conftest.er1 >conftest.err
  14125. rm -f conftest.er1
  14126. cat conftest.err >&5
  14127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14128. (exit $ac_status); } && {
  14129. test -z "$ac_cxx_werror_flag" ||
  14130. test ! -s conftest.err
  14131. } && test -s conftest.$ac_objext; then
  14132. ac_cv_type_ptrdiff_t=yes
  14133. else
  14134. echo "$as_me: failed program was:" >&5
  14135. sed 's/^/| /' conftest.$ac_ext >&5
  14136. ac_cv_type_ptrdiff_t=no
  14137. fi
  14138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14139. fi
  14140. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14141. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14142. if test $ac_cv_type_ptrdiff_t = yes; then
  14143. :
  14144. else
  14145. cat >>confdefs.h <<\_ACEOF
  14146. #define ptrdiff_t long
  14147. _ACEOF
  14148. fi
  14149. for ac_header in stddef.h stdlib.h string.h
  14150. do
  14151. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14152. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14153. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14154. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14155. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14156. echo $ECHO_N "(cached) $ECHO_C" >&6
  14157. fi
  14158. ac_res=`eval echo '${'$as_ac_Header'}'`
  14159. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14160. echo "${ECHO_T}$ac_res" >&6; }
  14161. else
  14162. # Is the header compilable?
  14163. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14164. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14165. cat >conftest.$ac_ext <<_ACEOF
  14166. /* confdefs.h. */
  14167. _ACEOF
  14168. cat confdefs.h >>conftest.$ac_ext
  14169. cat >>conftest.$ac_ext <<_ACEOF
  14170. /* end confdefs.h. */
  14171. $ac_includes_default
  14172. #include <$ac_header>
  14173. _ACEOF
  14174. rm -f conftest.$ac_objext
  14175. if { (ac_try="$ac_compile"
  14176. case "(($ac_try" in
  14177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14178. *) ac_try_echo=$ac_try;;
  14179. esac
  14180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14181. (eval "$ac_compile") 2>conftest.er1
  14182. ac_status=$?
  14183. grep -v '^ *+' conftest.er1 >conftest.err
  14184. rm -f conftest.er1
  14185. cat conftest.err >&5
  14186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14187. (exit $ac_status); } && {
  14188. test -z "$ac_cxx_werror_flag" ||
  14189. test ! -s conftest.err
  14190. } && test -s conftest.$ac_objext; then
  14191. ac_header_compiler=yes
  14192. else
  14193. echo "$as_me: failed program was:" >&5
  14194. sed 's/^/| /' conftest.$ac_ext >&5
  14195. ac_header_compiler=no
  14196. fi
  14197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14198. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14199. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14200. # Is the header present?
  14201. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14202. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14203. cat >conftest.$ac_ext <<_ACEOF
  14204. /* confdefs.h. */
  14205. _ACEOF
  14206. cat confdefs.h >>conftest.$ac_ext
  14207. cat >>conftest.$ac_ext <<_ACEOF
  14208. /* end confdefs.h. */
  14209. #include <$ac_header>
  14210. _ACEOF
  14211. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14212. case "(($ac_try" in
  14213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14214. *) ac_try_echo=$ac_try;;
  14215. esac
  14216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14217. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14218. ac_status=$?
  14219. grep -v '^ *+' conftest.er1 >conftest.err
  14220. rm -f conftest.er1
  14221. cat conftest.err >&5
  14222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14223. (exit $ac_status); } >/dev/null && {
  14224. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14225. test ! -s conftest.err
  14226. }; then
  14227. ac_header_preproc=yes
  14228. else
  14229. echo "$as_me: failed program was:" >&5
  14230. sed 's/^/| /' conftest.$ac_ext >&5
  14231. ac_header_preproc=no
  14232. fi
  14233. rm -f conftest.err conftest.$ac_ext
  14234. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14235. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14236. # So? What about this header?
  14237. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14238. yes:no: )
  14239. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14240. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14241. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14242. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14243. ac_header_preproc=yes
  14244. ;;
  14245. no:yes:* )
  14246. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14247. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14248. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14249. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14250. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14251. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14252. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14253. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14254. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14255. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14256. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14257. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14258. ( cat <<\_ASBOX
  14259. ## ----------------------------------------------- ##
  14260. ## Report this to t-tujikawa@users.sourceforge.net ##
  14261. ## ----------------------------------------------- ##
  14262. _ASBOX
  14263. ) | sed "s/^/$as_me: WARNING: /" >&2
  14264. ;;
  14265. esac
  14266. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14267. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14268. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14269. echo $ECHO_N "(cached) $ECHO_C" >&6
  14270. else
  14271. eval "$as_ac_Header=\$ac_header_preproc"
  14272. fi
  14273. ac_res=`eval echo '${'$as_ac_Header'}'`
  14274. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14275. echo "${ECHO_T}$ac_res" >&6; }
  14276. fi
  14277. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14278. cat >>confdefs.h <<_ACEOF
  14279. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14280. _ACEOF
  14281. fi
  14282. done
  14283. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14284. do
  14285. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14286. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14287. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14288. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14289. echo $ECHO_N "(cached) $ECHO_C" >&6
  14290. else
  14291. cat >conftest.$ac_ext <<_ACEOF
  14292. /* confdefs.h. */
  14293. _ACEOF
  14294. cat confdefs.h >>conftest.$ac_ext
  14295. cat >>conftest.$ac_ext <<_ACEOF
  14296. /* end confdefs.h. */
  14297. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14298. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14299. #define $ac_func innocuous_$ac_func
  14300. /* System header to define __stub macros and hopefully few prototypes,
  14301. which can conflict with char $ac_func (); below.
  14302. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14303. <limits.h> exists even on freestanding compilers. */
  14304. #ifdef __STDC__
  14305. # include <limits.h>
  14306. #else
  14307. # include <assert.h>
  14308. #endif
  14309. #undef $ac_func
  14310. /* Override any GCC internal prototype to avoid an error.
  14311. Use char because int might match the return type of a GCC
  14312. builtin and then its argument prototype would still apply. */
  14313. #ifdef __cplusplus
  14314. extern "C"
  14315. #endif
  14316. char $ac_func ();
  14317. /* The GNU C library defines this for functions which it implements
  14318. to always fail with ENOSYS. Some functions are actually named
  14319. something starting with __ and the normal name is an alias. */
  14320. #if defined __stub_$ac_func || defined __stub___$ac_func
  14321. choke me
  14322. #endif
  14323. int
  14324. main ()
  14325. {
  14326. return $ac_func ();
  14327. ;
  14328. return 0;
  14329. }
  14330. _ACEOF
  14331. rm -f conftest.$ac_objext conftest$ac_exeext
  14332. if { (ac_try="$ac_link"
  14333. case "(($ac_try" in
  14334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14335. *) ac_try_echo=$ac_try;;
  14336. esac
  14337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14338. (eval "$ac_link") 2>conftest.er1
  14339. ac_status=$?
  14340. grep -v '^ *+' conftest.er1 >conftest.err
  14341. rm -f conftest.er1
  14342. cat conftest.err >&5
  14343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14344. (exit $ac_status); } && {
  14345. test -z "$ac_cxx_werror_flag" ||
  14346. test ! -s conftest.err
  14347. } && test -s conftest$ac_exeext &&
  14348. $as_test_x conftest$ac_exeext; then
  14349. eval "$as_ac_var=yes"
  14350. else
  14351. echo "$as_me: failed program was:" >&5
  14352. sed 's/^/| /' conftest.$ac_ext >&5
  14353. eval "$as_ac_var=no"
  14354. fi
  14355. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14356. conftest$ac_exeext conftest.$ac_ext
  14357. fi
  14358. ac_res=`eval echo '${'$as_ac_var'}'`
  14359. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14360. echo "${ECHO_T}$ac_res" >&6; }
  14361. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14362. cat >>confdefs.h <<_ACEOF
  14363. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14364. _ACEOF
  14365. fi
  14366. done
  14367. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14368. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14369. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14370. echo $ECHO_N "(cached) $ECHO_C" >&6
  14371. else
  14372. cat >conftest.$ac_ext <<_ACEOF
  14373. /* confdefs.h. */
  14374. _ACEOF
  14375. cat confdefs.h >>conftest.$ac_ext
  14376. cat >>conftest.$ac_ext <<_ACEOF
  14377. /* end confdefs.h. */
  14378. #include <stdio.h>
  14379. int
  14380. main ()
  14381. {
  14382. #ifndef _snprintf
  14383. char *p = (char *) _snprintf;
  14384. #endif
  14385. ;
  14386. return 0;
  14387. }
  14388. _ACEOF
  14389. rm -f conftest.$ac_objext
  14390. if { (ac_try="$ac_compile"
  14391. case "(($ac_try" in
  14392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14393. *) ac_try_echo=$ac_try;;
  14394. esac
  14395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14396. (eval "$ac_compile") 2>conftest.er1
  14397. ac_status=$?
  14398. grep -v '^ *+' conftest.er1 >conftest.err
  14399. rm -f conftest.er1
  14400. cat conftest.err >&5
  14401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14402. (exit $ac_status); } && {
  14403. test -z "$ac_cxx_werror_flag" ||
  14404. test ! -s conftest.err
  14405. } && test -s conftest.$ac_objext; then
  14406. ac_cv_have_decl__snprintf=yes
  14407. else
  14408. echo "$as_me: failed program was:" >&5
  14409. sed 's/^/| /' conftest.$ac_ext >&5
  14410. ac_cv_have_decl__snprintf=no
  14411. fi
  14412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14413. fi
  14414. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14415. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14416. if test $ac_cv_have_decl__snprintf = yes; then
  14417. gt_value=1
  14418. else
  14419. gt_value=0
  14420. fi
  14421. cat >>confdefs.h <<_ACEOF
  14422. #define HAVE_DECL__SNPRINTF $gt_value
  14423. _ACEOF
  14424. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14425. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14426. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14427. echo $ECHO_N "(cached) $ECHO_C" >&6
  14428. else
  14429. cat >conftest.$ac_ext <<_ACEOF
  14430. /* confdefs.h. */
  14431. _ACEOF
  14432. cat confdefs.h >>conftest.$ac_ext
  14433. cat >>conftest.$ac_ext <<_ACEOF
  14434. /* end confdefs.h. */
  14435. #include <stdio.h>
  14436. int
  14437. main ()
  14438. {
  14439. #ifndef _snwprintf
  14440. char *p = (char *) _snwprintf;
  14441. #endif
  14442. ;
  14443. return 0;
  14444. }
  14445. _ACEOF
  14446. rm -f conftest.$ac_objext
  14447. if { (ac_try="$ac_compile"
  14448. case "(($ac_try" in
  14449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14450. *) ac_try_echo=$ac_try;;
  14451. esac
  14452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14453. (eval "$ac_compile") 2>conftest.er1
  14454. ac_status=$?
  14455. grep -v '^ *+' conftest.er1 >conftest.err
  14456. rm -f conftest.er1
  14457. cat conftest.err >&5
  14458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14459. (exit $ac_status); } && {
  14460. test -z "$ac_cxx_werror_flag" ||
  14461. test ! -s conftest.err
  14462. } && test -s conftest.$ac_objext; then
  14463. ac_cv_have_decl__snwprintf=yes
  14464. else
  14465. echo "$as_me: failed program was:" >&5
  14466. sed 's/^/| /' conftest.$ac_ext >&5
  14467. ac_cv_have_decl__snwprintf=no
  14468. fi
  14469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14470. fi
  14471. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14472. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14473. if test $ac_cv_have_decl__snwprintf = yes; then
  14474. gt_value=1
  14475. else
  14476. gt_value=0
  14477. fi
  14478. cat >>confdefs.h <<_ACEOF
  14479. #define HAVE_DECL__SNWPRINTF $gt_value
  14480. _ACEOF
  14481. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14482. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14483. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14484. echo $ECHO_N "(cached) $ECHO_C" >&6
  14485. else
  14486. cat >conftest.$ac_ext <<_ACEOF
  14487. /* confdefs.h. */
  14488. _ACEOF
  14489. cat confdefs.h >>conftest.$ac_ext
  14490. cat >>conftest.$ac_ext <<_ACEOF
  14491. /* end confdefs.h. */
  14492. #include <stdio.h>
  14493. int
  14494. main ()
  14495. {
  14496. #ifndef getc_unlocked
  14497. char *p = (char *) getc_unlocked;
  14498. #endif
  14499. ;
  14500. return 0;
  14501. }
  14502. _ACEOF
  14503. rm -f conftest.$ac_objext
  14504. if { (ac_try="$ac_compile"
  14505. case "(($ac_try" in
  14506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14507. *) ac_try_echo=$ac_try;;
  14508. esac
  14509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14510. (eval "$ac_compile") 2>conftest.er1
  14511. ac_status=$?
  14512. grep -v '^ *+' conftest.er1 >conftest.err
  14513. rm -f conftest.er1
  14514. cat conftest.err >&5
  14515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14516. (exit $ac_status); } && {
  14517. test -z "$ac_cxx_werror_flag" ||
  14518. test ! -s conftest.err
  14519. } && test -s conftest.$ac_objext; then
  14520. ac_cv_have_decl_getc_unlocked=yes
  14521. else
  14522. echo "$as_me: failed program was:" >&5
  14523. sed 's/^/| /' conftest.$ac_ext >&5
  14524. ac_cv_have_decl_getc_unlocked=no
  14525. fi
  14526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14527. fi
  14528. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14529. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14530. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14531. gt_value=1
  14532. else
  14533. gt_value=0
  14534. fi
  14535. cat >>confdefs.h <<_ACEOF
  14536. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14537. _ACEOF
  14538. case $gt_cv_func_printf_posix in
  14539. *yes) HAVE_POSIX_PRINTF=1 ;;
  14540. *) HAVE_POSIX_PRINTF=0 ;;
  14541. esac
  14542. if test "$ac_cv_func_asprintf" = yes; then
  14543. HAVE_ASPRINTF=1
  14544. else
  14545. HAVE_ASPRINTF=0
  14546. fi
  14547. if test "$ac_cv_func_snprintf" = yes; then
  14548. HAVE_SNPRINTF=1
  14549. else
  14550. HAVE_SNPRINTF=0
  14551. fi
  14552. if test "$ac_cv_func_wprintf" = yes; then
  14553. HAVE_WPRINTF=1
  14554. else
  14555. HAVE_WPRINTF=0
  14556. fi
  14557. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14558. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14559. if test "${am_cv_langinfo_codeset+set}" = set; then
  14560. echo $ECHO_N "(cached) $ECHO_C" >&6
  14561. else
  14562. cat >conftest.$ac_ext <<_ACEOF
  14563. /* confdefs.h. */
  14564. _ACEOF
  14565. cat confdefs.h >>conftest.$ac_ext
  14566. cat >>conftest.$ac_ext <<_ACEOF
  14567. /* end confdefs.h. */
  14568. #include <langinfo.h>
  14569. int
  14570. main ()
  14571. {
  14572. char* cs = nl_langinfo(CODESET); return !cs;
  14573. ;
  14574. return 0;
  14575. }
  14576. _ACEOF
  14577. rm -f conftest.$ac_objext conftest$ac_exeext
  14578. if { (ac_try="$ac_link"
  14579. case "(($ac_try" in
  14580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14581. *) ac_try_echo=$ac_try;;
  14582. esac
  14583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14584. (eval "$ac_link") 2>conftest.er1
  14585. ac_status=$?
  14586. grep -v '^ *+' conftest.er1 >conftest.err
  14587. rm -f conftest.er1
  14588. cat conftest.err >&5
  14589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14590. (exit $ac_status); } && {
  14591. test -z "$ac_cxx_werror_flag" ||
  14592. test ! -s conftest.err
  14593. } && test -s conftest$ac_exeext &&
  14594. $as_test_x conftest$ac_exeext; then
  14595. am_cv_langinfo_codeset=yes
  14596. else
  14597. echo "$as_me: failed program was:" >&5
  14598. sed 's/^/| /' conftest.$ac_ext >&5
  14599. am_cv_langinfo_codeset=no
  14600. fi
  14601. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14602. conftest$ac_exeext conftest.$ac_ext
  14603. fi
  14604. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14605. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14606. if test $am_cv_langinfo_codeset = yes; then
  14607. cat >>confdefs.h <<\_ACEOF
  14608. #define HAVE_LANGINFO_CODESET 1
  14609. _ACEOF
  14610. fi
  14611. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14612. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14613. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14614. echo $ECHO_N "(cached) $ECHO_C" >&6
  14615. else
  14616. cat >conftest.$ac_ext <<_ACEOF
  14617. /* confdefs.h. */
  14618. _ACEOF
  14619. cat confdefs.h >>conftest.$ac_ext
  14620. cat >>conftest.$ac_ext <<_ACEOF
  14621. /* end confdefs.h. */
  14622. #include <locale.h>
  14623. int
  14624. main ()
  14625. {
  14626. return LC_MESSAGES
  14627. ;
  14628. return 0;
  14629. }
  14630. _ACEOF
  14631. rm -f conftest.$ac_objext conftest$ac_exeext
  14632. if { (ac_try="$ac_link"
  14633. case "(($ac_try" in
  14634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14635. *) ac_try_echo=$ac_try;;
  14636. esac
  14637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14638. (eval "$ac_link") 2>conftest.er1
  14639. ac_status=$?
  14640. grep -v '^ *+' conftest.er1 >conftest.err
  14641. rm -f conftest.er1
  14642. cat conftest.err >&5
  14643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14644. (exit $ac_status); } && {
  14645. test -z "$ac_cxx_werror_flag" ||
  14646. test ! -s conftest.err
  14647. } && test -s conftest$ac_exeext &&
  14648. $as_test_x conftest$ac_exeext; then
  14649. gt_cv_val_LC_MESSAGES=yes
  14650. else
  14651. echo "$as_me: failed program was:" >&5
  14652. sed 's/^/| /' conftest.$ac_ext >&5
  14653. gt_cv_val_LC_MESSAGES=no
  14654. fi
  14655. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14656. conftest$ac_exeext conftest.$ac_ext
  14657. fi
  14658. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14659. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14660. if test $gt_cv_val_LC_MESSAGES = yes; then
  14661. cat >>confdefs.h <<\_ACEOF
  14662. #define HAVE_LC_MESSAGES 1
  14663. _ACEOF
  14664. fi
  14665. if test "$enable_shared" = yes; then
  14666. case "$host_os" in
  14667. mingw* | cygwin*) is_woe32dll=yes ;;
  14668. *) is_woe32dll=no ;;
  14669. esac
  14670. else
  14671. is_woe32dll=no
  14672. fi
  14673. WOE32DLL=$is_woe32dll
  14674. case "$host_os" in
  14675. mingw* | cygwin*) is_woe32=yes ;;
  14676. *) is_woe32=no ;;
  14677. esac
  14678. WOE32=$is_woe32
  14679. if test $WOE32 = yes; then
  14680. if test -n "$ac_tool_prefix"; then
  14681. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14682. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14683. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14684. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14685. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14686. echo $ECHO_N "(cached) $ECHO_C" >&6
  14687. else
  14688. if test -n "$WINDRES"; then
  14689. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14690. else
  14691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14692. for as_dir in $PATH
  14693. do
  14694. IFS=$as_save_IFS
  14695. test -z "$as_dir" && as_dir=.
  14696. for ac_exec_ext in '' $ac_executable_extensions; do
  14697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14698. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14699. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14700. break 2
  14701. fi
  14702. done
  14703. done
  14704. IFS=$as_save_IFS
  14705. fi
  14706. fi
  14707. WINDRES=$ac_cv_prog_WINDRES
  14708. if test -n "$WINDRES"; then
  14709. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14710. echo "${ECHO_T}$WINDRES" >&6; }
  14711. else
  14712. { echo "$as_me:$LINENO: result: no" >&5
  14713. echo "${ECHO_T}no" >&6; }
  14714. fi
  14715. fi
  14716. if test -z "$ac_cv_prog_WINDRES"; then
  14717. ac_ct_WINDRES=$WINDRES
  14718. # Extract the first word of "windres", so it can be a program name with args.
  14719. set dummy windres; ac_word=$2
  14720. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14721. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14722. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14723. echo $ECHO_N "(cached) $ECHO_C" >&6
  14724. else
  14725. if test -n "$ac_ct_WINDRES"; then
  14726. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14727. else
  14728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14729. for as_dir in $PATH
  14730. do
  14731. IFS=$as_save_IFS
  14732. test -z "$as_dir" && as_dir=.
  14733. for ac_exec_ext in '' $ac_executable_extensions; do
  14734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14735. ac_cv_prog_ac_ct_WINDRES="windres"
  14736. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14737. break 2
  14738. fi
  14739. done
  14740. done
  14741. IFS=$as_save_IFS
  14742. fi
  14743. fi
  14744. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14745. if test -n "$ac_ct_WINDRES"; then
  14746. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14747. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14748. else
  14749. { echo "$as_me:$LINENO: result: no" >&5
  14750. echo "${ECHO_T}no" >&6; }
  14751. fi
  14752. if test "x$ac_ct_WINDRES" = x; then
  14753. WINDRES=""
  14754. else
  14755. case $cross_compiling:$ac_tool_warned in
  14756. yes:)
  14757. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14758. whose name does not start with the host triplet. If you think this
  14759. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14760. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14761. whose name does not start with the host triplet. If you think this
  14762. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14763. ac_tool_warned=yes ;;
  14764. esac
  14765. WINDRES=$ac_ct_WINDRES
  14766. fi
  14767. else
  14768. WINDRES="$ac_cv_prog_WINDRES"
  14769. fi
  14770. fi
  14771. case "$host_os" in
  14772. hpux*) LTLIBC="" ;;
  14773. *) LTLIBC="-lc" ;;
  14774. esac
  14775. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14776. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14777. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14778. echo $ECHO_N "(cached) $ECHO_C" >&6
  14779. else
  14780. gt_save_LIBS="$LIBS"
  14781. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14782. cat >conftest.$ac_ext <<_ACEOF
  14783. /* confdefs.h. */
  14784. _ACEOF
  14785. cat confdefs.h >>conftest.$ac_ext
  14786. cat >>conftest.$ac_ext <<_ACEOF
  14787. /* end confdefs.h. */
  14788. #include <CoreFoundation/CFPreferences.h>
  14789. int
  14790. main ()
  14791. {
  14792. CFPreferencesCopyAppValue(NULL, NULL)
  14793. ;
  14794. return 0;
  14795. }
  14796. _ACEOF
  14797. rm -f conftest.$ac_objext conftest$ac_exeext
  14798. if { (ac_try="$ac_link"
  14799. case "(($ac_try" in
  14800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14801. *) ac_try_echo=$ac_try;;
  14802. esac
  14803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14804. (eval "$ac_link") 2>conftest.er1
  14805. ac_status=$?
  14806. grep -v '^ *+' conftest.er1 >conftest.err
  14807. rm -f conftest.er1
  14808. cat conftest.err >&5
  14809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14810. (exit $ac_status); } && {
  14811. test -z "$ac_cxx_werror_flag" ||
  14812. test ! -s conftest.err
  14813. } && test -s conftest$ac_exeext &&
  14814. $as_test_x conftest$ac_exeext; then
  14815. gt_cv_func_CFPreferencesCopyAppValue=yes
  14816. else
  14817. echo "$as_me: failed program was:" >&5
  14818. sed 's/^/| /' conftest.$ac_ext >&5
  14819. gt_cv_func_CFPreferencesCopyAppValue=no
  14820. fi
  14821. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14822. conftest$ac_exeext conftest.$ac_ext
  14823. LIBS="$gt_save_LIBS"
  14824. fi
  14825. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14826. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14827. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14828. cat >>confdefs.h <<\_ACEOF
  14829. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14830. _ACEOF
  14831. fi
  14832. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14833. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14834. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14835. echo $ECHO_N "(cached) $ECHO_C" >&6
  14836. else
  14837. gt_save_LIBS="$LIBS"
  14838. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14839. cat >conftest.$ac_ext <<_ACEOF
  14840. /* confdefs.h. */
  14841. _ACEOF
  14842. cat confdefs.h >>conftest.$ac_ext
  14843. cat >>conftest.$ac_ext <<_ACEOF
  14844. /* end confdefs.h. */
  14845. #include <CoreFoundation/CFLocale.h>
  14846. int
  14847. main ()
  14848. {
  14849. CFLocaleCopyCurrent();
  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. gt_cv_func_CFLocaleCopyCurrent=yes
  14873. else
  14874. echo "$as_me: failed program was:" >&5
  14875. sed 's/^/| /' conftest.$ac_ext >&5
  14876. gt_cv_func_CFLocaleCopyCurrent=no
  14877. fi
  14878. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14879. conftest$ac_exeext conftest.$ac_ext
  14880. LIBS="$gt_save_LIBS"
  14881. fi
  14882. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14883. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14884. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14885. cat >>confdefs.h <<\_ACEOF
  14886. #define HAVE_CFLOCALECOPYCURRENT 1
  14887. _ACEOF
  14888. fi
  14889. INTL_MACOSX_LIBS=
  14890. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14891. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14892. fi
  14893. BUILD_INCLUDED_LIBINTL=no
  14894. USE_INCLUDED_LIBINTL=no
  14895. LIBINTL=
  14896. LTLIBINTL=
  14897. POSUB=
  14898. case " $gt_needs " in
  14899. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14900. *" need-ngettext "*) gt_api_version=2 ;;
  14901. *) gt_api_version=1 ;;
  14902. esac
  14903. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14904. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14905. if test "$USE_NLS" = "yes"; then
  14906. gt_use_preinstalled_gnugettext=no
  14907. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14908. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14909. # Check whether --with-included-gettext was given.
  14910. if test "${with_included_gettext+set}" = set; then
  14911. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14912. else
  14913. nls_cv_force_use_gnu_gettext=no
  14914. fi
  14915. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14916. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14917. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14918. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14919. if test $gt_api_version -ge 3; then
  14920. gt_revision_test_code='
  14921. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14922. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14923. #endif
  14924. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14925. '
  14926. else
  14927. gt_revision_test_code=
  14928. fi
  14929. if test $gt_api_version -ge 2; then
  14930. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14931. else
  14932. gt_expression_test_code=
  14933. fi
  14934. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  14935. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  14936. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  14937. echo $ECHO_N "(cached) $ECHO_C" >&6
  14938. else
  14939. cat >conftest.$ac_ext <<_ACEOF
  14940. /* confdefs.h. */
  14941. _ACEOF
  14942. cat confdefs.h >>conftest.$ac_ext
  14943. cat >>conftest.$ac_ext <<_ACEOF
  14944. /* end confdefs.h. */
  14945. #include <libintl.h>
  14946. $gt_revision_test_code
  14947. extern int _nl_msg_cat_cntr;
  14948. extern int *_nl_domain_bindings;
  14949. int
  14950. main ()
  14951. {
  14952. bindtextdomain ("", "");
  14953. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  14954. ;
  14955. return 0;
  14956. }
  14957. _ACEOF
  14958. rm -f conftest.$ac_objext conftest$ac_exeext
  14959. if { (ac_try="$ac_link"
  14960. case "(($ac_try" in
  14961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14962. *) ac_try_echo=$ac_try;;
  14963. esac
  14964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14965. (eval "$ac_link") 2>conftest.er1
  14966. ac_status=$?
  14967. grep -v '^ *+' conftest.er1 >conftest.err
  14968. rm -f conftest.er1
  14969. cat conftest.err >&5
  14970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14971. (exit $ac_status); } && {
  14972. test -z "$ac_cxx_werror_flag" ||
  14973. test ! -s conftest.err
  14974. } && test -s conftest$ac_exeext &&
  14975. $as_test_x conftest$ac_exeext; then
  14976. eval "$gt_func_gnugettext_libc=yes"
  14977. else
  14978. echo "$as_me: failed program was:" >&5
  14979. sed 's/^/| /' conftest.$ac_ext >&5
  14980. eval "$gt_func_gnugettext_libc=no"
  14981. fi
  14982. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14983. conftest$ac_exeext conftest.$ac_ext
  14984. fi
  14985. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  14986. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14987. echo "${ECHO_T}$ac_res" >&6; }
  14988. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  14989. use_additional=yes
  14990. acl_save_prefix="$prefix"
  14991. prefix="$acl_final_prefix"
  14992. acl_save_exec_prefix="$exec_prefix"
  14993. exec_prefix="$acl_final_exec_prefix"
  14994. eval additional_includedir=\"$includedir\"
  14995. eval additional_libdir=\"$libdir\"
  14996. exec_prefix="$acl_save_exec_prefix"
  14997. prefix="$acl_save_prefix"
  14998. # Check whether --with-libintl-prefix was given.
  14999. if test "${with_libintl_prefix+set}" = set; then
  15000. withval=$with_libintl_prefix;
  15001. if test "X$withval" = "Xno"; then
  15002. use_additional=no
  15003. else
  15004. if test "X$withval" = "X"; then
  15005. acl_save_prefix="$prefix"
  15006. prefix="$acl_final_prefix"
  15007. acl_save_exec_prefix="$exec_prefix"
  15008. exec_prefix="$acl_final_exec_prefix"
  15009. eval additional_includedir=\"$includedir\"
  15010. eval additional_libdir=\"$libdir\"
  15011. exec_prefix="$acl_save_exec_prefix"
  15012. prefix="$acl_save_prefix"
  15013. else
  15014. additional_includedir="$withval/include"
  15015. additional_libdir="$withval/$acl_libdirstem"
  15016. fi
  15017. fi
  15018. fi
  15019. LIBINTL=
  15020. LTLIBINTL=
  15021. INCINTL=
  15022. LIBINTL_PREFIX=
  15023. rpathdirs=
  15024. ltrpathdirs=
  15025. names_already_handled=
  15026. names_next_round='intl '
  15027. while test -n "$names_next_round"; do
  15028. names_this_round="$names_next_round"
  15029. names_next_round=
  15030. for name in $names_this_round; do
  15031. already_handled=
  15032. for n in $names_already_handled; do
  15033. if test "$n" = "$name"; then
  15034. already_handled=yes
  15035. break
  15036. fi
  15037. done
  15038. if test -z "$already_handled"; then
  15039. names_already_handled="$names_already_handled $name"
  15040. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15041. eval value=\"\$HAVE_LIB$uppername\"
  15042. if test -n "$value"; then
  15043. if test "$value" = yes; then
  15044. eval value=\"\$LIB$uppername\"
  15045. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15046. eval value=\"\$LTLIB$uppername\"
  15047. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15048. else
  15049. :
  15050. fi
  15051. else
  15052. found_dir=
  15053. found_la=
  15054. found_so=
  15055. found_a=
  15056. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15057. if test -n "$acl_shlibext"; then
  15058. shrext=".$acl_shlibext" # typically: shrext=.so
  15059. else
  15060. shrext=
  15061. fi
  15062. if test $use_additional = yes; then
  15063. dir="$additional_libdir"
  15064. if test -n "$acl_shlibext"; then
  15065. if test -f "$dir/$libname$shrext"; then
  15066. found_dir="$dir"
  15067. found_so="$dir/$libname$shrext"
  15068. else
  15069. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15070. ver=`(cd "$dir" && \
  15071. for f in "$libname$shrext".*; do echo "$f"; done \
  15072. | sed -e "s,^$libname$shrext\\\\.,," \
  15073. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15074. | sed 1q ) 2>/dev/null`
  15075. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15076. found_dir="$dir"
  15077. found_so="$dir/$libname$shrext.$ver"
  15078. fi
  15079. else
  15080. eval library_names=\"$acl_library_names_spec\"
  15081. for f in $library_names; do
  15082. if test -f "$dir/$f"; then
  15083. found_dir="$dir"
  15084. found_so="$dir/$f"
  15085. break
  15086. fi
  15087. done
  15088. fi
  15089. fi
  15090. fi
  15091. if test "X$found_dir" = "X"; then
  15092. if test -f "$dir/$libname.$acl_libext"; then
  15093. found_dir="$dir"
  15094. found_a="$dir/$libname.$acl_libext"
  15095. fi
  15096. fi
  15097. if test "X$found_dir" != "X"; then
  15098. if test -f "$dir/$libname.la"; then
  15099. found_la="$dir/$libname.la"
  15100. fi
  15101. fi
  15102. fi
  15103. if test "X$found_dir" = "X"; then
  15104. for x in $LDFLAGS $LTLIBINTL; do
  15105. acl_save_prefix="$prefix"
  15106. prefix="$acl_final_prefix"
  15107. acl_save_exec_prefix="$exec_prefix"
  15108. exec_prefix="$acl_final_exec_prefix"
  15109. eval x=\"$x\"
  15110. exec_prefix="$acl_save_exec_prefix"
  15111. prefix="$acl_save_prefix"
  15112. case "$x" in
  15113. -L*)
  15114. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15115. if test -n "$acl_shlibext"; then
  15116. if test -f "$dir/$libname$shrext"; then
  15117. found_dir="$dir"
  15118. found_so="$dir/$libname$shrext"
  15119. else
  15120. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15121. ver=`(cd "$dir" && \
  15122. for f in "$libname$shrext".*; do echo "$f"; done \
  15123. | sed -e "s,^$libname$shrext\\\\.,," \
  15124. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15125. | sed 1q ) 2>/dev/null`
  15126. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15127. found_dir="$dir"
  15128. found_so="$dir/$libname$shrext.$ver"
  15129. fi
  15130. else
  15131. eval library_names=\"$acl_library_names_spec\"
  15132. for f in $library_names; do
  15133. if test -f "$dir/$f"; then
  15134. found_dir="$dir"
  15135. found_so="$dir/$f"
  15136. break
  15137. fi
  15138. done
  15139. fi
  15140. fi
  15141. fi
  15142. if test "X$found_dir" = "X"; then
  15143. if test -f "$dir/$libname.$acl_libext"; then
  15144. found_dir="$dir"
  15145. found_a="$dir/$libname.$acl_libext"
  15146. fi
  15147. fi
  15148. if test "X$found_dir" != "X"; then
  15149. if test -f "$dir/$libname.la"; then
  15150. found_la="$dir/$libname.la"
  15151. fi
  15152. fi
  15153. ;;
  15154. esac
  15155. if test "X$found_dir" != "X"; then
  15156. break
  15157. fi
  15158. done
  15159. fi
  15160. if test "X$found_dir" != "X"; then
  15161. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15162. if test "X$found_so" != "X"; then
  15163. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15164. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15165. else
  15166. haveit=
  15167. for x in $ltrpathdirs; do
  15168. if test "X$x" = "X$found_dir"; then
  15169. haveit=yes
  15170. break
  15171. fi
  15172. done
  15173. if test -z "$haveit"; then
  15174. ltrpathdirs="$ltrpathdirs $found_dir"
  15175. fi
  15176. if test "$acl_hardcode_direct" = yes; then
  15177. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15178. else
  15179. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15180. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15181. haveit=
  15182. for x in $rpathdirs; do
  15183. if test "X$x" = "X$found_dir"; then
  15184. haveit=yes
  15185. break
  15186. fi
  15187. done
  15188. if test -z "$haveit"; then
  15189. rpathdirs="$rpathdirs $found_dir"
  15190. fi
  15191. else
  15192. haveit=
  15193. for x in $LDFLAGS $LIBINTL; do
  15194. acl_save_prefix="$prefix"
  15195. prefix="$acl_final_prefix"
  15196. acl_save_exec_prefix="$exec_prefix"
  15197. exec_prefix="$acl_final_exec_prefix"
  15198. eval x=\"$x\"
  15199. exec_prefix="$acl_save_exec_prefix"
  15200. prefix="$acl_save_prefix"
  15201. if test "X$x" = "X-L$found_dir"; then
  15202. haveit=yes
  15203. break
  15204. fi
  15205. done
  15206. if test -z "$haveit"; then
  15207. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15208. fi
  15209. if test "$acl_hardcode_minus_L" != no; then
  15210. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15211. else
  15212. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15213. fi
  15214. fi
  15215. fi
  15216. fi
  15217. else
  15218. if test "X$found_a" != "X"; then
  15219. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15220. else
  15221. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15222. fi
  15223. fi
  15224. additional_includedir=
  15225. case "$found_dir" in
  15226. */$acl_libdirstem | */$acl_libdirstem/)
  15227. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15228. LIBINTL_PREFIX="$basedir"
  15229. additional_includedir="$basedir/include"
  15230. ;;
  15231. esac
  15232. if test "X$additional_includedir" != "X"; then
  15233. if test "X$additional_includedir" != "X/usr/include"; then
  15234. haveit=
  15235. if test "X$additional_includedir" = "X/usr/local/include"; then
  15236. if test -n "$GCC"; then
  15237. case $host_os in
  15238. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15239. esac
  15240. fi
  15241. fi
  15242. if test -z "$haveit"; then
  15243. for x in $CPPFLAGS $INCINTL; do
  15244. acl_save_prefix="$prefix"
  15245. prefix="$acl_final_prefix"
  15246. acl_save_exec_prefix="$exec_prefix"
  15247. exec_prefix="$acl_final_exec_prefix"
  15248. eval x=\"$x\"
  15249. exec_prefix="$acl_save_exec_prefix"
  15250. prefix="$acl_save_prefix"
  15251. if test "X$x" = "X-I$additional_includedir"; then
  15252. haveit=yes
  15253. break
  15254. fi
  15255. done
  15256. if test -z "$haveit"; then
  15257. if test -d "$additional_includedir"; then
  15258. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15259. fi
  15260. fi
  15261. fi
  15262. fi
  15263. fi
  15264. if test -n "$found_la"; then
  15265. save_libdir="$libdir"
  15266. case "$found_la" in
  15267. */* | *\\*) . "$found_la" ;;
  15268. *) . "./$found_la" ;;
  15269. esac
  15270. libdir="$save_libdir"
  15271. for dep in $dependency_libs; do
  15272. case "$dep" in
  15273. -L*)
  15274. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15275. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15276. haveit=
  15277. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15278. if test -n "$GCC"; then
  15279. case $host_os in
  15280. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15281. esac
  15282. fi
  15283. fi
  15284. if test -z "$haveit"; then
  15285. haveit=
  15286. for x in $LDFLAGS $LIBINTL; do
  15287. acl_save_prefix="$prefix"
  15288. prefix="$acl_final_prefix"
  15289. acl_save_exec_prefix="$exec_prefix"
  15290. exec_prefix="$acl_final_exec_prefix"
  15291. eval x=\"$x\"
  15292. exec_prefix="$acl_save_exec_prefix"
  15293. prefix="$acl_save_prefix"
  15294. if test "X$x" = "X-L$additional_libdir"; then
  15295. haveit=yes
  15296. break
  15297. fi
  15298. done
  15299. if test -z "$haveit"; then
  15300. if test -d "$additional_libdir"; then
  15301. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15302. fi
  15303. fi
  15304. haveit=
  15305. for x in $LDFLAGS $LTLIBINTL; do
  15306. acl_save_prefix="$prefix"
  15307. prefix="$acl_final_prefix"
  15308. acl_save_exec_prefix="$exec_prefix"
  15309. exec_prefix="$acl_final_exec_prefix"
  15310. eval x=\"$x\"
  15311. exec_prefix="$acl_save_exec_prefix"
  15312. prefix="$acl_save_prefix"
  15313. if test "X$x" = "X-L$additional_libdir"; then
  15314. haveit=yes
  15315. break
  15316. fi
  15317. done
  15318. if test -z "$haveit"; then
  15319. if test -d "$additional_libdir"; then
  15320. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15321. fi
  15322. fi
  15323. fi
  15324. fi
  15325. ;;
  15326. -R*)
  15327. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15328. if test "$enable_rpath" != no; then
  15329. haveit=
  15330. for x in $rpathdirs; do
  15331. if test "X$x" = "X$dir"; then
  15332. haveit=yes
  15333. break
  15334. fi
  15335. done
  15336. if test -z "$haveit"; then
  15337. rpathdirs="$rpathdirs $dir"
  15338. fi
  15339. haveit=
  15340. for x in $ltrpathdirs; do
  15341. if test "X$x" = "X$dir"; then
  15342. haveit=yes
  15343. break
  15344. fi
  15345. done
  15346. if test -z "$haveit"; then
  15347. ltrpathdirs="$ltrpathdirs $dir"
  15348. fi
  15349. fi
  15350. ;;
  15351. -l*)
  15352. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15353. ;;
  15354. *.la)
  15355. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15356. ;;
  15357. *)
  15358. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15359. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15360. ;;
  15361. esac
  15362. done
  15363. fi
  15364. else
  15365. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15366. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15367. fi
  15368. fi
  15369. fi
  15370. done
  15371. done
  15372. if test "X$rpathdirs" != "X"; then
  15373. if test -n "$acl_hardcode_libdir_separator"; then
  15374. alldirs=
  15375. for found_dir in $rpathdirs; do
  15376. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15377. done
  15378. acl_save_libdir="$libdir"
  15379. libdir="$alldirs"
  15380. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15381. libdir="$acl_save_libdir"
  15382. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15383. else
  15384. for found_dir in $rpathdirs; do
  15385. acl_save_libdir="$libdir"
  15386. libdir="$found_dir"
  15387. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15388. libdir="$acl_save_libdir"
  15389. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15390. done
  15391. fi
  15392. fi
  15393. if test "X$ltrpathdirs" != "X"; then
  15394. for found_dir in $ltrpathdirs; do
  15395. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15396. done
  15397. fi
  15398. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15399. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15400. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15401. echo $ECHO_N "(cached) $ECHO_C" >&6
  15402. else
  15403. gt_save_CPPFLAGS="$CPPFLAGS"
  15404. CPPFLAGS="$CPPFLAGS $INCINTL"
  15405. gt_save_LIBS="$LIBS"
  15406. LIBS="$LIBS $LIBINTL"
  15407. cat >conftest.$ac_ext <<_ACEOF
  15408. /* confdefs.h. */
  15409. _ACEOF
  15410. cat confdefs.h >>conftest.$ac_ext
  15411. cat >>conftest.$ac_ext <<_ACEOF
  15412. /* end confdefs.h. */
  15413. #include <libintl.h>
  15414. $gt_revision_test_code
  15415. extern int _nl_msg_cat_cntr;
  15416. extern
  15417. #ifdef __cplusplus
  15418. "C"
  15419. #endif
  15420. const char *_nl_expand_alias (const char *);
  15421. int
  15422. main ()
  15423. {
  15424. bindtextdomain ("", "");
  15425. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. rm -f conftest.$ac_objext conftest$ac_exeext
  15431. if { (ac_try="$ac_link"
  15432. case "(($ac_try" in
  15433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15434. *) ac_try_echo=$ac_try;;
  15435. esac
  15436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15437. (eval "$ac_link") 2>conftest.er1
  15438. ac_status=$?
  15439. grep -v '^ *+' conftest.er1 >conftest.err
  15440. rm -f conftest.er1
  15441. cat conftest.err >&5
  15442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15443. (exit $ac_status); } && {
  15444. test -z "$ac_cxx_werror_flag" ||
  15445. test ! -s conftest.err
  15446. } && test -s conftest$ac_exeext &&
  15447. $as_test_x conftest$ac_exeext; then
  15448. eval "$gt_func_gnugettext_libintl=yes"
  15449. else
  15450. echo "$as_me: failed program was:" >&5
  15451. sed 's/^/| /' conftest.$ac_ext >&5
  15452. eval "$gt_func_gnugettext_libintl=no"
  15453. fi
  15454. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15455. conftest$ac_exeext conftest.$ac_ext
  15456. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15457. LIBS="$LIBS $LIBICONV"
  15458. cat >conftest.$ac_ext <<_ACEOF
  15459. /* confdefs.h. */
  15460. _ACEOF
  15461. cat confdefs.h >>conftest.$ac_ext
  15462. cat >>conftest.$ac_ext <<_ACEOF
  15463. /* end confdefs.h. */
  15464. #include <libintl.h>
  15465. $gt_revision_test_code
  15466. extern int _nl_msg_cat_cntr;
  15467. extern
  15468. #ifdef __cplusplus
  15469. "C"
  15470. #endif
  15471. const char *_nl_expand_alias (const char *);
  15472. int
  15473. main ()
  15474. {
  15475. bindtextdomain ("", "");
  15476. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  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. LIBINTL="$LIBINTL $LIBICONV"
  15500. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15501. eval "$gt_func_gnugettext_libintl=yes"
  15502. else
  15503. echo "$as_me: failed program was:" >&5
  15504. sed 's/^/| /' conftest.$ac_ext >&5
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. fi
  15509. CPPFLAGS="$gt_save_CPPFLAGS"
  15510. LIBS="$gt_save_LIBS"
  15511. fi
  15512. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15513. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15514. echo "${ECHO_T}$ac_res" >&6; }
  15515. fi
  15516. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15517. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15518. && test "$PACKAGE" != gettext-runtime \
  15519. && test "$PACKAGE" != gettext-tools; }; then
  15520. gt_use_preinstalled_gnugettext=yes
  15521. else
  15522. LIBINTL=
  15523. LTLIBINTL=
  15524. INCINTL=
  15525. fi
  15526. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15527. nls_cv_use_gnu_gettext=yes
  15528. fi
  15529. fi
  15530. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15531. BUILD_INCLUDED_LIBINTL=yes
  15532. USE_INCLUDED_LIBINTL=yes
  15533. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15534. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15535. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15536. fi
  15537. CATOBJEXT=
  15538. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15539. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15540. CATOBJEXT=.gmo
  15541. fi
  15542. if test -n "$INTL_MACOSX_LIBS"; then
  15543. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15544. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15545. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15546. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15547. fi
  15548. fi
  15549. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15550. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15551. cat >>confdefs.h <<\_ACEOF
  15552. #define ENABLE_NLS 1
  15553. _ACEOF
  15554. else
  15555. USE_NLS=no
  15556. fi
  15557. fi
  15558. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15559. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15560. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15561. echo "${ECHO_T}$USE_NLS" >&6; }
  15562. if test "$USE_NLS" = "yes"; then
  15563. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15564. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15565. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15566. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15567. gt_source="external libintl"
  15568. else
  15569. gt_source="libc"
  15570. fi
  15571. else
  15572. gt_source="included intl directory"
  15573. fi
  15574. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15575. echo "${ECHO_T}$gt_source" >&6; }
  15576. fi
  15577. if test "$USE_NLS" = "yes"; then
  15578. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15579. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15580. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15581. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15582. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15583. echo "${ECHO_T}$LIBINTL" >&6; }
  15584. for element in $INCINTL; do
  15585. haveit=
  15586. for x in $CPPFLAGS; do
  15587. acl_save_prefix="$prefix"
  15588. prefix="$acl_final_prefix"
  15589. acl_save_exec_prefix="$exec_prefix"
  15590. exec_prefix="$acl_final_exec_prefix"
  15591. eval x=\"$x\"
  15592. exec_prefix="$acl_save_exec_prefix"
  15593. prefix="$acl_save_prefix"
  15594. if test "X$x" = "X$element"; then
  15595. haveit=yes
  15596. break
  15597. fi
  15598. done
  15599. if test -z "$haveit"; then
  15600. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15601. fi
  15602. done
  15603. fi
  15604. cat >>confdefs.h <<\_ACEOF
  15605. #define HAVE_GETTEXT 1
  15606. _ACEOF
  15607. cat >>confdefs.h <<\_ACEOF
  15608. #define HAVE_DCGETTEXT 1
  15609. _ACEOF
  15610. fi
  15611. POSUB=po
  15612. fi
  15613. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15614. BUILD_INCLUDED_LIBINTL=yes
  15615. fi
  15616. nls_cv_header_intl=
  15617. nls_cv_header_libgt=
  15618. DATADIRNAME=share
  15619. INSTOBJEXT=.mo
  15620. GENCAT=gencat
  15621. INTLOBJS=
  15622. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15623. INTLOBJS="\$(GETTOBJS)"
  15624. fi
  15625. INTL_LIBTOOL_SUFFIX_PREFIX=
  15626. INTLLIBS="$LIBINTL"
  15627. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15628. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15629. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15630. echo $ECHO_N "(cached) $ECHO_C" >&6
  15631. else
  15632. cat >conftest.$ac_ext <<_ACEOF
  15633. /* confdefs.h. */
  15634. _ACEOF
  15635. cat confdefs.h >>conftest.$ac_ext
  15636. cat >>conftest.$ac_ext <<_ACEOF
  15637. /* end confdefs.h. */
  15638. #include <error.h>
  15639. int
  15640. main ()
  15641. {
  15642. error_at_line (0, 0, "", 0, "an error occurred");
  15643. ;
  15644. return 0;
  15645. }
  15646. _ACEOF
  15647. rm -f conftest.$ac_objext conftest$ac_exeext
  15648. if { (ac_try="$ac_link"
  15649. case "(($ac_try" in
  15650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15651. *) ac_try_echo=$ac_try;;
  15652. esac
  15653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15654. (eval "$ac_link") 2>conftest.er1
  15655. ac_status=$?
  15656. grep -v '^ *+' conftest.er1 >conftest.err
  15657. rm -f conftest.er1
  15658. cat conftest.err >&5
  15659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15660. (exit $ac_status); } && {
  15661. test -z "$ac_cxx_werror_flag" ||
  15662. test ! -s conftest.err
  15663. } && test -s conftest$ac_exeext &&
  15664. $as_test_x conftest$ac_exeext; then
  15665. ac_cv_lib_error_at_line=yes
  15666. else
  15667. echo "$as_me: failed program was:" >&5
  15668. sed 's/^/| /' conftest.$ac_ext >&5
  15669. ac_cv_lib_error_at_line=no
  15670. fi
  15671. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15672. conftest$ac_exeext conftest.$ac_ext
  15673. fi
  15674. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15675. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15676. if test $ac_cv_lib_error_at_line = no; then
  15677. case " $LIBOBJS " in
  15678. *" error.$ac_objext "* ) ;;
  15679. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15680. ;;
  15681. esac
  15682. fi
  15683. if test $ac_cv_c_compiler_gnu = yes; then
  15684. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15685. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15686. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15687. echo $ECHO_N "(cached) $ECHO_C" >&6
  15688. else
  15689. ac_pattern="Autoconf.*'x'"
  15690. cat >conftest.$ac_ext <<_ACEOF
  15691. /* confdefs.h. */
  15692. _ACEOF
  15693. cat confdefs.h >>conftest.$ac_ext
  15694. cat >>conftest.$ac_ext <<_ACEOF
  15695. /* end confdefs.h. */
  15696. #include <sgtty.h>
  15697. Autoconf TIOCGETP
  15698. _ACEOF
  15699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15700. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15701. ac_cv_prog_gcc_traditional=yes
  15702. else
  15703. ac_cv_prog_gcc_traditional=no
  15704. fi
  15705. rm -f conftest*
  15706. if test $ac_cv_prog_gcc_traditional = no; then
  15707. cat >conftest.$ac_ext <<_ACEOF
  15708. /* confdefs.h. */
  15709. _ACEOF
  15710. cat confdefs.h >>conftest.$ac_ext
  15711. cat >>conftest.$ac_ext <<_ACEOF
  15712. /* end confdefs.h. */
  15713. #include <termio.h>
  15714. Autoconf TCGETA
  15715. _ACEOF
  15716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15717. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15718. ac_cv_prog_gcc_traditional=yes
  15719. fi
  15720. rm -f conftest*
  15721. fi
  15722. fi
  15723. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15724. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15725. if test $ac_cv_prog_gcc_traditional = yes; then
  15726. CC="$CC -traditional"
  15727. fi
  15728. fi
  15729. case "$target" in
  15730. *mingw*)
  15731. ;;
  15732. *)
  15733. for ac_header in stdlib.h
  15734. do
  15735. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15736. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15737. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15738. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15739. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15740. echo $ECHO_N "(cached) $ECHO_C" >&6
  15741. fi
  15742. ac_res=`eval echo '${'$as_ac_Header'}'`
  15743. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15744. echo "${ECHO_T}$ac_res" >&6; }
  15745. else
  15746. # Is the header compilable?
  15747. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15748. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15749. cat >conftest.$ac_ext <<_ACEOF
  15750. /* confdefs.h. */
  15751. _ACEOF
  15752. cat confdefs.h >>conftest.$ac_ext
  15753. cat >>conftest.$ac_ext <<_ACEOF
  15754. /* end confdefs.h. */
  15755. $ac_includes_default
  15756. #include <$ac_header>
  15757. _ACEOF
  15758. rm -f conftest.$ac_objext
  15759. if { (ac_try="$ac_compile"
  15760. case "(($ac_try" in
  15761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15762. *) ac_try_echo=$ac_try;;
  15763. esac
  15764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15765. (eval "$ac_compile") 2>conftest.er1
  15766. ac_status=$?
  15767. grep -v '^ *+' conftest.er1 >conftest.err
  15768. rm -f conftest.er1
  15769. cat conftest.err >&5
  15770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15771. (exit $ac_status); } && {
  15772. test -z "$ac_cxx_werror_flag" ||
  15773. test ! -s conftest.err
  15774. } && test -s conftest.$ac_objext; then
  15775. ac_header_compiler=yes
  15776. else
  15777. echo "$as_me: failed program was:" >&5
  15778. sed 's/^/| /' conftest.$ac_ext >&5
  15779. ac_header_compiler=no
  15780. fi
  15781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15782. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15783. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15784. # Is the header present?
  15785. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15786. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15787. cat >conftest.$ac_ext <<_ACEOF
  15788. /* confdefs.h. */
  15789. _ACEOF
  15790. cat confdefs.h >>conftest.$ac_ext
  15791. cat >>conftest.$ac_ext <<_ACEOF
  15792. /* end confdefs.h. */
  15793. #include <$ac_header>
  15794. _ACEOF
  15795. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15796. case "(($ac_try" in
  15797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15798. *) ac_try_echo=$ac_try;;
  15799. esac
  15800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15801. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15802. ac_status=$?
  15803. grep -v '^ *+' conftest.er1 >conftest.err
  15804. rm -f conftest.er1
  15805. cat conftest.err >&5
  15806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15807. (exit $ac_status); } >/dev/null && {
  15808. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15809. test ! -s conftest.err
  15810. }; then
  15811. ac_header_preproc=yes
  15812. else
  15813. echo "$as_me: failed program was:" >&5
  15814. sed 's/^/| /' conftest.$ac_ext >&5
  15815. ac_header_preproc=no
  15816. fi
  15817. rm -f conftest.err conftest.$ac_ext
  15818. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15819. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15820. # So? What about this header?
  15821. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15822. yes:no: )
  15823. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15824. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15825. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15826. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15827. ac_header_preproc=yes
  15828. ;;
  15829. no:yes:* )
  15830. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15831. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15832. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15833. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15834. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15835. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15836. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15837. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15838. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15839. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15840. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15841. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15842. ( cat <<\_ASBOX
  15843. ## ----------------------------------------------- ##
  15844. ## Report this to t-tujikawa@users.sourceforge.net ##
  15845. ## ----------------------------------------------- ##
  15846. _ASBOX
  15847. ) | sed "s/^/$as_me: WARNING: /" >&2
  15848. ;;
  15849. esac
  15850. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15851. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15852. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15853. echo $ECHO_N "(cached) $ECHO_C" >&6
  15854. else
  15855. eval "$as_ac_Header=\$ac_header_preproc"
  15856. fi
  15857. ac_res=`eval echo '${'$as_ac_Header'}'`
  15858. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15859. echo "${ECHO_T}$ac_res" >&6; }
  15860. fi
  15861. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15862. cat >>confdefs.h <<_ACEOF
  15863. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15864. _ACEOF
  15865. fi
  15866. done
  15867. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15868. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15869. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15870. echo $ECHO_N "(cached) $ECHO_C" >&6
  15871. else
  15872. if test "$cross_compiling" = yes; then
  15873. ac_cv_func_malloc_0_nonnull=no
  15874. else
  15875. cat >conftest.$ac_ext <<_ACEOF
  15876. /* confdefs.h. */
  15877. _ACEOF
  15878. cat confdefs.h >>conftest.$ac_ext
  15879. cat >>conftest.$ac_ext <<_ACEOF
  15880. /* end confdefs.h. */
  15881. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15882. # include <stdlib.h>
  15883. #else
  15884. char *malloc ();
  15885. #endif
  15886. int
  15887. main ()
  15888. {
  15889. return ! malloc (0);
  15890. ;
  15891. return 0;
  15892. }
  15893. _ACEOF
  15894. rm -f conftest$ac_exeext
  15895. if { (ac_try="$ac_link"
  15896. case "(($ac_try" in
  15897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15898. *) ac_try_echo=$ac_try;;
  15899. esac
  15900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15901. (eval "$ac_link") 2>&5
  15902. ac_status=$?
  15903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15904. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15905. { (case "(($ac_try" in
  15906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15907. *) ac_try_echo=$ac_try;;
  15908. esac
  15909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15910. (eval "$ac_try") 2>&5
  15911. ac_status=$?
  15912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15913. (exit $ac_status); }; }; then
  15914. ac_cv_func_malloc_0_nonnull=yes
  15915. else
  15916. echo "$as_me: program exited with status $ac_status" >&5
  15917. echo "$as_me: failed program was:" >&5
  15918. sed 's/^/| /' conftest.$ac_ext >&5
  15919. ( exit $ac_status )
  15920. ac_cv_func_malloc_0_nonnull=no
  15921. fi
  15922. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15923. fi
  15924. fi
  15925. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15926. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15927. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15928. cat >>confdefs.h <<\_ACEOF
  15929. #define HAVE_MALLOC 1
  15930. _ACEOF
  15931. else
  15932. cat >>confdefs.h <<\_ACEOF
  15933. #define HAVE_MALLOC 0
  15934. _ACEOF
  15935. case " $LIBOBJS " in
  15936. *" malloc.$ac_objext "* ) ;;
  15937. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  15938. ;;
  15939. esac
  15940. cat >>confdefs.h <<\_ACEOF
  15941. #define malloc rpl_malloc
  15942. _ACEOF
  15943. fi
  15944. for ac_header in stdlib.h
  15945. do
  15946. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15947. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15948. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15949. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15950. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15951. echo $ECHO_N "(cached) $ECHO_C" >&6
  15952. fi
  15953. ac_res=`eval echo '${'$as_ac_Header'}'`
  15954. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15955. echo "${ECHO_T}$ac_res" >&6; }
  15956. else
  15957. # Is the header compilable?
  15958. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15959. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15960. cat >conftest.$ac_ext <<_ACEOF
  15961. /* confdefs.h. */
  15962. _ACEOF
  15963. cat confdefs.h >>conftest.$ac_ext
  15964. cat >>conftest.$ac_ext <<_ACEOF
  15965. /* end confdefs.h. */
  15966. $ac_includes_default
  15967. #include <$ac_header>
  15968. _ACEOF
  15969. rm -f conftest.$ac_objext
  15970. if { (ac_try="$ac_compile"
  15971. case "(($ac_try" in
  15972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15973. *) ac_try_echo=$ac_try;;
  15974. esac
  15975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15976. (eval "$ac_compile") 2>conftest.er1
  15977. ac_status=$?
  15978. grep -v '^ *+' conftest.er1 >conftest.err
  15979. rm -f conftest.er1
  15980. cat conftest.err >&5
  15981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15982. (exit $ac_status); } && {
  15983. test -z "$ac_cxx_werror_flag" ||
  15984. test ! -s conftest.err
  15985. } && test -s conftest.$ac_objext; then
  15986. ac_header_compiler=yes
  15987. else
  15988. echo "$as_me: failed program was:" >&5
  15989. sed 's/^/| /' conftest.$ac_ext >&5
  15990. ac_header_compiler=no
  15991. fi
  15992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15993. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15994. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15995. # Is the header present?
  15996. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15997. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15998. cat >conftest.$ac_ext <<_ACEOF
  15999. /* confdefs.h. */
  16000. _ACEOF
  16001. cat confdefs.h >>conftest.$ac_ext
  16002. cat >>conftest.$ac_ext <<_ACEOF
  16003. /* end confdefs.h. */
  16004. #include <$ac_header>
  16005. _ACEOF
  16006. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16007. case "(($ac_try" in
  16008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16009. *) ac_try_echo=$ac_try;;
  16010. esac
  16011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16012. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16013. ac_status=$?
  16014. grep -v '^ *+' conftest.er1 >conftest.err
  16015. rm -f conftest.er1
  16016. cat conftest.err >&5
  16017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16018. (exit $ac_status); } >/dev/null && {
  16019. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16020. test ! -s conftest.err
  16021. }; then
  16022. ac_header_preproc=yes
  16023. else
  16024. echo "$as_me: failed program was:" >&5
  16025. sed 's/^/| /' conftest.$ac_ext >&5
  16026. ac_header_preproc=no
  16027. fi
  16028. rm -f conftest.err conftest.$ac_ext
  16029. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16030. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16031. # So? What about this header?
  16032. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16033. yes:no: )
  16034. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16035. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16036. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16037. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16038. ac_header_preproc=yes
  16039. ;;
  16040. no:yes:* )
  16041. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16042. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16043. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16044. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16045. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16046. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16047. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16048. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16049. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16050. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16051. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16052. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16053. ( cat <<\_ASBOX
  16054. ## ----------------------------------------------- ##
  16055. ## Report this to t-tujikawa@users.sourceforge.net ##
  16056. ## ----------------------------------------------- ##
  16057. _ASBOX
  16058. ) | sed "s/^/$as_me: WARNING: /" >&2
  16059. ;;
  16060. esac
  16061. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16062. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16063. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16064. echo $ECHO_N "(cached) $ECHO_C" >&6
  16065. else
  16066. eval "$as_ac_Header=\$ac_header_preproc"
  16067. fi
  16068. ac_res=`eval echo '${'$as_ac_Header'}'`
  16069. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16070. echo "${ECHO_T}$ac_res" >&6; }
  16071. fi
  16072. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16073. cat >>confdefs.h <<_ACEOF
  16074. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16075. _ACEOF
  16076. fi
  16077. done
  16078. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16079. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16080. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16081. echo $ECHO_N "(cached) $ECHO_C" >&6
  16082. else
  16083. if test "$cross_compiling" = yes; then
  16084. ac_cv_func_realloc_0_nonnull=no
  16085. else
  16086. cat >conftest.$ac_ext <<_ACEOF
  16087. /* confdefs.h. */
  16088. _ACEOF
  16089. cat confdefs.h >>conftest.$ac_ext
  16090. cat >>conftest.$ac_ext <<_ACEOF
  16091. /* end confdefs.h. */
  16092. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16093. # include <stdlib.h>
  16094. #else
  16095. char *realloc ();
  16096. #endif
  16097. int
  16098. main ()
  16099. {
  16100. return ! realloc (0, 0);
  16101. ;
  16102. return 0;
  16103. }
  16104. _ACEOF
  16105. rm -f conftest$ac_exeext
  16106. if { (ac_try="$ac_link"
  16107. case "(($ac_try" in
  16108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16109. *) ac_try_echo=$ac_try;;
  16110. esac
  16111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16112. (eval "$ac_link") 2>&5
  16113. ac_status=$?
  16114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16115. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16116. { (case "(($ac_try" in
  16117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16118. *) ac_try_echo=$ac_try;;
  16119. esac
  16120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16121. (eval "$ac_try") 2>&5
  16122. ac_status=$?
  16123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16124. (exit $ac_status); }; }; then
  16125. ac_cv_func_realloc_0_nonnull=yes
  16126. else
  16127. echo "$as_me: program exited with status $ac_status" >&5
  16128. echo "$as_me: failed program was:" >&5
  16129. sed 's/^/| /' conftest.$ac_ext >&5
  16130. ( exit $ac_status )
  16131. ac_cv_func_realloc_0_nonnull=no
  16132. fi
  16133. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16134. fi
  16135. fi
  16136. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16137. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16138. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16139. cat >>confdefs.h <<\_ACEOF
  16140. #define HAVE_REALLOC 1
  16141. _ACEOF
  16142. else
  16143. cat >>confdefs.h <<\_ACEOF
  16144. #define HAVE_REALLOC 0
  16145. _ACEOF
  16146. case " $LIBOBJS " in
  16147. *" realloc.$ac_objext "* ) ;;
  16148. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16149. ;;
  16150. esac
  16151. cat >>confdefs.h <<\_ACEOF
  16152. #define realloc rpl_realloc
  16153. _ACEOF
  16154. fi
  16155. ;;
  16156. esac
  16157. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16158. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16159. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16160. echo $ECHO_N "(cached) $ECHO_C" >&6
  16161. else
  16162. if test "$cross_compiling" = yes; then
  16163. ac_cv_func_memcmp_working=no
  16164. else
  16165. cat >conftest.$ac_ext <<_ACEOF
  16166. /* confdefs.h. */
  16167. _ACEOF
  16168. cat confdefs.h >>conftest.$ac_ext
  16169. cat >>conftest.$ac_ext <<_ACEOF
  16170. /* end confdefs.h. */
  16171. $ac_includes_default
  16172. int
  16173. main ()
  16174. {
  16175. /* Some versions of memcmp are not 8-bit clean. */
  16176. char c0 = '\100', c1 = '\200', c2 = '\201';
  16177. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16178. return 1;
  16179. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16180. or more and with at least one buffer not starting on a 4-byte boundary.
  16181. William Lewis provided this test program. */
  16182. {
  16183. char foo[21];
  16184. char bar[21];
  16185. int i;
  16186. for (i = 0; i < 4; i++)
  16187. {
  16188. char *a = foo + i;
  16189. char *b = bar + i;
  16190. strcpy (a, "--------01111111");
  16191. strcpy (b, "--------10000000");
  16192. if (memcmp (a, b, 16) >= 0)
  16193. return 1;
  16194. }
  16195. return 0;
  16196. }
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. rm -f conftest$ac_exeext
  16202. if { (ac_try="$ac_link"
  16203. case "(($ac_try" in
  16204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16205. *) ac_try_echo=$ac_try;;
  16206. esac
  16207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16208. (eval "$ac_link") 2>&5
  16209. ac_status=$?
  16210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16211. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16212. { (case "(($ac_try" in
  16213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16214. *) ac_try_echo=$ac_try;;
  16215. esac
  16216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16217. (eval "$ac_try") 2>&5
  16218. ac_status=$?
  16219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16220. (exit $ac_status); }; }; then
  16221. ac_cv_func_memcmp_working=yes
  16222. else
  16223. echo "$as_me: program exited with status $ac_status" >&5
  16224. echo "$as_me: failed program was:" >&5
  16225. sed 's/^/| /' conftest.$ac_ext >&5
  16226. ( exit $ac_status )
  16227. ac_cv_func_memcmp_working=no
  16228. fi
  16229. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16230. fi
  16231. fi
  16232. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16233. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16234. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16235. *" memcmp.$ac_objext "* ) ;;
  16236. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16237. ;;
  16238. esac
  16239. for ac_header in $ac_header_list
  16240. do
  16241. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16242. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16243. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16244. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16245. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16246. echo $ECHO_N "(cached) $ECHO_C" >&6
  16247. fi
  16248. ac_res=`eval echo '${'$as_ac_Header'}'`
  16249. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16250. echo "${ECHO_T}$ac_res" >&6; }
  16251. else
  16252. # Is the header compilable?
  16253. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16254. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16255. cat >conftest.$ac_ext <<_ACEOF
  16256. /* confdefs.h. */
  16257. _ACEOF
  16258. cat confdefs.h >>conftest.$ac_ext
  16259. cat >>conftest.$ac_ext <<_ACEOF
  16260. /* end confdefs.h. */
  16261. $ac_includes_default
  16262. #include <$ac_header>
  16263. _ACEOF
  16264. rm -f conftest.$ac_objext
  16265. if { (ac_try="$ac_compile"
  16266. case "(($ac_try" in
  16267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16268. *) ac_try_echo=$ac_try;;
  16269. esac
  16270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16271. (eval "$ac_compile") 2>conftest.er1
  16272. ac_status=$?
  16273. grep -v '^ *+' conftest.er1 >conftest.err
  16274. rm -f conftest.er1
  16275. cat conftest.err >&5
  16276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16277. (exit $ac_status); } && {
  16278. test -z "$ac_cxx_werror_flag" ||
  16279. test ! -s conftest.err
  16280. } && test -s conftest.$ac_objext; then
  16281. ac_header_compiler=yes
  16282. else
  16283. echo "$as_me: failed program was:" >&5
  16284. sed 's/^/| /' conftest.$ac_ext >&5
  16285. ac_header_compiler=no
  16286. fi
  16287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16288. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16289. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16290. # Is the header present?
  16291. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16292. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16293. cat >conftest.$ac_ext <<_ACEOF
  16294. /* confdefs.h. */
  16295. _ACEOF
  16296. cat confdefs.h >>conftest.$ac_ext
  16297. cat >>conftest.$ac_ext <<_ACEOF
  16298. /* end confdefs.h. */
  16299. #include <$ac_header>
  16300. _ACEOF
  16301. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16302. case "(($ac_try" in
  16303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16304. *) ac_try_echo=$ac_try;;
  16305. esac
  16306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16307. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16308. ac_status=$?
  16309. grep -v '^ *+' conftest.er1 >conftest.err
  16310. rm -f conftest.er1
  16311. cat conftest.err >&5
  16312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16313. (exit $ac_status); } >/dev/null && {
  16314. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16315. test ! -s conftest.err
  16316. }; then
  16317. ac_header_preproc=yes
  16318. else
  16319. echo "$as_me: failed program was:" >&5
  16320. sed 's/^/| /' conftest.$ac_ext >&5
  16321. ac_header_preproc=no
  16322. fi
  16323. rm -f conftest.err conftest.$ac_ext
  16324. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16325. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16326. # So? What about this header?
  16327. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16328. yes:no: )
  16329. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16330. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16331. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16332. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16333. ac_header_preproc=yes
  16334. ;;
  16335. no:yes:* )
  16336. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16337. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16338. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16339. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16340. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16341. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16342. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16343. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16344. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16345. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16346. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16347. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16348. ( cat <<\_ASBOX
  16349. ## ----------------------------------------------- ##
  16350. ## Report this to t-tujikawa@users.sourceforge.net ##
  16351. ## ----------------------------------------------- ##
  16352. _ASBOX
  16353. ) | sed "s/^/$as_me: WARNING: /" >&2
  16354. ;;
  16355. esac
  16356. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16357. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16358. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16359. echo $ECHO_N "(cached) $ECHO_C" >&6
  16360. else
  16361. eval "$as_ac_Header=\$ac_header_preproc"
  16362. fi
  16363. ac_res=`eval echo '${'$as_ac_Header'}'`
  16364. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16365. echo "${ECHO_T}$ac_res" >&6; }
  16366. fi
  16367. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16368. cat >>confdefs.h <<_ACEOF
  16369. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16370. _ACEOF
  16371. fi
  16372. done
  16373. for ac_func in $ac_func_list
  16374. do
  16375. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16376. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16377. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16378. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16379. echo $ECHO_N "(cached) $ECHO_C" >&6
  16380. else
  16381. cat >conftest.$ac_ext <<_ACEOF
  16382. /* confdefs.h. */
  16383. _ACEOF
  16384. cat confdefs.h >>conftest.$ac_ext
  16385. cat >>conftest.$ac_ext <<_ACEOF
  16386. /* end confdefs.h. */
  16387. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16388. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16389. #define $ac_func innocuous_$ac_func
  16390. /* System header to define __stub macros and hopefully few prototypes,
  16391. which can conflict with char $ac_func (); below.
  16392. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16393. <limits.h> exists even on freestanding compilers. */
  16394. #ifdef __STDC__
  16395. # include <limits.h>
  16396. #else
  16397. # include <assert.h>
  16398. #endif
  16399. #undef $ac_func
  16400. /* Override any GCC internal prototype to avoid an error.
  16401. Use char because int might match the return type of a GCC
  16402. builtin and then its argument prototype would still apply. */
  16403. #ifdef __cplusplus
  16404. extern "C"
  16405. #endif
  16406. char $ac_func ();
  16407. /* The GNU C library defines this for functions which it implements
  16408. to always fail with ENOSYS. Some functions are actually named
  16409. something starting with __ and the normal name is an alias. */
  16410. #if defined __stub_$ac_func || defined __stub___$ac_func
  16411. choke me
  16412. #endif
  16413. int
  16414. main ()
  16415. {
  16416. return $ac_func ();
  16417. ;
  16418. return 0;
  16419. }
  16420. _ACEOF
  16421. rm -f conftest.$ac_objext conftest$ac_exeext
  16422. if { (ac_try="$ac_link"
  16423. case "(($ac_try" in
  16424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16425. *) ac_try_echo=$ac_try;;
  16426. esac
  16427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16428. (eval "$ac_link") 2>conftest.er1
  16429. ac_status=$?
  16430. grep -v '^ *+' conftest.er1 >conftest.err
  16431. rm -f conftest.er1
  16432. cat conftest.err >&5
  16433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16434. (exit $ac_status); } && {
  16435. test -z "$ac_cxx_werror_flag" ||
  16436. test ! -s conftest.err
  16437. } && test -s conftest$ac_exeext &&
  16438. $as_test_x conftest$ac_exeext; then
  16439. eval "$as_ac_var=yes"
  16440. else
  16441. echo "$as_me: failed program was:" >&5
  16442. sed 's/^/| /' conftest.$ac_ext >&5
  16443. eval "$as_ac_var=no"
  16444. fi
  16445. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16446. conftest$ac_exeext conftest.$ac_ext
  16447. fi
  16448. ac_res=`eval echo '${'$as_ac_var'}'`
  16449. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16450. echo "${ECHO_T}$ac_res" >&6; }
  16451. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16452. cat >>confdefs.h <<_ACEOF
  16453. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16454. _ACEOF
  16455. fi
  16456. done
  16457. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16458. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16459. if test "${ac_cv_func_working_mktime+set}" = set; then
  16460. echo $ECHO_N "(cached) $ECHO_C" >&6
  16461. else
  16462. if test "$cross_compiling" = yes; then
  16463. ac_cv_func_working_mktime=no
  16464. else
  16465. cat >conftest.$ac_ext <<_ACEOF
  16466. /* confdefs.h. */
  16467. _ACEOF
  16468. cat confdefs.h >>conftest.$ac_ext
  16469. cat >>conftest.$ac_ext <<_ACEOF
  16470. /* end confdefs.h. */
  16471. /* Test program from Paul Eggert and Tony Leneis. */
  16472. #ifdef TIME_WITH_SYS_TIME
  16473. # include <sys/time.h>
  16474. # include <time.h>
  16475. #else
  16476. # ifdef HAVE_SYS_TIME_H
  16477. # include <sys/time.h>
  16478. # else
  16479. # include <time.h>
  16480. # endif
  16481. #endif
  16482. #include <limits.h>
  16483. #include <stdlib.h>
  16484. #ifdef HAVE_UNISTD_H
  16485. # include <unistd.h>
  16486. #endif
  16487. #ifndef HAVE_ALARM
  16488. # define alarm(X) /* empty */
  16489. #endif
  16490. /* Work around redefinition to rpl_putenv by other config tests. */
  16491. #undef putenv
  16492. static time_t time_t_max;
  16493. static time_t time_t_min;
  16494. /* Values we'll use to set the TZ environment variable. */
  16495. static char *tz_strings[] = {
  16496. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16497. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16498. };
  16499. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16500. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16501. Based on a problem report from Andreas Jaeger. */
  16502. static int
  16503. spring_forward_gap ()
  16504. {
  16505. /* glibc (up to about 1998-10-07) failed this test. */
  16506. struct tm tm;
  16507. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16508. instead of "TZ=America/Vancouver" in order to detect the bug even
  16509. on systems that don't support the Olson extension, or don't have the
  16510. full zoneinfo tables installed. */
  16511. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16512. tm.tm_year = 98;
  16513. tm.tm_mon = 3;
  16514. tm.tm_mday = 5;
  16515. tm.tm_hour = 2;
  16516. tm.tm_min = 0;
  16517. tm.tm_sec = 0;
  16518. tm.tm_isdst = -1;
  16519. return mktime (&tm) != (time_t) -1;
  16520. }
  16521. static int
  16522. mktime_test1 (now)
  16523. time_t now;
  16524. {
  16525. struct tm *lt;
  16526. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16527. }
  16528. static int
  16529. mktime_test (now)
  16530. time_t now;
  16531. {
  16532. return (mktime_test1 (now)
  16533. && mktime_test1 ((time_t) (time_t_max - now))
  16534. && mktime_test1 ((time_t) (time_t_min + now)));
  16535. }
  16536. static int
  16537. irix_6_4_bug ()
  16538. {
  16539. /* Based on code from Ariel Faigon. */
  16540. struct tm tm;
  16541. tm.tm_year = 96;
  16542. tm.tm_mon = 3;
  16543. tm.tm_mday = 0;
  16544. tm.tm_hour = 0;
  16545. tm.tm_min = 0;
  16546. tm.tm_sec = 0;
  16547. tm.tm_isdst = -1;
  16548. mktime (&tm);
  16549. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16550. }
  16551. static int
  16552. bigtime_test (j)
  16553. int j;
  16554. {
  16555. struct tm tm;
  16556. time_t now;
  16557. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16558. now = mktime (&tm);
  16559. if (now != (time_t) -1)
  16560. {
  16561. struct tm *lt = localtime (&now);
  16562. if (! (lt
  16563. && lt->tm_year == tm.tm_year
  16564. && lt->tm_mon == tm.tm_mon
  16565. && lt->tm_mday == tm.tm_mday
  16566. && lt->tm_hour == tm.tm_hour
  16567. && lt->tm_min == tm.tm_min
  16568. && lt->tm_sec == tm.tm_sec
  16569. && lt->tm_yday == tm.tm_yday
  16570. && lt->tm_wday == tm.tm_wday
  16571. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16572. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16573. return 0;
  16574. }
  16575. return 1;
  16576. }
  16577. static int
  16578. year_2050_test ()
  16579. {
  16580. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16581. ignoring leap seconds. */
  16582. unsigned long int answer = 2527315200UL;
  16583. struct tm tm;
  16584. time_t t;
  16585. tm.tm_year = 2050 - 1900;
  16586. tm.tm_mon = 2 - 1;
  16587. tm.tm_mday = 1;
  16588. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16589. tm.tm_isdst = -1;
  16590. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16591. instead of "TZ=America/Vancouver" in order to detect the bug even
  16592. on systems that don't support the Olson extension, or don't have the
  16593. full zoneinfo tables installed. */
  16594. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16595. t = mktime (&tm);
  16596. /* Check that the result is either a failure, or close enough
  16597. to the correct answer that we can assume the discrepancy is
  16598. due to leap seconds. */
  16599. return (t == (time_t) -1
  16600. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16601. }
  16602. int
  16603. main ()
  16604. {
  16605. time_t t, delta;
  16606. int i, j;
  16607. /* This test makes some buggy mktime implementations loop.
  16608. Give up after 60 seconds; a mktime slower than that
  16609. isn't worth using anyway. */
  16610. alarm (60);
  16611. for (;;)
  16612. {
  16613. t = (time_t_max << 1) + 1;
  16614. if (t <= time_t_max)
  16615. break;
  16616. time_t_max = t;
  16617. }
  16618. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16619. delta = time_t_max / 997; /* a suitable prime number */
  16620. for (i = 0; i < N_STRINGS; i++)
  16621. {
  16622. if (tz_strings[i])
  16623. putenv (tz_strings[i]);
  16624. for (t = 0; t <= time_t_max - delta; t += delta)
  16625. if (! mktime_test (t))
  16626. return 1;
  16627. if (! (mktime_test ((time_t) 1)
  16628. && mktime_test ((time_t) (60 * 60))
  16629. && mktime_test ((time_t) (60 * 60 * 24))))
  16630. return 1;
  16631. for (j = 1; ; j <<= 1)
  16632. if (! bigtime_test (j))
  16633. return 1;
  16634. else if (INT_MAX / 2 < j)
  16635. break;
  16636. if (! bigtime_test (INT_MAX))
  16637. return 1;
  16638. }
  16639. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16640. }
  16641. _ACEOF
  16642. rm -f conftest$ac_exeext
  16643. if { (ac_try="$ac_link"
  16644. case "(($ac_try" in
  16645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16646. *) ac_try_echo=$ac_try;;
  16647. esac
  16648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16649. (eval "$ac_link") 2>&5
  16650. ac_status=$?
  16651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16652. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16653. { (case "(($ac_try" in
  16654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16655. *) ac_try_echo=$ac_try;;
  16656. esac
  16657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16658. (eval "$ac_try") 2>&5
  16659. ac_status=$?
  16660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16661. (exit $ac_status); }; }; then
  16662. ac_cv_func_working_mktime=yes
  16663. else
  16664. echo "$as_me: program exited with status $ac_status" >&5
  16665. echo "$as_me: failed program was:" >&5
  16666. sed 's/^/| /' conftest.$ac_ext >&5
  16667. ( exit $ac_status )
  16668. ac_cv_func_working_mktime=no
  16669. fi
  16670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16671. fi
  16672. fi
  16673. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16674. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16675. if test $ac_cv_func_working_mktime = no; then
  16676. case " $LIBOBJS " in
  16677. *" mktime.$ac_objext "* ) ;;
  16678. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16679. ;;
  16680. esac
  16681. fi
  16682. for ac_header in stdlib.h unistd.h
  16683. do
  16684. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16685. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16686. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16687. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16688. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16689. echo $ECHO_N "(cached) $ECHO_C" >&6
  16690. fi
  16691. ac_res=`eval echo '${'$as_ac_Header'}'`
  16692. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16693. echo "${ECHO_T}$ac_res" >&6; }
  16694. else
  16695. # Is the header compilable?
  16696. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16697. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16698. cat >conftest.$ac_ext <<_ACEOF
  16699. /* confdefs.h. */
  16700. _ACEOF
  16701. cat confdefs.h >>conftest.$ac_ext
  16702. cat >>conftest.$ac_ext <<_ACEOF
  16703. /* end confdefs.h. */
  16704. $ac_includes_default
  16705. #include <$ac_header>
  16706. _ACEOF
  16707. rm -f conftest.$ac_objext
  16708. if { (ac_try="$ac_compile"
  16709. case "(($ac_try" in
  16710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16711. *) ac_try_echo=$ac_try;;
  16712. esac
  16713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16714. (eval "$ac_compile") 2>conftest.er1
  16715. ac_status=$?
  16716. grep -v '^ *+' conftest.er1 >conftest.err
  16717. rm -f conftest.er1
  16718. cat conftest.err >&5
  16719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16720. (exit $ac_status); } && {
  16721. test -z "$ac_cxx_werror_flag" ||
  16722. test ! -s conftest.err
  16723. } && test -s conftest.$ac_objext; then
  16724. ac_header_compiler=yes
  16725. else
  16726. echo "$as_me: failed program was:" >&5
  16727. sed 's/^/| /' conftest.$ac_ext >&5
  16728. ac_header_compiler=no
  16729. fi
  16730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16731. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16732. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16733. # Is the header present?
  16734. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16735. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16736. cat >conftest.$ac_ext <<_ACEOF
  16737. /* confdefs.h. */
  16738. _ACEOF
  16739. cat confdefs.h >>conftest.$ac_ext
  16740. cat >>conftest.$ac_ext <<_ACEOF
  16741. /* end confdefs.h. */
  16742. #include <$ac_header>
  16743. _ACEOF
  16744. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16745. case "(($ac_try" in
  16746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16747. *) ac_try_echo=$ac_try;;
  16748. esac
  16749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16750. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16751. ac_status=$?
  16752. grep -v '^ *+' conftest.er1 >conftest.err
  16753. rm -f conftest.er1
  16754. cat conftest.err >&5
  16755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16756. (exit $ac_status); } >/dev/null && {
  16757. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16758. test ! -s conftest.err
  16759. }; then
  16760. ac_header_preproc=yes
  16761. else
  16762. echo "$as_me: failed program was:" >&5
  16763. sed 's/^/| /' conftest.$ac_ext >&5
  16764. ac_header_preproc=no
  16765. fi
  16766. rm -f conftest.err conftest.$ac_ext
  16767. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16768. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16769. # So? What about this header?
  16770. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16771. yes:no: )
  16772. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16773. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16774. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16775. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16776. ac_header_preproc=yes
  16777. ;;
  16778. no:yes:* )
  16779. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16780. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16781. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16782. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16783. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16784. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16785. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16786. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16787. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16788. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16789. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16790. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16791. ( cat <<\_ASBOX
  16792. ## ----------------------------------------------- ##
  16793. ## Report this to t-tujikawa@users.sourceforge.net ##
  16794. ## ----------------------------------------------- ##
  16795. _ASBOX
  16796. ) | sed "s/^/$as_me: WARNING: /" >&2
  16797. ;;
  16798. esac
  16799. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16800. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16801. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16802. echo $ECHO_N "(cached) $ECHO_C" >&6
  16803. else
  16804. eval "$as_ac_Header=\$ac_header_preproc"
  16805. fi
  16806. ac_res=`eval echo '${'$as_ac_Header'}'`
  16807. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16808. echo "${ECHO_T}$ac_res" >&6; }
  16809. fi
  16810. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16811. cat >>confdefs.h <<_ACEOF
  16812. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16813. _ACEOF
  16814. fi
  16815. done
  16816. for ac_func in getpagesize
  16817. do
  16818. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16819. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16820. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16821. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16822. echo $ECHO_N "(cached) $ECHO_C" >&6
  16823. else
  16824. cat >conftest.$ac_ext <<_ACEOF
  16825. /* confdefs.h. */
  16826. _ACEOF
  16827. cat confdefs.h >>conftest.$ac_ext
  16828. cat >>conftest.$ac_ext <<_ACEOF
  16829. /* end confdefs.h. */
  16830. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16831. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16832. #define $ac_func innocuous_$ac_func
  16833. /* System header to define __stub macros and hopefully few prototypes,
  16834. which can conflict with char $ac_func (); below.
  16835. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16836. <limits.h> exists even on freestanding compilers. */
  16837. #ifdef __STDC__
  16838. # include <limits.h>
  16839. #else
  16840. # include <assert.h>
  16841. #endif
  16842. #undef $ac_func
  16843. /* Override any GCC internal prototype to avoid an error.
  16844. Use char because int might match the return type of a GCC
  16845. builtin and then its argument prototype would still apply. */
  16846. #ifdef __cplusplus
  16847. extern "C"
  16848. #endif
  16849. char $ac_func ();
  16850. /* The GNU C library defines this for functions which it implements
  16851. to always fail with ENOSYS. Some functions are actually named
  16852. something starting with __ and the normal name is an alias. */
  16853. #if defined __stub_$ac_func || defined __stub___$ac_func
  16854. choke me
  16855. #endif
  16856. int
  16857. main ()
  16858. {
  16859. return $ac_func ();
  16860. ;
  16861. return 0;
  16862. }
  16863. _ACEOF
  16864. rm -f conftest.$ac_objext conftest$ac_exeext
  16865. if { (ac_try="$ac_link"
  16866. case "(($ac_try" in
  16867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16868. *) ac_try_echo=$ac_try;;
  16869. esac
  16870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16871. (eval "$ac_link") 2>conftest.er1
  16872. ac_status=$?
  16873. grep -v '^ *+' conftest.er1 >conftest.err
  16874. rm -f conftest.er1
  16875. cat conftest.err >&5
  16876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16877. (exit $ac_status); } && {
  16878. test -z "$ac_cxx_werror_flag" ||
  16879. test ! -s conftest.err
  16880. } && test -s conftest$ac_exeext &&
  16881. $as_test_x conftest$ac_exeext; then
  16882. eval "$as_ac_var=yes"
  16883. else
  16884. echo "$as_me: failed program was:" >&5
  16885. sed 's/^/| /' conftest.$ac_ext >&5
  16886. eval "$as_ac_var=no"
  16887. fi
  16888. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16889. conftest$ac_exeext conftest.$ac_ext
  16890. fi
  16891. ac_res=`eval echo '${'$as_ac_var'}'`
  16892. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16893. echo "${ECHO_T}$ac_res" >&6; }
  16894. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16895. cat >>confdefs.h <<_ACEOF
  16896. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16897. _ACEOF
  16898. fi
  16899. done
  16900. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16901. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16902. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16903. echo $ECHO_N "(cached) $ECHO_C" >&6
  16904. else
  16905. if test "$cross_compiling" = yes; then
  16906. ac_cv_func_mmap_fixed_mapped=no
  16907. else
  16908. cat >conftest.$ac_ext <<_ACEOF
  16909. /* confdefs.h. */
  16910. _ACEOF
  16911. cat confdefs.h >>conftest.$ac_ext
  16912. cat >>conftest.$ac_ext <<_ACEOF
  16913. /* end confdefs.h. */
  16914. $ac_includes_default
  16915. /* malloc might have been renamed as rpl_malloc. */
  16916. #undef malloc
  16917. /* Thanks to Mike Haertel and Jim Avera for this test.
  16918. Here is a matrix of mmap possibilities:
  16919. mmap private not fixed
  16920. mmap private fixed at somewhere currently unmapped
  16921. mmap private fixed at somewhere already mapped
  16922. mmap shared not fixed
  16923. mmap shared fixed at somewhere currently unmapped
  16924. mmap shared fixed at somewhere already mapped
  16925. For private mappings, we should verify that changes cannot be read()
  16926. back from the file, nor mmap's back from the file at a different
  16927. address. (There have been systems where private was not correctly
  16928. implemented like the infamous i386 svr4.0, and systems where the
  16929. VM page cache was not coherent with the file system buffer cache
  16930. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16931. For shared mappings, we should conversely verify that changes get
  16932. propagated back to all the places they're supposed to be.
  16933. Grep wants private fixed already mapped.
  16934. The main things grep needs to know about mmap are:
  16935. * does it exist and is it safe to write into the mmap'd area
  16936. * how to use it (BSD variants) */
  16937. #include <fcntl.h>
  16938. #include <sys/mman.h>
  16939. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16940. char *malloc ();
  16941. #endif
  16942. /* This mess was copied from the GNU getpagesize.h. */
  16943. #ifndef HAVE_GETPAGESIZE
  16944. /* Assume that all systems that can run configure have sys/param.h. */
  16945. # ifndef HAVE_SYS_PARAM_H
  16946. # define HAVE_SYS_PARAM_H 1
  16947. # endif
  16948. # ifdef _SC_PAGESIZE
  16949. # define getpagesize() sysconf(_SC_PAGESIZE)
  16950. # else /* no _SC_PAGESIZE */
  16951. # ifdef HAVE_SYS_PARAM_H
  16952. # include <sys/param.h>
  16953. # ifdef EXEC_PAGESIZE
  16954. # define getpagesize() EXEC_PAGESIZE
  16955. # else /* no EXEC_PAGESIZE */
  16956. # ifdef NBPG
  16957. # define getpagesize() NBPG * CLSIZE
  16958. # ifndef CLSIZE
  16959. # define CLSIZE 1
  16960. # endif /* no CLSIZE */
  16961. # else /* no NBPG */
  16962. # ifdef NBPC
  16963. # define getpagesize() NBPC
  16964. # else /* no NBPC */
  16965. # ifdef PAGESIZE
  16966. # define getpagesize() PAGESIZE
  16967. # endif /* PAGESIZE */
  16968. # endif /* no NBPC */
  16969. # endif /* no NBPG */
  16970. # endif /* no EXEC_PAGESIZE */
  16971. # else /* no HAVE_SYS_PARAM_H */
  16972. # define getpagesize() 8192 /* punt totally */
  16973. # endif /* no HAVE_SYS_PARAM_H */
  16974. # endif /* no _SC_PAGESIZE */
  16975. #endif /* no HAVE_GETPAGESIZE */
  16976. int
  16977. main ()
  16978. {
  16979. char *data, *data2, *data3;
  16980. int i, pagesize;
  16981. int fd;
  16982. pagesize = getpagesize ();
  16983. /* First, make a file with some known garbage in it. */
  16984. data = (char *) malloc (pagesize);
  16985. if (!data)
  16986. return 1;
  16987. for (i = 0; i < pagesize; ++i)
  16988. *(data + i) = rand ();
  16989. umask (0);
  16990. fd = creat ("conftest.mmap", 0600);
  16991. if (fd < 0)
  16992. return 1;
  16993. if (write (fd, data, pagesize) != pagesize)
  16994. return 1;
  16995. close (fd);
  16996. /* Next, try to mmap the file at a fixed address which already has
  16997. something else allocated at it. If we can, also make sure that
  16998. we see the same garbage. */
  16999. fd = open ("conftest.mmap", O_RDWR);
  17000. if (fd < 0)
  17001. return 1;
  17002. data2 = (char *) malloc (2 * pagesize);
  17003. if (!data2)
  17004. return 1;
  17005. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17006. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17007. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17008. return 1;
  17009. for (i = 0; i < pagesize; ++i)
  17010. if (*(data + i) != *(data2 + i))
  17011. return 1;
  17012. /* Finally, make sure that changes to the mapped area do not
  17013. percolate back to the file as seen by read(). (This is a bug on
  17014. some variants of i386 svr4.0.) */
  17015. for (i = 0; i < pagesize; ++i)
  17016. *(data2 + i) = *(data2 + i) + 1;
  17017. data3 = (char *) malloc (pagesize);
  17018. if (!data3)
  17019. return 1;
  17020. if (read (fd, data3, pagesize) != pagesize)
  17021. return 1;
  17022. for (i = 0; i < pagesize; ++i)
  17023. if (*(data + i) != *(data3 + i))
  17024. return 1;
  17025. close (fd);
  17026. return 0;
  17027. }
  17028. _ACEOF
  17029. rm -f conftest$ac_exeext
  17030. if { (ac_try="$ac_link"
  17031. case "(($ac_try" in
  17032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17033. *) ac_try_echo=$ac_try;;
  17034. esac
  17035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17036. (eval "$ac_link") 2>&5
  17037. ac_status=$?
  17038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17039. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17040. { (case "(($ac_try" in
  17041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17042. *) ac_try_echo=$ac_try;;
  17043. esac
  17044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17045. (eval "$ac_try") 2>&5
  17046. ac_status=$?
  17047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17048. (exit $ac_status); }; }; then
  17049. ac_cv_func_mmap_fixed_mapped=yes
  17050. else
  17051. echo "$as_me: program exited with status $ac_status" >&5
  17052. echo "$as_me: failed program was:" >&5
  17053. sed 's/^/| /' conftest.$ac_ext >&5
  17054. ( exit $ac_status )
  17055. ac_cv_func_mmap_fixed_mapped=no
  17056. fi
  17057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17058. fi
  17059. fi
  17060. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17061. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17062. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17063. cat >>confdefs.h <<\_ACEOF
  17064. #define HAVE_MMAP 1
  17065. _ACEOF
  17066. fi
  17067. rm -f conftest.mmap
  17068. for ac_header in sys/select.h sys/socket.h
  17069. do
  17070. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17071. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17072. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17073. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17074. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17075. echo $ECHO_N "(cached) $ECHO_C" >&6
  17076. fi
  17077. ac_res=`eval echo '${'$as_ac_Header'}'`
  17078. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17079. echo "${ECHO_T}$ac_res" >&6; }
  17080. else
  17081. # Is the header compilable?
  17082. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17083. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17084. cat >conftest.$ac_ext <<_ACEOF
  17085. /* confdefs.h. */
  17086. _ACEOF
  17087. cat confdefs.h >>conftest.$ac_ext
  17088. cat >>conftest.$ac_ext <<_ACEOF
  17089. /* end confdefs.h. */
  17090. $ac_includes_default
  17091. #include <$ac_header>
  17092. _ACEOF
  17093. rm -f conftest.$ac_objext
  17094. if { (ac_try="$ac_compile"
  17095. case "(($ac_try" in
  17096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17097. *) ac_try_echo=$ac_try;;
  17098. esac
  17099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17100. (eval "$ac_compile") 2>conftest.er1
  17101. ac_status=$?
  17102. grep -v '^ *+' conftest.er1 >conftest.err
  17103. rm -f conftest.er1
  17104. cat conftest.err >&5
  17105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17106. (exit $ac_status); } && {
  17107. test -z "$ac_cxx_werror_flag" ||
  17108. test ! -s conftest.err
  17109. } && test -s conftest.$ac_objext; then
  17110. ac_header_compiler=yes
  17111. else
  17112. echo "$as_me: failed program was:" >&5
  17113. sed 's/^/| /' conftest.$ac_ext >&5
  17114. ac_header_compiler=no
  17115. fi
  17116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17117. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17118. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17119. # Is the header present?
  17120. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17121. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17122. cat >conftest.$ac_ext <<_ACEOF
  17123. /* confdefs.h. */
  17124. _ACEOF
  17125. cat confdefs.h >>conftest.$ac_ext
  17126. cat >>conftest.$ac_ext <<_ACEOF
  17127. /* end confdefs.h. */
  17128. #include <$ac_header>
  17129. _ACEOF
  17130. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17131. case "(($ac_try" in
  17132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17133. *) ac_try_echo=$ac_try;;
  17134. esac
  17135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17136. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17137. ac_status=$?
  17138. grep -v '^ *+' conftest.er1 >conftest.err
  17139. rm -f conftest.er1
  17140. cat conftest.err >&5
  17141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17142. (exit $ac_status); } >/dev/null && {
  17143. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17144. test ! -s conftest.err
  17145. }; then
  17146. ac_header_preproc=yes
  17147. else
  17148. echo "$as_me: failed program was:" >&5
  17149. sed 's/^/| /' conftest.$ac_ext >&5
  17150. ac_header_preproc=no
  17151. fi
  17152. rm -f conftest.err conftest.$ac_ext
  17153. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17154. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17155. # So? What about this header?
  17156. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17157. yes:no: )
  17158. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17159. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17160. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17161. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17162. ac_header_preproc=yes
  17163. ;;
  17164. no:yes:* )
  17165. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17166. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17167. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17168. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17169. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17170. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17171. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17172. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17173. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17174. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17175. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17176. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17177. ( cat <<\_ASBOX
  17178. ## ----------------------------------------------- ##
  17179. ## Report this to t-tujikawa@users.sourceforge.net ##
  17180. ## ----------------------------------------------- ##
  17181. _ASBOX
  17182. ) | sed "s/^/$as_me: WARNING: /" >&2
  17183. ;;
  17184. esac
  17185. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17186. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17187. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17188. echo $ECHO_N "(cached) $ECHO_C" >&6
  17189. else
  17190. eval "$as_ac_Header=\$ac_header_preproc"
  17191. fi
  17192. ac_res=`eval echo '${'$as_ac_Header'}'`
  17193. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17194. echo "${ECHO_T}$ac_res" >&6; }
  17195. fi
  17196. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17197. cat >>confdefs.h <<_ACEOF
  17198. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17199. _ACEOF
  17200. fi
  17201. done
  17202. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17203. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17204. if test "${ac_cv_func_select_args+set}" = set; then
  17205. echo $ECHO_N "(cached) $ECHO_C" >&6
  17206. else
  17207. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17208. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17209. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17210. cat >conftest.$ac_ext <<_ACEOF
  17211. /* confdefs.h. */
  17212. _ACEOF
  17213. cat confdefs.h >>conftest.$ac_ext
  17214. cat >>conftest.$ac_ext <<_ACEOF
  17215. /* end confdefs.h. */
  17216. $ac_includes_default
  17217. #ifdef HAVE_SYS_SELECT_H
  17218. # include <sys/select.h>
  17219. #endif
  17220. #ifdef HAVE_SYS_SOCKET_H
  17221. # include <sys/socket.h>
  17222. #endif
  17223. int
  17224. main ()
  17225. {
  17226. extern int select ($ac_arg1,
  17227. $ac_arg234, $ac_arg234, $ac_arg234,
  17228. $ac_arg5);
  17229. ;
  17230. return 0;
  17231. }
  17232. _ACEOF
  17233. rm -f conftest.$ac_objext
  17234. if { (ac_try="$ac_compile"
  17235. case "(($ac_try" in
  17236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17237. *) ac_try_echo=$ac_try;;
  17238. esac
  17239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17240. (eval "$ac_compile") 2>conftest.er1
  17241. ac_status=$?
  17242. grep -v '^ *+' conftest.er1 >conftest.err
  17243. rm -f conftest.er1
  17244. cat conftest.err >&5
  17245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17246. (exit $ac_status); } && {
  17247. test -z "$ac_cxx_werror_flag" ||
  17248. test ! -s conftest.err
  17249. } && test -s conftest.$ac_objext; then
  17250. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17251. else
  17252. echo "$as_me: failed program was:" >&5
  17253. sed 's/^/| /' conftest.$ac_ext >&5
  17254. fi
  17255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17256. done
  17257. done
  17258. done
  17259. # Provide a safe default value.
  17260. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17261. fi
  17262. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17263. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17264. ac_save_IFS=$IFS; IFS=','
  17265. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17266. IFS=$ac_save_IFS
  17267. shift
  17268. cat >>confdefs.h <<_ACEOF
  17269. #define SELECT_TYPE_ARG1 $1
  17270. _ACEOF
  17271. cat >>confdefs.h <<_ACEOF
  17272. #define SELECT_TYPE_ARG234 ($2)
  17273. _ACEOF
  17274. cat >>confdefs.h <<_ACEOF
  17275. #define SELECT_TYPE_ARG5 ($3)
  17276. _ACEOF
  17277. rm -f conftest*
  17278. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17279. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17280. if test "${ac_cv_type_signal+set}" = set; then
  17281. echo $ECHO_N "(cached) $ECHO_C" >&6
  17282. else
  17283. cat >conftest.$ac_ext <<_ACEOF
  17284. /* confdefs.h. */
  17285. _ACEOF
  17286. cat confdefs.h >>conftest.$ac_ext
  17287. cat >>conftest.$ac_ext <<_ACEOF
  17288. /* end confdefs.h. */
  17289. #include <sys/types.h>
  17290. #include <signal.h>
  17291. int
  17292. main ()
  17293. {
  17294. return *(signal (0, 0)) (0) == 1;
  17295. ;
  17296. return 0;
  17297. }
  17298. _ACEOF
  17299. rm -f conftest.$ac_objext
  17300. if { (ac_try="$ac_compile"
  17301. case "(($ac_try" in
  17302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17303. *) ac_try_echo=$ac_try;;
  17304. esac
  17305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17306. (eval "$ac_compile") 2>conftest.er1
  17307. ac_status=$?
  17308. grep -v '^ *+' conftest.er1 >conftest.err
  17309. rm -f conftest.er1
  17310. cat conftest.err >&5
  17311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17312. (exit $ac_status); } && {
  17313. test -z "$ac_cxx_werror_flag" ||
  17314. test ! -s conftest.err
  17315. } && test -s conftest.$ac_objext; then
  17316. ac_cv_type_signal=int
  17317. else
  17318. echo "$as_me: failed program was:" >&5
  17319. sed 's/^/| /' conftest.$ac_ext >&5
  17320. ac_cv_type_signal=void
  17321. fi
  17322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17323. fi
  17324. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17325. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17326. cat >>confdefs.h <<_ACEOF
  17327. #define RETSIGTYPE $ac_cv_type_signal
  17328. _ACEOF
  17329. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17330. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17331. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17332. echo $ECHO_N "(cached) $ECHO_C" >&6
  17333. else
  17334. rm -f conftest.sym conftest.file
  17335. echo >conftest.file
  17336. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17337. if test "$cross_compiling" = yes; then
  17338. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17339. else
  17340. cat >conftest.$ac_ext <<_ACEOF
  17341. /* confdefs.h. */
  17342. _ACEOF
  17343. cat confdefs.h >>conftest.$ac_ext
  17344. cat >>conftest.$ac_ext <<_ACEOF
  17345. /* end confdefs.h. */
  17346. $ac_includes_default
  17347. int
  17348. main ()
  17349. {
  17350. struct stat sbuf;
  17351. /* Linux will dereference the symlink and fail.
  17352. That is better in the sense that it means we will not
  17353. have to compile and use the lstat wrapper. */
  17354. return lstat ("conftest.sym/", &sbuf) == 0;
  17355. ;
  17356. return 0;
  17357. }
  17358. _ACEOF
  17359. rm -f conftest$ac_exeext
  17360. if { (ac_try="$ac_link"
  17361. case "(($ac_try" in
  17362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17363. *) ac_try_echo=$ac_try;;
  17364. esac
  17365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17366. (eval "$ac_link") 2>&5
  17367. ac_status=$?
  17368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17369. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17370. { (case "(($ac_try" in
  17371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17372. *) ac_try_echo=$ac_try;;
  17373. esac
  17374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17375. (eval "$ac_try") 2>&5
  17376. ac_status=$?
  17377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17378. (exit $ac_status); }; }; then
  17379. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17380. else
  17381. echo "$as_me: program exited with status $ac_status" >&5
  17382. echo "$as_me: failed program was:" >&5
  17383. sed 's/^/| /' conftest.$ac_ext >&5
  17384. ( exit $ac_status )
  17385. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17386. fi
  17387. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17388. fi
  17389. else
  17390. # If the `ln -s' command failed, then we probably don't even
  17391. # have an lstat function.
  17392. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17393. fi
  17394. rm -f conftest.sym conftest.file
  17395. fi
  17396. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17397. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17398. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17399. cat >>confdefs.h <<_ACEOF
  17400. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17401. _ACEOF
  17402. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17403. case " $LIBOBJS " in
  17404. *" lstat.$ac_objext "* ) ;;
  17405. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17406. ;;
  17407. esac
  17408. fi
  17409. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17410. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17411. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17412. echo $ECHO_N "(cached) $ECHO_C" >&6
  17413. else
  17414. if test "$cross_compiling" = yes; then
  17415. ac_cv_func_stat_empty_string_bug=yes
  17416. else
  17417. cat >conftest.$ac_ext <<_ACEOF
  17418. /* confdefs.h. */
  17419. _ACEOF
  17420. cat confdefs.h >>conftest.$ac_ext
  17421. cat >>conftest.$ac_ext <<_ACEOF
  17422. /* end confdefs.h. */
  17423. $ac_includes_default
  17424. int
  17425. main ()
  17426. {
  17427. struct stat sbuf;
  17428. return stat ("", &sbuf) == 0;
  17429. ;
  17430. return 0;
  17431. }
  17432. _ACEOF
  17433. rm -f conftest$ac_exeext
  17434. if { (ac_try="$ac_link"
  17435. case "(($ac_try" in
  17436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17437. *) ac_try_echo=$ac_try;;
  17438. esac
  17439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17440. (eval "$ac_link") 2>&5
  17441. ac_status=$?
  17442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17443. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17444. { (case "(($ac_try" in
  17445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17446. *) ac_try_echo=$ac_try;;
  17447. esac
  17448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17449. (eval "$ac_try") 2>&5
  17450. ac_status=$?
  17451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17452. (exit $ac_status); }; }; then
  17453. ac_cv_func_stat_empty_string_bug=no
  17454. else
  17455. echo "$as_me: program exited with status $ac_status" >&5
  17456. echo "$as_me: failed program was:" >&5
  17457. sed 's/^/| /' conftest.$ac_ext >&5
  17458. ( exit $ac_status )
  17459. ac_cv_func_stat_empty_string_bug=yes
  17460. fi
  17461. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17462. fi
  17463. fi
  17464. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17465. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17466. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17467. case " $LIBOBJS " in
  17468. *" stat.$ac_objext "* ) ;;
  17469. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17470. ;;
  17471. esac
  17472. cat >>confdefs.h <<_ACEOF
  17473. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17474. _ACEOF
  17475. fi
  17476. for ac_func in strftime
  17477. do
  17478. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17479. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17480. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17481. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17482. echo $ECHO_N "(cached) $ECHO_C" >&6
  17483. else
  17484. cat >conftest.$ac_ext <<_ACEOF
  17485. /* confdefs.h. */
  17486. _ACEOF
  17487. cat confdefs.h >>conftest.$ac_ext
  17488. cat >>conftest.$ac_ext <<_ACEOF
  17489. /* end confdefs.h. */
  17490. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17491. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17492. #define $ac_func innocuous_$ac_func
  17493. /* System header to define __stub macros and hopefully few prototypes,
  17494. which can conflict with char $ac_func (); below.
  17495. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17496. <limits.h> exists even on freestanding compilers. */
  17497. #ifdef __STDC__
  17498. # include <limits.h>
  17499. #else
  17500. # include <assert.h>
  17501. #endif
  17502. #undef $ac_func
  17503. /* Override any GCC internal prototype to avoid an error.
  17504. Use char because int might match the return type of a GCC
  17505. builtin and then its argument prototype would still apply. */
  17506. #ifdef __cplusplus
  17507. extern "C"
  17508. #endif
  17509. char $ac_func ();
  17510. /* The GNU C library defines this for functions which it implements
  17511. to always fail with ENOSYS. Some functions are actually named
  17512. something starting with __ and the normal name is an alias. */
  17513. #if defined __stub_$ac_func || defined __stub___$ac_func
  17514. choke me
  17515. #endif
  17516. int
  17517. main ()
  17518. {
  17519. return $ac_func ();
  17520. ;
  17521. return 0;
  17522. }
  17523. _ACEOF
  17524. rm -f conftest.$ac_objext conftest$ac_exeext
  17525. if { (ac_try="$ac_link"
  17526. case "(($ac_try" in
  17527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17528. *) ac_try_echo=$ac_try;;
  17529. esac
  17530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17531. (eval "$ac_link") 2>conftest.er1
  17532. ac_status=$?
  17533. grep -v '^ *+' conftest.er1 >conftest.err
  17534. rm -f conftest.er1
  17535. cat conftest.err >&5
  17536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17537. (exit $ac_status); } && {
  17538. test -z "$ac_cxx_werror_flag" ||
  17539. test ! -s conftest.err
  17540. } && test -s conftest$ac_exeext &&
  17541. $as_test_x conftest$ac_exeext; then
  17542. eval "$as_ac_var=yes"
  17543. else
  17544. echo "$as_me: failed program was:" >&5
  17545. sed 's/^/| /' conftest.$ac_ext >&5
  17546. eval "$as_ac_var=no"
  17547. fi
  17548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17549. conftest$ac_exeext conftest.$ac_ext
  17550. fi
  17551. ac_res=`eval echo '${'$as_ac_var'}'`
  17552. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17553. echo "${ECHO_T}$ac_res" >&6; }
  17554. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17555. cat >>confdefs.h <<_ACEOF
  17556. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17557. _ACEOF
  17558. else
  17559. # strftime is in -lintl on SCO UNIX.
  17560. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17561. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17562. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17563. echo $ECHO_N "(cached) $ECHO_C" >&6
  17564. else
  17565. ac_check_lib_save_LIBS=$LIBS
  17566. LIBS="-lintl $LIBS"
  17567. cat >conftest.$ac_ext <<_ACEOF
  17568. /* confdefs.h. */
  17569. _ACEOF
  17570. cat confdefs.h >>conftest.$ac_ext
  17571. cat >>conftest.$ac_ext <<_ACEOF
  17572. /* end confdefs.h. */
  17573. /* Override any GCC internal prototype to avoid an error.
  17574. Use char because int might match the return type of a GCC
  17575. builtin and then its argument prototype would still apply. */
  17576. #ifdef __cplusplus
  17577. extern "C"
  17578. #endif
  17579. char strftime ();
  17580. int
  17581. main ()
  17582. {
  17583. return strftime ();
  17584. ;
  17585. return 0;
  17586. }
  17587. _ACEOF
  17588. rm -f conftest.$ac_objext conftest$ac_exeext
  17589. if { (ac_try="$ac_link"
  17590. case "(($ac_try" in
  17591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17592. *) ac_try_echo=$ac_try;;
  17593. esac
  17594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17595. (eval "$ac_link") 2>conftest.er1
  17596. ac_status=$?
  17597. grep -v '^ *+' conftest.er1 >conftest.err
  17598. rm -f conftest.er1
  17599. cat conftest.err >&5
  17600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17601. (exit $ac_status); } && {
  17602. test -z "$ac_cxx_werror_flag" ||
  17603. test ! -s conftest.err
  17604. } && test -s conftest$ac_exeext &&
  17605. $as_test_x conftest$ac_exeext; then
  17606. ac_cv_lib_intl_strftime=yes
  17607. else
  17608. echo "$as_me: failed program was:" >&5
  17609. sed 's/^/| /' conftest.$ac_ext >&5
  17610. ac_cv_lib_intl_strftime=no
  17611. fi
  17612. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17613. conftest$ac_exeext conftest.$ac_ext
  17614. LIBS=$ac_check_lib_save_LIBS
  17615. fi
  17616. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17617. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17618. if test $ac_cv_lib_intl_strftime = yes; then
  17619. cat >>confdefs.h <<\_ACEOF
  17620. #define HAVE_STRFTIME 1
  17621. _ACEOF
  17622. LIBS="-lintl $LIBS"
  17623. fi
  17624. fi
  17625. done
  17626. for ac_func in vprintf
  17627. do
  17628. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17629. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17630. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17631. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17632. echo $ECHO_N "(cached) $ECHO_C" >&6
  17633. else
  17634. cat >conftest.$ac_ext <<_ACEOF
  17635. /* confdefs.h. */
  17636. _ACEOF
  17637. cat confdefs.h >>conftest.$ac_ext
  17638. cat >>conftest.$ac_ext <<_ACEOF
  17639. /* end confdefs.h. */
  17640. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17641. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17642. #define $ac_func innocuous_$ac_func
  17643. /* System header to define __stub macros and hopefully few prototypes,
  17644. which can conflict with char $ac_func (); below.
  17645. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17646. <limits.h> exists even on freestanding compilers. */
  17647. #ifdef __STDC__
  17648. # include <limits.h>
  17649. #else
  17650. # include <assert.h>
  17651. #endif
  17652. #undef $ac_func
  17653. /* Override any GCC internal prototype to avoid an error.
  17654. Use char because int might match the return type of a GCC
  17655. builtin and then its argument prototype would still apply. */
  17656. #ifdef __cplusplus
  17657. extern "C"
  17658. #endif
  17659. char $ac_func ();
  17660. /* The GNU C library defines this for functions which it implements
  17661. to always fail with ENOSYS. Some functions are actually named
  17662. something starting with __ and the normal name is an alias. */
  17663. #if defined __stub_$ac_func || defined __stub___$ac_func
  17664. choke me
  17665. #endif
  17666. int
  17667. main ()
  17668. {
  17669. return $ac_func ();
  17670. ;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. rm -f conftest.$ac_objext conftest$ac_exeext
  17675. if { (ac_try="$ac_link"
  17676. case "(($ac_try" in
  17677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17678. *) ac_try_echo=$ac_try;;
  17679. esac
  17680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17681. (eval "$ac_link") 2>conftest.er1
  17682. ac_status=$?
  17683. grep -v '^ *+' conftest.er1 >conftest.err
  17684. rm -f conftest.er1
  17685. cat conftest.err >&5
  17686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17687. (exit $ac_status); } && {
  17688. test -z "$ac_cxx_werror_flag" ||
  17689. test ! -s conftest.err
  17690. } && test -s conftest$ac_exeext &&
  17691. $as_test_x conftest$ac_exeext; then
  17692. eval "$as_ac_var=yes"
  17693. else
  17694. echo "$as_me: failed program was:" >&5
  17695. sed 's/^/| /' conftest.$ac_ext >&5
  17696. eval "$as_ac_var=no"
  17697. fi
  17698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17699. conftest$ac_exeext conftest.$ac_ext
  17700. fi
  17701. ac_res=`eval echo '${'$as_ac_var'}'`
  17702. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17703. echo "${ECHO_T}$ac_res" >&6; }
  17704. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17705. cat >>confdefs.h <<_ACEOF
  17706. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17707. _ACEOF
  17708. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17709. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17710. if test "${ac_cv_func__doprnt+set}" = set; then
  17711. echo $ECHO_N "(cached) $ECHO_C" >&6
  17712. else
  17713. cat >conftest.$ac_ext <<_ACEOF
  17714. /* confdefs.h. */
  17715. _ACEOF
  17716. cat confdefs.h >>conftest.$ac_ext
  17717. cat >>conftest.$ac_ext <<_ACEOF
  17718. /* end confdefs.h. */
  17719. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17720. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17721. #define _doprnt innocuous__doprnt
  17722. /* System header to define __stub macros and hopefully few prototypes,
  17723. which can conflict with char _doprnt (); below.
  17724. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17725. <limits.h> exists even on freestanding compilers. */
  17726. #ifdef __STDC__
  17727. # include <limits.h>
  17728. #else
  17729. # include <assert.h>
  17730. #endif
  17731. #undef _doprnt
  17732. /* Override any GCC internal prototype to avoid an error.
  17733. Use char because int might match the return type of a GCC
  17734. builtin and then its argument prototype would still apply. */
  17735. #ifdef __cplusplus
  17736. extern "C"
  17737. #endif
  17738. char _doprnt ();
  17739. /* The GNU C library defines this for functions which it implements
  17740. to always fail with ENOSYS. Some functions are actually named
  17741. something starting with __ and the normal name is an alias. */
  17742. #if defined __stub__doprnt || defined __stub____doprnt
  17743. choke me
  17744. #endif
  17745. int
  17746. main ()
  17747. {
  17748. return _doprnt ();
  17749. ;
  17750. return 0;
  17751. }
  17752. _ACEOF
  17753. rm -f conftest.$ac_objext conftest$ac_exeext
  17754. if { (ac_try="$ac_link"
  17755. case "(($ac_try" in
  17756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17757. *) ac_try_echo=$ac_try;;
  17758. esac
  17759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17760. (eval "$ac_link") 2>conftest.er1
  17761. ac_status=$?
  17762. grep -v '^ *+' conftest.er1 >conftest.err
  17763. rm -f conftest.er1
  17764. cat conftest.err >&5
  17765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17766. (exit $ac_status); } && {
  17767. test -z "$ac_cxx_werror_flag" ||
  17768. test ! -s conftest.err
  17769. } && test -s conftest$ac_exeext &&
  17770. $as_test_x conftest$ac_exeext; then
  17771. ac_cv_func__doprnt=yes
  17772. else
  17773. echo "$as_me: failed program was:" >&5
  17774. sed 's/^/| /' conftest.$ac_ext >&5
  17775. ac_cv_func__doprnt=no
  17776. fi
  17777. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17778. conftest$ac_exeext conftest.$ac_ext
  17779. fi
  17780. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17781. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17782. if test $ac_cv_func__doprnt = yes; then
  17783. cat >>confdefs.h <<\_ACEOF
  17784. #define HAVE_DOPRNT 1
  17785. _ACEOF
  17786. fi
  17787. fi
  17788. done
  17789. for ac_func in __argz_count \
  17790. __argz_next \
  17791. __argz_stringify \
  17792. atexit \
  17793. daemon \
  17794. ftruncate \
  17795. getcwd \
  17796. gethostbyaddr \
  17797. gethostbyname \
  17798. getpagesize \
  17799. inet_ntoa \
  17800. memchr \
  17801. memmove \
  17802. mempcpy \
  17803. memset \
  17804. mkdir \
  17805. munmap \
  17806. nl_langinfo \
  17807. posix_memalign \
  17808. putenv \
  17809. rmdir \
  17810. select \
  17811. setlocale \
  17812. sleep \
  17813. socket \
  17814. stpcpy \
  17815. strcasecmp \
  17816. strchr \
  17817. strcspn \
  17818. strdup \
  17819. strerror \
  17820. strncasecmp \
  17821. strstr \
  17822. strtol \
  17823. strtoul \
  17824. strtoull \
  17825. tzset \
  17826. unsetenv \
  17827. usleep
  17828. do
  17829. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17830. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17831. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17832. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17833. echo $ECHO_N "(cached) $ECHO_C" >&6
  17834. else
  17835. cat >conftest.$ac_ext <<_ACEOF
  17836. /* confdefs.h. */
  17837. _ACEOF
  17838. cat confdefs.h >>conftest.$ac_ext
  17839. cat >>conftest.$ac_ext <<_ACEOF
  17840. /* end confdefs.h. */
  17841. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17842. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17843. #define $ac_func innocuous_$ac_func
  17844. /* System header to define __stub macros and hopefully few prototypes,
  17845. which can conflict with char $ac_func (); below.
  17846. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17847. <limits.h> exists even on freestanding compilers. */
  17848. #ifdef __STDC__
  17849. # include <limits.h>
  17850. #else
  17851. # include <assert.h>
  17852. #endif
  17853. #undef $ac_func
  17854. /* Override any GCC internal prototype to avoid an error.
  17855. Use char because int might match the return type of a GCC
  17856. builtin and then its argument prototype would still apply. */
  17857. #ifdef __cplusplus
  17858. extern "C"
  17859. #endif
  17860. char $ac_func ();
  17861. /* The GNU C library defines this for functions which it implements
  17862. to always fail with ENOSYS. Some functions are actually named
  17863. something starting with __ and the normal name is an alias. */
  17864. #if defined __stub_$ac_func || defined __stub___$ac_func
  17865. choke me
  17866. #endif
  17867. int
  17868. main ()
  17869. {
  17870. return $ac_func ();
  17871. ;
  17872. return 0;
  17873. }
  17874. _ACEOF
  17875. rm -f conftest.$ac_objext conftest$ac_exeext
  17876. if { (ac_try="$ac_link"
  17877. case "(($ac_try" in
  17878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17879. *) ac_try_echo=$ac_try;;
  17880. esac
  17881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17882. (eval "$ac_link") 2>conftest.er1
  17883. ac_status=$?
  17884. grep -v '^ *+' conftest.er1 >conftest.err
  17885. rm -f conftest.er1
  17886. cat conftest.err >&5
  17887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17888. (exit $ac_status); } && {
  17889. test -z "$ac_cxx_werror_flag" ||
  17890. test ! -s conftest.err
  17891. } && test -s conftest$ac_exeext &&
  17892. $as_test_x conftest$ac_exeext; then
  17893. eval "$as_ac_var=yes"
  17894. else
  17895. echo "$as_me: failed program was:" >&5
  17896. sed 's/^/| /' conftest.$ac_ext >&5
  17897. eval "$as_ac_var=no"
  17898. fi
  17899. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17900. conftest$ac_exeext conftest.$ac_ext
  17901. fi
  17902. ac_res=`eval echo '${'$as_ac_var'}'`
  17903. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17904. echo "${ECHO_T}$ac_res" >&6; }
  17905. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17906. cat >>confdefs.h <<_ACEOF
  17907. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17908. _ACEOF
  17909. fi
  17910. done
  17911. if test "x$enable_epoll" = "xyes"; then
  17912. for ac_func in epoll_create
  17913. do
  17914. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17915. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17916. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17917. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17918. echo $ECHO_N "(cached) $ECHO_C" >&6
  17919. else
  17920. cat >conftest.$ac_ext <<_ACEOF
  17921. /* confdefs.h. */
  17922. _ACEOF
  17923. cat confdefs.h >>conftest.$ac_ext
  17924. cat >>conftest.$ac_ext <<_ACEOF
  17925. /* end confdefs.h. */
  17926. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17927. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17928. #define $ac_func innocuous_$ac_func
  17929. /* System header to define __stub macros and hopefully few prototypes,
  17930. which can conflict with char $ac_func (); below.
  17931. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17932. <limits.h> exists even on freestanding compilers. */
  17933. #ifdef __STDC__
  17934. # include <limits.h>
  17935. #else
  17936. # include <assert.h>
  17937. #endif
  17938. #undef $ac_func
  17939. /* Override any GCC internal prototype to avoid an error.
  17940. Use char because int might match the return type of a GCC
  17941. builtin and then its argument prototype would still apply. */
  17942. #ifdef __cplusplus
  17943. extern "C"
  17944. #endif
  17945. char $ac_func ();
  17946. /* The GNU C library defines this for functions which it implements
  17947. to always fail with ENOSYS. Some functions are actually named
  17948. something starting with __ and the normal name is an alias. */
  17949. #if defined __stub_$ac_func || defined __stub___$ac_func
  17950. choke me
  17951. #endif
  17952. int
  17953. main ()
  17954. {
  17955. return $ac_func ();
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. rm -f conftest.$ac_objext conftest$ac_exeext
  17961. if { (ac_try="$ac_link"
  17962. case "(($ac_try" in
  17963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17964. *) ac_try_echo=$ac_try;;
  17965. esac
  17966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17967. (eval "$ac_link") 2>conftest.er1
  17968. ac_status=$?
  17969. grep -v '^ *+' conftest.er1 >conftest.err
  17970. rm -f conftest.er1
  17971. cat conftest.err >&5
  17972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17973. (exit $ac_status); } && {
  17974. test -z "$ac_cxx_werror_flag" ||
  17975. test ! -s conftest.err
  17976. } && test -s conftest$ac_exeext &&
  17977. $as_test_x conftest$ac_exeext; then
  17978. eval "$as_ac_var=yes"
  17979. else
  17980. echo "$as_me: failed program was:" >&5
  17981. sed 's/^/| /' conftest.$ac_ext >&5
  17982. eval "$as_ac_var=no"
  17983. fi
  17984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17985. conftest$ac_exeext conftest.$ac_ext
  17986. fi
  17987. ac_res=`eval echo '${'$as_ac_var'}'`
  17988. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17989. echo "${ECHO_T}$ac_res" >&6; }
  17990. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17991. cat >>confdefs.h <<_ACEOF
  17992. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17993. _ACEOF
  17994. fi
  17995. done
  17996. fi
  17997. for ac_func in asctime_r
  17998. do
  17999. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18000. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18001. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18002. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18003. echo $ECHO_N "(cached) $ECHO_C" >&6
  18004. else
  18005. cat >conftest.$ac_ext <<_ACEOF
  18006. /* confdefs.h. */
  18007. _ACEOF
  18008. cat confdefs.h >>conftest.$ac_ext
  18009. cat >>conftest.$ac_ext <<_ACEOF
  18010. /* end confdefs.h. */
  18011. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18012. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18013. #define $ac_func innocuous_$ac_func
  18014. /* System header to define __stub macros and hopefully few prototypes,
  18015. which can conflict with char $ac_func (); below.
  18016. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18017. <limits.h> exists even on freestanding compilers. */
  18018. #ifdef __STDC__
  18019. # include <limits.h>
  18020. #else
  18021. # include <assert.h>
  18022. #endif
  18023. #undef $ac_func
  18024. /* Override any GCC internal prototype to avoid an error.
  18025. Use char because int might match the return type of a GCC
  18026. builtin and then its argument prototype would still apply. */
  18027. #ifdef __cplusplus
  18028. extern "C"
  18029. #endif
  18030. char $ac_func ();
  18031. /* The GNU C library defines this for functions which it implements
  18032. to always fail with ENOSYS. Some functions are actually named
  18033. something starting with __ and the normal name is an alias. */
  18034. #if defined __stub_$ac_func || defined __stub___$ac_func
  18035. choke me
  18036. #endif
  18037. int
  18038. main ()
  18039. {
  18040. return $ac_func ();
  18041. ;
  18042. return 0;
  18043. }
  18044. _ACEOF
  18045. rm -f conftest.$ac_objext conftest$ac_exeext
  18046. if { (ac_try="$ac_link"
  18047. case "(($ac_try" in
  18048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18049. *) ac_try_echo=$ac_try;;
  18050. esac
  18051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18052. (eval "$ac_link") 2>conftest.er1
  18053. ac_status=$?
  18054. grep -v '^ *+' conftest.er1 >conftest.err
  18055. rm -f conftest.er1
  18056. cat conftest.err >&5
  18057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18058. (exit $ac_status); } && {
  18059. test -z "$ac_cxx_werror_flag" ||
  18060. test ! -s conftest.err
  18061. } && test -s conftest$ac_exeext &&
  18062. $as_test_x conftest$ac_exeext; then
  18063. eval "$as_ac_var=yes"
  18064. else
  18065. echo "$as_me: failed program was:" >&5
  18066. sed 's/^/| /' conftest.$ac_ext >&5
  18067. eval "$as_ac_var=no"
  18068. fi
  18069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18070. conftest$ac_exeext conftest.$ac_ext
  18071. fi
  18072. ac_res=`eval echo '${'$as_ac_var'}'`
  18073. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18074. echo "${ECHO_T}$ac_res" >&6; }
  18075. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18076. cat >>confdefs.h <<_ACEOF
  18077. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18078. _ACEOF
  18079. if true; then
  18080. HAVE_ASCTIME_R_TRUE=
  18081. HAVE_ASCTIME_R_FALSE='#'
  18082. else
  18083. HAVE_ASCTIME_R_TRUE='#'
  18084. HAVE_ASCTIME_R_FALSE=
  18085. fi
  18086. else
  18087. if false; then
  18088. HAVE_ASCTIME_R_TRUE=
  18089. HAVE_ASCTIME_R_FALSE='#'
  18090. else
  18091. HAVE_ASCTIME_R_TRUE='#'
  18092. HAVE_ASCTIME_R_FALSE=
  18093. fi
  18094. fi
  18095. done
  18096. for ac_func in basename
  18097. do
  18098. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18099. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18100. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18101. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18102. echo $ECHO_N "(cached) $ECHO_C" >&6
  18103. else
  18104. cat >conftest.$ac_ext <<_ACEOF
  18105. /* confdefs.h. */
  18106. _ACEOF
  18107. cat confdefs.h >>conftest.$ac_ext
  18108. cat >>conftest.$ac_ext <<_ACEOF
  18109. /* end confdefs.h. */
  18110. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18111. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18112. #define $ac_func innocuous_$ac_func
  18113. /* System header to define __stub macros and hopefully few prototypes,
  18114. which can conflict with char $ac_func (); below.
  18115. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18116. <limits.h> exists even on freestanding compilers. */
  18117. #ifdef __STDC__
  18118. # include <limits.h>
  18119. #else
  18120. # include <assert.h>
  18121. #endif
  18122. #undef $ac_func
  18123. /* Override any GCC internal prototype to avoid an error.
  18124. Use char because int might match the return type of a GCC
  18125. builtin and then its argument prototype would still apply. */
  18126. #ifdef __cplusplus
  18127. extern "C"
  18128. #endif
  18129. char $ac_func ();
  18130. /* The GNU C library defines this for functions which it implements
  18131. to always fail with ENOSYS. Some functions are actually named
  18132. something starting with __ and the normal name is an alias. */
  18133. #if defined __stub_$ac_func || defined __stub___$ac_func
  18134. choke me
  18135. #endif
  18136. int
  18137. main ()
  18138. {
  18139. return $ac_func ();
  18140. ;
  18141. return 0;
  18142. }
  18143. _ACEOF
  18144. rm -f conftest.$ac_objext conftest$ac_exeext
  18145. if { (ac_try="$ac_link"
  18146. case "(($ac_try" in
  18147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18148. *) ac_try_echo=$ac_try;;
  18149. esac
  18150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18151. (eval "$ac_link") 2>conftest.er1
  18152. ac_status=$?
  18153. grep -v '^ *+' conftest.er1 >conftest.err
  18154. rm -f conftest.er1
  18155. cat conftest.err >&5
  18156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18157. (exit $ac_status); } && {
  18158. test -z "$ac_cxx_werror_flag" ||
  18159. test ! -s conftest.err
  18160. } && test -s conftest$ac_exeext &&
  18161. $as_test_x conftest$ac_exeext; then
  18162. eval "$as_ac_var=yes"
  18163. else
  18164. echo "$as_me: failed program was:" >&5
  18165. sed 's/^/| /' conftest.$ac_ext >&5
  18166. eval "$as_ac_var=no"
  18167. fi
  18168. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18169. conftest$ac_exeext conftest.$ac_ext
  18170. fi
  18171. ac_res=`eval echo '${'$as_ac_var'}'`
  18172. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18173. echo "${ECHO_T}$ac_res" >&6; }
  18174. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18175. cat >>confdefs.h <<_ACEOF
  18176. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18177. _ACEOF
  18178. if true; then
  18179. HAVE_BASENAME_TRUE=
  18180. HAVE_BASENAME_FALSE='#'
  18181. else
  18182. HAVE_BASENAME_TRUE='#'
  18183. HAVE_BASENAME_FALSE=
  18184. fi
  18185. else
  18186. if false; then
  18187. HAVE_BASENAME_TRUE=
  18188. HAVE_BASENAME_FALSE='#'
  18189. else
  18190. HAVE_BASENAME_TRUE='#'
  18191. HAVE_BASENAME_FALSE=
  18192. fi
  18193. fi
  18194. done
  18195. for ac_func in gai_strerror
  18196. do
  18197. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18198. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18199. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18200. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18201. echo $ECHO_N "(cached) $ECHO_C" >&6
  18202. else
  18203. cat >conftest.$ac_ext <<_ACEOF
  18204. /* confdefs.h. */
  18205. _ACEOF
  18206. cat confdefs.h >>conftest.$ac_ext
  18207. cat >>conftest.$ac_ext <<_ACEOF
  18208. /* end confdefs.h. */
  18209. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18210. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18211. #define $ac_func innocuous_$ac_func
  18212. /* System header to define __stub macros and hopefully few prototypes,
  18213. which can conflict with char $ac_func (); below.
  18214. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18215. <limits.h> exists even on freestanding compilers. */
  18216. #ifdef __STDC__
  18217. # include <limits.h>
  18218. #else
  18219. # include <assert.h>
  18220. #endif
  18221. #undef $ac_func
  18222. /* Override any GCC internal prototype to avoid an error.
  18223. Use char because int might match the return type of a GCC
  18224. builtin and then its argument prototype would still apply. */
  18225. #ifdef __cplusplus
  18226. extern "C"
  18227. #endif
  18228. char $ac_func ();
  18229. /* The GNU C library defines this for functions which it implements
  18230. to always fail with ENOSYS. Some functions are actually named
  18231. something starting with __ and the normal name is an alias. */
  18232. #if defined __stub_$ac_func || defined __stub___$ac_func
  18233. choke me
  18234. #endif
  18235. int
  18236. main ()
  18237. {
  18238. return $ac_func ();
  18239. ;
  18240. return 0;
  18241. }
  18242. _ACEOF
  18243. rm -f conftest.$ac_objext conftest$ac_exeext
  18244. if { (ac_try="$ac_link"
  18245. case "(($ac_try" in
  18246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18247. *) ac_try_echo=$ac_try;;
  18248. esac
  18249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18250. (eval "$ac_link") 2>conftest.er1
  18251. ac_status=$?
  18252. grep -v '^ *+' conftest.er1 >conftest.err
  18253. rm -f conftest.er1
  18254. cat conftest.err >&5
  18255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18256. (exit $ac_status); } && {
  18257. test -z "$ac_cxx_werror_flag" ||
  18258. test ! -s conftest.err
  18259. } && test -s conftest$ac_exeext &&
  18260. $as_test_x conftest$ac_exeext; then
  18261. eval "$as_ac_var=yes"
  18262. else
  18263. echo "$as_me: failed program was:" >&5
  18264. sed 's/^/| /' conftest.$ac_ext >&5
  18265. eval "$as_ac_var=no"
  18266. fi
  18267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18268. conftest$ac_exeext conftest.$ac_ext
  18269. fi
  18270. ac_res=`eval echo '${'$as_ac_var'}'`
  18271. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18272. echo "${ECHO_T}$ac_res" >&6; }
  18273. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18274. cat >>confdefs.h <<_ACEOF
  18275. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18276. _ACEOF
  18277. if true; then
  18278. HAVE_GAI_STRERROR_TRUE=
  18279. HAVE_GAI_STRERROR_FALSE='#'
  18280. else
  18281. HAVE_GAI_STRERROR_TRUE='#'
  18282. HAVE_GAI_STRERROR_FALSE=
  18283. fi
  18284. else
  18285. if false; then
  18286. HAVE_GAI_STRERROR_TRUE=
  18287. HAVE_GAI_STRERROR_FALSE='#'
  18288. else
  18289. HAVE_GAI_STRERROR_TRUE='#'
  18290. HAVE_GAI_STRERROR_FALSE=
  18291. fi
  18292. fi
  18293. done
  18294. for ac_func in getaddrinfo
  18295. do
  18296. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18297. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18298. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18299. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18300. echo $ECHO_N "(cached) $ECHO_C" >&6
  18301. else
  18302. cat >conftest.$ac_ext <<_ACEOF
  18303. /* confdefs.h. */
  18304. _ACEOF
  18305. cat confdefs.h >>conftest.$ac_ext
  18306. cat >>conftest.$ac_ext <<_ACEOF
  18307. /* end confdefs.h. */
  18308. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18309. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18310. #define $ac_func innocuous_$ac_func
  18311. /* System header to define __stub macros and hopefully few prototypes,
  18312. which can conflict with char $ac_func (); below.
  18313. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18314. <limits.h> exists even on freestanding compilers. */
  18315. #ifdef __STDC__
  18316. # include <limits.h>
  18317. #else
  18318. # include <assert.h>
  18319. #endif
  18320. #undef $ac_func
  18321. /* Override any GCC internal prototype to avoid an error.
  18322. Use char because int might match the return type of a GCC
  18323. builtin and then its argument prototype would still apply. */
  18324. #ifdef __cplusplus
  18325. extern "C"
  18326. #endif
  18327. char $ac_func ();
  18328. /* The GNU C library defines this for functions which it implements
  18329. to always fail with ENOSYS. Some functions are actually named
  18330. something starting with __ and the normal name is an alias. */
  18331. #if defined __stub_$ac_func || defined __stub___$ac_func
  18332. choke me
  18333. #endif
  18334. int
  18335. main ()
  18336. {
  18337. return $ac_func ();
  18338. ;
  18339. return 0;
  18340. }
  18341. _ACEOF
  18342. rm -f conftest.$ac_objext conftest$ac_exeext
  18343. if { (ac_try="$ac_link"
  18344. case "(($ac_try" in
  18345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18346. *) ac_try_echo=$ac_try;;
  18347. esac
  18348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18349. (eval "$ac_link") 2>conftest.er1
  18350. ac_status=$?
  18351. grep -v '^ *+' conftest.er1 >conftest.err
  18352. rm -f conftest.er1
  18353. cat conftest.err >&5
  18354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18355. (exit $ac_status); } && {
  18356. test -z "$ac_cxx_werror_flag" ||
  18357. test ! -s conftest.err
  18358. } && test -s conftest$ac_exeext &&
  18359. $as_test_x conftest$ac_exeext; then
  18360. eval "$as_ac_var=yes"
  18361. else
  18362. echo "$as_me: failed program was:" >&5
  18363. sed 's/^/| /' conftest.$ac_ext >&5
  18364. eval "$as_ac_var=no"
  18365. fi
  18366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18367. conftest$ac_exeext conftest.$ac_ext
  18368. fi
  18369. ac_res=`eval echo '${'$as_ac_var'}'`
  18370. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18371. echo "${ECHO_T}$ac_res" >&6; }
  18372. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18373. cat >>confdefs.h <<_ACEOF
  18374. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18375. _ACEOF
  18376. if true; then
  18377. HAVE_GETADDRINFO_TRUE=
  18378. HAVE_GETADDRINFO_FALSE='#'
  18379. else
  18380. HAVE_GETADDRINFO_TRUE='#'
  18381. HAVE_GETADDRINFO_FALSE=
  18382. fi
  18383. else
  18384. if false; then
  18385. HAVE_GETADDRINFO_TRUE=
  18386. HAVE_GETADDRINFO_FALSE='#'
  18387. else
  18388. HAVE_GETADDRINFO_TRUE='#'
  18389. HAVE_GETADDRINFO_FALSE=
  18390. fi
  18391. fi
  18392. done
  18393. for ac_func in gettimeofday
  18394. do
  18395. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18396. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18397. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18398. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18399. echo $ECHO_N "(cached) $ECHO_C" >&6
  18400. else
  18401. cat >conftest.$ac_ext <<_ACEOF
  18402. /* confdefs.h. */
  18403. _ACEOF
  18404. cat confdefs.h >>conftest.$ac_ext
  18405. cat >>conftest.$ac_ext <<_ACEOF
  18406. /* end confdefs.h. */
  18407. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18408. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18409. #define $ac_func innocuous_$ac_func
  18410. /* System header to define __stub macros and hopefully few prototypes,
  18411. which can conflict with char $ac_func (); below.
  18412. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18413. <limits.h> exists even on freestanding compilers. */
  18414. #ifdef __STDC__
  18415. # include <limits.h>
  18416. #else
  18417. # include <assert.h>
  18418. #endif
  18419. #undef $ac_func
  18420. /* Override any GCC internal prototype to avoid an error.
  18421. Use char because int might match the return type of a GCC
  18422. builtin and then its argument prototype would still apply. */
  18423. #ifdef __cplusplus
  18424. extern "C"
  18425. #endif
  18426. char $ac_func ();
  18427. /* The GNU C library defines this for functions which it implements
  18428. to always fail with ENOSYS. Some functions are actually named
  18429. something starting with __ and the normal name is an alias. */
  18430. #if defined __stub_$ac_func || defined __stub___$ac_func
  18431. choke me
  18432. #endif
  18433. int
  18434. main ()
  18435. {
  18436. return $ac_func ();
  18437. ;
  18438. return 0;
  18439. }
  18440. _ACEOF
  18441. rm -f conftest.$ac_objext conftest$ac_exeext
  18442. if { (ac_try="$ac_link"
  18443. case "(($ac_try" in
  18444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18445. *) ac_try_echo=$ac_try;;
  18446. esac
  18447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18448. (eval "$ac_link") 2>conftest.er1
  18449. ac_status=$?
  18450. grep -v '^ *+' conftest.er1 >conftest.err
  18451. rm -f conftest.er1
  18452. cat conftest.err >&5
  18453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18454. (exit $ac_status); } && {
  18455. test -z "$ac_cxx_werror_flag" ||
  18456. test ! -s conftest.err
  18457. } && test -s conftest$ac_exeext &&
  18458. $as_test_x conftest$ac_exeext; then
  18459. eval "$as_ac_var=yes"
  18460. else
  18461. echo "$as_me: failed program was:" >&5
  18462. sed 's/^/| /' conftest.$ac_ext >&5
  18463. eval "$as_ac_var=no"
  18464. fi
  18465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18466. conftest$ac_exeext conftest.$ac_ext
  18467. fi
  18468. ac_res=`eval echo '${'$as_ac_var'}'`
  18469. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18470. echo "${ECHO_T}$ac_res" >&6; }
  18471. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18472. cat >>confdefs.h <<_ACEOF
  18473. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18474. _ACEOF
  18475. if true; then
  18476. HAVE_GETTIMEOFDAY_TRUE=
  18477. HAVE_GETTIMEOFDAY_FALSE='#'
  18478. else
  18479. HAVE_GETTIMEOFDAY_TRUE='#'
  18480. HAVE_GETTIMEOFDAY_FALSE=
  18481. fi
  18482. else
  18483. if false; then
  18484. HAVE_GETTIMEOFDAY_TRUE=
  18485. HAVE_GETTIMEOFDAY_FALSE='#'
  18486. else
  18487. HAVE_GETTIMEOFDAY_TRUE='#'
  18488. HAVE_GETTIMEOFDAY_FALSE=
  18489. fi
  18490. fi
  18491. done
  18492. for ac_func in inet_aton
  18493. do
  18494. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18495. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18496. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18497. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18498. echo $ECHO_N "(cached) $ECHO_C" >&6
  18499. else
  18500. cat >conftest.$ac_ext <<_ACEOF
  18501. /* confdefs.h. */
  18502. _ACEOF
  18503. cat confdefs.h >>conftest.$ac_ext
  18504. cat >>conftest.$ac_ext <<_ACEOF
  18505. /* end confdefs.h. */
  18506. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18507. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18508. #define $ac_func innocuous_$ac_func
  18509. /* System header to define __stub macros and hopefully few prototypes,
  18510. which can conflict with char $ac_func (); below.
  18511. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18512. <limits.h> exists even on freestanding compilers. */
  18513. #ifdef __STDC__
  18514. # include <limits.h>
  18515. #else
  18516. # include <assert.h>
  18517. #endif
  18518. #undef $ac_func
  18519. /* Override any GCC internal prototype to avoid an error.
  18520. Use char because int might match the return type of a GCC
  18521. builtin and then its argument prototype would still apply. */
  18522. #ifdef __cplusplus
  18523. extern "C"
  18524. #endif
  18525. char $ac_func ();
  18526. /* The GNU C library defines this for functions which it implements
  18527. to always fail with ENOSYS. Some functions are actually named
  18528. something starting with __ and the normal name is an alias. */
  18529. #if defined __stub_$ac_func || defined __stub___$ac_func
  18530. choke me
  18531. #endif
  18532. int
  18533. main ()
  18534. {
  18535. return $ac_func ();
  18536. ;
  18537. return 0;
  18538. }
  18539. _ACEOF
  18540. rm -f conftest.$ac_objext conftest$ac_exeext
  18541. if { (ac_try="$ac_link"
  18542. case "(($ac_try" in
  18543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18544. *) ac_try_echo=$ac_try;;
  18545. esac
  18546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18547. (eval "$ac_link") 2>conftest.er1
  18548. ac_status=$?
  18549. grep -v '^ *+' conftest.er1 >conftest.err
  18550. rm -f conftest.er1
  18551. cat conftest.err >&5
  18552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18553. (exit $ac_status); } && {
  18554. test -z "$ac_cxx_werror_flag" ||
  18555. test ! -s conftest.err
  18556. } && test -s conftest$ac_exeext &&
  18557. $as_test_x conftest$ac_exeext; then
  18558. eval "$as_ac_var=yes"
  18559. else
  18560. echo "$as_me: failed program was:" >&5
  18561. sed 's/^/| /' conftest.$ac_ext >&5
  18562. eval "$as_ac_var=no"
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18565. conftest$ac_exeext conftest.$ac_ext
  18566. fi
  18567. ac_res=`eval echo '${'$as_ac_var'}'`
  18568. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18569. echo "${ECHO_T}$ac_res" >&6; }
  18570. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18571. cat >>confdefs.h <<_ACEOF
  18572. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18573. _ACEOF
  18574. if true; then
  18575. HAVE_INET_ATON_TRUE=
  18576. HAVE_INET_ATON_FALSE='#'
  18577. else
  18578. HAVE_INET_ATON_TRUE='#'
  18579. HAVE_INET_ATON_FALSE=
  18580. fi
  18581. else
  18582. if false; then
  18583. HAVE_INET_ATON_TRUE=
  18584. HAVE_INET_ATON_FALSE='#'
  18585. else
  18586. HAVE_INET_ATON_TRUE='#'
  18587. HAVE_INET_ATON_FALSE=
  18588. fi
  18589. fi
  18590. done
  18591. for ac_func in localtime_r
  18592. do
  18593. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18594. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18595. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18596. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18597. echo $ECHO_N "(cached) $ECHO_C" >&6
  18598. else
  18599. cat >conftest.$ac_ext <<_ACEOF
  18600. /* confdefs.h. */
  18601. _ACEOF
  18602. cat confdefs.h >>conftest.$ac_ext
  18603. cat >>conftest.$ac_ext <<_ACEOF
  18604. /* end confdefs.h. */
  18605. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18607. #define $ac_func innocuous_$ac_func
  18608. /* System header to define __stub macros and hopefully few prototypes,
  18609. which can conflict with char $ac_func (); below.
  18610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18611. <limits.h> exists even on freestanding compilers. */
  18612. #ifdef __STDC__
  18613. # include <limits.h>
  18614. #else
  18615. # include <assert.h>
  18616. #endif
  18617. #undef $ac_func
  18618. /* Override any GCC internal prototype to avoid an error.
  18619. Use char because int might match the return type of a GCC
  18620. builtin and then its argument prototype would still apply. */
  18621. #ifdef __cplusplus
  18622. extern "C"
  18623. #endif
  18624. char $ac_func ();
  18625. /* The GNU C library defines this for functions which it implements
  18626. to always fail with ENOSYS. Some functions are actually named
  18627. something starting with __ and the normal name is an alias. */
  18628. #if defined __stub_$ac_func || defined __stub___$ac_func
  18629. choke me
  18630. #endif
  18631. int
  18632. main ()
  18633. {
  18634. return $ac_func ();
  18635. ;
  18636. return 0;
  18637. }
  18638. _ACEOF
  18639. rm -f conftest.$ac_objext conftest$ac_exeext
  18640. if { (ac_try="$ac_link"
  18641. case "(($ac_try" in
  18642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18643. *) ac_try_echo=$ac_try;;
  18644. esac
  18645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18646. (eval "$ac_link") 2>conftest.er1
  18647. ac_status=$?
  18648. grep -v '^ *+' conftest.er1 >conftest.err
  18649. rm -f conftest.er1
  18650. cat conftest.err >&5
  18651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18652. (exit $ac_status); } && {
  18653. test -z "$ac_cxx_werror_flag" ||
  18654. test ! -s conftest.err
  18655. } && test -s conftest$ac_exeext &&
  18656. $as_test_x conftest$ac_exeext; then
  18657. eval "$as_ac_var=yes"
  18658. else
  18659. echo "$as_me: failed program was:" >&5
  18660. sed 's/^/| /' conftest.$ac_ext >&5
  18661. eval "$as_ac_var=no"
  18662. fi
  18663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18664. conftest$ac_exeext conftest.$ac_ext
  18665. fi
  18666. ac_res=`eval echo '${'$as_ac_var'}'`
  18667. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18668. echo "${ECHO_T}$ac_res" >&6; }
  18669. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18670. cat >>confdefs.h <<_ACEOF
  18671. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18672. _ACEOF
  18673. if true; then
  18674. HAVE_LOCALTIME_R_TRUE=
  18675. HAVE_LOCALTIME_R_FALSE='#'
  18676. else
  18677. HAVE_LOCALTIME_R_TRUE='#'
  18678. HAVE_LOCALTIME_R_FALSE=
  18679. fi
  18680. else
  18681. if false; then
  18682. HAVE_LOCALTIME_R_TRUE=
  18683. HAVE_LOCALTIME_R_FALSE='#'
  18684. else
  18685. HAVE_LOCALTIME_R_TRUE='#'
  18686. HAVE_LOCALTIME_R_FALSE=
  18687. fi
  18688. fi
  18689. done
  18690. for ac_func in strptime
  18691. do
  18692. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18693. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18694. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18695. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18696. echo $ECHO_N "(cached) $ECHO_C" >&6
  18697. else
  18698. cat >conftest.$ac_ext <<_ACEOF
  18699. /* confdefs.h. */
  18700. _ACEOF
  18701. cat confdefs.h >>conftest.$ac_ext
  18702. cat >>conftest.$ac_ext <<_ACEOF
  18703. /* end confdefs.h. */
  18704. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18705. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18706. #define $ac_func innocuous_$ac_func
  18707. /* System header to define __stub macros and hopefully few prototypes,
  18708. which can conflict with char $ac_func (); below.
  18709. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18710. <limits.h> exists even on freestanding compilers. */
  18711. #ifdef __STDC__
  18712. # include <limits.h>
  18713. #else
  18714. # include <assert.h>
  18715. #endif
  18716. #undef $ac_func
  18717. /* Override any GCC internal prototype to avoid an error.
  18718. Use char because int might match the return type of a GCC
  18719. builtin and then its argument prototype would still apply. */
  18720. #ifdef __cplusplus
  18721. extern "C"
  18722. #endif
  18723. char $ac_func ();
  18724. /* The GNU C library defines this for functions which it implements
  18725. to always fail with ENOSYS. Some functions are actually named
  18726. something starting with __ and the normal name is an alias. */
  18727. #if defined __stub_$ac_func || defined __stub___$ac_func
  18728. choke me
  18729. #endif
  18730. int
  18731. main ()
  18732. {
  18733. return $ac_func ();
  18734. ;
  18735. return 0;
  18736. }
  18737. _ACEOF
  18738. rm -f conftest.$ac_objext conftest$ac_exeext
  18739. if { (ac_try="$ac_link"
  18740. case "(($ac_try" in
  18741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18742. *) ac_try_echo=$ac_try;;
  18743. esac
  18744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18745. (eval "$ac_link") 2>conftest.er1
  18746. ac_status=$?
  18747. grep -v '^ *+' conftest.er1 >conftest.err
  18748. rm -f conftest.er1
  18749. cat conftest.err >&5
  18750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18751. (exit $ac_status); } && {
  18752. test -z "$ac_cxx_werror_flag" ||
  18753. test ! -s conftest.err
  18754. } && test -s conftest$ac_exeext &&
  18755. $as_test_x conftest$ac_exeext; then
  18756. eval "$as_ac_var=yes"
  18757. else
  18758. echo "$as_me: failed program was:" >&5
  18759. sed 's/^/| /' conftest.$ac_ext >&5
  18760. eval "$as_ac_var=no"
  18761. fi
  18762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18763. conftest$ac_exeext conftest.$ac_ext
  18764. fi
  18765. ac_res=`eval echo '${'$as_ac_var'}'`
  18766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18767. echo "${ECHO_T}$ac_res" >&6; }
  18768. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18769. cat >>confdefs.h <<_ACEOF
  18770. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18771. _ACEOF
  18772. if true; then
  18773. HAVE_STRPTIME_TRUE=
  18774. HAVE_STRPTIME_FALSE='#'
  18775. else
  18776. HAVE_STRPTIME_TRUE='#'
  18777. HAVE_STRPTIME_FALSE=
  18778. fi
  18779. else
  18780. if false; then
  18781. HAVE_STRPTIME_TRUE=
  18782. HAVE_STRPTIME_FALSE='#'
  18783. else
  18784. HAVE_STRPTIME_TRUE='#'
  18785. HAVE_STRPTIME_FALSE=
  18786. fi
  18787. fi
  18788. done
  18789. for ac_func in timegm
  18790. do
  18791. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18792. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18793. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18794. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18795. echo $ECHO_N "(cached) $ECHO_C" >&6
  18796. else
  18797. cat >conftest.$ac_ext <<_ACEOF
  18798. /* confdefs.h. */
  18799. _ACEOF
  18800. cat confdefs.h >>conftest.$ac_ext
  18801. cat >>conftest.$ac_ext <<_ACEOF
  18802. /* end confdefs.h. */
  18803. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18804. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18805. #define $ac_func innocuous_$ac_func
  18806. /* System header to define __stub macros and hopefully few prototypes,
  18807. which can conflict with char $ac_func (); below.
  18808. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18809. <limits.h> exists even on freestanding compilers. */
  18810. #ifdef __STDC__
  18811. # include <limits.h>
  18812. #else
  18813. # include <assert.h>
  18814. #endif
  18815. #undef $ac_func
  18816. /* Override any GCC internal prototype to avoid an error.
  18817. Use char because int might match the return type of a GCC
  18818. builtin and then its argument prototype would still apply. */
  18819. #ifdef __cplusplus
  18820. extern "C"
  18821. #endif
  18822. char $ac_func ();
  18823. /* The GNU C library defines this for functions which it implements
  18824. to always fail with ENOSYS. Some functions are actually named
  18825. something starting with __ and the normal name is an alias. */
  18826. #if defined __stub_$ac_func || defined __stub___$ac_func
  18827. choke me
  18828. #endif
  18829. int
  18830. main ()
  18831. {
  18832. return $ac_func ();
  18833. ;
  18834. return 0;
  18835. }
  18836. _ACEOF
  18837. rm -f conftest.$ac_objext conftest$ac_exeext
  18838. if { (ac_try="$ac_link"
  18839. case "(($ac_try" in
  18840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18841. *) ac_try_echo=$ac_try;;
  18842. esac
  18843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18844. (eval "$ac_link") 2>conftest.er1
  18845. ac_status=$?
  18846. grep -v '^ *+' conftest.er1 >conftest.err
  18847. rm -f conftest.er1
  18848. cat conftest.err >&5
  18849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18850. (exit $ac_status); } && {
  18851. test -z "$ac_cxx_werror_flag" ||
  18852. test ! -s conftest.err
  18853. } && test -s conftest$ac_exeext &&
  18854. $as_test_x conftest$ac_exeext; then
  18855. eval "$as_ac_var=yes"
  18856. else
  18857. echo "$as_me: failed program was:" >&5
  18858. sed 's/^/| /' conftest.$ac_ext >&5
  18859. eval "$as_ac_var=no"
  18860. fi
  18861. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18862. conftest$ac_exeext conftest.$ac_ext
  18863. fi
  18864. ac_res=`eval echo '${'$as_ac_var'}'`
  18865. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18866. echo "${ECHO_T}$ac_res" >&6; }
  18867. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18868. cat >>confdefs.h <<_ACEOF
  18869. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18870. _ACEOF
  18871. if true; then
  18872. HAVE_TIMEGM_TRUE=
  18873. HAVE_TIMEGM_FALSE='#'
  18874. else
  18875. HAVE_TIMEGM_TRUE='#'
  18876. HAVE_TIMEGM_FALSE=
  18877. fi
  18878. else
  18879. if false; then
  18880. HAVE_TIMEGM_TRUE=
  18881. HAVE_TIMEGM_FALSE='#'
  18882. else
  18883. HAVE_TIMEGM_TRUE='#'
  18884. HAVE_TIMEGM_FALSE=
  18885. fi
  18886. fi
  18887. done
  18888. case "$target" in
  18889. *mingw*)
  18890. if true; then
  18891. HAVE_GETADDRINFO_TRUE=
  18892. HAVE_GETADDRINFO_FALSE='#'
  18893. else
  18894. HAVE_GETADDRINFO_TRUE='#'
  18895. HAVE_GETADDRINFO_FALSE=
  18896. fi
  18897. if false; then
  18898. HAVE_GAI_STRERROR_TRUE=
  18899. HAVE_GAI_STRERROR_FALSE='#'
  18900. else
  18901. HAVE_GAI_STRERROR_TRUE='#'
  18902. HAVE_GAI_STRERROR_FALSE=
  18903. fi
  18904. ;;
  18905. esac
  18906. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18907. cat >confcache <<\_ACEOF
  18908. # This file is a shell script that caches the results of configure
  18909. # tests run on this system so they can be shared between configure
  18910. # scripts and configure runs, see configure's option --config-cache.
  18911. # It is not useful on other systems. If it contains results you don't
  18912. # want to keep, you may remove or edit it.
  18913. #
  18914. # config.status only pays attention to the cache file if you give it
  18915. # the --recheck option to rerun configure.
  18916. #
  18917. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18918. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18919. # following values.
  18920. _ACEOF
  18921. # The following way of writing the cache mishandles newlines in values,
  18922. # but we know of no workaround that is simple, portable, and efficient.
  18923. # So, we kill variables containing newlines.
  18924. # Ultrix sh set writes to stderr and can't be redirected directly,
  18925. # and sets the high bit in the cache file unless we assign to the vars.
  18926. (
  18927. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18928. eval ac_val=\$$ac_var
  18929. case $ac_val in #(
  18930. *${as_nl}*)
  18931. case $ac_var in #(
  18932. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18933. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18934. esac
  18935. case $ac_var in #(
  18936. _ | IFS | as_nl) ;; #(
  18937. *) $as_unset $ac_var ;;
  18938. esac ;;
  18939. esac
  18940. done
  18941. (set) 2>&1 |
  18942. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18943. *${as_nl}ac_space=\ *)
  18944. # `set' does not quote correctly, so add quotes (double-quote
  18945. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18946. sed -n \
  18947. "s/'/'\\\\''/g;
  18948. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18949. ;; #(
  18950. *)
  18951. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18952. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18953. ;;
  18954. esac |
  18955. sort
  18956. ) |
  18957. sed '
  18958. /^ac_cv_env_/b end
  18959. t clear
  18960. :clear
  18961. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18962. t end
  18963. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18964. :end' >>confcache
  18965. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18966. if test -w "$cache_file"; then
  18967. test "x$cache_file" != "x/dev/null" &&
  18968. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18969. echo "$as_me: updating cache $cache_file" >&6;}
  18970. cat confcache >$cache_file
  18971. else
  18972. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18973. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18974. fi
  18975. fi
  18976. rm -f confcache
  18977. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18978. # Let make expand exec_prefix.
  18979. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18980. DEFS=-DHAVE_CONFIG_H
  18981. ac_libobjs=
  18982. ac_ltlibobjs=
  18983. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18984. # 1. Remove the extension, and $U if already installed.
  18985. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18986. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18987. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18988. # will be set to the directory where LIBOBJS objects are built.
  18989. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18990. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18991. done
  18992. LIBOBJS=$ac_libobjs
  18993. LTLIBOBJS=$ac_ltlibobjs
  18994. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18995. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18996. Usually this means the macro was only invoked conditionally." >&5
  18997. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18998. Usually this means the macro was only invoked conditionally." >&2;}
  18999. { (exit 1); exit 1; }; }
  19000. fi
  19001. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19002. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19003. Usually this means the macro was only invoked conditionally." >&5
  19004. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19005. Usually this means the macro was only invoked conditionally." >&2;}
  19006. { (exit 1); exit 1; }; }
  19007. fi
  19008. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19009. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19010. Usually this means the macro was only invoked conditionally." >&5
  19011. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19012. Usually this means the macro was only invoked conditionally." >&2;}
  19013. { (exit 1); exit 1; }; }
  19014. fi
  19015. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19016. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19017. Usually this means the macro was only invoked conditionally." >&5
  19018. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19019. Usually this means the macro was only invoked conditionally." >&2;}
  19020. { (exit 1); exit 1; }; }
  19021. fi
  19022. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19023. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19024. Usually this means the macro was only invoked conditionally." >&5
  19025. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19026. Usually this means the macro was only invoked conditionally." >&2;}
  19027. { (exit 1); exit 1; }; }
  19028. fi
  19029. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19030. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19031. Usually this means the macro was only invoked conditionally." >&5
  19032. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19033. Usually this means the macro was only invoked conditionally." >&2;}
  19034. { (exit 1); exit 1; }; }
  19035. fi
  19036. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19037. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19038. Usually this means the macro was only invoked conditionally." >&5
  19039. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19040. Usually this means the macro was only invoked conditionally." >&2;}
  19041. { (exit 1); exit 1; }; }
  19042. fi
  19043. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19044. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19045. Usually this means the macro was only invoked conditionally." >&5
  19046. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19047. Usually this means the macro was only invoked conditionally." >&2;}
  19048. { (exit 1); exit 1; }; }
  19049. fi
  19050. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19051. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19052. Usually this means the macro was only invoked conditionally." >&5
  19053. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19054. Usually this means the macro was only invoked conditionally." >&2;}
  19055. { (exit 1); exit 1; }; }
  19056. fi
  19057. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19058. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19059. Usually this means the macro was only invoked conditionally." >&5
  19060. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19061. Usually this means the macro was only invoked conditionally." >&2;}
  19062. { (exit 1); exit 1; }; }
  19063. fi
  19064. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19065. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19066. Usually this means the macro was only invoked conditionally." >&5
  19067. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19068. Usually this means the macro was only invoked conditionally." >&2;}
  19069. { (exit 1); exit 1; }; }
  19070. fi
  19071. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19072. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19073. Usually this means the macro was only invoked conditionally." >&5
  19074. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19075. Usually this means the macro was only invoked conditionally." >&2;}
  19076. { (exit 1); exit 1; }; }
  19077. fi
  19078. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19079. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19080. Usually this means the macro was only invoked conditionally." >&5
  19081. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19082. Usually this means the macro was only invoked conditionally." >&2;}
  19083. { (exit 1); exit 1; }; }
  19084. fi
  19085. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19086. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19087. Usually this means the macro was only invoked conditionally." >&5
  19088. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19089. Usually this means the macro was only invoked conditionally." >&2;}
  19090. { (exit 1); exit 1; }; }
  19091. fi
  19092. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19093. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19094. Usually this means the macro was only invoked conditionally." >&5
  19095. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19096. Usually this means the macro was only invoked conditionally." >&2;}
  19097. { (exit 1); exit 1; }; }
  19098. fi
  19099. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19100. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19101. Usually this means the macro was only invoked conditionally." >&5
  19102. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19103. Usually this means the macro was only invoked conditionally." >&2;}
  19104. { (exit 1); exit 1; }; }
  19105. fi
  19106. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19107. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19108. Usually this means the macro was only invoked conditionally." >&5
  19109. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19110. Usually this means the macro was only invoked conditionally." >&2;}
  19111. { (exit 1); exit 1; }; }
  19112. fi
  19113. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19114. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19115. Usually this means the macro was only invoked conditionally." >&5
  19116. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19117. Usually this means the macro was only invoked conditionally." >&2;}
  19118. { (exit 1); exit 1; }; }
  19119. fi
  19120. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19121. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19122. Usually this means the macro was only invoked conditionally." >&5
  19123. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19124. Usually this means the macro was only invoked conditionally." >&2;}
  19125. { (exit 1); exit 1; }; }
  19126. fi
  19127. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19128. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19129. Usually this means the macro was only invoked conditionally." >&5
  19130. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19131. Usually this means the macro was only invoked conditionally." >&2;}
  19132. { (exit 1); exit 1; }; }
  19133. fi
  19134. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19135. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19136. Usually this means the macro was only invoked conditionally." >&5
  19137. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19138. Usually this means the macro was only invoked conditionally." >&2;}
  19139. { (exit 1); exit 1; }; }
  19140. fi
  19141. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19142. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19143. Usually this means the macro was only invoked conditionally." >&5
  19144. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19145. Usually this means the macro was only invoked conditionally." >&2;}
  19146. { (exit 1); exit 1; }; }
  19147. fi
  19148. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19149. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19150. Usually this means the macro was only invoked conditionally." >&5
  19151. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19152. Usually this means the macro was only invoked conditionally." >&2;}
  19153. { (exit 1); exit 1; }; }
  19154. fi
  19155. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19156. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19157. Usually this means the macro was only invoked conditionally." >&5
  19158. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19159. Usually this means the macro was only invoked conditionally." >&2;}
  19160. { (exit 1); exit 1; }; }
  19161. fi
  19162. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19163. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19164. Usually this means the macro was only invoked conditionally." >&5
  19165. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19166. Usually this means the macro was only invoked conditionally." >&2;}
  19167. { (exit 1); exit 1; }; }
  19168. fi
  19169. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19170. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19171. Usually this means the macro was only invoked conditionally." >&5
  19172. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19173. Usually this means the macro was only invoked conditionally." >&2;}
  19174. { (exit 1); exit 1; }; }
  19175. fi
  19176. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19177. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19178. Usually this means the macro was only invoked conditionally." >&5
  19179. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19180. Usually this means the macro was only invoked conditionally." >&2;}
  19181. { (exit 1); exit 1; }; }
  19182. fi
  19183. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19184. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19185. Usually this means the macro was only invoked conditionally." >&5
  19186. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19187. Usually this means the macro was only invoked conditionally." >&2;}
  19188. { (exit 1); exit 1; }; }
  19189. fi
  19190. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19191. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19192. Usually this means the macro was only invoked conditionally." >&5
  19193. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19194. Usually this means the macro was only invoked conditionally." >&2;}
  19195. { (exit 1); exit 1; }; }
  19196. fi
  19197. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19198. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19199. Usually this means the macro was only invoked conditionally." >&5
  19200. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19201. Usually this means the macro was only invoked conditionally." >&2;}
  19202. { (exit 1); exit 1; }; }
  19203. fi
  19204. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19205. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19206. Usually this means the macro was only invoked conditionally." >&5
  19207. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19208. Usually this means the macro was only invoked conditionally." >&2;}
  19209. { (exit 1); exit 1; }; }
  19210. fi
  19211. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19212. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19213. Usually this means the macro was only invoked conditionally." >&5
  19214. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19215. Usually this means the macro was only invoked conditionally." >&2;}
  19216. { (exit 1); exit 1; }; }
  19217. fi
  19218. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19219. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19220. Usually this means the macro was only invoked conditionally." >&5
  19221. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19222. Usually this means the macro was only invoked conditionally." >&2;}
  19223. { (exit 1); exit 1; }; }
  19224. fi
  19225. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19226. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19227. Usually this means the macro was only invoked conditionally." >&5
  19228. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19229. Usually this means the macro was only invoked conditionally." >&2;}
  19230. { (exit 1); exit 1; }; }
  19231. fi
  19232. : ${CONFIG_STATUS=./config.status}
  19233. ac_clean_files_save=$ac_clean_files
  19234. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19235. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19236. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19237. cat >$CONFIG_STATUS <<_ACEOF
  19238. #! $SHELL
  19239. # Generated by $as_me.
  19240. # Run this file to recreate the current configuration.
  19241. # Compiler output produced by configure, useful for debugging
  19242. # configure, is in config.log if it exists.
  19243. debug=false
  19244. ac_cs_recheck=false
  19245. ac_cs_silent=false
  19246. SHELL=\${CONFIG_SHELL-$SHELL}
  19247. _ACEOF
  19248. cat >>$CONFIG_STATUS <<\_ACEOF
  19249. ## --------------------- ##
  19250. ## M4sh Initialization. ##
  19251. ## --------------------- ##
  19252. # Be more Bourne compatible
  19253. DUALCASE=1; export DUALCASE # for MKS sh
  19254. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19255. emulate sh
  19256. NULLCMD=:
  19257. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19258. # is contrary to our usage. Disable this feature.
  19259. alias -g '${1+"$@"}'='"$@"'
  19260. setopt NO_GLOB_SUBST
  19261. else
  19262. case `(set -o) 2>/dev/null` in
  19263. *posix*) set -o posix ;;
  19264. esac
  19265. fi
  19266. # PATH needs CR
  19267. # Avoid depending upon Character Ranges.
  19268. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19269. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19270. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19271. as_cr_digits='0123456789'
  19272. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19273. # The user is always right.
  19274. if test "${PATH_SEPARATOR+set}" != set; then
  19275. echo "#! /bin/sh" >conf$$.sh
  19276. echo "exit 0" >>conf$$.sh
  19277. chmod +x conf$$.sh
  19278. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19279. PATH_SEPARATOR=';'
  19280. else
  19281. PATH_SEPARATOR=:
  19282. fi
  19283. rm -f conf$$.sh
  19284. fi
  19285. # Support unset when possible.
  19286. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19287. as_unset=unset
  19288. else
  19289. as_unset=false
  19290. fi
  19291. # IFS
  19292. # We need space, tab and new line, in precisely that order. Quoting is
  19293. # there to prevent editors from complaining about space-tab.
  19294. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19295. # splitting by setting IFS to empty value.)
  19296. as_nl='
  19297. '
  19298. IFS=" "" $as_nl"
  19299. # Find who we are. Look in the path if we contain no directory separator.
  19300. case $0 in
  19301. *[\\/]* ) as_myself=$0 ;;
  19302. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19303. for as_dir in $PATH
  19304. do
  19305. IFS=$as_save_IFS
  19306. test -z "$as_dir" && as_dir=.
  19307. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19308. done
  19309. IFS=$as_save_IFS
  19310. ;;
  19311. esac
  19312. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19313. # in which case we are not to be found in the path.
  19314. if test "x$as_myself" = x; then
  19315. as_myself=$0
  19316. fi
  19317. if test ! -f "$as_myself"; then
  19318. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19319. { (exit 1); exit 1; }
  19320. fi
  19321. # Work around bugs in pre-3.0 UWIN ksh.
  19322. for as_var in ENV MAIL MAILPATH
  19323. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19324. done
  19325. PS1='$ '
  19326. PS2='> '
  19327. PS4='+ '
  19328. # NLS nuisances.
  19329. for as_var in \
  19330. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19331. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19332. LC_TELEPHONE LC_TIME
  19333. do
  19334. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19335. eval $as_var=C; export $as_var
  19336. else
  19337. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19338. fi
  19339. done
  19340. # Required to use basename.
  19341. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19342. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19343. as_expr=expr
  19344. else
  19345. as_expr=false
  19346. fi
  19347. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19348. as_basename=basename
  19349. else
  19350. as_basename=false
  19351. fi
  19352. # Name of the executable.
  19353. as_me=`$as_basename -- "$0" ||
  19354. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19355. X"$0" : 'X\(//\)$' \| \
  19356. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19357. echo X/"$0" |
  19358. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19359. s//\1/
  19360. q
  19361. }
  19362. /^X\/\(\/\/\)$/{
  19363. s//\1/
  19364. q
  19365. }
  19366. /^X\/\(\/\).*/{
  19367. s//\1/
  19368. q
  19369. }
  19370. s/.*/./; q'`
  19371. # CDPATH.
  19372. $as_unset CDPATH
  19373. as_lineno_1=$LINENO
  19374. as_lineno_2=$LINENO
  19375. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19376. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19377. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19378. # uniformly replaced by the line number. The first 'sed' inserts a
  19379. # line-number line after each line using $LINENO; the second 'sed'
  19380. # does the real work. The second script uses 'N' to pair each
  19381. # line-number line with the line containing $LINENO, and appends
  19382. # trailing '-' during substitution so that $LINENO is not a special
  19383. # case at line end.
  19384. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19385. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19386. # E. McMahon (1931-1989) for sed's syntax. :-)
  19387. sed -n '
  19388. p
  19389. /[$]LINENO/=
  19390. ' <$as_myself |
  19391. sed '
  19392. s/[$]LINENO.*/&-/
  19393. t lineno
  19394. b
  19395. :lineno
  19396. N
  19397. :loop
  19398. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19399. t loop
  19400. s/-\n.*//
  19401. ' >$as_me.lineno &&
  19402. chmod +x "$as_me.lineno" ||
  19403. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19404. { (exit 1); exit 1; }; }
  19405. # Don't try to exec as it changes $[0], causing all sort of problems
  19406. # (the dirname of $[0] is not the place where we might find the
  19407. # original and so on. Autoconf is especially sensitive to this).
  19408. . "./$as_me.lineno"
  19409. # Exit status is that of the last command.
  19410. exit
  19411. }
  19412. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19413. as_dirname=dirname
  19414. else
  19415. as_dirname=false
  19416. fi
  19417. ECHO_C= ECHO_N= ECHO_T=
  19418. case `echo -n x` in
  19419. -n*)
  19420. case `echo 'x\c'` in
  19421. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19422. *) ECHO_C='\c';;
  19423. esac;;
  19424. *)
  19425. ECHO_N='-n';;
  19426. esac
  19427. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19428. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19429. as_expr=expr
  19430. else
  19431. as_expr=false
  19432. fi
  19433. rm -f conf$$ conf$$.exe conf$$.file
  19434. if test -d conf$$.dir; then
  19435. rm -f conf$$.dir/conf$$.file
  19436. else
  19437. rm -f conf$$.dir
  19438. mkdir conf$$.dir
  19439. fi
  19440. echo >conf$$.file
  19441. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19442. as_ln_s='ln -s'
  19443. # ... but there are two gotchas:
  19444. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19445. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19446. # In both cases, we have to default to `cp -p'.
  19447. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19448. as_ln_s='cp -p'
  19449. elif ln conf$$.file conf$$ 2>/dev/null; then
  19450. as_ln_s=ln
  19451. else
  19452. as_ln_s='cp -p'
  19453. fi
  19454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19455. rmdir conf$$.dir 2>/dev/null
  19456. if mkdir -p . 2>/dev/null; then
  19457. as_mkdir_p=:
  19458. else
  19459. test -d ./-p && rmdir ./-p
  19460. as_mkdir_p=false
  19461. fi
  19462. if test -x / >/dev/null 2>&1; then
  19463. as_test_x='test -x'
  19464. else
  19465. if ls -dL / >/dev/null 2>&1; then
  19466. as_ls_L_option=L
  19467. else
  19468. as_ls_L_option=
  19469. fi
  19470. as_test_x='
  19471. eval sh -c '\''
  19472. if test -d "$1"; then
  19473. test -d "$1/.";
  19474. else
  19475. case $1 in
  19476. -*)set "./$1";;
  19477. esac;
  19478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19479. ???[sx]*):;;*)false;;esac;fi
  19480. '\'' sh
  19481. '
  19482. fi
  19483. as_executable_p=$as_test_x
  19484. # Sed expression to map a string onto a valid CPP name.
  19485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19486. # Sed expression to map a string onto a valid variable name.
  19487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19488. exec 6>&1
  19489. # Save the log message, to keep $[0] and so on meaningful, and to
  19490. # report actual input values of CONFIG_FILES etc. instead of their
  19491. # values after options handling.
  19492. ac_log="
  19493. This file was extended by aria2c $as_me 0.15.1+1, which was
  19494. generated by GNU Autoconf 2.61. Invocation command line was
  19495. CONFIG_FILES = $CONFIG_FILES
  19496. CONFIG_HEADERS = $CONFIG_HEADERS
  19497. CONFIG_LINKS = $CONFIG_LINKS
  19498. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19499. $ $0 $@
  19500. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19501. "
  19502. _ACEOF
  19503. cat >>$CONFIG_STATUS <<_ACEOF
  19504. # Files that config.status was made for.
  19505. config_files="$ac_config_files"
  19506. config_headers="$ac_config_headers"
  19507. config_commands="$ac_config_commands"
  19508. _ACEOF
  19509. cat >>$CONFIG_STATUS <<\_ACEOF
  19510. ac_cs_usage="\
  19511. \`$as_me' instantiates files from templates according to the
  19512. current configuration.
  19513. Usage: $0 [OPTIONS] [FILE]...
  19514. -h, --help print this help, then exit
  19515. -V, --version print version number and configuration settings, then exit
  19516. -q, --quiet do not print progress messages
  19517. -d, --debug don't remove temporary files
  19518. --recheck update $as_me by reconfiguring in the same conditions
  19519. --file=FILE[:TEMPLATE]
  19520. instantiate the configuration file FILE
  19521. --header=FILE[:TEMPLATE]
  19522. instantiate the configuration header FILE
  19523. Configuration files:
  19524. $config_files
  19525. Configuration headers:
  19526. $config_headers
  19527. Configuration commands:
  19528. $config_commands
  19529. Report bugs to <bug-autoconf@gnu.org>."
  19530. _ACEOF
  19531. cat >>$CONFIG_STATUS <<_ACEOF
  19532. ac_cs_version="\\
  19533. aria2c config.status 0.15.1+1
  19534. configured by $0, generated by GNU Autoconf 2.61,
  19535. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19536. Copyright (C) 2006 Free Software Foundation, Inc.
  19537. This config.status script is free software; the Free Software Foundation
  19538. gives unlimited permission to copy, distribute and modify it."
  19539. ac_pwd='$ac_pwd'
  19540. srcdir='$srcdir'
  19541. INSTALL='$INSTALL'
  19542. MKDIR_P='$MKDIR_P'
  19543. _ACEOF
  19544. cat >>$CONFIG_STATUS <<\_ACEOF
  19545. # If no file are specified by the user, then we need to provide default
  19546. # value. By we need to know if files were specified by the user.
  19547. ac_need_defaults=:
  19548. while test $# != 0
  19549. do
  19550. case $1 in
  19551. --*=*)
  19552. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19553. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19554. ac_shift=:
  19555. ;;
  19556. *)
  19557. ac_option=$1
  19558. ac_optarg=$2
  19559. ac_shift=shift
  19560. ;;
  19561. esac
  19562. case $ac_option in
  19563. # Handling of the options.
  19564. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19565. ac_cs_recheck=: ;;
  19566. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19567. echo "$ac_cs_version"; exit ;;
  19568. --debug | --debu | --deb | --de | --d | -d )
  19569. debug=: ;;
  19570. --file | --fil | --fi | --f )
  19571. $ac_shift
  19572. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19573. ac_need_defaults=false;;
  19574. --header | --heade | --head | --hea )
  19575. $ac_shift
  19576. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19577. ac_need_defaults=false;;
  19578. --he | --h)
  19579. # Conflict between --help and --header
  19580. { echo "$as_me: error: ambiguous option: $1
  19581. Try \`$0 --help' for more information." >&2
  19582. { (exit 1); exit 1; }; };;
  19583. --help | --hel | -h )
  19584. echo "$ac_cs_usage"; exit ;;
  19585. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19586. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19587. ac_cs_silent=: ;;
  19588. # This is an error.
  19589. -*) { echo "$as_me: error: unrecognized option: $1
  19590. Try \`$0 --help' for more information." >&2
  19591. { (exit 1); exit 1; }; } ;;
  19592. *) ac_config_targets="$ac_config_targets $1"
  19593. ac_need_defaults=false ;;
  19594. esac
  19595. shift
  19596. done
  19597. ac_configure_extra_args=
  19598. if $ac_cs_silent; then
  19599. exec 6>/dev/null
  19600. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19601. fi
  19602. _ACEOF
  19603. cat >>$CONFIG_STATUS <<_ACEOF
  19604. if \$ac_cs_recheck; then
  19605. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19606. CONFIG_SHELL=$SHELL
  19607. export CONFIG_SHELL
  19608. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19609. fi
  19610. _ACEOF
  19611. cat >>$CONFIG_STATUS <<\_ACEOF
  19612. exec 5>>config.log
  19613. {
  19614. echo
  19615. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19616. ## Running $as_me. ##
  19617. _ASBOX
  19618. echo "$ac_log"
  19619. } >&5
  19620. _ACEOF
  19621. cat >>$CONFIG_STATUS <<_ACEOF
  19622. #
  19623. # INIT-COMMANDS
  19624. #
  19625. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19626. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19627. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19628. # from automake < 1.5.
  19629. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19630. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19631. LINGUAS="${LINGUAS-%UNSET%}"
  19632. _ACEOF
  19633. cat >>$CONFIG_STATUS <<\_ACEOF
  19634. # Handling of arguments.
  19635. for ac_config_target in $ac_config_targets
  19636. do
  19637. case $ac_config_target in
  19638. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19639. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19640. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19641. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19642. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19643. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19644. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19645. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19646. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19647. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19648. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19649. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19650. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19651. { (exit 1); exit 1; }; };;
  19652. esac
  19653. done
  19654. # If the user did not use the arguments to specify the items to instantiate,
  19655. # then the envvar interface is used. Set only those that are not.
  19656. # We use the long form for the default assignment because of an extremely
  19657. # bizarre bug on SunOS 4.1.3.
  19658. if $ac_need_defaults; then
  19659. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19660. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19661. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19662. fi
  19663. # Have a temporary directory for convenience. Make it in the build tree
  19664. # simply because there is no reason against having it here, and in addition,
  19665. # creating and moving files from /tmp can sometimes cause problems.
  19666. # Hook for its removal unless debugging.
  19667. # Note that there is a small window in which the directory will not be cleaned:
  19668. # after its creation but before its name has been assigned to `$tmp'.
  19669. $debug ||
  19670. {
  19671. tmp=
  19672. trap 'exit_status=$?
  19673. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19674. ' 0
  19675. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19676. }
  19677. # Create a (secure) tmp directory for tmp files.
  19678. {
  19679. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19680. test -n "$tmp" && test -d "$tmp"
  19681. } ||
  19682. {
  19683. tmp=./conf$$-$RANDOM
  19684. (umask 077 && mkdir "$tmp")
  19685. } ||
  19686. {
  19687. echo "$me: cannot create a temporary directory in ." >&2
  19688. { (exit 1); exit 1; }
  19689. }
  19690. #
  19691. # Set up the sed scripts for CONFIG_FILES section.
  19692. #
  19693. # No need to generate the scripts if there are no CONFIG_FILES.
  19694. # This happens for instance when ./config.status config.h
  19695. if test -n "$CONFIG_FILES"; then
  19696. _ACEOF
  19697. ac_delim='%!_!# '
  19698. for ac_last_try in false false false false false :; do
  19699. cat >conf$$subs.sed <<_ACEOF
  19700. SHELL!$SHELL$ac_delim
  19701. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19702. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19703. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19704. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19705. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19706. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19707. exec_prefix!$exec_prefix$ac_delim
  19708. prefix!$prefix$ac_delim
  19709. program_transform_name!$program_transform_name$ac_delim
  19710. bindir!$bindir$ac_delim
  19711. sbindir!$sbindir$ac_delim
  19712. libexecdir!$libexecdir$ac_delim
  19713. datarootdir!$datarootdir$ac_delim
  19714. datadir!$datadir$ac_delim
  19715. sysconfdir!$sysconfdir$ac_delim
  19716. sharedstatedir!$sharedstatedir$ac_delim
  19717. localstatedir!$localstatedir$ac_delim
  19718. includedir!$includedir$ac_delim
  19719. oldincludedir!$oldincludedir$ac_delim
  19720. docdir!$docdir$ac_delim
  19721. infodir!$infodir$ac_delim
  19722. htmldir!$htmldir$ac_delim
  19723. dvidir!$dvidir$ac_delim
  19724. pdfdir!$pdfdir$ac_delim
  19725. psdir!$psdir$ac_delim
  19726. libdir!$libdir$ac_delim
  19727. localedir!$localedir$ac_delim
  19728. mandir!$mandir$ac_delim
  19729. DEFS!$DEFS$ac_delim
  19730. ECHO_C!$ECHO_C$ac_delim
  19731. ECHO_N!$ECHO_N$ac_delim
  19732. ECHO_T!$ECHO_T$ac_delim
  19733. LIBS!$LIBS$ac_delim
  19734. build_alias!$build_alias$ac_delim
  19735. host_alias!$host_alias$ac_delim
  19736. target_alias!$target_alias$ac_delim
  19737. build!$build$ac_delim
  19738. build_cpu!$build_cpu$ac_delim
  19739. build_vendor!$build_vendor$ac_delim
  19740. build_os!$build_os$ac_delim
  19741. host!$host$ac_delim
  19742. host_cpu!$host_cpu$ac_delim
  19743. host_vendor!$host_vendor$ac_delim
  19744. host_os!$host_os$ac_delim
  19745. target!$target$ac_delim
  19746. target_cpu!$target_cpu$ac_delim
  19747. target_vendor!$target_vendor$ac_delim
  19748. target_os!$target_os$ac_delim
  19749. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19750. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19751. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19752. am__isrc!$am__isrc$ac_delim
  19753. CYGPATH_W!$CYGPATH_W$ac_delim
  19754. PACKAGE!$PACKAGE$ac_delim
  19755. VERSION!$VERSION$ac_delim
  19756. ACLOCAL!$ACLOCAL$ac_delim
  19757. AUTOCONF!$AUTOCONF$ac_delim
  19758. AUTOMAKE!$AUTOMAKE$ac_delim
  19759. AUTOHEADER!$AUTOHEADER$ac_delim
  19760. MAKEINFO!$MAKEINFO$ac_delim
  19761. install_sh!$install_sh$ac_delim
  19762. STRIP!$STRIP$ac_delim
  19763. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19764. mkdir_p!$mkdir_p$ac_delim
  19765. AWK!$AWK$ac_delim
  19766. SET_MAKE!$SET_MAKE$ac_delim
  19767. am__leading_dot!$am__leading_dot$ac_delim
  19768. AMTAR!$AMTAR$ac_delim
  19769. am__tar!$am__tar$ac_delim
  19770. am__untar!$am__untar$ac_delim
  19771. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19772. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19773. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19774. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19775. CXX!$CXX$ac_delim
  19776. CXXFLAGS!$CXXFLAGS$ac_delim
  19777. LDFLAGS!$LDFLAGS$ac_delim
  19778. CPPFLAGS!$CPPFLAGS$ac_delim
  19779. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19780. EXEEXT!$EXEEXT$ac_delim
  19781. OBJEXT!$OBJEXT$ac_delim
  19782. DEPDIR!$DEPDIR$ac_delim
  19783. am__include!$am__include$ac_delim
  19784. am__quote!$am__quote$ac_delim
  19785. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19786. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19787. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19788. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19789. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19790. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19791. CC!$CC$ac_delim
  19792. CFLAGS!$CFLAGS$ac_delim
  19793. ac_ct_CC!$ac_ct_CC$ac_delim
  19794. CCDEPMODE!$CCDEPMODE$ac_delim
  19795. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19796. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19797. _ACEOF
  19798. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19799. break
  19800. elif $ac_last_try; then
  19801. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19802. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19803. { (exit 1); exit 1; }; }
  19804. else
  19805. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19806. fi
  19807. done
  19808. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19809. if test -n "$ac_eof"; then
  19810. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19811. ac_eof=`expr $ac_eof + 1`
  19812. fi
  19813. cat >>$CONFIG_STATUS <<_ACEOF
  19814. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19815. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19816. _ACEOF
  19817. sed '
  19818. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19819. s/^/s,@/; s/!/@,|#_!!_#|/
  19820. :n
  19821. t n
  19822. s/'"$ac_delim"'$/,g/; t
  19823. s/$/\\/; p
  19824. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19825. ' >>$CONFIG_STATUS <conf$$subs.sed
  19826. rm -f conf$$subs.sed
  19827. cat >>$CONFIG_STATUS <<_ACEOF
  19828. CEOF$ac_eof
  19829. _ACEOF
  19830. ac_delim='%!_!# '
  19831. for ac_last_try in false false false false false :; do
  19832. cat >conf$$subs.sed <<_ACEOF
  19833. RANLIB!$RANLIB$ac_delim
  19834. YACC!$YACC$ac_delim
  19835. YFLAGS!$YFLAGS$ac_delim
  19836. CXXCPP!$CXXCPP$ac_delim
  19837. GREP!$GREP$ac_delim
  19838. EGREP!$EGREP$ac_delim
  19839. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19840. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19841. XML_LIBS!$XML_LIBS$ac_delim
  19842. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19843. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19844. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19845. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19846. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19847. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19848. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19849. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19850. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19851. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19852. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19853. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19854. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19855. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19856. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  19857. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  19858. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19859. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19860. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19861. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19862. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19863. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19864. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19865. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19866. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19867. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19868. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19869. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19870. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  19871. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  19872. ALLOCA!$ALLOCA$ac_delim
  19873. USE_NLS!$USE_NLS$ac_delim
  19874. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19875. MSGFMT!$MSGFMT$ac_delim
  19876. GMSGFMT!$GMSGFMT$ac_delim
  19877. MSGFMT_015!$MSGFMT_015$ac_delim
  19878. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19879. XGETTEXT!$XGETTEXT$ac_delim
  19880. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19881. MSGMERGE!$MSGMERGE$ac_delim
  19882. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19883. GLIBC2!$GLIBC2$ac_delim
  19884. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19885. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19886. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19887. LIBPTH!$LIBPTH$ac_delim
  19888. LTLIBPTH!$LTLIBPTH$ac_delim
  19889. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19890. LIBTHREAD!$LIBTHREAD$ac_delim
  19891. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19892. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19893. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19894. LIBICONV!$LIBICONV$ac_delim
  19895. LTLIBICONV!$LTLIBICONV$ac_delim
  19896. INTLBISON!$INTLBISON$ac_delim
  19897. GLIBC21!$GLIBC21$ac_delim
  19898. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19899. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19900. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19901. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19902. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19903. WOE32DLL!$WOE32DLL$ac_delim
  19904. WOE32!$WOE32$ac_delim
  19905. WINDRES!$WINDRES$ac_delim
  19906. LTLIBC!$LTLIBC$ac_delim
  19907. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19908. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19909. CATOBJEXT!$CATOBJEXT$ac_delim
  19910. DATADIRNAME!$DATADIRNAME$ac_delim
  19911. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19912. GENCAT!$GENCAT$ac_delim
  19913. INTLOBJS!$INTLOBJS$ac_delim
  19914. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19915. INTLLIBS!$INTLLIBS$ac_delim
  19916. LIBINTL!$LIBINTL$ac_delim
  19917. LTLIBINTL!$LTLIBINTL$ac_delim
  19918. POSUB!$POSUB$ac_delim
  19919. LIBOBJS!$LIBOBJS$ac_delim
  19920. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  19921. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  19922. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19923. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19924. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19925. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19926. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19927. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19928. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19929. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19930. _ACEOF
  19931. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19932. break
  19933. elif $ac_last_try; then
  19934. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19935. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19936. { (exit 1); exit 1; }; }
  19937. else
  19938. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19939. fi
  19940. done
  19941. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19942. if test -n "$ac_eof"; then
  19943. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19944. ac_eof=`expr $ac_eof + 1`
  19945. fi
  19946. cat >>$CONFIG_STATUS <<_ACEOF
  19947. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  19948. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19949. _ACEOF
  19950. sed '
  19951. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19952. s/^/s,@/; s/!/@,|#_!!_#|/
  19953. :n
  19954. t n
  19955. s/'"$ac_delim"'$/,g/; t
  19956. s/$/\\/; p
  19957. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19958. ' >>$CONFIG_STATUS <conf$$subs.sed
  19959. rm -f conf$$subs.sed
  19960. cat >>$CONFIG_STATUS <<_ACEOF
  19961. CEOF$ac_eof
  19962. _ACEOF
  19963. ac_delim='%!_!# '
  19964. for ac_last_try in false false false false false :; do
  19965. cat >conf$$subs.sed <<_ACEOF
  19966. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  19967. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  19968. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  19969. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  19970. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  19971. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  19972. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  19973. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  19974. LTLIBOBJS!$LTLIBOBJS$ac_delim
  19975. _ACEOF
  19976. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
  19977. break
  19978. elif $ac_last_try; then
  19979. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19980. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19981. { (exit 1); exit 1; }; }
  19982. else
  19983. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19984. fi
  19985. done
  19986. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19987. if test -n "$ac_eof"; then
  19988. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19989. ac_eof=`expr $ac_eof + 1`
  19990. fi
  19991. cat >>$CONFIG_STATUS <<_ACEOF
  19992. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  19993. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  19994. _ACEOF
  19995. sed '
  19996. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19997. s/^/s,@/; s/!/@,|#_!!_#|/
  19998. :n
  19999. t n
  20000. s/'"$ac_delim"'$/,g/; t
  20001. s/$/\\/; p
  20002. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20003. ' >>$CONFIG_STATUS <conf$$subs.sed
  20004. rm -f conf$$subs.sed
  20005. cat >>$CONFIG_STATUS <<_ACEOF
  20006. :end
  20007. s/|#_!!_#|//g
  20008. CEOF$ac_eof
  20009. _ACEOF
  20010. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20011. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20012. # trailing colons and then remove the whole line if VPATH becomes empty
  20013. # (actually we leave an empty line to preserve line numbers).
  20014. if test "x$srcdir" = x.; then
  20015. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20016. s/:*\$(srcdir):*/:/
  20017. s/:*\${srcdir}:*/:/
  20018. s/:*@srcdir@:*/:/
  20019. s/^\([^=]*=[ ]*\):*/\1/
  20020. s/:*$//
  20021. s/^[^=]*=[ ]*$//
  20022. }'
  20023. fi
  20024. cat >>$CONFIG_STATUS <<\_ACEOF
  20025. fi # test -n "$CONFIG_FILES"
  20026. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20027. do
  20028. case $ac_tag in
  20029. :[FHLC]) ac_mode=$ac_tag; continue;;
  20030. esac
  20031. case $ac_mode$ac_tag in
  20032. :[FHL]*:*);;
  20033. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20034. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20035. { (exit 1); exit 1; }; };;
  20036. :[FH]-) ac_tag=-:-;;
  20037. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20038. esac
  20039. ac_save_IFS=$IFS
  20040. IFS=:
  20041. set x $ac_tag
  20042. IFS=$ac_save_IFS
  20043. shift
  20044. ac_file=$1
  20045. shift
  20046. case $ac_mode in
  20047. :L) ac_source=$1;;
  20048. :[FH])
  20049. ac_file_inputs=
  20050. for ac_f
  20051. do
  20052. case $ac_f in
  20053. -) ac_f="$tmp/stdin";;
  20054. *) # Look for the file first in the build tree, then in the source tree
  20055. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20056. # because $ac_f cannot contain `:'.
  20057. test -f "$ac_f" ||
  20058. case $ac_f in
  20059. [\\/$]*) false;;
  20060. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20061. esac ||
  20062. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20063. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20064. { (exit 1); exit 1; }; };;
  20065. esac
  20066. ac_file_inputs="$ac_file_inputs $ac_f"
  20067. done
  20068. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20069. # use $as_me), people would be surprised to read:
  20070. # /* config.h. Generated by config.status. */
  20071. configure_input="Generated from "`IFS=:
  20072. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20073. if test x"$ac_file" != x-; then
  20074. configure_input="$ac_file. $configure_input"
  20075. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20076. echo "$as_me: creating $ac_file" >&6;}
  20077. fi
  20078. case $ac_tag in
  20079. *:-:* | *:-) cat >"$tmp/stdin";;
  20080. esac
  20081. ;;
  20082. esac
  20083. ac_dir=`$as_dirname -- "$ac_file" ||
  20084. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20085. X"$ac_file" : 'X\(//\)[^/]' \| \
  20086. X"$ac_file" : 'X\(//\)$' \| \
  20087. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20088. echo X"$ac_file" |
  20089. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20090. s//\1/
  20091. q
  20092. }
  20093. /^X\(\/\/\)[^/].*/{
  20094. s//\1/
  20095. q
  20096. }
  20097. /^X\(\/\/\)$/{
  20098. s//\1/
  20099. q
  20100. }
  20101. /^X\(\/\).*/{
  20102. s//\1/
  20103. q
  20104. }
  20105. s/.*/./; q'`
  20106. { as_dir="$ac_dir"
  20107. case $as_dir in #(
  20108. -*) as_dir=./$as_dir;;
  20109. esac
  20110. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20111. as_dirs=
  20112. while :; do
  20113. case $as_dir in #(
  20114. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20115. *) as_qdir=$as_dir;;
  20116. esac
  20117. as_dirs="'$as_qdir' $as_dirs"
  20118. as_dir=`$as_dirname -- "$as_dir" ||
  20119. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20120. X"$as_dir" : 'X\(//\)[^/]' \| \
  20121. X"$as_dir" : 'X\(//\)$' \| \
  20122. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20123. echo X"$as_dir" |
  20124. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20125. s//\1/
  20126. q
  20127. }
  20128. /^X\(\/\/\)[^/].*/{
  20129. s//\1/
  20130. q
  20131. }
  20132. /^X\(\/\/\)$/{
  20133. s//\1/
  20134. q
  20135. }
  20136. /^X\(\/\).*/{
  20137. s//\1/
  20138. q
  20139. }
  20140. s/.*/./; q'`
  20141. test -d "$as_dir" && break
  20142. done
  20143. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20144. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20145. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20146. { (exit 1); exit 1; }; }; }
  20147. ac_builddir=.
  20148. case "$ac_dir" in
  20149. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20150. *)
  20151. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20152. # A ".." for each directory in $ac_dir_suffix.
  20153. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20154. case $ac_top_builddir_sub in
  20155. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20156. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20157. esac ;;
  20158. esac
  20159. ac_abs_top_builddir=$ac_pwd
  20160. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20161. # for backward compatibility:
  20162. ac_top_builddir=$ac_top_build_prefix
  20163. case $srcdir in
  20164. .) # We are building in place.
  20165. ac_srcdir=.
  20166. ac_top_srcdir=$ac_top_builddir_sub
  20167. ac_abs_top_srcdir=$ac_pwd ;;
  20168. [\\/]* | ?:[\\/]* ) # Absolute name.
  20169. ac_srcdir=$srcdir$ac_dir_suffix;
  20170. ac_top_srcdir=$srcdir
  20171. ac_abs_top_srcdir=$srcdir ;;
  20172. *) # Relative name.
  20173. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20174. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20175. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20176. esac
  20177. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20178. case $ac_mode in
  20179. :F)
  20180. #
  20181. # CONFIG_FILE
  20182. #
  20183. case $INSTALL in
  20184. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20185. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20186. esac
  20187. ac_MKDIR_P=$MKDIR_P
  20188. case $MKDIR_P in
  20189. [\\/$]* | ?:[\\/]* ) ;;
  20190. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20191. esac
  20192. _ACEOF
  20193. cat >>$CONFIG_STATUS <<\_ACEOF
  20194. # If the template does not know about datarootdir, expand it.
  20195. # FIXME: This hack should be removed a few years after 2.60.
  20196. ac_datarootdir_hack=; ac_datarootdir_seen=
  20197. case `sed -n '/datarootdir/ {
  20198. p
  20199. q
  20200. }
  20201. /@datadir@/p
  20202. /@docdir@/p
  20203. /@infodir@/p
  20204. /@localedir@/p
  20205. /@mandir@/p
  20206. ' $ac_file_inputs` in
  20207. *datarootdir*) ac_datarootdir_seen=yes;;
  20208. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20209. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20210. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20211. _ACEOF
  20212. cat >>$CONFIG_STATUS <<_ACEOF
  20213. ac_datarootdir_hack='
  20214. s&@datadir@&$datadir&g
  20215. s&@docdir@&$docdir&g
  20216. s&@infodir@&$infodir&g
  20217. s&@localedir@&$localedir&g
  20218. s&@mandir@&$mandir&g
  20219. s&\\\${datarootdir}&$datarootdir&g' ;;
  20220. esac
  20221. _ACEOF
  20222. # Neutralize VPATH when `$srcdir' = `.'.
  20223. # Shell code in configure.ac might set extrasub.
  20224. # FIXME: do we really want to maintain this feature?
  20225. cat >>$CONFIG_STATUS <<_ACEOF
  20226. sed "$ac_vpsub
  20227. $extrasub
  20228. _ACEOF
  20229. cat >>$CONFIG_STATUS <<\_ACEOF
  20230. :t
  20231. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20232. s&@configure_input@&$configure_input&;t t
  20233. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20234. s&@srcdir@&$ac_srcdir&;t t
  20235. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20236. s&@top_srcdir@&$ac_top_srcdir&;t t
  20237. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20238. s&@builddir@&$ac_builddir&;t t
  20239. s&@abs_builddir@&$ac_abs_builddir&;t t
  20240. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20241. s&@INSTALL@&$ac_INSTALL&;t t
  20242. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20243. $ac_datarootdir_hack
  20244. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20245. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20246. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20247. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20248. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20249. which seems to be undefined. Please make sure it is defined." >&5
  20250. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20251. which seems to be undefined. Please make sure it is defined." >&2;}
  20252. rm -f "$tmp/stdin"
  20253. case $ac_file in
  20254. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20255. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20256. esac
  20257. ;;
  20258. :H)
  20259. #
  20260. # CONFIG_HEADER
  20261. #
  20262. _ACEOF
  20263. # Transform confdefs.h into a sed script `conftest.defines', that
  20264. # substitutes the proper values into config.h.in to produce config.h.
  20265. rm -f conftest.defines conftest.tail
  20266. # First, append a space to every undef/define line, to ease matching.
  20267. echo 's/$/ /' >conftest.defines
  20268. # Then, protect against being on the right side of a sed subst, or in
  20269. # an unquoted here document, in config.status. If some macros were
  20270. # called several times there might be several #defines for the same
  20271. # symbol, which is useless. But do not sort them, since the last
  20272. # AC_DEFINE must be honored.
  20273. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20274. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20275. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20276. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20277. # just an empty string.
  20278. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20279. ac_dB='\\)[ (].*,\\1define\\2'
  20280. ac_dC=' '
  20281. ac_dD=' ,'
  20282. uniq confdefs.h |
  20283. sed -n '
  20284. t rset
  20285. :rset
  20286. s/^[ ]*#[ ]*define[ ][ ]*//
  20287. t ok
  20288. d
  20289. :ok
  20290. s/[\\&,]/\\&/g
  20291. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20292. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20293. ' >>conftest.defines
  20294. # Remove the space that was appended to ease matching.
  20295. # Then replace #undef with comments. This is necessary, for
  20296. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20297. # on some systems where configure will not decide to define it.
  20298. # (The regexp can be short, since the line contains either #define or #undef.)
  20299. echo 's/ $//
  20300. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20301. # Break up conftest.defines:
  20302. ac_max_sed_lines=50
  20303. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20304. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20305. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20306. # et cetera.
  20307. ac_in='$ac_file_inputs'
  20308. ac_out='"$tmp/out1"'
  20309. ac_nxt='"$tmp/out2"'
  20310. while :
  20311. do
  20312. # Write a here document:
  20313. cat >>$CONFIG_STATUS <<_ACEOF
  20314. # First, check the format of the line:
  20315. cat >"\$tmp/defines.sed" <<\\CEOF
  20316. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20317. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20318. b
  20319. :def
  20320. _ACEOF
  20321. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20322. echo 'CEOF
  20323. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20324. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20325. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20326. grep . conftest.tail >/dev/null || break
  20327. rm -f conftest.defines
  20328. mv conftest.tail conftest.defines
  20329. done
  20330. rm -f conftest.defines conftest.tail
  20331. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20332. cat >>$CONFIG_STATUS <<\_ACEOF
  20333. if test x"$ac_file" != x-; then
  20334. echo "/* $configure_input */" >"$tmp/config.h"
  20335. cat "$ac_result" >>"$tmp/config.h"
  20336. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20337. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20338. echo "$as_me: $ac_file is unchanged" >&6;}
  20339. else
  20340. rm -f $ac_file
  20341. mv "$tmp/config.h" $ac_file
  20342. fi
  20343. else
  20344. echo "/* $configure_input */"
  20345. cat "$ac_result"
  20346. fi
  20347. rm -f "$tmp/out12"
  20348. # Compute $ac_file's index in $config_headers.
  20349. _am_arg=$ac_file
  20350. _am_stamp_count=1
  20351. for _am_header in $config_headers :; do
  20352. case $_am_header in
  20353. $_am_arg | $_am_arg:* )
  20354. break ;;
  20355. * )
  20356. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20357. esac
  20358. done
  20359. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20360. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20361. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20362. X"$_am_arg" : 'X\(//\)$' \| \
  20363. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20364. echo X"$_am_arg" |
  20365. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20366. s//\1/
  20367. q
  20368. }
  20369. /^X\(\/\/\)[^/].*/{
  20370. s//\1/
  20371. q
  20372. }
  20373. /^X\(\/\/\)$/{
  20374. s//\1/
  20375. q
  20376. }
  20377. /^X\(\/\).*/{
  20378. s//\1/
  20379. q
  20380. }
  20381. s/.*/./; q'`/stamp-h$_am_stamp_count
  20382. ;;
  20383. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20384. echo "$as_me: executing $ac_file commands" >&6;}
  20385. ;;
  20386. esac
  20387. case $ac_file$ac_mode in
  20388. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20389. # Strip MF so we end up with the name of the file.
  20390. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20391. # Check whether this is an Automake generated Makefile or not.
  20392. # We used to match only the files named `Makefile.in', but
  20393. # some people rename them; so instead we look at the file content.
  20394. # Grep'ing the first line is not enough: some people post-process
  20395. # each Makefile.in and add a new line on top of each file to say so.
  20396. # Grep'ing the whole file is not good either: AIX grep has a line
  20397. # limit of 2048, but all sed's we know have understand at least 4000.
  20398. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20399. dirpart=`$as_dirname -- "$mf" ||
  20400. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20401. X"$mf" : 'X\(//\)[^/]' \| \
  20402. X"$mf" : 'X\(//\)$' \| \
  20403. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20404. echo X"$mf" |
  20405. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20406. s//\1/
  20407. q
  20408. }
  20409. /^X\(\/\/\)[^/].*/{
  20410. s//\1/
  20411. q
  20412. }
  20413. /^X\(\/\/\)$/{
  20414. s//\1/
  20415. q
  20416. }
  20417. /^X\(\/\).*/{
  20418. s//\1/
  20419. q
  20420. }
  20421. s/.*/./; q'`
  20422. else
  20423. continue
  20424. fi
  20425. # Extract the definition of DEPDIR, am__include, and am__quote
  20426. # from the Makefile without running `make'.
  20427. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20428. test -z "$DEPDIR" && continue
  20429. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20430. test -z "am__include" && continue
  20431. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20432. # When using ansi2knr, U may be empty or an underscore; expand it
  20433. U=`sed -n 's/^U = //p' < "$mf"`
  20434. # Find all dependency output files, they are included files with
  20435. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20436. # simplest approach to changing $(DEPDIR) to its actual value in the
  20437. # expansion.
  20438. for file in `sed -n "
  20439. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20440. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20441. # Make sure the directory exists.
  20442. test -f "$dirpart/$file" && continue
  20443. fdir=`$as_dirname -- "$file" ||
  20444. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20445. X"$file" : 'X\(//\)[^/]' \| \
  20446. X"$file" : 'X\(//\)$' \| \
  20447. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20448. echo X"$file" |
  20449. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20450. s//\1/
  20451. q
  20452. }
  20453. /^X\(\/\/\)[^/].*/{
  20454. s//\1/
  20455. q
  20456. }
  20457. /^X\(\/\/\)$/{
  20458. s//\1/
  20459. q
  20460. }
  20461. /^X\(\/\).*/{
  20462. s//\1/
  20463. q
  20464. }
  20465. s/.*/./; q'`
  20466. { as_dir=$dirpart/$fdir
  20467. case $as_dir in #(
  20468. -*) as_dir=./$as_dir;;
  20469. esac
  20470. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20471. as_dirs=
  20472. while :; do
  20473. case $as_dir in #(
  20474. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20475. *) as_qdir=$as_dir;;
  20476. esac
  20477. as_dirs="'$as_qdir' $as_dirs"
  20478. as_dir=`$as_dirname -- "$as_dir" ||
  20479. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20480. X"$as_dir" : 'X\(//\)[^/]' \| \
  20481. X"$as_dir" : 'X\(//\)$' \| \
  20482. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20483. echo X"$as_dir" |
  20484. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20485. s//\1/
  20486. q
  20487. }
  20488. /^X\(\/\/\)[^/].*/{
  20489. s//\1/
  20490. q
  20491. }
  20492. /^X\(\/\/\)$/{
  20493. s//\1/
  20494. q
  20495. }
  20496. /^X\(\/\).*/{
  20497. s//\1/
  20498. q
  20499. }
  20500. s/.*/./; q'`
  20501. test -d "$as_dir" && break
  20502. done
  20503. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20504. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20505. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20506. { (exit 1); exit 1; }; }; }
  20507. # echo "creating $dirpart/$file"
  20508. echo '# dummy' > "$dirpart/$file"
  20509. done
  20510. done
  20511. ;;
  20512. "po-directories":C)
  20513. for ac_file in $CONFIG_FILES; do
  20514. # Support "outfile[:infile[:infile...]]"
  20515. case "$ac_file" in
  20516. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20517. esac
  20518. # PO directories have a Makefile.in generated from Makefile.in.in.
  20519. case "$ac_file" in */Makefile.in)
  20520. # Adjust a relative srcdir.
  20521. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20522. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20523. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20524. # In autoconf-2.13 it is called $ac_given_srcdir.
  20525. # In autoconf-2.50 it is called $srcdir.
  20526. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20527. case "$ac_given_srcdir" in
  20528. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20529. /*) top_srcdir="$ac_given_srcdir" ;;
  20530. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20531. esac
  20532. # Treat a directory as a PO directory if and only if it has a
  20533. # POTFILES.in file. This allows packages to have multiple PO
  20534. # directories under different names or in different locations.
  20535. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20536. rm -f "$ac_dir/POTFILES"
  20537. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20538. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20539. POMAKEFILEDEPS="POTFILES.in"
  20540. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20541. # on $ac_dir but don't depend on user-specified configuration
  20542. # parameters.
  20543. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20544. # The LINGUAS file contains the set of available languages.
  20545. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20546. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20547. fi
  20548. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20549. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20550. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20551. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20552. else
  20553. # The set of available languages was given in configure.in.
  20554. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20555. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20556. fi
  20557. # Compute POFILES
  20558. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20559. # Compute UPDATEPOFILES
  20560. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20561. # Compute DUMMYPOFILES
  20562. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20563. # Compute GMOFILES
  20564. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20565. case "$ac_given_srcdir" in
  20566. .) srcdirpre= ;;
  20567. *) srcdirpre='$(srcdir)/' ;;
  20568. esac
  20569. POFILES=
  20570. UPDATEPOFILES=
  20571. DUMMYPOFILES=
  20572. GMOFILES=
  20573. for lang in $ALL_LINGUAS; do
  20574. POFILES="$POFILES $srcdirpre$lang.po"
  20575. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20576. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20577. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20578. done
  20579. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20580. # environment variable.
  20581. INST_LINGUAS=
  20582. if test -n "$ALL_LINGUAS"; then
  20583. for presentlang in $ALL_LINGUAS; do
  20584. useit=no
  20585. if test "%UNSET%" != "$LINGUAS"; then
  20586. desiredlanguages="$LINGUAS"
  20587. else
  20588. desiredlanguages="$ALL_LINGUAS"
  20589. fi
  20590. for desiredlang in $desiredlanguages; do
  20591. # Use the presentlang catalog if desiredlang is
  20592. # a. equal to presentlang, or
  20593. # b. a variant of presentlang (because in this case,
  20594. # presentlang can be used as a fallback for messages
  20595. # which are not translated in the desiredlang catalog).
  20596. case "$desiredlang" in
  20597. "$presentlang"*) useit=yes;;
  20598. esac
  20599. done
  20600. if test $useit = yes; then
  20601. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20602. fi
  20603. done
  20604. fi
  20605. CATALOGS=
  20606. if test -n "$INST_LINGUAS"; then
  20607. for lang in $INST_LINGUAS; do
  20608. CATALOGS="$CATALOGS $lang.gmo"
  20609. done
  20610. fi
  20611. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20612. 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"
  20613. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20614. if test -f "$f"; then
  20615. case "$f" in
  20616. *.orig | *.bak | *~) ;;
  20617. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20618. esac
  20619. fi
  20620. done
  20621. fi
  20622. ;;
  20623. esac
  20624. done ;;
  20625. esac
  20626. done # for ac_tag
  20627. { (exit 0); exit 0; }
  20628. _ACEOF
  20629. chmod +x $CONFIG_STATUS
  20630. ac_clean_files=$ac_clean_files_save
  20631. # configure is writing to config.log, and then calls config.status.
  20632. # config.status does its own redirection, appending to config.log.
  20633. # Unfortunately, on DOS this fails, as config.log is still kept open
  20634. # by configure, so config.status won't be able to write to it; its
  20635. # output is simply discarded. So we exec the FD to /dev/null,
  20636. # effectively closing config.log, so it can be properly (re)opened and
  20637. # appended to by config.status. When coming back to configure, we
  20638. # need to make the FD available again.
  20639. if test "$no_create" != yes; then
  20640. ac_cs_success=:
  20641. ac_config_status_args=
  20642. test "$silent" = yes &&
  20643. ac_config_status_args="$ac_config_status_args --quiet"
  20644. exec 5>/dev/null
  20645. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20646. exec 5>>config.log
  20647. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20648. # would make configure fail if this is the last instruction.
  20649. $ac_cs_success || { (exit 1); exit 1; }
  20650. fi
  20651. echo " "
  20652. echo "Build: $build"
  20653. echo "Target: $target"
  20654. echo "Install prefix: $prefix"
  20655. echo "CFLAGS: $CFLAGS"
  20656. echo "CPPFLAGS: $CPPFLAGS"
  20657. echo "LDFLAGS: $LDFLAGS"
  20658. echo "LIBS: $LIBS"
  20659. echo "GnuTLS: $have_libgnutls"
  20660. echo "OpenSSL: $have_openssl"
  20661. echo "LibXML2: $have_libxml2"
  20662. echo "LibExpat: $have_libexpat"
  20663. echo "LibAres: $have_libares"
  20664. echo "LibCares: $have_libcares"
  20665. echo "Libz: $have_libz"
  20666. echo "Bittorrent: $enable_bittorrent"
  20667. echo "Metalink: $enable_metalink"