configure 653 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.15.2.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.15.2'
  496. PACKAGE_STRING='aria2c 0.15.2'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. 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.2 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.2:";;
  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.2
  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.2, 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.2'
  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=$enableval
  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=$enableval
  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=$enableval
  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 for ares_init in -lcares" >&5
  6041. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6042. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6043. echo $ECHO_N "(cached) $ECHO_C" >&6
  6044. else
  6045. ac_check_lib_save_LIBS=$LIBS
  6046. LIBS="-lcares -lrt $LIBS"
  6047. cat >conftest.$ac_ext <<_ACEOF
  6048. /* confdefs.h. */
  6049. _ACEOF
  6050. cat confdefs.h >>conftest.$ac_ext
  6051. cat >>conftest.$ac_ext <<_ACEOF
  6052. /* end confdefs.h. */
  6053. /* Override any GCC internal prototype to avoid an error.
  6054. Use char because int might match the return type of a GCC
  6055. builtin and then its argument prototype would still apply. */
  6056. #ifdef __cplusplus
  6057. extern "C"
  6058. #endif
  6059. char ares_init ();
  6060. int
  6061. main ()
  6062. {
  6063. return ares_init ();
  6064. ;
  6065. return 0;
  6066. }
  6067. _ACEOF
  6068. rm -f conftest.$ac_objext conftest$ac_exeext
  6069. if { (ac_try="$ac_link"
  6070. case "(($ac_try" in
  6071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6072. *) ac_try_echo=$ac_try;;
  6073. esac
  6074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6075. (eval "$ac_link") 2>conftest.er1
  6076. ac_status=$?
  6077. grep -v '^ *+' conftest.er1 >conftest.err
  6078. rm -f conftest.er1
  6079. cat conftest.err >&5
  6080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6081. (exit $ac_status); } && {
  6082. test -z "$ac_cxx_werror_flag" ||
  6083. test ! -s conftest.err
  6084. } && test -s conftest$ac_exeext &&
  6085. $as_test_x conftest$ac_exeext; then
  6086. ac_cv_lib_cares_ares_init=yes
  6087. else
  6088. echo "$as_me: failed program was:" >&5
  6089. sed 's/^/| /' conftest.$ac_ext >&5
  6090. ac_cv_lib_cares_ares_init=no
  6091. fi
  6092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6093. conftest$ac_exeext conftest.$ac_ext
  6094. LIBS=$ac_check_lib_save_LIBS
  6095. fi
  6096. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6097. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6098. if test $ac_cv_lib_cares_ares_init = yes; then
  6099. have_libcares=yes need_librt=yes
  6100. fi
  6101. fi
  6102. if test "x$have_libcares" = "xyes"; then
  6103. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6104. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6105. cat >conftest.$ac_ext <<_ACEOF
  6106. /* confdefs.h. */
  6107. _ACEOF
  6108. cat confdefs.h >>conftest.$ac_ext
  6109. cat >>conftest.$ac_ext <<_ACEOF
  6110. /* end confdefs.h. */
  6111. #include <ares.h>
  6112. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6113. int
  6114. main ()
  6115. {
  6116. ares_channel channel;
  6117. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6118. ;
  6119. return 0;
  6120. }
  6121. _ACEOF
  6122. rm -f conftest.$ac_objext
  6123. if { (ac_try="$ac_compile"
  6124. case "(($ac_try" in
  6125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6126. *) ac_try_echo=$ac_try;;
  6127. esac
  6128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6129. (eval "$ac_compile") 2>conftest.er1
  6130. ac_status=$?
  6131. grep -v '^ *+' conftest.er1 >conftest.err
  6132. rm -f conftest.er1
  6133. cat conftest.err >&5
  6134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6135. (exit $ac_status); } && {
  6136. test -z "$ac_cxx_werror_flag" ||
  6137. test ! -s conftest.err
  6138. } && test -s conftest.$ac_objext; then
  6139. have_libcares1_5=yes
  6140. else
  6141. echo "$as_me: failed program was:" >&5
  6142. sed 's/^/| /' conftest.$ac_ext >&5
  6143. have_libcares1_5=no
  6144. fi
  6145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6146. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6147. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6148. if test "x$have_libcares1_5" = "xyes"; then
  6149. cat >>confdefs.h <<\_ACEOF
  6150. #define HAVE_LIBCARES1_5 1
  6151. _ACEOF
  6152. fi
  6153. cat >>confdefs.h <<\_ACEOF
  6154. #define HAVE_LIBCARES 1
  6155. _ACEOF
  6156. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6157. if test "x$need_librt" = "xyes"; then
  6158. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6159. fi
  6160. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6161. fi
  6162. LIBS=$LIBS_save
  6163. CPPFLAGS=$CPPFLAGS_save
  6164. fi
  6165. if test "x$have_libcares" = "x"; then
  6166. if test "x$with_libares" = "xyes"; then
  6167. # Check whether --with-libares-prefix was given.
  6168. if test "${with_libares_prefix+set}" = set; then
  6169. withval=$with_libares_prefix; libares_prefix=$withval
  6170. else
  6171. libares_prefix=""
  6172. fi
  6173. if test "x$libares_prefix" = "x"; then
  6174. libares_prefix="/usr"
  6175. fi
  6176. libares_prefix_lib=$libares_prefix/lib
  6177. libares_prefix_include=$libares_prefix/include
  6178. LIBS_save=$LIBS
  6179. CPPFLAGS_save=$CPPFLAGS
  6180. LIBS="-L$libares_prefix_lib $LIBS"
  6181. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6182. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6183. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6184. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6185. echo $ECHO_N "(cached) $ECHO_C" >&6
  6186. else
  6187. ac_check_lib_save_LIBS=$LIBS
  6188. LIBS="-lares $LIBS"
  6189. cat >conftest.$ac_ext <<_ACEOF
  6190. /* confdefs.h. */
  6191. _ACEOF
  6192. cat confdefs.h >>conftest.$ac_ext
  6193. cat >>conftest.$ac_ext <<_ACEOF
  6194. /* end confdefs.h. */
  6195. /* Override any GCC internal prototype to avoid an error.
  6196. Use char because int might match the return type of a GCC
  6197. builtin and then its argument prototype would still apply. */
  6198. #ifdef __cplusplus
  6199. extern "C"
  6200. #endif
  6201. char ares_init ();
  6202. int
  6203. main ()
  6204. {
  6205. return ares_init ();
  6206. ;
  6207. return 0;
  6208. }
  6209. _ACEOF
  6210. rm -f conftest.$ac_objext conftest$ac_exeext
  6211. if { (ac_try="$ac_link"
  6212. case "(($ac_try" in
  6213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6214. *) ac_try_echo=$ac_try;;
  6215. esac
  6216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6217. (eval "$ac_link") 2>conftest.er1
  6218. ac_status=$?
  6219. grep -v '^ *+' conftest.er1 >conftest.err
  6220. rm -f conftest.er1
  6221. cat conftest.err >&5
  6222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. (exit $ac_status); } && {
  6224. test -z "$ac_cxx_werror_flag" ||
  6225. test ! -s conftest.err
  6226. } && test -s conftest$ac_exeext &&
  6227. $as_test_x conftest$ac_exeext; then
  6228. ac_cv_lib_ares_ares_init=yes
  6229. else
  6230. echo "$as_me: failed program was:" >&5
  6231. sed 's/^/| /' conftest.$ac_ext >&5
  6232. ac_cv_lib_ares_ares_init=no
  6233. fi
  6234. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6235. conftest$ac_exeext conftest.$ac_ext
  6236. LIBS=$ac_check_lib_save_LIBS
  6237. fi
  6238. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6239. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6240. if test $ac_cv_lib_ares_ares_init = yes; then
  6241. have_libares=yes
  6242. fi
  6243. if test "x$have_libares" = "xyes"; then
  6244. cat >>confdefs.h <<\_ACEOF
  6245. #define HAVE_LIBARES 1
  6246. _ACEOF
  6247. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6248. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6249. fi
  6250. LIBS=$LIBS_save
  6251. CPPFLAGS=$CPPFLAGS_save
  6252. fi
  6253. fi
  6254. # Check availability of libz
  6255. if test "x$with_libz" = "xyes"; then
  6256. # Check whether --with-libz-prefix was given.
  6257. if test "${with_libz_prefix+set}" = set; then
  6258. withval=$with_libz_prefix; libz_prefix=$withval
  6259. else
  6260. libz_prefix=""
  6261. fi
  6262. if test "x$libz_prefix" = "x"; then
  6263. libz_prefix="/usr"
  6264. fi
  6265. libz_prefix_lib=$libz_prefix/lib
  6266. libz_prefix_include=$libz_prefix/include
  6267. LIBS_save=$LIBS
  6268. CPPFLAGS_save=$CPPFLAGS
  6269. LIBS="-L$libz_prefix_lib $LIBS"
  6270. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6271. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6272. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6273. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6274. echo $ECHO_N "(cached) $ECHO_C" >&6
  6275. else
  6276. ac_check_lib_save_LIBS=$LIBS
  6277. LIBS="-lz $LIBS"
  6278. cat >conftest.$ac_ext <<_ACEOF
  6279. /* confdefs.h. */
  6280. _ACEOF
  6281. cat confdefs.h >>conftest.$ac_ext
  6282. cat >>conftest.$ac_ext <<_ACEOF
  6283. /* end confdefs.h. */
  6284. /* Override any GCC internal prototype to avoid an error.
  6285. Use char because int might match the return type of a GCC
  6286. builtin and then its argument prototype would still apply. */
  6287. #ifdef __cplusplus
  6288. extern "C"
  6289. #endif
  6290. char zlibVersion ();
  6291. int
  6292. main ()
  6293. {
  6294. return zlibVersion ();
  6295. ;
  6296. return 0;
  6297. }
  6298. _ACEOF
  6299. rm -f conftest.$ac_objext conftest$ac_exeext
  6300. if { (ac_try="$ac_link"
  6301. case "(($ac_try" in
  6302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6303. *) ac_try_echo=$ac_try;;
  6304. esac
  6305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6306. (eval "$ac_link") 2>conftest.er1
  6307. ac_status=$?
  6308. grep -v '^ *+' conftest.er1 >conftest.err
  6309. rm -f conftest.er1
  6310. cat conftest.err >&5
  6311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6312. (exit $ac_status); } && {
  6313. test -z "$ac_cxx_werror_flag" ||
  6314. test ! -s conftest.err
  6315. } && test -s conftest$ac_exeext &&
  6316. $as_test_x conftest$ac_exeext; then
  6317. ac_cv_lib_z_zlibVersion=yes
  6318. else
  6319. echo "$as_me: failed program was:" >&5
  6320. sed 's/^/| /' conftest.$ac_ext >&5
  6321. ac_cv_lib_z_zlibVersion=no
  6322. fi
  6323. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6324. conftest$ac_exeext conftest.$ac_ext
  6325. LIBS=$ac_check_lib_save_LIBS
  6326. fi
  6327. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6328. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6329. if test $ac_cv_lib_z_zlibVersion = yes; then
  6330. have_libz=yes
  6331. fi
  6332. if test "x$have_libz" = "xyes"; then
  6333. cat >>confdefs.h <<\_ACEOF
  6334. #define HAVE_LIBZ 1
  6335. _ACEOF
  6336. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6337. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6338. fi
  6339. LIBS=$LIBS_save
  6340. CPPFLAGS=$CPPFLAGS_save
  6341. fi
  6342. # Define variables based on the result of the checks for libraries.
  6343. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6344. cat >>confdefs.h <<\_ACEOF
  6345. #define ENABLE_SSL 1
  6346. _ACEOF
  6347. fi
  6348. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6349. cat >>confdefs.h <<\_ACEOF
  6350. #define ENABLE_MESSAGE_DIGEST 1
  6351. _ACEOF
  6352. if true; then
  6353. ENABLE_MESSAGE_DIGEST_TRUE=
  6354. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6355. else
  6356. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6357. ENABLE_MESSAGE_DIGEST_FALSE=
  6358. fi
  6359. enable_message_digest=yes
  6360. else
  6361. if false; then
  6362. ENABLE_MESSAGE_DIGEST_TRUE=
  6363. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6364. else
  6365. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6366. ENABLE_MESSAGE_DIGEST_FALSE=
  6367. fi
  6368. fi
  6369. if test "x$enable_bittorrent" = "xyes" &&
  6370. test "x$enable_message_digest" = "xyes"; then
  6371. cat >>confdefs.h <<\_ACEOF
  6372. #define ENABLE_BITTORRENT 1
  6373. _ACEOF
  6374. if true; then
  6375. ENABLE_BITTORRENT_TRUE=
  6376. ENABLE_BITTORRENT_FALSE='#'
  6377. else
  6378. ENABLE_BITTORRENT_TRUE='#'
  6379. ENABLE_BITTORRENT_FALSE=
  6380. fi
  6381. else
  6382. enable_bittorrent=no
  6383. if false; then
  6384. ENABLE_BITTORRENT_TRUE=
  6385. ENABLE_BITTORRENT_FALSE='#'
  6386. else
  6387. ENABLE_BITTORRENT_TRUE='#'
  6388. ENABLE_BITTORRENT_FALSE=
  6389. fi
  6390. fi
  6391. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6392. test "x$enable_metalink" = "xyes"; then
  6393. cat >>confdefs.h <<\_ACEOF
  6394. #define ENABLE_METALINK 1
  6395. _ACEOF
  6396. if true; then
  6397. ENABLE_METALINK_TRUE=
  6398. ENABLE_METALINK_FALSE='#'
  6399. else
  6400. ENABLE_METALINK_TRUE='#'
  6401. ENABLE_METALINK_FALSE=
  6402. fi
  6403. else
  6404. enable_metalink=no
  6405. if false; then
  6406. ENABLE_METALINK_TRUE=
  6407. ENABLE_METALINK_FALSE='#'
  6408. else
  6409. ENABLE_METALINK_TRUE='#'
  6410. ENABLE_METALINK_FALSE=
  6411. fi
  6412. fi
  6413. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6414. ENABLE_LIBXML2_TRUE=
  6415. ENABLE_LIBXML2_FALSE='#'
  6416. else
  6417. ENABLE_LIBXML2_TRUE='#'
  6418. ENABLE_LIBXML2_FALSE=
  6419. fi
  6420. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6421. ENABLE_LIBEXPAT_TRUE=
  6422. ENABLE_LIBEXPAT_FALSE='#'
  6423. else
  6424. ENABLE_LIBEXPAT_TRUE='#'
  6425. ENABLE_LIBEXPAT_FALSE=
  6426. fi
  6427. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6428. cat >>confdefs.h <<\_ACEOF
  6429. #define ENABLE_ASYNC_DNS 1
  6430. _ACEOF
  6431. if true; then
  6432. ENABLE_ASYNC_DNS_TRUE=
  6433. ENABLE_ASYNC_DNS_FALSE='#'
  6434. else
  6435. ENABLE_ASYNC_DNS_TRUE='#'
  6436. ENABLE_ASYNC_DNS_FALSE=
  6437. fi
  6438. else
  6439. if false; then
  6440. ENABLE_ASYNC_DNS_TRUE=
  6441. ENABLE_ASYNC_DNS_FALSE='#'
  6442. else
  6443. ENABLE_ASYNC_DNS_TRUE='#'
  6444. ENABLE_ASYNC_DNS_FALSE=
  6445. fi
  6446. fi
  6447. # Set conditional for libz
  6448. if test "x$have_libz" = "xyes"; then
  6449. HAVE_LIBZ_TRUE=
  6450. HAVE_LIBZ_FALSE='#'
  6451. else
  6452. HAVE_LIBZ_TRUE='#'
  6453. HAVE_LIBZ_FALSE=
  6454. fi
  6455. # Checks for header files.
  6456. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6457. # for constant arguments. Useless!
  6458. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6459. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6460. if test "${ac_cv_working_alloca_h+set}" = set; then
  6461. echo $ECHO_N "(cached) $ECHO_C" >&6
  6462. else
  6463. cat >conftest.$ac_ext <<_ACEOF
  6464. /* confdefs.h. */
  6465. _ACEOF
  6466. cat confdefs.h >>conftest.$ac_ext
  6467. cat >>conftest.$ac_ext <<_ACEOF
  6468. /* end confdefs.h. */
  6469. #include <alloca.h>
  6470. int
  6471. main ()
  6472. {
  6473. char *p = (char *) alloca (2 * sizeof (int));
  6474. if (p) return 0;
  6475. ;
  6476. return 0;
  6477. }
  6478. _ACEOF
  6479. rm -f conftest.$ac_objext conftest$ac_exeext
  6480. if { (ac_try="$ac_link"
  6481. case "(($ac_try" in
  6482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6483. *) ac_try_echo=$ac_try;;
  6484. esac
  6485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6486. (eval "$ac_link") 2>conftest.er1
  6487. ac_status=$?
  6488. grep -v '^ *+' conftest.er1 >conftest.err
  6489. rm -f conftest.er1
  6490. cat conftest.err >&5
  6491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6492. (exit $ac_status); } && {
  6493. test -z "$ac_cxx_werror_flag" ||
  6494. test ! -s conftest.err
  6495. } && test -s conftest$ac_exeext &&
  6496. $as_test_x conftest$ac_exeext; then
  6497. ac_cv_working_alloca_h=yes
  6498. else
  6499. echo "$as_me: failed program was:" >&5
  6500. sed 's/^/| /' conftest.$ac_ext >&5
  6501. ac_cv_working_alloca_h=no
  6502. fi
  6503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6504. conftest$ac_exeext conftest.$ac_ext
  6505. fi
  6506. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6507. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6508. if test $ac_cv_working_alloca_h = yes; then
  6509. cat >>confdefs.h <<\_ACEOF
  6510. #define HAVE_ALLOCA_H 1
  6511. _ACEOF
  6512. fi
  6513. { echo "$as_me:$LINENO: checking for alloca" >&5
  6514. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6515. if test "${ac_cv_func_alloca_works+set}" = set; then
  6516. echo $ECHO_N "(cached) $ECHO_C" >&6
  6517. else
  6518. cat >conftest.$ac_ext <<_ACEOF
  6519. /* confdefs.h. */
  6520. _ACEOF
  6521. cat confdefs.h >>conftest.$ac_ext
  6522. cat >>conftest.$ac_ext <<_ACEOF
  6523. /* end confdefs.h. */
  6524. #ifdef __GNUC__
  6525. # define alloca __builtin_alloca
  6526. #else
  6527. # ifdef _MSC_VER
  6528. # include <malloc.h>
  6529. # define alloca _alloca
  6530. # else
  6531. # ifdef HAVE_ALLOCA_H
  6532. # include <alloca.h>
  6533. # else
  6534. # ifdef _AIX
  6535. #pragma alloca
  6536. # else
  6537. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6538. char *alloca ();
  6539. # endif
  6540. # endif
  6541. # endif
  6542. # endif
  6543. #endif
  6544. int
  6545. main ()
  6546. {
  6547. char *p = (char *) alloca (1);
  6548. if (p) return 0;
  6549. ;
  6550. return 0;
  6551. }
  6552. _ACEOF
  6553. rm -f conftest.$ac_objext conftest$ac_exeext
  6554. if { (ac_try="$ac_link"
  6555. case "(($ac_try" in
  6556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6557. *) ac_try_echo=$ac_try;;
  6558. esac
  6559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6560. (eval "$ac_link") 2>conftest.er1
  6561. ac_status=$?
  6562. grep -v '^ *+' conftest.er1 >conftest.err
  6563. rm -f conftest.er1
  6564. cat conftest.err >&5
  6565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6566. (exit $ac_status); } && {
  6567. test -z "$ac_cxx_werror_flag" ||
  6568. test ! -s conftest.err
  6569. } && test -s conftest$ac_exeext &&
  6570. $as_test_x conftest$ac_exeext; then
  6571. ac_cv_func_alloca_works=yes
  6572. else
  6573. echo "$as_me: failed program was:" >&5
  6574. sed 's/^/| /' conftest.$ac_ext >&5
  6575. ac_cv_func_alloca_works=no
  6576. fi
  6577. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6578. conftest$ac_exeext conftest.$ac_ext
  6579. fi
  6580. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6581. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6582. if test $ac_cv_func_alloca_works = yes; then
  6583. cat >>confdefs.h <<\_ACEOF
  6584. #define HAVE_ALLOCA 1
  6585. _ACEOF
  6586. else
  6587. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6588. # that cause trouble. Some versions do not even contain alloca or
  6589. # contain a buggy version. If you still want to use their alloca,
  6590. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6591. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6592. cat >>confdefs.h <<\_ACEOF
  6593. #define C_ALLOCA 1
  6594. _ACEOF
  6595. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6596. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6597. if test "${ac_cv_os_cray+set}" = set; then
  6598. echo $ECHO_N "(cached) $ECHO_C" >&6
  6599. else
  6600. cat >conftest.$ac_ext <<_ACEOF
  6601. /* confdefs.h. */
  6602. _ACEOF
  6603. cat confdefs.h >>conftest.$ac_ext
  6604. cat >>conftest.$ac_ext <<_ACEOF
  6605. /* end confdefs.h. */
  6606. #if defined CRAY && ! defined CRAY2
  6607. webecray
  6608. #else
  6609. wenotbecray
  6610. #endif
  6611. _ACEOF
  6612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6613. $EGREP "webecray" >/dev/null 2>&1; then
  6614. ac_cv_os_cray=yes
  6615. else
  6616. ac_cv_os_cray=no
  6617. fi
  6618. rm -f conftest*
  6619. fi
  6620. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6621. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6622. if test $ac_cv_os_cray = yes; then
  6623. for ac_func in _getb67 GETB67 getb67; do
  6624. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6625. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6626. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6627. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6628. echo $ECHO_N "(cached) $ECHO_C" >&6
  6629. else
  6630. cat >conftest.$ac_ext <<_ACEOF
  6631. /* confdefs.h. */
  6632. _ACEOF
  6633. cat confdefs.h >>conftest.$ac_ext
  6634. cat >>conftest.$ac_ext <<_ACEOF
  6635. /* end confdefs.h. */
  6636. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6638. #define $ac_func innocuous_$ac_func
  6639. /* System header to define __stub macros and hopefully few prototypes,
  6640. which can conflict with char $ac_func (); below.
  6641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6642. <limits.h> exists even on freestanding compilers. */
  6643. #ifdef __STDC__
  6644. # include <limits.h>
  6645. #else
  6646. # include <assert.h>
  6647. #endif
  6648. #undef $ac_func
  6649. /* Override any GCC internal prototype to avoid an error.
  6650. Use char because int might match the return type of a GCC
  6651. builtin and then its argument prototype would still apply. */
  6652. #ifdef __cplusplus
  6653. extern "C"
  6654. #endif
  6655. char $ac_func ();
  6656. /* The GNU C library defines this for functions which it implements
  6657. to always fail with ENOSYS. Some functions are actually named
  6658. something starting with __ and the normal name is an alias. */
  6659. #if defined __stub_$ac_func || defined __stub___$ac_func
  6660. choke me
  6661. #endif
  6662. int
  6663. main ()
  6664. {
  6665. return $ac_func ();
  6666. ;
  6667. return 0;
  6668. }
  6669. _ACEOF
  6670. rm -f conftest.$ac_objext conftest$ac_exeext
  6671. if { (ac_try="$ac_link"
  6672. case "(($ac_try" in
  6673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6674. *) ac_try_echo=$ac_try;;
  6675. esac
  6676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6677. (eval "$ac_link") 2>conftest.er1
  6678. ac_status=$?
  6679. grep -v '^ *+' conftest.er1 >conftest.err
  6680. rm -f conftest.er1
  6681. cat conftest.err >&5
  6682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6683. (exit $ac_status); } && {
  6684. test -z "$ac_cxx_werror_flag" ||
  6685. test ! -s conftest.err
  6686. } && test -s conftest$ac_exeext &&
  6687. $as_test_x conftest$ac_exeext; then
  6688. eval "$as_ac_var=yes"
  6689. else
  6690. echo "$as_me: failed program was:" >&5
  6691. sed 's/^/| /' conftest.$ac_ext >&5
  6692. eval "$as_ac_var=no"
  6693. fi
  6694. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6695. conftest$ac_exeext conftest.$ac_ext
  6696. fi
  6697. ac_res=`eval echo '${'$as_ac_var'}'`
  6698. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6699. echo "${ECHO_T}$ac_res" >&6; }
  6700. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6701. cat >>confdefs.h <<_ACEOF
  6702. #define CRAY_STACKSEG_END $ac_func
  6703. _ACEOF
  6704. break
  6705. fi
  6706. done
  6707. fi
  6708. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6709. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6710. if test "${ac_cv_c_stack_direction+set}" = set; then
  6711. echo $ECHO_N "(cached) $ECHO_C" >&6
  6712. else
  6713. if test "$cross_compiling" = yes; then
  6714. ac_cv_c_stack_direction=0
  6715. else
  6716. cat >conftest.$ac_ext <<_ACEOF
  6717. /* confdefs.h. */
  6718. _ACEOF
  6719. cat confdefs.h >>conftest.$ac_ext
  6720. cat >>conftest.$ac_ext <<_ACEOF
  6721. /* end confdefs.h. */
  6722. $ac_includes_default
  6723. int
  6724. find_stack_direction ()
  6725. {
  6726. static char *addr = 0;
  6727. auto char dummy;
  6728. if (addr == 0)
  6729. {
  6730. addr = &dummy;
  6731. return find_stack_direction ();
  6732. }
  6733. else
  6734. return (&dummy > addr) ? 1 : -1;
  6735. }
  6736. int
  6737. main ()
  6738. {
  6739. return find_stack_direction () < 0;
  6740. }
  6741. _ACEOF
  6742. rm -f conftest$ac_exeext
  6743. if { (ac_try="$ac_link"
  6744. case "(($ac_try" in
  6745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6746. *) ac_try_echo=$ac_try;;
  6747. esac
  6748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6749. (eval "$ac_link") 2>&5
  6750. ac_status=$?
  6751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6752. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6753. { (case "(($ac_try" in
  6754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6755. *) ac_try_echo=$ac_try;;
  6756. esac
  6757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6758. (eval "$ac_try") 2>&5
  6759. ac_status=$?
  6760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6761. (exit $ac_status); }; }; then
  6762. ac_cv_c_stack_direction=1
  6763. else
  6764. echo "$as_me: program exited with status $ac_status" >&5
  6765. echo "$as_me: failed program was:" >&5
  6766. sed 's/^/| /' conftest.$ac_ext >&5
  6767. ( exit $ac_status )
  6768. ac_cv_c_stack_direction=-1
  6769. fi
  6770. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6771. fi
  6772. fi
  6773. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6774. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6775. cat >>confdefs.h <<_ACEOF
  6776. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6777. _ACEOF
  6778. fi
  6779. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6780. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6781. if test "${ac_cv_header_stdc+set}" = set; then
  6782. echo $ECHO_N "(cached) $ECHO_C" >&6
  6783. else
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. #include <stdlib.h>
  6791. #include <stdarg.h>
  6792. #include <string.h>
  6793. #include <float.h>
  6794. int
  6795. main ()
  6796. {
  6797. ;
  6798. return 0;
  6799. }
  6800. _ACEOF
  6801. rm -f conftest.$ac_objext
  6802. if { (ac_try="$ac_compile"
  6803. case "(($ac_try" in
  6804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6805. *) ac_try_echo=$ac_try;;
  6806. esac
  6807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6808. (eval "$ac_compile") 2>conftest.er1
  6809. ac_status=$?
  6810. grep -v '^ *+' conftest.er1 >conftest.err
  6811. rm -f conftest.er1
  6812. cat conftest.err >&5
  6813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6814. (exit $ac_status); } && {
  6815. test -z "$ac_cxx_werror_flag" ||
  6816. test ! -s conftest.err
  6817. } && test -s conftest.$ac_objext; then
  6818. ac_cv_header_stdc=yes
  6819. else
  6820. echo "$as_me: failed program was:" >&5
  6821. sed 's/^/| /' conftest.$ac_ext >&5
  6822. ac_cv_header_stdc=no
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6825. if test $ac_cv_header_stdc = yes; then
  6826. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6827. cat >conftest.$ac_ext <<_ACEOF
  6828. /* confdefs.h. */
  6829. _ACEOF
  6830. cat confdefs.h >>conftest.$ac_ext
  6831. cat >>conftest.$ac_ext <<_ACEOF
  6832. /* end confdefs.h. */
  6833. #include <string.h>
  6834. _ACEOF
  6835. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6836. $EGREP "memchr" >/dev/null 2>&1; then
  6837. :
  6838. else
  6839. ac_cv_header_stdc=no
  6840. fi
  6841. rm -f conftest*
  6842. fi
  6843. if test $ac_cv_header_stdc = yes; then
  6844. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6845. cat >conftest.$ac_ext <<_ACEOF
  6846. /* confdefs.h. */
  6847. _ACEOF
  6848. cat confdefs.h >>conftest.$ac_ext
  6849. cat >>conftest.$ac_ext <<_ACEOF
  6850. /* end confdefs.h. */
  6851. #include <stdlib.h>
  6852. _ACEOF
  6853. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6854. $EGREP "free" >/dev/null 2>&1; then
  6855. :
  6856. else
  6857. ac_cv_header_stdc=no
  6858. fi
  6859. rm -f conftest*
  6860. fi
  6861. if test $ac_cv_header_stdc = yes; then
  6862. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6863. if test "$cross_compiling" = yes; then
  6864. :
  6865. else
  6866. cat >conftest.$ac_ext <<_ACEOF
  6867. /* confdefs.h. */
  6868. _ACEOF
  6869. cat confdefs.h >>conftest.$ac_ext
  6870. cat >>conftest.$ac_ext <<_ACEOF
  6871. /* end confdefs.h. */
  6872. #include <ctype.h>
  6873. #include <stdlib.h>
  6874. #if ((' ' & 0x0FF) == 0x020)
  6875. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6876. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6877. #else
  6878. # define ISLOWER(c) \
  6879. (('a' <= (c) && (c) <= 'i') \
  6880. || ('j' <= (c) && (c) <= 'r') \
  6881. || ('s' <= (c) && (c) <= 'z'))
  6882. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6883. #endif
  6884. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6885. int
  6886. main ()
  6887. {
  6888. int i;
  6889. for (i = 0; i < 256; i++)
  6890. if (XOR (islower (i), ISLOWER (i))
  6891. || toupper (i) != TOUPPER (i))
  6892. return 2;
  6893. return 0;
  6894. }
  6895. _ACEOF
  6896. rm -f conftest$ac_exeext
  6897. if { (ac_try="$ac_link"
  6898. case "(($ac_try" in
  6899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6900. *) ac_try_echo=$ac_try;;
  6901. esac
  6902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6903. (eval "$ac_link") 2>&5
  6904. ac_status=$?
  6905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6906. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6907. { (case "(($ac_try" in
  6908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6909. *) ac_try_echo=$ac_try;;
  6910. esac
  6911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6912. (eval "$ac_try") 2>&5
  6913. ac_status=$?
  6914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6915. (exit $ac_status); }; }; then
  6916. :
  6917. else
  6918. echo "$as_me: program exited with status $ac_status" >&5
  6919. echo "$as_me: failed program was:" >&5
  6920. sed 's/^/| /' conftest.$ac_ext >&5
  6921. ( exit $ac_status )
  6922. ac_cv_header_stdc=no
  6923. fi
  6924. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6925. fi
  6926. fi
  6927. fi
  6928. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6929. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6930. if test $ac_cv_header_stdc = yes; then
  6931. cat >>confdefs.h <<\_ACEOF
  6932. #define STDC_HEADERS 1
  6933. _ACEOF
  6934. fi
  6935. for ac_header in winsock2.h \
  6936. ws2tcpip.h \
  6937. argz.h \
  6938. arpa/inet.h \
  6939. fcntl.h \
  6940. float.h \
  6941. inttypes.h \
  6942. io.h \
  6943. langinfo.h \
  6944. libintl.h \
  6945. limits.h \
  6946. locale.h \
  6947. malloc.h \
  6948. netdb.h \
  6949. netinet/in.h \
  6950. stddef.h \
  6951. stdint.h \
  6952. stdio_ext.h \
  6953. stdlib.h \
  6954. string.h \
  6955. strings.h \
  6956. sys/ioctl.h \
  6957. sys/param.h \
  6958. sys/socket.h \
  6959. sys/time.h \
  6960. termios.h \
  6961. unistd.h \
  6962. wchar.h
  6963. do
  6964. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6965. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6966. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6967. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6968. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6969. echo $ECHO_N "(cached) $ECHO_C" >&6
  6970. fi
  6971. ac_res=`eval echo '${'$as_ac_Header'}'`
  6972. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6973. echo "${ECHO_T}$ac_res" >&6; }
  6974. else
  6975. # Is the header compilable?
  6976. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6977. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6978. cat >conftest.$ac_ext <<_ACEOF
  6979. /* confdefs.h. */
  6980. _ACEOF
  6981. cat confdefs.h >>conftest.$ac_ext
  6982. cat >>conftest.$ac_ext <<_ACEOF
  6983. /* end confdefs.h. */
  6984. $ac_includes_default
  6985. #include <$ac_header>
  6986. _ACEOF
  6987. rm -f conftest.$ac_objext
  6988. if { (ac_try="$ac_compile"
  6989. case "(($ac_try" in
  6990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6991. *) ac_try_echo=$ac_try;;
  6992. esac
  6993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6994. (eval "$ac_compile") 2>conftest.er1
  6995. ac_status=$?
  6996. grep -v '^ *+' conftest.er1 >conftest.err
  6997. rm -f conftest.er1
  6998. cat conftest.err >&5
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); } && {
  7001. test -z "$ac_cxx_werror_flag" ||
  7002. test ! -s conftest.err
  7003. } && test -s conftest.$ac_objext; then
  7004. ac_header_compiler=yes
  7005. else
  7006. echo "$as_me: failed program was:" >&5
  7007. sed 's/^/| /' conftest.$ac_ext >&5
  7008. ac_header_compiler=no
  7009. fi
  7010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7011. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7012. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7013. # Is the header present?
  7014. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7015. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7016. cat >conftest.$ac_ext <<_ACEOF
  7017. /* confdefs.h. */
  7018. _ACEOF
  7019. cat confdefs.h >>conftest.$ac_ext
  7020. cat >>conftest.$ac_ext <<_ACEOF
  7021. /* end confdefs.h. */
  7022. #include <$ac_header>
  7023. _ACEOF
  7024. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7025. case "(($ac_try" in
  7026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7027. *) ac_try_echo=$ac_try;;
  7028. esac
  7029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7030. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7031. ac_status=$?
  7032. grep -v '^ *+' conftest.er1 >conftest.err
  7033. rm -f conftest.er1
  7034. cat conftest.err >&5
  7035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7036. (exit $ac_status); } >/dev/null && {
  7037. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7038. test ! -s conftest.err
  7039. }; then
  7040. ac_header_preproc=yes
  7041. else
  7042. echo "$as_me: failed program was:" >&5
  7043. sed 's/^/| /' conftest.$ac_ext >&5
  7044. ac_header_preproc=no
  7045. fi
  7046. rm -f conftest.err conftest.$ac_ext
  7047. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7048. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7049. # So? What about this header?
  7050. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7051. yes:no: )
  7052. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7053. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7054. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7055. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7056. ac_header_preproc=yes
  7057. ;;
  7058. no:yes:* )
  7059. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7060. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7061. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7062. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7063. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7064. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7065. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7066. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7067. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7068. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7069. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7070. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7071. ( cat <<\_ASBOX
  7072. ## ----------------------------------------------- ##
  7073. ## Report this to t-tujikawa@users.sourceforge.net ##
  7074. ## ----------------------------------------------- ##
  7075. _ASBOX
  7076. ) | sed "s/^/$as_me: WARNING: /" >&2
  7077. ;;
  7078. esac
  7079. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7080. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7081. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7082. echo $ECHO_N "(cached) $ECHO_C" >&6
  7083. else
  7084. eval "$as_ac_Header=\$ac_header_preproc"
  7085. fi
  7086. ac_res=`eval echo '${'$as_ac_Header'}'`
  7087. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7088. echo "${ECHO_T}$ac_res" >&6; }
  7089. fi
  7090. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7091. cat >>confdefs.h <<_ACEOF
  7092. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7093. _ACEOF
  7094. fi
  7095. done
  7096. # Checks for typedefs, structures, and compiler characteristics.
  7097. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7098. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7099. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7100. echo $ECHO_N "(cached) $ECHO_C" >&6
  7101. else
  7102. cat >conftest.$ac_ext <<_ACEOF
  7103. /* confdefs.h. */
  7104. _ACEOF
  7105. cat confdefs.h >>conftest.$ac_ext
  7106. cat >>conftest.$ac_ext <<_ACEOF
  7107. /* end confdefs.h. */
  7108. #include <stdbool.h>
  7109. #ifndef bool
  7110. "error: bool is not defined"
  7111. #endif
  7112. #ifndef false
  7113. "error: false is not defined"
  7114. #endif
  7115. #if false
  7116. "error: false is not 0"
  7117. #endif
  7118. #ifndef true
  7119. "error: true is not defined"
  7120. #endif
  7121. #if true != 1
  7122. "error: true is not 1"
  7123. #endif
  7124. #ifndef __bool_true_false_are_defined
  7125. "error: __bool_true_false_are_defined is not defined"
  7126. #endif
  7127. struct s { _Bool s: 1; _Bool t; } s;
  7128. char a[true == 1 ? 1 : -1];
  7129. char b[false == 0 ? 1 : -1];
  7130. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7131. char d[(bool) 0.5 == true ? 1 : -1];
  7132. bool e = &s;
  7133. char f[(_Bool) 0.0 == false ? 1 : -1];
  7134. char g[true];
  7135. char h[sizeof (_Bool)];
  7136. char i[sizeof s.t];
  7137. enum { j = false, k = true, l = false * true, m = true * 256 };
  7138. _Bool n[m];
  7139. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7140. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7141. # if defined __xlc__ || defined __GNUC__
  7142. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7143. reported by James Lemley on 2005-10-05; see
  7144. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7145. This test is not quite right, since xlc is allowed to
  7146. reject this program, as the initializer for xlcbug is
  7147. not one of the forms that C requires support for.
  7148. However, doing the test right would require a runtime
  7149. test, and that would make cross-compilation harder.
  7150. Let us hope that IBM fixes the xlc bug, and also adds
  7151. support for this kind of constant expression. In the
  7152. meantime, this test will reject xlc, which is OK, since
  7153. our stdbool.h substitute should suffice. We also test
  7154. this with GCC, where it should work, to detect more
  7155. quickly whether someone messes up the test in the
  7156. future. */
  7157. char digs[] = "0123456789";
  7158. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7159. # endif
  7160. /* Catch a bug in an HP-UX C compiler. See
  7161. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7162. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7163. */
  7164. _Bool q = true;
  7165. _Bool *pq = &q;
  7166. int
  7167. main ()
  7168. {
  7169. *pq |= q;
  7170. *pq |= ! q;
  7171. /* Refer to every declared value, to avoid compiler optimizations. */
  7172. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7173. + !m + !n + !o + !p + !q + !pq);
  7174. ;
  7175. return 0;
  7176. }
  7177. _ACEOF
  7178. rm -f conftest.$ac_objext
  7179. if { (ac_try="$ac_compile"
  7180. case "(($ac_try" in
  7181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7182. *) ac_try_echo=$ac_try;;
  7183. esac
  7184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7185. (eval "$ac_compile") 2>conftest.er1
  7186. ac_status=$?
  7187. grep -v '^ *+' conftest.er1 >conftest.err
  7188. rm -f conftest.er1
  7189. cat conftest.err >&5
  7190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. (exit $ac_status); } && {
  7192. test -z "$ac_cxx_werror_flag" ||
  7193. test ! -s conftest.err
  7194. } && test -s conftest.$ac_objext; then
  7195. ac_cv_header_stdbool_h=yes
  7196. else
  7197. echo "$as_me: failed program was:" >&5
  7198. sed 's/^/| /' conftest.$ac_ext >&5
  7199. ac_cv_header_stdbool_h=no
  7200. fi
  7201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7202. fi
  7203. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7204. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7205. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7206. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7207. if test "${ac_cv_type__Bool+set}" = set; then
  7208. echo $ECHO_N "(cached) $ECHO_C" >&6
  7209. else
  7210. cat >conftest.$ac_ext <<_ACEOF
  7211. /* confdefs.h. */
  7212. _ACEOF
  7213. cat confdefs.h >>conftest.$ac_ext
  7214. cat >>conftest.$ac_ext <<_ACEOF
  7215. /* end confdefs.h. */
  7216. $ac_includes_default
  7217. typedef _Bool ac__type_new_;
  7218. int
  7219. main ()
  7220. {
  7221. if ((ac__type_new_ *) 0)
  7222. return 0;
  7223. if (sizeof (ac__type_new_))
  7224. return 0;
  7225. ;
  7226. return 0;
  7227. }
  7228. _ACEOF
  7229. rm -f conftest.$ac_objext
  7230. if { (ac_try="$ac_compile"
  7231. case "(($ac_try" in
  7232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7233. *) ac_try_echo=$ac_try;;
  7234. esac
  7235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7236. (eval "$ac_compile") 2>conftest.er1
  7237. ac_status=$?
  7238. grep -v '^ *+' conftest.er1 >conftest.err
  7239. rm -f conftest.er1
  7240. cat conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. (exit $ac_status); } && {
  7243. test -z "$ac_cxx_werror_flag" ||
  7244. test ! -s conftest.err
  7245. } && test -s conftest.$ac_objext; then
  7246. ac_cv_type__Bool=yes
  7247. else
  7248. echo "$as_me: failed program was:" >&5
  7249. sed 's/^/| /' conftest.$ac_ext >&5
  7250. ac_cv_type__Bool=no
  7251. fi
  7252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7253. fi
  7254. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7255. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7256. if test $ac_cv_type__Bool = yes; then
  7257. cat >>confdefs.h <<_ACEOF
  7258. #define HAVE__BOOL 1
  7259. _ACEOF
  7260. fi
  7261. if test $ac_cv_header_stdbool_h = yes; then
  7262. cat >>confdefs.h <<\_ACEOF
  7263. #define HAVE_STDBOOL_H 1
  7264. _ACEOF
  7265. fi
  7266. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7267. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7268. if test "${ac_cv_c_const+set}" = set; then
  7269. echo $ECHO_N "(cached) $ECHO_C" >&6
  7270. else
  7271. cat >conftest.$ac_ext <<_ACEOF
  7272. /* confdefs.h. */
  7273. _ACEOF
  7274. cat confdefs.h >>conftest.$ac_ext
  7275. cat >>conftest.$ac_ext <<_ACEOF
  7276. /* end confdefs.h. */
  7277. int
  7278. main ()
  7279. {
  7280. /* FIXME: Include the comments suggested by Paul. */
  7281. #ifndef __cplusplus
  7282. /* Ultrix mips cc rejects this. */
  7283. typedef int charset[2];
  7284. const charset cs;
  7285. /* SunOS 4.1.1 cc rejects this. */
  7286. char const *const *pcpcc;
  7287. char **ppc;
  7288. /* NEC SVR4.0.2 mips cc rejects this. */
  7289. struct point {int x, y;};
  7290. static struct point const zero = {0,0};
  7291. /* AIX XL C 1.02.0.0 rejects this.
  7292. It does not let you subtract one const X* pointer from another in
  7293. an arm of an if-expression whose if-part is not a constant
  7294. expression */
  7295. const char *g = "string";
  7296. pcpcc = &g + (g ? g-g : 0);
  7297. /* HPUX 7.0 cc rejects these. */
  7298. ++pcpcc;
  7299. ppc = (char**) pcpcc;
  7300. pcpcc = (char const *const *) ppc;
  7301. { /* SCO 3.2v4 cc rejects this. */
  7302. char *t;
  7303. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7304. *t++ = 0;
  7305. if (s) return 0;
  7306. }
  7307. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7308. int x[] = {25, 17};
  7309. const int *foo = &x[0];
  7310. ++foo;
  7311. }
  7312. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7313. typedef const int *iptr;
  7314. iptr p = 0;
  7315. ++p;
  7316. }
  7317. { /* AIX XL C 1.02.0.0 rejects this saying
  7318. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7319. struct s { int j; const int *ap[3]; };
  7320. struct s *b; b->j = 5;
  7321. }
  7322. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7323. const int foo = 10;
  7324. if (!foo) return 0;
  7325. }
  7326. return !cs[0] && !zero.x;
  7327. #endif
  7328. ;
  7329. return 0;
  7330. }
  7331. _ACEOF
  7332. rm -f conftest.$ac_objext
  7333. if { (ac_try="$ac_compile"
  7334. case "(($ac_try" in
  7335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7336. *) ac_try_echo=$ac_try;;
  7337. esac
  7338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7339. (eval "$ac_compile") 2>conftest.er1
  7340. ac_status=$?
  7341. grep -v '^ *+' conftest.er1 >conftest.err
  7342. rm -f conftest.er1
  7343. cat conftest.err >&5
  7344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7345. (exit $ac_status); } && {
  7346. test -z "$ac_cxx_werror_flag" ||
  7347. test ! -s conftest.err
  7348. } && test -s conftest.$ac_objext; then
  7349. ac_cv_c_const=yes
  7350. else
  7351. echo "$as_me: failed program was:" >&5
  7352. sed 's/^/| /' conftest.$ac_ext >&5
  7353. ac_cv_c_const=no
  7354. fi
  7355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7356. fi
  7357. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7358. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7359. if test $ac_cv_c_const = no; then
  7360. cat >>confdefs.h <<\_ACEOF
  7361. #define const
  7362. _ACEOF
  7363. fi
  7364. { echo "$as_me:$LINENO: checking for inline" >&5
  7365. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7366. if test "${ac_cv_c_inline+set}" = set; then
  7367. echo $ECHO_N "(cached) $ECHO_C" >&6
  7368. else
  7369. ac_cv_c_inline=no
  7370. for ac_kw in inline __inline__ __inline; do
  7371. cat >conftest.$ac_ext <<_ACEOF
  7372. /* confdefs.h. */
  7373. _ACEOF
  7374. cat confdefs.h >>conftest.$ac_ext
  7375. cat >>conftest.$ac_ext <<_ACEOF
  7376. /* end confdefs.h. */
  7377. #ifndef __cplusplus
  7378. typedef int foo_t;
  7379. static $ac_kw foo_t static_foo () {return 0; }
  7380. $ac_kw foo_t foo () {return 0; }
  7381. #endif
  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. ac_cv_c_inline=$ac_kw
  7401. else
  7402. echo "$as_me: failed program was:" >&5
  7403. sed 's/^/| /' conftest.$ac_ext >&5
  7404. fi
  7405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7406. test "$ac_cv_c_inline" != no && break
  7407. done
  7408. fi
  7409. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7410. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7411. case $ac_cv_c_inline in
  7412. inline | yes) ;;
  7413. *)
  7414. case $ac_cv_c_inline in
  7415. no) ac_val=;;
  7416. *) ac_val=$ac_cv_c_inline;;
  7417. esac
  7418. cat >>confdefs.h <<_ACEOF
  7419. #ifndef __cplusplus
  7420. #define inline $ac_val
  7421. #endif
  7422. _ACEOF
  7423. ;;
  7424. esac
  7425. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7426. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7427. if test "${ac_cv_c_int16_t+set}" = set; then
  7428. echo $ECHO_N "(cached) $ECHO_C" >&6
  7429. else
  7430. ac_cv_c_int16_t=no
  7431. for ac_type in 'int16_t' 'int' 'long int' \
  7432. 'long long int' 'short int' 'signed char'; do
  7433. cat >conftest.$ac_ext <<_ACEOF
  7434. /* confdefs.h. */
  7435. _ACEOF
  7436. cat confdefs.h >>conftest.$ac_ext
  7437. cat >>conftest.$ac_ext <<_ACEOF
  7438. /* end confdefs.h. */
  7439. $ac_includes_default
  7440. int
  7441. main ()
  7442. {
  7443. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7444. test_array [0] = 0
  7445. ;
  7446. return 0;
  7447. }
  7448. _ACEOF
  7449. rm -f conftest.$ac_objext
  7450. if { (ac_try="$ac_compile"
  7451. case "(($ac_try" in
  7452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7453. *) ac_try_echo=$ac_try;;
  7454. esac
  7455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7456. (eval "$ac_compile") 2>conftest.er1
  7457. ac_status=$?
  7458. grep -v '^ *+' conftest.er1 >conftest.err
  7459. rm -f conftest.er1
  7460. cat conftest.err >&5
  7461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7462. (exit $ac_status); } && {
  7463. test -z "$ac_cxx_werror_flag" ||
  7464. test ! -s conftest.err
  7465. } && test -s conftest.$ac_objext; then
  7466. cat >conftest.$ac_ext <<_ACEOF
  7467. /* confdefs.h. */
  7468. _ACEOF
  7469. cat confdefs.h >>conftest.$ac_ext
  7470. cat >>conftest.$ac_ext <<_ACEOF
  7471. /* end confdefs.h. */
  7472. $ac_includes_default
  7473. int
  7474. main ()
  7475. {
  7476. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7477. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7478. test_array [0] = 0
  7479. ;
  7480. return 0;
  7481. }
  7482. _ACEOF
  7483. rm -f conftest.$ac_objext
  7484. if { (ac_try="$ac_compile"
  7485. case "(($ac_try" in
  7486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7487. *) ac_try_echo=$ac_try;;
  7488. esac
  7489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7490. (eval "$ac_compile") 2>conftest.er1
  7491. ac_status=$?
  7492. grep -v '^ *+' conftest.er1 >conftest.err
  7493. rm -f conftest.er1
  7494. cat conftest.err >&5
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); } && {
  7497. test -z "$ac_cxx_werror_flag" ||
  7498. test ! -s conftest.err
  7499. } && test -s conftest.$ac_objext; then
  7500. :
  7501. else
  7502. echo "$as_me: failed program was:" >&5
  7503. sed 's/^/| /' conftest.$ac_ext >&5
  7504. case $ac_type in
  7505. int16_t) ac_cv_c_int16_t=yes ;;
  7506. *) ac_cv_c_int16_t=$ac_type ;;
  7507. esac
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7510. else
  7511. echo "$as_me: failed program was:" >&5
  7512. sed 's/^/| /' conftest.$ac_ext >&5
  7513. fi
  7514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7515. test "$ac_cv_c_int16_t" != no && break
  7516. done
  7517. fi
  7518. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7519. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7520. case $ac_cv_c_int16_t in #(
  7521. no|yes) ;; #(
  7522. *)
  7523. cat >>confdefs.h <<_ACEOF
  7524. #define int16_t $ac_cv_c_int16_t
  7525. _ACEOF
  7526. ;;
  7527. esac
  7528. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7529. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7530. if test "${ac_cv_c_int32_t+set}" = set; then
  7531. echo $ECHO_N "(cached) $ECHO_C" >&6
  7532. else
  7533. ac_cv_c_int32_t=no
  7534. for ac_type in 'int32_t' 'int' 'long int' \
  7535. 'long long int' 'short int' 'signed char'; do
  7536. cat >conftest.$ac_ext <<_ACEOF
  7537. /* confdefs.h. */
  7538. _ACEOF
  7539. cat confdefs.h >>conftest.$ac_ext
  7540. cat >>conftest.$ac_ext <<_ACEOF
  7541. /* end confdefs.h. */
  7542. $ac_includes_default
  7543. int
  7544. main ()
  7545. {
  7546. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7547. test_array [0] = 0
  7548. ;
  7549. return 0;
  7550. }
  7551. _ACEOF
  7552. rm -f conftest.$ac_objext
  7553. if { (ac_try="$ac_compile"
  7554. case "(($ac_try" in
  7555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7556. *) ac_try_echo=$ac_try;;
  7557. esac
  7558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7559. (eval "$ac_compile") 2>conftest.er1
  7560. ac_status=$?
  7561. grep -v '^ *+' conftest.er1 >conftest.err
  7562. rm -f conftest.er1
  7563. cat conftest.err >&5
  7564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7565. (exit $ac_status); } && {
  7566. test -z "$ac_cxx_werror_flag" ||
  7567. test ! -s conftest.err
  7568. } && test -s conftest.$ac_objext; then
  7569. cat >conftest.$ac_ext <<_ACEOF
  7570. /* confdefs.h. */
  7571. _ACEOF
  7572. cat confdefs.h >>conftest.$ac_ext
  7573. cat >>conftest.$ac_ext <<_ACEOF
  7574. /* end confdefs.h. */
  7575. $ac_includes_default
  7576. int
  7577. main ()
  7578. {
  7579. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7580. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7581. test_array [0] = 0
  7582. ;
  7583. return 0;
  7584. }
  7585. _ACEOF
  7586. rm -f conftest.$ac_objext
  7587. if { (ac_try="$ac_compile"
  7588. case "(($ac_try" in
  7589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7590. *) ac_try_echo=$ac_try;;
  7591. esac
  7592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7593. (eval "$ac_compile") 2>conftest.er1
  7594. ac_status=$?
  7595. grep -v '^ *+' conftest.er1 >conftest.err
  7596. rm -f conftest.er1
  7597. cat conftest.err >&5
  7598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7599. (exit $ac_status); } && {
  7600. test -z "$ac_cxx_werror_flag" ||
  7601. test ! -s conftest.err
  7602. } && test -s conftest.$ac_objext; then
  7603. :
  7604. else
  7605. echo "$as_me: failed program was:" >&5
  7606. sed 's/^/| /' conftest.$ac_ext >&5
  7607. case $ac_type in
  7608. int32_t) ac_cv_c_int32_t=yes ;;
  7609. *) ac_cv_c_int32_t=$ac_type ;;
  7610. esac
  7611. fi
  7612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7613. else
  7614. echo "$as_me: failed program was:" >&5
  7615. sed 's/^/| /' conftest.$ac_ext >&5
  7616. fi
  7617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7618. test "$ac_cv_c_int32_t" != no && break
  7619. done
  7620. fi
  7621. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7622. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7623. case $ac_cv_c_int32_t in #(
  7624. no|yes) ;; #(
  7625. *)
  7626. cat >>confdefs.h <<_ACEOF
  7627. #define int32_t $ac_cv_c_int32_t
  7628. _ACEOF
  7629. ;;
  7630. esac
  7631. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7632. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7633. if test "${ac_cv_c_int64_t+set}" = set; then
  7634. echo $ECHO_N "(cached) $ECHO_C" >&6
  7635. else
  7636. ac_cv_c_int64_t=no
  7637. for ac_type in 'int64_t' 'int' 'long int' \
  7638. 'long long int' 'short int' 'signed char'; do
  7639. cat >conftest.$ac_ext <<_ACEOF
  7640. /* confdefs.h. */
  7641. _ACEOF
  7642. cat confdefs.h >>conftest.$ac_ext
  7643. cat >>conftest.$ac_ext <<_ACEOF
  7644. /* end confdefs.h. */
  7645. $ac_includes_default
  7646. int
  7647. main ()
  7648. {
  7649. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7650. test_array [0] = 0
  7651. ;
  7652. return 0;
  7653. }
  7654. _ACEOF
  7655. rm -f conftest.$ac_objext
  7656. if { (ac_try="$ac_compile"
  7657. case "(($ac_try" in
  7658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7659. *) ac_try_echo=$ac_try;;
  7660. esac
  7661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7662. (eval "$ac_compile") 2>conftest.er1
  7663. ac_status=$?
  7664. grep -v '^ *+' conftest.er1 >conftest.err
  7665. rm -f conftest.er1
  7666. cat conftest.err >&5
  7667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7668. (exit $ac_status); } && {
  7669. test -z "$ac_cxx_werror_flag" ||
  7670. test ! -s conftest.err
  7671. } && test -s conftest.$ac_objext; then
  7672. cat >conftest.$ac_ext <<_ACEOF
  7673. /* confdefs.h. */
  7674. _ACEOF
  7675. cat confdefs.h >>conftest.$ac_ext
  7676. cat >>conftest.$ac_ext <<_ACEOF
  7677. /* end confdefs.h. */
  7678. $ac_includes_default
  7679. int
  7680. main ()
  7681. {
  7682. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7683. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7684. test_array [0] = 0
  7685. ;
  7686. return 0;
  7687. }
  7688. _ACEOF
  7689. rm -f conftest.$ac_objext
  7690. if { (ac_try="$ac_compile"
  7691. case "(($ac_try" in
  7692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7693. *) ac_try_echo=$ac_try;;
  7694. esac
  7695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7696. (eval "$ac_compile") 2>conftest.er1
  7697. ac_status=$?
  7698. grep -v '^ *+' conftest.er1 >conftest.err
  7699. rm -f conftest.er1
  7700. cat conftest.err >&5
  7701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7702. (exit $ac_status); } && {
  7703. test -z "$ac_cxx_werror_flag" ||
  7704. test ! -s conftest.err
  7705. } && test -s conftest.$ac_objext; then
  7706. :
  7707. else
  7708. echo "$as_me: failed program was:" >&5
  7709. sed 's/^/| /' conftest.$ac_ext >&5
  7710. case $ac_type in
  7711. int64_t) ac_cv_c_int64_t=yes ;;
  7712. *) ac_cv_c_int64_t=$ac_type ;;
  7713. esac
  7714. fi
  7715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7716. else
  7717. echo "$as_me: failed program was:" >&5
  7718. sed 's/^/| /' conftest.$ac_ext >&5
  7719. fi
  7720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7721. test "$ac_cv_c_int64_t" != no && break
  7722. done
  7723. fi
  7724. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7725. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7726. case $ac_cv_c_int64_t in #(
  7727. no|yes) ;; #(
  7728. *)
  7729. cat >>confdefs.h <<_ACEOF
  7730. #define int64_t $ac_cv_c_int64_t
  7731. _ACEOF
  7732. ;;
  7733. esac
  7734. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7735. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7736. if test "${ac_cv_c_int8_t+set}" = set; then
  7737. echo $ECHO_N "(cached) $ECHO_C" >&6
  7738. else
  7739. ac_cv_c_int8_t=no
  7740. for ac_type in 'int8_t' 'int' 'long int' \
  7741. 'long long int' 'short int' 'signed char'; do
  7742. cat >conftest.$ac_ext <<_ACEOF
  7743. /* confdefs.h. */
  7744. _ACEOF
  7745. cat confdefs.h >>conftest.$ac_ext
  7746. cat >>conftest.$ac_ext <<_ACEOF
  7747. /* end confdefs.h. */
  7748. $ac_includes_default
  7749. int
  7750. main ()
  7751. {
  7752. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7753. test_array [0] = 0
  7754. ;
  7755. return 0;
  7756. }
  7757. _ACEOF
  7758. rm -f conftest.$ac_objext
  7759. if { (ac_try="$ac_compile"
  7760. case "(($ac_try" in
  7761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7762. *) ac_try_echo=$ac_try;;
  7763. esac
  7764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7765. (eval "$ac_compile") 2>conftest.er1
  7766. ac_status=$?
  7767. grep -v '^ *+' conftest.er1 >conftest.err
  7768. rm -f conftest.er1
  7769. cat conftest.err >&5
  7770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7771. (exit $ac_status); } && {
  7772. test -z "$ac_cxx_werror_flag" ||
  7773. test ! -s conftest.err
  7774. } && test -s conftest.$ac_objext; then
  7775. cat >conftest.$ac_ext <<_ACEOF
  7776. /* confdefs.h. */
  7777. _ACEOF
  7778. cat confdefs.h >>conftest.$ac_ext
  7779. cat >>conftest.$ac_ext <<_ACEOF
  7780. /* end confdefs.h. */
  7781. $ac_includes_default
  7782. int
  7783. main ()
  7784. {
  7785. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7786. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7787. test_array [0] = 0
  7788. ;
  7789. return 0;
  7790. }
  7791. _ACEOF
  7792. rm -f conftest.$ac_objext
  7793. if { (ac_try="$ac_compile"
  7794. case "(($ac_try" in
  7795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7796. *) ac_try_echo=$ac_try;;
  7797. esac
  7798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7799. (eval "$ac_compile") 2>conftest.er1
  7800. ac_status=$?
  7801. grep -v '^ *+' conftest.er1 >conftest.err
  7802. rm -f conftest.er1
  7803. cat conftest.err >&5
  7804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7805. (exit $ac_status); } && {
  7806. test -z "$ac_cxx_werror_flag" ||
  7807. test ! -s conftest.err
  7808. } && test -s conftest.$ac_objext; then
  7809. :
  7810. else
  7811. echo "$as_me: failed program was:" >&5
  7812. sed 's/^/| /' conftest.$ac_ext >&5
  7813. case $ac_type in
  7814. int8_t) ac_cv_c_int8_t=yes ;;
  7815. *) ac_cv_c_int8_t=$ac_type ;;
  7816. esac
  7817. fi
  7818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7819. else
  7820. echo "$as_me: failed program was:" >&5
  7821. sed 's/^/| /' conftest.$ac_ext >&5
  7822. fi
  7823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7824. test "$ac_cv_c_int8_t" != no && break
  7825. done
  7826. fi
  7827. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7828. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7829. case $ac_cv_c_int8_t in #(
  7830. no|yes) ;; #(
  7831. *)
  7832. cat >>confdefs.h <<_ACEOF
  7833. #define int8_t $ac_cv_c_int8_t
  7834. _ACEOF
  7835. ;;
  7836. esac
  7837. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7838. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7839. if test "${ac_cv_type_mode_t+set}" = set; then
  7840. echo $ECHO_N "(cached) $ECHO_C" >&6
  7841. else
  7842. cat >conftest.$ac_ext <<_ACEOF
  7843. /* confdefs.h. */
  7844. _ACEOF
  7845. cat confdefs.h >>conftest.$ac_ext
  7846. cat >>conftest.$ac_ext <<_ACEOF
  7847. /* end confdefs.h. */
  7848. $ac_includes_default
  7849. typedef mode_t ac__type_new_;
  7850. int
  7851. main ()
  7852. {
  7853. if ((ac__type_new_ *) 0)
  7854. return 0;
  7855. if (sizeof (ac__type_new_))
  7856. return 0;
  7857. ;
  7858. return 0;
  7859. }
  7860. _ACEOF
  7861. rm -f conftest.$ac_objext
  7862. if { (ac_try="$ac_compile"
  7863. case "(($ac_try" in
  7864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7865. *) ac_try_echo=$ac_try;;
  7866. esac
  7867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7868. (eval "$ac_compile") 2>conftest.er1
  7869. ac_status=$?
  7870. grep -v '^ *+' conftest.er1 >conftest.err
  7871. rm -f conftest.er1
  7872. cat conftest.err >&5
  7873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7874. (exit $ac_status); } && {
  7875. test -z "$ac_cxx_werror_flag" ||
  7876. test ! -s conftest.err
  7877. } && test -s conftest.$ac_objext; then
  7878. ac_cv_type_mode_t=yes
  7879. else
  7880. echo "$as_me: failed program was:" >&5
  7881. sed 's/^/| /' conftest.$ac_ext >&5
  7882. ac_cv_type_mode_t=no
  7883. fi
  7884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7885. fi
  7886. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7887. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7888. if test $ac_cv_type_mode_t = yes; then
  7889. :
  7890. else
  7891. cat >>confdefs.h <<_ACEOF
  7892. #define mode_t int
  7893. _ACEOF
  7894. fi
  7895. { echo "$as_me:$LINENO: checking for off_t" >&5
  7896. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7897. if test "${ac_cv_type_off_t+set}" = set; then
  7898. echo $ECHO_N "(cached) $ECHO_C" >&6
  7899. else
  7900. cat >conftest.$ac_ext <<_ACEOF
  7901. /* confdefs.h. */
  7902. _ACEOF
  7903. cat confdefs.h >>conftest.$ac_ext
  7904. cat >>conftest.$ac_ext <<_ACEOF
  7905. /* end confdefs.h. */
  7906. $ac_includes_default
  7907. typedef off_t ac__type_new_;
  7908. int
  7909. main ()
  7910. {
  7911. if ((ac__type_new_ *) 0)
  7912. return 0;
  7913. if (sizeof (ac__type_new_))
  7914. return 0;
  7915. ;
  7916. return 0;
  7917. }
  7918. _ACEOF
  7919. rm -f conftest.$ac_objext
  7920. if { (ac_try="$ac_compile"
  7921. case "(($ac_try" in
  7922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7923. *) ac_try_echo=$ac_try;;
  7924. esac
  7925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7926. (eval "$ac_compile") 2>conftest.er1
  7927. ac_status=$?
  7928. grep -v '^ *+' conftest.er1 >conftest.err
  7929. rm -f conftest.er1
  7930. cat conftest.err >&5
  7931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7932. (exit $ac_status); } && {
  7933. test -z "$ac_cxx_werror_flag" ||
  7934. test ! -s conftest.err
  7935. } && test -s conftest.$ac_objext; then
  7936. ac_cv_type_off_t=yes
  7937. else
  7938. echo "$as_me: failed program was:" >&5
  7939. sed 's/^/| /' conftest.$ac_ext >&5
  7940. ac_cv_type_off_t=no
  7941. fi
  7942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7943. fi
  7944. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7945. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7946. if test $ac_cv_type_off_t = yes; then
  7947. :
  7948. else
  7949. cat >>confdefs.h <<_ACEOF
  7950. #define off_t long int
  7951. _ACEOF
  7952. fi
  7953. { echo "$as_me:$LINENO: checking for size_t" >&5
  7954. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7955. if test "${ac_cv_type_size_t+set}" = set; then
  7956. echo $ECHO_N "(cached) $ECHO_C" >&6
  7957. else
  7958. cat >conftest.$ac_ext <<_ACEOF
  7959. /* confdefs.h. */
  7960. _ACEOF
  7961. cat confdefs.h >>conftest.$ac_ext
  7962. cat >>conftest.$ac_ext <<_ACEOF
  7963. /* end confdefs.h. */
  7964. $ac_includes_default
  7965. typedef size_t ac__type_new_;
  7966. int
  7967. main ()
  7968. {
  7969. if ((ac__type_new_ *) 0)
  7970. return 0;
  7971. if (sizeof (ac__type_new_))
  7972. return 0;
  7973. ;
  7974. return 0;
  7975. }
  7976. _ACEOF
  7977. rm -f conftest.$ac_objext
  7978. if { (ac_try="$ac_compile"
  7979. case "(($ac_try" in
  7980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7981. *) ac_try_echo=$ac_try;;
  7982. esac
  7983. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7984. (eval "$ac_compile") 2>conftest.er1
  7985. ac_status=$?
  7986. grep -v '^ *+' conftest.er1 >conftest.err
  7987. rm -f conftest.er1
  7988. cat conftest.err >&5
  7989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7990. (exit $ac_status); } && {
  7991. test -z "$ac_cxx_werror_flag" ||
  7992. test ! -s conftest.err
  7993. } && test -s conftest.$ac_objext; then
  7994. ac_cv_type_size_t=yes
  7995. else
  7996. echo "$as_me: failed program was:" >&5
  7997. sed 's/^/| /' conftest.$ac_ext >&5
  7998. ac_cv_type_size_t=no
  7999. fi
  8000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8001. fi
  8002. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8003. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8004. if test $ac_cv_type_size_t = yes; then
  8005. :
  8006. else
  8007. cat >>confdefs.h <<_ACEOF
  8008. #define size_t unsigned int
  8009. _ACEOF
  8010. fi
  8011. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8012. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8013. if test "${ac_cv_type_ssize_t+set}" = set; then
  8014. echo $ECHO_N "(cached) $ECHO_C" >&6
  8015. else
  8016. cat >conftest.$ac_ext <<_ACEOF
  8017. /* confdefs.h. */
  8018. _ACEOF
  8019. cat confdefs.h >>conftest.$ac_ext
  8020. cat >>conftest.$ac_ext <<_ACEOF
  8021. /* end confdefs.h. */
  8022. $ac_includes_default
  8023. typedef ssize_t ac__type_new_;
  8024. int
  8025. main ()
  8026. {
  8027. if ((ac__type_new_ *) 0)
  8028. return 0;
  8029. if (sizeof (ac__type_new_))
  8030. return 0;
  8031. ;
  8032. return 0;
  8033. }
  8034. _ACEOF
  8035. rm -f conftest.$ac_objext
  8036. if { (ac_try="$ac_compile"
  8037. case "(($ac_try" in
  8038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8039. *) ac_try_echo=$ac_try;;
  8040. esac
  8041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8042. (eval "$ac_compile") 2>conftest.er1
  8043. ac_status=$?
  8044. grep -v '^ *+' conftest.er1 >conftest.err
  8045. rm -f conftest.er1
  8046. cat conftest.err >&5
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); } && {
  8049. test -z "$ac_cxx_werror_flag" ||
  8050. test ! -s conftest.err
  8051. } && test -s conftest.$ac_objext; then
  8052. ac_cv_type_ssize_t=yes
  8053. else
  8054. echo "$as_me: failed program was:" >&5
  8055. sed 's/^/| /' conftest.$ac_ext >&5
  8056. ac_cv_type_ssize_t=no
  8057. fi
  8058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8059. fi
  8060. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8061. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8062. if test $ac_cv_type_ssize_t = yes; then
  8063. :
  8064. else
  8065. cat >>confdefs.h <<_ACEOF
  8066. #define ssize_t int
  8067. _ACEOF
  8068. fi
  8069. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8070. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8071. if test "${ac_cv_header_time+set}" = set; then
  8072. echo $ECHO_N "(cached) $ECHO_C" >&6
  8073. else
  8074. cat >conftest.$ac_ext <<_ACEOF
  8075. /* confdefs.h. */
  8076. _ACEOF
  8077. cat confdefs.h >>conftest.$ac_ext
  8078. cat >>conftest.$ac_ext <<_ACEOF
  8079. /* end confdefs.h. */
  8080. #include <sys/types.h>
  8081. #include <sys/time.h>
  8082. #include <time.h>
  8083. int
  8084. main ()
  8085. {
  8086. if ((struct tm *) 0)
  8087. return 0;
  8088. ;
  8089. return 0;
  8090. }
  8091. _ACEOF
  8092. rm -f conftest.$ac_objext
  8093. if { (ac_try="$ac_compile"
  8094. case "(($ac_try" in
  8095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8096. *) ac_try_echo=$ac_try;;
  8097. esac
  8098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8099. (eval "$ac_compile") 2>conftest.er1
  8100. ac_status=$?
  8101. grep -v '^ *+' conftest.er1 >conftest.err
  8102. rm -f conftest.er1
  8103. cat conftest.err >&5
  8104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8105. (exit $ac_status); } && {
  8106. test -z "$ac_cxx_werror_flag" ||
  8107. test ! -s conftest.err
  8108. } && test -s conftest.$ac_objext; then
  8109. ac_cv_header_time=yes
  8110. else
  8111. echo "$as_me: failed program was:" >&5
  8112. sed 's/^/| /' conftest.$ac_ext >&5
  8113. ac_cv_header_time=no
  8114. fi
  8115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8116. fi
  8117. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8118. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8119. if test $ac_cv_header_time = yes; then
  8120. cat >>confdefs.h <<\_ACEOF
  8121. #define TIME_WITH_SYS_TIME 1
  8122. _ACEOF
  8123. fi
  8124. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8125. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8126. if test "${ac_cv_struct_tm+set}" = set; then
  8127. echo $ECHO_N "(cached) $ECHO_C" >&6
  8128. else
  8129. cat >conftest.$ac_ext <<_ACEOF
  8130. /* confdefs.h. */
  8131. _ACEOF
  8132. cat confdefs.h >>conftest.$ac_ext
  8133. cat >>conftest.$ac_ext <<_ACEOF
  8134. /* end confdefs.h. */
  8135. #include <sys/types.h>
  8136. #include <time.h>
  8137. int
  8138. main ()
  8139. {
  8140. struct tm tm;
  8141. int *p = &tm.tm_sec;
  8142. return !p;
  8143. ;
  8144. return 0;
  8145. }
  8146. _ACEOF
  8147. rm -f conftest.$ac_objext
  8148. if { (ac_try="$ac_compile"
  8149. case "(($ac_try" in
  8150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8151. *) ac_try_echo=$ac_try;;
  8152. esac
  8153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8154. (eval "$ac_compile") 2>conftest.er1
  8155. ac_status=$?
  8156. grep -v '^ *+' conftest.er1 >conftest.err
  8157. rm -f conftest.er1
  8158. cat conftest.err >&5
  8159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8160. (exit $ac_status); } && {
  8161. test -z "$ac_cxx_werror_flag" ||
  8162. test ! -s conftest.err
  8163. } && test -s conftest.$ac_objext; then
  8164. ac_cv_struct_tm=time.h
  8165. else
  8166. echo "$as_me: failed program was:" >&5
  8167. sed 's/^/| /' conftest.$ac_ext >&5
  8168. ac_cv_struct_tm=sys/time.h
  8169. fi
  8170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8171. fi
  8172. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8173. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8174. if test $ac_cv_struct_tm = sys/time.h; then
  8175. cat >>confdefs.h <<\_ACEOF
  8176. #define TM_IN_SYS_TIME 1
  8177. _ACEOF
  8178. fi
  8179. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8180. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8181. if test "${ac_cv_c_uint16_t+set}" = set; then
  8182. echo $ECHO_N "(cached) $ECHO_C" >&6
  8183. else
  8184. ac_cv_c_uint16_t=no
  8185. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8186. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8187. cat >conftest.$ac_ext <<_ACEOF
  8188. /* confdefs.h. */
  8189. _ACEOF
  8190. cat confdefs.h >>conftest.$ac_ext
  8191. cat >>conftest.$ac_ext <<_ACEOF
  8192. /* end confdefs.h. */
  8193. $ac_includes_default
  8194. int
  8195. main ()
  8196. {
  8197. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8198. test_array [0] = 0
  8199. ;
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. rm -f conftest.$ac_objext
  8204. if { (ac_try="$ac_compile"
  8205. case "(($ac_try" in
  8206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8207. *) ac_try_echo=$ac_try;;
  8208. esac
  8209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8210. (eval "$ac_compile") 2>conftest.er1
  8211. ac_status=$?
  8212. grep -v '^ *+' conftest.er1 >conftest.err
  8213. rm -f conftest.er1
  8214. cat conftest.err >&5
  8215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8216. (exit $ac_status); } && {
  8217. test -z "$ac_cxx_werror_flag" ||
  8218. test ! -s conftest.err
  8219. } && test -s conftest.$ac_objext; then
  8220. case $ac_type in
  8221. uint16_t) ac_cv_c_uint16_t=yes ;;
  8222. *) ac_cv_c_uint16_t=$ac_type ;;
  8223. esac
  8224. else
  8225. echo "$as_me: failed program was:" >&5
  8226. sed 's/^/| /' conftest.$ac_ext >&5
  8227. fi
  8228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8229. test "$ac_cv_c_uint16_t" != no && break
  8230. done
  8231. fi
  8232. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8233. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8234. case $ac_cv_c_uint16_t in #(
  8235. no|yes) ;; #(
  8236. *)
  8237. cat >>confdefs.h <<_ACEOF
  8238. #define uint16_t $ac_cv_c_uint16_t
  8239. _ACEOF
  8240. ;;
  8241. esac
  8242. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8243. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8244. if test "${ac_cv_c_uint32_t+set}" = set; then
  8245. echo $ECHO_N "(cached) $ECHO_C" >&6
  8246. else
  8247. ac_cv_c_uint32_t=no
  8248. for ac_type in 'uint32_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 >> (32 - 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. uint32_t) ac_cv_c_uint32_t=yes ;;
  8285. *) ac_cv_c_uint32_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_uint32_t" != no && break
  8293. done
  8294. fi
  8295. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8296. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8297. case $ac_cv_c_uint32_t in #(
  8298. no|yes) ;; #(
  8299. *)
  8300. cat >>confdefs.h <<\_ACEOF
  8301. #define _UINT32_T 1
  8302. _ACEOF
  8303. cat >>confdefs.h <<_ACEOF
  8304. #define uint32_t $ac_cv_c_uint32_t
  8305. _ACEOF
  8306. ;;
  8307. esac
  8308. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8309. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8310. if test "${ac_cv_c_uint64_t+set}" = set; then
  8311. echo $ECHO_N "(cached) $ECHO_C" >&6
  8312. else
  8313. ac_cv_c_uint64_t=no
  8314. for ac_type in 'uint64_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 >> (64 - 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. uint64_t) ac_cv_c_uint64_t=yes ;;
  8351. *) ac_cv_c_uint64_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_uint64_t" != no && break
  8359. done
  8360. fi
  8361. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8362. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8363. case $ac_cv_c_uint64_t in #(
  8364. no|yes) ;; #(
  8365. *)
  8366. cat >>confdefs.h <<\_ACEOF
  8367. #define _UINT64_T 1
  8368. _ACEOF
  8369. cat >>confdefs.h <<_ACEOF
  8370. #define uint64_t $ac_cv_c_uint64_t
  8371. _ACEOF
  8372. ;;
  8373. esac
  8374. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8375. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8376. if test "${ac_cv_c_uint8_t+set}" = set; then
  8377. echo $ECHO_N "(cached) $ECHO_C" >&6
  8378. else
  8379. ac_cv_c_uint8_t=no
  8380. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8381. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8382. cat >conftest.$ac_ext <<_ACEOF
  8383. /* confdefs.h. */
  8384. _ACEOF
  8385. cat confdefs.h >>conftest.$ac_ext
  8386. cat >>conftest.$ac_ext <<_ACEOF
  8387. /* end confdefs.h. */
  8388. $ac_includes_default
  8389. int
  8390. main ()
  8391. {
  8392. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8393. test_array [0] = 0
  8394. ;
  8395. return 0;
  8396. }
  8397. _ACEOF
  8398. rm -f conftest.$ac_objext
  8399. if { (ac_try="$ac_compile"
  8400. case "(($ac_try" in
  8401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8402. *) ac_try_echo=$ac_try;;
  8403. esac
  8404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8405. (eval "$ac_compile") 2>conftest.er1
  8406. ac_status=$?
  8407. grep -v '^ *+' conftest.er1 >conftest.err
  8408. rm -f conftest.er1
  8409. cat conftest.err >&5
  8410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8411. (exit $ac_status); } && {
  8412. test -z "$ac_cxx_werror_flag" ||
  8413. test ! -s conftest.err
  8414. } && test -s conftest.$ac_objext; then
  8415. case $ac_type in
  8416. uint8_t) ac_cv_c_uint8_t=yes ;;
  8417. *) ac_cv_c_uint8_t=$ac_type ;;
  8418. esac
  8419. else
  8420. echo "$as_me: failed program was:" >&5
  8421. sed 's/^/| /' conftest.$ac_ext >&5
  8422. fi
  8423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8424. test "$ac_cv_c_uint8_t" != no && break
  8425. done
  8426. fi
  8427. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8428. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8429. case $ac_cv_c_uint8_t in #(
  8430. no|yes) ;; #(
  8431. *)
  8432. cat >>confdefs.h <<\_ACEOF
  8433. #define _UINT8_T 1
  8434. _ACEOF
  8435. cat >>confdefs.h <<_ACEOF
  8436. #define uint8_t $ac_cv_c_uint8_t
  8437. _ACEOF
  8438. ;;
  8439. esac
  8440. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8441. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8442. if test "${ac_cv_c_volatile+set}" = set; then
  8443. echo $ECHO_N "(cached) $ECHO_C" >&6
  8444. else
  8445. cat >conftest.$ac_ext <<_ACEOF
  8446. /* confdefs.h. */
  8447. _ACEOF
  8448. cat confdefs.h >>conftest.$ac_ext
  8449. cat >>conftest.$ac_ext <<_ACEOF
  8450. /* end confdefs.h. */
  8451. int
  8452. main ()
  8453. {
  8454. volatile int x;
  8455. int * volatile y = (int *) 0;
  8456. return !x && !y;
  8457. ;
  8458. return 0;
  8459. }
  8460. _ACEOF
  8461. rm -f conftest.$ac_objext
  8462. if { (ac_try="$ac_compile"
  8463. case "(($ac_try" in
  8464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8465. *) ac_try_echo=$ac_try;;
  8466. esac
  8467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8468. (eval "$ac_compile") 2>conftest.er1
  8469. ac_status=$?
  8470. grep -v '^ *+' conftest.er1 >conftest.err
  8471. rm -f conftest.er1
  8472. cat conftest.err >&5
  8473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8474. (exit $ac_status); } && {
  8475. test -z "$ac_cxx_werror_flag" ||
  8476. test ! -s conftest.err
  8477. } && test -s conftest.$ac_objext; then
  8478. ac_cv_c_volatile=yes
  8479. else
  8480. echo "$as_me: failed program was:" >&5
  8481. sed 's/^/| /' conftest.$ac_ext >&5
  8482. ac_cv_c_volatile=no
  8483. fi
  8484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8485. fi
  8486. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8487. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8488. if test $ac_cv_c_volatile = no; then
  8489. cat >>confdefs.h <<\_ACEOF
  8490. #define volatile
  8491. _ACEOF
  8492. fi
  8493. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8494. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8495. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8496. echo $ECHO_N "(cached) $ECHO_C" >&6
  8497. else
  8498. cat >conftest.$ac_ext <<_ACEOF
  8499. /* confdefs.h. */
  8500. _ACEOF
  8501. cat confdefs.h >>conftest.$ac_ext
  8502. cat >>conftest.$ac_ext <<_ACEOF
  8503. /* end confdefs.h. */
  8504. $ac_includes_default
  8505. typedef ptrdiff_t ac__type_new_;
  8506. int
  8507. main ()
  8508. {
  8509. if ((ac__type_new_ *) 0)
  8510. return 0;
  8511. if (sizeof (ac__type_new_))
  8512. return 0;
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. rm -f conftest.$ac_objext
  8518. if { (ac_try="$ac_compile"
  8519. case "(($ac_try" in
  8520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8521. *) ac_try_echo=$ac_try;;
  8522. esac
  8523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8524. (eval "$ac_compile") 2>conftest.er1
  8525. ac_status=$?
  8526. grep -v '^ *+' conftest.er1 >conftest.err
  8527. rm -f conftest.er1
  8528. cat conftest.err >&5
  8529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8530. (exit $ac_status); } && {
  8531. test -z "$ac_cxx_werror_flag" ||
  8532. test ! -s conftest.err
  8533. } && test -s conftest.$ac_objext; then
  8534. ac_cv_type_ptrdiff_t=yes
  8535. else
  8536. echo "$as_me: failed program was:" >&5
  8537. sed 's/^/| /' conftest.$ac_ext >&5
  8538. ac_cv_type_ptrdiff_t=no
  8539. fi
  8540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8541. fi
  8542. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8543. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8544. if test $ac_cv_type_ptrdiff_t = yes; then
  8545. cat >>confdefs.h <<_ACEOF
  8546. #define HAVE_PTRDIFF_T 1
  8547. _ACEOF
  8548. fi
  8549. # Check whether --enable-largefile was given.
  8550. if test "${enable_largefile+set}" = set; then
  8551. enableval=$enable_largefile;
  8552. fi
  8553. if test "$enable_largefile" != no; then
  8554. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8555. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8556. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8557. echo $ECHO_N "(cached) $ECHO_C" >&6
  8558. else
  8559. ac_cv_sys_largefile_CC=no
  8560. if test "$GCC" != yes; then
  8561. ac_save_CC=$CC
  8562. while :; do
  8563. # IRIX 6.2 and later do not support large files by default,
  8564. # so use the C compiler's -n32 option if that helps.
  8565. cat >conftest.$ac_ext <<_ACEOF
  8566. /* confdefs.h. */
  8567. _ACEOF
  8568. cat confdefs.h >>conftest.$ac_ext
  8569. cat >>conftest.$ac_ext <<_ACEOF
  8570. /* end confdefs.h. */
  8571. #include <sys/types.h>
  8572. /* Check that off_t can represent 2**63 - 1 correctly.
  8573. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8574. since some C++ compilers masquerading as C compilers
  8575. incorrectly reject 9223372036854775807. */
  8576. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8577. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8578. && LARGE_OFF_T % 2147483647 == 1)
  8579. ? 1 : -1];
  8580. int
  8581. main ()
  8582. {
  8583. ;
  8584. return 0;
  8585. }
  8586. _ACEOF
  8587. rm -f conftest.$ac_objext
  8588. if { (ac_try="$ac_compile"
  8589. case "(($ac_try" in
  8590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8591. *) ac_try_echo=$ac_try;;
  8592. esac
  8593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8594. (eval "$ac_compile") 2>conftest.er1
  8595. ac_status=$?
  8596. grep -v '^ *+' conftest.er1 >conftest.err
  8597. rm -f conftest.er1
  8598. cat conftest.err >&5
  8599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8600. (exit $ac_status); } && {
  8601. test -z "$ac_cxx_werror_flag" ||
  8602. test ! -s conftest.err
  8603. } && test -s conftest.$ac_objext; then
  8604. break
  8605. else
  8606. echo "$as_me: failed program was:" >&5
  8607. sed 's/^/| /' conftest.$ac_ext >&5
  8608. fi
  8609. rm -f core conftest.err conftest.$ac_objext
  8610. CC="$CC -n32"
  8611. rm -f conftest.$ac_objext
  8612. if { (ac_try="$ac_compile"
  8613. case "(($ac_try" in
  8614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8615. *) ac_try_echo=$ac_try;;
  8616. esac
  8617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8618. (eval "$ac_compile") 2>conftest.er1
  8619. ac_status=$?
  8620. grep -v '^ *+' conftest.er1 >conftest.err
  8621. rm -f conftest.er1
  8622. cat conftest.err >&5
  8623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8624. (exit $ac_status); } && {
  8625. test -z "$ac_cxx_werror_flag" ||
  8626. test ! -s conftest.err
  8627. } && test -s conftest.$ac_objext; then
  8628. ac_cv_sys_largefile_CC=' -n32'; break
  8629. else
  8630. echo "$as_me: failed program was:" >&5
  8631. sed 's/^/| /' conftest.$ac_ext >&5
  8632. fi
  8633. rm -f core conftest.err conftest.$ac_objext
  8634. break
  8635. done
  8636. CC=$ac_save_CC
  8637. rm -f conftest.$ac_ext
  8638. fi
  8639. fi
  8640. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8641. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8642. if test "$ac_cv_sys_largefile_CC" != no; then
  8643. CC=$CC$ac_cv_sys_largefile_CC
  8644. fi
  8645. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8646. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8647. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8648. echo $ECHO_N "(cached) $ECHO_C" >&6
  8649. else
  8650. while :; do
  8651. cat >conftest.$ac_ext <<_ACEOF
  8652. /* confdefs.h. */
  8653. _ACEOF
  8654. cat confdefs.h >>conftest.$ac_ext
  8655. cat >>conftest.$ac_ext <<_ACEOF
  8656. /* end confdefs.h. */
  8657. #include <sys/types.h>
  8658. /* Check that off_t can represent 2**63 - 1 correctly.
  8659. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8660. since some C++ compilers masquerading as C compilers
  8661. incorrectly reject 9223372036854775807. */
  8662. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8663. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8664. && LARGE_OFF_T % 2147483647 == 1)
  8665. ? 1 : -1];
  8666. int
  8667. main ()
  8668. {
  8669. ;
  8670. return 0;
  8671. }
  8672. _ACEOF
  8673. rm -f conftest.$ac_objext
  8674. if { (ac_try="$ac_compile"
  8675. case "(($ac_try" in
  8676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8677. *) ac_try_echo=$ac_try;;
  8678. esac
  8679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8680. (eval "$ac_compile") 2>conftest.er1
  8681. ac_status=$?
  8682. grep -v '^ *+' conftest.er1 >conftest.err
  8683. rm -f conftest.er1
  8684. cat conftest.err >&5
  8685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8686. (exit $ac_status); } && {
  8687. test -z "$ac_cxx_werror_flag" ||
  8688. test ! -s conftest.err
  8689. } && test -s conftest.$ac_objext; then
  8690. ac_cv_sys_file_offset_bits=no; break
  8691. else
  8692. echo "$as_me: failed program was:" >&5
  8693. sed 's/^/| /' conftest.$ac_ext >&5
  8694. fi
  8695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8696. cat >conftest.$ac_ext <<_ACEOF
  8697. /* confdefs.h. */
  8698. _ACEOF
  8699. cat confdefs.h >>conftest.$ac_ext
  8700. cat >>conftest.$ac_ext <<_ACEOF
  8701. /* end confdefs.h. */
  8702. #define _FILE_OFFSET_BITS 64
  8703. #include <sys/types.h>
  8704. /* Check that off_t can represent 2**63 - 1 correctly.
  8705. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8706. since some C++ compilers masquerading as C compilers
  8707. incorrectly reject 9223372036854775807. */
  8708. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8709. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8710. && LARGE_OFF_T % 2147483647 == 1)
  8711. ? 1 : -1];
  8712. int
  8713. main ()
  8714. {
  8715. ;
  8716. return 0;
  8717. }
  8718. _ACEOF
  8719. rm -f conftest.$ac_objext
  8720. if { (ac_try="$ac_compile"
  8721. case "(($ac_try" in
  8722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8723. *) ac_try_echo=$ac_try;;
  8724. esac
  8725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8726. (eval "$ac_compile") 2>conftest.er1
  8727. ac_status=$?
  8728. grep -v '^ *+' conftest.er1 >conftest.err
  8729. rm -f conftest.er1
  8730. cat conftest.err >&5
  8731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8732. (exit $ac_status); } && {
  8733. test -z "$ac_cxx_werror_flag" ||
  8734. test ! -s conftest.err
  8735. } && test -s conftest.$ac_objext; then
  8736. ac_cv_sys_file_offset_bits=64; break
  8737. else
  8738. echo "$as_me: failed program was:" >&5
  8739. sed 's/^/| /' conftest.$ac_ext >&5
  8740. fi
  8741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8742. ac_cv_sys_file_offset_bits=unknown
  8743. break
  8744. done
  8745. fi
  8746. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8747. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8748. case $ac_cv_sys_file_offset_bits in #(
  8749. no | unknown) ;;
  8750. *)
  8751. cat >>confdefs.h <<_ACEOF
  8752. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8753. _ACEOF
  8754. ;;
  8755. esac
  8756. rm -f conftest*
  8757. if test $ac_cv_sys_file_offset_bits = unknown; then
  8758. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8759. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8760. if test "${ac_cv_sys_large_files+set}" = set; then
  8761. echo $ECHO_N "(cached) $ECHO_C" >&6
  8762. else
  8763. while :; do
  8764. cat >conftest.$ac_ext <<_ACEOF
  8765. /* confdefs.h. */
  8766. _ACEOF
  8767. cat confdefs.h >>conftest.$ac_ext
  8768. cat >>conftest.$ac_ext <<_ACEOF
  8769. /* end confdefs.h. */
  8770. #include <sys/types.h>
  8771. /* Check that off_t can represent 2**63 - 1 correctly.
  8772. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8773. since some C++ compilers masquerading as C compilers
  8774. incorrectly reject 9223372036854775807. */
  8775. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8776. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8777. && LARGE_OFF_T % 2147483647 == 1)
  8778. ? 1 : -1];
  8779. int
  8780. main ()
  8781. {
  8782. ;
  8783. return 0;
  8784. }
  8785. _ACEOF
  8786. rm -f conftest.$ac_objext
  8787. if { (ac_try="$ac_compile"
  8788. case "(($ac_try" in
  8789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8790. *) ac_try_echo=$ac_try;;
  8791. esac
  8792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8793. (eval "$ac_compile") 2>conftest.er1
  8794. ac_status=$?
  8795. grep -v '^ *+' conftest.er1 >conftest.err
  8796. rm -f conftest.er1
  8797. cat conftest.err >&5
  8798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8799. (exit $ac_status); } && {
  8800. test -z "$ac_cxx_werror_flag" ||
  8801. test ! -s conftest.err
  8802. } && test -s conftest.$ac_objext; then
  8803. ac_cv_sys_large_files=no; break
  8804. else
  8805. echo "$as_me: failed program was:" >&5
  8806. sed 's/^/| /' conftest.$ac_ext >&5
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8809. cat >conftest.$ac_ext <<_ACEOF
  8810. /* confdefs.h. */
  8811. _ACEOF
  8812. cat confdefs.h >>conftest.$ac_ext
  8813. cat >>conftest.$ac_ext <<_ACEOF
  8814. /* end confdefs.h. */
  8815. #define _LARGE_FILES 1
  8816. #include <sys/types.h>
  8817. /* Check that off_t can represent 2**63 - 1 correctly.
  8818. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8819. since some C++ compilers masquerading as C compilers
  8820. incorrectly reject 9223372036854775807. */
  8821. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8822. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8823. && LARGE_OFF_T % 2147483647 == 1)
  8824. ? 1 : -1];
  8825. int
  8826. main ()
  8827. {
  8828. ;
  8829. return 0;
  8830. }
  8831. _ACEOF
  8832. rm -f conftest.$ac_objext
  8833. if { (ac_try="$ac_compile"
  8834. case "(($ac_try" in
  8835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8836. *) ac_try_echo=$ac_try;;
  8837. esac
  8838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8839. (eval "$ac_compile") 2>conftest.er1
  8840. ac_status=$?
  8841. grep -v '^ *+' conftest.er1 >conftest.err
  8842. rm -f conftest.er1
  8843. cat conftest.err >&5
  8844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8845. (exit $ac_status); } && {
  8846. test -z "$ac_cxx_werror_flag" ||
  8847. test ! -s conftest.err
  8848. } && test -s conftest.$ac_objext; then
  8849. ac_cv_sys_large_files=1; break
  8850. else
  8851. echo "$as_me: failed program was:" >&5
  8852. sed 's/^/| /' conftest.$ac_ext >&5
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8855. ac_cv_sys_large_files=unknown
  8856. break
  8857. done
  8858. fi
  8859. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8860. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8861. case $ac_cv_sys_large_files in #(
  8862. no | unknown) ;;
  8863. *)
  8864. cat >>confdefs.h <<_ACEOF
  8865. #define _LARGE_FILES $ac_cv_sys_large_files
  8866. _ACEOF
  8867. ;;
  8868. esac
  8869. rm -f conftest*
  8870. fi
  8871. fi
  8872. # Checks for library functions.
  8873. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8874. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8875. # Check whether --enable-nls was given.
  8876. if test "${enable_nls+set}" = set; then
  8877. enableval=$enable_nls; USE_NLS=$enableval
  8878. else
  8879. USE_NLS=yes
  8880. fi
  8881. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8882. echo "${ECHO_T}$USE_NLS" >&6; }
  8883. GETTEXT_MACRO_VERSION=0.17
  8884. # Prepare PATH_SEPARATOR.
  8885. # The user is always right.
  8886. if test "${PATH_SEPARATOR+set}" != set; then
  8887. echo "#! /bin/sh" >conf$$.sh
  8888. echo "exit 0" >>conf$$.sh
  8889. chmod +x conf$$.sh
  8890. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8891. PATH_SEPARATOR=';'
  8892. else
  8893. PATH_SEPARATOR=:
  8894. fi
  8895. rm -f conf$$.sh
  8896. fi
  8897. # Find out how to test for executable files. Don't use a zero-byte file,
  8898. # as systems may use methods other than mode bits to determine executability.
  8899. cat >conf$$.file <<_ASEOF
  8900. #! /bin/sh
  8901. exit 0
  8902. _ASEOF
  8903. chmod +x conf$$.file
  8904. if test -x conf$$.file >/dev/null 2>&1; then
  8905. ac_executable_p="test -x"
  8906. else
  8907. ac_executable_p="test -f"
  8908. fi
  8909. rm -f conf$$.file
  8910. # Extract the first word of "msgfmt", so it can be a program name with args.
  8911. set dummy msgfmt; ac_word=$2
  8912. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8913. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8914. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8915. echo $ECHO_N "(cached) $ECHO_C" >&6
  8916. else
  8917. case "$MSGFMT" in
  8918. [\\/]* | ?:[\\/]*)
  8919. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8920. ;;
  8921. *)
  8922. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8923. for ac_dir in $PATH; do
  8924. IFS="$ac_save_IFS"
  8925. test -z "$ac_dir" && ac_dir=.
  8926. for ac_exec_ext in '' $ac_executable_extensions; do
  8927. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8928. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8929. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8930. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8931. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8932. break 2
  8933. fi
  8934. fi
  8935. done
  8936. done
  8937. IFS="$ac_save_IFS"
  8938. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8939. ;;
  8940. esac
  8941. fi
  8942. MSGFMT="$ac_cv_path_MSGFMT"
  8943. if test "$MSGFMT" != ":"; then
  8944. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8945. echo "${ECHO_T}$MSGFMT" >&6; }
  8946. else
  8947. { echo "$as_me:$LINENO: result: no" >&5
  8948. echo "${ECHO_T}no" >&6; }
  8949. fi
  8950. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8951. set dummy gmsgfmt; ac_word=$2
  8952. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8953. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8954. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8955. echo $ECHO_N "(cached) $ECHO_C" >&6
  8956. else
  8957. case $GMSGFMT in
  8958. [\\/]* | ?:[\\/]*)
  8959. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8960. ;;
  8961. *)
  8962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8963. for as_dir in $PATH
  8964. do
  8965. IFS=$as_save_IFS
  8966. test -z "$as_dir" && as_dir=.
  8967. for ac_exec_ext in '' $ac_executable_extensions; do
  8968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8969. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8970. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8971. break 2
  8972. fi
  8973. done
  8974. done
  8975. IFS=$as_save_IFS
  8976. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8977. ;;
  8978. esac
  8979. fi
  8980. GMSGFMT=$ac_cv_path_GMSGFMT
  8981. if test -n "$GMSGFMT"; then
  8982. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8983. echo "${ECHO_T}$GMSGFMT" >&6; }
  8984. else
  8985. { echo "$as_me:$LINENO: result: no" >&5
  8986. echo "${ECHO_T}no" >&6; }
  8987. fi
  8988. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8989. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8990. *) MSGFMT_015=$MSGFMT ;;
  8991. esac
  8992. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8993. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8994. *) GMSGFMT_015=$GMSGFMT ;;
  8995. esac
  8996. # Prepare PATH_SEPARATOR.
  8997. # The user is always right.
  8998. if test "${PATH_SEPARATOR+set}" != set; then
  8999. echo "#! /bin/sh" >conf$$.sh
  9000. echo "exit 0" >>conf$$.sh
  9001. chmod +x conf$$.sh
  9002. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9003. PATH_SEPARATOR=';'
  9004. else
  9005. PATH_SEPARATOR=:
  9006. fi
  9007. rm -f conf$$.sh
  9008. fi
  9009. # Find out how to test for executable files. Don't use a zero-byte file,
  9010. # as systems may use methods other than mode bits to determine executability.
  9011. cat >conf$$.file <<_ASEOF
  9012. #! /bin/sh
  9013. exit 0
  9014. _ASEOF
  9015. chmod +x conf$$.file
  9016. if test -x conf$$.file >/dev/null 2>&1; then
  9017. ac_executable_p="test -x"
  9018. else
  9019. ac_executable_p="test -f"
  9020. fi
  9021. rm -f conf$$.file
  9022. # Extract the first word of "xgettext", so it can be a program name with args.
  9023. set dummy xgettext; ac_word=$2
  9024. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9025. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9026. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9027. echo $ECHO_N "(cached) $ECHO_C" >&6
  9028. else
  9029. case "$XGETTEXT" in
  9030. [\\/]* | ?:[\\/]*)
  9031. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9032. ;;
  9033. *)
  9034. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9035. for ac_dir in $PATH; do
  9036. IFS="$ac_save_IFS"
  9037. test -z "$ac_dir" && ac_dir=.
  9038. for ac_exec_ext in '' $ac_executable_extensions; do
  9039. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9040. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9041. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9042. (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
  9043. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9044. break 2
  9045. fi
  9046. fi
  9047. done
  9048. done
  9049. IFS="$ac_save_IFS"
  9050. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9051. ;;
  9052. esac
  9053. fi
  9054. XGETTEXT="$ac_cv_path_XGETTEXT"
  9055. if test "$XGETTEXT" != ":"; then
  9056. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9057. echo "${ECHO_T}$XGETTEXT" >&6; }
  9058. else
  9059. { echo "$as_me:$LINENO: result: no" >&5
  9060. echo "${ECHO_T}no" >&6; }
  9061. fi
  9062. rm -f messages.po
  9063. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9064. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9065. *) XGETTEXT_015=$XGETTEXT ;;
  9066. esac
  9067. # Prepare PATH_SEPARATOR.
  9068. # The user is always right.
  9069. if test "${PATH_SEPARATOR+set}" != set; then
  9070. echo "#! /bin/sh" >conf$$.sh
  9071. echo "exit 0" >>conf$$.sh
  9072. chmod +x conf$$.sh
  9073. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9074. PATH_SEPARATOR=';'
  9075. else
  9076. PATH_SEPARATOR=:
  9077. fi
  9078. rm -f conf$$.sh
  9079. fi
  9080. # Find out how to test for executable files. Don't use a zero-byte file,
  9081. # as systems may use methods other than mode bits to determine executability.
  9082. cat >conf$$.file <<_ASEOF
  9083. #! /bin/sh
  9084. exit 0
  9085. _ASEOF
  9086. chmod +x conf$$.file
  9087. if test -x conf$$.file >/dev/null 2>&1; then
  9088. ac_executable_p="test -x"
  9089. else
  9090. ac_executable_p="test -f"
  9091. fi
  9092. rm -f conf$$.file
  9093. # Extract the first word of "msgmerge", so it can be a program name with args.
  9094. set dummy msgmerge; ac_word=$2
  9095. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9096. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9097. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9098. echo $ECHO_N "(cached) $ECHO_C" >&6
  9099. else
  9100. case "$MSGMERGE" in
  9101. [\\/]* | ?:[\\/]*)
  9102. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9103. ;;
  9104. *)
  9105. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9106. for ac_dir in $PATH; do
  9107. IFS="$ac_save_IFS"
  9108. test -z "$ac_dir" && ac_dir=.
  9109. for ac_exec_ext in '' $ac_executable_extensions; do
  9110. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9111. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9112. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9113. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9114. break 2
  9115. fi
  9116. fi
  9117. done
  9118. done
  9119. IFS="$ac_save_IFS"
  9120. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9121. ;;
  9122. esac
  9123. fi
  9124. MSGMERGE="$ac_cv_path_MSGMERGE"
  9125. if test "$MSGMERGE" != ":"; then
  9126. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9127. echo "${ECHO_T}$MSGMERGE" >&6; }
  9128. else
  9129. { echo "$as_me:$LINENO: result: no" >&5
  9130. echo "${ECHO_T}no" >&6; }
  9131. fi
  9132. test -n "$localedir" || localedir='${datadir}/locale'
  9133. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9134. ac_config_commands="$ac_config_commands po-directories"
  9135. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9136. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9137. if test "${ac_cv_gnu_library_2+set}" = set; then
  9138. echo $ECHO_N "(cached) $ECHO_C" >&6
  9139. else
  9140. cat >conftest.$ac_ext <<_ACEOF
  9141. /* confdefs.h. */
  9142. _ACEOF
  9143. cat confdefs.h >>conftest.$ac_ext
  9144. cat >>conftest.$ac_ext <<_ACEOF
  9145. /* end confdefs.h. */
  9146. #include <features.h>
  9147. #ifdef __GNU_LIBRARY__
  9148. #if (__GLIBC__ >= 2)
  9149. Lucky GNU user
  9150. #endif
  9151. #endif
  9152. _ACEOF
  9153. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9154. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9155. ac_cv_gnu_library_2=yes
  9156. else
  9157. ac_cv_gnu_library_2=no
  9158. fi
  9159. rm -f conftest*
  9160. fi
  9161. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9162. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9163. GLIBC2="$ac_cv_gnu_library_2"
  9164. CFLAG_VISIBILITY=
  9165. HAVE_VISIBILITY=0
  9166. if test -n "$GCC"; then
  9167. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9168. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9169. if test "${gl_cv_cc_visibility+set}" = set; then
  9170. echo $ECHO_N "(cached) $ECHO_C" >&6
  9171. else
  9172. gl_save_CFLAGS="$CFLAGS"
  9173. CFLAGS="$CFLAGS -fvisibility=hidden"
  9174. cat >conftest.$ac_ext <<_ACEOF
  9175. /* confdefs.h. */
  9176. _ACEOF
  9177. cat confdefs.h >>conftest.$ac_ext
  9178. cat >>conftest.$ac_ext <<_ACEOF
  9179. /* end confdefs.h. */
  9180. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9181. extern __attribute__((__visibility__("default"))) int exportedvar;
  9182. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9183. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9184. int
  9185. main ()
  9186. {
  9187. ;
  9188. return 0;
  9189. }
  9190. _ACEOF
  9191. rm -f conftest.$ac_objext
  9192. if { (ac_try="$ac_compile"
  9193. case "(($ac_try" in
  9194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9195. *) ac_try_echo=$ac_try;;
  9196. esac
  9197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9198. (eval "$ac_compile") 2>conftest.er1
  9199. ac_status=$?
  9200. grep -v '^ *+' conftest.er1 >conftest.err
  9201. rm -f conftest.er1
  9202. cat conftest.err >&5
  9203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9204. (exit $ac_status); } && {
  9205. test -z "$ac_cxx_werror_flag" ||
  9206. test ! -s conftest.err
  9207. } && test -s conftest.$ac_objext; then
  9208. gl_cv_cc_visibility=yes
  9209. else
  9210. echo "$as_me: failed program was:" >&5
  9211. sed 's/^/| /' conftest.$ac_ext >&5
  9212. gl_cv_cc_visibility=no
  9213. fi
  9214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9215. CFLAGS="$gl_save_CFLAGS"
  9216. fi
  9217. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9218. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9219. if test $gl_cv_cc_visibility = yes; then
  9220. CFLAG_VISIBILITY="-fvisibility=hidden"
  9221. HAVE_VISIBILITY=1
  9222. fi
  9223. fi
  9224. cat >>confdefs.h <<_ACEOF
  9225. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9226. _ACEOF
  9227. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9228. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9229. if test "${gl_cv_header_stdint_h+set}" = set; then
  9230. echo $ECHO_N "(cached) $ECHO_C" >&6
  9231. else
  9232. cat >conftest.$ac_ext <<_ACEOF
  9233. /* confdefs.h. */
  9234. _ACEOF
  9235. cat confdefs.h >>conftest.$ac_ext
  9236. cat >>conftest.$ac_ext <<_ACEOF
  9237. /* end confdefs.h. */
  9238. #include <sys/types.h>
  9239. #include <stdint.h>
  9240. int
  9241. main ()
  9242. {
  9243. uintmax_t i = (uintmax_t) -1; return !i;
  9244. ;
  9245. return 0;
  9246. }
  9247. _ACEOF
  9248. rm -f conftest.$ac_objext
  9249. if { (ac_try="$ac_compile"
  9250. case "(($ac_try" in
  9251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9252. *) ac_try_echo=$ac_try;;
  9253. esac
  9254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9255. (eval "$ac_compile") 2>conftest.er1
  9256. ac_status=$?
  9257. grep -v '^ *+' conftest.er1 >conftest.err
  9258. rm -f conftest.er1
  9259. cat conftest.err >&5
  9260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9261. (exit $ac_status); } && {
  9262. test -z "$ac_cxx_werror_flag" ||
  9263. test ! -s conftest.err
  9264. } && test -s conftest.$ac_objext; then
  9265. gl_cv_header_stdint_h=yes
  9266. else
  9267. echo "$as_me: failed program was:" >&5
  9268. sed 's/^/| /' conftest.$ac_ext >&5
  9269. gl_cv_header_stdint_h=no
  9270. fi
  9271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9272. fi
  9273. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9274. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9275. if test $gl_cv_header_stdint_h = yes; then
  9276. cat >>confdefs.h <<_ACEOF
  9277. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9278. _ACEOF
  9279. fi
  9280. for ac_header in stdlib.h unistd.h
  9281. do
  9282. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9283. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9284. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9285. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9286. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9287. echo $ECHO_N "(cached) $ECHO_C" >&6
  9288. fi
  9289. ac_res=`eval echo '${'$as_ac_Header'}'`
  9290. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9291. echo "${ECHO_T}$ac_res" >&6; }
  9292. else
  9293. # Is the header compilable?
  9294. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9295. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9296. cat >conftest.$ac_ext <<_ACEOF
  9297. /* confdefs.h. */
  9298. _ACEOF
  9299. cat confdefs.h >>conftest.$ac_ext
  9300. cat >>conftest.$ac_ext <<_ACEOF
  9301. /* end confdefs.h. */
  9302. $ac_includes_default
  9303. #include <$ac_header>
  9304. _ACEOF
  9305. rm -f conftest.$ac_objext
  9306. if { (ac_try="$ac_compile"
  9307. case "(($ac_try" in
  9308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9309. *) ac_try_echo=$ac_try;;
  9310. esac
  9311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9312. (eval "$ac_compile") 2>conftest.er1
  9313. ac_status=$?
  9314. grep -v '^ *+' conftest.er1 >conftest.err
  9315. rm -f conftest.er1
  9316. cat conftest.err >&5
  9317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9318. (exit $ac_status); } && {
  9319. test -z "$ac_cxx_werror_flag" ||
  9320. test ! -s conftest.err
  9321. } && test -s conftest.$ac_objext; then
  9322. ac_header_compiler=yes
  9323. else
  9324. echo "$as_me: failed program was:" >&5
  9325. sed 's/^/| /' conftest.$ac_ext >&5
  9326. ac_header_compiler=no
  9327. fi
  9328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9329. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9330. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9331. # Is the header present?
  9332. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9333. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9334. cat >conftest.$ac_ext <<_ACEOF
  9335. /* confdefs.h. */
  9336. _ACEOF
  9337. cat confdefs.h >>conftest.$ac_ext
  9338. cat >>conftest.$ac_ext <<_ACEOF
  9339. /* end confdefs.h. */
  9340. #include <$ac_header>
  9341. _ACEOF
  9342. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9343. case "(($ac_try" in
  9344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9345. *) ac_try_echo=$ac_try;;
  9346. esac
  9347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9349. ac_status=$?
  9350. grep -v '^ *+' conftest.er1 >conftest.err
  9351. rm -f conftest.er1
  9352. cat conftest.err >&5
  9353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9354. (exit $ac_status); } >/dev/null && {
  9355. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9356. test ! -s conftest.err
  9357. }; then
  9358. ac_header_preproc=yes
  9359. else
  9360. echo "$as_me: failed program was:" >&5
  9361. sed 's/^/| /' conftest.$ac_ext >&5
  9362. ac_header_preproc=no
  9363. fi
  9364. rm -f conftest.err conftest.$ac_ext
  9365. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9366. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9367. # So? What about this header?
  9368. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9369. yes:no: )
  9370. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9371. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9372. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9373. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9374. ac_header_preproc=yes
  9375. ;;
  9376. no:yes:* )
  9377. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9378. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9379. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9380. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9381. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9382. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9383. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9384. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9385. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9386. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9387. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9388. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9389. ( cat <<\_ASBOX
  9390. ## ----------------------------------------------- ##
  9391. ## Report this to t-tujikawa@users.sourceforge.net ##
  9392. ## ----------------------------------------------- ##
  9393. _ASBOX
  9394. ) | sed "s/^/$as_me: WARNING: /" >&2
  9395. ;;
  9396. esac
  9397. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9398. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9400. echo $ECHO_N "(cached) $ECHO_C" >&6
  9401. else
  9402. eval "$as_ac_Header=\$ac_header_preproc"
  9403. fi
  9404. ac_res=`eval echo '${'$as_ac_Header'}'`
  9405. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9406. echo "${ECHO_T}$ac_res" >&6; }
  9407. fi
  9408. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9409. cat >>confdefs.h <<_ACEOF
  9410. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9411. _ACEOF
  9412. fi
  9413. done
  9414. for ac_func in getpagesize
  9415. do
  9416. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9417. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9418. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9419. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9420. echo $ECHO_N "(cached) $ECHO_C" >&6
  9421. else
  9422. cat >conftest.$ac_ext <<_ACEOF
  9423. /* confdefs.h. */
  9424. _ACEOF
  9425. cat confdefs.h >>conftest.$ac_ext
  9426. cat >>conftest.$ac_ext <<_ACEOF
  9427. /* end confdefs.h. */
  9428. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9429. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9430. #define $ac_func innocuous_$ac_func
  9431. /* System header to define __stub macros and hopefully few prototypes,
  9432. which can conflict with char $ac_func (); below.
  9433. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9434. <limits.h> exists even on freestanding compilers. */
  9435. #ifdef __STDC__
  9436. # include <limits.h>
  9437. #else
  9438. # include <assert.h>
  9439. #endif
  9440. #undef $ac_func
  9441. /* Override any GCC internal prototype to avoid an error.
  9442. Use char because int might match the return type of a GCC
  9443. builtin and then its argument prototype would still apply. */
  9444. #ifdef __cplusplus
  9445. extern "C"
  9446. #endif
  9447. char $ac_func ();
  9448. /* The GNU C library defines this for functions which it implements
  9449. to always fail with ENOSYS. Some functions are actually named
  9450. something starting with __ and the normal name is an alias. */
  9451. #if defined __stub_$ac_func || defined __stub___$ac_func
  9452. choke me
  9453. #endif
  9454. int
  9455. main ()
  9456. {
  9457. return $ac_func ();
  9458. ;
  9459. return 0;
  9460. }
  9461. _ACEOF
  9462. rm -f conftest.$ac_objext conftest$ac_exeext
  9463. if { (ac_try="$ac_link"
  9464. case "(($ac_try" in
  9465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9466. *) ac_try_echo=$ac_try;;
  9467. esac
  9468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9469. (eval "$ac_link") 2>conftest.er1
  9470. ac_status=$?
  9471. grep -v '^ *+' conftest.er1 >conftest.err
  9472. rm -f conftest.er1
  9473. cat conftest.err >&5
  9474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9475. (exit $ac_status); } && {
  9476. test -z "$ac_cxx_werror_flag" ||
  9477. test ! -s conftest.err
  9478. } && test -s conftest$ac_exeext &&
  9479. $as_test_x conftest$ac_exeext; then
  9480. eval "$as_ac_var=yes"
  9481. else
  9482. echo "$as_me: failed program was:" >&5
  9483. sed 's/^/| /' conftest.$ac_ext >&5
  9484. eval "$as_ac_var=no"
  9485. fi
  9486. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9487. conftest$ac_exeext conftest.$ac_ext
  9488. fi
  9489. ac_res=`eval echo '${'$as_ac_var'}'`
  9490. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9491. echo "${ECHO_T}$ac_res" >&6; }
  9492. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9493. cat >>confdefs.h <<_ACEOF
  9494. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9495. _ACEOF
  9496. fi
  9497. done
  9498. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9499. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9500. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9501. echo $ECHO_N "(cached) $ECHO_C" >&6
  9502. else
  9503. if test "$cross_compiling" = yes; then
  9504. ac_cv_func_mmap_fixed_mapped=no
  9505. else
  9506. cat >conftest.$ac_ext <<_ACEOF
  9507. /* confdefs.h. */
  9508. _ACEOF
  9509. cat confdefs.h >>conftest.$ac_ext
  9510. cat >>conftest.$ac_ext <<_ACEOF
  9511. /* end confdefs.h. */
  9512. $ac_includes_default
  9513. /* malloc might have been renamed as rpl_malloc. */
  9514. #undef malloc
  9515. /* Thanks to Mike Haertel and Jim Avera for this test.
  9516. Here is a matrix of mmap possibilities:
  9517. mmap private not fixed
  9518. mmap private fixed at somewhere currently unmapped
  9519. mmap private fixed at somewhere already mapped
  9520. mmap shared not fixed
  9521. mmap shared fixed at somewhere currently unmapped
  9522. mmap shared fixed at somewhere already mapped
  9523. For private mappings, we should verify that changes cannot be read()
  9524. back from the file, nor mmap's back from the file at a different
  9525. address. (There have been systems where private was not correctly
  9526. implemented like the infamous i386 svr4.0, and systems where the
  9527. VM page cache was not coherent with the file system buffer cache
  9528. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9529. For shared mappings, we should conversely verify that changes get
  9530. propagated back to all the places they're supposed to be.
  9531. Grep wants private fixed already mapped.
  9532. The main things grep needs to know about mmap are:
  9533. * does it exist and is it safe to write into the mmap'd area
  9534. * how to use it (BSD variants) */
  9535. #include <fcntl.h>
  9536. #include <sys/mman.h>
  9537. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9538. char *malloc ();
  9539. #endif
  9540. /* This mess was copied from the GNU getpagesize.h. */
  9541. #ifndef HAVE_GETPAGESIZE
  9542. /* Assume that all systems that can run configure have sys/param.h. */
  9543. # ifndef HAVE_SYS_PARAM_H
  9544. # define HAVE_SYS_PARAM_H 1
  9545. # endif
  9546. # ifdef _SC_PAGESIZE
  9547. # define getpagesize() sysconf(_SC_PAGESIZE)
  9548. # else /* no _SC_PAGESIZE */
  9549. # ifdef HAVE_SYS_PARAM_H
  9550. # include <sys/param.h>
  9551. # ifdef EXEC_PAGESIZE
  9552. # define getpagesize() EXEC_PAGESIZE
  9553. # else /* no EXEC_PAGESIZE */
  9554. # ifdef NBPG
  9555. # define getpagesize() NBPG * CLSIZE
  9556. # ifndef CLSIZE
  9557. # define CLSIZE 1
  9558. # endif /* no CLSIZE */
  9559. # else /* no NBPG */
  9560. # ifdef NBPC
  9561. # define getpagesize() NBPC
  9562. # else /* no NBPC */
  9563. # ifdef PAGESIZE
  9564. # define getpagesize() PAGESIZE
  9565. # endif /* PAGESIZE */
  9566. # endif /* no NBPC */
  9567. # endif /* no NBPG */
  9568. # endif /* no EXEC_PAGESIZE */
  9569. # else /* no HAVE_SYS_PARAM_H */
  9570. # define getpagesize() 8192 /* punt totally */
  9571. # endif /* no HAVE_SYS_PARAM_H */
  9572. # endif /* no _SC_PAGESIZE */
  9573. #endif /* no HAVE_GETPAGESIZE */
  9574. int
  9575. main ()
  9576. {
  9577. char *data, *data2, *data3;
  9578. int i, pagesize;
  9579. int fd;
  9580. pagesize = getpagesize ();
  9581. /* First, make a file with some known garbage in it. */
  9582. data = (char *) malloc (pagesize);
  9583. if (!data)
  9584. return 1;
  9585. for (i = 0; i < pagesize; ++i)
  9586. *(data + i) = rand ();
  9587. umask (0);
  9588. fd = creat ("conftest.mmap", 0600);
  9589. if (fd < 0)
  9590. return 1;
  9591. if (write (fd, data, pagesize) != pagesize)
  9592. return 1;
  9593. close (fd);
  9594. /* Next, try to mmap the file at a fixed address which already has
  9595. something else allocated at it. If we can, also make sure that
  9596. we see the same garbage. */
  9597. fd = open ("conftest.mmap", O_RDWR);
  9598. if (fd < 0)
  9599. return 1;
  9600. data2 = (char *) malloc (2 * pagesize);
  9601. if (!data2)
  9602. return 1;
  9603. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9604. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9605. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9606. return 1;
  9607. for (i = 0; i < pagesize; ++i)
  9608. if (*(data + i) != *(data2 + i))
  9609. return 1;
  9610. /* Finally, make sure that changes to the mapped area do not
  9611. percolate back to the file as seen by read(). (This is a bug on
  9612. some variants of i386 svr4.0.) */
  9613. for (i = 0; i < pagesize; ++i)
  9614. *(data2 + i) = *(data2 + i) + 1;
  9615. data3 = (char *) malloc (pagesize);
  9616. if (!data3)
  9617. return 1;
  9618. if (read (fd, data3, pagesize) != pagesize)
  9619. return 1;
  9620. for (i = 0; i < pagesize; ++i)
  9621. if (*(data + i) != *(data3 + i))
  9622. return 1;
  9623. close (fd);
  9624. return 0;
  9625. }
  9626. _ACEOF
  9627. rm -f conftest$ac_exeext
  9628. if { (ac_try="$ac_link"
  9629. case "(($ac_try" in
  9630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9631. *) ac_try_echo=$ac_try;;
  9632. esac
  9633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9634. (eval "$ac_link") 2>&5
  9635. ac_status=$?
  9636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9637. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9638. { (case "(($ac_try" in
  9639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9640. *) ac_try_echo=$ac_try;;
  9641. esac
  9642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9643. (eval "$ac_try") 2>&5
  9644. ac_status=$?
  9645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9646. (exit $ac_status); }; }; then
  9647. ac_cv_func_mmap_fixed_mapped=yes
  9648. else
  9649. echo "$as_me: program exited with status $ac_status" >&5
  9650. echo "$as_me: failed program was:" >&5
  9651. sed 's/^/| /' conftest.$ac_ext >&5
  9652. ( exit $ac_status )
  9653. ac_cv_func_mmap_fixed_mapped=no
  9654. fi
  9655. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9656. fi
  9657. fi
  9658. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9659. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9660. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9661. cat >>confdefs.h <<\_ACEOF
  9662. #define HAVE_MMAP 1
  9663. _ACEOF
  9664. fi
  9665. rm -f conftest.mmap
  9666. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9667. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9668. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9669. echo $ECHO_N "(cached) $ECHO_C" >&6
  9670. else
  9671. gt_cv_int_divbyzero_sigfpe=
  9672. case "$host_os" in
  9673. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9674. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9675. # compiling. If we were to perform the real test, 1 Crash Report
  9676. # dialog window would pop up.
  9677. case "$host_cpu" in
  9678. i[34567]86 | x86_64)
  9679. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9680. esac
  9681. ;;
  9682. esac
  9683. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9684. if test "$cross_compiling" = yes; then
  9685. # Guess based on the CPU.
  9686. case "$host_cpu" in
  9687. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9688. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9689. *)
  9690. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9691. esac
  9692. else
  9693. cat >conftest.$ac_ext <<_ACEOF
  9694. /* confdefs.h. */
  9695. _ACEOF
  9696. cat confdefs.h >>conftest.$ac_ext
  9697. cat >>conftest.$ac_ext <<_ACEOF
  9698. /* end confdefs.h. */
  9699. #include <stdlib.h>
  9700. #include <signal.h>
  9701. static void
  9702. sigfpe_handler (int sig)
  9703. {
  9704. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9705. exit (sig != SIGFPE);
  9706. }
  9707. int x = 1;
  9708. int y = 0;
  9709. int z;
  9710. int nan;
  9711. int main ()
  9712. {
  9713. signal (SIGFPE, sigfpe_handler);
  9714. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9715. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9716. signal (SIGTRAP, sigfpe_handler);
  9717. #endif
  9718. /* Linux/SPARC yields signal SIGILL. */
  9719. #if defined (__sparc__) && defined (__linux__)
  9720. signal (SIGILL, sigfpe_handler);
  9721. #endif
  9722. z = x / y;
  9723. nan = y / y;
  9724. exit (1);
  9725. }
  9726. _ACEOF
  9727. rm -f conftest$ac_exeext
  9728. if { (ac_try="$ac_link"
  9729. case "(($ac_try" in
  9730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9731. *) ac_try_echo=$ac_try;;
  9732. esac
  9733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9734. (eval "$ac_link") 2>&5
  9735. ac_status=$?
  9736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9737. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9738. { (case "(($ac_try" in
  9739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9740. *) ac_try_echo=$ac_try;;
  9741. esac
  9742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9743. (eval "$ac_try") 2>&5
  9744. ac_status=$?
  9745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9746. (exit $ac_status); }; }; then
  9747. gt_cv_int_divbyzero_sigfpe=yes
  9748. else
  9749. echo "$as_me: program exited with status $ac_status" >&5
  9750. echo "$as_me: failed program was:" >&5
  9751. sed 's/^/| /' conftest.$ac_ext >&5
  9752. ( exit $ac_status )
  9753. gt_cv_int_divbyzero_sigfpe=no
  9754. fi
  9755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9756. fi
  9757. fi
  9758. fi
  9759. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9760. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9761. case "$gt_cv_int_divbyzero_sigfpe" in
  9762. *yes) value=1;;
  9763. *) value=0;;
  9764. esac
  9765. cat >>confdefs.h <<_ACEOF
  9766. #define INTDIV0_RAISES_SIGFPE $value
  9767. _ACEOF
  9768. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9769. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9770. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9771. echo $ECHO_N "(cached) $ECHO_C" >&6
  9772. else
  9773. cat >conftest.$ac_ext <<_ACEOF
  9774. /* confdefs.h. */
  9775. _ACEOF
  9776. cat confdefs.h >>conftest.$ac_ext
  9777. cat >>conftest.$ac_ext <<_ACEOF
  9778. /* end confdefs.h. */
  9779. #include <sys/types.h>
  9780. #include <inttypes.h>
  9781. int
  9782. main ()
  9783. {
  9784. uintmax_t i = (uintmax_t) -1; return !i;
  9785. ;
  9786. return 0;
  9787. }
  9788. _ACEOF
  9789. rm -f conftest.$ac_objext
  9790. if { (ac_try="$ac_compile"
  9791. case "(($ac_try" in
  9792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9793. *) ac_try_echo=$ac_try;;
  9794. esac
  9795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9796. (eval "$ac_compile") 2>conftest.er1
  9797. ac_status=$?
  9798. grep -v '^ *+' conftest.er1 >conftest.err
  9799. rm -f conftest.er1
  9800. cat conftest.err >&5
  9801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9802. (exit $ac_status); } && {
  9803. test -z "$ac_cxx_werror_flag" ||
  9804. test ! -s conftest.err
  9805. } && test -s conftest.$ac_objext; then
  9806. gl_cv_header_inttypes_h=yes
  9807. else
  9808. echo "$as_me: failed program was:" >&5
  9809. sed 's/^/| /' conftest.$ac_ext >&5
  9810. gl_cv_header_inttypes_h=no
  9811. fi
  9812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9813. fi
  9814. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9815. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9816. if test $gl_cv_header_inttypes_h = yes; then
  9817. cat >>confdefs.h <<_ACEOF
  9818. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9819. _ACEOF
  9820. fi
  9821. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9822. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9823. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9824. echo $ECHO_N "(cached) $ECHO_C" >&6
  9825. else
  9826. cat >conftest.$ac_ext <<_ACEOF
  9827. /* confdefs.h. */
  9828. _ACEOF
  9829. cat confdefs.h >>conftest.$ac_ext
  9830. cat >>conftest.$ac_ext <<_ACEOF
  9831. /* end confdefs.h. */
  9832. /* Test preprocessor. */
  9833. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9834. error in preprocessor;
  9835. #endif
  9836. #if ! (18446744073709551615ULL <= -1ull)
  9837. error in preprocessor;
  9838. #endif
  9839. /* Test literals. */
  9840. long long int ll = 9223372036854775807ll;
  9841. long long int nll = -9223372036854775807LL;
  9842. unsigned long long int ull = 18446744073709551615ULL;
  9843. /* Test constant expressions. */
  9844. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9845. ? 1 : -1)];
  9846. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9847. ? 1 : -1)];
  9848. int i = 63;
  9849. int
  9850. main ()
  9851. {
  9852. /* Test availability of runtime routines for shift and division. */
  9853. long long int llmax = 9223372036854775807ll;
  9854. unsigned long long int ullmax = 18446744073709551615ull;
  9855. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9856. | (llmax / ll) | (llmax % ll)
  9857. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9858. | (ullmax / ull) | (ullmax % ull));
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. rm -f conftest.$ac_objext conftest$ac_exeext
  9864. if { (ac_try="$ac_link"
  9865. case "(($ac_try" in
  9866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9867. *) ac_try_echo=$ac_try;;
  9868. esac
  9869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9870. (eval "$ac_link") 2>conftest.er1
  9871. ac_status=$?
  9872. grep -v '^ *+' conftest.er1 >conftest.err
  9873. rm -f conftest.er1
  9874. cat conftest.err >&5
  9875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9876. (exit $ac_status); } && {
  9877. test -z "$ac_cxx_werror_flag" ||
  9878. test ! -s conftest.err
  9879. } && test -s conftest$ac_exeext &&
  9880. $as_test_x conftest$ac_exeext; then
  9881. ac_cv_type_unsigned_long_long_int=yes
  9882. else
  9883. echo "$as_me: failed program was:" >&5
  9884. sed 's/^/| /' conftest.$ac_ext >&5
  9885. ac_cv_type_unsigned_long_long_int=no
  9886. fi
  9887. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9888. conftest$ac_exeext conftest.$ac_ext
  9889. fi
  9890. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9891. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9892. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9893. cat >>confdefs.h <<\_ACEOF
  9894. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9895. _ACEOF
  9896. fi
  9897. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9898. test $ac_cv_type_unsigned_long_long_int = yes \
  9899. && ac_type='unsigned long long' \
  9900. || ac_type='unsigned long'
  9901. cat >>confdefs.h <<_ACEOF
  9902. #define uintmax_t $ac_type
  9903. _ACEOF
  9904. else
  9905. cat >>confdefs.h <<\_ACEOF
  9906. #define HAVE_UINTMAX_T 1
  9907. _ACEOF
  9908. fi
  9909. for ac_header in inttypes.h
  9910. do
  9911. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9913. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9914. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9915. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9916. echo $ECHO_N "(cached) $ECHO_C" >&6
  9917. fi
  9918. ac_res=`eval echo '${'$as_ac_Header'}'`
  9919. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9920. echo "${ECHO_T}$ac_res" >&6; }
  9921. else
  9922. # Is the header compilable?
  9923. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9924. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9925. cat >conftest.$ac_ext <<_ACEOF
  9926. /* confdefs.h. */
  9927. _ACEOF
  9928. cat confdefs.h >>conftest.$ac_ext
  9929. cat >>conftest.$ac_ext <<_ACEOF
  9930. /* end confdefs.h. */
  9931. $ac_includes_default
  9932. #include <$ac_header>
  9933. _ACEOF
  9934. rm -f conftest.$ac_objext
  9935. if { (ac_try="$ac_compile"
  9936. case "(($ac_try" in
  9937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9938. *) ac_try_echo=$ac_try;;
  9939. esac
  9940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9941. (eval "$ac_compile") 2>conftest.er1
  9942. ac_status=$?
  9943. grep -v '^ *+' conftest.er1 >conftest.err
  9944. rm -f conftest.er1
  9945. cat conftest.err >&5
  9946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } && {
  9948. test -z "$ac_cxx_werror_flag" ||
  9949. test ! -s conftest.err
  9950. } && test -s conftest.$ac_objext; then
  9951. ac_header_compiler=yes
  9952. else
  9953. echo "$as_me: failed program was:" >&5
  9954. sed 's/^/| /' conftest.$ac_ext >&5
  9955. ac_header_compiler=no
  9956. fi
  9957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9958. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9959. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9960. # Is the header present?
  9961. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9962. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9963. cat >conftest.$ac_ext <<_ACEOF
  9964. /* confdefs.h. */
  9965. _ACEOF
  9966. cat confdefs.h >>conftest.$ac_ext
  9967. cat >>conftest.$ac_ext <<_ACEOF
  9968. /* end confdefs.h. */
  9969. #include <$ac_header>
  9970. _ACEOF
  9971. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9972. case "(($ac_try" in
  9973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9974. *) ac_try_echo=$ac_try;;
  9975. esac
  9976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9977. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9978. ac_status=$?
  9979. grep -v '^ *+' conftest.er1 >conftest.err
  9980. rm -f conftest.er1
  9981. cat conftest.err >&5
  9982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9983. (exit $ac_status); } >/dev/null && {
  9984. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9985. test ! -s conftest.err
  9986. }; then
  9987. ac_header_preproc=yes
  9988. else
  9989. echo "$as_me: failed program was:" >&5
  9990. sed 's/^/| /' conftest.$ac_ext >&5
  9991. ac_header_preproc=no
  9992. fi
  9993. rm -f conftest.err conftest.$ac_ext
  9994. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9995. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9996. # So? What about this header?
  9997. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9998. yes:no: )
  9999. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10000. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10001. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10002. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10003. ac_header_preproc=yes
  10004. ;;
  10005. no:yes:* )
  10006. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10007. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10008. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10009. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10010. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10011. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10012. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10013. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10014. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10015. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10016. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10017. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10018. ( cat <<\_ASBOX
  10019. ## ----------------------------------------------- ##
  10020. ## Report this to t-tujikawa@users.sourceforge.net ##
  10021. ## ----------------------------------------------- ##
  10022. _ASBOX
  10023. ) | sed "s/^/$as_me: WARNING: /" >&2
  10024. ;;
  10025. esac
  10026. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10027. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10028. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10029. echo $ECHO_N "(cached) $ECHO_C" >&6
  10030. else
  10031. eval "$as_ac_Header=\$ac_header_preproc"
  10032. fi
  10033. ac_res=`eval echo '${'$as_ac_Header'}'`
  10034. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10035. echo "${ECHO_T}$ac_res" >&6; }
  10036. fi
  10037. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10038. cat >>confdefs.h <<_ACEOF
  10039. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10040. _ACEOF
  10041. fi
  10042. done
  10043. if test $ac_cv_header_inttypes_h = yes; then
  10044. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10045. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10046. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10047. echo $ECHO_N "(cached) $ECHO_C" >&6
  10048. else
  10049. cat >conftest.$ac_ext <<_ACEOF
  10050. /* confdefs.h. */
  10051. _ACEOF
  10052. cat confdefs.h >>conftest.$ac_ext
  10053. cat >>conftest.$ac_ext <<_ACEOF
  10054. /* end confdefs.h. */
  10055. #include <inttypes.h>
  10056. #ifdef PRId32
  10057. char *p = PRId32;
  10058. #endif
  10059. int
  10060. main ()
  10061. {
  10062. ;
  10063. return 0;
  10064. }
  10065. _ACEOF
  10066. rm -f conftest.$ac_objext
  10067. if { (ac_try="$ac_compile"
  10068. case "(($ac_try" in
  10069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10070. *) ac_try_echo=$ac_try;;
  10071. esac
  10072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10073. (eval "$ac_compile") 2>conftest.er1
  10074. ac_status=$?
  10075. grep -v '^ *+' conftest.er1 >conftest.err
  10076. rm -f conftest.er1
  10077. cat conftest.err >&5
  10078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10079. (exit $ac_status); } && {
  10080. test -z "$ac_cxx_werror_flag" ||
  10081. test ! -s conftest.err
  10082. } && test -s conftest.$ac_objext; then
  10083. gt_cv_inttypes_pri_broken=no
  10084. else
  10085. echo "$as_me: failed program was:" >&5
  10086. sed 's/^/| /' conftest.$ac_ext >&5
  10087. gt_cv_inttypes_pri_broken=yes
  10088. fi
  10089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10090. fi
  10091. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10092. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10093. fi
  10094. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10095. cat >>confdefs.h <<_ACEOF
  10096. #define PRI_MACROS_BROKEN 1
  10097. _ACEOF
  10098. PRI_MACROS_BROKEN=1
  10099. else
  10100. PRI_MACROS_BROKEN=0
  10101. fi
  10102. # Check whether --enable-threads was given.
  10103. if test "${enable_threads+set}" = set; then
  10104. enableval=$enable_threads; gl_use_threads=$enableval
  10105. else
  10106. case "$host_os" in
  10107. osf*) gl_use_threads=no ;;
  10108. *) gl_use_threads=yes ;;
  10109. esac
  10110. fi
  10111. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10112. # For using <pthread.h>:
  10113. case "$host_os" in
  10114. osf*)
  10115. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10116. # groks <pthread.h>. cc also understands the flag -pthread, but
  10117. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10118. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10119. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10120. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10121. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10122. ;;
  10123. esac
  10124. # Some systems optimize for single-threaded programs by default, and
  10125. # need special flags to disable these optimizations. For example, the
  10126. # definition of 'errno' in <errno.h>.
  10127. case "$host_os" in
  10128. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10129. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10130. esac
  10131. fi
  10132. if test "X$prefix" = "XNONE"; then
  10133. acl_final_prefix="$ac_default_prefix"
  10134. else
  10135. acl_final_prefix="$prefix"
  10136. fi
  10137. if test "X$exec_prefix" = "XNONE"; then
  10138. acl_final_exec_prefix='${prefix}'
  10139. else
  10140. acl_final_exec_prefix="$exec_prefix"
  10141. fi
  10142. acl_save_prefix="$prefix"
  10143. prefix="$acl_final_prefix"
  10144. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10145. prefix="$acl_save_prefix"
  10146. # Check whether --with-gnu-ld was given.
  10147. if test "${with_gnu_ld+set}" = set; then
  10148. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10149. else
  10150. with_gnu_ld=no
  10151. fi
  10152. # Prepare PATH_SEPARATOR.
  10153. # The user is always right.
  10154. if test "${PATH_SEPARATOR+set}" != set; then
  10155. echo "#! /bin/sh" >conf$$.sh
  10156. echo "exit 0" >>conf$$.sh
  10157. chmod +x conf$$.sh
  10158. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10159. PATH_SEPARATOR=';'
  10160. else
  10161. PATH_SEPARATOR=:
  10162. fi
  10163. rm -f conf$$.sh
  10164. fi
  10165. ac_prog=ld
  10166. if test "$GCC" = yes; then
  10167. # Check if gcc -print-prog-name=ld gives a path.
  10168. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10169. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10170. case $host in
  10171. *-*-mingw*)
  10172. # gcc leaves a trailing carriage return which upsets mingw
  10173. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10174. *)
  10175. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10176. esac
  10177. case $ac_prog in
  10178. # Accept absolute paths.
  10179. [\\/]* | [A-Za-z]:[\\/]*)
  10180. re_direlt='/[^/][^/]*/\.\./'
  10181. # Canonicalize the path of ld
  10182. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10183. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10184. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10185. done
  10186. test -z "$LD" && LD="$ac_prog"
  10187. ;;
  10188. "")
  10189. # If it fails, then pretend we aren't using GCC.
  10190. ac_prog=ld
  10191. ;;
  10192. *)
  10193. # If it is relative, then search for the first ld in PATH.
  10194. with_gnu_ld=unknown
  10195. ;;
  10196. esac
  10197. elif test "$with_gnu_ld" = yes; then
  10198. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10199. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10200. else
  10201. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10202. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10203. fi
  10204. if test "${acl_cv_path_LD+set}" = set; then
  10205. echo $ECHO_N "(cached) $ECHO_C" >&6
  10206. else
  10207. if test -z "$LD"; then
  10208. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10209. for ac_dir in $PATH; do
  10210. test -z "$ac_dir" && ac_dir=.
  10211. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10212. acl_cv_path_LD="$ac_dir/$ac_prog"
  10213. # Check to see if the program is GNU ld. I'd rather use --version,
  10214. # but apparently some GNU ld's only accept -v.
  10215. # Break only if it was the GNU/non-GNU ld that we prefer.
  10216. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10217. *GNU* | *'with BFD'*)
  10218. test "$with_gnu_ld" != no && break ;;
  10219. *)
  10220. test "$with_gnu_ld" != yes && break ;;
  10221. esac
  10222. fi
  10223. done
  10224. IFS="$ac_save_ifs"
  10225. else
  10226. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10227. fi
  10228. fi
  10229. LD="$acl_cv_path_LD"
  10230. if test -n "$LD"; then
  10231. { echo "$as_me:$LINENO: result: $LD" >&5
  10232. echo "${ECHO_T}$LD" >&6; }
  10233. else
  10234. { echo "$as_me:$LINENO: result: no" >&5
  10235. echo "${ECHO_T}no" >&6; }
  10236. fi
  10237. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10238. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10239. { (exit 1); exit 1; }; }
  10240. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10241. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10242. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10243. echo $ECHO_N "(cached) $ECHO_C" >&6
  10244. else
  10245. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10246. case `$LD -v 2>&1 </dev/null` in
  10247. *GNU* | *'with BFD'*)
  10248. acl_cv_prog_gnu_ld=yes ;;
  10249. *)
  10250. acl_cv_prog_gnu_ld=no ;;
  10251. esac
  10252. fi
  10253. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10254. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10255. with_gnu_ld=$acl_cv_prog_gnu_ld
  10256. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10257. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10258. if test "${acl_cv_rpath+set}" = set; then
  10259. echo $ECHO_N "(cached) $ECHO_C" >&6
  10260. else
  10261. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10262. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10263. . ./conftest.sh
  10264. rm -f ./conftest.sh
  10265. acl_cv_rpath=done
  10266. fi
  10267. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10268. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10269. wl="$acl_cv_wl"
  10270. acl_libext="$acl_cv_libext"
  10271. acl_shlibext="$acl_cv_shlibext"
  10272. acl_libname_spec="$acl_cv_libname_spec"
  10273. acl_library_names_spec="$acl_cv_library_names_spec"
  10274. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10275. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10276. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10277. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10278. # Check whether --enable-rpath was given.
  10279. if test "${enable_rpath+set}" = set; then
  10280. enableval=$enable_rpath; :
  10281. else
  10282. enable_rpath=yes
  10283. fi
  10284. acl_libdirstem=lib
  10285. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10286. if test -n "$searchpath"; then
  10287. acl_save_IFS="${IFS= }"; IFS=":"
  10288. for searchdir in $searchpath; do
  10289. if test -d "$searchdir"; then
  10290. case "$searchdir" in
  10291. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10292. *) searchdir=`cd "$searchdir" && pwd`
  10293. case "$searchdir" in
  10294. */lib64 ) acl_libdirstem=lib64 ;;
  10295. esac ;;
  10296. esac
  10297. fi
  10298. done
  10299. IFS="$acl_save_IFS"
  10300. fi
  10301. gl_threads_api=none
  10302. LIBTHREAD=
  10303. LTLIBTHREAD=
  10304. LIBMULTITHREAD=
  10305. LTLIBMULTITHREAD=
  10306. if test "$gl_use_threads" != no; then
  10307. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10308. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10309. gl_have_weak=no
  10310. cat >conftest.$ac_ext <<_ACEOF
  10311. /* confdefs.h. */
  10312. _ACEOF
  10313. cat confdefs.h >>conftest.$ac_ext
  10314. cat >>conftest.$ac_ext <<_ACEOF
  10315. /* end confdefs.h. */
  10316. extern void xyzzy ();
  10317. #pragma weak xyzzy
  10318. int
  10319. main ()
  10320. {
  10321. xyzzy();
  10322. ;
  10323. return 0;
  10324. }
  10325. _ACEOF
  10326. rm -f conftest.$ac_objext conftest$ac_exeext
  10327. if { (ac_try="$ac_link"
  10328. case "(($ac_try" in
  10329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10330. *) ac_try_echo=$ac_try;;
  10331. esac
  10332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10333. (eval "$ac_link") 2>conftest.er1
  10334. ac_status=$?
  10335. grep -v '^ *+' conftest.er1 >conftest.err
  10336. rm -f conftest.er1
  10337. cat conftest.err >&5
  10338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10339. (exit $ac_status); } && {
  10340. test -z "$ac_cxx_werror_flag" ||
  10341. test ! -s conftest.err
  10342. } && test -s conftest$ac_exeext &&
  10343. $as_test_x conftest$ac_exeext; then
  10344. gl_have_weak=yes
  10345. else
  10346. echo "$as_me: failed program was:" >&5
  10347. sed 's/^/| /' conftest.$ac_ext >&5
  10348. fi
  10349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10350. conftest$ac_exeext conftest.$ac_ext
  10351. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10352. echo "${ECHO_T}$gl_have_weak" >&6; }
  10353. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10354. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10355. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10356. if test "${ac_cv_header_pthread_h+set}" = set; then
  10357. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10358. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10359. if test "${ac_cv_header_pthread_h+set}" = set; then
  10360. echo $ECHO_N "(cached) $ECHO_C" >&6
  10361. fi
  10362. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10363. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10364. else
  10365. # Is the header compilable?
  10366. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10367. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10368. cat >conftest.$ac_ext <<_ACEOF
  10369. /* confdefs.h. */
  10370. _ACEOF
  10371. cat confdefs.h >>conftest.$ac_ext
  10372. cat >>conftest.$ac_ext <<_ACEOF
  10373. /* end confdefs.h. */
  10374. $ac_includes_default
  10375. #include <pthread.h>
  10376. _ACEOF
  10377. rm -f conftest.$ac_objext
  10378. if { (ac_try="$ac_compile"
  10379. case "(($ac_try" in
  10380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10381. *) ac_try_echo=$ac_try;;
  10382. esac
  10383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10384. (eval "$ac_compile") 2>conftest.er1
  10385. ac_status=$?
  10386. grep -v '^ *+' conftest.er1 >conftest.err
  10387. rm -f conftest.er1
  10388. cat conftest.err >&5
  10389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10390. (exit $ac_status); } && {
  10391. test -z "$ac_cxx_werror_flag" ||
  10392. test ! -s conftest.err
  10393. } && test -s conftest.$ac_objext; then
  10394. ac_header_compiler=yes
  10395. else
  10396. echo "$as_me: failed program was:" >&5
  10397. sed 's/^/| /' conftest.$ac_ext >&5
  10398. ac_header_compiler=no
  10399. fi
  10400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10401. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10402. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10403. # Is the header present?
  10404. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10405. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10406. cat >conftest.$ac_ext <<_ACEOF
  10407. /* confdefs.h. */
  10408. _ACEOF
  10409. cat confdefs.h >>conftest.$ac_ext
  10410. cat >>conftest.$ac_ext <<_ACEOF
  10411. /* end confdefs.h. */
  10412. #include <pthread.h>
  10413. _ACEOF
  10414. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10415. case "(($ac_try" in
  10416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10417. *) ac_try_echo=$ac_try;;
  10418. esac
  10419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10420. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10421. ac_status=$?
  10422. grep -v '^ *+' conftest.er1 >conftest.err
  10423. rm -f conftest.er1
  10424. cat conftest.err >&5
  10425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10426. (exit $ac_status); } >/dev/null && {
  10427. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10428. test ! -s conftest.err
  10429. }; then
  10430. ac_header_preproc=yes
  10431. else
  10432. echo "$as_me: failed program was:" >&5
  10433. sed 's/^/| /' conftest.$ac_ext >&5
  10434. ac_header_preproc=no
  10435. fi
  10436. rm -f conftest.err conftest.$ac_ext
  10437. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10438. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10439. # So? What about this header?
  10440. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10441. yes:no: )
  10442. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10443. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10444. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10445. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10446. ac_header_preproc=yes
  10447. ;;
  10448. no:yes:* )
  10449. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10450. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10451. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10452. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10453. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10454. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10455. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10456. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10457. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10458. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10459. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10460. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10461. ( cat <<\_ASBOX
  10462. ## ----------------------------------------------- ##
  10463. ## Report this to t-tujikawa@users.sourceforge.net ##
  10464. ## ----------------------------------------------- ##
  10465. _ASBOX
  10466. ) | sed "s/^/$as_me: WARNING: /" >&2
  10467. ;;
  10468. esac
  10469. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10470. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10471. if test "${ac_cv_header_pthread_h+set}" = set; then
  10472. echo $ECHO_N "(cached) $ECHO_C" >&6
  10473. else
  10474. ac_cv_header_pthread_h=$ac_header_preproc
  10475. fi
  10476. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10477. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10478. fi
  10479. if test $ac_cv_header_pthread_h = yes; then
  10480. gl_have_pthread_h=yes
  10481. else
  10482. gl_have_pthread_h=no
  10483. fi
  10484. if test "$gl_have_pthread_h" = yes; then
  10485. # Other possible tests:
  10486. # -lpthreads (FSU threads, PCthreads)
  10487. # -lgthreads
  10488. gl_have_pthread=
  10489. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10490. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10491. # the second one only in libpthread, and lock.c needs it.
  10492. cat >conftest.$ac_ext <<_ACEOF
  10493. /* confdefs.h. */
  10494. _ACEOF
  10495. cat confdefs.h >>conftest.$ac_ext
  10496. cat >>conftest.$ac_ext <<_ACEOF
  10497. /* end confdefs.h. */
  10498. #include <pthread.h>
  10499. int
  10500. main ()
  10501. {
  10502. pthread_mutex_lock((pthread_mutex_t*)0);
  10503. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. rm -f conftest.$ac_objext conftest$ac_exeext
  10509. if { (ac_try="$ac_link"
  10510. case "(($ac_try" in
  10511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10512. *) ac_try_echo=$ac_try;;
  10513. esac
  10514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10515. (eval "$ac_link") 2>conftest.er1
  10516. ac_status=$?
  10517. grep -v '^ *+' conftest.er1 >conftest.err
  10518. rm -f conftest.er1
  10519. cat conftest.err >&5
  10520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10521. (exit $ac_status); } && {
  10522. test -z "$ac_cxx_werror_flag" ||
  10523. test ! -s conftest.err
  10524. } && test -s conftest$ac_exeext &&
  10525. $as_test_x conftest$ac_exeext; then
  10526. gl_have_pthread=yes
  10527. else
  10528. echo "$as_me: failed program was:" >&5
  10529. sed 's/^/| /' conftest.$ac_ext >&5
  10530. fi
  10531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10532. conftest$ac_exeext conftest.$ac_ext
  10533. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10534. # since it is defined as a macro on OSF/1.)
  10535. if test -n "$gl_have_pthread"; then
  10536. # The program links fine without libpthread. But it may actually
  10537. # need to link with libpthread in order to create multiple threads.
  10538. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10539. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10540. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10541. echo $ECHO_N "(cached) $ECHO_C" >&6
  10542. else
  10543. ac_check_lib_save_LIBS=$LIBS
  10544. LIBS="-lpthread $LIBS"
  10545. cat >conftest.$ac_ext <<_ACEOF
  10546. /* confdefs.h. */
  10547. _ACEOF
  10548. cat confdefs.h >>conftest.$ac_ext
  10549. cat >>conftest.$ac_ext <<_ACEOF
  10550. /* end confdefs.h. */
  10551. /* Override any GCC internal prototype to avoid an error.
  10552. Use char because int might match the return type of a GCC
  10553. builtin and then its argument prototype would still apply. */
  10554. #ifdef __cplusplus
  10555. extern "C"
  10556. #endif
  10557. char pthread_kill ();
  10558. int
  10559. main ()
  10560. {
  10561. return pthread_kill ();
  10562. ;
  10563. return 0;
  10564. }
  10565. _ACEOF
  10566. rm -f conftest.$ac_objext conftest$ac_exeext
  10567. if { (ac_try="$ac_link"
  10568. case "(($ac_try" in
  10569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10570. *) ac_try_echo=$ac_try;;
  10571. esac
  10572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10573. (eval "$ac_link") 2>conftest.er1
  10574. ac_status=$?
  10575. grep -v '^ *+' conftest.er1 >conftest.err
  10576. rm -f conftest.er1
  10577. cat conftest.err >&5
  10578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10579. (exit $ac_status); } && {
  10580. test -z "$ac_cxx_werror_flag" ||
  10581. test ! -s conftest.err
  10582. } && test -s conftest$ac_exeext &&
  10583. $as_test_x conftest$ac_exeext; then
  10584. ac_cv_lib_pthread_pthread_kill=yes
  10585. else
  10586. echo "$as_me: failed program was:" >&5
  10587. sed 's/^/| /' conftest.$ac_ext >&5
  10588. ac_cv_lib_pthread_pthread_kill=no
  10589. fi
  10590. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10591. conftest$ac_exeext conftest.$ac_ext
  10592. LIBS=$ac_check_lib_save_LIBS
  10593. fi
  10594. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10595. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10596. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10597. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10598. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10599. # Therefore pthread_in_use() needs to actually try to create a
  10600. # thread: pthread_create from libc will fail, whereas
  10601. # pthread_create will actually create a thread.
  10602. case "$host_os" in
  10603. solaris* | hpux*)
  10604. cat >>confdefs.h <<\_ACEOF
  10605. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10606. _ACEOF
  10607. esac
  10608. fi
  10609. else
  10610. # Some library is needed. Try libpthread and libc_r.
  10611. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10612. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10613. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10614. echo $ECHO_N "(cached) $ECHO_C" >&6
  10615. else
  10616. ac_check_lib_save_LIBS=$LIBS
  10617. LIBS="-lpthread $LIBS"
  10618. cat >conftest.$ac_ext <<_ACEOF
  10619. /* confdefs.h. */
  10620. _ACEOF
  10621. cat confdefs.h >>conftest.$ac_ext
  10622. cat >>conftest.$ac_ext <<_ACEOF
  10623. /* end confdefs.h. */
  10624. /* Override any GCC internal prototype to avoid an error.
  10625. Use char because int might match the return type of a GCC
  10626. builtin and then its argument prototype would still apply. */
  10627. #ifdef __cplusplus
  10628. extern "C"
  10629. #endif
  10630. char pthread_kill ();
  10631. int
  10632. main ()
  10633. {
  10634. return pthread_kill ();
  10635. ;
  10636. return 0;
  10637. }
  10638. _ACEOF
  10639. rm -f conftest.$ac_objext conftest$ac_exeext
  10640. if { (ac_try="$ac_link"
  10641. case "(($ac_try" in
  10642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10643. *) ac_try_echo=$ac_try;;
  10644. esac
  10645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10646. (eval "$ac_link") 2>conftest.er1
  10647. ac_status=$?
  10648. grep -v '^ *+' conftest.er1 >conftest.err
  10649. rm -f conftest.er1
  10650. cat conftest.err >&5
  10651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10652. (exit $ac_status); } && {
  10653. test -z "$ac_cxx_werror_flag" ||
  10654. test ! -s conftest.err
  10655. } && test -s conftest$ac_exeext &&
  10656. $as_test_x conftest$ac_exeext; then
  10657. ac_cv_lib_pthread_pthread_kill=yes
  10658. else
  10659. echo "$as_me: failed program was:" >&5
  10660. sed 's/^/| /' conftest.$ac_ext >&5
  10661. ac_cv_lib_pthread_pthread_kill=no
  10662. fi
  10663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10664. conftest$ac_exeext conftest.$ac_ext
  10665. LIBS=$ac_check_lib_save_LIBS
  10666. fi
  10667. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10668. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10669. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10670. gl_have_pthread=yes
  10671. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10672. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10673. fi
  10674. if test -z "$gl_have_pthread"; then
  10675. # For FreeBSD 4.
  10676. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10677. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10678. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10679. echo $ECHO_N "(cached) $ECHO_C" >&6
  10680. else
  10681. ac_check_lib_save_LIBS=$LIBS
  10682. LIBS="-lc_r $LIBS"
  10683. cat >conftest.$ac_ext <<_ACEOF
  10684. /* confdefs.h. */
  10685. _ACEOF
  10686. cat confdefs.h >>conftest.$ac_ext
  10687. cat >>conftest.$ac_ext <<_ACEOF
  10688. /* end confdefs.h. */
  10689. /* Override any GCC internal prototype to avoid an error.
  10690. Use char because int might match the return type of a GCC
  10691. builtin and then its argument prototype would still apply. */
  10692. #ifdef __cplusplus
  10693. extern "C"
  10694. #endif
  10695. char pthread_kill ();
  10696. int
  10697. main ()
  10698. {
  10699. return pthread_kill ();
  10700. ;
  10701. return 0;
  10702. }
  10703. _ACEOF
  10704. rm -f conftest.$ac_objext conftest$ac_exeext
  10705. if { (ac_try="$ac_link"
  10706. case "(($ac_try" in
  10707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10708. *) ac_try_echo=$ac_try;;
  10709. esac
  10710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10711. (eval "$ac_link") 2>conftest.er1
  10712. ac_status=$?
  10713. grep -v '^ *+' conftest.er1 >conftest.err
  10714. rm -f conftest.er1
  10715. cat conftest.err >&5
  10716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10717. (exit $ac_status); } && {
  10718. test -z "$ac_cxx_werror_flag" ||
  10719. test ! -s conftest.err
  10720. } && test -s conftest$ac_exeext &&
  10721. $as_test_x conftest$ac_exeext; then
  10722. ac_cv_lib_c_r_pthread_kill=yes
  10723. else
  10724. echo "$as_me: failed program was:" >&5
  10725. sed 's/^/| /' conftest.$ac_ext >&5
  10726. ac_cv_lib_c_r_pthread_kill=no
  10727. fi
  10728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10729. conftest$ac_exeext conftest.$ac_ext
  10730. LIBS=$ac_check_lib_save_LIBS
  10731. fi
  10732. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10733. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10734. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10735. gl_have_pthread=yes
  10736. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10737. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10738. fi
  10739. fi
  10740. fi
  10741. if test -n "$gl_have_pthread"; then
  10742. gl_threads_api=posix
  10743. cat >>confdefs.h <<\_ACEOF
  10744. #define USE_POSIX_THREADS 1
  10745. _ACEOF
  10746. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10747. if test $gl_have_weak = yes; then
  10748. cat >>confdefs.h <<\_ACEOF
  10749. #define USE_POSIX_THREADS_WEAK 1
  10750. _ACEOF
  10751. LIBTHREAD=
  10752. LTLIBTHREAD=
  10753. fi
  10754. fi
  10755. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10756. # pthread_rwlock_* functions.
  10757. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10758. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10759. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10760. echo $ECHO_N "(cached) $ECHO_C" >&6
  10761. else
  10762. cat >conftest.$ac_ext <<_ACEOF
  10763. /* confdefs.h. */
  10764. _ACEOF
  10765. cat confdefs.h >>conftest.$ac_ext
  10766. cat >>conftest.$ac_ext <<_ACEOF
  10767. /* end confdefs.h. */
  10768. #include <pthread.h>
  10769. typedef pthread_rwlock_t ac__type_new_;
  10770. int
  10771. main ()
  10772. {
  10773. if ((ac__type_new_ *) 0)
  10774. return 0;
  10775. if (sizeof (ac__type_new_))
  10776. return 0;
  10777. ;
  10778. return 0;
  10779. }
  10780. _ACEOF
  10781. rm -f conftest.$ac_objext
  10782. if { (ac_try="$ac_compile"
  10783. case "(($ac_try" in
  10784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10785. *) ac_try_echo=$ac_try;;
  10786. esac
  10787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10788. (eval "$ac_compile") 2>conftest.er1
  10789. ac_status=$?
  10790. grep -v '^ *+' conftest.er1 >conftest.err
  10791. rm -f conftest.er1
  10792. cat conftest.err >&5
  10793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10794. (exit $ac_status); } && {
  10795. test -z "$ac_cxx_werror_flag" ||
  10796. test ! -s conftest.err
  10797. } && test -s conftest.$ac_objext; then
  10798. ac_cv_type_pthread_rwlock_t=yes
  10799. else
  10800. echo "$as_me: failed program was:" >&5
  10801. sed 's/^/| /' conftest.$ac_ext >&5
  10802. ac_cv_type_pthread_rwlock_t=no
  10803. fi
  10804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10805. fi
  10806. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10807. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10808. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10809. cat >>confdefs.h <<\_ACEOF
  10810. #define HAVE_PTHREAD_RWLOCK 1
  10811. _ACEOF
  10812. fi
  10813. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10814. cat >conftest.$ac_ext <<_ACEOF
  10815. /* confdefs.h. */
  10816. _ACEOF
  10817. cat confdefs.h >>conftest.$ac_ext
  10818. cat >>conftest.$ac_ext <<_ACEOF
  10819. /* end confdefs.h. */
  10820. #include <pthread.h>
  10821. int
  10822. main ()
  10823. {
  10824. #if __FreeBSD__ == 4
  10825. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10826. #else
  10827. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10828. return !x;
  10829. #endif
  10830. ;
  10831. return 0;
  10832. }
  10833. _ACEOF
  10834. rm -f conftest.$ac_objext
  10835. if { (ac_try="$ac_compile"
  10836. case "(($ac_try" in
  10837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10838. *) ac_try_echo=$ac_try;;
  10839. esac
  10840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10841. (eval "$ac_compile") 2>conftest.er1
  10842. ac_status=$?
  10843. grep -v '^ *+' conftest.er1 >conftest.err
  10844. rm -f conftest.er1
  10845. cat conftest.err >&5
  10846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10847. (exit $ac_status); } && {
  10848. test -z "$ac_cxx_werror_flag" ||
  10849. test ! -s conftest.err
  10850. } && test -s conftest.$ac_objext; then
  10851. cat >>confdefs.h <<\_ACEOF
  10852. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10853. _ACEOF
  10854. else
  10855. echo "$as_me: failed program was:" >&5
  10856. sed 's/^/| /' conftest.$ac_ext >&5
  10857. fi
  10858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10859. fi
  10860. fi
  10861. fi
  10862. if test -z "$gl_have_pthread"; then
  10863. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10864. gl_have_solaristhread=
  10865. gl_save_LIBS="$LIBS"
  10866. LIBS="$LIBS -lthread"
  10867. cat >conftest.$ac_ext <<_ACEOF
  10868. /* confdefs.h. */
  10869. _ACEOF
  10870. cat confdefs.h >>conftest.$ac_ext
  10871. cat >>conftest.$ac_ext <<_ACEOF
  10872. /* end confdefs.h. */
  10873. #include <thread.h>
  10874. #include <synch.h>
  10875. int
  10876. main ()
  10877. {
  10878. thr_self();
  10879. ;
  10880. return 0;
  10881. }
  10882. _ACEOF
  10883. rm -f conftest.$ac_objext conftest$ac_exeext
  10884. if { (ac_try="$ac_link"
  10885. case "(($ac_try" in
  10886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10887. *) ac_try_echo=$ac_try;;
  10888. esac
  10889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10890. (eval "$ac_link") 2>conftest.er1
  10891. ac_status=$?
  10892. grep -v '^ *+' conftest.er1 >conftest.err
  10893. rm -f conftest.er1
  10894. cat conftest.err >&5
  10895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10896. (exit $ac_status); } && {
  10897. test -z "$ac_cxx_werror_flag" ||
  10898. test ! -s conftest.err
  10899. } && test -s conftest$ac_exeext &&
  10900. $as_test_x conftest$ac_exeext; then
  10901. gl_have_solaristhread=yes
  10902. else
  10903. echo "$as_me: failed program was:" >&5
  10904. sed 's/^/| /' conftest.$ac_ext >&5
  10905. fi
  10906. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10907. conftest$ac_exeext conftest.$ac_ext
  10908. LIBS="$gl_save_LIBS"
  10909. if test -n "$gl_have_solaristhread"; then
  10910. gl_threads_api=solaris
  10911. LIBTHREAD=-lthread
  10912. LTLIBTHREAD=-lthread
  10913. LIBMULTITHREAD="$LIBTHREAD"
  10914. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10915. cat >>confdefs.h <<\_ACEOF
  10916. #define USE_SOLARIS_THREADS 1
  10917. _ACEOF
  10918. if test $gl_have_weak = yes; then
  10919. cat >>confdefs.h <<\_ACEOF
  10920. #define USE_SOLARIS_THREADS_WEAK 1
  10921. _ACEOF
  10922. LIBTHREAD=
  10923. LTLIBTHREAD=
  10924. fi
  10925. fi
  10926. fi
  10927. fi
  10928. if test "$gl_use_threads" = pth; then
  10929. gl_save_CPPFLAGS="$CPPFLAGS"
  10930. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10931. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10932. if test "${ac_cv_libpth_libs+set}" = set; then
  10933. echo $ECHO_N "(cached) $ECHO_C" >&6
  10934. else
  10935. use_additional=yes
  10936. acl_save_prefix="$prefix"
  10937. prefix="$acl_final_prefix"
  10938. acl_save_exec_prefix="$exec_prefix"
  10939. exec_prefix="$acl_final_exec_prefix"
  10940. eval additional_includedir=\"$includedir\"
  10941. eval additional_libdir=\"$libdir\"
  10942. exec_prefix="$acl_save_exec_prefix"
  10943. prefix="$acl_save_prefix"
  10944. # Check whether --with-libpth-prefix was given.
  10945. if test "${with_libpth_prefix+set}" = set; then
  10946. withval=$with_libpth_prefix;
  10947. if test "X$withval" = "Xno"; then
  10948. use_additional=no
  10949. else
  10950. if test "X$withval" = "X"; then
  10951. acl_save_prefix="$prefix"
  10952. prefix="$acl_final_prefix"
  10953. acl_save_exec_prefix="$exec_prefix"
  10954. exec_prefix="$acl_final_exec_prefix"
  10955. eval additional_includedir=\"$includedir\"
  10956. eval additional_libdir=\"$libdir\"
  10957. exec_prefix="$acl_save_exec_prefix"
  10958. prefix="$acl_save_prefix"
  10959. else
  10960. additional_includedir="$withval/include"
  10961. additional_libdir="$withval/$acl_libdirstem"
  10962. fi
  10963. fi
  10964. fi
  10965. LIBPTH=
  10966. LTLIBPTH=
  10967. INCPTH=
  10968. LIBPTH_PREFIX=
  10969. rpathdirs=
  10970. ltrpathdirs=
  10971. names_already_handled=
  10972. names_next_round='pth '
  10973. while test -n "$names_next_round"; do
  10974. names_this_round="$names_next_round"
  10975. names_next_round=
  10976. for name in $names_this_round; do
  10977. already_handled=
  10978. for n in $names_already_handled; do
  10979. if test "$n" = "$name"; then
  10980. already_handled=yes
  10981. break
  10982. fi
  10983. done
  10984. if test -z "$already_handled"; then
  10985. names_already_handled="$names_already_handled $name"
  10986. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10987. eval value=\"\$HAVE_LIB$uppername\"
  10988. if test -n "$value"; then
  10989. if test "$value" = yes; then
  10990. eval value=\"\$LIB$uppername\"
  10991. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10992. eval value=\"\$LTLIB$uppername\"
  10993. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10994. else
  10995. :
  10996. fi
  10997. else
  10998. found_dir=
  10999. found_la=
  11000. found_so=
  11001. found_a=
  11002. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11003. if test -n "$acl_shlibext"; then
  11004. shrext=".$acl_shlibext" # typically: shrext=.so
  11005. else
  11006. shrext=
  11007. fi
  11008. if test $use_additional = yes; then
  11009. dir="$additional_libdir"
  11010. if test -n "$acl_shlibext"; then
  11011. if test -f "$dir/$libname$shrext"; then
  11012. found_dir="$dir"
  11013. found_so="$dir/$libname$shrext"
  11014. else
  11015. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11016. ver=`(cd "$dir" && \
  11017. for f in "$libname$shrext".*; do echo "$f"; done \
  11018. | sed -e "s,^$libname$shrext\\\\.,," \
  11019. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11020. | sed 1q ) 2>/dev/null`
  11021. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11022. found_dir="$dir"
  11023. found_so="$dir/$libname$shrext.$ver"
  11024. fi
  11025. else
  11026. eval library_names=\"$acl_library_names_spec\"
  11027. for f in $library_names; do
  11028. if test -f "$dir/$f"; then
  11029. found_dir="$dir"
  11030. found_so="$dir/$f"
  11031. break
  11032. fi
  11033. done
  11034. fi
  11035. fi
  11036. fi
  11037. if test "X$found_dir" = "X"; then
  11038. if test -f "$dir/$libname.$acl_libext"; then
  11039. found_dir="$dir"
  11040. found_a="$dir/$libname.$acl_libext"
  11041. fi
  11042. fi
  11043. if test "X$found_dir" != "X"; then
  11044. if test -f "$dir/$libname.la"; then
  11045. found_la="$dir/$libname.la"
  11046. fi
  11047. fi
  11048. fi
  11049. if test "X$found_dir" = "X"; then
  11050. for x in $LDFLAGS $LTLIBPTH; do
  11051. acl_save_prefix="$prefix"
  11052. prefix="$acl_final_prefix"
  11053. acl_save_exec_prefix="$exec_prefix"
  11054. exec_prefix="$acl_final_exec_prefix"
  11055. eval x=\"$x\"
  11056. exec_prefix="$acl_save_exec_prefix"
  11057. prefix="$acl_save_prefix"
  11058. case "$x" in
  11059. -L*)
  11060. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11061. if test -n "$acl_shlibext"; then
  11062. if test -f "$dir/$libname$shrext"; then
  11063. found_dir="$dir"
  11064. found_so="$dir/$libname$shrext"
  11065. else
  11066. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11067. ver=`(cd "$dir" && \
  11068. for f in "$libname$shrext".*; do echo "$f"; done \
  11069. | sed -e "s,^$libname$shrext\\\\.,," \
  11070. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11071. | sed 1q ) 2>/dev/null`
  11072. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11073. found_dir="$dir"
  11074. found_so="$dir/$libname$shrext.$ver"
  11075. fi
  11076. else
  11077. eval library_names=\"$acl_library_names_spec\"
  11078. for f in $library_names; do
  11079. if test -f "$dir/$f"; then
  11080. found_dir="$dir"
  11081. found_so="$dir/$f"
  11082. break
  11083. fi
  11084. done
  11085. fi
  11086. fi
  11087. fi
  11088. if test "X$found_dir" = "X"; then
  11089. if test -f "$dir/$libname.$acl_libext"; then
  11090. found_dir="$dir"
  11091. found_a="$dir/$libname.$acl_libext"
  11092. fi
  11093. fi
  11094. if test "X$found_dir" != "X"; then
  11095. if test -f "$dir/$libname.la"; then
  11096. found_la="$dir/$libname.la"
  11097. fi
  11098. fi
  11099. ;;
  11100. esac
  11101. if test "X$found_dir" != "X"; then
  11102. break
  11103. fi
  11104. done
  11105. fi
  11106. if test "X$found_dir" != "X"; then
  11107. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11108. if test "X$found_so" != "X"; then
  11109. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11110. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11111. else
  11112. haveit=
  11113. for x in $ltrpathdirs; do
  11114. if test "X$x" = "X$found_dir"; then
  11115. haveit=yes
  11116. break
  11117. fi
  11118. done
  11119. if test -z "$haveit"; then
  11120. ltrpathdirs="$ltrpathdirs $found_dir"
  11121. fi
  11122. if test "$acl_hardcode_direct" = yes; then
  11123. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11124. else
  11125. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11126. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11127. haveit=
  11128. for x in $rpathdirs; do
  11129. if test "X$x" = "X$found_dir"; then
  11130. haveit=yes
  11131. break
  11132. fi
  11133. done
  11134. if test -z "$haveit"; then
  11135. rpathdirs="$rpathdirs $found_dir"
  11136. fi
  11137. else
  11138. haveit=
  11139. for x in $LDFLAGS $LIBPTH; do
  11140. acl_save_prefix="$prefix"
  11141. prefix="$acl_final_prefix"
  11142. acl_save_exec_prefix="$exec_prefix"
  11143. exec_prefix="$acl_final_exec_prefix"
  11144. eval x=\"$x\"
  11145. exec_prefix="$acl_save_exec_prefix"
  11146. prefix="$acl_save_prefix"
  11147. if test "X$x" = "X-L$found_dir"; then
  11148. haveit=yes
  11149. break
  11150. fi
  11151. done
  11152. if test -z "$haveit"; then
  11153. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11154. fi
  11155. if test "$acl_hardcode_minus_L" != no; then
  11156. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11157. else
  11158. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11159. fi
  11160. fi
  11161. fi
  11162. fi
  11163. else
  11164. if test "X$found_a" != "X"; then
  11165. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11166. else
  11167. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11168. fi
  11169. fi
  11170. additional_includedir=
  11171. case "$found_dir" in
  11172. */$acl_libdirstem | */$acl_libdirstem/)
  11173. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11174. LIBPTH_PREFIX="$basedir"
  11175. additional_includedir="$basedir/include"
  11176. ;;
  11177. esac
  11178. if test "X$additional_includedir" != "X"; then
  11179. if test "X$additional_includedir" != "X/usr/include"; then
  11180. haveit=
  11181. if test "X$additional_includedir" = "X/usr/local/include"; then
  11182. if test -n "$GCC"; then
  11183. case $host_os in
  11184. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11185. esac
  11186. fi
  11187. fi
  11188. if test -z "$haveit"; then
  11189. for x in $CPPFLAGS $INCPTH; do
  11190. acl_save_prefix="$prefix"
  11191. prefix="$acl_final_prefix"
  11192. acl_save_exec_prefix="$exec_prefix"
  11193. exec_prefix="$acl_final_exec_prefix"
  11194. eval x=\"$x\"
  11195. exec_prefix="$acl_save_exec_prefix"
  11196. prefix="$acl_save_prefix"
  11197. if test "X$x" = "X-I$additional_includedir"; then
  11198. haveit=yes
  11199. break
  11200. fi
  11201. done
  11202. if test -z "$haveit"; then
  11203. if test -d "$additional_includedir"; then
  11204. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11205. fi
  11206. fi
  11207. fi
  11208. fi
  11209. fi
  11210. if test -n "$found_la"; then
  11211. save_libdir="$libdir"
  11212. case "$found_la" in
  11213. */* | *\\*) . "$found_la" ;;
  11214. *) . "./$found_la" ;;
  11215. esac
  11216. libdir="$save_libdir"
  11217. for dep in $dependency_libs; do
  11218. case "$dep" in
  11219. -L*)
  11220. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11221. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11222. haveit=
  11223. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11224. if test -n "$GCC"; then
  11225. case $host_os in
  11226. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11227. esac
  11228. fi
  11229. fi
  11230. if test -z "$haveit"; then
  11231. haveit=
  11232. for x in $LDFLAGS $LIBPTH; do
  11233. acl_save_prefix="$prefix"
  11234. prefix="$acl_final_prefix"
  11235. acl_save_exec_prefix="$exec_prefix"
  11236. exec_prefix="$acl_final_exec_prefix"
  11237. eval x=\"$x\"
  11238. exec_prefix="$acl_save_exec_prefix"
  11239. prefix="$acl_save_prefix"
  11240. if test "X$x" = "X-L$additional_libdir"; then
  11241. haveit=yes
  11242. break
  11243. fi
  11244. done
  11245. if test -z "$haveit"; then
  11246. if test -d "$additional_libdir"; then
  11247. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11248. fi
  11249. fi
  11250. haveit=
  11251. for x in $LDFLAGS $LTLIBPTH; do
  11252. acl_save_prefix="$prefix"
  11253. prefix="$acl_final_prefix"
  11254. acl_save_exec_prefix="$exec_prefix"
  11255. exec_prefix="$acl_final_exec_prefix"
  11256. eval x=\"$x\"
  11257. exec_prefix="$acl_save_exec_prefix"
  11258. prefix="$acl_save_prefix"
  11259. if test "X$x" = "X-L$additional_libdir"; then
  11260. haveit=yes
  11261. break
  11262. fi
  11263. done
  11264. if test -z "$haveit"; then
  11265. if test -d "$additional_libdir"; then
  11266. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11267. fi
  11268. fi
  11269. fi
  11270. fi
  11271. ;;
  11272. -R*)
  11273. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11274. if test "$enable_rpath" != no; then
  11275. haveit=
  11276. for x in $rpathdirs; do
  11277. if test "X$x" = "X$dir"; then
  11278. haveit=yes
  11279. break
  11280. fi
  11281. done
  11282. if test -z "$haveit"; then
  11283. rpathdirs="$rpathdirs $dir"
  11284. fi
  11285. haveit=
  11286. for x in $ltrpathdirs; do
  11287. if test "X$x" = "X$dir"; then
  11288. haveit=yes
  11289. break
  11290. fi
  11291. done
  11292. if test -z "$haveit"; then
  11293. ltrpathdirs="$ltrpathdirs $dir"
  11294. fi
  11295. fi
  11296. ;;
  11297. -l*)
  11298. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11299. ;;
  11300. *.la)
  11301. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11302. ;;
  11303. *)
  11304. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11305. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11306. ;;
  11307. esac
  11308. done
  11309. fi
  11310. else
  11311. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11312. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11313. fi
  11314. fi
  11315. fi
  11316. done
  11317. done
  11318. if test "X$rpathdirs" != "X"; then
  11319. if test -n "$acl_hardcode_libdir_separator"; then
  11320. alldirs=
  11321. for found_dir in $rpathdirs; do
  11322. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11323. done
  11324. acl_save_libdir="$libdir"
  11325. libdir="$alldirs"
  11326. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11327. libdir="$acl_save_libdir"
  11328. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11329. else
  11330. for found_dir in $rpathdirs; do
  11331. acl_save_libdir="$libdir"
  11332. libdir="$found_dir"
  11333. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11334. libdir="$acl_save_libdir"
  11335. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11336. done
  11337. fi
  11338. fi
  11339. if test "X$ltrpathdirs" != "X"; then
  11340. for found_dir in $ltrpathdirs; do
  11341. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11342. done
  11343. fi
  11344. ac_cv_libpth_libs="$LIBPTH"
  11345. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11346. ac_cv_libpth_cppflags="$INCPTH"
  11347. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11348. fi
  11349. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11350. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11351. LIBPTH="$ac_cv_libpth_libs"
  11352. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11353. INCPTH="$ac_cv_libpth_cppflags"
  11354. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11355. for element in $INCPTH; do
  11356. haveit=
  11357. for x in $CPPFLAGS; do
  11358. acl_save_prefix="$prefix"
  11359. prefix="$acl_final_prefix"
  11360. acl_save_exec_prefix="$exec_prefix"
  11361. exec_prefix="$acl_final_exec_prefix"
  11362. eval x=\"$x\"
  11363. exec_prefix="$acl_save_exec_prefix"
  11364. prefix="$acl_save_prefix"
  11365. if test "X$x" = "X$element"; then
  11366. haveit=yes
  11367. break
  11368. fi
  11369. done
  11370. if test -z "$haveit"; then
  11371. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11372. fi
  11373. done
  11374. HAVE_LIBPTH=yes
  11375. gl_have_pth=
  11376. gl_save_LIBS="$LIBS"
  11377. LIBS="$LIBS -lpth"
  11378. cat >conftest.$ac_ext <<_ACEOF
  11379. /* confdefs.h. */
  11380. _ACEOF
  11381. cat confdefs.h >>conftest.$ac_ext
  11382. cat >>conftest.$ac_ext <<_ACEOF
  11383. /* end confdefs.h. */
  11384. #include <pth.h>
  11385. int
  11386. main ()
  11387. {
  11388. pth_self();
  11389. ;
  11390. return 0;
  11391. }
  11392. _ACEOF
  11393. rm -f conftest.$ac_objext conftest$ac_exeext
  11394. if { (ac_try="$ac_link"
  11395. case "(($ac_try" in
  11396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11397. *) ac_try_echo=$ac_try;;
  11398. esac
  11399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11400. (eval "$ac_link") 2>conftest.er1
  11401. ac_status=$?
  11402. grep -v '^ *+' conftest.er1 >conftest.err
  11403. rm -f conftest.er1
  11404. cat conftest.err >&5
  11405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11406. (exit $ac_status); } && {
  11407. test -z "$ac_cxx_werror_flag" ||
  11408. test ! -s conftest.err
  11409. } && test -s conftest$ac_exeext &&
  11410. $as_test_x conftest$ac_exeext; then
  11411. gl_have_pth=yes
  11412. else
  11413. echo "$as_me: failed program was:" >&5
  11414. sed 's/^/| /' conftest.$ac_ext >&5
  11415. fi
  11416. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11417. conftest$ac_exeext conftest.$ac_ext
  11418. LIBS="$gl_save_LIBS"
  11419. if test -n "$gl_have_pth"; then
  11420. gl_threads_api=pth
  11421. LIBTHREAD="$LIBPTH"
  11422. LTLIBTHREAD="$LTLIBPTH"
  11423. LIBMULTITHREAD="$LIBTHREAD"
  11424. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11425. cat >>confdefs.h <<\_ACEOF
  11426. #define USE_PTH_THREADS 1
  11427. _ACEOF
  11428. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11429. if test $gl_have_weak = yes; then
  11430. cat >>confdefs.h <<\_ACEOF
  11431. #define USE_PTH_THREADS_WEAK 1
  11432. _ACEOF
  11433. LIBTHREAD=
  11434. LTLIBTHREAD=
  11435. fi
  11436. fi
  11437. else
  11438. CPPFLAGS="$gl_save_CPPFLAGS"
  11439. fi
  11440. fi
  11441. if test -z "$gl_have_pthread"; then
  11442. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11443. if { case "$host_os" in
  11444. mingw*) true;;
  11445. *) false;;
  11446. esac
  11447. }; then
  11448. gl_threads_api=win32
  11449. cat >>confdefs.h <<\_ACEOF
  11450. #define USE_WIN32_THREADS 1
  11451. _ACEOF
  11452. fi
  11453. fi
  11454. fi
  11455. fi
  11456. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11457. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11458. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11459. echo "${ECHO_T}$gl_threads_api" >&6; }
  11460. use_additional=yes
  11461. acl_save_prefix="$prefix"
  11462. prefix="$acl_final_prefix"
  11463. acl_save_exec_prefix="$exec_prefix"
  11464. exec_prefix="$acl_final_exec_prefix"
  11465. eval additional_includedir=\"$includedir\"
  11466. eval additional_libdir=\"$libdir\"
  11467. exec_prefix="$acl_save_exec_prefix"
  11468. prefix="$acl_save_prefix"
  11469. # Check whether --with-libiconv-prefix was given.
  11470. if test "${with_libiconv_prefix+set}" = set; then
  11471. withval=$with_libiconv_prefix;
  11472. if test "X$withval" = "Xno"; then
  11473. use_additional=no
  11474. else
  11475. if test "X$withval" = "X"; then
  11476. acl_save_prefix="$prefix"
  11477. prefix="$acl_final_prefix"
  11478. acl_save_exec_prefix="$exec_prefix"
  11479. exec_prefix="$acl_final_exec_prefix"
  11480. eval additional_includedir=\"$includedir\"
  11481. eval additional_libdir=\"$libdir\"
  11482. exec_prefix="$acl_save_exec_prefix"
  11483. prefix="$acl_save_prefix"
  11484. else
  11485. additional_includedir="$withval/include"
  11486. additional_libdir="$withval/$acl_libdirstem"
  11487. fi
  11488. fi
  11489. fi
  11490. LIBICONV=
  11491. LTLIBICONV=
  11492. INCICONV=
  11493. LIBICONV_PREFIX=
  11494. rpathdirs=
  11495. ltrpathdirs=
  11496. names_already_handled=
  11497. names_next_round='iconv '
  11498. while test -n "$names_next_round"; do
  11499. names_this_round="$names_next_round"
  11500. names_next_round=
  11501. for name in $names_this_round; do
  11502. already_handled=
  11503. for n in $names_already_handled; do
  11504. if test "$n" = "$name"; then
  11505. already_handled=yes
  11506. break
  11507. fi
  11508. done
  11509. if test -z "$already_handled"; then
  11510. names_already_handled="$names_already_handled $name"
  11511. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11512. eval value=\"\$HAVE_LIB$uppername\"
  11513. if test -n "$value"; then
  11514. if test "$value" = yes; then
  11515. eval value=\"\$LIB$uppername\"
  11516. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11517. eval value=\"\$LTLIB$uppername\"
  11518. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11519. else
  11520. :
  11521. fi
  11522. else
  11523. found_dir=
  11524. found_la=
  11525. found_so=
  11526. found_a=
  11527. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11528. if test -n "$acl_shlibext"; then
  11529. shrext=".$acl_shlibext" # typically: shrext=.so
  11530. else
  11531. shrext=
  11532. fi
  11533. if test $use_additional = yes; then
  11534. dir="$additional_libdir"
  11535. if test -n "$acl_shlibext"; then
  11536. if test -f "$dir/$libname$shrext"; then
  11537. found_dir="$dir"
  11538. found_so="$dir/$libname$shrext"
  11539. else
  11540. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11541. ver=`(cd "$dir" && \
  11542. for f in "$libname$shrext".*; do echo "$f"; done \
  11543. | sed -e "s,^$libname$shrext\\\\.,," \
  11544. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11545. | sed 1q ) 2>/dev/null`
  11546. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11547. found_dir="$dir"
  11548. found_so="$dir/$libname$shrext.$ver"
  11549. fi
  11550. else
  11551. eval library_names=\"$acl_library_names_spec\"
  11552. for f in $library_names; do
  11553. if test -f "$dir/$f"; then
  11554. found_dir="$dir"
  11555. found_so="$dir/$f"
  11556. break
  11557. fi
  11558. done
  11559. fi
  11560. fi
  11561. fi
  11562. if test "X$found_dir" = "X"; then
  11563. if test -f "$dir/$libname.$acl_libext"; then
  11564. found_dir="$dir"
  11565. found_a="$dir/$libname.$acl_libext"
  11566. fi
  11567. fi
  11568. if test "X$found_dir" != "X"; then
  11569. if test -f "$dir/$libname.la"; then
  11570. found_la="$dir/$libname.la"
  11571. fi
  11572. fi
  11573. fi
  11574. if test "X$found_dir" = "X"; then
  11575. for x in $LDFLAGS $LTLIBICONV; do
  11576. acl_save_prefix="$prefix"
  11577. prefix="$acl_final_prefix"
  11578. acl_save_exec_prefix="$exec_prefix"
  11579. exec_prefix="$acl_final_exec_prefix"
  11580. eval x=\"$x\"
  11581. exec_prefix="$acl_save_exec_prefix"
  11582. prefix="$acl_save_prefix"
  11583. case "$x" in
  11584. -L*)
  11585. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11586. if test -n "$acl_shlibext"; then
  11587. if test -f "$dir/$libname$shrext"; then
  11588. found_dir="$dir"
  11589. found_so="$dir/$libname$shrext"
  11590. else
  11591. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11592. ver=`(cd "$dir" && \
  11593. for f in "$libname$shrext".*; do echo "$f"; done \
  11594. | sed -e "s,^$libname$shrext\\\\.,," \
  11595. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11596. | sed 1q ) 2>/dev/null`
  11597. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11598. found_dir="$dir"
  11599. found_so="$dir/$libname$shrext.$ver"
  11600. fi
  11601. else
  11602. eval library_names=\"$acl_library_names_spec\"
  11603. for f in $library_names; do
  11604. if test -f "$dir/$f"; then
  11605. found_dir="$dir"
  11606. found_so="$dir/$f"
  11607. break
  11608. fi
  11609. done
  11610. fi
  11611. fi
  11612. fi
  11613. if test "X$found_dir" = "X"; then
  11614. if test -f "$dir/$libname.$acl_libext"; then
  11615. found_dir="$dir"
  11616. found_a="$dir/$libname.$acl_libext"
  11617. fi
  11618. fi
  11619. if test "X$found_dir" != "X"; then
  11620. if test -f "$dir/$libname.la"; then
  11621. found_la="$dir/$libname.la"
  11622. fi
  11623. fi
  11624. ;;
  11625. esac
  11626. if test "X$found_dir" != "X"; then
  11627. break
  11628. fi
  11629. done
  11630. fi
  11631. if test "X$found_dir" != "X"; then
  11632. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11633. if test "X$found_so" != "X"; then
  11634. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11635. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11636. else
  11637. haveit=
  11638. for x in $ltrpathdirs; do
  11639. if test "X$x" = "X$found_dir"; then
  11640. haveit=yes
  11641. break
  11642. fi
  11643. done
  11644. if test -z "$haveit"; then
  11645. ltrpathdirs="$ltrpathdirs $found_dir"
  11646. fi
  11647. if test "$acl_hardcode_direct" = yes; then
  11648. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11649. else
  11650. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11651. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11652. haveit=
  11653. for x in $rpathdirs; do
  11654. if test "X$x" = "X$found_dir"; then
  11655. haveit=yes
  11656. break
  11657. fi
  11658. done
  11659. if test -z "$haveit"; then
  11660. rpathdirs="$rpathdirs $found_dir"
  11661. fi
  11662. else
  11663. haveit=
  11664. for x in $LDFLAGS $LIBICONV; do
  11665. acl_save_prefix="$prefix"
  11666. prefix="$acl_final_prefix"
  11667. acl_save_exec_prefix="$exec_prefix"
  11668. exec_prefix="$acl_final_exec_prefix"
  11669. eval x=\"$x\"
  11670. exec_prefix="$acl_save_exec_prefix"
  11671. prefix="$acl_save_prefix"
  11672. if test "X$x" = "X-L$found_dir"; then
  11673. haveit=yes
  11674. break
  11675. fi
  11676. done
  11677. if test -z "$haveit"; then
  11678. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11679. fi
  11680. if test "$acl_hardcode_minus_L" != no; then
  11681. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11682. else
  11683. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11684. fi
  11685. fi
  11686. fi
  11687. fi
  11688. else
  11689. if test "X$found_a" != "X"; then
  11690. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11691. else
  11692. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11693. fi
  11694. fi
  11695. additional_includedir=
  11696. case "$found_dir" in
  11697. */$acl_libdirstem | */$acl_libdirstem/)
  11698. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11699. LIBICONV_PREFIX="$basedir"
  11700. additional_includedir="$basedir/include"
  11701. ;;
  11702. esac
  11703. if test "X$additional_includedir" != "X"; then
  11704. if test "X$additional_includedir" != "X/usr/include"; then
  11705. haveit=
  11706. if test "X$additional_includedir" = "X/usr/local/include"; then
  11707. if test -n "$GCC"; then
  11708. case $host_os in
  11709. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11710. esac
  11711. fi
  11712. fi
  11713. if test -z "$haveit"; then
  11714. for x in $CPPFLAGS $INCICONV; do
  11715. acl_save_prefix="$prefix"
  11716. prefix="$acl_final_prefix"
  11717. acl_save_exec_prefix="$exec_prefix"
  11718. exec_prefix="$acl_final_exec_prefix"
  11719. eval x=\"$x\"
  11720. exec_prefix="$acl_save_exec_prefix"
  11721. prefix="$acl_save_prefix"
  11722. if test "X$x" = "X-I$additional_includedir"; then
  11723. haveit=yes
  11724. break
  11725. fi
  11726. done
  11727. if test -z "$haveit"; then
  11728. if test -d "$additional_includedir"; then
  11729. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11730. fi
  11731. fi
  11732. fi
  11733. fi
  11734. fi
  11735. if test -n "$found_la"; then
  11736. save_libdir="$libdir"
  11737. case "$found_la" in
  11738. */* | *\\*) . "$found_la" ;;
  11739. *) . "./$found_la" ;;
  11740. esac
  11741. libdir="$save_libdir"
  11742. for dep in $dependency_libs; do
  11743. case "$dep" in
  11744. -L*)
  11745. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11746. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11747. haveit=
  11748. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11749. if test -n "$GCC"; then
  11750. case $host_os in
  11751. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11752. esac
  11753. fi
  11754. fi
  11755. if test -z "$haveit"; then
  11756. haveit=
  11757. for x in $LDFLAGS $LIBICONV; do
  11758. acl_save_prefix="$prefix"
  11759. prefix="$acl_final_prefix"
  11760. acl_save_exec_prefix="$exec_prefix"
  11761. exec_prefix="$acl_final_exec_prefix"
  11762. eval x=\"$x\"
  11763. exec_prefix="$acl_save_exec_prefix"
  11764. prefix="$acl_save_prefix"
  11765. if test "X$x" = "X-L$additional_libdir"; then
  11766. haveit=yes
  11767. break
  11768. fi
  11769. done
  11770. if test -z "$haveit"; then
  11771. if test -d "$additional_libdir"; then
  11772. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11773. fi
  11774. fi
  11775. haveit=
  11776. for x in $LDFLAGS $LTLIBICONV; do
  11777. acl_save_prefix="$prefix"
  11778. prefix="$acl_final_prefix"
  11779. acl_save_exec_prefix="$exec_prefix"
  11780. exec_prefix="$acl_final_exec_prefix"
  11781. eval x=\"$x\"
  11782. exec_prefix="$acl_save_exec_prefix"
  11783. prefix="$acl_save_prefix"
  11784. if test "X$x" = "X-L$additional_libdir"; then
  11785. haveit=yes
  11786. break
  11787. fi
  11788. done
  11789. if test -z "$haveit"; then
  11790. if test -d "$additional_libdir"; then
  11791. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11792. fi
  11793. fi
  11794. fi
  11795. fi
  11796. ;;
  11797. -R*)
  11798. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11799. if test "$enable_rpath" != no; then
  11800. haveit=
  11801. for x in $rpathdirs; do
  11802. if test "X$x" = "X$dir"; then
  11803. haveit=yes
  11804. break
  11805. fi
  11806. done
  11807. if test -z "$haveit"; then
  11808. rpathdirs="$rpathdirs $dir"
  11809. fi
  11810. haveit=
  11811. for x in $ltrpathdirs; do
  11812. if test "X$x" = "X$dir"; then
  11813. haveit=yes
  11814. break
  11815. fi
  11816. done
  11817. if test -z "$haveit"; then
  11818. ltrpathdirs="$ltrpathdirs $dir"
  11819. fi
  11820. fi
  11821. ;;
  11822. -l*)
  11823. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11824. ;;
  11825. *.la)
  11826. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11827. ;;
  11828. *)
  11829. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11830. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11831. ;;
  11832. esac
  11833. done
  11834. fi
  11835. else
  11836. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11837. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11838. fi
  11839. fi
  11840. fi
  11841. done
  11842. done
  11843. if test "X$rpathdirs" != "X"; then
  11844. if test -n "$acl_hardcode_libdir_separator"; then
  11845. alldirs=
  11846. for found_dir in $rpathdirs; do
  11847. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11848. done
  11849. acl_save_libdir="$libdir"
  11850. libdir="$alldirs"
  11851. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11852. libdir="$acl_save_libdir"
  11853. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11854. else
  11855. for found_dir in $rpathdirs; do
  11856. acl_save_libdir="$libdir"
  11857. libdir="$found_dir"
  11858. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11859. libdir="$acl_save_libdir"
  11860. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11861. done
  11862. fi
  11863. fi
  11864. if test "X$ltrpathdirs" != "X"; then
  11865. for found_dir in $ltrpathdirs; do
  11866. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11867. done
  11868. fi
  11869. cat >conftest.$ac_ext <<_ACEOF
  11870. /* confdefs.h. */
  11871. _ACEOF
  11872. cat confdefs.h >>conftest.$ac_ext
  11873. cat >>conftest.$ac_ext <<_ACEOF
  11874. /* end confdefs.h. */
  11875. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11876. int
  11877. main ()
  11878. {
  11879. ;
  11880. return 0;
  11881. }
  11882. _ACEOF
  11883. rm -f conftest.$ac_objext conftest$ac_exeext
  11884. if { (ac_try="$ac_link"
  11885. case "(($ac_try" in
  11886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11887. *) ac_try_echo=$ac_try;;
  11888. esac
  11889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11890. (eval "$ac_link") 2>conftest.er1
  11891. ac_status=$?
  11892. grep -v '^ *+' conftest.er1 >conftest.err
  11893. rm -f conftest.er1
  11894. cat conftest.err >&5
  11895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11896. (exit $ac_status); } && {
  11897. test -z "$ac_cxx_werror_flag" ||
  11898. test ! -s conftest.err
  11899. } && test -s conftest$ac_exeext &&
  11900. $as_test_x conftest$ac_exeext; then
  11901. cat >>confdefs.h <<\_ACEOF
  11902. #define HAVE_BUILTIN_EXPECT 1
  11903. _ACEOF
  11904. else
  11905. echo "$as_me: failed program was:" >&5
  11906. sed 's/^/| /' conftest.$ac_ext >&5
  11907. fi
  11908. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11909. conftest$ac_exeext conftest.$ac_ext
  11910. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11911. do
  11912. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11913. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11914. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11915. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11916. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11917. echo $ECHO_N "(cached) $ECHO_C" >&6
  11918. fi
  11919. ac_res=`eval echo '${'$as_ac_Header'}'`
  11920. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11921. echo "${ECHO_T}$ac_res" >&6; }
  11922. else
  11923. # Is the header compilable?
  11924. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11925. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11926. cat >conftest.$ac_ext <<_ACEOF
  11927. /* confdefs.h. */
  11928. _ACEOF
  11929. cat confdefs.h >>conftest.$ac_ext
  11930. cat >>conftest.$ac_ext <<_ACEOF
  11931. /* end confdefs.h. */
  11932. $ac_includes_default
  11933. #include <$ac_header>
  11934. _ACEOF
  11935. rm -f conftest.$ac_objext
  11936. if { (ac_try="$ac_compile"
  11937. case "(($ac_try" in
  11938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11939. *) ac_try_echo=$ac_try;;
  11940. esac
  11941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11942. (eval "$ac_compile") 2>conftest.er1
  11943. ac_status=$?
  11944. grep -v '^ *+' conftest.er1 >conftest.err
  11945. rm -f conftest.er1
  11946. cat conftest.err >&5
  11947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11948. (exit $ac_status); } && {
  11949. test -z "$ac_cxx_werror_flag" ||
  11950. test ! -s conftest.err
  11951. } && test -s conftest.$ac_objext; then
  11952. ac_header_compiler=yes
  11953. else
  11954. echo "$as_me: failed program was:" >&5
  11955. sed 's/^/| /' conftest.$ac_ext >&5
  11956. ac_header_compiler=no
  11957. fi
  11958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11959. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11960. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11961. # Is the header present?
  11962. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11963. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11964. cat >conftest.$ac_ext <<_ACEOF
  11965. /* confdefs.h. */
  11966. _ACEOF
  11967. cat confdefs.h >>conftest.$ac_ext
  11968. cat >>conftest.$ac_ext <<_ACEOF
  11969. /* end confdefs.h. */
  11970. #include <$ac_header>
  11971. _ACEOF
  11972. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11973. case "(($ac_try" in
  11974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11975. *) ac_try_echo=$ac_try;;
  11976. esac
  11977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11978. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11979. ac_status=$?
  11980. grep -v '^ *+' conftest.er1 >conftest.err
  11981. rm -f conftest.er1
  11982. cat conftest.err >&5
  11983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11984. (exit $ac_status); } >/dev/null && {
  11985. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11986. test ! -s conftest.err
  11987. }; then
  11988. ac_header_preproc=yes
  11989. else
  11990. echo "$as_me: failed program was:" >&5
  11991. sed 's/^/| /' conftest.$ac_ext >&5
  11992. ac_header_preproc=no
  11993. fi
  11994. rm -f conftest.err conftest.$ac_ext
  11995. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11996. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11997. # So? What about this header?
  11998. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11999. yes:no: )
  12000. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12001. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12002. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12003. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12004. ac_header_preproc=yes
  12005. ;;
  12006. no:yes:* )
  12007. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12008. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12009. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12010. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12011. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12012. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12013. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12014. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12015. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12016. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12017. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12018. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12019. ( cat <<\_ASBOX
  12020. ## ----------------------------------------------- ##
  12021. ## Report this to t-tujikawa@users.sourceforge.net ##
  12022. ## ----------------------------------------------- ##
  12023. _ASBOX
  12024. ) | sed "s/^/$as_me: WARNING: /" >&2
  12025. ;;
  12026. esac
  12027. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12028. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12029. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12030. echo $ECHO_N "(cached) $ECHO_C" >&6
  12031. else
  12032. eval "$as_ac_Header=\$ac_header_preproc"
  12033. fi
  12034. ac_res=`eval echo '${'$as_ac_Header'}'`
  12035. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12036. echo "${ECHO_T}$ac_res" >&6; }
  12037. fi
  12038. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12039. cat >>confdefs.h <<_ACEOF
  12040. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12041. _ACEOF
  12042. fi
  12043. done
  12044. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12045. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12046. argz_next __fsetlocking
  12047. do
  12048. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12049. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12050. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12051. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12052. echo $ECHO_N "(cached) $ECHO_C" >&6
  12053. else
  12054. cat >conftest.$ac_ext <<_ACEOF
  12055. /* confdefs.h. */
  12056. _ACEOF
  12057. cat confdefs.h >>conftest.$ac_ext
  12058. cat >>conftest.$ac_ext <<_ACEOF
  12059. /* end confdefs.h. */
  12060. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12061. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12062. #define $ac_func innocuous_$ac_func
  12063. /* System header to define __stub macros and hopefully few prototypes,
  12064. which can conflict with char $ac_func (); below.
  12065. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12066. <limits.h> exists even on freestanding compilers. */
  12067. #ifdef __STDC__
  12068. # include <limits.h>
  12069. #else
  12070. # include <assert.h>
  12071. #endif
  12072. #undef $ac_func
  12073. /* Override any GCC internal prototype to avoid an error.
  12074. Use char because int might match the return type of a GCC
  12075. builtin and then its argument prototype would still apply. */
  12076. #ifdef __cplusplus
  12077. extern "C"
  12078. #endif
  12079. char $ac_func ();
  12080. /* The GNU C library defines this for functions which it implements
  12081. to always fail with ENOSYS. Some functions are actually named
  12082. something starting with __ and the normal name is an alias. */
  12083. #if defined __stub_$ac_func || defined __stub___$ac_func
  12084. choke me
  12085. #endif
  12086. int
  12087. main ()
  12088. {
  12089. return $ac_func ();
  12090. ;
  12091. return 0;
  12092. }
  12093. _ACEOF
  12094. rm -f conftest.$ac_objext conftest$ac_exeext
  12095. if { (ac_try="$ac_link"
  12096. case "(($ac_try" in
  12097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12098. *) ac_try_echo=$ac_try;;
  12099. esac
  12100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12101. (eval "$ac_link") 2>conftest.er1
  12102. ac_status=$?
  12103. grep -v '^ *+' conftest.er1 >conftest.err
  12104. rm -f conftest.er1
  12105. cat conftest.err >&5
  12106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12107. (exit $ac_status); } && {
  12108. test -z "$ac_cxx_werror_flag" ||
  12109. test ! -s conftest.err
  12110. } && test -s conftest$ac_exeext &&
  12111. $as_test_x conftest$ac_exeext; then
  12112. eval "$as_ac_var=yes"
  12113. else
  12114. echo "$as_me: failed program was:" >&5
  12115. sed 's/^/| /' conftest.$ac_ext >&5
  12116. eval "$as_ac_var=no"
  12117. fi
  12118. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12119. conftest$ac_exeext conftest.$ac_ext
  12120. fi
  12121. ac_res=`eval echo '${'$as_ac_var'}'`
  12122. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12123. echo "${ECHO_T}$ac_res" >&6; }
  12124. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12125. cat >>confdefs.h <<_ACEOF
  12126. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12127. _ACEOF
  12128. fi
  12129. done
  12130. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12131. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12132. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12133. echo $ECHO_N "(cached) $ECHO_C" >&6
  12134. else
  12135. cat >conftest.$ac_ext <<_ACEOF
  12136. /* confdefs.h. */
  12137. _ACEOF
  12138. cat confdefs.h >>conftest.$ac_ext
  12139. cat >>conftest.$ac_ext <<_ACEOF
  12140. /* end confdefs.h. */
  12141. #include <stdio.h>
  12142. int
  12143. main ()
  12144. {
  12145. #ifndef feof_unlocked
  12146. char *p = (char *) feof_unlocked;
  12147. #endif
  12148. ;
  12149. return 0;
  12150. }
  12151. _ACEOF
  12152. rm -f conftest.$ac_objext
  12153. if { (ac_try="$ac_compile"
  12154. case "(($ac_try" in
  12155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12156. *) ac_try_echo=$ac_try;;
  12157. esac
  12158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12159. (eval "$ac_compile") 2>conftest.er1
  12160. ac_status=$?
  12161. grep -v '^ *+' conftest.er1 >conftest.err
  12162. rm -f conftest.er1
  12163. cat conftest.err >&5
  12164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12165. (exit $ac_status); } && {
  12166. test -z "$ac_cxx_werror_flag" ||
  12167. test ! -s conftest.err
  12168. } && test -s conftest.$ac_objext; then
  12169. ac_cv_have_decl_feof_unlocked=yes
  12170. else
  12171. echo "$as_me: failed program was:" >&5
  12172. sed 's/^/| /' conftest.$ac_ext >&5
  12173. ac_cv_have_decl_feof_unlocked=no
  12174. fi
  12175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12176. fi
  12177. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12178. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12179. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12180. gt_value=1
  12181. else
  12182. gt_value=0
  12183. fi
  12184. cat >>confdefs.h <<_ACEOF
  12185. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12186. _ACEOF
  12187. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12188. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12189. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12190. echo $ECHO_N "(cached) $ECHO_C" >&6
  12191. else
  12192. cat >conftest.$ac_ext <<_ACEOF
  12193. /* confdefs.h. */
  12194. _ACEOF
  12195. cat confdefs.h >>conftest.$ac_ext
  12196. cat >>conftest.$ac_ext <<_ACEOF
  12197. /* end confdefs.h. */
  12198. #include <stdio.h>
  12199. int
  12200. main ()
  12201. {
  12202. #ifndef fgets_unlocked
  12203. char *p = (char *) fgets_unlocked;
  12204. #endif
  12205. ;
  12206. return 0;
  12207. }
  12208. _ACEOF
  12209. rm -f conftest.$ac_objext
  12210. if { (ac_try="$ac_compile"
  12211. case "(($ac_try" in
  12212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12213. *) ac_try_echo=$ac_try;;
  12214. esac
  12215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12216. (eval "$ac_compile") 2>conftest.er1
  12217. ac_status=$?
  12218. grep -v '^ *+' conftest.er1 >conftest.err
  12219. rm -f conftest.er1
  12220. cat conftest.err >&5
  12221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12222. (exit $ac_status); } && {
  12223. test -z "$ac_cxx_werror_flag" ||
  12224. test ! -s conftest.err
  12225. } && test -s conftest.$ac_objext; then
  12226. ac_cv_have_decl_fgets_unlocked=yes
  12227. else
  12228. echo "$as_me: failed program was:" >&5
  12229. sed 's/^/| /' conftest.$ac_ext >&5
  12230. ac_cv_have_decl_fgets_unlocked=no
  12231. fi
  12232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12233. fi
  12234. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12235. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12236. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12237. gt_value=1
  12238. else
  12239. gt_value=0
  12240. fi
  12241. cat >>confdefs.h <<_ACEOF
  12242. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12243. _ACEOF
  12244. am_save_CPPFLAGS="$CPPFLAGS"
  12245. for element in $INCICONV; do
  12246. haveit=
  12247. for x in $CPPFLAGS; do
  12248. acl_save_prefix="$prefix"
  12249. prefix="$acl_final_prefix"
  12250. acl_save_exec_prefix="$exec_prefix"
  12251. exec_prefix="$acl_final_exec_prefix"
  12252. eval x=\"$x\"
  12253. exec_prefix="$acl_save_exec_prefix"
  12254. prefix="$acl_save_prefix"
  12255. if test "X$x" = "X$element"; then
  12256. haveit=yes
  12257. break
  12258. fi
  12259. done
  12260. if test -z "$haveit"; then
  12261. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12262. fi
  12263. done
  12264. { echo "$as_me:$LINENO: checking for iconv" >&5
  12265. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12266. if test "${am_cv_func_iconv+set}" = set; then
  12267. echo $ECHO_N "(cached) $ECHO_C" >&6
  12268. else
  12269. am_cv_func_iconv="no, consider installing GNU libiconv"
  12270. am_cv_lib_iconv=no
  12271. cat >conftest.$ac_ext <<_ACEOF
  12272. /* confdefs.h. */
  12273. _ACEOF
  12274. cat confdefs.h >>conftest.$ac_ext
  12275. cat >>conftest.$ac_ext <<_ACEOF
  12276. /* end confdefs.h. */
  12277. #include <stdlib.h>
  12278. #include <iconv.h>
  12279. int
  12280. main ()
  12281. {
  12282. iconv_t cd = iconv_open("","");
  12283. iconv(cd,NULL,NULL,NULL,NULL);
  12284. iconv_close(cd);
  12285. ;
  12286. return 0;
  12287. }
  12288. _ACEOF
  12289. rm -f conftest.$ac_objext conftest$ac_exeext
  12290. if { (ac_try="$ac_link"
  12291. case "(($ac_try" in
  12292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12293. *) ac_try_echo=$ac_try;;
  12294. esac
  12295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12296. (eval "$ac_link") 2>conftest.er1
  12297. ac_status=$?
  12298. grep -v '^ *+' conftest.er1 >conftest.err
  12299. rm -f conftest.er1
  12300. cat conftest.err >&5
  12301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12302. (exit $ac_status); } && {
  12303. test -z "$ac_cxx_werror_flag" ||
  12304. test ! -s conftest.err
  12305. } && test -s conftest$ac_exeext &&
  12306. $as_test_x conftest$ac_exeext; then
  12307. am_cv_func_iconv=yes
  12308. else
  12309. echo "$as_me: failed program was:" >&5
  12310. sed 's/^/| /' conftest.$ac_ext >&5
  12311. fi
  12312. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12313. conftest$ac_exeext conftest.$ac_ext
  12314. if test "$am_cv_func_iconv" != yes; then
  12315. am_save_LIBS="$LIBS"
  12316. LIBS="$LIBS $LIBICONV"
  12317. cat >conftest.$ac_ext <<_ACEOF
  12318. /* confdefs.h. */
  12319. _ACEOF
  12320. cat confdefs.h >>conftest.$ac_ext
  12321. cat >>conftest.$ac_ext <<_ACEOF
  12322. /* end confdefs.h. */
  12323. #include <stdlib.h>
  12324. #include <iconv.h>
  12325. int
  12326. main ()
  12327. {
  12328. iconv_t cd = iconv_open("","");
  12329. iconv(cd,NULL,NULL,NULL,NULL);
  12330. iconv_close(cd);
  12331. ;
  12332. return 0;
  12333. }
  12334. _ACEOF
  12335. rm -f conftest.$ac_objext conftest$ac_exeext
  12336. if { (ac_try="$ac_link"
  12337. case "(($ac_try" in
  12338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12339. *) ac_try_echo=$ac_try;;
  12340. esac
  12341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12342. (eval "$ac_link") 2>conftest.er1
  12343. ac_status=$?
  12344. grep -v '^ *+' conftest.er1 >conftest.err
  12345. rm -f conftest.er1
  12346. cat conftest.err >&5
  12347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12348. (exit $ac_status); } && {
  12349. test -z "$ac_cxx_werror_flag" ||
  12350. test ! -s conftest.err
  12351. } && test -s conftest$ac_exeext &&
  12352. $as_test_x conftest$ac_exeext; then
  12353. am_cv_lib_iconv=yes
  12354. am_cv_func_iconv=yes
  12355. else
  12356. echo "$as_me: failed program was:" >&5
  12357. sed 's/^/| /' conftest.$ac_ext >&5
  12358. fi
  12359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12360. conftest$ac_exeext conftest.$ac_ext
  12361. LIBS="$am_save_LIBS"
  12362. fi
  12363. fi
  12364. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12365. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12366. if test "$am_cv_func_iconv" = yes; then
  12367. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12368. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12369. if test "${am_cv_func_iconv_works+set}" = set; then
  12370. echo $ECHO_N "(cached) $ECHO_C" >&6
  12371. else
  12372. am_save_LIBS="$LIBS"
  12373. if test $am_cv_lib_iconv = yes; then
  12374. LIBS="$LIBS $LIBICONV"
  12375. fi
  12376. if test "$cross_compiling" = yes; then
  12377. case "$host_os" in
  12378. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12379. *) am_cv_func_iconv_works="guessing yes" ;;
  12380. esac
  12381. else
  12382. cat >conftest.$ac_ext <<_ACEOF
  12383. /* confdefs.h. */
  12384. _ACEOF
  12385. cat confdefs.h >>conftest.$ac_ext
  12386. cat >>conftest.$ac_ext <<_ACEOF
  12387. /* end confdefs.h. */
  12388. #include <iconv.h>
  12389. #include <string.h>
  12390. int main ()
  12391. {
  12392. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12393. returns. */
  12394. {
  12395. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12396. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12397. {
  12398. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12399. char buf[10];
  12400. const char *inptr = input;
  12401. size_t inbytesleft = strlen (input);
  12402. char *outptr = buf;
  12403. size_t outbytesleft = sizeof (buf);
  12404. size_t res = iconv (cd_utf8_to_88591,
  12405. (char **) &inptr, &inbytesleft,
  12406. &outptr, &outbytesleft);
  12407. if (res == 0)
  12408. return 1;
  12409. }
  12410. }
  12411. #if 0 /* This bug could be worked around by the caller. */
  12412. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12413. {
  12414. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12415. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12416. {
  12417. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12418. char buf[50];
  12419. const char *inptr = input;
  12420. size_t inbytesleft = strlen (input);
  12421. char *outptr = buf;
  12422. size_t outbytesleft = sizeof (buf);
  12423. size_t res = iconv (cd_88591_to_utf8,
  12424. (char **) &inptr, &inbytesleft,
  12425. &outptr, &outbytesleft);
  12426. if ((int)res > 0)
  12427. return 1;
  12428. }
  12429. }
  12430. #endif
  12431. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12432. provided. */
  12433. if (/* Try standardized names. */
  12434. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12435. /* Try IRIX, OSF/1 names. */
  12436. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12437. /* Try AIX names. */
  12438. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12439. /* Try HP-UX names. */
  12440. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12441. return 1;
  12442. return 0;
  12443. }
  12444. _ACEOF
  12445. rm -f conftest$ac_exeext
  12446. if { (ac_try="$ac_link"
  12447. case "(($ac_try" in
  12448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12449. *) ac_try_echo=$ac_try;;
  12450. esac
  12451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12452. (eval "$ac_link") 2>&5
  12453. ac_status=$?
  12454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12455. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12456. { (case "(($ac_try" in
  12457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12458. *) ac_try_echo=$ac_try;;
  12459. esac
  12460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12461. (eval "$ac_try") 2>&5
  12462. ac_status=$?
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. (exit $ac_status); }; }; then
  12465. am_cv_func_iconv_works=yes
  12466. else
  12467. echo "$as_me: program exited with status $ac_status" >&5
  12468. echo "$as_me: failed program was:" >&5
  12469. sed 's/^/| /' conftest.$ac_ext >&5
  12470. ( exit $ac_status )
  12471. am_cv_func_iconv_works=no
  12472. fi
  12473. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12474. fi
  12475. LIBS="$am_save_LIBS"
  12476. fi
  12477. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12478. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12479. case "$am_cv_func_iconv_works" in
  12480. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12481. *) am_func_iconv=yes ;;
  12482. esac
  12483. else
  12484. am_func_iconv=no am_cv_lib_iconv=no
  12485. fi
  12486. if test "$am_func_iconv" = yes; then
  12487. cat >>confdefs.h <<\_ACEOF
  12488. #define HAVE_ICONV 1
  12489. _ACEOF
  12490. fi
  12491. if test "$am_cv_lib_iconv" = yes; then
  12492. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12493. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12494. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12495. echo "${ECHO_T}$LIBICONV" >&6; }
  12496. else
  12497. CPPFLAGS="$am_save_CPPFLAGS"
  12498. LIBICONV=
  12499. LTLIBICONV=
  12500. fi
  12501. if test "$am_cv_func_iconv" = yes; then
  12502. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12503. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12504. if test "${am_cv_proto_iconv+set}" = set; then
  12505. echo $ECHO_N "(cached) $ECHO_C" >&6
  12506. else
  12507. cat >conftest.$ac_ext <<_ACEOF
  12508. /* confdefs.h. */
  12509. _ACEOF
  12510. cat confdefs.h >>conftest.$ac_ext
  12511. cat >>conftest.$ac_ext <<_ACEOF
  12512. /* end confdefs.h. */
  12513. #include <stdlib.h>
  12514. #include <iconv.h>
  12515. extern
  12516. #ifdef __cplusplus
  12517. "C"
  12518. #endif
  12519. #if defined(__STDC__) || defined(__cplusplus)
  12520. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12521. #else
  12522. size_t iconv();
  12523. #endif
  12524. int
  12525. main ()
  12526. {
  12527. ;
  12528. return 0;
  12529. }
  12530. _ACEOF
  12531. rm -f conftest.$ac_objext
  12532. if { (ac_try="$ac_compile"
  12533. case "(($ac_try" in
  12534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12535. *) ac_try_echo=$ac_try;;
  12536. esac
  12537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12538. (eval "$ac_compile") 2>conftest.er1
  12539. ac_status=$?
  12540. grep -v '^ *+' conftest.er1 >conftest.err
  12541. rm -f conftest.er1
  12542. cat conftest.err >&5
  12543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12544. (exit $ac_status); } && {
  12545. test -z "$ac_cxx_werror_flag" ||
  12546. test ! -s conftest.err
  12547. } && test -s conftest.$ac_objext; then
  12548. am_cv_proto_iconv_arg1=""
  12549. else
  12550. echo "$as_me: failed program was:" >&5
  12551. sed 's/^/| /' conftest.$ac_ext >&5
  12552. am_cv_proto_iconv_arg1="const"
  12553. fi
  12554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12555. 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);"
  12556. fi
  12557. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12558. { echo "$as_me:$LINENO: result: ${ac_t:-
  12559. }$am_cv_proto_iconv" >&5
  12560. echo "${ECHO_T}${ac_t:-
  12561. }$am_cv_proto_iconv" >&6; }
  12562. cat >>confdefs.h <<_ACEOF
  12563. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12564. _ACEOF
  12565. fi
  12566. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12567. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12568. if test "${gt_cv_nl_locale_name+set}" = set; then
  12569. echo $ECHO_N "(cached) $ECHO_C" >&6
  12570. else
  12571. cat >conftest.$ac_ext <<_ACEOF
  12572. /* confdefs.h. */
  12573. _ACEOF
  12574. cat confdefs.h >>conftest.$ac_ext
  12575. cat >>conftest.$ac_ext <<_ACEOF
  12576. /* end confdefs.h. */
  12577. #include <langinfo.h>
  12578. #include <locale.h>
  12579. int
  12580. main ()
  12581. {
  12582. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12583. return !cs;
  12584. ;
  12585. return 0;
  12586. }
  12587. _ACEOF
  12588. rm -f conftest.$ac_objext conftest$ac_exeext
  12589. if { (ac_try="$ac_link"
  12590. case "(($ac_try" in
  12591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12592. *) ac_try_echo=$ac_try;;
  12593. esac
  12594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12595. (eval "$ac_link") 2>conftest.er1
  12596. ac_status=$?
  12597. grep -v '^ *+' conftest.er1 >conftest.err
  12598. rm -f conftest.er1
  12599. cat conftest.err >&5
  12600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12601. (exit $ac_status); } && {
  12602. test -z "$ac_cxx_werror_flag" ||
  12603. test ! -s conftest.err
  12604. } && test -s conftest$ac_exeext &&
  12605. $as_test_x conftest$ac_exeext; then
  12606. gt_cv_nl_locale_name=yes
  12607. else
  12608. echo "$as_me: failed program was:" >&5
  12609. sed 's/^/| /' conftest.$ac_ext >&5
  12610. gt_cv_nl_locale_name=no
  12611. fi
  12612. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12613. conftest$ac_exeext conftest.$ac_ext
  12614. fi
  12615. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12616. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12617. if test $gt_cv_nl_locale_name = yes; then
  12618. cat >>confdefs.h <<\_ACEOF
  12619. #define HAVE_NL_LOCALE_NAME 1
  12620. _ACEOF
  12621. fi
  12622. for ac_prog in bison
  12623. do
  12624. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12625. set dummy $ac_prog; ac_word=$2
  12626. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12627. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12628. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12629. echo $ECHO_N "(cached) $ECHO_C" >&6
  12630. else
  12631. if test -n "$INTLBISON"; then
  12632. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12633. else
  12634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12635. for as_dir in $PATH
  12636. do
  12637. IFS=$as_save_IFS
  12638. test -z "$as_dir" && as_dir=.
  12639. for ac_exec_ext in '' $ac_executable_extensions; do
  12640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12641. ac_cv_prog_INTLBISON="$ac_prog"
  12642. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12643. break 2
  12644. fi
  12645. done
  12646. done
  12647. IFS=$as_save_IFS
  12648. fi
  12649. fi
  12650. INTLBISON=$ac_cv_prog_INTLBISON
  12651. if test -n "$INTLBISON"; then
  12652. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12653. echo "${ECHO_T}$INTLBISON" >&6; }
  12654. else
  12655. { echo "$as_me:$LINENO: result: no" >&5
  12656. echo "${ECHO_T}no" >&6; }
  12657. fi
  12658. test -n "$INTLBISON" && break
  12659. done
  12660. if test -z "$INTLBISON"; then
  12661. ac_verc_fail=yes
  12662. else
  12663. { echo "$as_me:$LINENO: checking version of bison" >&5
  12664. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12665. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12666. case $ac_prog_version in
  12667. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12668. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12669. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12670. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12671. esac
  12672. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12673. echo "${ECHO_T}$ac_prog_version" >&6; }
  12674. fi
  12675. if test $ac_verc_fail = yes; then
  12676. INTLBISON=:
  12677. fi
  12678. { echo "$as_me:$LINENO: checking for long long int" >&5
  12679. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12680. if test "${ac_cv_type_long_long_int+set}" = set; then
  12681. echo $ECHO_N "(cached) $ECHO_C" >&6
  12682. else
  12683. cat >conftest.$ac_ext <<_ACEOF
  12684. /* confdefs.h. */
  12685. _ACEOF
  12686. cat confdefs.h >>conftest.$ac_ext
  12687. cat >>conftest.$ac_ext <<_ACEOF
  12688. /* end confdefs.h. */
  12689. /* Test preprocessor. */
  12690. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12691. error in preprocessor;
  12692. #endif
  12693. #if ! (18446744073709551615ULL <= -1ull)
  12694. error in preprocessor;
  12695. #endif
  12696. /* Test literals. */
  12697. long long int ll = 9223372036854775807ll;
  12698. long long int nll = -9223372036854775807LL;
  12699. unsigned long long int ull = 18446744073709551615ULL;
  12700. /* Test constant expressions. */
  12701. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12702. ? 1 : -1)];
  12703. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12704. ? 1 : -1)];
  12705. int i = 63;
  12706. int
  12707. main ()
  12708. {
  12709. /* Test availability of runtime routines for shift and division. */
  12710. long long int llmax = 9223372036854775807ll;
  12711. unsigned long long int ullmax = 18446744073709551615ull;
  12712. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12713. | (llmax / ll) | (llmax % ll)
  12714. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12715. | (ullmax / ull) | (ullmax % ull));
  12716. ;
  12717. return 0;
  12718. }
  12719. _ACEOF
  12720. rm -f conftest.$ac_objext conftest$ac_exeext
  12721. if { (ac_try="$ac_link"
  12722. case "(($ac_try" in
  12723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12724. *) ac_try_echo=$ac_try;;
  12725. esac
  12726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12727. (eval "$ac_link") 2>conftest.er1
  12728. ac_status=$?
  12729. grep -v '^ *+' conftest.er1 >conftest.err
  12730. rm -f conftest.er1
  12731. cat conftest.err >&5
  12732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12733. (exit $ac_status); } && {
  12734. test -z "$ac_cxx_werror_flag" ||
  12735. test ! -s conftest.err
  12736. } && test -s conftest$ac_exeext &&
  12737. $as_test_x conftest$ac_exeext; then
  12738. if test "$cross_compiling" = yes; then
  12739. ac_cv_type_long_long_int=yes
  12740. else
  12741. cat >conftest.$ac_ext <<_ACEOF
  12742. /* confdefs.h. */
  12743. _ACEOF
  12744. cat confdefs.h >>conftest.$ac_ext
  12745. cat >>conftest.$ac_ext <<_ACEOF
  12746. /* end confdefs.h. */
  12747. #include <limits.h>
  12748. #ifndef LLONG_MAX
  12749. # define HALF \
  12750. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12751. # define LLONG_MAX (HALF - 1 + HALF)
  12752. #endif
  12753. int
  12754. main ()
  12755. {
  12756. long long int n = 1;
  12757. int i;
  12758. for (i = 0; ; i++)
  12759. {
  12760. long long int m = n << i;
  12761. if (m >> i != n)
  12762. return 1;
  12763. if (LLONG_MAX / 2 < m)
  12764. break;
  12765. }
  12766. return 0;
  12767. ;
  12768. return 0;
  12769. }
  12770. _ACEOF
  12771. rm -f conftest$ac_exeext
  12772. if { (ac_try="$ac_link"
  12773. case "(($ac_try" in
  12774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12775. *) ac_try_echo=$ac_try;;
  12776. esac
  12777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12778. (eval "$ac_link") 2>&5
  12779. ac_status=$?
  12780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12781. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12782. { (case "(($ac_try" in
  12783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12784. *) ac_try_echo=$ac_try;;
  12785. esac
  12786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12787. (eval "$ac_try") 2>&5
  12788. ac_status=$?
  12789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12790. (exit $ac_status); }; }; then
  12791. ac_cv_type_long_long_int=yes
  12792. else
  12793. echo "$as_me: program exited with status $ac_status" >&5
  12794. echo "$as_me: failed program was:" >&5
  12795. sed 's/^/| /' conftest.$ac_ext >&5
  12796. ( exit $ac_status )
  12797. ac_cv_type_long_long_int=no
  12798. fi
  12799. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12800. fi
  12801. else
  12802. echo "$as_me: failed program was:" >&5
  12803. sed 's/^/| /' conftest.$ac_ext >&5
  12804. ac_cv_type_long_long_int=no
  12805. fi
  12806. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12807. conftest$ac_exeext conftest.$ac_ext
  12808. fi
  12809. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12810. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12811. if test $ac_cv_type_long_long_int = yes; then
  12812. cat >>confdefs.h <<\_ACEOF
  12813. #define HAVE_LONG_LONG_INT 1
  12814. _ACEOF
  12815. fi
  12816. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12817. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12818. if test "${gt_cv_c_wchar_t+set}" = set; then
  12819. echo $ECHO_N "(cached) $ECHO_C" >&6
  12820. else
  12821. cat >conftest.$ac_ext <<_ACEOF
  12822. /* confdefs.h. */
  12823. _ACEOF
  12824. cat confdefs.h >>conftest.$ac_ext
  12825. cat >>conftest.$ac_ext <<_ACEOF
  12826. /* end confdefs.h. */
  12827. #include <stddef.h>
  12828. wchar_t foo = (wchar_t)'\0';
  12829. int
  12830. main ()
  12831. {
  12832. ;
  12833. return 0;
  12834. }
  12835. _ACEOF
  12836. rm -f conftest.$ac_objext
  12837. if { (ac_try="$ac_compile"
  12838. case "(($ac_try" in
  12839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12840. *) ac_try_echo=$ac_try;;
  12841. esac
  12842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12843. (eval "$ac_compile") 2>conftest.er1
  12844. ac_status=$?
  12845. grep -v '^ *+' conftest.er1 >conftest.err
  12846. rm -f conftest.er1
  12847. cat conftest.err >&5
  12848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12849. (exit $ac_status); } && {
  12850. test -z "$ac_cxx_werror_flag" ||
  12851. test ! -s conftest.err
  12852. } && test -s conftest.$ac_objext; then
  12853. gt_cv_c_wchar_t=yes
  12854. else
  12855. echo "$as_me: failed program was:" >&5
  12856. sed 's/^/| /' conftest.$ac_ext >&5
  12857. gt_cv_c_wchar_t=no
  12858. fi
  12859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12860. fi
  12861. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12862. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12863. if test $gt_cv_c_wchar_t = yes; then
  12864. cat >>confdefs.h <<\_ACEOF
  12865. #define HAVE_WCHAR_T 1
  12866. _ACEOF
  12867. fi
  12868. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12869. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12870. if test "${gt_cv_c_wint_t+set}" = set; then
  12871. echo $ECHO_N "(cached) $ECHO_C" >&6
  12872. else
  12873. cat >conftest.$ac_ext <<_ACEOF
  12874. /* confdefs.h. */
  12875. _ACEOF
  12876. cat confdefs.h >>conftest.$ac_ext
  12877. cat >>conftest.$ac_ext <<_ACEOF
  12878. /* end confdefs.h. */
  12879. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12880. <wchar.h>.
  12881. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12882. before <wchar.h>. */
  12883. #include <stddef.h>
  12884. #include <stdio.h>
  12885. #include <time.h>
  12886. #include <wchar.h>
  12887. wint_t foo = (wchar_t)'\0';
  12888. int
  12889. main ()
  12890. {
  12891. ;
  12892. return 0;
  12893. }
  12894. _ACEOF
  12895. rm -f conftest.$ac_objext
  12896. if { (ac_try="$ac_compile"
  12897. case "(($ac_try" in
  12898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12899. *) ac_try_echo=$ac_try;;
  12900. esac
  12901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12902. (eval "$ac_compile") 2>conftest.er1
  12903. ac_status=$?
  12904. grep -v '^ *+' conftest.er1 >conftest.err
  12905. rm -f conftest.er1
  12906. cat conftest.err >&5
  12907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12908. (exit $ac_status); } && {
  12909. test -z "$ac_cxx_werror_flag" ||
  12910. test ! -s conftest.err
  12911. } && test -s conftest.$ac_objext; then
  12912. gt_cv_c_wint_t=yes
  12913. else
  12914. echo "$as_me: failed program was:" >&5
  12915. sed 's/^/| /' conftest.$ac_ext >&5
  12916. gt_cv_c_wint_t=no
  12917. fi
  12918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12919. fi
  12920. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12921. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12922. if test $gt_cv_c_wint_t = yes; then
  12923. cat >>confdefs.h <<\_ACEOF
  12924. #define HAVE_WINT_T 1
  12925. _ACEOF
  12926. fi
  12927. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12928. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12929. if test "${gt_cv_c_intmax_t+set}" = set; then
  12930. echo $ECHO_N "(cached) $ECHO_C" >&6
  12931. else
  12932. cat >conftest.$ac_ext <<_ACEOF
  12933. /* confdefs.h. */
  12934. _ACEOF
  12935. cat confdefs.h >>conftest.$ac_ext
  12936. cat >>conftest.$ac_ext <<_ACEOF
  12937. /* end confdefs.h. */
  12938. #include <stddef.h>
  12939. #include <stdlib.h>
  12940. #if HAVE_STDINT_H_WITH_UINTMAX
  12941. #include <stdint.h>
  12942. #endif
  12943. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12944. #include <inttypes.h>
  12945. #endif
  12946. int
  12947. main ()
  12948. {
  12949. intmax_t x = -1;
  12950. return !x;
  12951. ;
  12952. return 0;
  12953. }
  12954. _ACEOF
  12955. rm -f conftest.$ac_objext
  12956. if { (ac_try="$ac_compile"
  12957. case "(($ac_try" in
  12958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12959. *) ac_try_echo=$ac_try;;
  12960. esac
  12961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12962. (eval "$ac_compile") 2>conftest.er1
  12963. ac_status=$?
  12964. grep -v '^ *+' conftest.er1 >conftest.err
  12965. rm -f conftest.er1
  12966. cat conftest.err >&5
  12967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12968. (exit $ac_status); } && {
  12969. test -z "$ac_cxx_werror_flag" ||
  12970. test ! -s conftest.err
  12971. } && test -s conftest.$ac_objext; then
  12972. gt_cv_c_intmax_t=yes
  12973. else
  12974. echo "$as_me: failed program was:" >&5
  12975. sed 's/^/| /' conftest.$ac_ext >&5
  12976. gt_cv_c_intmax_t=no
  12977. fi
  12978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12979. fi
  12980. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12981. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12982. if test $gt_cv_c_intmax_t = yes; then
  12983. cat >>confdefs.h <<\_ACEOF
  12984. #define HAVE_INTMAX_T 1
  12985. _ACEOF
  12986. fi
  12987. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12988. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12989. if test "${gt_cv_func_printf_posix+set}" = set; then
  12990. echo $ECHO_N "(cached) $ECHO_C" >&6
  12991. else
  12992. if test "$cross_compiling" = yes; then
  12993. cat >conftest.$ac_ext <<_ACEOF
  12994. /* confdefs.h. */
  12995. _ACEOF
  12996. cat confdefs.h >>conftest.$ac_ext
  12997. cat >>conftest.$ac_ext <<_ACEOF
  12998. /* end confdefs.h. */
  12999. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13000. notposix
  13001. #endif
  13002. _ACEOF
  13003. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13004. $EGREP "notposix" >/dev/null 2>&1; then
  13005. gt_cv_func_printf_posix="guessing no"
  13006. else
  13007. gt_cv_func_printf_posix="guessing yes"
  13008. fi
  13009. rm -f conftest*
  13010. else
  13011. cat >conftest.$ac_ext <<_ACEOF
  13012. /* confdefs.h. */
  13013. _ACEOF
  13014. cat confdefs.h >>conftest.$ac_ext
  13015. cat >>conftest.$ac_ext <<_ACEOF
  13016. /* end confdefs.h. */
  13017. #include <stdio.h>
  13018. #include <string.h>
  13019. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13020. dollar expansion (possibly an autoconf bug). */
  13021. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13022. static char buf[100];
  13023. int main ()
  13024. {
  13025. sprintf (buf, format, 33, 55);
  13026. return (strcmp (buf, "55 33") != 0);
  13027. }
  13028. _ACEOF
  13029. rm -f conftest$ac_exeext
  13030. if { (ac_try="$ac_link"
  13031. case "(($ac_try" in
  13032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13033. *) ac_try_echo=$ac_try;;
  13034. esac
  13035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13036. (eval "$ac_link") 2>&5
  13037. ac_status=$?
  13038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13039. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13040. { (case "(($ac_try" in
  13041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13042. *) ac_try_echo=$ac_try;;
  13043. esac
  13044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13045. (eval "$ac_try") 2>&5
  13046. ac_status=$?
  13047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13048. (exit $ac_status); }; }; then
  13049. gt_cv_func_printf_posix=yes
  13050. else
  13051. echo "$as_me: program exited with status $ac_status" >&5
  13052. echo "$as_me: failed program was:" >&5
  13053. sed 's/^/| /' conftest.$ac_ext >&5
  13054. ( exit $ac_status )
  13055. gt_cv_func_printf_posix=no
  13056. fi
  13057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13058. fi
  13059. fi
  13060. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13061. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13062. case $gt_cv_func_printf_posix in
  13063. *yes)
  13064. cat >>confdefs.h <<\_ACEOF
  13065. #define HAVE_POSIX_PRINTF 1
  13066. _ACEOF
  13067. ;;
  13068. esac
  13069. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13070. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13071. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13072. echo $ECHO_N "(cached) $ECHO_C" >&6
  13073. else
  13074. cat >conftest.$ac_ext <<_ACEOF
  13075. /* confdefs.h. */
  13076. _ACEOF
  13077. cat confdefs.h >>conftest.$ac_ext
  13078. cat >>conftest.$ac_ext <<_ACEOF
  13079. /* end confdefs.h. */
  13080. #include <features.h>
  13081. #ifdef __GNU_LIBRARY__
  13082. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13083. Lucky GNU user
  13084. #endif
  13085. #endif
  13086. _ACEOF
  13087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13088. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13089. ac_cv_gnu_library_2_1=yes
  13090. else
  13091. ac_cv_gnu_library_2_1=no
  13092. fi
  13093. rm -f conftest*
  13094. fi
  13095. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13096. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13097. GLIBC21="$ac_cv_gnu_library_2_1"
  13098. for ac_header in stdint.h
  13099. do
  13100. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13101. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13102. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13103. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13104. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13105. echo $ECHO_N "(cached) $ECHO_C" >&6
  13106. fi
  13107. ac_res=`eval echo '${'$as_ac_Header'}'`
  13108. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13109. echo "${ECHO_T}$ac_res" >&6; }
  13110. else
  13111. # Is the header compilable?
  13112. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13113. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13114. cat >conftest.$ac_ext <<_ACEOF
  13115. /* confdefs.h. */
  13116. _ACEOF
  13117. cat confdefs.h >>conftest.$ac_ext
  13118. cat >>conftest.$ac_ext <<_ACEOF
  13119. /* end confdefs.h. */
  13120. $ac_includes_default
  13121. #include <$ac_header>
  13122. _ACEOF
  13123. rm -f conftest.$ac_objext
  13124. if { (ac_try="$ac_compile"
  13125. case "(($ac_try" in
  13126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13127. *) ac_try_echo=$ac_try;;
  13128. esac
  13129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13130. (eval "$ac_compile") 2>conftest.er1
  13131. ac_status=$?
  13132. grep -v '^ *+' conftest.er1 >conftest.err
  13133. rm -f conftest.er1
  13134. cat conftest.err >&5
  13135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13136. (exit $ac_status); } && {
  13137. test -z "$ac_cxx_werror_flag" ||
  13138. test ! -s conftest.err
  13139. } && test -s conftest.$ac_objext; then
  13140. ac_header_compiler=yes
  13141. else
  13142. echo "$as_me: failed program was:" >&5
  13143. sed 's/^/| /' conftest.$ac_ext >&5
  13144. ac_header_compiler=no
  13145. fi
  13146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13147. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13148. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13149. # Is the header present?
  13150. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13151. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13152. cat >conftest.$ac_ext <<_ACEOF
  13153. /* confdefs.h. */
  13154. _ACEOF
  13155. cat confdefs.h >>conftest.$ac_ext
  13156. cat >>conftest.$ac_ext <<_ACEOF
  13157. /* end confdefs.h. */
  13158. #include <$ac_header>
  13159. _ACEOF
  13160. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13161. case "(($ac_try" in
  13162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13163. *) ac_try_echo=$ac_try;;
  13164. esac
  13165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13166. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13167. ac_status=$?
  13168. grep -v '^ *+' conftest.er1 >conftest.err
  13169. rm -f conftest.er1
  13170. cat conftest.err >&5
  13171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13172. (exit $ac_status); } >/dev/null && {
  13173. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13174. test ! -s conftest.err
  13175. }; then
  13176. ac_header_preproc=yes
  13177. else
  13178. echo "$as_me: failed program was:" >&5
  13179. sed 's/^/| /' conftest.$ac_ext >&5
  13180. ac_header_preproc=no
  13181. fi
  13182. rm -f conftest.err conftest.$ac_ext
  13183. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13184. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13185. # So? What about this header?
  13186. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13187. yes:no: )
  13188. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13189. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13190. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13191. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13192. ac_header_preproc=yes
  13193. ;;
  13194. no:yes:* )
  13195. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13196. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13197. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13198. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13199. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13200. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13201. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13202. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13203. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13204. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13205. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13206. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13207. ( cat <<\_ASBOX
  13208. ## ----------------------------------------------- ##
  13209. ## Report this to t-tujikawa@users.sourceforge.net ##
  13210. ## ----------------------------------------------- ##
  13211. _ASBOX
  13212. ) | sed "s/^/$as_me: WARNING: /" >&2
  13213. ;;
  13214. esac
  13215. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13216. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13217. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13218. echo $ECHO_N "(cached) $ECHO_C" >&6
  13219. else
  13220. eval "$as_ac_Header=\$ac_header_preproc"
  13221. fi
  13222. ac_res=`eval echo '${'$as_ac_Header'}'`
  13223. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13224. echo "${ECHO_T}$ac_res" >&6; }
  13225. fi
  13226. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13227. cat >>confdefs.h <<_ACEOF
  13228. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13229. _ACEOF
  13230. fi
  13231. done
  13232. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13233. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13234. if test "${gl_cv_size_max+set}" = set; then
  13235. echo $ECHO_N "(cached) $ECHO_C" >&6
  13236. else
  13237. gl_cv_size_max=
  13238. cat >conftest.$ac_ext <<_ACEOF
  13239. /* confdefs.h. */
  13240. _ACEOF
  13241. cat confdefs.h >>conftest.$ac_ext
  13242. cat >>conftest.$ac_ext <<_ACEOF
  13243. /* end confdefs.h. */
  13244. #include <limits.h>
  13245. #if HAVE_STDINT_H
  13246. #include <stdint.h>
  13247. #endif
  13248. #ifdef SIZE_MAX
  13249. Found it
  13250. #endif
  13251. _ACEOF
  13252. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13253. $EGREP "Found it" >/dev/null 2>&1; then
  13254. gl_cv_size_max=yes
  13255. fi
  13256. rm -f conftest*
  13257. if test -z "$gl_cv_size_max"; then
  13258. if test "$cross_compiling" = yes; then
  13259. # Depending upon the size, compute the lo and hi bounds.
  13260. cat >conftest.$ac_ext <<_ACEOF
  13261. /* confdefs.h. */
  13262. _ACEOF
  13263. cat confdefs.h >>conftest.$ac_ext
  13264. cat >>conftest.$ac_ext <<_ACEOF
  13265. /* end confdefs.h. */
  13266. #include <stddef.h>
  13267. #include <limits.h>
  13268. int
  13269. main ()
  13270. {
  13271. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13272. test_array [0] = 0
  13273. ;
  13274. return 0;
  13275. }
  13276. _ACEOF
  13277. rm -f conftest.$ac_objext
  13278. if { (ac_try="$ac_compile"
  13279. case "(($ac_try" in
  13280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13281. *) ac_try_echo=$ac_try;;
  13282. esac
  13283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13284. (eval "$ac_compile") 2>conftest.er1
  13285. ac_status=$?
  13286. grep -v '^ *+' conftest.er1 >conftest.err
  13287. rm -f conftest.er1
  13288. cat conftest.err >&5
  13289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13290. (exit $ac_status); } && {
  13291. test -z "$ac_cxx_werror_flag" ||
  13292. test ! -s conftest.err
  13293. } && test -s conftest.$ac_objext; then
  13294. ac_lo=0 ac_mid=0
  13295. while :; do
  13296. cat >conftest.$ac_ext <<_ACEOF
  13297. /* confdefs.h. */
  13298. _ACEOF
  13299. cat confdefs.h >>conftest.$ac_ext
  13300. cat >>conftest.$ac_ext <<_ACEOF
  13301. /* end confdefs.h. */
  13302. #include <stddef.h>
  13303. #include <limits.h>
  13304. int
  13305. main ()
  13306. {
  13307. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13308. test_array [0] = 0
  13309. ;
  13310. return 0;
  13311. }
  13312. _ACEOF
  13313. rm -f conftest.$ac_objext
  13314. if { (ac_try="$ac_compile"
  13315. case "(($ac_try" in
  13316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13317. *) ac_try_echo=$ac_try;;
  13318. esac
  13319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13320. (eval "$ac_compile") 2>conftest.er1
  13321. ac_status=$?
  13322. grep -v '^ *+' conftest.er1 >conftest.err
  13323. rm -f conftest.er1
  13324. cat conftest.err >&5
  13325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13326. (exit $ac_status); } && {
  13327. test -z "$ac_cxx_werror_flag" ||
  13328. test ! -s conftest.err
  13329. } && test -s conftest.$ac_objext; then
  13330. ac_hi=$ac_mid; break
  13331. else
  13332. echo "$as_me: failed program was:" >&5
  13333. sed 's/^/| /' conftest.$ac_ext >&5
  13334. ac_lo=`expr $ac_mid + 1`
  13335. if test $ac_lo -le $ac_mid; then
  13336. ac_lo= ac_hi=
  13337. break
  13338. fi
  13339. ac_mid=`expr 2 '*' $ac_mid + 1`
  13340. fi
  13341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13342. done
  13343. else
  13344. echo "$as_me: failed program was:" >&5
  13345. sed 's/^/| /' conftest.$ac_ext >&5
  13346. cat >conftest.$ac_ext <<_ACEOF
  13347. /* confdefs.h. */
  13348. _ACEOF
  13349. cat confdefs.h >>conftest.$ac_ext
  13350. cat >>conftest.$ac_ext <<_ACEOF
  13351. /* end confdefs.h. */
  13352. #include <stddef.h>
  13353. #include <limits.h>
  13354. int
  13355. main ()
  13356. {
  13357. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13358. test_array [0] = 0
  13359. ;
  13360. return 0;
  13361. }
  13362. _ACEOF
  13363. rm -f conftest.$ac_objext
  13364. if { (ac_try="$ac_compile"
  13365. case "(($ac_try" in
  13366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13367. *) ac_try_echo=$ac_try;;
  13368. esac
  13369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13370. (eval "$ac_compile") 2>conftest.er1
  13371. ac_status=$?
  13372. grep -v '^ *+' conftest.er1 >conftest.err
  13373. rm -f conftest.er1
  13374. cat conftest.err >&5
  13375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13376. (exit $ac_status); } && {
  13377. test -z "$ac_cxx_werror_flag" ||
  13378. test ! -s conftest.err
  13379. } && test -s conftest.$ac_objext; then
  13380. ac_hi=-1 ac_mid=-1
  13381. while :; do
  13382. cat >conftest.$ac_ext <<_ACEOF
  13383. /* confdefs.h. */
  13384. _ACEOF
  13385. cat confdefs.h >>conftest.$ac_ext
  13386. cat >>conftest.$ac_ext <<_ACEOF
  13387. /* end confdefs.h. */
  13388. #include <stddef.h>
  13389. #include <limits.h>
  13390. int
  13391. main ()
  13392. {
  13393. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13394. test_array [0] = 0
  13395. ;
  13396. return 0;
  13397. }
  13398. _ACEOF
  13399. rm -f conftest.$ac_objext
  13400. if { (ac_try="$ac_compile"
  13401. case "(($ac_try" in
  13402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13403. *) ac_try_echo=$ac_try;;
  13404. esac
  13405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13406. (eval "$ac_compile") 2>conftest.er1
  13407. ac_status=$?
  13408. grep -v '^ *+' conftest.er1 >conftest.err
  13409. rm -f conftest.er1
  13410. cat conftest.err >&5
  13411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13412. (exit $ac_status); } && {
  13413. test -z "$ac_cxx_werror_flag" ||
  13414. test ! -s conftest.err
  13415. } && test -s conftest.$ac_objext; then
  13416. ac_lo=$ac_mid; break
  13417. else
  13418. echo "$as_me: failed program was:" >&5
  13419. sed 's/^/| /' conftest.$ac_ext >&5
  13420. ac_hi=`expr '(' $ac_mid ')' - 1`
  13421. if test $ac_mid -le $ac_hi; then
  13422. ac_lo= ac_hi=
  13423. break
  13424. fi
  13425. ac_mid=`expr 2 '*' $ac_mid`
  13426. fi
  13427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13428. done
  13429. else
  13430. echo "$as_me: failed program was:" >&5
  13431. sed 's/^/| /' conftest.$ac_ext >&5
  13432. ac_lo= ac_hi=
  13433. fi
  13434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13435. fi
  13436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13437. # Binary search between lo and hi bounds.
  13438. while test "x$ac_lo" != "x$ac_hi"; do
  13439. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13440. cat >conftest.$ac_ext <<_ACEOF
  13441. /* confdefs.h. */
  13442. _ACEOF
  13443. cat confdefs.h >>conftest.$ac_ext
  13444. cat >>conftest.$ac_ext <<_ACEOF
  13445. /* end confdefs.h. */
  13446. #include <stddef.h>
  13447. #include <limits.h>
  13448. int
  13449. main ()
  13450. {
  13451. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13452. test_array [0] = 0
  13453. ;
  13454. return 0;
  13455. }
  13456. _ACEOF
  13457. rm -f conftest.$ac_objext
  13458. if { (ac_try="$ac_compile"
  13459. case "(($ac_try" in
  13460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13461. *) ac_try_echo=$ac_try;;
  13462. esac
  13463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13464. (eval "$ac_compile") 2>conftest.er1
  13465. ac_status=$?
  13466. grep -v '^ *+' conftest.er1 >conftest.err
  13467. rm -f conftest.er1
  13468. cat conftest.err >&5
  13469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13470. (exit $ac_status); } && {
  13471. test -z "$ac_cxx_werror_flag" ||
  13472. test ! -s conftest.err
  13473. } && test -s conftest.$ac_objext; then
  13474. ac_hi=$ac_mid
  13475. else
  13476. echo "$as_me: failed program was:" >&5
  13477. sed 's/^/| /' conftest.$ac_ext >&5
  13478. ac_lo=`expr '(' $ac_mid ')' + 1`
  13479. fi
  13480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13481. done
  13482. case $ac_lo in
  13483. ?*) size_t_bits_minus_1=$ac_lo;;
  13484. '') size_t_bits_minus_1= ;;
  13485. esac
  13486. else
  13487. cat >conftest.$ac_ext <<_ACEOF
  13488. /* confdefs.h. */
  13489. _ACEOF
  13490. cat confdefs.h >>conftest.$ac_ext
  13491. cat >>conftest.$ac_ext <<_ACEOF
  13492. /* end confdefs.h. */
  13493. #include <stddef.h>
  13494. #include <limits.h>
  13495. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13496. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13497. #include <stdio.h>
  13498. #include <stdlib.h>
  13499. int
  13500. main ()
  13501. {
  13502. FILE *f = fopen ("conftest.val", "w");
  13503. if (! f)
  13504. return 1;
  13505. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13506. {
  13507. long int i = longval ();
  13508. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13509. return 1;
  13510. fprintf (f, "%ld\n", i);
  13511. }
  13512. else
  13513. {
  13514. unsigned long int i = ulongval ();
  13515. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13516. return 1;
  13517. fprintf (f, "%lu\n", i);
  13518. }
  13519. return ferror (f) || fclose (f) != 0;
  13520. ;
  13521. return 0;
  13522. }
  13523. _ACEOF
  13524. rm -f conftest$ac_exeext
  13525. if { (ac_try="$ac_link"
  13526. case "(($ac_try" in
  13527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13528. *) ac_try_echo=$ac_try;;
  13529. esac
  13530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13531. (eval "$ac_link") 2>&5
  13532. ac_status=$?
  13533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13534. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13535. { (case "(($ac_try" in
  13536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13537. *) ac_try_echo=$ac_try;;
  13538. esac
  13539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13540. (eval "$ac_try") 2>&5
  13541. ac_status=$?
  13542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13543. (exit $ac_status); }; }; then
  13544. size_t_bits_minus_1=`cat conftest.val`
  13545. else
  13546. echo "$as_me: program exited with status $ac_status" >&5
  13547. echo "$as_me: failed program was:" >&5
  13548. sed 's/^/| /' conftest.$ac_ext >&5
  13549. ( exit $ac_status )
  13550. size_t_bits_minus_1=
  13551. fi
  13552. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13553. fi
  13554. rm -f conftest.val
  13555. if test "$cross_compiling" = yes; then
  13556. # Depending upon the size, compute the lo and hi bounds.
  13557. cat >conftest.$ac_ext <<_ACEOF
  13558. /* confdefs.h. */
  13559. _ACEOF
  13560. cat confdefs.h >>conftest.$ac_ext
  13561. cat >>conftest.$ac_ext <<_ACEOF
  13562. /* end confdefs.h. */
  13563. #include <stddef.h>
  13564. int
  13565. main ()
  13566. {
  13567. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13568. test_array [0] = 0
  13569. ;
  13570. return 0;
  13571. }
  13572. _ACEOF
  13573. rm -f conftest.$ac_objext
  13574. if { (ac_try="$ac_compile"
  13575. case "(($ac_try" in
  13576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13577. *) ac_try_echo=$ac_try;;
  13578. esac
  13579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13580. (eval "$ac_compile") 2>conftest.er1
  13581. ac_status=$?
  13582. grep -v '^ *+' conftest.er1 >conftest.err
  13583. rm -f conftest.er1
  13584. cat conftest.err >&5
  13585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13586. (exit $ac_status); } && {
  13587. test -z "$ac_cxx_werror_flag" ||
  13588. test ! -s conftest.err
  13589. } && test -s conftest.$ac_objext; then
  13590. ac_lo=0 ac_mid=0
  13591. while :; do
  13592. cat >conftest.$ac_ext <<_ACEOF
  13593. /* confdefs.h. */
  13594. _ACEOF
  13595. cat confdefs.h >>conftest.$ac_ext
  13596. cat >>conftest.$ac_ext <<_ACEOF
  13597. /* end confdefs.h. */
  13598. #include <stddef.h>
  13599. int
  13600. main ()
  13601. {
  13602. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13603. test_array [0] = 0
  13604. ;
  13605. return 0;
  13606. }
  13607. _ACEOF
  13608. rm -f conftest.$ac_objext
  13609. if { (ac_try="$ac_compile"
  13610. case "(($ac_try" in
  13611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13612. *) ac_try_echo=$ac_try;;
  13613. esac
  13614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13615. (eval "$ac_compile") 2>conftest.er1
  13616. ac_status=$?
  13617. grep -v '^ *+' conftest.er1 >conftest.err
  13618. rm -f conftest.er1
  13619. cat conftest.err >&5
  13620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13621. (exit $ac_status); } && {
  13622. test -z "$ac_cxx_werror_flag" ||
  13623. test ! -s conftest.err
  13624. } && test -s conftest.$ac_objext; then
  13625. ac_hi=$ac_mid; break
  13626. else
  13627. echo "$as_me: failed program was:" >&5
  13628. sed 's/^/| /' conftest.$ac_ext >&5
  13629. ac_lo=`expr $ac_mid + 1`
  13630. if test $ac_lo -le $ac_mid; then
  13631. ac_lo= ac_hi=
  13632. break
  13633. fi
  13634. ac_mid=`expr 2 '*' $ac_mid + 1`
  13635. fi
  13636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13637. done
  13638. else
  13639. echo "$as_me: failed program was:" >&5
  13640. sed 's/^/| /' conftest.$ac_ext >&5
  13641. cat >conftest.$ac_ext <<_ACEOF
  13642. /* confdefs.h. */
  13643. _ACEOF
  13644. cat confdefs.h >>conftest.$ac_ext
  13645. cat >>conftest.$ac_ext <<_ACEOF
  13646. /* end confdefs.h. */
  13647. #include <stddef.h>
  13648. int
  13649. main ()
  13650. {
  13651. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13652. test_array [0] = 0
  13653. ;
  13654. return 0;
  13655. }
  13656. _ACEOF
  13657. rm -f conftest.$ac_objext
  13658. if { (ac_try="$ac_compile"
  13659. case "(($ac_try" in
  13660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13661. *) ac_try_echo=$ac_try;;
  13662. esac
  13663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13664. (eval "$ac_compile") 2>conftest.er1
  13665. ac_status=$?
  13666. grep -v '^ *+' conftest.er1 >conftest.err
  13667. rm -f conftest.er1
  13668. cat conftest.err >&5
  13669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13670. (exit $ac_status); } && {
  13671. test -z "$ac_cxx_werror_flag" ||
  13672. test ! -s conftest.err
  13673. } && test -s conftest.$ac_objext; then
  13674. ac_hi=-1 ac_mid=-1
  13675. while :; do
  13676. cat >conftest.$ac_ext <<_ACEOF
  13677. /* confdefs.h. */
  13678. _ACEOF
  13679. cat confdefs.h >>conftest.$ac_ext
  13680. cat >>conftest.$ac_ext <<_ACEOF
  13681. /* end confdefs.h. */
  13682. #include <stddef.h>
  13683. int
  13684. main ()
  13685. {
  13686. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13687. test_array [0] = 0
  13688. ;
  13689. return 0;
  13690. }
  13691. _ACEOF
  13692. rm -f conftest.$ac_objext
  13693. if { (ac_try="$ac_compile"
  13694. case "(($ac_try" in
  13695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13696. *) ac_try_echo=$ac_try;;
  13697. esac
  13698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13699. (eval "$ac_compile") 2>conftest.er1
  13700. ac_status=$?
  13701. grep -v '^ *+' conftest.er1 >conftest.err
  13702. rm -f conftest.er1
  13703. cat conftest.err >&5
  13704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13705. (exit $ac_status); } && {
  13706. test -z "$ac_cxx_werror_flag" ||
  13707. test ! -s conftest.err
  13708. } && test -s conftest.$ac_objext; then
  13709. ac_lo=$ac_mid; break
  13710. else
  13711. echo "$as_me: failed program was:" >&5
  13712. sed 's/^/| /' conftest.$ac_ext >&5
  13713. ac_hi=`expr '(' $ac_mid ')' - 1`
  13714. if test $ac_mid -le $ac_hi; then
  13715. ac_lo= ac_hi=
  13716. break
  13717. fi
  13718. ac_mid=`expr 2 '*' $ac_mid`
  13719. fi
  13720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13721. done
  13722. else
  13723. echo "$as_me: failed program was:" >&5
  13724. sed 's/^/| /' conftest.$ac_ext >&5
  13725. ac_lo= ac_hi=
  13726. fi
  13727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13728. fi
  13729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13730. # Binary search between lo and hi bounds.
  13731. while test "x$ac_lo" != "x$ac_hi"; do
  13732. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13733. cat >conftest.$ac_ext <<_ACEOF
  13734. /* confdefs.h. */
  13735. _ACEOF
  13736. cat confdefs.h >>conftest.$ac_ext
  13737. cat >>conftest.$ac_ext <<_ACEOF
  13738. /* end confdefs.h. */
  13739. #include <stddef.h>
  13740. int
  13741. main ()
  13742. {
  13743. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13744. test_array [0] = 0
  13745. ;
  13746. return 0;
  13747. }
  13748. _ACEOF
  13749. rm -f conftest.$ac_objext
  13750. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  13757. ac_status=$?
  13758. grep -v '^ *+' conftest.er1 >conftest.err
  13759. rm -f conftest.er1
  13760. cat conftest.err >&5
  13761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13762. (exit $ac_status); } && {
  13763. test -z "$ac_cxx_werror_flag" ||
  13764. test ! -s conftest.err
  13765. } && test -s conftest.$ac_objext; then
  13766. ac_hi=$ac_mid
  13767. else
  13768. echo "$as_me: failed program was:" >&5
  13769. sed 's/^/| /' conftest.$ac_ext >&5
  13770. ac_lo=`expr '(' $ac_mid ')' + 1`
  13771. fi
  13772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13773. done
  13774. case $ac_lo in
  13775. ?*) fits_in_uint=$ac_lo;;
  13776. '') fits_in_uint= ;;
  13777. esac
  13778. else
  13779. cat >conftest.$ac_ext <<_ACEOF
  13780. /* confdefs.h. */
  13781. _ACEOF
  13782. cat confdefs.h >>conftest.$ac_ext
  13783. cat >>conftest.$ac_ext <<_ACEOF
  13784. /* end confdefs.h. */
  13785. #include <stddef.h>
  13786. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13787. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13788. #include <stdio.h>
  13789. #include <stdlib.h>
  13790. int
  13791. main ()
  13792. {
  13793. FILE *f = fopen ("conftest.val", "w");
  13794. if (! f)
  13795. return 1;
  13796. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13797. {
  13798. long int i = longval ();
  13799. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13800. return 1;
  13801. fprintf (f, "%ld\n", i);
  13802. }
  13803. else
  13804. {
  13805. unsigned long int i = ulongval ();
  13806. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13807. return 1;
  13808. fprintf (f, "%lu\n", i);
  13809. }
  13810. return ferror (f) || fclose (f) != 0;
  13811. ;
  13812. return 0;
  13813. }
  13814. _ACEOF
  13815. rm -f conftest$ac_exeext
  13816. if { (ac_try="$ac_link"
  13817. case "(($ac_try" in
  13818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13819. *) ac_try_echo=$ac_try;;
  13820. esac
  13821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13822. (eval "$ac_link") 2>&5
  13823. ac_status=$?
  13824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13825. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13826. { (case "(($ac_try" in
  13827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13828. *) ac_try_echo=$ac_try;;
  13829. esac
  13830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13831. (eval "$ac_try") 2>&5
  13832. ac_status=$?
  13833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13834. (exit $ac_status); }; }; then
  13835. fits_in_uint=`cat conftest.val`
  13836. else
  13837. echo "$as_me: program exited with status $ac_status" >&5
  13838. echo "$as_me: failed program was:" >&5
  13839. sed 's/^/| /' conftest.$ac_ext >&5
  13840. ( exit $ac_status )
  13841. fits_in_uint=
  13842. fi
  13843. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13844. fi
  13845. rm -f conftest.val
  13846. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13847. if test $fits_in_uint = 1; then
  13848. cat >conftest.$ac_ext <<_ACEOF
  13849. /* confdefs.h. */
  13850. _ACEOF
  13851. cat confdefs.h >>conftest.$ac_ext
  13852. cat >>conftest.$ac_ext <<_ACEOF
  13853. /* end confdefs.h. */
  13854. #include <stddef.h>
  13855. extern size_t foo;
  13856. extern unsigned long foo;
  13857. int
  13858. main ()
  13859. {
  13860. ;
  13861. return 0;
  13862. }
  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. fits_in_uint=0
  13882. else
  13883. echo "$as_me: failed program was:" >&5
  13884. sed 's/^/| /' conftest.$ac_ext >&5
  13885. fi
  13886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13887. fi
  13888. if test $fits_in_uint = 1; then
  13889. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13890. else
  13891. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13892. fi
  13893. else
  13894. gl_cv_size_max='((size_t)~(size_t)0)'
  13895. fi
  13896. fi
  13897. fi
  13898. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13899. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13900. if test "$gl_cv_size_max" != yes; then
  13901. cat >>confdefs.h <<_ACEOF
  13902. #define SIZE_MAX $gl_cv_size_max
  13903. _ACEOF
  13904. fi
  13905. for ac_header in stdint.h
  13906. do
  13907. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13908. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13909. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13910. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13911. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13912. echo $ECHO_N "(cached) $ECHO_C" >&6
  13913. fi
  13914. ac_res=`eval echo '${'$as_ac_Header'}'`
  13915. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13916. echo "${ECHO_T}$ac_res" >&6; }
  13917. else
  13918. # Is the header compilable?
  13919. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13920. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13921. cat >conftest.$ac_ext <<_ACEOF
  13922. /* confdefs.h. */
  13923. _ACEOF
  13924. cat confdefs.h >>conftest.$ac_ext
  13925. cat >>conftest.$ac_ext <<_ACEOF
  13926. /* end confdefs.h. */
  13927. $ac_includes_default
  13928. #include <$ac_header>
  13929. _ACEOF
  13930. rm -f conftest.$ac_objext
  13931. if { (ac_try="$ac_compile"
  13932. case "(($ac_try" in
  13933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13934. *) ac_try_echo=$ac_try;;
  13935. esac
  13936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13937. (eval "$ac_compile") 2>conftest.er1
  13938. ac_status=$?
  13939. grep -v '^ *+' conftest.er1 >conftest.err
  13940. rm -f conftest.er1
  13941. cat conftest.err >&5
  13942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13943. (exit $ac_status); } && {
  13944. test -z "$ac_cxx_werror_flag" ||
  13945. test ! -s conftest.err
  13946. } && test -s conftest.$ac_objext; then
  13947. ac_header_compiler=yes
  13948. else
  13949. echo "$as_me: failed program was:" >&5
  13950. sed 's/^/| /' conftest.$ac_ext >&5
  13951. ac_header_compiler=no
  13952. fi
  13953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13954. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13955. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13956. # Is the header present?
  13957. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13958. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13959. cat >conftest.$ac_ext <<_ACEOF
  13960. /* confdefs.h. */
  13961. _ACEOF
  13962. cat confdefs.h >>conftest.$ac_ext
  13963. cat >>conftest.$ac_ext <<_ACEOF
  13964. /* end confdefs.h. */
  13965. #include <$ac_header>
  13966. _ACEOF
  13967. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13968. case "(($ac_try" in
  13969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13970. *) ac_try_echo=$ac_try;;
  13971. esac
  13972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13973. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13974. ac_status=$?
  13975. grep -v '^ *+' conftest.er1 >conftest.err
  13976. rm -f conftest.er1
  13977. cat conftest.err >&5
  13978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13979. (exit $ac_status); } >/dev/null && {
  13980. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13981. test ! -s conftest.err
  13982. }; then
  13983. ac_header_preproc=yes
  13984. else
  13985. echo "$as_me: failed program was:" >&5
  13986. sed 's/^/| /' conftest.$ac_ext >&5
  13987. ac_header_preproc=no
  13988. fi
  13989. rm -f conftest.err conftest.$ac_ext
  13990. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13991. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13992. # So? What about this header?
  13993. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13994. yes:no: )
  13995. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13996. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13997. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13998. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13999. ac_header_preproc=yes
  14000. ;;
  14001. no:yes:* )
  14002. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14003. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14004. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14005. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14006. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14007. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14008. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14009. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14011. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14012. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14013. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14014. ( cat <<\_ASBOX
  14015. ## ----------------------------------------------- ##
  14016. ## Report this to t-tujikawa@users.sourceforge.net ##
  14017. ## ----------------------------------------------- ##
  14018. _ASBOX
  14019. ) | sed "s/^/$as_me: WARNING: /" >&2
  14020. ;;
  14021. esac
  14022. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14023. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14024. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14025. echo $ECHO_N "(cached) $ECHO_C" >&6
  14026. else
  14027. eval "$as_ac_Header=\$ac_header_preproc"
  14028. fi
  14029. ac_res=`eval echo '${'$as_ac_Header'}'`
  14030. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14031. echo "${ECHO_T}$ac_res" >&6; }
  14032. fi
  14033. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14034. cat >>confdefs.h <<_ACEOF
  14035. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14036. _ACEOF
  14037. fi
  14038. done
  14039. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14040. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14041. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14042. echo $ECHO_N "(cached) $ECHO_C" >&6
  14043. else
  14044. gt_save_LIBS="$LIBS"
  14045. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14046. cat >conftest.$ac_ext <<_ACEOF
  14047. /* confdefs.h. */
  14048. _ACEOF
  14049. cat confdefs.h >>conftest.$ac_ext
  14050. cat >>conftest.$ac_ext <<_ACEOF
  14051. /* end confdefs.h. */
  14052. #include <CoreFoundation/CFPreferences.h>
  14053. int
  14054. main ()
  14055. {
  14056. CFPreferencesCopyAppValue(NULL, NULL)
  14057. ;
  14058. return 0;
  14059. }
  14060. _ACEOF
  14061. rm -f conftest.$ac_objext conftest$ac_exeext
  14062. if { (ac_try="$ac_link"
  14063. case "(($ac_try" in
  14064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14065. *) ac_try_echo=$ac_try;;
  14066. esac
  14067. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14068. (eval "$ac_link") 2>conftest.er1
  14069. ac_status=$?
  14070. grep -v '^ *+' conftest.er1 >conftest.err
  14071. rm -f conftest.er1
  14072. cat conftest.err >&5
  14073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14074. (exit $ac_status); } && {
  14075. test -z "$ac_cxx_werror_flag" ||
  14076. test ! -s conftest.err
  14077. } && test -s conftest$ac_exeext &&
  14078. $as_test_x conftest$ac_exeext; then
  14079. gt_cv_func_CFPreferencesCopyAppValue=yes
  14080. else
  14081. echo "$as_me: failed program was:" >&5
  14082. sed 's/^/| /' conftest.$ac_ext >&5
  14083. gt_cv_func_CFPreferencesCopyAppValue=no
  14084. fi
  14085. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14086. conftest$ac_exeext conftest.$ac_ext
  14087. LIBS="$gt_save_LIBS"
  14088. fi
  14089. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14090. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14091. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14092. cat >>confdefs.h <<\_ACEOF
  14093. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14094. _ACEOF
  14095. fi
  14096. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14097. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14098. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14099. echo $ECHO_N "(cached) $ECHO_C" >&6
  14100. else
  14101. gt_save_LIBS="$LIBS"
  14102. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14103. cat >conftest.$ac_ext <<_ACEOF
  14104. /* confdefs.h. */
  14105. _ACEOF
  14106. cat confdefs.h >>conftest.$ac_ext
  14107. cat >>conftest.$ac_ext <<_ACEOF
  14108. /* end confdefs.h. */
  14109. #include <CoreFoundation/CFLocale.h>
  14110. int
  14111. main ()
  14112. {
  14113. CFLocaleCopyCurrent();
  14114. ;
  14115. return 0;
  14116. }
  14117. _ACEOF
  14118. rm -f conftest.$ac_objext conftest$ac_exeext
  14119. if { (ac_try="$ac_link"
  14120. case "(($ac_try" in
  14121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14122. *) ac_try_echo=$ac_try;;
  14123. esac
  14124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14125. (eval "$ac_link") 2>conftest.er1
  14126. ac_status=$?
  14127. grep -v '^ *+' conftest.er1 >conftest.err
  14128. rm -f conftest.er1
  14129. cat conftest.err >&5
  14130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14131. (exit $ac_status); } && {
  14132. test -z "$ac_cxx_werror_flag" ||
  14133. test ! -s conftest.err
  14134. } && test -s conftest$ac_exeext &&
  14135. $as_test_x conftest$ac_exeext; then
  14136. gt_cv_func_CFLocaleCopyCurrent=yes
  14137. else
  14138. echo "$as_me: failed program was:" >&5
  14139. sed 's/^/| /' conftest.$ac_ext >&5
  14140. gt_cv_func_CFLocaleCopyCurrent=no
  14141. fi
  14142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14143. conftest$ac_exeext conftest.$ac_ext
  14144. LIBS="$gt_save_LIBS"
  14145. fi
  14146. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14147. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14148. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14149. cat >>confdefs.h <<\_ACEOF
  14150. #define HAVE_CFLOCALECOPYCURRENT 1
  14151. _ACEOF
  14152. fi
  14153. INTL_MACOSX_LIBS=
  14154. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14155. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14156. fi
  14157. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14158. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14159. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14160. echo $ECHO_N "(cached) $ECHO_C" >&6
  14161. else
  14162. cat >conftest.$ac_ext <<_ACEOF
  14163. /* confdefs.h. */
  14164. _ACEOF
  14165. cat confdefs.h >>conftest.$ac_ext
  14166. cat >>conftest.$ac_ext <<_ACEOF
  14167. /* end confdefs.h. */
  14168. $ac_includes_default
  14169. typedef ptrdiff_t ac__type_new_;
  14170. int
  14171. main ()
  14172. {
  14173. if ((ac__type_new_ *) 0)
  14174. return 0;
  14175. if (sizeof (ac__type_new_))
  14176. return 0;
  14177. ;
  14178. return 0;
  14179. }
  14180. _ACEOF
  14181. rm -f conftest.$ac_objext
  14182. if { (ac_try="$ac_compile"
  14183. case "(($ac_try" in
  14184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14185. *) ac_try_echo=$ac_try;;
  14186. esac
  14187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14188. (eval "$ac_compile") 2>conftest.er1
  14189. ac_status=$?
  14190. grep -v '^ *+' conftest.er1 >conftest.err
  14191. rm -f conftest.er1
  14192. cat conftest.err >&5
  14193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14194. (exit $ac_status); } && {
  14195. test -z "$ac_cxx_werror_flag" ||
  14196. test ! -s conftest.err
  14197. } && test -s conftest.$ac_objext; then
  14198. ac_cv_type_ptrdiff_t=yes
  14199. else
  14200. echo "$as_me: failed program was:" >&5
  14201. sed 's/^/| /' conftest.$ac_ext >&5
  14202. ac_cv_type_ptrdiff_t=no
  14203. fi
  14204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14205. fi
  14206. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14207. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14208. if test $ac_cv_type_ptrdiff_t = yes; then
  14209. :
  14210. else
  14211. cat >>confdefs.h <<\_ACEOF
  14212. #define ptrdiff_t long
  14213. _ACEOF
  14214. fi
  14215. for ac_header in stddef.h stdlib.h string.h
  14216. do
  14217. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14218. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14219. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14220. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14221. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14222. echo $ECHO_N "(cached) $ECHO_C" >&6
  14223. fi
  14224. ac_res=`eval echo '${'$as_ac_Header'}'`
  14225. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14226. echo "${ECHO_T}$ac_res" >&6; }
  14227. else
  14228. # Is the header compilable?
  14229. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14230. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14231. cat >conftest.$ac_ext <<_ACEOF
  14232. /* confdefs.h. */
  14233. _ACEOF
  14234. cat confdefs.h >>conftest.$ac_ext
  14235. cat >>conftest.$ac_ext <<_ACEOF
  14236. /* end confdefs.h. */
  14237. $ac_includes_default
  14238. #include <$ac_header>
  14239. _ACEOF
  14240. rm -f conftest.$ac_objext
  14241. if { (ac_try="$ac_compile"
  14242. case "(($ac_try" in
  14243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14244. *) ac_try_echo=$ac_try;;
  14245. esac
  14246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14247. (eval "$ac_compile") 2>conftest.er1
  14248. ac_status=$?
  14249. grep -v '^ *+' conftest.er1 >conftest.err
  14250. rm -f conftest.er1
  14251. cat conftest.err >&5
  14252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14253. (exit $ac_status); } && {
  14254. test -z "$ac_cxx_werror_flag" ||
  14255. test ! -s conftest.err
  14256. } && test -s conftest.$ac_objext; then
  14257. ac_header_compiler=yes
  14258. else
  14259. echo "$as_me: failed program was:" >&5
  14260. sed 's/^/| /' conftest.$ac_ext >&5
  14261. ac_header_compiler=no
  14262. fi
  14263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14264. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14265. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14266. # Is the header present?
  14267. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14268. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14269. cat >conftest.$ac_ext <<_ACEOF
  14270. /* confdefs.h. */
  14271. _ACEOF
  14272. cat confdefs.h >>conftest.$ac_ext
  14273. cat >>conftest.$ac_ext <<_ACEOF
  14274. /* end confdefs.h. */
  14275. #include <$ac_header>
  14276. _ACEOF
  14277. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14278. case "(($ac_try" in
  14279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14280. *) ac_try_echo=$ac_try;;
  14281. esac
  14282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14283. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14284. ac_status=$?
  14285. grep -v '^ *+' conftest.er1 >conftest.err
  14286. rm -f conftest.er1
  14287. cat conftest.err >&5
  14288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14289. (exit $ac_status); } >/dev/null && {
  14290. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14291. test ! -s conftest.err
  14292. }; then
  14293. ac_header_preproc=yes
  14294. else
  14295. echo "$as_me: failed program was:" >&5
  14296. sed 's/^/| /' conftest.$ac_ext >&5
  14297. ac_header_preproc=no
  14298. fi
  14299. rm -f conftest.err conftest.$ac_ext
  14300. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14301. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14302. # So? What about this header?
  14303. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14304. yes:no: )
  14305. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14306. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14307. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14308. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14309. ac_header_preproc=yes
  14310. ;;
  14311. no:yes:* )
  14312. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14313. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14314. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14315. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14316. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14317. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14318. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14319. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14320. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14321. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14322. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14323. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14324. ( cat <<\_ASBOX
  14325. ## ----------------------------------------------- ##
  14326. ## Report this to t-tujikawa@users.sourceforge.net ##
  14327. ## ----------------------------------------------- ##
  14328. _ASBOX
  14329. ) | sed "s/^/$as_me: WARNING: /" >&2
  14330. ;;
  14331. esac
  14332. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14333. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14334. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14335. echo $ECHO_N "(cached) $ECHO_C" >&6
  14336. else
  14337. eval "$as_ac_Header=\$ac_header_preproc"
  14338. fi
  14339. ac_res=`eval echo '${'$as_ac_Header'}'`
  14340. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14341. echo "${ECHO_T}$ac_res" >&6; }
  14342. fi
  14343. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14344. cat >>confdefs.h <<_ACEOF
  14345. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14346. _ACEOF
  14347. fi
  14348. done
  14349. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14350. do
  14351. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14352. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14353. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14354. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14355. echo $ECHO_N "(cached) $ECHO_C" >&6
  14356. else
  14357. cat >conftest.$ac_ext <<_ACEOF
  14358. /* confdefs.h. */
  14359. _ACEOF
  14360. cat confdefs.h >>conftest.$ac_ext
  14361. cat >>conftest.$ac_ext <<_ACEOF
  14362. /* end confdefs.h. */
  14363. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14364. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14365. #define $ac_func innocuous_$ac_func
  14366. /* System header to define __stub macros and hopefully few prototypes,
  14367. which can conflict with char $ac_func (); below.
  14368. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14369. <limits.h> exists even on freestanding compilers. */
  14370. #ifdef __STDC__
  14371. # include <limits.h>
  14372. #else
  14373. # include <assert.h>
  14374. #endif
  14375. #undef $ac_func
  14376. /* Override any GCC internal prototype to avoid an error.
  14377. Use char because int might match the return type of a GCC
  14378. builtin and then its argument prototype would still apply. */
  14379. #ifdef __cplusplus
  14380. extern "C"
  14381. #endif
  14382. char $ac_func ();
  14383. /* The GNU C library defines this for functions which it implements
  14384. to always fail with ENOSYS. Some functions are actually named
  14385. something starting with __ and the normal name is an alias. */
  14386. #if defined __stub_$ac_func || defined __stub___$ac_func
  14387. choke me
  14388. #endif
  14389. int
  14390. main ()
  14391. {
  14392. return $ac_func ();
  14393. ;
  14394. return 0;
  14395. }
  14396. _ACEOF
  14397. rm -f conftest.$ac_objext conftest$ac_exeext
  14398. if { (ac_try="$ac_link"
  14399. case "(($ac_try" in
  14400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14401. *) ac_try_echo=$ac_try;;
  14402. esac
  14403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14404. (eval "$ac_link") 2>conftest.er1
  14405. ac_status=$?
  14406. grep -v '^ *+' conftest.er1 >conftest.err
  14407. rm -f conftest.er1
  14408. cat conftest.err >&5
  14409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14410. (exit $ac_status); } && {
  14411. test -z "$ac_cxx_werror_flag" ||
  14412. test ! -s conftest.err
  14413. } && test -s conftest$ac_exeext &&
  14414. $as_test_x conftest$ac_exeext; then
  14415. eval "$as_ac_var=yes"
  14416. else
  14417. echo "$as_me: failed program was:" >&5
  14418. sed 's/^/| /' conftest.$ac_ext >&5
  14419. eval "$as_ac_var=no"
  14420. fi
  14421. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14422. conftest$ac_exeext conftest.$ac_ext
  14423. fi
  14424. ac_res=`eval echo '${'$as_ac_var'}'`
  14425. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14426. echo "${ECHO_T}$ac_res" >&6; }
  14427. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14428. cat >>confdefs.h <<_ACEOF
  14429. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14430. _ACEOF
  14431. fi
  14432. done
  14433. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14434. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14435. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14436. echo $ECHO_N "(cached) $ECHO_C" >&6
  14437. else
  14438. cat >conftest.$ac_ext <<_ACEOF
  14439. /* confdefs.h. */
  14440. _ACEOF
  14441. cat confdefs.h >>conftest.$ac_ext
  14442. cat >>conftest.$ac_ext <<_ACEOF
  14443. /* end confdefs.h. */
  14444. #include <stdio.h>
  14445. int
  14446. main ()
  14447. {
  14448. #ifndef _snprintf
  14449. char *p = (char *) _snprintf;
  14450. #endif
  14451. ;
  14452. return 0;
  14453. }
  14454. _ACEOF
  14455. rm -f conftest.$ac_objext
  14456. if { (ac_try="$ac_compile"
  14457. case "(($ac_try" in
  14458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14459. *) ac_try_echo=$ac_try;;
  14460. esac
  14461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14462. (eval "$ac_compile") 2>conftest.er1
  14463. ac_status=$?
  14464. grep -v '^ *+' conftest.er1 >conftest.err
  14465. rm -f conftest.er1
  14466. cat conftest.err >&5
  14467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14468. (exit $ac_status); } && {
  14469. test -z "$ac_cxx_werror_flag" ||
  14470. test ! -s conftest.err
  14471. } && test -s conftest.$ac_objext; then
  14472. ac_cv_have_decl__snprintf=yes
  14473. else
  14474. echo "$as_me: failed program was:" >&5
  14475. sed 's/^/| /' conftest.$ac_ext >&5
  14476. ac_cv_have_decl__snprintf=no
  14477. fi
  14478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14479. fi
  14480. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14481. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14482. if test $ac_cv_have_decl__snprintf = yes; then
  14483. gt_value=1
  14484. else
  14485. gt_value=0
  14486. fi
  14487. cat >>confdefs.h <<_ACEOF
  14488. #define HAVE_DECL__SNPRINTF $gt_value
  14489. _ACEOF
  14490. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14491. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14492. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14493. echo $ECHO_N "(cached) $ECHO_C" >&6
  14494. else
  14495. cat >conftest.$ac_ext <<_ACEOF
  14496. /* confdefs.h. */
  14497. _ACEOF
  14498. cat confdefs.h >>conftest.$ac_ext
  14499. cat >>conftest.$ac_ext <<_ACEOF
  14500. /* end confdefs.h. */
  14501. #include <stdio.h>
  14502. int
  14503. main ()
  14504. {
  14505. #ifndef _snwprintf
  14506. char *p = (char *) _snwprintf;
  14507. #endif
  14508. ;
  14509. return 0;
  14510. }
  14511. _ACEOF
  14512. rm -f conftest.$ac_objext
  14513. if { (ac_try="$ac_compile"
  14514. case "(($ac_try" in
  14515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14516. *) ac_try_echo=$ac_try;;
  14517. esac
  14518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14519. (eval "$ac_compile") 2>conftest.er1
  14520. ac_status=$?
  14521. grep -v '^ *+' conftest.er1 >conftest.err
  14522. rm -f conftest.er1
  14523. cat conftest.err >&5
  14524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14525. (exit $ac_status); } && {
  14526. test -z "$ac_cxx_werror_flag" ||
  14527. test ! -s conftest.err
  14528. } && test -s conftest.$ac_objext; then
  14529. ac_cv_have_decl__snwprintf=yes
  14530. else
  14531. echo "$as_me: failed program was:" >&5
  14532. sed 's/^/| /' conftest.$ac_ext >&5
  14533. ac_cv_have_decl__snwprintf=no
  14534. fi
  14535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14536. fi
  14537. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14538. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14539. if test $ac_cv_have_decl__snwprintf = yes; then
  14540. gt_value=1
  14541. else
  14542. gt_value=0
  14543. fi
  14544. cat >>confdefs.h <<_ACEOF
  14545. #define HAVE_DECL__SNWPRINTF $gt_value
  14546. _ACEOF
  14547. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14548. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14549. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14550. echo $ECHO_N "(cached) $ECHO_C" >&6
  14551. else
  14552. cat >conftest.$ac_ext <<_ACEOF
  14553. /* confdefs.h. */
  14554. _ACEOF
  14555. cat confdefs.h >>conftest.$ac_ext
  14556. cat >>conftest.$ac_ext <<_ACEOF
  14557. /* end confdefs.h. */
  14558. #include <stdio.h>
  14559. int
  14560. main ()
  14561. {
  14562. #ifndef getc_unlocked
  14563. char *p = (char *) getc_unlocked;
  14564. #endif
  14565. ;
  14566. return 0;
  14567. }
  14568. _ACEOF
  14569. rm -f conftest.$ac_objext
  14570. if { (ac_try="$ac_compile"
  14571. case "(($ac_try" in
  14572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14573. *) ac_try_echo=$ac_try;;
  14574. esac
  14575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14576. (eval "$ac_compile") 2>conftest.er1
  14577. ac_status=$?
  14578. grep -v '^ *+' conftest.er1 >conftest.err
  14579. rm -f conftest.er1
  14580. cat conftest.err >&5
  14581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14582. (exit $ac_status); } && {
  14583. test -z "$ac_cxx_werror_flag" ||
  14584. test ! -s conftest.err
  14585. } && test -s conftest.$ac_objext; then
  14586. ac_cv_have_decl_getc_unlocked=yes
  14587. else
  14588. echo "$as_me: failed program was:" >&5
  14589. sed 's/^/| /' conftest.$ac_ext >&5
  14590. ac_cv_have_decl_getc_unlocked=no
  14591. fi
  14592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14593. fi
  14594. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14595. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14596. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14597. gt_value=1
  14598. else
  14599. gt_value=0
  14600. fi
  14601. cat >>confdefs.h <<_ACEOF
  14602. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14603. _ACEOF
  14604. case $gt_cv_func_printf_posix in
  14605. *yes) HAVE_POSIX_PRINTF=1 ;;
  14606. *) HAVE_POSIX_PRINTF=0 ;;
  14607. esac
  14608. if test "$ac_cv_func_asprintf" = yes; then
  14609. HAVE_ASPRINTF=1
  14610. else
  14611. HAVE_ASPRINTF=0
  14612. fi
  14613. if test "$ac_cv_func_snprintf" = yes; then
  14614. HAVE_SNPRINTF=1
  14615. else
  14616. HAVE_SNPRINTF=0
  14617. fi
  14618. if test "$ac_cv_func_wprintf" = yes; then
  14619. HAVE_WPRINTF=1
  14620. else
  14621. HAVE_WPRINTF=0
  14622. fi
  14623. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14624. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14625. if test "${am_cv_langinfo_codeset+set}" = set; then
  14626. echo $ECHO_N "(cached) $ECHO_C" >&6
  14627. else
  14628. cat >conftest.$ac_ext <<_ACEOF
  14629. /* confdefs.h. */
  14630. _ACEOF
  14631. cat confdefs.h >>conftest.$ac_ext
  14632. cat >>conftest.$ac_ext <<_ACEOF
  14633. /* end confdefs.h. */
  14634. #include <langinfo.h>
  14635. int
  14636. main ()
  14637. {
  14638. char* cs = nl_langinfo(CODESET); return !cs;
  14639. ;
  14640. return 0;
  14641. }
  14642. _ACEOF
  14643. rm -f conftest.$ac_objext conftest$ac_exeext
  14644. if { (ac_try="$ac_link"
  14645. case "(($ac_try" in
  14646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14647. *) ac_try_echo=$ac_try;;
  14648. esac
  14649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14650. (eval "$ac_link") 2>conftest.er1
  14651. ac_status=$?
  14652. grep -v '^ *+' conftest.er1 >conftest.err
  14653. rm -f conftest.er1
  14654. cat conftest.err >&5
  14655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14656. (exit $ac_status); } && {
  14657. test -z "$ac_cxx_werror_flag" ||
  14658. test ! -s conftest.err
  14659. } && test -s conftest$ac_exeext &&
  14660. $as_test_x conftest$ac_exeext; then
  14661. am_cv_langinfo_codeset=yes
  14662. else
  14663. echo "$as_me: failed program was:" >&5
  14664. sed 's/^/| /' conftest.$ac_ext >&5
  14665. am_cv_langinfo_codeset=no
  14666. fi
  14667. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14668. conftest$ac_exeext conftest.$ac_ext
  14669. fi
  14670. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14671. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14672. if test $am_cv_langinfo_codeset = yes; then
  14673. cat >>confdefs.h <<\_ACEOF
  14674. #define HAVE_LANGINFO_CODESET 1
  14675. _ACEOF
  14676. fi
  14677. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14678. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14679. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14680. echo $ECHO_N "(cached) $ECHO_C" >&6
  14681. else
  14682. cat >conftest.$ac_ext <<_ACEOF
  14683. /* confdefs.h. */
  14684. _ACEOF
  14685. cat confdefs.h >>conftest.$ac_ext
  14686. cat >>conftest.$ac_ext <<_ACEOF
  14687. /* end confdefs.h. */
  14688. #include <locale.h>
  14689. int
  14690. main ()
  14691. {
  14692. return LC_MESSAGES
  14693. ;
  14694. return 0;
  14695. }
  14696. _ACEOF
  14697. rm -f conftest.$ac_objext conftest$ac_exeext
  14698. if { (ac_try="$ac_link"
  14699. case "(($ac_try" in
  14700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14701. *) ac_try_echo=$ac_try;;
  14702. esac
  14703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14704. (eval "$ac_link") 2>conftest.er1
  14705. ac_status=$?
  14706. grep -v '^ *+' conftest.er1 >conftest.err
  14707. rm -f conftest.er1
  14708. cat conftest.err >&5
  14709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14710. (exit $ac_status); } && {
  14711. test -z "$ac_cxx_werror_flag" ||
  14712. test ! -s conftest.err
  14713. } && test -s conftest$ac_exeext &&
  14714. $as_test_x conftest$ac_exeext; then
  14715. gt_cv_val_LC_MESSAGES=yes
  14716. else
  14717. echo "$as_me: failed program was:" >&5
  14718. sed 's/^/| /' conftest.$ac_ext >&5
  14719. gt_cv_val_LC_MESSAGES=no
  14720. fi
  14721. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14722. conftest$ac_exeext conftest.$ac_ext
  14723. fi
  14724. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14725. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14726. if test $gt_cv_val_LC_MESSAGES = yes; then
  14727. cat >>confdefs.h <<\_ACEOF
  14728. #define HAVE_LC_MESSAGES 1
  14729. _ACEOF
  14730. fi
  14731. if test "$enable_shared" = yes; then
  14732. case "$host_os" in
  14733. mingw* | cygwin*) is_woe32dll=yes ;;
  14734. *) is_woe32dll=no ;;
  14735. esac
  14736. else
  14737. is_woe32dll=no
  14738. fi
  14739. WOE32DLL=$is_woe32dll
  14740. case "$host_os" in
  14741. mingw* | cygwin*) is_woe32=yes ;;
  14742. *) is_woe32=no ;;
  14743. esac
  14744. WOE32=$is_woe32
  14745. if test $WOE32 = yes; then
  14746. if test -n "$ac_tool_prefix"; then
  14747. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14748. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14749. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14751. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14752. echo $ECHO_N "(cached) $ECHO_C" >&6
  14753. else
  14754. if test -n "$WINDRES"; then
  14755. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14756. else
  14757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14758. for as_dir in $PATH
  14759. do
  14760. IFS=$as_save_IFS
  14761. test -z "$as_dir" && as_dir=.
  14762. for ac_exec_ext in '' $ac_executable_extensions; do
  14763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14764. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14766. break 2
  14767. fi
  14768. done
  14769. done
  14770. IFS=$as_save_IFS
  14771. fi
  14772. fi
  14773. WINDRES=$ac_cv_prog_WINDRES
  14774. if test -n "$WINDRES"; then
  14775. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14776. echo "${ECHO_T}$WINDRES" >&6; }
  14777. else
  14778. { echo "$as_me:$LINENO: result: no" >&5
  14779. echo "${ECHO_T}no" >&6; }
  14780. fi
  14781. fi
  14782. if test -z "$ac_cv_prog_WINDRES"; then
  14783. ac_ct_WINDRES=$WINDRES
  14784. # Extract the first word of "windres", so it can be a program name with args.
  14785. set dummy windres; ac_word=$2
  14786. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14787. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14788. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14789. echo $ECHO_N "(cached) $ECHO_C" >&6
  14790. else
  14791. if test -n "$ac_ct_WINDRES"; then
  14792. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14793. else
  14794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14795. for as_dir in $PATH
  14796. do
  14797. IFS=$as_save_IFS
  14798. test -z "$as_dir" && as_dir=.
  14799. for ac_exec_ext in '' $ac_executable_extensions; do
  14800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14801. ac_cv_prog_ac_ct_WINDRES="windres"
  14802. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14803. break 2
  14804. fi
  14805. done
  14806. done
  14807. IFS=$as_save_IFS
  14808. fi
  14809. fi
  14810. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14811. if test -n "$ac_ct_WINDRES"; then
  14812. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14813. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14814. else
  14815. { echo "$as_me:$LINENO: result: no" >&5
  14816. echo "${ECHO_T}no" >&6; }
  14817. fi
  14818. if test "x$ac_ct_WINDRES" = x; then
  14819. WINDRES=""
  14820. else
  14821. case $cross_compiling:$ac_tool_warned in
  14822. yes:)
  14823. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14824. whose name does not start with the host triplet. If you think this
  14825. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14826. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14827. whose name does not start with the host triplet. If you think this
  14828. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14829. ac_tool_warned=yes ;;
  14830. esac
  14831. WINDRES=$ac_ct_WINDRES
  14832. fi
  14833. else
  14834. WINDRES="$ac_cv_prog_WINDRES"
  14835. fi
  14836. fi
  14837. case "$host_os" in
  14838. hpux*) LTLIBC="" ;;
  14839. *) LTLIBC="-lc" ;;
  14840. esac
  14841. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14842. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14843. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14844. echo $ECHO_N "(cached) $ECHO_C" >&6
  14845. else
  14846. gt_save_LIBS="$LIBS"
  14847. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14848. cat >conftest.$ac_ext <<_ACEOF
  14849. /* confdefs.h. */
  14850. _ACEOF
  14851. cat confdefs.h >>conftest.$ac_ext
  14852. cat >>conftest.$ac_ext <<_ACEOF
  14853. /* end confdefs.h. */
  14854. #include <CoreFoundation/CFPreferences.h>
  14855. int
  14856. main ()
  14857. {
  14858. CFPreferencesCopyAppValue(NULL, NULL)
  14859. ;
  14860. return 0;
  14861. }
  14862. _ACEOF
  14863. rm -f conftest.$ac_objext conftest$ac_exeext
  14864. if { (ac_try="$ac_link"
  14865. case "(($ac_try" in
  14866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14867. *) ac_try_echo=$ac_try;;
  14868. esac
  14869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14870. (eval "$ac_link") 2>conftest.er1
  14871. ac_status=$?
  14872. grep -v '^ *+' conftest.er1 >conftest.err
  14873. rm -f conftest.er1
  14874. cat conftest.err >&5
  14875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14876. (exit $ac_status); } && {
  14877. test -z "$ac_cxx_werror_flag" ||
  14878. test ! -s conftest.err
  14879. } && test -s conftest$ac_exeext &&
  14880. $as_test_x conftest$ac_exeext; then
  14881. gt_cv_func_CFPreferencesCopyAppValue=yes
  14882. else
  14883. echo "$as_me: failed program was:" >&5
  14884. sed 's/^/| /' conftest.$ac_ext >&5
  14885. gt_cv_func_CFPreferencesCopyAppValue=no
  14886. fi
  14887. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14888. conftest$ac_exeext conftest.$ac_ext
  14889. LIBS="$gt_save_LIBS"
  14890. fi
  14891. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14892. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14893. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14894. cat >>confdefs.h <<\_ACEOF
  14895. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14896. _ACEOF
  14897. fi
  14898. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14899. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14900. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14901. echo $ECHO_N "(cached) $ECHO_C" >&6
  14902. else
  14903. gt_save_LIBS="$LIBS"
  14904. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14905. cat >conftest.$ac_ext <<_ACEOF
  14906. /* confdefs.h. */
  14907. _ACEOF
  14908. cat confdefs.h >>conftest.$ac_ext
  14909. cat >>conftest.$ac_ext <<_ACEOF
  14910. /* end confdefs.h. */
  14911. #include <CoreFoundation/CFLocale.h>
  14912. int
  14913. main ()
  14914. {
  14915. CFLocaleCopyCurrent();
  14916. ;
  14917. return 0;
  14918. }
  14919. _ACEOF
  14920. rm -f conftest.$ac_objext conftest$ac_exeext
  14921. if { (ac_try="$ac_link"
  14922. case "(($ac_try" in
  14923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14924. *) ac_try_echo=$ac_try;;
  14925. esac
  14926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14927. (eval "$ac_link") 2>conftest.er1
  14928. ac_status=$?
  14929. grep -v '^ *+' conftest.er1 >conftest.err
  14930. rm -f conftest.er1
  14931. cat conftest.err >&5
  14932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14933. (exit $ac_status); } && {
  14934. test -z "$ac_cxx_werror_flag" ||
  14935. test ! -s conftest.err
  14936. } && test -s conftest$ac_exeext &&
  14937. $as_test_x conftest$ac_exeext; then
  14938. gt_cv_func_CFLocaleCopyCurrent=yes
  14939. else
  14940. echo "$as_me: failed program was:" >&5
  14941. sed 's/^/| /' conftest.$ac_ext >&5
  14942. gt_cv_func_CFLocaleCopyCurrent=no
  14943. fi
  14944. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14945. conftest$ac_exeext conftest.$ac_ext
  14946. LIBS="$gt_save_LIBS"
  14947. fi
  14948. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14949. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14950. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14951. cat >>confdefs.h <<\_ACEOF
  14952. #define HAVE_CFLOCALECOPYCURRENT 1
  14953. _ACEOF
  14954. fi
  14955. INTL_MACOSX_LIBS=
  14956. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14957. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14958. fi
  14959. BUILD_INCLUDED_LIBINTL=no
  14960. USE_INCLUDED_LIBINTL=no
  14961. LIBINTL=
  14962. LTLIBINTL=
  14963. POSUB=
  14964. case " $gt_needs " in
  14965. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14966. *" need-ngettext "*) gt_api_version=2 ;;
  14967. *) gt_api_version=1 ;;
  14968. esac
  14969. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14970. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14971. if test "$USE_NLS" = "yes"; then
  14972. gt_use_preinstalled_gnugettext=no
  14973. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14974. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14975. # Check whether --with-included-gettext was given.
  14976. if test "${with_included_gettext+set}" = set; then
  14977. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14978. else
  14979. nls_cv_force_use_gnu_gettext=no
  14980. fi
  14981. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14982. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14983. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14984. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14985. if test $gt_api_version -ge 3; then
  14986. gt_revision_test_code='
  14987. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14988. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14989. #endif
  14990. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14991. '
  14992. else
  14993. gt_revision_test_code=
  14994. fi
  14995. if test $gt_api_version -ge 2; then
  14996. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14997. else
  14998. gt_expression_test_code=
  14999. fi
  15000. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15001. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15002. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15003. echo $ECHO_N "(cached) $ECHO_C" >&6
  15004. else
  15005. cat >conftest.$ac_ext <<_ACEOF
  15006. /* confdefs.h. */
  15007. _ACEOF
  15008. cat confdefs.h >>conftest.$ac_ext
  15009. cat >>conftest.$ac_ext <<_ACEOF
  15010. /* end confdefs.h. */
  15011. #include <libintl.h>
  15012. $gt_revision_test_code
  15013. extern int _nl_msg_cat_cntr;
  15014. extern int *_nl_domain_bindings;
  15015. int
  15016. main ()
  15017. {
  15018. bindtextdomain ("", "");
  15019. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15020. ;
  15021. return 0;
  15022. }
  15023. _ACEOF
  15024. rm -f conftest.$ac_objext conftest$ac_exeext
  15025. if { (ac_try="$ac_link"
  15026. case "(($ac_try" in
  15027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15028. *) ac_try_echo=$ac_try;;
  15029. esac
  15030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15031. (eval "$ac_link") 2>conftest.er1
  15032. ac_status=$?
  15033. grep -v '^ *+' conftest.er1 >conftest.err
  15034. rm -f conftest.er1
  15035. cat conftest.err >&5
  15036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15037. (exit $ac_status); } && {
  15038. test -z "$ac_cxx_werror_flag" ||
  15039. test ! -s conftest.err
  15040. } && test -s conftest$ac_exeext &&
  15041. $as_test_x conftest$ac_exeext; then
  15042. eval "$gt_func_gnugettext_libc=yes"
  15043. else
  15044. echo "$as_me: failed program was:" >&5
  15045. sed 's/^/| /' conftest.$ac_ext >&5
  15046. eval "$gt_func_gnugettext_libc=no"
  15047. fi
  15048. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15049. conftest$ac_exeext conftest.$ac_ext
  15050. fi
  15051. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15052. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15053. echo "${ECHO_T}$ac_res" >&6; }
  15054. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15055. use_additional=yes
  15056. acl_save_prefix="$prefix"
  15057. prefix="$acl_final_prefix"
  15058. acl_save_exec_prefix="$exec_prefix"
  15059. exec_prefix="$acl_final_exec_prefix"
  15060. eval additional_includedir=\"$includedir\"
  15061. eval additional_libdir=\"$libdir\"
  15062. exec_prefix="$acl_save_exec_prefix"
  15063. prefix="$acl_save_prefix"
  15064. # Check whether --with-libintl-prefix was given.
  15065. if test "${with_libintl_prefix+set}" = set; then
  15066. withval=$with_libintl_prefix;
  15067. if test "X$withval" = "Xno"; then
  15068. use_additional=no
  15069. else
  15070. if test "X$withval" = "X"; then
  15071. acl_save_prefix="$prefix"
  15072. prefix="$acl_final_prefix"
  15073. acl_save_exec_prefix="$exec_prefix"
  15074. exec_prefix="$acl_final_exec_prefix"
  15075. eval additional_includedir=\"$includedir\"
  15076. eval additional_libdir=\"$libdir\"
  15077. exec_prefix="$acl_save_exec_prefix"
  15078. prefix="$acl_save_prefix"
  15079. else
  15080. additional_includedir="$withval/include"
  15081. additional_libdir="$withval/$acl_libdirstem"
  15082. fi
  15083. fi
  15084. fi
  15085. LIBINTL=
  15086. LTLIBINTL=
  15087. INCINTL=
  15088. LIBINTL_PREFIX=
  15089. rpathdirs=
  15090. ltrpathdirs=
  15091. names_already_handled=
  15092. names_next_round='intl '
  15093. while test -n "$names_next_round"; do
  15094. names_this_round="$names_next_round"
  15095. names_next_round=
  15096. for name in $names_this_round; do
  15097. already_handled=
  15098. for n in $names_already_handled; do
  15099. if test "$n" = "$name"; then
  15100. already_handled=yes
  15101. break
  15102. fi
  15103. done
  15104. if test -z "$already_handled"; then
  15105. names_already_handled="$names_already_handled $name"
  15106. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15107. eval value=\"\$HAVE_LIB$uppername\"
  15108. if test -n "$value"; then
  15109. if test "$value" = yes; then
  15110. eval value=\"\$LIB$uppername\"
  15111. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15112. eval value=\"\$LTLIB$uppername\"
  15113. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15114. else
  15115. :
  15116. fi
  15117. else
  15118. found_dir=
  15119. found_la=
  15120. found_so=
  15121. found_a=
  15122. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15123. if test -n "$acl_shlibext"; then
  15124. shrext=".$acl_shlibext" # typically: shrext=.so
  15125. else
  15126. shrext=
  15127. fi
  15128. if test $use_additional = yes; then
  15129. dir="$additional_libdir"
  15130. if test -n "$acl_shlibext"; then
  15131. if test -f "$dir/$libname$shrext"; then
  15132. found_dir="$dir"
  15133. found_so="$dir/$libname$shrext"
  15134. else
  15135. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15136. ver=`(cd "$dir" && \
  15137. for f in "$libname$shrext".*; do echo "$f"; done \
  15138. | sed -e "s,^$libname$shrext\\\\.,," \
  15139. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15140. | sed 1q ) 2>/dev/null`
  15141. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15142. found_dir="$dir"
  15143. found_so="$dir/$libname$shrext.$ver"
  15144. fi
  15145. else
  15146. eval library_names=\"$acl_library_names_spec\"
  15147. for f in $library_names; do
  15148. if test -f "$dir/$f"; then
  15149. found_dir="$dir"
  15150. found_so="$dir/$f"
  15151. break
  15152. fi
  15153. done
  15154. fi
  15155. fi
  15156. fi
  15157. if test "X$found_dir" = "X"; then
  15158. if test -f "$dir/$libname.$acl_libext"; then
  15159. found_dir="$dir"
  15160. found_a="$dir/$libname.$acl_libext"
  15161. fi
  15162. fi
  15163. if test "X$found_dir" != "X"; then
  15164. if test -f "$dir/$libname.la"; then
  15165. found_la="$dir/$libname.la"
  15166. fi
  15167. fi
  15168. fi
  15169. if test "X$found_dir" = "X"; then
  15170. for x in $LDFLAGS $LTLIBINTL; do
  15171. acl_save_prefix="$prefix"
  15172. prefix="$acl_final_prefix"
  15173. acl_save_exec_prefix="$exec_prefix"
  15174. exec_prefix="$acl_final_exec_prefix"
  15175. eval x=\"$x\"
  15176. exec_prefix="$acl_save_exec_prefix"
  15177. prefix="$acl_save_prefix"
  15178. case "$x" in
  15179. -L*)
  15180. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15181. if test -n "$acl_shlibext"; then
  15182. if test -f "$dir/$libname$shrext"; then
  15183. found_dir="$dir"
  15184. found_so="$dir/$libname$shrext"
  15185. else
  15186. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15187. ver=`(cd "$dir" && \
  15188. for f in "$libname$shrext".*; do echo "$f"; done \
  15189. | sed -e "s,^$libname$shrext\\\\.,," \
  15190. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15191. | sed 1q ) 2>/dev/null`
  15192. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15193. found_dir="$dir"
  15194. found_so="$dir/$libname$shrext.$ver"
  15195. fi
  15196. else
  15197. eval library_names=\"$acl_library_names_spec\"
  15198. for f in $library_names; do
  15199. if test -f "$dir/$f"; then
  15200. found_dir="$dir"
  15201. found_so="$dir/$f"
  15202. break
  15203. fi
  15204. done
  15205. fi
  15206. fi
  15207. fi
  15208. if test "X$found_dir" = "X"; then
  15209. if test -f "$dir/$libname.$acl_libext"; then
  15210. found_dir="$dir"
  15211. found_a="$dir/$libname.$acl_libext"
  15212. fi
  15213. fi
  15214. if test "X$found_dir" != "X"; then
  15215. if test -f "$dir/$libname.la"; then
  15216. found_la="$dir/$libname.la"
  15217. fi
  15218. fi
  15219. ;;
  15220. esac
  15221. if test "X$found_dir" != "X"; then
  15222. break
  15223. fi
  15224. done
  15225. fi
  15226. if test "X$found_dir" != "X"; then
  15227. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15228. if test "X$found_so" != "X"; then
  15229. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15230. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15231. else
  15232. haveit=
  15233. for x in $ltrpathdirs; do
  15234. if test "X$x" = "X$found_dir"; then
  15235. haveit=yes
  15236. break
  15237. fi
  15238. done
  15239. if test -z "$haveit"; then
  15240. ltrpathdirs="$ltrpathdirs $found_dir"
  15241. fi
  15242. if test "$acl_hardcode_direct" = yes; then
  15243. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15244. else
  15245. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15246. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15247. haveit=
  15248. for x in $rpathdirs; do
  15249. if test "X$x" = "X$found_dir"; then
  15250. haveit=yes
  15251. break
  15252. fi
  15253. done
  15254. if test -z "$haveit"; then
  15255. rpathdirs="$rpathdirs $found_dir"
  15256. fi
  15257. else
  15258. haveit=
  15259. for x in $LDFLAGS $LIBINTL; do
  15260. acl_save_prefix="$prefix"
  15261. prefix="$acl_final_prefix"
  15262. acl_save_exec_prefix="$exec_prefix"
  15263. exec_prefix="$acl_final_exec_prefix"
  15264. eval x=\"$x\"
  15265. exec_prefix="$acl_save_exec_prefix"
  15266. prefix="$acl_save_prefix"
  15267. if test "X$x" = "X-L$found_dir"; then
  15268. haveit=yes
  15269. break
  15270. fi
  15271. done
  15272. if test -z "$haveit"; then
  15273. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15274. fi
  15275. if test "$acl_hardcode_minus_L" != no; then
  15276. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15277. else
  15278. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15279. fi
  15280. fi
  15281. fi
  15282. fi
  15283. else
  15284. if test "X$found_a" != "X"; then
  15285. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15286. else
  15287. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15288. fi
  15289. fi
  15290. additional_includedir=
  15291. case "$found_dir" in
  15292. */$acl_libdirstem | */$acl_libdirstem/)
  15293. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15294. LIBINTL_PREFIX="$basedir"
  15295. additional_includedir="$basedir/include"
  15296. ;;
  15297. esac
  15298. if test "X$additional_includedir" != "X"; then
  15299. if test "X$additional_includedir" != "X/usr/include"; then
  15300. haveit=
  15301. if test "X$additional_includedir" = "X/usr/local/include"; then
  15302. if test -n "$GCC"; then
  15303. case $host_os in
  15304. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15305. esac
  15306. fi
  15307. fi
  15308. if test -z "$haveit"; then
  15309. for x in $CPPFLAGS $INCINTL; do
  15310. acl_save_prefix="$prefix"
  15311. prefix="$acl_final_prefix"
  15312. acl_save_exec_prefix="$exec_prefix"
  15313. exec_prefix="$acl_final_exec_prefix"
  15314. eval x=\"$x\"
  15315. exec_prefix="$acl_save_exec_prefix"
  15316. prefix="$acl_save_prefix"
  15317. if test "X$x" = "X-I$additional_includedir"; then
  15318. haveit=yes
  15319. break
  15320. fi
  15321. done
  15322. if test -z "$haveit"; then
  15323. if test -d "$additional_includedir"; then
  15324. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15325. fi
  15326. fi
  15327. fi
  15328. fi
  15329. fi
  15330. if test -n "$found_la"; then
  15331. save_libdir="$libdir"
  15332. case "$found_la" in
  15333. */* | *\\*) . "$found_la" ;;
  15334. *) . "./$found_la" ;;
  15335. esac
  15336. libdir="$save_libdir"
  15337. for dep in $dependency_libs; do
  15338. case "$dep" in
  15339. -L*)
  15340. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15341. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15342. haveit=
  15343. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15344. if test -n "$GCC"; then
  15345. case $host_os in
  15346. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15347. esac
  15348. fi
  15349. fi
  15350. if test -z "$haveit"; then
  15351. haveit=
  15352. for x in $LDFLAGS $LIBINTL; do
  15353. acl_save_prefix="$prefix"
  15354. prefix="$acl_final_prefix"
  15355. acl_save_exec_prefix="$exec_prefix"
  15356. exec_prefix="$acl_final_exec_prefix"
  15357. eval x=\"$x\"
  15358. exec_prefix="$acl_save_exec_prefix"
  15359. prefix="$acl_save_prefix"
  15360. if test "X$x" = "X-L$additional_libdir"; then
  15361. haveit=yes
  15362. break
  15363. fi
  15364. done
  15365. if test -z "$haveit"; then
  15366. if test -d "$additional_libdir"; then
  15367. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15368. fi
  15369. fi
  15370. haveit=
  15371. for x in $LDFLAGS $LTLIBINTL; do
  15372. acl_save_prefix="$prefix"
  15373. prefix="$acl_final_prefix"
  15374. acl_save_exec_prefix="$exec_prefix"
  15375. exec_prefix="$acl_final_exec_prefix"
  15376. eval x=\"$x\"
  15377. exec_prefix="$acl_save_exec_prefix"
  15378. prefix="$acl_save_prefix"
  15379. if test "X$x" = "X-L$additional_libdir"; then
  15380. haveit=yes
  15381. break
  15382. fi
  15383. done
  15384. if test -z "$haveit"; then
  15385. if test -d "$additional_libdir"; then
  15386. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15387. fi
  15388. fi
  15389. fi
  15390. fi
  15391. ;;
  15392. -R*)
  15393. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15394. if test "$enable_rpath" != no; then
  15395. haveit=
  15396. for x in $rpathdirs; do
  15397. if test "X$x" = "X$dir"; then
  15398. haveit=yes
  15399. break
  15400. fi
  15401. done
  15402. if test -z "$haveit"; then
  15403. rpathdirs="$rpathdirs $dir"
  15404. fi
  15405. haveit=
  15406. for x in $ltrpathdirs; do
  15407. if test "X$x" = "X$dir"; then
  15408. haveit=yes
  15409. break
  15410. fi
  15411. done
  15412. if test -z "$haveit"; then
  15413. ltrpathdirs="$ltrpathdirs $dir"
  15414. fi
  15415. fi
  15416. ;;
  15417. -l*)
  15418. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15419. ;;
  15420. *.la)
  15421. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15422. ;;
  15423. *)
  15424. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15425. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15426. ;;
  15427. esac
  15428. done
  15429. fi
  15430. else
  15431. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15432. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15433. fi
  15434. fi
  15435. fi
  15436. done
  15437. done
  15438. if test "X$rpathdirs" != "X"; then
  15439. if test -n "$acl_hardcode_libdir_separator"; then
  15440. alldirs=
  15441. for found_dir in $rpathdirs; do
  15442. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15443. done
  15444. acl_save_libdir="$libdir"
  15445. libdir="$alldirs"
  15446. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15447. libdir="$acl_save_libdir"
  15448. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15449. else
  15450. for found_dir in $rpathdirs; do
  15451. acl_save_libdir="$libdir"
  15452. libdir="$found_dir"
  15453. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15454. libdir="$acl_save_libdir"
  15455. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15456. done
  15457. fi
  15458. fi
  15459. if test "X$ltrpathdirs" != "X"; then
  15460. for found_dir in $ltrpathdirs; do
  15461. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15462. done
  15463. fi
  15464. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15465. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15466. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15467. echo $ECHO_N "(cached) $ECHO_C" >&6
  15468. else
  15469. gt_save_CPPFLAGS="$CPPFLAGS"
  15470. CPPFLAGS="$CPPFLAGS $INCINTL"
  15471. gt_save_LIBS="$LIBS"
  15472. LIBS="$LIBS $LIBINTL"
  15473. cat >conftest.$ac_ext <<_ACEOF
  15474. /* confdefs.h. */
  15475. _ACEOF
  15476. cat confdefs.h >>conftest.$ac_ext
  15477. cat >>conftest.$ac_ext <<_ACEOF
  15478. /* end confdefs.h. */
  15479. #include <libintl.h>
  15480. $gt_revision_test_code
  15481. extern int _nl_msg_cat_cntr;
  15482. extern
  15483. #ifdef __cplusplus
  15484. "C"
  15485. #endif
  15486. const char *_nl_expand_alias (const char *);
  15487. int
  15488. main ()
  15489. {
  15490. bindtextdomain ("", "");
  15491. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15492. ;
  15493. return 0;
  15494. }
  15495. _ACEOF
  15496. rm -f conftest.$ac_objext conftest$ac_exeext
  15497. if { (ac_try="$ac_link"
  15498. case "(($ac_try" in
  15499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15500. *) ac_try_echo=$ac_try;;
  15501. esac
  15502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15503. (eval "$ac_link") 2>conftest.er1
  15504. ac_status=$?
  15505. grep -v '^ *+' conftest.er1 >conftest.err
  15506. rm -f conftest.er1
  15507. cat conftest.err >&5
  15508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15509. (exit $ac_status); } && {
  15510. test -z "$ac_cxx_werror_flag" ||
  15511. test ! -s conftest.err
  15512. } && test -s conftest$ac_exeext &&
  15513. $as_test_x conftest$ac_exeext; then
  15514. eval "$gt_func_gnugettext_libintl=yes"
  15515. else
  15516. echo "$as_me: failed program was:" >&5
  15517. sed 's/^/| /' conftest.$ac_ext >&5
  15518. eval "$gt_func_gnugettext_libintl=no"
  15519. fi
  15520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15521. conftest$ac_exeext conftest.$ac_ext
  15522. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15523. LIBS="$LIBS $LIBICONV"
  15524. cat >conftest.$ac_ext <<_ACEOF
  15525. /* confdefs.h. */
  15526. _ACEOF
  15527. cat confdefs.h >>conftest.$ac_ext
  15528. cat >>conftest.$ac_ext <<_ACEOF
  15529. /* end confdefs.h. */
  15530. #include <libintl.h>
  15531. $gt_revision_test_code
  15532. extern int _nl_msg_cat_cntr;
  15533. extern
  15534. #ifdef __cplusplus
  15535. "C"
  15536. #endif
  15537. const char *_nl_expand_alias (const char *);
  15538. int
  15539. main ()
  15540. {
  15541. bindtextdomain ("", "");
  15542. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15543. ;
  15544. return 0;
  15545. }
  15546. _ACEOF
  15547. rm -f conftest.$ac_objext conftest$ac_exeext
  15548. if { (ac_try="$ac_link"
  15549. case "(($ac_try" in
  15550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15551. *) ac_try_echo=$ac_try;;
  15552. esac
  15553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15554. (eval "$ac_link") 2>conftest.er1
  15555. ac_status=$?
  15556. grep -v '^ *+' conftest.er1 >conftest.err
  15557. rm -f conftest.er1
  15558. cat conftest.err >&5
  15559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15560. (exit $ac_status); } && {
  15561. test -z "$ac_cxx_werror_flag" ||
  15562. test ! -s conftest.err
  15563. } && test -s conftest$ac_exeext &&
  15564. $as_test_x conftest$ac_exeext; then
  15565. LIBINTL="$LIBINTL $LIBICONV"
  15566. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15567. eval "$gt_func_gnugettext_libintl=yes"
  15568. else
  15569. echo "$as_me: failed program was:" >&5
  15570. sed 's/^/| /' conftest.$ac_ext >&5
  15571. fi
  15572. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15573. conftest$ac_exeext conftest.$ac_ext
  15574. fi
  15575. CPPFLAGS="$gt_save_CPPFLAGS"
  15576. LIBS="$gt_save_LIBS"
  15577. fi
  15578. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15579. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15580. echo "${ECHO_T}$ac_res" >&6; }
  15581. fi
  15582. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15583. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15584. && test "$PACKAGE" != gettext-runtime \
  15585. && test "$PACKAGE" != gettext-tools; }; then
  15586. gt_use_preinstalled_gnugettext=yes
  15587. else
  15588. LIBINTL=
  15589. LTLIBINTL=
  15590. INCINTL=
  15591. fi
  15592. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15593. nls_cv_use_gnu_gettext=yes
  15594. fi
  15595. fi
  15596. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15597. BUILD_INCLUDED_LIBINTL=yes
  15598. USE_INCLUDED_LIBINTL=yes
  15599. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15600. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15601. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15602. fi
  15603. CATOBJEXT=
  15604. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15605. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15606. CATOBJEXT=.gmo
  15607. fi
  15608. if test -n "$INTL_MACOSX_LIBS"; then
  15609. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15610. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15611. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15612. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15613. fi
  15614. fi
  15615. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15616. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15617. cat >>confdefs.h <<\_ACEOF
  15618. #define ENABLE_NLS 1
  15619. _ACEOF
  15620. else
  15621. USE_NLS=no
  15622. fi
  15623. fi
  15624. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15625. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15626. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15627. echo "${ECHO_T}$USE_NLS" >&6; }
  15628. if test "$USE_NLS" = "yes"; then
  15629. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15630. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15631. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15632. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15633. gt_source="external libintl"
  15634. else
  15635. gt_source="libc"
  15636. fi
  15637. else
  15638. gt_source="included intl directory"
  15639. fi
  15640. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15641. echo "${ECHO_T}$gt_source" >&6; }
  15642. fi
  15643. if test "$USE_NLS" = "yes"; then
  15644. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15645. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15646. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15647. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15648. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15649. echo "${ECHO_T}$LIBINTL" >&6; }
  15650. for element in $INCINTL; do
  15651. haveit=
  15652. for x in $CPPFLAGS; do
  15653. acl_save_prefix="$prefix"
  15654. prefix="$acl_final_prefix"
  15655. acl_save_exec_prefix="$exec_prefix"
  15656. exec_prefix="$acl_final_exec_prefix"
  15657. eval x=\"$x\"
  15658. exec_prefix="$acl_save_exec_prefix"
  15659. prefix="$acl_save_prefix"
  15660. if test "X$x" = "X$element"; then
  15661. haveit=yes
  15662. break
  15663. fi
  15664. done
  15665. if test -z "$haveit"; then
  15666. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15667. fi
  15668. done
  15669. fi
  15670. cat >>confdefs.h <<\_ACEOF
  15671. #define HAVE_GETTEXT 1
  15672. _ACEOF
  15673. cat >>confdefs.h <<\_ACEOF
  15674. #define HAVE_DCGETTEXT 1
  15675. _ACEOF
  15676. fi
  15677. POSUB=po
  15678. fi
  15679. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15680. BUILD_INCLUDED_LIBINTL=yes
  15681. fi
  15682. nls_cv_header_intl=
  15683. nls_cv_header_libgt=
  15684. DATADIRNAME=share
  15685. INSTOBJEXT=.mo
  15686. GENCAT=gencat
  15687. INTLOBJS=
  15688. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15689. INTLOBJS="\$(GETTOBJS)"
  15690. fi
  15691. INTL_LIBTOOL_SUFFIX_PREFIX=
  15692. INTLLIBS="$LIBINTL"
  15693. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15694. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15695. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15696. echo $ECHO_N "(cached) $ECHO_C" >&6
  15697. else
  15698. cat >conftest.$ac_ext <<_ACEOF
  15699. /* confdefs.h. */
  15700. _ACEOF
  15701. cat confdefs.h >>conftest.$ac_ext
  15702. cat >>conftest.$ac_ext <<_ACEOF
  15703. /* end confdefs.h. */
  15704. #include <error.h>
  15705. int
  15706. main ()
  15707. {
  15708. error_at_line (0, 0, "", 0, "an error occurred");
  15709. ;
  15710. return 0;
  15711. }
  15712. _ACEOF
  15713. rm -f conftest.$ac_objext conftest$ac_exeext
  15714. if { (ac_try="$ac_link"
  15715. case "(($ac_try" in
  15716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15717. *) ac_try_echo=$ac_try;;
  15718. esac
  15719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15720. (eval "$ac_link") 2>conftest.er1
  15721. ac_status=$?
  15722. grep -v '^ *+' conftest.er1 >conftest.err
  15723. rm -f conftest.er1
  15724. cat conftest.err >&5
  15725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15726. (exit $ac_status); } && {
  15727. test -z "$ac_cxx_werror_flag" ||
  15728. test ! -s conftest.err
  15729. } && test -s conftest$ac_exeext &&
  15730. $as_test_x conftest$ac_exeext; then
  15731. ac_cv_lib_error_at_line=yes
  15732. else
  15733. echo "$as_me: failed program was:" >&5
  15734. sed 's/^/| /' conftest.$ac_ext >&5
  15735. ac_cv_lib_error_at_line=no
  15736. fi
  15737. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15738. conftest$ac_exeext conftest.$ac_ext
  15739. fi
  15740. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15741. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15742. if test $ac_cv_lib_error_at_line = no; then
  15743. case " $LIBOBJS " in
  15744. *" error.$ac_objext "* ) ;;
  15745. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15746. ;;
  15747. esac
  15748. fi
  15749. if test $ac_cv_c_compiler_gnu = yes; then
  15750. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15751. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15752. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15753. echo $ECHO_N "(cached) $ECHO_C" >&6
  15754. else
  15755. ac_pattern="Autoconf.*'x'"
  15756. cat >conftest.$ac_ext <<_ACEOF
  15757. /* confdefs.h. */
  15758. _ACEOF
  15759. cat confdefs.h >>conftest.$ac_ext
  15760. cat >>conftest.$ac_ext <<_ACEOF
  15761. /* end confdefs.h. */
  15762. #include <sgtty.h>
  15763. Autoconf TIOCGETP
  15764. _ACEOF
  15765. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15766. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15767. ac_cv_prog_gcc_traditional=yes
  15768. else
  15769. ac_cv_prog_gcc_traditional=no
  15770. fi
  15771. rm -f conftest*
  15772. if test $ac_cv_prog_gcc_traditional = no; then
  15773. cat >conftest.$ac_ext <<_ACEOF
  15774. /* confdefs.h. */
  15775. _ACEOF
  15776. cat confdefs.h >>conftest.$ac_ext
  15777. cat >>conftest.$ac_ext <<_ACEOF
  15778. /* end confdefs.h. */
  15779. #include <termio.h>
  15780. Autoconf TCGETA
  15781. _ACEOF
  15782. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15783. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15784. ac_cv_prog_gcc_traditional=yes
  15785. fi
  15786. rm -f conftest*
  15787. fi
  15788. fi
  15789. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15790. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15791. if test $ac_cv_prog_gcc_traditional = yes; then
  15792. CC="$CC -traditional"
  15793. fi
  15794. fi
  15795. case "$target" in
  15796. *mingw*)
  15797. ;;
  15798. *)
  15799. for ac_header in stdlib.h
  15800. do
  15801. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15802. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15803. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15804. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15805. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15806. echo $ECHO_N "(cached) $ECHO_C" >&6
  15807. fi
  15808. ac_res=`eval echo '${'$as_ac_Header'}'`
  15809. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15810. echo "${ECHO_T}$ac_res" >&6; }
  15811. else
  15812. # Is the header compilable?
  15813. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15814. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15815. cat >conftest.$ac_ext <<_ACEOF
  15816. /* confdefs.h. */
  15817. _ACEOF
  15818. cat confdefs.h >>conftest.$ac_ext
  15819. cat >>conftest.$ac_ext <<_ACEOF
  15820. /* end confdefs.h. */
  15821. $ac_includes_default
  15822. #include <$ac_header>
  15823. _ACEOF
  15824. rm -f conftest.$ac_objext
  15825. if { (ac_try="$ac_compile"
  15826. case "(($ac_try" in
  15827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15828. *) ac_try_echo=$ac_try;;
  15829. esac
  15830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15831. (eval "$ac_compile") 2>conftest.er1
  15832. ac_status=$?
  15833. grep -v '^ *+' conftest.er1 >conftest.err
  15834. rm -f conftest.er1
  15835. cat conftest.err >&5
  15836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15837. (exit $ac_status); } && {
  15838. test -z "$ac_cxx_werror_flag" ||
  15839. test ! -s conftest.err
  15840. } && test -s conftest.$ac_objext; then
  15841. ac_header_compiler=yes
  15842. else
  15843. echo "$as_me: failed program was:" >&5
  15844. sed 's/^/| /' conftest.$ac_ext >&5
  15845. ac_header_compiler=no
  15846. fi
  15847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15848. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15849. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15850. # Is the header present?
  15851. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15852. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15853. cat >conftest.$ac_ext <<_ACEOF
  15854. /* confdefs.h. */
  15855. _ACEOF
  15856. cat confdefs.h >>conftest.$ac_ext
  15857. cat >>conftest.$ac_ext <<_ACEOF
  15858. /* end confdefs.h. */
  15859. #include <$ac_header>
  15860. _ACEOF
  15861. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15862. case "(($ac_try" in
  15863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15864. *) ac_try_echo=$ac_try;;
  15865. esac
  15866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15867. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15868. ac_status=$?
  15869. grep -v '^ *+' conftest.er1 >conftest.err
  15870. rm -f conftest.er1
  15871. cat conftest.err >&5
  15872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15873. (exit $ac_status); } >/dev/null && {
  15874. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15875. test ! -s conftest.err
  15876. }; then
  15877. ac_header_preproc=yes
  15878. else
  15879. echo "$as_me: failed program was:" >&5
  15880. sed 's/^/| /' conftest.$ac_ext >&5
  15881. ac_header_preproc=no
  15882. fi
  15883. rm -f conftest.err conftest.$ac_ext
  15884. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15885. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15886. # So? What about this header?
  15887. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15888. yes:no: )
  15889. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15890. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15891. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15892. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15893. ac_header_preproc=yes
  15894. ;;
  15895. no:yes:* )
  15896. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15897. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15898. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15899. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15900. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15901. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15902. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15903. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15904. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15905. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15906. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15907. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15908. ( cat <<\_ASBOX
  15909. ## ----------------------------------------------- ##
  15910. ## Report this to t-tujikawa@users.sourceforge.net ##
  15911. ## ----------------------------------------------- ##
  15912. _ASBOX
  15913. ) | sed "s/^/$as_me: WARNING: /" >&2
  15914. ;;
  15915. esac
  15916. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15917. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15918. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15919. echo $ECHO_N "(cached) $ECHO_C" >&6
  15920. else
  15921. eval "$as_ac_Header=\$ac_header_preproc"
  15922. fi
  15923. ac_res=`eval echo '${'$as_ac_Header'}'`
  15924. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15925. echo "${ECHO_T}$ac_res" >&6; }
  15926. fi
  15927. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15928. cat >>confdefs.h <<_ACEOF
  15929. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15930. _ACEOF
  15931. fi
  15932. done
  15933. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15934. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15935. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15936. echo $ECHO_N "(cached) $ECHO_C" >&6
  15937. else
  15938. if test "$cross_compiling" = yes; then
  15939. ac_cv_func_malloc_0_nonnull=no
  15940. else
  15941. cat >conftest.$ac_ext <<_ACEOF
  15942. /* confdefs.h. */
  15943. _ACEOF
  15944. cat confdefs.h >>conftest.$ac_ext
  15945. cat >>conftest.$ac_ext <<_ACEOF
  15946. /* end confdefs.h. */
  15947. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15948. # include <stdlib.h>
  15949. #else
  15950. char *malloc ();
  15951. #endif
  15952. int
  15953. main ()
  15954. {
  15955. return ! malloc (0);
  15956. ;
  15957. return 0;
  15958. }
  15959. _ACEOF
  15960. rm -f conftest$ac_exeext
  15961. if { (ac_try="$ac_link"
  15962. case "(($ac_try" in
  15963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15964. *) ac_try_echo=$ac_try;;
  15965. esac
  15966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15967. (eval "$ac_link") 2>&5
  15968. ac_status=$?
  15969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15970. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  15977. ac_status=$?
  15978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15979. (exit $ac_status); }; }; then
  15980. ac_cv_func_malloc_0_nonnull=yes
  15981. else
  15982. echo "$as_me: program exited with status $ac_status" >&5
  15983. echo "$as_me: failed program was:" >&5
  15984. sed 's/^/| /' conftest.$ac_ext >&5
  15985. ( exit $ac_status )
  15986. ac_cv_func_malloc_0_nonnull=no
  15987. fi
  15988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15989. fi
  15990. fi
  15991. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15992. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15993. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15994. cat >>confdefs.h <<\_ACEOF
  15995. #define HAVE_MALLOC 1
  15996. _ACEOF
  15997. else
  15998. cat >>confdefs.h <<\_ACEOF
  15999. #define HAVE_MALLOC 0
  16000. _ACEOF
  16001. case " $LIBOBJS " in
  16002. *" malloc.$ac_objext "* ) ;;
  16003. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16004. ;;
  16005. esac
  16006. cat >>confdefs.h <<\_ACEOF
  16007. #define malloc rpl_malloc
  16008. _ACEOF
  16009. fi
  16010. for ac_header in stdlib.h
  16011. do
  16012. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16013. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16014. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16015. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16016. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16017. echo $ECHO_N "(cached) $ECHO_C" >&6
  16018. fi
  16019. ac_res=`eval echo '${'$as_ac_Header'}'`
  16020. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16021. echo "${ECHO_T}$ac_res" >&6; }
  16022. else
  16023. # Is the header compilable?
  16024. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16025. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16026. cat >conftest.$ac_ext <<_ACEOF
  16027. /* confdefs.h. */
  16028. _ACEOF
  16029. cat confdefs.h >>conftest.$ac_ext
  16030. cat >>conftest.$ac_ext <<_ACEOF
  16031. /* end confdefs.h. */
  16032. $ac_includes_default
  16033. #include <$ac_header>
  16034. _ACEOF
  16035. rm -f conftest.$ac_objext
  16036. if { (ac_try="$ac_compile"
  16037. case "(($ac_try" in
  16038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16039. *) ac_try_echo=$ac_try;;
  16040. esac
  16041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16042. (eval "$ac_compile") 2>conftest.er1
  16043. ac_status=$?
  16044. grep -v '^ *+' conftest.er1 >conftest.err
  16045. rm -f conftest.er1
  16046. cat conftest.err >&5
  16047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16048. (exit $ac_status); } && {
  16049. test -z "$ac_cxx_werror_flag" ||
  16050. test ! -s conftest.err
  16051. } && test -s conftest.$ac_objext; then
  16052. ac_header_compiler=yes
  16053. else
  16054. echo "$as_me: failed program was:" >&5
  16055. sed 's/^/| /' conftest.$ac_ext >&5
  16056. ac_header_compiler=no
  16057. fi
  16058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16059. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16060. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16061. # Is the header present?
  16062. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16063. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16064. cat >conftest.$ac_ext <<_ACEOF
  16065. /* confdefs.h. */
  16066. _ACEOF
  16067. cat confdefs.h >>conftest.$ac_ext
  16068. cat >>conftest.$ac_ext <<_ACEOF
  16069. /* end confdefs.h. */
  16070. #include <$ac_header>
  16071. _ACEOF
  16072. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16073. case "(($ac_try" in
  16074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16075. *) ac_try_echo=$ac_try;;
  16076. esac
  16077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16078. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16079. ac_status=$?
  16080. grep -v '^ *+' conftest.er1 >conftest.err
  16081. rm -f conftest.er1
  16082. cat conftest.err >&5
  16083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16084. (exit $ac_status); } >/dev/null && {
  16085. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16086. test ! -s conftest.err
  16087. }; then
  16088. ac_header_preproc=yes
  16089. else
  16090. echo "$as_me: failed program was:" >&5
  16091. sed 's/^/| /' conftest.$ac_ext >&5
  16092. ac_header_preproc=no
  16093. fi
  16094. rm -f conftest.err conftest.$ac_ext
  16095. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16096. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16097. # So? What about this header?
  16098. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16099. yes:no: )
  16100. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16101. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16102. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16103. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16104. ac_header_preproc=yes
  16105. ;;
  16106. no:yes:* )
  16107. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16108. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16109. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16110. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16111. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16112. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16113. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16114. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16115. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16116. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16117. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16118. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16119. ( cat <<\_ASBOX
  16120. ## ----------------------------------------------- ##
  16121. ## Report this to t-tujikawa@users.sourceforge.net ##
  16122. ## ----------------------------------------------- ##
  16123. _ASBOX
  16124. ) | sed "s/^/$as_me: WARNING: /" >&2
  16125. ;;
  16126. esac
  16127. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16128. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16129. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16130. echo $ECHO_N "(cached) $ECHO_C" >&6
  16131. else
  16132. eval "$as_ac_Header=\$ac_header_preproc"
  16133. fi
  16134. ac_res=`eval echo '${'$as_ac_Header'}'`
  16135. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16136. echo "${ECHO_T}$ac_res" >&6; }
  16137. fi
  16138. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16139. cat >>confdefs.h <<_ACEOF
  16140. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16141. _ACEOF
  16142. fi
  16143. done
  16144. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16145. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16146. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16147. echo $ECHO_N "(cached) $ECHO_C" >&6
  16148. else
  16149. if test "$cross_compiling" = yes; then
  16150. ac_cv_func_realloc_0_nonnull=no
  16151. else
  16152. cat >conftest.$ac_ext <<_ACEOF
  16153. /* confdefs.h. */
  16154. _ACEOF
  16155. cat confdefs.h >>conftest.$ac_ext
  16156. cat >>conftest.$ac_ext <<_ACEOF
  16157. /* end confdefs.h. */
  16158. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16159. # include <stdlib.h>
  16160. #else
  16161. char *realloc ();
  16162. #endif
  16163. int
  16164. main ()
  16165. {
  16166. return ! realloc (0, 0);
  16167. ;
  16168. return 0;
  16169. }
  16170. _ACEOF
  16171. rm -f conftest$ac_exeext
  16172. if { (ac_try="$ac_link"
  16173. case "(($ac_try" in
  16174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16175. *) ac_try_echo=$ac_try;;
  16176. esac
  16177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16178. (eval "$ac_link") 2>&5
  16179. ac_status=$?
  16180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16181. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16182. { (case "(($ac_try" in
  16183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16184. *) ac_try_echo=$ac_try;;
  16185. esac
  16186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16187. (eval "$ac_try") 2>&5
  16188. ac_status=$?
  16189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16190. (exit $ac_status); }; }; then
  16191. ac_cv_func_realloc_0_nonnull=yes
  16192. else
  16193. echo "$as_me: program exited with status $ac_status" >&5
  16194. echo "$as_me: failed program was:" >&5
  16195. sed 's/^/| /' conftest.$ac_ext >&5
  16196. ( exit $ac_status )
  16197. ac_cv_func_realloc_0_nonnull=no
  16198. fi
  16199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16200. fi
  16201. fi
  16202. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16203. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16204. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16205. cat >>confdefs.h <<\_ACEOF
  16206. #define HAVE_REALLOC 1
  16207. _ACEOF
  16208. else
  16209. cat >>confdefs.h <<\_ACEOF
  16210. #define HAVE_REALLOC 0
  16211. _ACEOF
  16212. case " $LIBOBJS " in
  16213. *" realloc.$ac_objext "* ) ;;
  16214. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16215. ;;
  16216. esac
  16217. cat >>confdefs.h <<\_ACEOF
  16218. #define realloc rpl_realloc
  16219. _ACEOF
  16220. fi
  16221. ;;
  16222. esac
  16223. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16224. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16225. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16226. echo $ECHO_N "(cached) $ECHO_C" >&6
  16227. else
  16228. if test "$cross_compiling" = yes; then
  16229. ac_cv_func_memcmp_working=no
  16230. else
  16231. cat >conftest.$ac_ext <<_ACEOF
  16232. /* confdefs.h. */
  16233. _ACEOF
  16234. cat confdefs.h >>conftest.$ac_ext
  16235. cat >>conftest.$ac_ext <<_ACEOF
  16236. /* end confdefs.h. */
  16237. $ac_includes_default
  16238. int
  16239. main ()
  16240. {
  16241. /* Some versions of memcmp are not 8-bit clean. */
  16242. char c0 = '\100', c1 = '\200', c2 = '\201';
  16243. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16244. return 1;
  16245. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16246. or more and with at least one buffer not starting on a 4-byte boundary.
  16247. William Lewis provided this test program. */
  16248. {
  16249. char foo[21];
  16250. char bar[21];
  16251. int i;
  16252. for (i = 0; i < 4; i++)
  16253. {
  16254. char *a = foo + i;
  16255. char *b = bar + i;
  16256. strcpy (a, "--------01111111");
  16257. strcpy (b, "--------10000000");
  16258. if (memcmp (a, b, 16) >= 0)
  16259. return 1;
  16260. }
  16261. return 0;
  16262. }
  16263. ;
  16264. return 0;
  16265. }
  16266. _ACEOF
  16267. rm -f conftest$ac_exeext
  16268. if { (ac_try="$ac_link"
  16269. case "(($ac_try" in
  16270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16271. *) ac_try_echo=$ac_try;;
  16272. esac
  16273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16274. (eval "$ac_link") 2>&5
  16275. ac_status=$?
  16276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16277. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16278. { (case "(($ac_try" in
  16279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16280. *) ac_try_echo=$ac_try;;
  16281. esac
  16282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16283. (eval "$ac_try") 2>&5
  16284. ac_status=$?
  16285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16286. (exit $ac_status); }; }; then
  16287. ac_cv_func_memcmp_working=yes
  16288. else
  16289. echo "$as_me: program exited with status $ac_status" >&5
  16290. echo "$as_me: failed program was:" >&5
  16291. sed 's/^/| /' conftest.$ac_ext >&5
  16292. ( exit $ac_status )
  16293. ac_cv_func_memcmp_working=no
  16294. fi
  16295. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16296. fi
  16297. fi
  16298. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16299. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16300. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16301. *" memcmp.$ac_objext "* ) ;;
  16302. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16303. ;;
  16304. esac
  16305. for ac_header in $ac_header_list
  16306. do
  16307. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16308. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16309. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16310. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16311. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16312. echo $ECHO_N "(cached) $ECHO_C" >&6
  16313. fi
  16314. ac_res=`eval echo '${'$as_ac_Header'}'`
  16315. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16316. echo "${ECHO_T}$ac_res" >&6; }
  16317. else
  16318. # Is the header compilable?
  16319. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16320. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16321. cat >conftest.$ac_ext <<_ACEOF
  16322. /* confdefs.h. */
  16323. _ACEOF
  16324. cat confdefs.h >>conftest.$ac_ext
  16325. cat >>conftest.$ac_ext <<_ACEOF
  16326. /* end confdefs.h. */
  16327. $ac_includes_default
  16328. #include <$ac_header>
  16329. _ACEOF
  16330. rm -f conftest.$ac_objext
  16331. if { (ac_try="$ac_compile"
  16332. case "(($ac_try" in
  16333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16334. *) ac_try_echo=$ac_try;;
  16335. esac
  16336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16337. (eval "$ac_compile") 2>conftest.er1
  16338. ac_status=$?
  16339. grep -v '^ *+' conftest.er1 >conftest.err
  16340. rm -f conftest.er1
  16341. cat conftest.err >&5
  16342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16343. (exit $ac_status); } && {
  16344. test -z "$ac_cxx_werror_flag" ||
  16345. test ! -s conftest.err
  16346. } && test -s conftest.$ac_objext; then
  16347. ac_header_compiler=yes
  16348. else
  16349. echo "$as_me: failed program was:" >&5
  16350. sed 's/^/| /' conftest.$ac_ext >&5
  16351. ac_header_compiler=no
  16352. fi
  16353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16354. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16355. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16356. # Is the header present?
  16357. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16358. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16359. cat >conftest.$ac_ext <<_ACEOF
  16360. /* confdefs.h. */
  16361. _ACEOF
  16362. cat confdefs.h >>conftest.$ac_ext
  16363. cat >>conftest.$ac_ext <<_ACEOF
  16364. /* end confdefs.h. */
  16365. #include <$ac_header>
  16366. _ACEOF
  16367. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16368. case "(($ac_try" in
  16369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16370. *) ac_try_echo=$ac_try;;
  16371. esac
  16372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16373. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16374. ac_status=$?
  16375. grep -v '^ *+' conftest.er1 >conftest.err
  16376. rm -f conftest.er1
  16377. cat conftest.err >&5
  16378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16379. (exit $ac_status); } >/dev/null && {
  16380. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16381. test ! -s conftest.err
  16382. }; then
  16383. ac_header_preproc=yes
  16384. else
  16385. echo "$as_me: failed program was:" >&5
  16386. sed 's/^/| /' conftest.$ac_ext >&5
  16387. ac_header_preproc=no
  16388. fi
  16389. rm -f conftest.err conftest.$ac_ext
  16390. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16391. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16392. # So? What about this header?
  16393. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16394. yes:no: )
  16395. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16396. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16397. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16398. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16399. ac_header_preproc=yes
  16400. ;;
  16401. no:yes:* )
  16402. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16403. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16404. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16405. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16406. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16407. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16408. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16409. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16410. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16411. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16412. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16413. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16414. ( cat <<\_ASBOX
  16415. ## ----------------------------------------------- ##
  16416. ## Report this to t-tujikawa@users.sourceforge.net ##
  16417. ## ----------------------------------------------- ##
  16418. _ASBOX
  16419. ) | sed "s/^/$as_me: WARNING: /" >&2
  16420. ;;
  16421. esac
  16422. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16423. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16424. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16425. echo $ECHO_N "(cached) $ECHO_C" >&6
  16426. else
  16427. eval "$as_ac_Header=\$ac_header_preproc"
  16428. fi
  16429. ac_res=`eval echo '${'$as_ac_Header'}'`
  16430. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16431. echo "${ECHO_T}$ac_res" >&6; }
  16432. fi
  16433. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16434. cat >>confdefs.h <<_ACEOF
  16435. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16436. _ACEOF
  16437. fi
  16438. done
  16439. for ac_func in $ac_func_list
  16440. do
  16441. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16442. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16443. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16444. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16445. echo $ECHO_N "(cached) $ECHO_C" >&6
  16446. else
  16447. cat >conftest.$ac_ext <<_ACEOF
  16448. /* confdefs.h. */
  16449. _ACEOF
  16450. cat confdefs.h >>conftest.$ac_ext
  16451. cat >>conftest.$ac_ext <<_ACEOF
  16452. /* end confdefs.h. */
  16453. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16454. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16455. #define $ac_func innocuous_$ac_func
  16456. /* System header to define __stub macros and hopefully few prototypes,
  16457. which can conflict with char $ac_func (); below.
  16458. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16459. <limits.h> exists even on freestanding compilers. */
  16460. #ifdef __STDC__
  16461. # include <limits.h>
  16462. #else
  16463. # include <assert.h>
  16464. #endif
  16465. #undef $ac_func
  16466. /* Override any GCC internal prototype to avoid an error.
  16467. Use char because int might match the return type of a GCC
  16468. builtin and then its argument prototype would still apply. */
  16469. #ifdef __cplusplus
  16470. extern "C"
  16471. #endif
  16472. char $ac_func ();
  16473. /* The GNU C library defines this for functions which it implements
  16474. to always fail with ENOSYS. Some functions are actually named
  16475. something starting with __ and the normal name is an alias. */
  16476. #if defined __stub_$ac_func || defined __stub___$ac_func
  16477. choke me
  16478. #endif
  16479. int
  16480. main ()
  16481. {
  16482. return $ac_func ();
  16483. ;
  16484. return 0;
  16485. }
  16486. _ACEOF
  16487. rm -f conftest.$ac_objext conftest$ac_exeext
  16488. if { (ac_try="$ac_link"
  16489. case "(($ac_try" in
  16490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16491. *) ac_try_echo=$ac_try;;
  16492. esac
  16493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16494. (eval "$ac_link") 2>conftest.er1
  16495. ac_status=$?
  16496. grep -v '^ *+' conftest.er1 >conftest.err
  16497. rm -f conftest.er1
  16498. cat conftest.err >&5
  16499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16500. (exit $ac_status); } && {
  16501. test -z "$ac_cxx_werror_flag" ||
  16502. test ! -s conftest.err
  16503. } && test -s conftest$ac_exeext &&
  16504. $as_test_x conftest$ac_exeext; then
  16505. eval "$as_ac_var=yes"
  16506. else
  16507. echo "$as_me: failed program was:" >&5
  16508. sed 's/^/| /' conftest.$ac_ext >&5
  16509. eval "$as_ac_var=no"
  16510. fi
  16511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16512. conftest$ac_exeext conftest.$ac_ext
  16513. fi
  16514. ac_res=`eval echo '${'$as_ac_var'}'`
  16515. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16516. echo "${ECHO_T}$ac_res" >&6; }
  16517. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16518. cat >>confdefs.h <<_ACEOF
  16519. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16520. _ACEOF
  16521. fi
  16522. done
  16523. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16524. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16525. if test "${ac_cv_func_working_mktime+set}" = set; then
  16526. echo $ECHO_N "(cached) $ECHO_C" >&6
  16527. else
  16528. if test "$cross_compiling" = yes; then
  16529. ac_cv_func_working_mktime=no
  16530. else
  16531. cat >conftest.$ac_ext <<_ACEOF
  16532. /* confdefs.h. */
  16533. _ACEOF
  16534. cat confdefs.h >>conftest.$ac_ext
  16535. cat >>conftest.$ac_ext <<_ACEOF
  16536. /* end confdefs.h. */
  16537. /* Test program from Paul Eggert and Tony Leneis. */
  16538. #ifdef TIME_WITH_SYS_TIME
  16539. # include <sys/time.h>
  16540. # include <time.h>
  16541. #else
  16542. # ifdef HAVE_SYS_TIME_H
  16543. # include <sys/time.h>
  16544. # else
  16545. # include <time.h>
  16546. # endif
  16547. #endif
  16548. #include <limits.h>
  16549. #include <stdlib.h>
  16550. #ifdef HAVE_UNISTD_H
  16551. # include <unistd.h>
  16552. #endif
  16553. #ifndef HAVE_ALARM
  16554. # define alarm(X) /* empty */
  16555. #endif
  16556. /* Work around redefinition to rpl_putenv by other config tests. */
  16557. #undef putenv
  16558. static time_t time_t_max;
  16559. static time_t time_t_min;
  16560. /* Values we'll use to set the TZ environment variable. */
  16561. static char *tz_strings[] = {
  16562. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16563. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16564. };
  16565. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16566. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16567. Based on a problem report from Andreas Jaeger. */
  16568. static int
  16569. spring_forward_gap ()
  16570. {
  16571. /* glibc (up to about 1998-10-07) failed this test. */
  16572. struct tm tm;
  16573. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16574. instead of "TZ=America/Vancouver" in order to detect the bug even
  16575. on systems that don't support the Olson extension, or don't have the
  16576. full zoneinfo tables installed. */
  16577. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16578. tm.tm_year = 98;
  16579. tm.tm_mon = 3;
  16580. tm.tm_mday = 5;
  16581. tm.tm_hour = 2;
  16582. tm.tm_min = 0;
  16583. tm.tm_sec = 0;
  16584. tm.tm_isdst = -1;
  16585. return mktime (&tm) != (time_t) -1;
  16586. }
  16587. static int
  16588. mktime_test1 (now)
  16589. time_t now;
  16590. {
  16591. struct tm *lt;
  16592. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16593. }
  16594. static int
  16595. mktime_test (now)
  16596. time_t now;
  16597. {
  16598. return (mktime_test1 (now)
  16599. && mktime_test1 ((time_t) (time_t_max - now))
  16600. && mktime_test1 ((time_t) (time_t_min + now)));
  16601. }
  16602. static int
  16603. irix_6_4_bug ()
  16604. {
  16605. /* Based on code from Ariel Faigon. */
  16606. struct tm tm;
  16607. tm.tm_year = 96;
  16608. tm.tm_mon = 3;
  16609. tm.tm_mday = 0;
  16610. tm.tm_hour = 0;
  16611. tm.tm_min = 0;
  16612. tm.tm_sec = 0;
  16613. tm.tm_isdst = -1;
  16614. mktime (&tm);
  16615. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16616. }
  16617. static int
  16618. bigtime_test (j)
  16619. int j;
  16620. {
  16621. struct tm tm;
  16622. time_t now;
  16623. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16624. now = mktime (&tm);
  16625. if (now != (time_t) -1)
  16626. {
  16627. struct tm *lt = localtime (&now);
  16628. if (! (lt
  16629. && lt->tm_year == tm.tm_year
  16630. && lt->tm_mon == tm.tm_mon
  16631. && lt->tm_mday == tm.tm_mday
  16632. && lt->tm_hour == tm.tm_hour
  16633. && lt->tm_min == tm.tm_min
  16634. && lt->tm_sec == tm.tm_sec
  16635. && lt->tm_yday == tm.tm_yday
  16636. && lt->tm_wday == tm.tm_wday
  16637. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16638. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16639. return 0;
  16640. }
  16641. return 1;
  16642. }
  16643. static int
  16644. year_2050_test ()
  16645. {
  16646. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16647. ignoring leap seconds. */
  16648. unsigned long int answer = 2527315200UL;
  16649. struct tm tm;
  16650. time_t t;
  16651. tm.tm_year = 2050 - 1900;
  16652. tm.tm_mon = 2 - 1;
  16653. tm.tm_mday = 1;
  16654. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16655. tm.tm_isdst = -1;
  16656. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16657. instead of "TZ=America/Vancouver" in order to detect the bug even
  16658. on systems that don't support the Olson extension, or don't have the
  16659. full zoneinfo tables installed. */
  16660. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16661. t = mktime (&tm);
  16662. /* Check that the result is either a failure, or close enough
  16663. to the correct answer that we can assume the discrepancy is
  16664. due to leap seconds. */
  16665. return (t == (time_t) -1
  16666. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16667. }
  16668. int
  16669. main ()
  16670. {
  16671. time_t t, delta;
  16672. int i, j;
  16673. /* This test makes some buggy mktime implementations loop.
  16674. Give up after 60 seconds; a mktime slower than that
  16675. isn't worth using anyway. */
  16676. alarm (60);
  16677. for (;;)
  16678. {
  16679. t = (time_t_max << 1) + 1;
  16680. if (t <= time_t_max)
  16681. break;
  16682. time_t_max = t;
  16683. }
  16684. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16685. delta = time_t_max / 997; /* a suitable prime number */
  16686. for (i = 0; i < N_STRINGS; i++)
  16687. {
  16688. if (tz_strings[i])
  16689. putenv (tz_strings[i]);
  16690. for (t = 0; t <= time_t_max - delta; t += delta)
  16691. if (! mktime_test (t))
  16692. return 1;
  16693. if (! (mktime_test ((time_t) 1)
  16694. && mktime_test ((time_t) (60 * 60))
  16695. && mktime_test ((time_t) (60 * 60 * 24))))
  16696. return 1;
  16697. for (j = 1; ; j <<= 1)
  16698. if (! bigtime_test (j))
  16699. return 1;
  16700. else if (INT_MAX / 2 < j)
  16701. break;
  16702. if (! bigtime_test (INT_MAX))
  16703. return 1;
  16704. }
  16705. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16706. }
  16707. _ACEOF
  16708. rm -f conftest$ac_exeext
  16709. if { (ac_try="$ac_link"
  16710. case "(($ac_try" in
  16711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16712. *) ac_try_echo=$ac_try;;
  16713. esac
  16714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16715. (eval "$ac_link") 2>&5
  16716. ac_status=$?
  16717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16718. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16719. { (case "(($ac_try" in
  16720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16721. *) ac_try_echo=$ac_try;;
  16722. esac
  16723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16724. (eval "$ac_try") 2>&5
  16725. ac_status=$?
  16726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16727. (exit $ac_status); }; }; then
  16728. ac_cv_func_working_mktime=yes
  16729. else
  16730. echo "$as_me: program exited with status $ac_status" >&5
  16731. echo "$as_me: failed program was:" >&5
  16732. sed 's/^/| /' conftest.$ac_ext >&5
  16733. ( exit $ac_status )
  16734. ac_cv_func_working_mktime=no
  16735. fi
  16736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16737. fi
  16738. fi
  16739. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16740. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16741. if test $ac_cv_func_working_mktime = no; then
  16742. case " $LIBOBJS " in
  16743. *" mktime.$ac_objext "* ) ;;
  16744. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16745. ;;
  16746. esac
  16747. fi
  16748. for ac_header in stdlib.h unistd.h
  16749. do
  16750. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16751. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16752. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16753. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16754. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16755. echo $ECHO_N "(cached) $ECHO_C" >&6
  16756. fi
  16757. ac_res=`eval echo '${'$as_ac_Header'}'`
  16758. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16759. echo "${ECHO_T}$ac_res" >&6; }
  16760. else
  16761. # Is the header compilable?
  16762. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16763. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16764. cat >conftest.$ac_ext <<_ACEOF
  16765. /* confdefs.h. */
  16766. _ACEOF
  16767. cat confdefs.h >>conftest.$ac_ext
  16768. cat >>conftest.$ac_ext <<_ACEOF
  16769. /* end confdefs.h. */
  16770. $ac_includes_default
  16771. #include <$ac_header>
  16772. _ACEOF
  16773. rm -f conftest.$ac_objext
  16774. if { (ac_try="$ac_compile"
  16775. case "(($ac_try" in
  16776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16777. *) ac_try_echo=$ac_try;;
  16778. esac
  16779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16780. (eval "$ac_compile") 2>conftest.er1
  16781. ac_status=$?
  16782. grep -v '^ *+' conftest.er1 >conftest.err
  16783. rm -f conftest.er1
  16784. cat conftest.err >&5
  16785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16786. (exit $ac_status); } && {
  16787. test -z "$ac_cxx_werror_flag" ||
  16788. test ! -s conftest.err
  16789. } && test -s conftest.$ac_objext; then
  16790. ac_header_compiler=yes
  16791. else
  16792. echo "$as_me: failed program was:" >&5
  16793. sed 's/^/| /' conftest.$ac_ext >&5
  16794. ac_header_compiler=no
  16795. fi
  16796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16797. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16798. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16799. # Is the header present?
  16800. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16801. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16802. cat >conftest.$ac_ext <<_ACEOF
  16803. /* confdefs.h. */
  16804. _ACEOF
  16805. cat confdefs.h >>conftest.$ac_ext
  16806. cat >>conftest.$ac_ext <<_ACEOF
  16807. /* end confdefs.h. */
  16808. #include <$ac_header>
  16809. _ACEOF
  16810. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16811. case "(($ac_try" in
  16812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16813. *) ac_try_echo=$ac_try;;
  16814. esac
  16815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16816. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16817. ac_status=$?
  16818. grep -v '^ *+' conftest.er1 >conftest.err
  16819. rm -f conftest.er1
  16820. cat conftest.err >&5
  16821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16822. (exit $ac_status); } >/dev/null && {
  16823. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16824. test ! -s conftest.err
  16825. }; then
  16826. ac_header_preproc=yes
  16827. else
  16828. echo "$as_me: failed program was:" >&5
  16829. sed 's/^/| /' conftest.$ac_ext >&5
  16830. ac_header_preproc=no
  16831. fi
  16832. rm -f conftest.err conftest.$ac_ext
  16833. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16834. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16835. # So? What about this header?
  16836. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16837. yes:no: )
  16838. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16839. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16840. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16841. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16842. ac_header_preproc=yes
  16843. ;;
  16844. no:yes:* )
  16845. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16846. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16847. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16848. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16849. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16850. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16851. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16852. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16853. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16854. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16855. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16856. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16857. ( cat <<\_ASBOX
  16858. ## ----------------------------------------------- ##
  16859. ## Report this to t-tujikawa@users.sourceforge.net ##
  16860. ## ----------------------------------------------- ##
  16861. _ASBOX
  16862. ) | sed "s/^/$as_me: WARNING: /" >&2
  16863. ;;
  16864. esac
  16865. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16866. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16867. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16868. echo $ECHO_N "(cached) $ECHO_C" >&6
  16869. else
  16870. eval "$as_ac_Header=\$ac_header_preproc"
  16871. fi
  16872. ac_res=`eval echo '${'$as_ac_Header'}'`
  16873. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16874. echo "${ECHO_T}$ac_res" >&6; }
  16875. fi
  16876. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16877. cat >>confdefs.h <<_ACEOF
  16878. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16879. _ACEOF
  16880. fi
  16881. done
  16882. for ac_func in getpagesize
  16883. do
  16884. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16885. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16886. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16887. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16888. echo $ECHO_N "(cached) $ECHO_C" >&6
  16889. else
  16890. cat >conftest.$ac_ext <<_ACEOF
  16891. /* confdefs.h. */
  16892. _ACEOF
  16893. cat confdefs.h >>conftest.$ac_ext
  16894. cat >>conftest.$ac_ext <<_ACEOF
  16895. /* end confdefs.h. */
  16896. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16897. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16898. #define $ac_func innocuous_$ac_func
  16899. /* System header to define __stub macros and hopefully few prototypes,
  16900. which can conflict with char $ac_func (); below.
  16901. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16902. <limits.h> exists even on freestanding compilers. */
  16903. #ifdef __STDC__
  16904. # include <limits.h>
  16905. #else
  16906. # include <assert.h>
  16907. #endif
  16908. #undef $ac_func
  16909. /* Override any GCC internal prototype to avoid an error.
  16910. Use char because int might match the return type of a GCC
  16911. builtin and then its argument prototype would still apply. */
  16912. #ifdef __cplusplus
  16913. extern "C"
  16914. #endif
  16915. char $ac_func ();
  16916. /* The GNU C library defines this for functions which it implements
  16917. to always fail with ENOSYS. Some functions are actually named
  16918. something starting with __ and the normal name is an alias. */
  16919. #if defined __stub_$ac_func || defined __stub___$ac_func
  16920. choke me
  16921. #endif
  16922. int
  16923. main ()
  16924. {
  16925. return $ac_func ();
  16926. ;
  16927. return 0;
  16928. }
  16929. _ACEOF
  16930. rm -f conftest.$ac_objext conftest$ac_exeext
  16931. if { (ac_try="$ac_link"
  16932. case "(($ac_try" in
  16933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16934. *) ac_try_echo=$ac_try;;
  16935. esac
  16936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16937. (eval "$ac_link") 2>conftest.er1
  16938. ac_status=$?
  16939. grep -v '^ *+' conftest.er1 >conftest.err
  16940. rm -f conftest.er1
  16941. cat conftest.err >&5
  16942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16943. (exit $ac_status); } && {
  16944. test -z "$ac_cxx_werror_flag" ||
  16945. test ! -s conftest.err
  16946. } && test -s conftest$ac_exeext &&
  16947. $as_test_x conftest$ac_exeext; then
  16948. eval "$as_ac_var=yes"
  16949. else
  16950. echo "$as_me: failed program was:" >&5
  16951. sed 's/^/| /' conftest.$ac_ext >&5
  16952. eval "$as_ac_var=no"
  16953. fi
  16954. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16955. conftest$ac_exeext conftest.$ac_ext
  16956. fi
  16957. ac_res=`eval echo '${'$as_ac_var'}'`
  16958. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16959. echo "${ECHO_T}$ac_res" >&6; }
  16960. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16961. cat >>confdefs.h <<_ACEOF
  16962. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16963. _ACEOF
  16964. fi
  16965. done
  16966. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16967. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16968. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16969. echo $ECHO_N "(cached) $ECHO_C" >&6
  16970. else
  16971. if test "$cross_compiling" = yes; then
  16972. ac_cv_func_mmap_fixed_mapped=no
  16973. else
  16974. cat >conftest.$ac_ext <<_ACEOF
  16975. /* confdefs.h. */
  16976. _ACEOF
  16977. cat confdefs.h >>conftest.$ac_ext
  16978. cat >>conftest.$ac_ext <<_ACEOF
  16979. /* end confdefs.h. */
  16980. $ac_includes_default
  16981. /* malloc might have been renamed as rpl_malloc. */
  16982. #undef malloc
  16983. /* Thanks to Mike Haertel and Jim Avera for this test.
  16984. Here is a matrix of mmap possibilities:
  16985. mmap private not fixed
  16986. mmap private fixed at somewhere currently unmapped
  16987. mmap private fixed at somewhere already mapped
  16988. mmap shared not fixed
  16989. mmap shared fixed at somewhere currently unmapped
  16990. mmap shared fixed at somewhere already mapped
  16991. For private mappings, we should verify that changes cannot be read()
  16992. back from the file, nor mmap's back from the file at a different
  16993. address. (There have been systems where private was not correctly
  16994. implemented like the infamous i386 svr4.0, and systems where the
  16995. VM page cache was not coherent with the file system buffer cache
  16996. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16997. For shared mappings, we should conversely verify that changes get
  16998. propagated back to all the places they're supposed to be.
  16999. Grep wants private fixed already mapped.
  17000. The main things grep needs to know about mmap are:
  17001. * does it exist and is it safe to write into the mmap'd area
  17002. * how to use it (BSD variants) */
  17003. #include <fcntl.h>
  17004. #include <sys/mman.h>
  17005. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17006. char *malloc ();
  17007. #endif
  17008. /* This mess was copied from the GNU getpagesize.h. */
  17009. #ifndef HAVE_GETPAGESIZE
  17010. /* Assume that all systems that can run configure have sys/param.h. */
  17011. # ifndef HAVE_SYS_PARAM_H
  17012. # define HAVE_SYS_PARAM_H 1
  17013. # endif
  17014. # ifdef _SC_PAGESIZE
  17015. # define getpagesize() sysconf(_SC_PAGESIZE)
  17016. # else /* no _SC_PAGESIZE */
  17017. # ifdef HAVE_SYS_PARAM_H
  17018. # include <sys/param.h>
  17019. # ifdef EXEC_PAGESIZE
  17020. # define getpagesize() EXEC_PAGESIZE
  17021. # else /* no EXEC_PAGESIZE */
  17022. # ifdef NBPG
  17023. # define getpagesize() NBPG * CLSIZE
  17024. # ifndef CLSIZE
  17025. # define CLSIZE 1
  17026. # endif /* no CLSIZE */
  17027. # else /* no NBPG */
  17028. # ifdef NBPC
  17029. # define getpagesize() NBPC
  17030. # else /* no NBPC */
  17031. # ifdef PAGESIZE
  17032. # define getpagesize() PAGESIZE
  17033. # endif /* PAGESIZE */
  17034. # endif /* no NBPC */
  17035. # endif /* no NBPG */
  17036. # endif /* no EXEC_PAGESIZE */
  17037. # else /* no HAVE_SYS_PARAM_H */
  17038. # define getpagesize() 8192 /* punt totally */
  17039. # endif /* no HAVE_SYS_PARAM_H */
  17040. # endif /* no _SC_PAGESIZE */
  17041. #endif /* no HAVE_GETPAGESIZE */
  17042. int
  17043. main ()
  17044. {
  17045. char *data, *data2, *data3;
  17046. int i, pagesize;
  17047. int fd;
  17048. pagesize = getpagesize ();
  17049. /* First, make a file with some known garbage in it. */
  17050. data = (char *) malloc (pagesize);
  17051. if (!data)
  17052. return 1;
  17053. for (i = 0; i < pagesize; ++i)
  17054. *(data + i) = rand ();
  17055. umask (0);
  17056. fd = creat ("conftest.mmap", 0600);
  17057. if (fd < 0)
  17058. return 1;
  17059. if (write (fd, data, pagesize) != pagesize)
  17060. return 1;
  17061. close (fd);
  17062. /* Next, try to mmap the file at a fixed address which already has
  17063. something else allocated at it. If we can, also make sure that
  17064. we see the same garbage. */
  17065. fd = open ("conftest.mmap", O_RDWR);
  17066. if (fd < 0)
  17067. return 1;
  17068. data2 = (char *) malloc (2 * pagesize);
  17069. if (!data2)
  17070. return 1;
  17071. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17072. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17073. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17074. return 1;
  17075. for (i = 0; i < pagesize; ++i)
  17076. if (*(data + i) != *(data2 + i))
  17077. return 1;
  17078. /* Finally, make sure that changes to the mapped area do not
  17079. percolate back to the file as seen by read(). (This is a bug on
  17080. some variants of i386 svr4.0.) */
  17081. for (i = 0; i < pagesize; ++i)
  17082. *(data2 + i) = *(data2 + i) + 1;
  17083. data3 = (char *) malloc (pagesize);
  17084. if (!data3)
  17085. return 1;
  17086. if (read (fd, data3, pagesize) != pagesize)
  17087. return 1;
  17088. for (i = 0; i < pagesize; ++i)
  17089. if (*(data + i) != *(data3 + i))
  17090. return 1;
  17091. close (fd);
  17092. return 0;
  17093. }
  17094. _ACEOF
  17095. rm -f conftest$ac_exeext
  17096. if { (ac_try="$ac_link"
  17097. case "(($ac_try" in
  17098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17099. *) ac_try_echo=$ac_try;;
  17100. esac
  17101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17102. (eval "$ac_link") 2>&5
  17103. ac_status=$?
  17104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17105. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17106. { (case "(($ac_try" in
  17107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17108. *) ac_try_echo=$ac_try;;
  17109. esac
  17110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17111. (eval "$ac_try") 2>&5
  17112. ac_status=$?
  17113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17114. (exit $ac_status); }; }; then
  17115. ac_cv_func_mmap_fixed_mapped=yes
  17116. else
  17117. echo "$as_me: program exited with status $ac_status" >&5
  17118. echo "$as_me: failed program was:" >&5
  17119. sed 's/^/| /' conftest.$ac_ext >&5
  17120. ( exit $ac_status )
  17121. ac_cv_func_mmap_fixed_mapped=no
  17122. fi
  17123. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17124. fi
  17125. fi
  17126. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17127. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17128. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17129. cat >>confdefs.h <<\_ACEOF
  17130. #define HAVE_MMAP 1
  17131. _ACEOF
  17132. fi
  17133. rm -f conftest.mmap
  17134. for ac_header in sys/select.h sys/socket.h
  17135. do
  17136. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17137. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17138. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17139. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17140. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17141. echo $ECHO_N "(cached) $ECHO_C" >&6
  17142. fi
  17143. ac_res=`eval echo '${'$as_ac_Header'}'`
  17144. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17145. echo "${ECHO_T}$ac_res" >&6; }
  17146. else
  17147. # Is the header compilable?
  17148. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17149. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17150. cat >conftest.$ac_ext <<_ACEOF
  17151. /* confdefs.h. */
  17152. _ACEOF
  17153. cat confdefs.h >>conftest.$ac_ext
  17154. cat >>conftest.$ac_ext <<_ACEOF
  17155. /* end confdefs.h. */
  17156. $ac_includes_default
  17157. #include <$ac_header>
  17158. _ACEOF
  17159. rm -f conftest.$ac_objext
  17160. if { (ac_try="$ac_compile"
  17161. case "(($ac_try" in
  17162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17163. *) ac_try_echo=$ac_try;;
  17164. esac
  17165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17166. (eval "$ac_compile") 2>conftest.er1
  17167. ac_status=$?
  17168. grep -v '^ *+' conftest.er1 >conftest.err
  17169. rm -f conftest.er1
  17170. cat conftest.err >&5
  17171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17172. (exit $ac_status); } && {
  17173. test -z "$ac_cxx_werror_flag" ||
  17174. test ! -s conftest.err
  17175. } && test -s conftest.$ac_objext; then
  17176. ac_header_compiler=yes
  17177. else
  17178. echo "$as_me: failed program was:" >&5
  17179. sed 's/^/| /' conftest.$ac_ext >&5
  17180. ac_header_compiler=no
  17181. fi
  17182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17183. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17184. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17185. # Is the header present?
  17186. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17187. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17188. cat >conftest.$ac_ext <<_ACEOF
  17189. /* confdefs.h. */
  17190. _ACEOF
  17191. cat confdefs.h >>conftest.$ac_ext
  17192. cat >>conftest.$ac_ext <<_ACEOF
  17193. /* end confdefs.h. */
  17194. #include <$ac_header>
  17195. _ACEOF
  17196. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17197. case "(($ac_try" in
  17198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17199. *) ac_try_echo=$ac_try;;
  17200. esac
  17201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17202. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17203. ac_status=$?
  17204. grep -v '^ *+' conftest.er1 >conftest.err
  17205. rm -f conftest.er1
  17206. cat conftest.err >&5
  17207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17208. (exit $ac_status); } >/dev/null && {
  17209. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17210. test ! -s conftest.err
  17211. }; then
  17212. ac_header_preproc=yes
  17213. else
  17214. echo "$as_me: failed program was:" >&5
  17215. sed 's/^/| /' conftest.$ac_ext >&5
  17216. ac_header_preproc=no
  17217. fi
  17218. rm -f conftest.err conftest.$ac_ext
  17219. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17220. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17221. # So? What about this header?
  17222. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17223. yes:no: )
  17224. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17225. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17226. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17227. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17228. ac_header_preproc=yes
  17229. ;;
  17230. no:yes:* )
  17231. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17232. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17233. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17234. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17235. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17236. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17237. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17238. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17239. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17240. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17241. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17242. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17243. ( cat <<\_ASBOX
  17244. ## ----------------------------------------------- ##
  17245. ## Report this to t-tujikawa@users.sourceforge.net ##
  17246. ## ----------------------------------------------- ##
  17247. _ASBOX
  17248. ) | sed "s/^/$as_me: WARNING: /" >&2
  17249. ;;
  17250. esac
  17251. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17252. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17254. echo $ECHO_N "(cached) $ECHO_C" >&6
  17255. else
  17256. eval "$as_ac_Header=\$ac_header_preproc"
  17257. fi
  17258. ac_res=`eval echo '${'$as_ac_Header'}'`
  17259. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17260. echo "${ECHO_T}$ac_res" >&6; }
  17261. fi
  17262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17263. cat >>confdefs.h <<_ACEOF
  17264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17265. _ACEOF
  17266. fi
  17267. done
  17268. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17269. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17270. if test "${ac_cv_func_select_args+set}" = set; then
  17271. echo $ECHO_N "(cached) $ECHO_C" >&6
  17272. else
  17273. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17274. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17275. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17276. cat >conftest.$ac_ext <<_ACEOF
  17277. /* confdefs.h. */
  17278. _ACEOF
  17279. cat confdefs.h >>conftest.$ac_ext
  17280. cat >>conftest.$ac_ext <<_ACEOF
  17281. /* end confdefs.h. */
  17282. $ac_includes_default
  17283. #ifdef HAVE_SYS_SELECT_H
  17284. # include <sys/select.h>
  17285. #endif
  17286. #ifdef HAVE_SYS_SOCKET_H
  17287. # include <sys/socket.h>
  17288. #endif
  17289. int
  17290. main ()
  17291. {
  17292. extern int select ($ac_arg1,
  17293. $ac_arg234, $ac_arg234, $ac_arg234,
  17294. $ac_arg5);
  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_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17317. else
  17318. echo "$as_me: failed program was:" >&5
  17319. sed 's/^/| /' conftest.$ac_ext >&5
  17320. fi
  17321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17322. done
  17323. done
  17324. done
  17325. # Provide a safe default value.
  17326. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17327. fi
  17328. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17329. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17330. ac_save_IFS=$IFS; IFS=','
  17331. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17332. IFS=$ac_save_IFS
  17333. shift
  17334. cat >>confdefs.h <<_ACEOF
  17335. #define SELECT_TYPE_ARG1 $1
  17336. _ACEOF
  17337. cat >>confdefs.h <<_ACEOF
  17338. #define SELECT_TYPE_ARG234 ($2)
  17339. _ACEOF
  17340. cat >>confdefs.h <<_ACEOF
  17341. #define SELECT_TYPE_ARG5 ($3)
  17342. _ACEOF
  17343. rm -f conftest*
  17344. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17345. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17346. if test "${ac_cv_type_signal+set}" = set; then
  17347. echo $ECHO_N "(cached) $ECHO_C" >&6
  17348. else
  17349. cat >conftest.$ac_ext <<_ACEOF
  17350. /* confdefs.h. */
  17351. _ACEOF
  17352. cat confdefs.h >>conftest.$ac_ext
  17353. cat >>conftest.$ac_ext <<_ACEOF
  17354. /* end confdefs.h. */
  17355. #include <sys/types.h>
  17356. #include <signal.h>
  17357. int
  17358. main ()
  17359. {
  17360. return *(signal (0, 0)) (0) == 1;
  17361. ;
  17362. return 0;
  17363. }
  17364. _ACEOF
  17365. rm -f conftest.$ac_objext
  17366. if { (ac_try="$ac_compile"
  17367. case "(($ac_try" in
  17368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17369. *) ac_try_echo=$ac_try;;
  17370. esac
  17371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17372. (eval "$ac_compile") 2>conftest.er1
  17373. ac_status=$?
  17374. grep -v '^ *+' conftest.er1 >conftest.err
  17375. rm -f conftest.er1
  17376. cat conftest.err >&5
  17377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17378. (exit $ac_status); } && {
  17379. test -z "$ac_cxx_werror_flag" ||
  17380. test ! -s conftest.err
  17381. } && test -s conftest.$ac_objext; then
  17382. ac_cv_type_signal=int
  17383. else
  17384. echo "$as_me: failed program was:" >&5
  17385. sed 's/^/| /' conftest.$ac_ext >&5
  17386. ac_cv_type_signal=void
  17387. fi
  17388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17389. fi
  17390. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17391. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17392. cat >>confdefs.h <<_ACEOF
  17393. #define RETSIGTYPE $ac_cv_type_signal
  17394. _ACEOF
  17395. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17396. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17397. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17398. echo $ECHO_N "(cached) $ECHO_C" >&6
  17399. else
  17400. rm -f conftest.sym conftest.file
  17401. echo >conftest.file
  17402. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17403. if test "$cross_compiling" = yes; then
  17404. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17405. else
  17406. cat >conftest.$ac_ext <<_ACEOF
  17407. /* confdefs.h. */
  17408. _ACEOF
  17409. cat confdefs.h >>conftest.$ac_ext
  17410. cat >>conftest.$ac_ext <<_ACEOF
  17411. /* end confdefs.h. */
  17412. $ac_includes_default
  17413. int
  17414. main ()
  17415. {
  17416. struct stat sbuf;
  17417. /* Linux will dereference the symlink and fail.
  17418. That is better in the sense that it means we will not
  17419. have to compile and use the lstat wrapper. */
  17420. return lstat ("conftest.sym/", &sbuf) == 0;
  17421. ;
  17422. return 0;
  17423. }
  17424. _ACEOF
  17425. rm -f conftest$ac_exeext
  17426. if { (ac_try="$ac_link"
  17427. case "(($ac_try" in
  17428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17429. *) ac_try_echo=$ac_try;;
  17430. esac
  17431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17432. (eval "$ac_link") 2>&5
  17433. ac_status=$?
  17434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17435. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17436. { (case "(($ac_try" in
  17437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17438. *) ac_try_echo=$ac_try;;
  17439. esac
  17440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17441. (eval "$ac_try") 2>&5
  17442. ac_status=$?
  17443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17444. (exit $ac_status); }; }; then
  17445. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17446. else
  17447. echo "$as_me: program exited with status $ac_status" >&5
  17448. echo "$as_me: failed program was:" >&5
  17449. sed 's/^/| /' conftest.$ac_ext >&5
  17450. ( exit $ac_status )
  17451. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17452. fi
  17453. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17454. fi
  17455. else
  17456. # If the `ln -s' command failed, then we probably don't even
  17457. # have an lstat function.
  17458. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17459. fi
  17460. rm -f conftest.sym conftest.file
  17461. fi
  17462. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17463. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17464. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17465. cat >>confdefs.h <<_ACEOF
  17466. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17467. _ACEOF
  17468. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17469. case " $LIBOBJS " in
  17470. *" lstat.$ac_objext "* ) ;;
  17471. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17472. ;;
  17473. esac
  17474. fi
  17475. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17476. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17477. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17478. echo $ECHO_N "(cached) $ECHO_C" >&6
  17479. else
  17480. if test "$cross_compiling" = yes; then
  17481. ac_cv_func_stat_empty_string_bug=yes
  17482. else
  17483. cat >conftest.$ac_ext <<_ACEOF
  17484. /* confdefs.h. */
  17485. _ACEOF
  17486. cat confdefs.h >>conftest.$ac_ext
  17487. cat >>conftest.$ac_ext <<_ACEOF
  17488. /* end confdefs.h. */
  17489. $ac_includes_default
  17490. int
  17491. main ()
  17492. {
  17493. struct stat sbuf;
  17494. return stat ("", &sbuf) == 0;
  17495. ;
  17496. return 0;
  17497. }
  17498. _ACEOF
  17499. rm -f conftest$ac_exeext
  17500. if { (ac_try="$ac_link"
  17501. case "(($ac_try" in
  17502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17503. *) ac_try_echo=$ac_try;;
  17504. esac
  17505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17506. (eval "$ac_link") 2>&5
  17507. ac_status=$?
  17508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17509. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17510. { (case "(($ac_try" in
  17511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17512. *) ac_try_echo=$ac_try;;
  17513. esac
  17514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17515. (eval "$ac_try") 2>&5
  17516. ac_status=$?
  17517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17518. (exit $ac_status); }; }; then
  17519. ac_cv_func_stat_empty_string_bug=no
  17520. else
  17521. echo "$as_me: program exited with status $ac_status" >&5
  17522. echo "$as_me: failed program was:" >&5
  17523. sed 's/^/| /' conftest.$ac_ext >&5
  17524. ( exit $ac_status )
  17525. ac_cv_func_stat_empty_string_bug=yes
  17526. fi
  17527. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17528. fi
  17529. fi
  17530. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17531. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17532. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17533. case " $LIBOBJS " in
  17534. *" stat.$ac_objext "* ) ;;
  17535. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17536. ;;
  17537. esac
  17538. cat >>confdefs.h <<_ACEOF
  17539. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17540. _ACEOF
  17541. fi
  17542. for ac_func in strftime
  17543. do
  17544. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17545. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17546. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17547. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17548. echo $ECHO_N "(cached) $ECHO_C" >&6
  17549. else
  17550. cat >conftest.$ac_ext <<_ACEOF
  17551. /* confdefs.h. */
  17552. _ACEOF
  17553. cat confdefs.h >>conftest.$ac_ext
  17554. cat >>conftest.$ac_ext <<_ACEOF
  17555. /* end confdefs.h. */
  17556. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17557. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17558. #define $ac_func innocuous_$ac_func
  17559. /* System header to define __stub macros and hopefully few prototypes,
  17560. which can conflict with char $ac_func (); below.
  17561. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17562. <limits.h> exists even on freestanding compilers. */
  17563. #ifdef __STDC__
  17564. # include <limits.h>
  17565. #else
  17566. # include <assert.h>
  17567. #endif
  17568. #undef $ac_func
  17569. /* Override any GCC internal prototype to avoid an error.
  17570. Use char because int might match the return type of a GCC
  17571. builtin and then its argument prototype would still apply. */
  17572. #ifdef __cplusplus
  17573. extern "C"
  17574. #endif
  17575. char $ac_func ();
  17576. /* The GNU C library defines this for functions which it implements
  17577. to always fail with ENOSYS. Some functions are actually named
  17578. something starting with __ and the normal name is an alias. */
  17579. #if defined __stub_$ac_func || defined __stub___$ac_func
  17580. choke me
  17581. #endif
  17582. int
  17583. main ()
  17584. {
  17585. return $ac_func ();
  17586. ;
  17587. return 0;
  17588. }
  17589. _ACEOF
  17590. rm -f conftest.$ac_objext conftest$ac_exeext
  17591. if { (ac_try="$ac_link"
  17592. case "(($ac_try" in
  17593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17594. *) ac_try_echo=$ac_try;;
  17595. esac
  17596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17597. (eval "$ac_link") 2>conftest.er1
  17598. ac_status=$?
  17599. grep -v '^ *+' conftest.er1 >conftest.err
  17600. rm -f conftest.er1
  17601. cat conftest.err >&5
  17602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17603. (exit $ac_status); } && {
  17604. test -z "$ac_cxx_werror_flag" ||
  17605. test ! -s conftest.err
  17606. } && test -s conftest$ac_exeext &&
  17607. $as_test_x conftest$ac_exeext; then
  17608. eval "$as_ac_var=yes"
  17609. else
  17610. echo "$as_me: failed program was:" >&5
  17611. sed 's/^/| /' conftest.$ac_ext >&5
  17612. eval "$as_ac_var=no"
  17613. fi
  17614. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17615. conftest$ac_exeext conftest.$ac_ext
  17616. fi
  17617. ac_res=`eval echo '${'$as_ac_var'}'`
  17618. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17619. echo "${ECHO_T}$ac_res" >&6; }
  17620. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17621. cat >>confdefs.h <<_ACEOF
  17622. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17623. _ACEOF
  17624. else
  17625. # strftime is in -lintl on SCO UNIX.
  17626. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17627. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17628. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17629. echo $ECHO_N "(cached) $ECHO_C" >&6
  17630. else
  17631. ac_check_lib_save_LIBS=$LIBS
  17632. LIBS="-lintl $LIBS"
  17633. cat >conftest.$ac_ext <<_ACEOF
  17634. /* confdefs.h. */
  17635. _ACEOF
  17636. cat confdefs.h >>conftest.$ac_ext
  17637. cat >>conftest.$ac_ext <<_ACEOF
  17638. /* end confdefs.h. */
  17639. /* Override any GCC internal prototype to avoid an error.
  17640. Use char because int might match the return type of a GCC
  17641. builtin and then its argument prototype would still apply. */
  17642. #ifdef __cplusplus
  17643. extern "C"
  17644. #endif
  17645. char strftime ();
  17646. int
  17647. main ()
  17648. {
  17649. return strftime ();
  17650. ;
  17651. return 0;
  17652. }
  17653. _ACEOF
  17654. rm -f conftest.$ac_objext conftest$ac_exeext
  17655. if { (ac_try="$ac_link"
  17656. case "(($ac_try" in
  17657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17658. *) ac_try_echo=$ac_try;;
  17659. esac
  17660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17661. (eval "$ac_link") 2>conftest.er1
  17662. ac_status=$?
  17663. grep -v '^ *+' conftest.er1 >conftest.err
  17664. rm -f conftest.er1
  17665. cat conftest.err >&5
  17666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17667. (exit $ac_status); } && {
  17668. test -z "$ac_cxx_werror_flag" ||
  17669. test ! -s conftest.err
  17670. } && test -s conftest$ac_exeext &&
  17671. $as_test_x conftest$ac_exeext; then
  17672. ac_cv_lib_intl_strftime=yes
  17673. else
  17674. echo "$as_me: failed program was:" >&5
  17675. sed 's/^/| /' conftest.$ac_ext >&5
  17676. ac_cv_lib_intl_strftime=no
  17677. fi
  17678. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17679. conftest$ac_exeext conftest.$ac_ext
  17680. LIBS=$ac_check_lib_save_LIBS
  17681. fi
  17682. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17683. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17684. if test $ac_cv_lib_intl_strftime = yes; then
  17685. cat >>confdefs.h <<\_ACEOF
  17686. #define HAVE_STRFTIME 1
  17687. _ACEOF
  17688. LIBS="-lintl $LIBS"
  17689. fi
  17690. fi
  17691. done
  17692. for ac_func in vprintf
  17693. do
  17694. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17695. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17696. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17697. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17698. echo $ECHO_N "(cached) $ECHO_C" >&6
  17699. else
  17700. cat >conftest.$ac_ext <<_ACEOF
  17701. /* confdefs.h. */
  17702. _ACEOF
  17703. cat confdefs.h >>conftest.$ac_ext
  17704. cat >>conftest.$ac_ext <<_ACEOF
  17705. /* end confdefs.h. */
  17706. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17708. #define $ac_func innocuous_$ac_func
  17709. /* System header to define __stub macros and hopefully few prototypes,
  17710. which can conflict with char $ac_func (); below.
  17711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17712. <limits.h> exists even on freestanding compilers. */
  17713. #ifdef __STDC__
  17714. # include <limits.h>
  17715. #else
  17716. # include <assert.h>
  17717. #endif
  17718. #undef $ac_func
  17719. /* Override any GCC internal prototype to avoid an error.
  17720. Use char because int might match the return type of a GCC
  17721. builtin and then its argument prototype would still apply. */
  17722. #ifdef __cplusplus
  17723. extern "C"
  17724. #endif
  17725. char $ac_func ();
  17726. /* The GNU C library defines this for functions which it implements
  17727. to always fail with ENOSYS. Some functions are actually named
  17728. something starting with __ and the normal name is an alias. */
  17729. #if defined __stub_$ac_func || defined __stub___$ac_func
  17730. choke me
  17731. #endif
  17732. int
  17733. main ()
  17734. {
  17735. return $ac_func ();
  17736. ;
  17737. return 0;
  17738. }
  17739. _ACEOF
  17740. rm -f conftest.$ac_objext conftest$ac_exeext
  17741. if { (ac_try="$ac_link"
  17742. case "(($ac_try" in
  17743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17744. *) ac_try_echo=$ac_try;;
  17745. esac
  17746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17747. (eval "$ac_link") 2>conftest.er1
  17748. ac_status=$?
  17749. grep -v '^ *+' conftest.er1 >conftest.err
  17750. rm -f conftest.er1
  17751. cat conftest.err >&5
  17752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17753. (exit $ac_status); } && {
  17754. test -z "$ac_cxx_werror_flag" ||
  17755. test ! -s conftest.err
  17756. } && test -s conftest$ac_exeext &&
  17757. $as_test_x conftest$ac_exeext; then
  17758. eval "$as_ac_var=yes"
  17759. else
  17760. echo "$as_me: failed program was:" >&5
  17761. sed 's/^/| /' conftest.$ac_ext >&5
  17762. eval "$as_ac_var=no"
  17763. fi
  17764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17765. conftest$ac_exeext conftest.$ac_ext
  17766. fi
  17767. ac_res=`eval echo '${'$as_ac_var'}'`
  17768. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17769. echo "${ECHO_T}$ac_res" >&6; }
  17770. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17771. cat >>confdefs.h <<_ACEOF
  17772. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17773. _ACEOF
  17774. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17775. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17776. if test "${ac_cv_func__doprnt+set}" = set; then
  17777. echo $ECHO_N "(cached) $ECHO_C" >&6
  17778. else
  17779. cat >conftest.$ac_ext <<_ACEOF
  17780. /* confdefs.h. */
  17781. _ACEOF
  17782. cat confdefs.h >>conftest.$ac_ext
  17783. cat >>conftest.$ac_ext <<_ACEOF
  17784. /* end confdefs.h. */
  17785. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17787. #define _doprnt innocuous__doprnt
  17788. /* System header to define __stub macros and hopefully few prototypes,
  17789. which can conflict with char _doprnt (); below.
  17790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17791. <limits.h> exists even on freestanding compilers. */
  17792. #ifdef __STDC__
  17793. # include <limits.h>
  17794. #else
  17795. # include <assert.h>
  17796. #endif
  17797. #undef _doprnt
  17798. /* Override any GCC internal prototype to avoid an error.
  17799. Use char because int might match the return type of a GCC
  17800. builtin and then its argument prototype would still apply. */
  17801. #ifdef __cplusplus
  17802. extern "C"
  17803. #endif
  17804. char _doprnt ();
  17805. /* The GNU C library defines this for functions which it implements
  17806. to always fail with ENOSYS. Some functions are actually named
  17807. something starting with __ and the normal name is an alias. */
  17808. #if defined __stub__doprnt || defined __stub____doprnt
  17809. choke me
  17810. #endif
  17811. int
  17812. main ()
  17813. {
  17814. return _doprnt ();
  17815. ;
  17816. return 0;
  17817. }
  17818. _ACEOF
  17819. rm -f conftest.$ac_objext conftest$ac_exeext
  17820. if { (ac_try="$ac_link"
  17821. case "(($ac_try" in
  17822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17823. *) ac_try_echo=$ac_try;;
  17824. esac
  17825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17826. (eval "$ac_link") 2>conftest.er1
  17827. ac_status=$?
  17828. grep -v '^ *+' conftest.er1 >conftest.err
  17829. rm -f conftest.er1
  17830. cat conftest.err >&5
  17831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17832. (exit $ac_status); } && {
  17833. test -z "$ac_cxx_werror_flag" ||
  17834. test ! -s conftest.err
  17835. } && test -s conftest$ac_exeext &&
  17836. $as_test_x conftest$ac_exeext; then
  17837. ac_cv_func__doprnt=yes
  17838. else
  17839. echo "$as_me: failed program was:" >&5
  17840. sed 's/^/| /' conftest.$ac_ext >&5
  17841. ac_cv_func__doprnt=no
  17842. fi
  17843. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17844. conftest$ac_exeext conftest.$ac_ext
  17845. fi
  17846. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17847. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17848. if test $ac_cv_func__doprnt = yes; then
  17849. cat >>confdefs.h <<\_ACEOF
  17850. #define HAVE_DOPRNT 1
  17851. _ACEOF
  17852. fi
  17853. fi
  17854. done
  17855. for ac_func in __argz_count \
  17856. __argz_next \
  17857. __argz_stringify \
  17858. atexit \
  17859. daemon \
  17860. ftruncate \
  17861. getcwd \
  17862. gethostbyaddr \
  17863. gethostbyname \
  17864. getpagesize \
  17865. inet_ntoa \
  17866. memchr \
  17867. memmove \
  17868. mempcpy \
  17869. memset \
  17870. mkdir \
  17871. munmap \
  17872. nl_langinfo \
  17873. posix_memalign \
  17874. putenv \
  17875. rmdir \
  17876. select \
  17877. setlocale \
  17878. sleep \
  17879. socket \
  17880. stpcpy \
  17881. strcasecmp \
  17882. strchr \
  17883. strcspn \
  17884. strdup \
  17885. strerror \
  17886. strncasecmp \
  17887. strstr \
  17888. strtol \
  17889. strtoul \
  17890. strtoull \
  17891. tzset \
  17892. unsetenv \
  17893. usleep
  17894. do
  17895. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17896. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17897. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17898. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17899. echo $ECHO_N "(cached) $ECHO_C" >&6
  17900. else
  17901. cat >conftest.$ac_ext <<_ACEOF
  17902. /* confdefs.h. */
  17903. _ACEOF
  17904. cat confdefs.h >>conftest.$ac_ext
  17905. cat >>conftest.$ac_ext <<_ACEOF
  17906. /* end confdefs.h. */
  17907. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17908. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17909. #define $ac_func innocuous_$ac_func
  17910. /* System header to define __stub macros and hopefully few prototypes,
  17911. which can conflict with char $ac_func (); below.
  17912. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17913. <limits.h> exists even on freestanding compilers. */
  17914. #ifdef __STDC__
  17915. # include <limits.h>
  17916. #else
  17917. # include <assert.h>
  17918. #endif
  17919. #undef $ac_func
  17920. /* Override any GCC internal prototype to avoid an error.
  17921. Use char because int might match the return type of a GCC
  17922. builtin and then its argument prototype would still apply. */
  17923. #ifdef __cplusplus
  17924. extern "C"
  17925. #endif
  17926. char $ac_func ();
  17927. /* The GNU C library defines this for functions which it implements
  17928. to always fail with ENOSYS. Some functions are actually named
  17929. something starting with __ and the normal name is an alias. */
  17930. #if defined __stub_$ac_func || defined __stub___$ac_func
  17931. choke me
  17932. #endif
  17933. int
  17934. main ()
  17935. {
  17936. return $ac_func ();
  17937. ;
  17938. return 0;
  17939. }
  17940. _ACEOF
  17941. rm -f conftest.$ac_objext conftest$ac_exeext
  17942. if { (ac_try="$ac_link"
  17943. case "(($ac_try" in
  17944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17945. *) ac_try_echo=$ac_try;;
  17946. esac
  17947. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17948. (eval "$ac_link") 2>conftest.er1
  17949. ac_status=$?
  17950. grep -v '^ *+' conftest.er1 >conftest.err
  17951. rm -f conftest.er1
  17952. cat conftest.err >&5
  17953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17954. (exit $ac_status); } && {
  17955. test -z "$ac_cxx_werror_flag" ||
  17956. test ! -s conftest.err
  17957. } && test -s conftest$ac_exeext &&
  17958. $as_test_x conftest$ac_exeext; then
  17959. eval "$as_ac_var=yes"
  17960. else
  17961. echo "$as_me: failed program was:" >&5
  17962. sed 's/^/| /' conftest.$ac_ext >&5
  17963. eval "$as_ac_var=no"
  17964. fi
  17965. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17966. conftest$ac_exeext conftest.$ac_ext
  17967. fi
  17968. ac_res=`eval echo '${'$as_ac_var'}'`
  17969. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17970. echo "${ECHO_T}$ac_res" >&6; }
  17971. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17972. cat >>confdefs.h <<_ACEOF
  17973. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17974. _ACEOF
  17975. fi
  17976. done
  17977. if test "x$enable_epoll" = "xyes"; then
  17978. for ac_func in epoll_create
  17979. do
  17980. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17981. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17982. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17983. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17984. echo $ECHO_N "(cached) $ECHO_C" >&6
  17985. else
  17986. cat >conftest.$ac_ext <<_ACEOF
  17987. /* confdefs.h. */
  17988. _ACEOF
  17989. cat confdefs.h >>conftest.$ac_ext
  17990. cat >>conftest.$ac_ext <<_ACEOF
  17991. /* end confdefs.h. */
  17992. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17993. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17994. #define $ac_func innocuous_$ac_func
  17995. /* System header to define __stub macros and hopefully few prototypes,
  17996. which can conflict with char $ac_func (); below.
  17997. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17998. <limits.h> exists even on freestanding compilers. */
  17999. #ifdef __STDC__
  18000. # include <limits.h>
  18001. #else
  18002. # include <assert.h>
  18003. #endif
  18004. #undef $ac_func
  18005. /* Override any GCC internal prototype to avoid an error.
  18006. Use char because int might match the return type of a GCC
  18007. builtin and then its argument prototype would still apply. */
  18008. #ifdef __cplusplus
  18009. extern "C"
  18010. #endif
  18011. char $ac_func ();
  18012. /* The GNU C library defines this for functions which it implements
  18013. to always fail with ENOSYS. Some functions are actually named
  18014. something starting with __ and the normal name is an alias. */
  18015. #if defined __stub_$ac_func || defined __stub___$ac_func
  18016. choke me
  18017. #endif
  18018. int
  18019. main ()
  18020. {
  18021. return $ac_func ();
  18022. ;
  18023. return 0;
  18024. }
  18025. _ACEOF
  18026. rm -f conftest.$ac_objext conftest$ac_exeext
  18027. if { (ac_try="$ac_link"
  18028. case "(($ac_try" in
  18029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18030. *) ac_try_echo=$ac_try;;
  18031. esac
  18032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18033. (eval "$ac_link") 2>conftest.er1
  18034. ac_status=$?
  18035. grep -v '^ *+' conftest.er1 >conftest.err
  18036. rm -f conftest.er1
  18037. cat conftest.err >&5
  18038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18039. (exit $ac_status); } && {
  18040. test -z "$ac_cxx_werror_flag" ||
  18041. test ! -s conftest.err
  18042. } && test -s conftest$ac_exeext &&
  18043. $as_test_x conftest$ac_exeext; then
  18044. eval "$as_ac_var=yes"
  18045. else
  18046. echo "$as_me: failed program was:" >&5
  18047. sed 's/^/| /' conftest.$ac_ext >&5
  18048. eval "$as_ac_var=no"
  18049. fi
  18050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18051. conftest$ac_exeext conftest.$ac_ext
  18052. fi
  18053. ac_res=`eval echo '${'$as_ac_var'}'`
  18054. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18055. echo "${ECHO_T}$ac_res" >&6; }
  18056. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18057. cat >>confdefs.h <<_ACEOF
  18058. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18059. _ACEOF
  18060. fi
  18061. done
  18062. fi
  18063. for ac_func in asctime_r
  18064. do
  18065. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18066. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18067. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18068. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18069. echo $ECHO_N "(cached) $ECHO_C" >&6
  18070. else
  18071. cat >conftest.$ac_ext <<_ACEOF
  18072. /* confdefs.h. */
  18073. _ACEOF
  18074. cat confdefs.h >>conftest.$ac_ext
  18075. cat >>conftest.$ac_ext <<_ACEOF
  18076. /* end confdefs.h. */
  18077. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18078. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18079. #define $ac_func innocuous_$ac_func
  18080. /* System header to define __stub macros and hopefully few prototypes,
  18081. which can conflict with char $ac_func (); below.
  18082. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18083. <limits.h> exists even on freestanding compilers. */
  18084. #ifdef __STDC__
  18085. # include <limits.h>
  18086. #else
  18087. # include <assert.h>
  18088. #endif
  18089. #undef $ac_func
  18090. /* Override any GCC internal prototype to avoid an error.
  18091. Use char because int might match the return type of a GCC
  18092. builtin and then its argument prototype would still apply. */
  18093. #ifdef __cplusplus
  18094. extern "C"
  18095. #endif
  18096. char $ac_func ();
  18097. /* The GNU C library defines this for functions which it implements
  18098. to always fail with ENOSYS. Some functions are actually named
  18099. something starting with __ and the normal name is an alias. */
  18100. #if defined __stub_$ac_func || defined __stub___$ac_func
  18101. choke me
  18102. #endif
  18103. int
  18104. main ()
  18105. {
  18106. return $ac_func ();
  18107. ;
  18108. return 0;
  18109. }
  18110. _ACEOF
  18111. rm -f conftest.$ac_objext conftest$ac_exeext
  18112. if { (ac_try="$ac_link"
  18113. case "(($ac_try" in
  18114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18115. *) ac_try_echo=$ac_try;;
  18116. esac
  18117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18118. (eval "$ac_link") 2>conftest.er1
  18119. ac_status=$?
  18120. grep -v '^ *+' conftest.er1 >conftest.err
  18121. rm -f conftest.er1
  18122. cat conftest.err >&5
  18123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18124. (exit $ac_status); } && {
  18125. test -z "$ac_cxx_werror_flag" ||
  18126. test ! -s conftest.err
  18127. } && test -s conftest$ac_exeext &&
  18128. $as_test_x conftest$ac_exeext; then
  18129. eval "$as_ac_var=yes"
  18130. else
  18131. echo "$as_me: failed program was:" >&5
  18132. sed 's/^/| /' conftest.$ac_ext >&5
  18133. eval "$as_ac_var=no"
  18134. fi
  18135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18136. conftest$ac_exeext conftest.$ac_ext
  18137. fi
  18138. ac_res=`eval echo '${'$as_ac_var'}'`
  18139. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18140. echo "${ECHO_T}$ac_res" >&6; }
  18141. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18142. cat >>confdefs.h <<_ACEOF
  18143. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18144. _ACEOF
  18145. if true; then
  18146. HAVE_ASCTIME_R_TRUE=
  18147. HAVE_ASCTIME_R_FALSE='#'
  18148. else
  18149. HAVE_ASCTIME_R_TRUE='#'
  18150. HAVE_ASCTIME_R_FALSE=
  18151. fi
  18152. else
  18153. if false; then
  18154. HAVE_ASCTIME_R_TRUE=
  18155. HAVE_ASCTIME_R_FALSE='#'
  18156. else
  18157. HAVE_ASCTIME_R_TRUE='#'
  18158. HAVE_ASCTIME_R_FALSE=
  18159. fi
  18160. fi
  18161. done
  18162. for ac_func in basename
  18163. do
  18164. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18165. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18166. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18167. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18168. echo $ECHO_N "(cached) $ECHO_C" >&6
  18169. else
  18170. cat >conftest.$ac_ext <<_ACEOF
  18171. /* confdefs.h. */
  18172. _ACEOF
  18173. cat confdefs.h >>conftest.$ac_ext
  18174. cat >>conftest.$ac_ext <<_ACEOF
  18175. /* end confdefs.h. */
  18176. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18177. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18178. #define $ac_func innocuous_$ac_func
  18179. /* System header to define __stub macros and hopefully few prototypes,
  18180. which can conflict with char $ac_func (); below.
  18181. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18182. <limits.h> exists even on freestanding compilers. */
  18183. #ifdef __STDC__
  18184. # include <limits.h>
  18185. #else
  18186. # include <assert.h>
  18187. #endif
  18188. #undef $ac_func
  18189. /* Override any GCC internal prototype to avoid an error.
  18190. Use char because int might match the return type of a GCC
  18191. builtin and then its argument prototype would still apply. */
  18192. #ifdef __cplusplus
  18193. extern "C"
  18194. #endif
  18195. char $ac_func ();
  18196. /* The GNU C library defines this for functions which it implements
  18197. to always fail with ENOSYS. Some functions are actually named
  18198. something starting with __ and the normal name is an alias. */
  18199. #if defined __stub_$ac_func || defined __stub___$ac_func
  18200. choke me
  18201. #endif
  18202. int
  18203. main ()
  18204. {
  18205. return $ac_func ();
  18206. ;
  18207. return 0;
  18208. }
  18209. _ACEOF
  18210. rm -f conftest.$ac_objext conftest$ac_exeext
  18211. if { (ac_try="$ac_link"
  18212. case "(($ac_try" in
  18213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18214. *) ac_try_echo=$ac_try;;
  18215. esac
  18216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18217. (eval "$ac_link") 2>conftest.er1
  18218. ac_status=$?
  18219. grep -v '^ *+' conftest.er1 >conftest.err
  18220. rm -f conftest.er1
  18221. cat conftest.err >&5
  18222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18223. (exit $ac_status); } && {
  18224. test -z "$ac_cxx_werror_flag" ||
  18225. test ! -s conftest.err
  18226. } && test -s conftest$ac_exeext &&
  18227. $as_test_x conftest$ac_exeext; then
  18228. eval "$as_ac_var=yes"
  18229. else
  18230. echo "$as_me: failed program was:" >&5
  18231. sed 's/^/| /' conftest.$ac_ext >&5
  18232. eval "$as_ac_var=no"
  18233. fi
  18234. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18235. conftest$ac_exeext conftest.$ac_ext
  18236. fi
  18237. ac_res=`eval echo '${'$as_ac_var'}'`
  18238. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18239. echo "${ECHO_T}$ac_res" >&6; }
  18240. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18241. cat >>confdefs.h <<_ACEOF
  18242. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18243. _ACEOF
  18244. if true; then
  18245. HAVE_BASENAME_TRUE=
  18246. HAVE_BASENAME_FALSE='#'
  18247. else
  18248. HAVE_BASENAME_TRUE='#'
  18249. HAVE_BASENAME_FALSE=
  18250. fi
  18251. else
  18252. if false; then
  18253. HAVE_BASENAME_TRUE=
  18254. HAVE_BASENAME_FALSE='#'
  18255. else
  18256. HAVE_BASENAME_TRUE='#'
  18257. HAVE_BASENAME_FALSE=
  18258. fi
  18259. fi
  18260. done
  18261. for ac_func in gai_strerror
  18262. do
  18263. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18264. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18265. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18266. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18267. echo $ECHO_N "(cached) $ECHO_C" >&6
  18268. else
  18269. cat >conftest.$ac_ext <<_ACEOF
  18270. /* confdefs.h. */
  18271. _ACEOF
  18272. cat confdefs.h >>conftest.$ac_ext
  18273. cat >>conftest.$ac_ext <<_ACEOF
  18274. /* end confdefs.h. */
  18275. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18276. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18277. #define $ac_func innocuous_$ac_func
  18278. /* System header to define __stub macros and hopefully few prototypes,
  18279. which can conflict with char $ac_func (); below.
  18280. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18281. <limits.h> exists even on freestanding compilers. */
  18282. #ifdef __STDC__
  18283. # include <limits.h>
  18284. #else
  18285. # include <assert.h>
  18286. #endif
  18287. #undef $ac_func
  18288. /* Override any GCC internal prototype to avoid an error.
  18289. Use char because int might match the return type of a GCC
  18290. builtin and then its argument prototype would still apply. */
  18291. #ifdef __cplusplus
  18292. extern "C"
  18293. #endif
  18294. char $ac_func ();
  18295. /* The GNU C library defines this for functions which it implements
  18296. to always fail with ENOSYS. Some functions are actually named
  18297. something starting with __ and the normal name is an alias. */
  18298. #if defined __stub_$ac_func || defined __stub___$ac_func
  18299. choke me
  18300. #endif
  18301. int
  18302. main ()
  18303. {
  18304. return $ac_func ();
  18305. ;
  18306. return 0;
  18307. }
  18308. _ACEOF
  18309. rm -f conftest.$ac_objext conftest$ac_exeext
  18310. if { (ac_try="$ac_link"
  18311. case "(($ac_try" in
  18312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18313. *) ac_try_echo=$ac_try;;
  18314. esac
  18315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18316. (eval "$ac_link") 2>conftest.er1
  18317. ac_status=$?
  18318. grep -v '^ *+' conftest.er1 >conftest.err
  18319. rm -f conftest.er1
  18320. cat conftest.err >&5
  18321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18322. (exit $ac_status); } && {
  18323. test -z "$ac_cxx_werror_flag" ||
  18324. test ! -s conftest.err
  18325. } && test -s conftest$ac_exeext &&
  18326. $as_test_x conftest$ac_exeext; then
  18327. eval "$as_ac_var=yes"
  18328. else
  18329. echo "$as_me: failed program was:" >&5
  18330. sed 's/^/| /' conftest.$ac_ext >&5
  18331. eval "$as_ac_var=no"
  18332. fi
  18333. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18334. conftest$ac_exeext conftest.$ac_ext
  18335. fi
  18336. ac_res=`eval echo '${'$as_ac_var'}'`
  18337. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18338. echo "${ECHO_T}$ac_res" >&6; }
  18339. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18340. cat >>confdefs.h <<_ACEOF
  18341. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18342. _ACEOF
  18343. if true; then
  18344. HAVE_GAI_STRERROR_TRUE=
  18345. HAVE_GAI_STRERROR_FALSE='#'
  18346. else
  18347. HAVE_GAI_STRERROR_TRUE='#'
  18348. HAVE_GAI_STRERROR_FALSE=
  18349. fi
  18350. else
  18351. if false; then
  18352. HAVE_GAI_STRERROR_TRUE=
  18353. HAVE_GAI_STRERROR_FALSE='#'
  18354. else
  18355. HAVE_GAI_STRERROR_TRUE='#'
  18356. HAVE_GAI_STRERROR_FALSE=
  18357. fi
  18358. fi
  18359. done
  18360. for ac_func in getaddrinfo
  18361. do
  18362. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18363. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18364. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18365. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18366. echo $ECHO_N "(cached) $ECHO_C" >&6
  18367. else
  18368. cat >conftest.$ac_ext <<_ACEOF
  18369. /* confdefs.h. */
  18370. _ACEOF
  18371. cat confdefs.h >>conftest.$ac_ext
  18372. cat >>conftest.$ac_ext <<_ACEOF
  18373. /* end confdefs.h. */
  18374. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18375. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18376. #define $ac_func innocuous_$ac_func
  18377. /* System header to define __stub macros and hopefully few prototypes,
  18378. which can conflict with char $ac_func (); below.
  18379. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18380. <limits.h> exists even on freestanding compilers. */
  18381. #ifdef __STDC__
  18382. # include <limits.h>
  18383. #else
  18384. # include <assert.h>
  18385. #endif
  18386. #undef $ac_func
  18387. /* Override any GCC internal prototype to avoid an error.
  18388. Use char because int might match the return type of a GCC
  18389. builtin and then its argument prototype would still apply. */
  18390. #ifdef __cplusplus
  18391. extern "C"
  18392. #endif
  18393. char $ac_func ();
  18394. /* The GNU C library defines this for functions which it implements
  18395. to always fail with ENOSYS. Some functions are actually named
  18396. something starting with __ and the normal name is an alias. */
  18397. #if defined __stub_$ac_func || defined __stub___$ac_func
  18398. choke me
  18399. #endif
  18400. int
  18401. main ()
  18402. {
  18403. return $ac_func ();
  18404. ;
  18405. return 0;
  18406. }
  18407. _ACEOF
  18408. rm -f conftest.$ac_objext conftest$ac_exeext
  18409. if { (ac_try="$ac_link"
  18410. case "(($ac_try" in
  18411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18412. *) ac_try_echo=$ac_try;;
  18413. esac
  18414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18415. (eval "$ac_link") 2>conftest.er1
  18416. ac_status=$?
  18417. grep -v '^ *+' conftest.er1 >conftest.err
  18418. rm -f conftest.er1
  18419. cat conftest.err >&5
  18420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18421. (exit $ac_status); } && {
  18422. test -z "$ac_cxx_werror_flag" ||
  18423. test ! -s conftest.err
  18424. } && test -s conftest$ac_exeext &&
  18425. $as_test_x conftest$ac_exeext; then
  18426. eval "$as_ac_var=yes"
  18427. else
  18428. echo "$as_me: failed program was:" >&5
  18429. sed 's/^/| /' conftest.$ac_ext >&5
  18430. eval "$as_ac_var=no"
  18431. fi
  18432. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18433. conftest$ac_exeext conftest.$ac_ext
  18434. fi
  18435. ac_res=`eval echo '${'$as_ac_var'}'`
  18436. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18437. echo "${ECHO_T}$ac_res" >&6; }
  18438. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18439. cat >>confdefs.h <<_ACEOF
  18440. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18441. _ACEOF
  18442. if true; then
  18443. HAVE_GETADDRINFO_TRUE=
  18444. HAVE_GETADDRINFO_FALSE='#'
  18445. else
  18446. HAVE_GETADDRINFO_TRUE='#'
  18447. HAVE_GETADDRINFO_FALSE=
  18448. fi
  18449. else
  18450. if false; then
  18451. HAVE_GETADDRINFO_TRUE=
  18452. HAVE_GETADDRINFO_FALSE='#'
  18453. else
  18454. HAVE_GETADDRINFO_TRUE='#'
  18455. HAVE_GETADDRINFO_FALSE=
  18456. fi
  18457. fi
  18458. done
  18459. for ac_func in gettimeofday
  18460. do
  18461. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18462. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18463. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18464. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18465. echo $ECHO_N "(cached) $ECHO_C" >&6
  18466. else
  18467. cat >conftest.$ac_ext <<_ACEOF
  18468. /* confdefs.h. */
  18469. _ACEOF
  18470. cat confdefs.h >>conftest.$ac_ext
  18471. cat >>conftest.$ac_ext <<_ACEOF
  18472. /* end confdefs.h. */
  18473. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18474. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18475. #define $ac_func innocuous_$ac_func
  18476. /* System header to define __stub macros and hopefully few prototypes,
  18477. which can conflict with char $ac_func (); below.
  18478. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18479. <limits.h> exists even on freestanding compilers. */
  18480. #ifdef __STDC__
  18481. # include <limits.h>
  18482. #else
  18483. # include <assert.h>
  18484. #endif
  18485. #undef $ac_func
  18486. /* Override any GCC internal prototype to avoid an error.
  18487. Use char because int might match the return type of a GCC
  18488. builtin and then its argument prototype would still apply. */
  18489. #ifdef __cplusplus
  18490. extern "C"
  18491. #endif
  18492. char $ac_func ();
  18493. /* The GNU C library defines this for functions which it implements
  18494. to always fail with ENOSYS. Some functions are actually named
  18495. something starting with __ and the normal name is an alias. */
  18496. #if defined __stub_$ac_func || defined __stub___$ac_func
  18497. choke me
  18498. #endif
  18499. int
  18500. main ()
  18501. {
  18502. return $ac_func ();
  18503. ;
  18504. return 0;
  18505. }
  18506. _ACEOF
  18507. rm -f conftest.$ac_objext conftest$ac_exeext
  18508. if { (ac_try="$ac_link"
  18509. case "(($ac_try" in
  18510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18511. *) ac_try_echo=$ac_try;;
  18512. esac
  18513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18514. (eval "$ac_link") 2>conftest.er1
  18515. ac_status=$?
  18516. grep -v '^ *+' conftest.er1 >conftest.err
  18517. rm -f conftest.er1
  18518. cat conftest.err >&5
  18519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18520. (exit $ac_status); } && {
  18521. test -z "$ac_cxx_werror_flag" ||
  18522. test ! -s conftest.err
  18523. } && test -s conftest$ac_exeext &&
  18524. $as_test_x conftest$ac_exeext; then
  18525. eval "$as_ac_var=yes"
  18526. else
  18527. echo "$as_me: failed program was:" >&5
  18528. sed 's/^/| /' conftest.$ac_ext >&5
  18529. eval "$as_ac_var=no"
  18530. fi
  18531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18532. conftest$ac_exeext conftest.$ac_ext
  18533. fi
  18534. ac_res=`eval echo '${'$as_ac_var'}'`
  18535. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18536. echo "${ECHO_T}$ac_res" >&6; }
  18537. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18538. cat >>confdefs.h <<_ACEOF
  18539. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18540. _ACEOF
  18541. if true; then
  18542. HAVE_GETTIMEOFDAY_TRUE=
  18543. HAVE_GETTIMEOFDAY_FALSE='#'
  18544. else
  18545. HAVE_GETTIMEOFDAY_TRUE='#'
  18546. HAVE_GETTIMEOFDAY_FALSE=
  18547. fi
  18548. else
  18549. if false; then
  18550. HAVE_GETTIMEOFDAY_TRUE=
  18551. HAVE_GETTIMEOFDAY_FALSE='#'
  18552. else
  18553. HAVE_GETTIMEOFDAY_TRUE='#'
  18554. HAVE_GETTIMEOFDAY_FALSE=
  18555. fi
  18556. fi
  18557. done
  18558. for ac_func in inet_aton
  18559. do
  18560. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18561. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18562. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18563. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18564. echo $ECHO_N "(cached) $ECHO_C" >&6
  18565. else
  18566. cat >conftest.$ac_ext <<_ACEOF
  18567. /* confdefs.h. */
  18568. _ACEOF
  18569. cat confdefs.h >>conftest.$ac_ext
  18570. cat >>conftest.$ac_ext <<_ACEOF
  18571. /* end confdefs.h. */
  18572. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18573. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18574. #define $ac_func innocuous_$ac_func
  18575. /* System header to define __stub macros and hopefully few prototypes,
  18576. which can conflict with char $ac_func (); below.
  18577. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18578. <limits.h> exists even on freestanding compilers. */
  18579. #ifdef __STDC__
  18580. # include <limits.h>
  18581. #else
  18582. # include <assert.h>
  18583. #endif
  18584. #undef $ac_func
  18585. /* Override any GCC internal prototype to avoid an error.
  18586. Use char because int might match the return type of a GCC
  18587. builtin and then its argument prototype would still apply. */
  18588. #ifdef __cplusplus
  18589. extern "C"
  18590. #endif
  18591. char $ac_func ();
  18592. /* The GNU C library defines this for functions which it implements
  18593. to always fail with ENOSYS. Some functions are actually named
  18594. something starting with __ and the normal name is an alias. */
  18595. #if defined __stub_$ac_func || defined __stub___$ac_func
  18596. choke me
  18597. #endif
  18598. int
  18599. main ()
  18600. {
  18601. return $ac_func ();
  18602. ;
  18603. return 0;
  18604. }
  18605. _ACEOF
  18606. rm -f conftest.$ac_objext conftest$ac_exeext
  18607. if { (ac_try="$ac_link"
  18608. case "(($ac_try" in
  18609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18610. *) ac_try_echo=$ac_try;;
  18611. esac
  18612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18613. (eval "$ac_link") 2>conftest.er1
  18614. ac_status=$?
  18615. grep -v '^ *+' conftest.er1 >conftest.err
  18616. rm -f conftest.er1
  18617. cat conftest.err >&5
  18618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18619. (exit $ac_status); } && {
  18620. test -z "$ac_cxx_werror_flag" ||
  18621. test ! -s conftest.err
  18622. } && test -s conftest$ac_exeext &&
  18623. $as_test_x conftest$ac_exeext; then
  18624. eval "$as_ac_var=yes"
  18625. else
  18626. echo "$as_me: failed program was:" >&5
  18627. sed 's/^/| /' conftest.$ac_ext >&5
  18628. eval "$as_ac_var=no"
  18629. fi
  18630. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18631. conftest$ac_exeext conftest.$ac_ext
  18632. fi
  18633. ac_res=`eval echo '${'$as_ac_var'}'`
  18634. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18635. echo "${ECHO_T}$ac_res" >&6; }
  18636. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18637. cat >>confdefs.h <<_ACEOF
  18638. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18639. _ACEOF
  18640. if true; then
  18641. HAVE_INET_ATON_TRUE=
  18642. HAVE_INET_ATON_FALSE='#'
  18643. else
  18644. HAVE_INET_ATON_TRUE='#'
  18645. HAVE_INET_ATON_FALSE=
  18646. fi
  18647. else
  18648. if false; then
  18649. HAVE_INET_ATON_TRUE=
  18650. HAVE_INET_ATON_FALSE='#'
  18651. else
  18652. HAVE_INET_ATON_TRUE='#'
  18653. HAVE_INET_ATON_FALSE=
  18654. fi
  18655. fi
  18656. done
  18657. for ac_func in localtime_r
  18658. do
  18659. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18660. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18661. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18662. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18663. echo $ECHO_N "(cached) $ECHO_C" >&6
  18664. else
  18665. cat >conftest.$ac_ext <<_ACEOF
  18666. /* confdefs.h. */
  18667. _ACEOF
  18668. cat confdefs.h >>conftest.$ac_ext
  18669. cat >>conftest.$ac_ext <<_ACEOF
  18670. /* end confdefs.h. */
  18671. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18672. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18673. #define $ac_func innocuous_$ac_func
  18674. /* System header to define __stub macros and hopefully few prototypes,
  18675. which can conflict with char $ac_func (); below.
  18676. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18677. <limits.h> exists even on freestanding compilers. */
  18678. #ifdef __STDC__
  18679. # include <limits.h>
  18680. #else
  18681. # include <assert.h>
  18682. #endif
  18683. #undef $ac_func
  18684. /* Override any GCC internal prototype to avoid an error.
  18685. Use char because int might match the return type of a GCC
  18686. builtin and then its argument prototype would still apply. */
  18687. #ifdef __cplusplus
  18688. extern "C"
  18689. #endif
  18690. char $ac_func ();
  18691. /* The GNU C library defines this for functions which it implements
  18692. to always fail with ENOSYS. Some functions are actually named
  18693. something starting with __ and the normal name is an alias. */
  18694. #if defined __stub_$ac_func || defined __stub___$ac_func
  18695. choke me
  18696. #endif
  18697. int
  18698. main ()
  18699. {
  18700. return $ac_func ();
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. rm -f conftest.$ac_objext conftest$ac_exeext
  18706. if { (ac_try="$ac_link"
  18707. case "(($ac_try" in
  18708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18709. *) ac_try_echo=$ac_try;;
  18710. esac
  18711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18712. (eval "$ac_link") 2>conftest.er1
  18713. ac_status=$?
  18714. grep -v '^ *+' conftest.er1 >conftest.err
  18715. rm -f conftest.er1
  18716. cat conftest.err >&5
  18717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. (exit $ac_status); } && {
  18719. test -z "$ac_cxx_werror_flag" ||
  18720. test ! -s conftest.err
  18721. } && test -s conftest$ac_exeext &&
  18722. $as_test_x conftest$ac_exeext; then
  18723. eval "$as_ac_var=yes"
  18724. else
  18725. echo "$as_me: failed program was:" >&5
  18726. sed 's/^/| /' conftest.$ac_ext >&5
  18727. eval "$as_ac_var=no"
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18730. conftest$ac_exeext conftest.$ac_ext
  18731. fi
  18732. ac_res=`eval echo '${'$as_ac_var'}'`
  18733. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18734. echo "${ECHO_T}$ac_res" >&6; }
  18735. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18736. cat >>confdefs.h <<_ACEOF
  18737. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18738. _ACEOF
  18739. if true; then
  18740. HAVE_LOCALTIME_R_TRUE=
  18741. HAVE_LOCALTIME_R_FALSE='#'
  18742. else
  18743. HAVE_LOCALTIME_R_TRUE='#'
  18744. HAVE_LOCALTIME_R_FALSE=
  18745. fi
  18746. else
  18747. if false; then
  18748. HAVE_LOCALTIME_R_TRUE=
  18749. HAVE_LOCALTIME_R_FALSE='#'
  18750. else
  18751. HAVE_LOCALTIME_R_TRUE='#'
  18752. HAVE_LOCALTIME_R_FALSE=
  18753. fi
  18754. fi
  18755. done
  18756. for ac_func in strptime
  18757. do
  18758. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18759. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18760. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18761. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18762. echo $ECHO_N "(cached) $ECHO_C" >&6
  18763. else
  18764. cat >conftest.$ac_ext <<_ACEOF
  18765. /* confdefs.h. */
  18766. _ACEOF
  18767. cat confdefs.h >>conftest.$ac_ext
  18768. cat >>conftest.$ac_ext <<_ACEOF
  18769. /* end confdefs.h. */
  18770. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18771. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18772. #define $ac_func innocuous_$ac_func
  18773. /* System header to define __stub macros and hopefully few prototypes,
  18774. which can conflict with char $ac_func (); below.
  18775. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18776. <limits.h> exists even on freestanding compilers. */
  18777. #ifdef __STDC__
  18778. # include <limits.h>
  18779. #else
  18780. # include <assert.h>
  18781. #endif
  18782. #undef $ac_func
  18783. /* Override any GCC internal prototype to avoid an error.
  18784. Use char because int might match the return type of a GCC
  18785. builtin and then its argument prototype would still apply. */
  18786. #ifdef __cplusplus
  18787. extern "C"
  18788. #endif
  18789. char $ac_func ();
  18790. /* The GNU C library defines this for functions which it implements
  18791. to always fail with ENOSYS. Some functions are actually named
  18792. something starting with __ and the normal name is an alias. */
  18793. #if defined __stub_$ac_func || defined __stub___$ac_func
  18794. choke me
  18795. #endif
  18796. int
  18797. main ()
  18798. {
  18799. return $ac_func ();
  18800. ;
  18801. return 0;
  18802. }
  18803. _ACEOF
  18804. rm -f conftest.$ac_objext conftest$ac_exeext
  18805. if { (ac_try="$ac_link"
  18806. case "(($ac_try" in
  18807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18808. *) ac_try_echo=$ac_try;;
  18809. esac
  18810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18811. (eval "$ac_link") 2>conftest.er1
  18812. ac_status=$?
  18813. grep -v '^ *+' conftest.er1 >conftest.err
  18814. rm -f conftest.er1
  18815. cat conftest.err >&5
  18816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18817. (exit $ac_status); } && {
  18818. test -z "$ac_cxx_werror_flag" ||
  18819. test ! -s conftest.err
  18820. } && test -s conftest$ac_exeext &&
  18821. $as_test_x conftest$ac_exeext; then
  18822. eval "$as_ac_var=yes"
  18823. else
  18824. echo "$as_me: failed program was:" >&5
  18825. sed 's/^/| /' conftest.$ac_ext >&5
  18826. eval "$as_ac_var=no"
  18827. fi
  18828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18829. conftest$ac_exeext conftest.$ac_ext
  18830. fi
  18831. ac_res=`eval echo '${'$as_ac_var'}'`
  18832. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18833. echo "${ECHO_T}$ac_res" >&6; }
  18834. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18835. cat >>confdefs.h <<_ACEOF
  18836. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18837. _ACEOF
  18838. if true; then
  18839. HAVE_STRPTIME_TRUE=
  18840. HAVE_STRPTIME_FALSE='#'
  18841. else
  18842. HAVE_STRPTIME_TRUE='#'
  18843. HAVE_STRPTIME_FALSE=
  18844. fi
  18845. else
  18846. if false; then
  18847. HAVE_STRPTIME_TRUE=
  18848. HAVE_STRPTIME_FALSE='#'
  18849. else
  18850. HAVE_STRPTIME_TRUE='#'
  18851. HAVE_STRPTIME_FALSE=
  18852. fi
  18853. fi
  18854. done
  18855. for ac_func in timegm
  18856. do
  18857. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18858. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18859. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18860. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18861. echo $ECHO_N "(cached) $ECHO_C" >&6
  18862. else
  18863. cat >conftest.$ac_ext <<_ACEOF
  18864. /* confdefs.h. */
  18865. _ACEOF
  18866. cat confdefs.h >>conftest.$ac_ext
  18867. cat >>conftest.$ac_ext <<_ACEOF
  18868. /* end confdefs.h. */
  18869. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18870. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18871. #define $ac_func innocuous_$ac_func
  18872. /* System header to define __stub macros and hopefully few prototypes,
  18873. which can conflict with char $ac_func (); below.
  18874. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18875. <limits.h> exists even on freestanding compilers. */
  18876. #ifdef __STDC__
  18877. # include <limits.h>
  18878. #else
  18879. # include <assert.h>
  18880. #endif
  18881. #undef $ac_func
  18882. /* Override any GCC internal prototype to avoid an error.
  18883. Use char because int might match the return type of a GCC
  18884. builtin and then its argument prototype would still apply. */
  18885. #ifdef __cplusplus
  18886. extern "C"
  18887. #endif
  18888. char $ac_func ();
  18889. /* The GNU C library defines this for functions which it implements
  18890. to always fail with ENOSYS. Some functions are actually named
  18891. something starting with __ and the normal name is an alias. */
  18892. #if defined __stub_$ac_func || defined __stub___$ac_func
  18893. choke me
  18894. #endif
  18895. int
  18896. main ()
  18897. {
  18898. return $ac_func ();
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. rm -f conftest.$ac_objext conftest$ac_exeext
  18904. if { (ac_try="$ac_link"
  18905. case "(($ac_try" in
  18906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18907. *) ac_try_echo=$ac_try;;
  18908. esac
  18909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18910. (eval "$ac_link") 2>conftest.er1
  18911. ac_status=$?
  18912. grep -v '^ *+' conftest.er1 >conftest.err
  18913. rm -f conftest.er1
  18914. cat conftest.err >&5
  18915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18916. (exit $ac_status); } && {
  18917. test -z "$ac_cxx_werror_flag" ||
  18918. test ! -s conftest.err
  18919. } && test -s conftest$ac_exeext &&
  18920. $as_test_x conftest$ac_exeext; then
  18921. eval "$as_ac_var=yes"
  18922. else
  18923. echo "$as_me: failed program was:" >&5
  18924. sed 's/^/| /' conftest.$ac_ext >&5
  18925. eval "$as_ac_var=no"
  18926. fi
  18927. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18928. conftest$ac_exeext conftest.$ac_ext
  18929. fi
  18930. ac_res=`eval echo '${'$as_ac_var'}'`
  18931. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18932. echo "${ECHO_T}$ac_res" >&6; }
  18933. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18934. cat >>confdefs.h <<_ACEOF
  18935. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18936. _ACEOF
  18937. if true; then
  18938. HAVE_TIMEGM_TRUE=
  18939. HAVE_TIMEGM_FALSE='#'
  18940. else
  18941. HAVE_TIMEGM_TRUE='#'
  18942. HAVE_TIMEGM_FALSE=
  18943. fi
  18944. else
  18945. if false; then
  18946. HAVE_TIMEGM_TRUE=
  18947. HAVE_TIMEGM_FALSE='#'
  18948. else
  18949. HAVE_TIMEGM_TRUE='#'
  18950. HAVE_TIMEGM_FALSE=
  18951. fi
  18952. fi
  18953. done
  18954. case "$target" in
  18955. *mingw*)
  18956. if true; then
  18957. HAVE_GETADDRINFO_TRUE=
  18958. HAVE_GETADDRINFO_FALSE='#'
  18959. else
  18960. HAVE_GETADDRINFO_TRUE='#'
  18961. HAVE_GETADDRINFO_FALSE=
  18962. fi
  18963. if false; then
  18964. HAVE_GAI_STRERROR_TRUE=
  18965. HAVE_GAI_STRERROR_FALSE='#'
  18966. else
  18967. HAVE_GAI_STRERROR_TRUE='#'
  18968. HAVE_GAI_STRERROR_FALSE=
  18969. fi
  18970. ;;
  18971. esac
  18972. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18973. cat >confcache <<\_ACEOF
  18974. # This file is a shell script that caches the results of configure
  18975. # tests run on this system so they can be shared between configure
  18976. # scripts and configure runs, see configure's option --config-cache.
  18977. # It is not useful on other systems. If it contains results you don't
  18978. # want to keep, you may remove or edit it.
  18979. #
  18980. # config.status only pays attention to the cache file if you give it
  18981. # the --recheck option to rerun configure.
  18982. #
  18983. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18984. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18985. # following values.
  18986. _ACEOF
  18987. # The following way of writing the cache mishandles newlines in values,
  18988. # but we know of no workaround that is simple, portable, and efficient.
  18989. # So, we kill variables containing newlines.
  18990. # Ultrix sh set writes to stderr and can't be redirected directly,
  18991. # and sets the high bit in the cache file unless we assign to the vars.
  18992. (
  18993. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18994. eval ac_val=\$$ac_var
  18995. case $ac_val in #(
  18996. *${as_nl}*)
  18997. case $ac_var in #(
  18998. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18999. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19000. esac
  19001. case $ac_var in #(
  19002. _ | IFS | as_nl) ;; #(
  19003. *) $as_unset $ac_var ;;
  19004. esac ;;
  19005. esac
  19006. done
  19007. (set) 2>&1 |
  19008. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19009. *${as_nl}ac_space=\ *)
  19010. # `set' does not quote correctly, so add quotes (double-quote
  19011. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19012. sed -n \
  19013. "s/'/'\\\\''/g;
  19014. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19015. ;; #(
  19016. *)
  19017. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19018. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19019. ;;
  19020. esac |
  19021. sort
  19022. ) |
  19023. sed '
  19024. /^ac_cv_env_/b end
  19025. t clear
  19026. :clear
  19027. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19028. t end
  19029. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19030. :end' >>confcache
  19031. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19032. if test -w "$cache_file"; then
  19033. test "x$cache_file" != "x/dev/null" &&
  19034. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19035. echo "$as_me: updating cache $cache_file" >&6;}
  19036. cat confcache >$cache_file
  19037. else
  19038. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19039. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19040. fi
  19041. fi
  19042. rm -f confcache
  19043. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19044. # Let make expand exec_prefix.
  19045. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19046. DEFS=-DHAVE_CONFIG_H
  19047. ac_libobjs=
  19048. ac_ltlibobjs=
  19049. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19050. # 1. Remove the extension, and $U if already installed.
  19051. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19052. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19053. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19054. # will be set to the directory where LIBOBJS objects are built.
  19055. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19056. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19057. done
  19058. LIBOBJS=$ac_libobjs
  19059. LTLIBOBJS=$ac_ltlibobjs
  19060. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19061. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19062. Usually this means the macro was only invoked conditionally." >&5
  19063. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19064. Usually this means the macro was only invoked conditionally." >&2;}
  19065. { (exit 1); exit 1; }; }
  19066. fi
  19067. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19068. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19069. Usually this means the macro was only invoked conditionally." >&5
  19070. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19071. Usually this means the macro was only invoked conditionally." >&2;}
  19072. { (exit 1); exit 1; }; }
  19073. fi
  19074. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19075. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19076. Usually this means the macro was only invoked conditionally." >&5
  19077. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19078. Usually this means the macro was only invoked conditionally." >&2;}
  19079. { (exit 1); exit 1; }; }
  19080. fi
  19081. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19082. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19083. Usually this means the macro was only invoked conditionally." >&5
  19084. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19085. Usually this means the macro was only invoked conditionally." >&2;}
  19086. { (exit 1); exit 1; }; }
  19087. fi
  19088. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19089. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19090. Usually this means the macro was only invoked conditionally." >&5
  19091. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19092. Usually this means the macro was only invoked conditionally." >&2;}
  19093. { (exit 1); exit 1; }; }
  19094. fi
  19095. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19096. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19097. Usually this means the macro was only invoked conditionally." >&5
  19098. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19099. Usually this means the macro was only invoked conditionally." >&2;}
  19100. { (exit 1); exit 1; }; }
  19101. fi
  19102. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19103. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19104. Usually this means the macro was only invoked conditionally." >&5
  19105. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19106. Usually this means the macro was only invoked conditionally." >&2;}
  19107. { (exit 1); exit 1; }; }
  19108. fi
  19109. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19110. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19111. Usually this means the macro was only invoked conditionally." >&5
  19112. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19113. Usually this means the macro was only invoked conditionally." >&2;}
  19114. { (exit 1); exit 1; }; }
  19115. fi
  19116. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19117. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19118. Usually this means the macro was only invoked conditionally." >&5
  19119. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19120. Usually this means the macro was only invoked conditionally." >&2;}
  19121. { (exit 1); exit 1; }; }
  19122. fi
  19123. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19124. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19125. Usually this means the macro was only invoked conditionally." >&5
  19126. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19127. Usually this means the macro was only invoked conditionally." >&2;}
  19128. { (exit 1); exit 1; }; }
  19129. fi
  19130. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19131. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19132. Usually this means the macro was only invoked conditionally." >&5
  19133. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19134. Usually this means the macro was only invoked conditionally." >&2;}
  19135. { (exit 1); exit 1; }; }
  19136. fi
  19137. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19138. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19139. Usually this means the macro was only invoked conditionally." >&5
  19140. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19141. Usually this means the macro was only invoked conditionally." >&2;}
  19142. { (exit 1); exit 1; }; }
  19143. fi
  19144. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19145. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19146. Usually this means the macro was only invoked conditionally." >&5
  19147. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19148. Usually this means the macro was only invoked conditionally." >&2;}
  19149. { (exit 1); exit 1; }; }
  19150. fi
  19151. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19152. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19153. Usually this means the macro was only invoked conditionally." >&5
  19154. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19155. Usually this means the macro was only invoked conditionally." >&2;}
  19156. { (exit 1); exit 1; }; }
  19157. fi
  19158. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19159. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19160. Usually this means the macro was only invoked conditionally." >&5
  19161. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19162. Usually this means the macro was only invoked conditionally." >&2;}
  19163. { (exit 1); exit 1; }; }
  19164. fi
  19165. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19166. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19167. Usually this means the macro was only invoked conditionally." >&5
  19168. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19169. Usually this means the macro was only invoked conditionally." >&2;}
  19170. { (exit 1); exit 1; }; }
  19171. fi
  19172. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19173. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19174. Usually this means the macro was only invoked conditionally." >&5
  19175. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19176. Usually this means the macro was only invoked conditionally." >&2;}
  19177. { (exit 1); exit 1; }; }
  19178. fi
  19179. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19180. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19181. Usually this means the macro was only invoked conditionally." >&5
  19182. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19183. Usually this means the macro was only invoked conditionally." >&2;}
  19184. { (exit 1); exit 1; }; }
  19185. fi
  19186. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19187. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19188. Usually this means the macro was only invoked conditionally." >&5
  19189. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19190. Usually this means the macro was only invoked conditionally." >&2;}
  19191. { (exit 1); exit 1; }; }
  19192. fi
  19193. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19194. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19195. Usually this means the macro was only invoked conditionally." >&5
  19196. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19197. Usually this means the macro was only invoked conditionally." >&2;}
  19198. { (exit 1); exit 1; }; }
  19199. fi
  19200. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19201. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19202. Usually this means the macro was only invoked conditionally." >&5
  19203. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19204. Usually this means the macro was only invoked conditionally." >&2;}
  19205. { (exit 1); exit 1; }; }
  19206. fi
  19207. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19208. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19209. Usually this means the macro was only invoked conditionally." >&5
  19210. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19211. Usually this means the macro was only invoked conditionally." >&2;}
  19212. { (exit 1); exit 1; }; }
  19213. fi
  19214. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19215. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19216. Usually this means the macro was only invoked conditionally." >&5
  19217. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19218. Usually this means the macro was only invoked conditionally." >&2;}
  19219. { (exit 1); exit 1; }; }
  19220. fi
  19221. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19222. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19223. Usually this means the macro was only invoked conditionally." >&5
  19224. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19225. Usually this means the macro was only invoked conditionally." >&2;}
  19226. { (exit 1); exit 1; }; }
  19227. fi
  19228. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19229. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19230. Usually this means the macro was only invoked conditionally." >&5
  19231. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19232. Usually this means the macro was only invoked conditionally." >&2;}
  19233. { (exit 1); exit 1; }; }
  19234. fi
  19235. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19236. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19237. Usually this means the macro was only invoked conditionally." >&5
  19238. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19239. Usually this means the macro was only invoked conditionally." >&2;}
  19240. { (exit 1); exit 1; }; }
  19241. fi
  19242. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19243. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19244. Usually this means the macro was only invoked conditionally." >&5
  19245. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19246. Usually this means the macro was only invoked conditionally." >&2;}
  19247. { (exit 1); exit 1; }; }
  19248. fi
  19249. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19250. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19251. Usually this means the macro was only invoked conditionally." >&5
  19252. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19253. Usually this means the macro was only invoked conditionally." >&2;}
  19254. { (exit 1); exit 1; }; }
  19255. fi
  19256. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19257. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19258. Usually this means the macro was only invoked conditionally." >&5
  19259. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19260. Usually this means the macro was only invoked conditionally." >&2;}
  19261. { (exit 1); exit 1; }; }
  19262. fi
  19263. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19264. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19265. Usually this means the macro was only invoked conditionally." >&5
  19266. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19267. Usually this means the macro was only invoked conditionally." >&2;}
  19268. { (exit 1); exit 1; }; }
  19269. fi
  19270. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19271. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19272. Usually this means the macro was only invoked conditionally." >&5
  19273. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19274. Usually this means the macro was only invoked conditionally." >&2;}
  19275. { (exit 1); exit 1; }; }
  19276. fi
  19277. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19278. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19279. Usually this means the macro was only invoked conditionally." >&5
  19280. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19281. Usually this means the macro was only invoked conditionally." >&2;}
  19282. { (exit 1); exit 1; }; }
  19283. fi
  19284. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19285. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19286. Usually this means the macro was only invoked conditionally." >&5
  19287. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19288. Usually this means the macro was only invoked conditionally." >&2;}
  19289. { (exit 1); exit 1; }; }
  19290. fi
  19291. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19292. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19293. Usually this means the macro was only invoked conditionally." >&5
  19294. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19295. Usually this means the macro was only invoked conditionally." >&2;}
  19296. { (exit 1); exit 1; }; }
  19297. fi
  19298. : ${CONFIG_STATUS=./config.status}
  19299. ac_clean_files_save=$ac_clean_files
  19300. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19301. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19302. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19303. cat >$CONFIG_STATUS <<_ACEOF
  19304. #! $SHELL
  19305. # Generated by $as_me.
  19306. # Run this file to recreate the current configuration.
  19307. # Compiler output produced by configure, useful for debugging
  19308. # configure, is in config.log if it exists.
  19309. debug=false
  19310. ac_cs_recheck=false
  19311. ac_cs_silent=false
  19312. SHELL=\${CONFIG_SHELL-$SHELL}
  19313. _ACEOF
  19314. cat >>$CONFIG_STATUS <<\_ACEOF
  19315. ## --------------------- ##
  19316. ## M4sh Initialization. ##
  19317. ## --------------------- ##
  19318. # Be more Bourne compatible
  19319. DUALCASE=1; export DUALCASE # for MKS sh
  19320. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19321. emulate sh
  19322. NULLCMD=:
  19323. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19324. # is contrary to our usage. Disable this feature.
  19325. alias -g '${1+"$@"}'='"$@"'
  19326. setopt NO_GLOB_SUBST
  19327. else
  19328. case `(set -o) 2>/dev/null` in
  19329. *posix*) set -o posix ;;
  19330. esac
  19331. fi
  19332. # PATH needs CR
  19333. # Avoid depending upon Character Ranges.
  19334. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19335. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19336. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19337. as_cr_digits='0123456789'
  19338. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19339. # The user is always right.
  19340. if test "${PATH_SEPARATOR+set}" != set; then
  19341. echo "#! /bin/sh" >conf$$.sh
  19342. echo "exit 0" >>conf$$.sh
  19343. chmod +x conf$$.sh
  19344. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19345. PATH_SEPARATOR=';'
  19346. else
  19347. PATH_SEPARATOR=:
  19348. fi
  19349. rm -f conf$$.sh
  19350. fi
  19351. # Support unset when possible.
  19352. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19353. as_unset=unset
  19354. else
  19355. as_unset=false
  19356. fi
  19357. # IFS
  19358. # We need space, tab and new line, in precisely that order. Quoting is
  19359. # there to prevent editors from complaining about space-tab.
  19360. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19361. # splitting by setting IFS to empty value.)
  19362. as_nl='
  19363. '
  19364. IFS=" "" $as_nl"
  19365. # Find who we are. Look in the path if we contain no directory separator.
  19366. case $0 in
  19367. *[\\/]* ) as_myself=$0 ;;
  19368. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19369. for as_dir in $PATH
  19370. do
  19371. IFS=$as_save_IFS
  19372. test -z "$as_dir" && as_dir=.
  19373. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19374. done
  19375. IFS=$as_save_IFS
  19376. ;;
  19377. esac
  19378. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19379. # in which case we are not to be found in the path.
  19380. if test "x$as_myself" = x; then
  19381. as_myself=$0
  19382. fi
  19383. if test ! -f "$as_myself"; then
  19384. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19385. { (exit 1); exit 1; }
  19386. fi
  19387. # Work around bugs in pre-3.0 UWIN ksh.
  19388. for as_var in ENV MAIL MAILPATH
  19389. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19390. done
  19391. PS1='$ '
  19392. PS2='> '
  19393. PS4='+ '
  19394. # NLS nuisances.
  19395. for as_var in \
  19396. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19397. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19398. LC_TELEPHONE LC_TIME
  19399. do
  19400. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19401. eval $as_var=C; export $as_var
  19402. else
  19403. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19404. fi
  19405. done
  19406. # Required to use basename.
  19407. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19408. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19409. as_expr=expr
  19410. else
  19411. as_expr=false
  19412. fi
  19413. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19414. as_basename=basename
  19415. else
  19416. as_basename=false
  19417. fi
  19418. # Name of the executable.
  19419. as_me=`$as_basename -- "$0" ||
  19420. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19421. X"$0" : 'X\(//\)$' \| \
  19422. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19423. echo X/"$0" |
  19424. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19425. s//\1/
  19426. q
  19427. }
  19428. /^X\/\(\/\/\)$/{
  19429. s//\1/
  19430. q
  19431. }
  19432. /^X\/\(\/\).*/{
  19433. s//\1/
  19434. q
  19435. }
  19436. s/.*/./; q'`
  19437. # CDPATH.
  19438. $as_unset CDPATH
  19439. as_lineno_1=$LINENO
  19440. as_lineno_2=$LINENO
  19441. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19442. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19443. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19444. # uniformly replaced by the line number. The first 'sed' inserts a
  19445. # line-number line after each line using $LINENO; the second 'sed'
  19446. # does the real work. The second script uses 'N' to pair each
  19447. # line-number line with the line containing $LINENO, and appends
  19448. # trailing '-' during substitution so that $LINENO is not a special
  19449. # case at line end.
  19450. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19451. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19452. # E. McMahon (1931-1989) for sed's syntax. :-)
  19453. sed -n '
  19454. p
  19455. /[$]LINENO/=
  19456. ' <$as_myself |
  19457. sed '
  19458. s/[$]LINENO.*/&-/
  19459. t lineno
  19460. b
  19461. :lineno
  19462. N
  19463. :loop
  19464. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19465. t loop
  19466. s/-\n.*//
  19467. ' >$as_me.lineno &&
  19468. chmod +x "$as_me.lineno" ||
  19469. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19470. { (exit 1); exit 1; }; }
  19471. # Don't try to exec as it changes $[0], causing all sort of problems
  19472. # (the dirname of $[0] is not the place where we might find the
  19473. # original and so on. Autoconf is especially sensitive to this).
  19474. . "./$as_me.lineno"
  19475. # Exit status is that of the last command.
  19476. exit
  19477. }
  19478. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19479. as_dirname=dirname
  19480. else
  19481. as_dirname=false
  19482. fi
  19483. ECHO_C= ECHO_N= ECHO_T=
  19484. case `echo -n x` in
  19485. -n*)
  19486. case `echo 'x\c'` in
  19487. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19488. *) ECHO_C='\c';;
  19489. esac;;
  19490. *)
  19491. ECHO_N='-n';;
  19492. esac
  19493. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19494. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19495. as_expr=expr
  19496. else
  19497. as_expr=false
  19498. fi
  19499. rm -f conf$$ conf$$.exe conf$$.file
  19500. if test -d conf$$.dir; then
  19501. rm -f conf$$.dir/conf$$.file
  19502. else
  19503. rm -f conf$$.dir
  19504. mkdir conf$$.dir
  19505. fi
  19506. echo >conf$$.file
  19507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19508. as_ln_s='ln -s'
  19509. # ... but there are two gotchas:
  19510. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19511. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19512. # In both cases, we have to default to `cp -p'.
  19513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19514. as_ln_s='cp -p'
  19515. elif ln conf$$.file conf$$ 2>/dev/null; then
  19516. as_ln_s=ln
  19517. else
  19518. as_ln_s='cp -p'
  19519. fi
  19520. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19521. rmdir conf$$.dir 2>/dev/null
  19522. if mkdir -p . 2>/dev/null; then
  19523. as_mkdir_p=:
  19524. else
  19525. test -d ./-p && rmdir ./-p
  19526. as_mkdir_p=false
  19527. fi
  19528. if test -x / >/dev/null 2>&1; then
  19529. as_test_x='test -x'
  19530. else
  19531. if ls -dL / >/dev/null 2>&1; then
  19532. as_ls_L_option=L
  19533. else
  19534. as_ls_L_option=
  19535. fi
  19536. as_test_x='
  19537. eval sh -c '\''
  19538. if test -d "$1"; then
  19539. test -d "$1/.";
  19540. else
  19541. case $1 in
  19542. -*)set "./$1";;
  19543. esac;
  19544. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19545. ???[sx]*):;;*)false;;esac;fi
  19546. '\'' sh
  19547. '
  19548. fi
  19549. as_executable_p=$as_test_x
  19550. # Sed expression to map a string onto a valid CPP name.
  19551. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19552. # Sed expression to map a string onto a valid variable name.
  19553. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19554. exec 6>&1
  19555. # Save the log message, to keep $[0] and so on meaningful, and to
  19556. # report actual input values of CONFIG_FILES etc. instead of their
  19557. # values after options handling.
  19558. ac_log="
  19559. This file was extended by aria2c $as_me 0.15.2, which was
  19560. generated by GNU Autoconf 2.61. Invocation command line was
  19561. CONFIG_FILES = $CONFIG_FILES
  19562. CONFIG_HEADERS = $CONFIG_HEADERS
  19563. CONFIG_LINKS = $CONFIG_LINKS
  19564. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19565. $ $0 $@
  19566. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19567. "
  19568. _ACEOF
  19569. cat >>$CONFIG_STATUS <<_ACEOF
  19570. # Files that config.status was made for.
  19571. config_files="$ac_config_files"
  19572. config_headers="$ac_config_headers"
  19573. config_commands="$ac_config_commands"
  19574. _ACEOF
  19575. cat >>$CONFIG_STATUS <<\_ACEOF
  19576. ac_cs_usage="\
  19577. \`$as_me' instantiates files from templates according to the
  19578. current configuration.
  19579. Usage: $0 [OPTIONS] [FILE]...
  19580. -h, --help print this help, then exit
  19581. -V, --version print version number and configuration settings, then exit
  19582. -q, --quiet do not print progress messages
  19583. -d, --debug don't remove temporary files
  19584. --recheck update $as_me by reconfiguring in the same conditions
  19585. --file=FILE[:TEMPLATE]
  19586. instantiate the configuration file FILE
  19587. --header=FILE[:TEMPLATE]
  19588. instantiate the configuration header FILE
  19589. Configuration files:
  19590. $config_files
  19591. Configuration headers:
  19592. $config_headers
  19593. Configuration commands:
  19594. $config_commands
  19595. Report bugs to <bug-autoconf@gnu.org>."
  19596. _ACEOF
  19597. cat >>$CONFIG_STATUS <<_ACEOF
  19598. ac_cs_version="\\
  19599. aria2c config.status 0.15.2
  19600. configured by $0, generated by GNU Autoconf 2.61,
  19601. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19602. Copyright (C) 2006 Free Software Foundation, Inc.
  19603. This config.status script is free software; the Free Software Foundation
  19604. gives unlimited permission to copy, distribute and modify it."
  19605. ac_pwd='$ac_pwd'
  19606. srcdir='$srcdir'
  19607. INSTALL='$INSTALL'
  19608. MKDIR_P='$MKDIR_P'
  19609. _ACEOF
  19610. cat >>$CONFIG_STATUS <<\_ACEOF
  19611. # If no file are specified by the user, then we need to provide default
  19612. # value. By we need to know if files were specified by the user.
  19613. ac_need_defaults=:
  19614. while test $# != 0
  19615. do
  19616. case $1 in
  19617. --*=*)
  19618. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19619. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19620. ac_shift=:
  19621. ;;
  19622. *)
  19623. ac_option=$1
  19624. ac_optarg=$2
  19625. ac_shift=shift
  19626. ;;
  19627. esac
  19628. case $ac_option in
  19629. # Handling of the options.
  19630. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19631. ac_cs_recheck=: ;;
  19632. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19633. echo "$ac_cs_version"; exit ;;
  19634. --debug | --debu | --deb | --de | --d | -d )
  19635. debug=: ;;
  19636. --file | --fil | --fi | --f )
  19637. $ac_shift
  19638. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19639. ac_need_defaults=false;;
  19640. --header | --heade | --head | --hea )
  19641. $ac_shift
  19642. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19643. ac_need_defaults=false;;
  19644. --he | --h)
  19645. # Conflict between --help and --header
  19646. { echo "$as_me: error: ambiguous option: $1
  19647. Try \`$0 --help' for more information." >&2
  19648. { (exit 1); exit 1; }; };;
  19649. --help | --hel | -h )
  19650. echo "$ac_cs_usage"; exit ;;
  19651. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19652. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19653. ac_cs_silent=: ;;
  19654. # This is an error.
  19655. -*) { echo "$as_me: error: unrecognized option: $1
  19656. Try \`$0 --help' for more information." >&2
  19657. { (exit 1); exit 1; }; } ;;
  19658. *) ac_config_targets="$ac_config_targets $1"
  19659. ac_need_defaults=false ;;
  19660. esac
  19661. shift
  19662. done
  19663. ac_configure_extra_args=
  19664. if $ac_cs_silent; then
  19665. exec 6>/dev/null
  19666. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19667. fi
  19668. _ACEOF
  19669. cat >>$CONFIG_STATUS <<_ACEOF
  19670. if \$ac_cs_recheck; then
  19671. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19672. CONFIG_SHELL=$SHELL
  19673. export CONFIG_SHELL
  19674. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19675. fi
  19676. _ACEOF
  19677. cat >>$CONFIG_STATUS <<\_ACEOF
  19678. exec 5>>config.log
  19679. {
  19680. echo
  19681. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19682. ## Running $as_me. ##
  19683. _ASBOX
  19684. echo "$ac_log"
  19685. } >&5
  19686. _ACEOF
  19687. cat >>$CONFIG_STATUS <<_ACEOF
  19688. #
  19689. # INIT-COMMANDS
  19690. #
  19691. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19692. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19693. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19694. # from automake < 1.5.
  19695. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19696. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19697. LINGUAS="${LINGUAS-%UNSET%}"
  19698. _ACEOF
  19699. cat >>$CONFIG_STATUS <<\_ACEOF
  19700. # Handling of arguments.
  19701. for ac_config_target in $ac_config_targets
  19702. do
  19703. case $ac_config_target in
  19704. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19705. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19706. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19707. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19708. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19709. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19710. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19711. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19712. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19713. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19714. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19715. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19716. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19717. { (exit 1); exit 1; }; };;
  19718. esac
  19719. done
  19720. # If the user did not use the arguments to specify the items to instantiate,
  19721. # then the envvar interface is used. Set only those that are not.
  19722. # We use the long form for the default assignment because of an extremely
  19723. # bizarre bug on SunOS 4.1.3.
  19724. if $ac_need_defaults; then
  19725. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19726. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19727. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19728. fi
  19729. # Have a temporary directory for convenience. Make it in the build tree
  19730. # simply because there is no reason against having it here, and in addition,
  19731. # creating and moving files from /tmp can sometimes cause problems.
  19732. # Hook for its removal unless debugging.
  19733. # Note that there is a small window in which the directory will not be cleaned:
  19734. # after its creation but before its name has been assigned to `$tmp'.
  19735. $debug ||
  19736. {
  19737. tmp=
  19738. trap 'exit_status=$?
  19739. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19740. ' 0
  19741. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19742. }
  19743. # Create a (secure) tmp directory for tmp files.
  19744. {
  19745. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19746. test -n "$tmp" && test -d "$tmp"
  19747. } ||
  19748. {
  19749. tmp=./conf$$-$RANDOM
  19750. (umask 077 && mkdir "$tmp")
  19751. } ||
  19752. {
  19753. echo "$me: cannot create a temporary directory in ." >&2
  19754. { (exit 1); exit 1; }
  19755. }
  19756. #
  19757. # Set up the sed scripts for CONFIG_FILES section.
  19758. #
  19759. # No need to generate the scripts if there are no CONFIG_FILES.
  19760. # This happens for instance when ./config.status config.h
  19761. if test -n "$CONFIG_FILES"; then
  19762. _ACEOF
  19763. ac_delim='%!_!# '
  19764. for ac_last_try in false false false false false :; do
  19765. cat >conf$$subs.sed <<_ACEOF
  19766. SHELL!$SHELL$ac_delim
  19767. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19768. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19769. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19770. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19771. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19772. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19773. exec_prefix!$exec_prefix$ac_delim
  19774. prefix!$prefix$ac_delim
  19775. program_transform_name!$program_transform_name$ac_delim
  19776. bindir!$bindir$ac_delim
  19777. sbindir!$sbindir$ac_delim
  19778. libexecdir!$libexecdir$ac_delim
  19779. datarootdir!$datarootdir$ac_delim
  19780. datadir!$datadir$ac_delim
  19781. sysconfdir!$sysconfdir$ac_delim
  19782. sharedstatedir!$sharedstatedir$ac_delim
  19783. localstatedir!$localstatedir$ac_delim
  19784. includedir!$includedir$ac_delim
  19785. oldincludedir!$oldincludedir$ac_delim
  19786. docdir!$docdir$ac_delim
  19787. infodir!$infodir$ac_delim
  19788. htmldir!$htmldir$ac_delim
  19789. dvidir!$dvidir$ac_delim
  19790. pdfdir!$pdfdir$ac_delim
  19791. psdir!$psdir$ac_delim
  19792. libdir!$libdir$ac_delim
  19793. localedir!$localedir$ac_delim
  19794. mandir!$mandir$ac_delim
  19795. DEFS!$DEFS$ac_delim
  19796. ECHO_C!$ECHO_C$ac_delim
  19797. ECHO_N!$ECHO_N$ac_delim
  19798. ECHO_T!$ECHO_T$ac_delim
  19799. LIBS!$LIBS$ac_delim
  19800. build_alias!$build_alias$ac_delim
  19801. host_alias!$host_alias$ac_delim
  19802. target_alias!$target_alias$ac_delim
  19803. build!$build$ac_delim
  19804. build_cpu!$build_cpu$ac_delim
  19805. build_vendor!$build_vendor$ac_delim
  19806. build_os!$build_os$ac_delim
  19807. host!$host$ac_delim
  19808. host_cpu!$host_cpu$ac_delim
  19809. host_vendor!$host_vendor$ac_delim
  19810. host_os!$host_os$ac_delim
  19811. target!$target$ac_delim
  19812. target_cpu!$target_cpu$ac_delim
  19813. target_vendor!$target_vendor$ac_delim
  19814. target_os!$target_os$ac_delim
  19815. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19816. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19817. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19818. am__isrc!$am__isrc$ac_delim
  19819. CYGPATH_W!$CYGPATH_W$ac_delim
  19820. PACKAGE!$PACKAGE$ac_delim
  19821. VERSION!$VERSION$ac_delim
  19822. ACLOCAL!$ACLOCAL$ac_delim
  19823. AUTOCONF!$AUTOCONF$ac_delim
  19824. AUTOMAKE!$AUTOMAKE$ac_delim
  19825. AUTOHEADER!$AUTOHEADER$ac_delim
  19826. MAKEINFO!$MAKEINFO$ac_delim
  19827. install_sh!$install_sh$ac_delim
  19828. STRIP!$STRIP$ac_delim
  19829. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19830. mkdir_p!$mkdir_p$ac_delim
  19831. AWK!$AWK$ac_delim
  19832. SET_MAKE!$SET_MAKE$ac_delim
  19833. am__leading_dot!$am__leading_dot$ac_delim
  19834. AMTAR!$AMTAR$ac_delim
  19835. am__tar!$am__tar$ac_delim
  19836. am__untar!$am__untar$ac_delim
  19837. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19838. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19839. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19840. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19841. CXX!$CXX$ac_delim
  19842. CXXFLAGS!$CXXFLAGS$ac_delim
  19843. LDFLAGS!$LDFLAGS$ac_delim
  19844. CPPFLAGS!$CPPFLAGS$ac_delim
  19845. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19846. EXEEXT!$EXEEXT$ac_delim
  19847. OBJEXT!$OBJEXT$ac_delim
  19848. DEPDIR!$DEPDIR$ac_delim
  19849. am__include!$am__include$ac_delim
  19850. am__quote!$am__quote$ac_delim
  19851. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19852. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19853. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19854. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19855. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19856. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19857. CC!$CC$ac_delim
  19858. CFLAGS!$CFLAGS$ac_delim
  19859. ac_ct_CC!$ac_ct_CC$ac_delim
  19860. CCDEPMODE!$CCDEPMODE$ac_delim
  19861. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19862. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19863. _ACEOF
  19864. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19865. break
  19866. elif $ac_last_try; then
  19867. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19868. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19869. { (exit 1); exit 1; }; }
  19870. else
  19871. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19872. fi
  19873. done
  19874. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19875. if test -n "$ac_eof"; then
  19876. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19877. ac_eof=`expr $ac_eof + 1`
  19878. fi
  19879. cat >>$CONFIG_STATUS <<_ACEOF
  19880. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19881. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19882. _ACEOF
  19883. sed '
  19884. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19885. s/^/s,@/; s/!/@,|#_!!_#|/
  19886. :n
  19887. t n
  19888. s/'"$ac_delim"'$/,g/; t
  19889. s/$/\\/; p
  19890. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19891. ' >>$CONFIG_STATUS <conf$$subs.sed
  19892. rm -f conf$$subs.sed
  19893. cat >>$CONFIG_STATUS <<_ACEOF
  19894. CEOF$ac_eof
  19895. _ACEOF
  19896. ac_delim='%!_!# '
  19897. for ac_last_try in false false false false false :; do
  19898. cat >conf$$subs.sed <<_ACEOF
  19899. RANLIB!$RANLIB$ac_delim
  19900. YACC!$YACC$ac_delim
  19901. YFLAGS!$YFLAGS$ac_delim
  19902. CXXCPP!$CXXCPP$ac_delim
  19903. GREP!$GREP$ac_delim
  19904. EGREP!$EGREP$ac_delim
  19905. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19906. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19907. XML_LIBS!$XML_LIBS$ac_delim
  19908. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19909. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19910. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19911. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19912. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19913. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19914. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19915. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19916. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19917. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19918. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19919. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19920. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19921. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19922. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  19923. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  19924. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19925. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19926. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19927. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19928. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19929. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19930. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19931. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19932. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19933. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19934. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19935. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19936. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  19937. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  19938. ALLOCA!$ALLOCA$ac_delim
  19939. USE_NLS!$USE_NLS$ac_delim
  19940. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19941. MSGFMT!$MSGFMT$ac_delim
  19942. GMSGFMT!$GMSGFMT$ac_delim
  19943. MSGFMT_015!$MSGFMT_015$ac_delim
  19944. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19945. XGETTEXT!$XGETTEXT$ac_delim
  19946. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19947. MSGMERGE!$MSGMERGE$ac_delim
  19948. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19949. GLIBC2!$GLIBC2$ac_delim
  19950. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19951. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19952. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19953. LIBPTH!$LIBPTH$ac_delim
  19954. LTLIBPTH!$LTLIBPTH$ac_delim
  19955. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19956. LIBTHREAD!$LIBTHREAD$ac_delim
  19957. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19958. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19959. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19960. LIBICONV!$LIBICONV$ac_delim
  19961. LTLIBICONV!$LTLIBICONV$ac_delim
  19962. INTLBISON!$INTLBISON$ac_delim
  19963. GLIBC21!$GLIBC21$ac_delim
  19964. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19965. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19966. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19967. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19968. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19969. WOE32DLL!$WOE32DLL$ac_delim
  19970. WOE32!$WOE32$ac_delim
  19971. WINDRES!$WINDRES$ac_delim
  19972. LTLIBC!$LTLIBC$ac_delim
  19973. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19974. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19975. CATOBJEXT!$CATOBJEXT$ac_delim
  19976. DATADIRNAME!$DATADIRNAME$ac_delim
  19977. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19978. GENCAT!$GENCAT$ac_delim
  19979. INTLOBJS!$INTLOBJS$ac_delim
  19980. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19981. INTLLIBS!$INTLLIBS$ac_delim
  19982. LIBINTL!$LIBINTL$ac_delim
  19983. LTLIBINTL!$LTLIBINTL$ac_delim
  19984. POSUB!$POSUB$ac_delim
  19985. LIBOBJS!$LIBOBJS$ac_delim
  19986. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  19987. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  19988. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19989. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19990. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19991. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19992. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19993. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19994. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19995. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19996. _ACEOF
  19997. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19998. break
  19999. elif $ac_last_try; then
  20000. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20001. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20002. { (exit 1); exit 1; }; }
  20003. else
  20004. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20005. fi
  20006. done
  20007. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20008. if test -n "$ac_eof"; then
  20009. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20010. ac_eof=`expr $ac_eof + 1`
  20011. fi
  20012. cat >>$CONFIG_STATUS <<_ACEOF
  20013. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20014. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20015. _ACEOF
  20016. sed '
  20017. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20018. s/^/s,@/; s/!/@,|#_!!_#|/
  20019. :n
  20020. t n
  20021. s/'"$ac_delim"'$/,g/; t
  20022. s/$/\\/; p
  20023. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20024. ' >>$CONFIG_STATUS <conf$$subs.sed
  20025. rm -f conf$$subs.sed
  20026. cat >>$CONFIG_STATUS <<_ACEOF
  20027. CEOF$ac_eof
  20028. _ACEOF
  20029. ac_delim='%!_!# '
  20030. for ac_last_try in false false false false false :; do
  20031. cat >conf$$subs.sed <<_ACEOF
  20032. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20033. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20034. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20035. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20036. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20037. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20038. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20039. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20040. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20041. _ACEOF
  20042. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
  20043. break
  20044. elif $ac_last_try; then
  20045. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20046. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20047. { (exit 1); exit 1; }; }
  20048. else
  20049. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20050. fi
  20051. done
  20052. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20053. if test -n "$ac_eof"; then
  20054. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20055. ac_eof=`expr $ac_eof + 1`
  20056. fi
  20057. cat >>$CONFIG_STATUS <<_ACEOF
  20058. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20059. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20060. _ACEOF
  20061. sed '
  20062. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20063. s/^/s,@/; s/!/@,|#_!!_#|/
  20064. :n
  20065. t n
  20066. s/'"$ac_delim"'$/,g/; t
  20067. s/$/\\/; p
  20068. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20069. ' >>$CONFIG_STATUS <conf$$subs.sed
  20070. rm -f conf$$subs.sed
  20071. cat >>$CONFIG_STATUS <<_ACEOF
  20072. :end
  20073. s/|#_!!_#|//g
  20074. CEOF$ac_eof
  20075. _ACEOF
  20076. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20077. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20078. # trailing colons and then remove the whole line if VPATH becomes empty
  20079. # (actually we leave an empty line to preserve line numbers).
  20080. if test "x$srcdir" = x.; then
  20081. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20082. s/:*\$(srcdir):*/:/
  20083. s/:*\${srcdir}:*/:/
  20084. s/:*@srcdir@:*/:/
  20085. s/^\([^=]*=[ ]*\):*/\1/
  20086. s/:*$//
  20087. s/^[^=]*=[ ]*$//
  20088. }'
  20089. fi
  20090. cat >>$CONFIG_STATUS <<\_ACEOF
  20091. fi # test -n "$CONFIG_FILES"
  20092. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20093. do
  20094. case $ac_tag in
  20095. :[FHLC]) ac_mode=$ac_tag; continue;;
  20096. esac
  20097. case $ac_mode$ac_tag in
  20098. :[FHL]*:*);;
  20099. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20100. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20101. { (exit 1); exit 1; }; };;
  20102. :[FH]-) ac_tag=-:-;;
  20103. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20104. esac
  20105. ac_save_IFS=$IFS
  20106. IFS=:
  20107. set x $ac_tag
  20108. IFS=$ac_save_IFS
  20109. shift
  20110. ac_file=$1
  20111. shift
  20112. case $ac_mode in
  20113. :L) ac_source=$1;;
  20114. :[FH])
  20115. ac_file_inputs=
  20116. for ac_f
  20117. do
  20118. case $ac_f in
  20119. -) ac_f="$tmp/stdin";;
  20120. *) # Look for the file first in the build tree, then in the source tree
  20121. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20122. # because $ac_f cannot contain `:'.
  20123. test -f "$ac_f" ||
  20124. case $ac_f in
  20125. [\\/$]*) false;;
  20126. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20127. esac ||
  20128. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20129. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20130. { (exit 1); exit 1; }; };;
  20131. esac
  20132. ac_file_inputs="$ac_file_inputs $ac_f"
  20133. done
  20134. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20135. # use $as_me), people would be surprised to read:
  20136. # /* config.h. Generated by config.status. */
  20137. configure_input="Generated from "`IFS=:
  20138. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20139. if test x"$ac_file" != x-; then
  20140. configure_input="$ac_file. $configure_input"
  20141. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20142. echo "$as_me: creating $ac_file" >&6;}
  20143. fi
  20144. case $ac_tag in
  20145. *:-:* | *:-) cat >"$tmp/stdin";;
  20146. esac
  20147. ;;
  20148. esac
  20149. ac_dir=`$as_dirname -- "$ac_file" ||
  20150. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20151. X"$ac_file" : 'X\(//\)[^/]' \| \
  20152. X"$ac_file" : 'X\(//\)$' \| \
  20153. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20154. echo X"$ac_file" |
  20155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20156. s//\1/
  20157. q
  20158. }
  20159. /^X\(\/\/\)[^/].*/{
  20160. s//\1/
  20161. q
  20162. }
  20163. /^X\(\/\/\)$/{
  20164. s//\1/
  20165. q
  20166. }
  20167. /^X\(\/\).*/{
  20168. s//\1/
  20169. q
  20170. }
  20171. s/.*/./; q'`
  20172. { as_dir="$ac_dir"
  20173. case $as_dir in #(
  20174. -*) as_dir=./$as_dir;;
  20175. esac
  20176. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20177. as_dirs=
  20178. while :; do
  20179. case $as_dir in #(
  20180. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20181. *) as_qdir=$as_dir;;
  20182. esac
  20183. as_dirs="'$as_qdir' $as_dirs"
  20184. as_dir=`$as_dirname -- "$as_dir" ||
  20185. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20186. X"$as_dir" : 'X\(//\)[^/]' \| \
  20187. X"$as_dir" : 'X\(//\)$' \| \
  20188. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20189. echo X"$as_dir" |
  20190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20191. s//\1/
  20192. q
  20193. }
  20194. /^X\(\/\/\)[^/].*/{
  20195. s//\1/
  20196. q
  20197. }
  20198. /^X\(\/\/\)$/{
  20199. s//\1/
  20200. q
  20201. }
  20202. /^X\(\/\).*/{
  20203. s//\1/
  20204. q
  20205. }
  20206. s/.*/./; q'`
  20207. test -d "$as_dir" && break
  20208. done
  20209. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20210. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20211. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20212. { (exit 1); exit 1; }; }; }
  20213. ac_builddir=.
  20214. case "$ac_dir" in
  20215. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20216. *)
  20217. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20218. # A ".." for each directory in $ac_dir_suffix.
  20219. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20220. case $ac_top_builddir_sub in
  20221. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20222. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20223. esac ;;
  20224. esac
  20225. ac_abs_top_builddir=$ac_pwd
  20226. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20227. # for backward compatibility:
  20228. ac_top_builddir=$ac_top_build_prefix
  20229. case $srcdir in
  20230. .) # We are building in place.
  20231. ac_srcdir=.
  20232. ac_top_srcdir=$ac_top_builddir_sub
  20233. ac_abs_top_srcdir=$ac_pwd ;;
  20234. [\\/]* | ?:[\\/]* ) # Absolute name.
  20235. ac_srcdir=$srcdir$ac_dir_suffix;
  20236. ac_top_srcdir=$srcdir
  20237. ac_abs_top_srcdir=$srcdir ;;
  20238. *) # Relative name.
  20239. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20240. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20241. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20242. esac
  20243. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20244. case $ac_mode in
  20245. :F)
  20246. #
  20247. # CONFIG_FILE
  20248. #
  20249. case $INSTALL in
  20250. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20251. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20252. esac
  20253. ac_MKDIR_P=$MKDIR_P
  20254. case $MKDIR_P in
  20255. [\\/$]* | ?:[\\/]* ) ;;
  20256. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20257. esac
  20258. _ACEOF
  20259. cat >>$CONFIG_STATUS <<\_ACEOF
  20260. # If the template does not know about datarootdir, expand it.
  20261. # FIXME: This hack should be removed a few years after 2.60.
  20262. ac_datarootdir_hack=; ac_datarootdir_seen=
  20263. case `sed -n '/datarootdir/ {
  20264. p
  20265. q
  20266. }
  20267. /@datadir@/p
  20268. /@docdir@/p
  20269. /@infodir@/p
  20270. /@localedir@/p
  20271. /@mandir@/p
  20272. ' $ac_file_inputs` in
  20273. *datarootdir*) ac_datarootdir_seen=yes;;
  20274. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20275. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20276. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20277. _ACEOF
  20278. cat >>$CONFIG_STATUS <<_ACEOF
  20279. ac_datarootdir_hack='
  20280. s&@datadir@&$datadir&g
  20281. s&@docdir@&$docdir&g
  20282. s&@infodir@&$infodir&g
  20283. s&@localedir@&$localedir&g
  20284. s&@mandir@&$mandir&g
  20285. s&\\\${datarootdir}&$datarootdir&g' ;;
  20286. esac
  20287. _ACEOF
  20288. # Neutralize VPATH when `$srcdir' = `.'.
  20289. # Shell code in configure.ac might set extrasub.
  20290. # FIXME: do we really want to maintain this feature?
  20291. cat >>$CONFIG_STATUS <<_ACEOF
  20292. sed "$ac_vpsub
  20293. $extrasub
  20294. _ACEOF
  20295. cat >>$CONFIG_STATUS <<\_ACEOF
  20296. :t
  20297. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20298. s&@configure_input@&$configure_input&;t t
  20299. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20300. s&@srcdir@&$ac_srcdir&;t t
  20301. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20302. s&@top_srcdir@&$ac_top_srcdir&;t t
  20303. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20304. s&@builddir@&$ac_builddir&;t t
  20305. s&@abs_builddir@&$ac_abs_builddir&;t t
  20306. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20307. s&@INSTALL@&$ac_INSTALL&;t t
  20308. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20309. $ac_datarootdir_hack
  20310. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20311. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20312. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20313. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20314. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20315. which seems to be undefined. Please make sure it is defined." >&5
  20316. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20317. which seems to be undefined. Please make sure it is defined." >&2;}
  20318. rm -f "$tmp/stdin"
  20319. case $ac_file in
  20320. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20321. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20322. esac
  20323. ;;
  20324. :H)
  20325. #
  20326. # CONFIG_HEADER
  20327. #
  20328. _ACEOF
  20329. # Transform confdefs.h into a sed script `conftest.defines', that
  20330. # substitutes the proper values into config.h.in to produce config.h.
  20331. rm -f conftest.defines conftest.tail
  20332. # First, append a space to every undef/define line, to ease matching.
  20333. echo 's/$/ /' >conftest.defines
  20334. # Then, protect against being on the right side of a sed subst, or in
  20335. # an unquoted here document, in config.status. If some macros were
  20336. # called several times there might be several #defines for the same
  20337. # symbol, which is useless. But do not sort them, since the last
  20338. # AC_DEFINE must be honored.
  20339. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20340. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20341. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20342. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20343. # just an empty string.
  20344. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20345. ac_dB='\\)[ (].*,\\1define\\2'
  20346. ac_dC=' '
  20347. ac_dD=' ,'
  20348. uniq confdefs.h |
  20349. sed -n '
  20350. t rset
  20351. :rset
  20352. s/^[ ]*#[ ]*define[ ][ ]*//
  20353. t ok
  20354. d
  20355. :ok
  20356. s/[\\&,]/\\&/g
  20357. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20358. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20359. ' >>conftest.defines
  20360. # Remove the space that was appended to ease matching.
  20361. # Then replace #undef with comments. This is necessary, for
  20362. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20363. # on some systems where configure will not decide to define it.
  20364. # (The regexp can be short, since the line contains either #define or #undef.)
  20365. echo 's/ $//
  20366. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20367. # Break up conftest.defines:
  20368. ac_max_sed_lines=50
  20369. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20370. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20371. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20372. # et cetera.
  20373. ac_in='$ac_file_inputs'
  20374. ac_out='"$tmp/out1"'
  20375. ac_nxt='"$tmp/out2"'
  20376. while :
  20377. do
  20378. # Write a here document:
  20379. cat >>$CONFIG_STATUS <<_ACEOF
  20380. # First, check the format of the line:
  20381. cat >"\$tmp/defines.sed" <<\\CEOF
  20382. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20383. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20384. b
  20385. :def
  20386. _ACEOF
  20387. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20388. echo 'CEOF
  20389. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20390. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20391. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20392. grep . conftest.tail >/dev/null || break
  20393. rm -f conftest.defines
  20394. mv conftest.tail conftest.defines
  20395. done
  20396. rm -f conftest.defines conftest.tail
  20397. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20398. cat >>$CONFIG_STATUS <<\_ACEOF
  20399. if test x"$ac_file" != x-; then
  20400. echo "/* $configure_input */" >"$tmp/config.h"
  20401. cat "$ac_result" >>"$tmp/config.h"
  20402. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20403. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20404. echo "$as_me: $ac_file is unchanged" >&6;}
  20405. else
  20406. rm -f $ac_file
  20407. mv "$tmp/config.h" $ac_file
  20408. fi
  20409. else
  20410. echo "/* $configure_input */"
  20411. cat "$ac_result"
  20412. fi
  20413. rm -f "$tmp/out12"
  20414. # Compute $ac_file's index in $config_headers.
  20415. _am_arg=$ac_file
  20416. _am_stamp_count=1
  20417. for _am_header in $config_headers :; do
  20418. case $_am_header in
  20419. $_am_arg | $_am_arg:* )
  20420. break ;;
  20421. * )
  20422. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20423. esac
  20424. done
  20425. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20426. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20427. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20428. X"$_am_arg" : 'X\(//\)$' \| \
  20429. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20430. echo X"$_am_arg" |
  20431. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20432. s//\1/
  20433. q
  20434. }
  20435. /^X\(\/\/\)[^/].*/{
  20436. s//\1/
  20437. q
  20438. }
  20439. /^X\(\/\/\)$/{
  20440. s//\1/
  20441. q
  20442. }
  20443. /^X\(\/\).*/{
  20444. s//\1/
  20445. q
  20446. }
  20447. s/.*/./; q'`/stamp-h$_am_stamp_count
  20448. ;;
  20449. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20450. echo "$as_me: executing $ac_file commands" >&6;}
  20451. ;;
  20452. esac
  20453. case $ac_file$ac_mode in
  20454. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20455. # Strip MF so we end up with the name of the file.
  20456. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20457. # Check whether this is an Automake generated Makefile or not.
  20458. # We used to match only the files named `Makefile.in', but
  20459. # some people rename them; so instead we look at the file content.
  20460. # Grep'ing the first line is not enough: some people post-process
  20461. # each Makefile.in and add a new line on top of each file to say so.
  20462. # Grep'ing the whole file is not good either: AIX grep has a line
  20463. # limit of 2048, but all sed's we know have understand at least 4000.
  20464. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20465. dirpart=`$as_dirname -- "$mf" ||
  20466. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20467. X"$mf" : 'X\(//\)[^/]' \| \
  20468. X"$mf" : 'X\(//\)$' \| \
  20469. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20470. echo X"$mf" |
  20471. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20472. s//\1/
  20473. q
  20474. }
  20475. /^X\(\/\/\)[^/].*/{
  20476. s//\1/
  20477. q
  20478. }
  20479. /^X\(\/\/\)$/{
  20480. s//\1/
  20481. q
  20482. }
  20483. /^X\(\/\).*/{
  20484. s//\1/
  20485. q
  20486. }
  20487. s/.*/./; q'`
  20488. else
  20489. continue
  20490. fi
  20491. # Extract the definition of DEPDIR, am__include, and am__quote
  20492. # from the Makefile without running `make'.
  20493. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20494. test -z "$DEPDIR" && continue
  20495. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20496. test -z "am__include" && continue
  20497. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20498. # When using ansi2knr, U may be empty or an underscore; expand it
  20499. U=`sed -n 's/^U = //p' < "$mf"`
  20500. # Find all dependency output files, they are included files with
  20501. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20502. # simplest approach to changing $(DEPDIR) to its actual value in the
  20503. # expansion.
  20504. for file in `sed -n "
  20505. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20506. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20507. # Make sure the directory exists.
  20508. test -f "$dirpart/$file" && continue
  20509. fdir=`$as_dirname -- "$file" ||
  20510. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20511. X"$file" : 'X\(//\)[^/]' \| \
  20512. X"$file" : 'X\(//\)$' \| \
  20513. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20514. echo X"$file" |
  20515. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20516. s//\1/
  20517. q
  20518. }
  20519. /^X\(\/\/\)[^/].*/{
  20520. s//\1/
  20521. q
  20522. }
  20523. /^X\(\/\/\)$/{
  20524. s//\1/
  20525. q
  20526. }
  20527. /^X\(\/\).*/{
  20528. s//\1/
  20529. q
  20530. }
  20531. s/.*/./; q'`
  20532. { as_dir=$dirpart/$fdir
  20533. case $as_dir in #(
  20534. -*) as_dir=./$as_dir;;
  20535. esac
  20536. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20537. as_dirs=
  20538. while :; do
  20539. case $as_dir in #(
  20540. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20541. *) as_qdir=$as_dir;;
  20542. esac
  20543. as_dirs="'$as_qdir' $as_dirs"
  20544. as_dir=`$as_dirname -- "$as_dir" ||
  20545. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20546. X"$as_dir" : 'X\(//\)[^/]' \| \
  20547. X"$as_dir" : 'X\(//\)$' \| \
  20548. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20549. echo X"$as_dir" |
  20550. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20551. s//\1/
  20552. q
  20553. }
  20554. /^X\(\/\/\)[^/].*/{
  20555. s//\1/
  20556. q
  20557. }
  20558. /^X\(\/\/\)$/{
  20559. s//\1/
  20560. q
  20561. }
  20562. /^X\(\/\).*/{
  20563. s//\1/
  20564. q
  20565. }
  20566. s/.*/./; q'`
  20567. test -d "$as_dir" && break
  20568. done
  20569. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20570. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20571. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20572. { (exit 1); exit 1; }; }; }
  20573. # echo "creating $dirpart/$file"
  20574. echo '# dummy' > "$dirpart/$file"
  20575. done
  20576. done
  20577. ;;
  20578. "po-directories":C)
  20579. for ac_file in $CONFIG_FILES; do
  20580. # Support "outfile[:infile[:infile...]]"
  20581. case "$ac_file" in
  20582. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20583. esac
  20584. # PO directories have a Makefile.in generated from Makefile.in.in.
  20585. case "$ac_file" in */Makefile.in)
  20586. # Adjust a relative srcdir.
  20587. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20588. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20589. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20590. # In autoconf-2.13 it is called $ac_given_srcdir.
  20591. # In autoconf-2.50 it is called $srcdir.
  20592. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20593. case "$ac_given_srcdir" in
  20594. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20595. /*) top_srcdir="$ac_given_srcdir" ;;
  20596. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20597. esac
  20598. # Treat a directory as a PO directory if and only if it has a
  20599. # POTFILES.in file. This allows packages to have multiple PO
  20600. # directories under different names or in different locations.
  20601. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20602. rm -f "$ac_dir/POTFILES"
  20603. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20604. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20605. POMAKEFILEDEPS="POTFILES.in"
  20606. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20607. # on $ac_dir but don't depend on user-specified configuration
  20608. # parameters.
  20609. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20610. # The LINGUAS file contains the set of available languages.
  20611. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20612. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20613. fi
  20614. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20615. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20616. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20617. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20618. else
  20619. # The set of available languages was given in configure.in.
  20620. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20621. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20622. fi
  20623. # Compute POFILES
  20624. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20625. # Compute UPDATEPOFILES
  20626. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20627. # Compute DUMMYPOFILES
  20628. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20629. # Compute GMOFILES
  20630. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20631. case "$ac_given_srcdir" in
  20632. .) srcdirpre= ;;
  20633. *) srcdirpre='$(srcdir)/' ;;
  20634. esac
  20635. POFILES=
  20636. UPDATEPOFILES=
  20637. DUMMYPOFILES=
  20638. GMOFILES=
  20639. for lang in $ALL_LINGUAS; do
  20640. POFILES="$POFILES $srcdirpre$lang.po"
  20641. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20642. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20643. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20644. done
  20645. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20646. # environment variable.
  20647. INST_LINGUAS=
  20648. if test -n "$ALL_LINGUAS"; then
  20649. for presentlang in $ALL_LINGUAS; do
  20650. useit=no
  20651. if test "%UNSET%" != "$LINGUAS"; then
  20652. desiredlanguages="$LINGUAS"
  20653. else
  20654. desiredlanguages="$ALL_LINGUAS"
  20655. fi
  20656. for desiredlang in $desiredlanguages; do
  20657. # Use the presentlang catalog if desiredlang is
  20658. # a. equal to presentlang, or
  20659. # b. a variant of presentlang (because in this case,
  20660. # presentlang can be used as a fallback for messages
  20661. # which are not translated in the desiredlang catalog).
  20662. case "$desiredlang" in
  20663. "$presentlang"*) useit=yes;;
  20664. esac
  20665. done
  20666. if test $useit = yes; then
  20667. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20668. fi
  20669. done
  20670. fi
  20671. CATALOGS=
  20672. if test -n "$INST_LINGUAS"; then
  20673. for lang in $INST_LINGUAS; do
  20674. CATALOGS="$CATALOGS $lang.gmo"
  20675. done
  20676. fi
  20677. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20678. 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"
  20679. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20680. if test -f "$f"; then
  20681. case "$f" in
  20682. *.orig | *.bak | *~) ;;
  20683. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20684. esac
  20685. fi
  20686. done
  20687. fi
  20688. ;;
  20689. esac
  20690. done ;;
  20691. esac
  20692. done # for ac_tag
  20693. { (exit 0); exit 0; }
  20694. _ACEOF
  20695. chmod +x $CONFIG_STATUS
  20696. ac_clean_files=$ac_clean_files_save
  20697. # configure is writing to config.log, and then calls config.status.
  20698. # config.status does its own redirection, appending to config.log.
  20699. # Unfortunately, on DOS this fails, as config.log is still kept open
  20700. # by configure, so config.status won't be able to write to it; its
  20701. # output is simply discarded. So we exec the FD to /dev/null,
  20702. # effectively closing config.log, so it can be properly (re)opened and
  20703. # appended to by config.status. When coming back to configure, we
  20704. # need to make the FD available again.
  20705. if test "$no_create" != yes; then
  20706. ac_cs_success=:
  20707. ac_config_status_args=
  20708. test "$silent" = yes &&
  20709. ac_config_status_args="$ac_config_status_args --quiet"
  20710. exec 5>/dev/null
  20711. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20712. exec 5>>config.log
  20713. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20714. # would make configure fail if this is the last instruction.
  20715. $ac_cs_success || { (exit 1); exit 1; }
  20716. fi
  20717. echo " "
  20718. echo "Build: $build"
  20719. echo "Target: $target"
  20720. echo "Install prefix: $prefix"
  20721. echo "CFLAGS: $CFLAGS"
  20722. echo "CPPFLAGS: $CPPFLAGS"
  20723. echo "LDFLAGS: $LDFLAGS"
  20724. echo "LIBS: $LIBS"
  20725. echo "GnuTLS: $have_libgnutls"
  20726. echo "OpenSSL: $have_openssl"
  20727. echo "LibXML2: $have_libxml2"
  20728. echo "LibExpat: $have_libexpat"
  20729. echo "LibAres: $have_libares"
  20730. echo "LibCares: $have_libcares"
  20731. echo "Libz: $have_libz"
  20732. echo "Bittorrent: $enable_bittorrent"
  20733. echo "Metalink: $enable_metalink"