configure 672 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 1.0.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='1.0.1'
  496. PACKAGE_STRING='aria2c 1.0.1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. SQLITE3_LIBS
  646. SQLITE3_CPPFLAGS
  647. LIBGNUTLS_CONFIG
  648. LIBGNUTLS_CFLAGS
  649. LIBGNUTLS_LIBS
  650. LIBGCRYPT_CONFIG
  651. LIBGCRYPT_CFLAGS
  652. LIBGCRYPT_LIBS
  653. OPENSSL_LIBS
  654. OPENSSL_CFLAGS
  655. LIBCARES_LIBS
  656. LIBCARES_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBZ_CPPFLAGS
  659. ENABLE_SSL_TRUE
  660. ENABLE_SSL_FALSE
  661. HAVE_LIBGNUTLS_TRUE
  662. HAVE_LIBGNUTLS_FALSE
  663. HAVE_LIBSSL_TRUE
  664. HAVE_LIBSSL_FALSE
  665. ENABLE_MESSAGE_DIGEST_TRUE
  666. ENABLE_MESSAGE_DIGEST_FALSE
  667. ENABLE_BITTORRENT_TRUE
  668. ENABLE_BITTORRENT_FALSE
  669. ENABLE_METALINK_TRUE
  670. ENABLE_METALINK_FALSE
  671. ENABLE_LIBXML2_TRUE
  672. ENABLE_LIBXML2_FALSE
  673. ENABLE_LIBEXPAT_TRUE
  674. ENABLE_LIBEXPAT_FALSE
  675. ENABLE_ASYNC_DNS_TRUE
  676. ENABLE_ASYNC_DNS_FALSE
  677. HAVE_LIBZ_TRUE
  678. HAVE_LIBZ_FALSE
  679. HAVE_SQLITE3_TRUE
  680. HAVE_SQLITE3_FALSE
  681. ALLOCA
  682. USE_NLS
  683. GETTEXT_MACRO_VERSION
  684. MSGFMT
  685. GMSGFMT
  686. MSGFMT_015
  687. GMSGFMT_015
  688. XGETTEXT
  689. XGETTEXT_015
  690. MSGMERGE
  691. XGETTEXT_EXTRA_OPTIONS
  692. GLIBC2
  693. CFLAG_VISIBILITY
  694. HAVE_VISIBILITY
  695. PRI_MACROS_BROKEN
  696. LIBPTH
  697. LTLIBPTH
  698. LIBPTH_PREFIX
  699. LIBTHREAD
  700. LTLIBTHREAD
  701. LIBMULTITHREAD
  702. LTLIBMULTITHREAD
  703. LIBICONV
  704. LTLIBICONV
  705. INTLBISON
  706. GLIBC21
  707. INTL_MACOSX_LIBS
  708. HAVE_POSIX_PRINTF
  709. HAVE_ASPRINTF
  710. HAVE_SNPRINTF
  711. HAVE_WPRINTF
  712. WOE32DLL
  713. WOE32
  714. WINDRES
  715. LTLIBC
  716. BUILD_INCLUDED_LIBINTL
  717. USE_INCLUDED_LIBINTL
  718. CATOBJEXT
  719. DATADIRNAME
  720. INSTOBJEXT
  721. GENCAT
  722. INTLOBJS
  723. INTL_LIBTOOL_SUFFIX_PREFIX
  724. INTLLIBS
  725. LIBINTL
  726. LTLIBINTL
  727. POSUB
  728. LIBOBJS
  729. HAVE_ASCTIME_R_TRUE
  730. HAVE_ASCTIME_R_FALSE
  731. HAVE_BASENAME_TRUE
  732. HAVE_BASENAME_FALSE
  733. HAVE_GAI_STRERROR_TRUE
  734. HAVE_GAI_STRERROR_FALSE
  735. HAVE_GETADDRINFO_TRUE
  736. HAVE_GETADDRINFO_FALSE
  737. HAVE_GETTIMEOFDAY_TRUE
  738. HAVE_GETTIMEOFDAY_FALSE
  739. HAVE_INET_ATON_TRUE
  740. HAVE_INET_ATON_FALSE
  741. HAVE_LOCALTIME_R_TRUE
  742. HAVE_LOCALTIME_R_FALSE
  743. HAVE_STRPTIME_TRUE
  744. HAVE_STRPTIME_FALSE
  745. HAVE_TIMEGM_TRUE
  746. HAVE_TIMEGM_FALSE
  747. LTLIBOBJS'
  748. ac_subst_files=''
  749. ac_precious_vars='build_alias
  750. host_alias
  751. target_alias
  752. CXX
  753. CXXFLAGS
  754. LDFLAGS
  755. LIBS
  756. CPPFLAGS
  757. CCC
  758. CC
  759. CFLAGS
  760. YACC
  761. YFLAGS
  762. CXXCPP'
  763. # Initialize some variables set by options.
  764. ac_init_help=
  765. ac_init_version=false
  766. # The variables have the same names as the options, with
  767. # dashes changed to underlines.
  768. cache_file=/dev/null
  769. exec_prefix=NONE
  770. no_create=
  771. no_recursion=
  772. prefix=NONE
  773. program_prefix=NONE
  774. program_suffix=NONE
  775. program_transform_name=s,x,x,
  776. silent=
  777. site=
  778. srcdir=
  779. verbose=
  780. x_includes=NONE
  781. x_libraries=NONE
  782. # Installation directory options.
  783. # These are left unexpanded so users can "make install exec_prefix=/foo"
  784. # and all the variables that are supposed to be based on exec_prefix
  785. # by default will actually change.
  786. # Use braces instead of parens because sh, perl, etc. also accept them.
  787. # (The list follows the same order as the GNU Coding Standards.)
  788. bindir='${exec_prefix}/bin'
  789. sbindir='${exec_prefix}/sbin'
  790. libexecdir='${exec_prefix}/libexec'
  791. datarootdir='${prefix}/share'
  792. datadir='${datarootdir}'
  793. sysconfdir='${prefix}/etc'
  794. sharedstatedir='${prefix}/com'
  795. localstatedir='${prefix}/var'
  796. includedir='${prefix}/include'
  797. oldincludedir='/usr/include'
  798. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  799. infodir='${datarootdir}/info'
  800. htmldir='${docdir}'
  801. dvidir='${docdir}'
  802. pdfdir='${docdir}'
  803. psdir='${docdir}'
  804. libdir='${exec_prefix}/lib'
  805. localedir='${datarootdir}/locale'
  806. mandir='${datarootdir}/man'
  807. ac_prev=
  808. ac_dashdash=
  809. for ac_option
  810. do
  811. # If the previous option needs an argument, assign it.
  812. if test -n "$ac_prev"; then
  813. eval $ac_prev=\$ac_option
  814. ac_prev=
  815. continue
  816. fi
  817. case $ac_option in
  818. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  819. *) ac_optarg=yes ;;
  820. esac
  821. # Accept the important Cygnus configure options, so we can diagnose typos.
  822. case $ac_dashdash$ac_option in
  823. --)
  824. ac_dashdash=yes ;;
  825. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  826. ac_prev=bindir ;;
  827. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  828. bindir=$ac_optarg ;;
  829. -build | --build | --buil | --bui | --bu)
  830. ac_prev=build_alias ;;
  831. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  832. build_alias=$ac_optarg ;;
  833. -cache-file | --cache-file | --cache-fil | --cache-fi \
  834. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  835. ac_prev=cache_file ;;
  836. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  837. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  838. cache_file=$ac_optarg ;;
  839. --config-cache | -C)
  840. cache_file=config.cache ;;
  841. -datadir | --datadir | --datadi | --datad)
  842. ac_prev=datadir ;;
  843. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  844. datadir=$ac_optarg ;;
  845. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  846. | --dataroo | --dataro | --datar)
  847. ac_prev=datarootdir ;;
  848. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  849. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  850. datarootdir=$ac_optarg ;;
  851. -disable-* | --disable-*)
  852. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  855. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  856. { (exit 1); exit 1; }; }
  857. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  858. eval enable_$ac_feature=no ;;
  859. -docdir | --docdir | --docdi | --doc | --do)
  860. ac_prev=docdir ;;
  861. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  862. docdir=$ac_optarg ;;
  863. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  864. ac_prev=dvidir ;;
  865. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  866. dvidir=$ac_optarg ;;
  867. -enable-* | --enable-*)
  868. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  869. # Reject names that are not valid shell variable names.
  870. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  871. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  872. { (exit 1); exit 1; }; }
  873. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  874. eval enable_$ac_feature=\$ac_optarg ;;
  875. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  876. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  877. | --exec | --exe | --ex)
  878. ac_prev=exec_prefix ;;
  879. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  880. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  881. | --exec=* | --exe=* | --ex=*)
  882. exec_prefix=$ac_optarg ;;
  883. -gas | --gas | --ga | --g)
  884. # Obsolete; use --with-gas.
  885. with_gas=yes ;;
  886. -help | --help | --hel | --he | -h)
  887. ac_init_help=long ;;
  888. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  889. ac_init_help=recursive ;;
  890. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  891. ac_init_help=short ;;
  892. -host | --host | --hos | --ho)
  893. ac_prev=host_alias ;;
  894. -host=* | --host=* | --hos=* | --ho=*)
  895. host_alias=$ac_optarg ;;
  896. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  897. ac_prev=htmldir ;;
  898. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  899. | --ht=*)
  900. htmldir=$ac_optarg ;;
  901. -includedir | --includedir | --includedi | --included | --include \
  902. | --includ | --inclu | --incl | --inc)
  903. ac_prev=includedir ;;
  904. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  905. | --includ=* | --inclu=* | --incl=* | --inc=*)
  906. includedir=$ac_optarg ;;
  907. -infodir | --infodir | --infodi | --infod | --info | --inf)
  908. ac_prev=infodir ;;
  909. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  910. infodir=$ac_optarg ;;
  911. -libdir | --libdir | --libdi | --libd)
  912. ac_prev=libdir ;;
  913. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  914. libdir=$ac_optarg ;;
  915. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  916. | --libexe | --libex | --libe)
  917. ac_prev=libexecdir ;;
  918. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  919. | --libexe=* | --libex=* | --libe=*)
  920. libexecdir=$ac_optarg ;;
  921. -localedir | --localedir | --localedi | --localed | --locale)
  922. ac_prev=localedir ;;
  923. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  924. localedir=$ac_optarg ;;
  925. -localstatedir | --localstatedir | --localstatedi | --localstated \
  926. | --localstate | --localstat | --localsta | --localst | --locals)
  927. ac_prev=localstatedir ;;
  928. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  929. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  930. localstatedir=$ac_optarg ;;
  931. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  932. ac_prev=mandir ;;
  933. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  934. mandir=$ac_optarg ;;
  935. -nfp | --nfp | --nf)
  936. # Obsolete; use --without-fp.
  937. with_fp=no ;;
  938. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  939. | --no-cr | --no-c | -n)
  940. no_create=yes ;;
  941. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  942. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  943. no_recursion=yes ;;
  944. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  945. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  946. | --oldin | --oldi | --old | --ol | --o)
  947. ac_prev=oldincludedir ;;
  948. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  949. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  950. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  951. oldincludedir=$ac_optarg ;;
  952. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  953. ac_prev=prefix ;;
  954. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  955. prefix=$ac_optarg ;;
  956. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  957. | --program-pre | --program-pr | --program-p)
  958. ac_prev=program_prefix ;;
  959. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  960. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  961. program_prefix=$ac_optarg ;;
  962. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  963. | --program-suf | --program-su | --program-s)
  964. ac_prev=program_suffix ;;
  965. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  966. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  967. program_suffix=$ac_optarg ;;
  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. ac_prev=program_transform_name ;;
  976. -program-transform-name=* | --program-transform-name=* \
  977. | --program-transform-nam=* | --program-transform-na=* \
  978. | --program-transform-n=* | --program-transform-=* \
  979. | --program-transform=* | --program-transfor=* \
  980. | --program-transfo=* | --program-transf=* \
  981. | --program-trans=* | --program-tran=* \
  982. | --progr-tra=* | --program-tr=* | --program-t=*)
  983. program_transform_name=$ac_optarg ;;
  984. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  985. ac_prev=pdfdir ;;
  986. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  987. pdfdir=$ac_optarg ;;
  988. -psdir | --psdir | --psdi | --psd | --ps)
  989. ac_prev=psdir ;;
  990. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  991. psdir=$ac_optarg ;;
  992. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  993. | -silent | --silent | --silen | --sile | --sil)
  994. silent=yes ;;
  995. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  996. ac_prev=sbindir ;;
  997. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  998. | --sbi=* | --sb=*)
  999. sbindir=$ac_optarg ;;
  1000. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1001. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1002. | --sharedst | --shareds | --shared | --share | --shar \
  1003. | --sha | --sh)
  1004. ac_prev=sharedstatedir ;;
  1005. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1006. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1007. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1008. | --sha=* | --sh=*)
  1009. sharedstatedir=$ac_optarg ;;
  1010. -site | --site | --sit)
  1011. ac_prev=site ;;
  1012. -site=* | --site=* | --sit=*)
  1013. site=$ac_optarg ;;
  1014. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1015. ac_prev=srcdir ;;
  1016. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1017. srcdir=$ac_optarg ;;
  1018. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1019. | --syscon | --sysco | --sysc | --sys | --sy)
  1020. ac_prev=sysconfdir ;;
  1021. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1022. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1023. sysconfdir=$ac_optarg ;;
  1024. -target | --target | --targe | --targ | --tar | --ta | --t)
  1025. ac_prev=target_alias ;;
  1026. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1027. target_alias=$ac_optarg ;;
  1028. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1029. verbose=yes ;;
  1030. -version | --version | --versio | --versi | --vers | -V)
  1031. ac_init_version=: ;;
  1032. -with-* | --with-*)
  1033. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  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=\$ac_optarg ;;
  1040. -without-* | --without-*)
  1041. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1042. # Reject names that are not valid shell variable names.
  1043. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1044. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1045. { (exit 1); exit 1; }; }
  1046. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1047. eval with_$ac_package=no ;;
  1048. --x)
  1049. # Obsolete; use --with-x.
  1050. with_x=yes ;;
  1051. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1052. | --x-incl | --x-inc | --x-in | --x-i)
  1053. ac_prev=x_includes ;;
  1054. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1055. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1056. x_includes=$ac_optarg ;;
  1057. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1058. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1059. ac_prev=x_libraries ;;
  1060. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1061. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1062. x_libraries=$ac_optarg ;;
  1063. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1064. Try \`$0 --help' for more information." >&2
  1065. { (exit 1); exit 1; }; }
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1071. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1072. { (exit 1); exit 1; }; }
  1073. eval $ac_envvar=\$ac_optarg
  1074. export $ac_envvar ;;
  1075. *)
  1076. # FIXME: should be removed in autoconf 3.0.
  1077. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1078. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1079. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1080. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1081. ;;
  1082. esac
  1083. done
  1084. if test -n "$ac_prev"; then
  1085. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1086. { echo "$as_me: error: missing argument to $ac_option" >&2
  1087. { (exit 1); exit 1; }; }
  1088. fi
  1089. # Be sure to have absolute directory names.
  1090. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1091. datadir sysconfdir sharedstatedir localstatedir includedir \
  1092. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1093. libdir localedir mandir
  1094. do
  1095. eval ac_val=\$$ac_var
  1096. case $ac_val in
  1097. [\\/$]* | ?:[\\/]* ) continue;;
  1098. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1099. esac
  1100. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1101. { (exit 1); exit 1; }; }
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1114. If a cross compiler is detected then cross compile mode will be used." >&2
  1115. elif test "x$build_alias" != "x$host_alias"; then
  1116. cross_compiling=yes
  1117. fi
  1118. fi
  1119. ac_tool_prefix=
  1120. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1121. test "$silent" = yes && exec 6>/dev/null
  1122. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1123. ac_ls_di=`ls -di .` &&
  1124. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1125. { echo "$as_me: error: Working directory cannot be determined" >&2
  1126. { (exit 1); exit 1; }; }
  1127. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1128. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1129. { (exit 1); exit 1; }; }
  1130. # Find the source files, if location was not specified.
  1131. if test -z "$srcdir"; then
  1132. ac_srcdir_defaulted=yes
  1133. # Try the directory containing this script, then the parent directory.
  1134. ac_confdir=`$as_dirname -- "$0" ||
  1135. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1136. X"$0" : 'X\(//\)[^/]' \| \
  1137. X"$0" : 'X\(//\)$' \| \
  1138. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1139. echo X"$0" |
  1140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)[^/].*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\).*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. s/.*/./; q'`
  1157. srcdir=$ac_confdir
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. srcdir=..
  1160. fi
  1161. else
  1162. ac_srcdir_defaulted=no
  1163. fi
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1166. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1167. { (exit 1); exit 1; }; }
  1168. fi
  1169. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1170. ac_abs_confdir=`(
  1171. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1172. { (exit 1); exit 1; }; }
  1173. pwd)`
  1174. # When building in place, set srcdir=.
  1175. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1176. srcdir=.
  1177. fi
  1178. # Remove unnecessary trailing slashes from srcdir.
  1179. # Double slashes in file names in object file debugging info
  1180. # mess up M-x gdb in Emacs.
  1181. case $srcdir in
  1182. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1183. esac
  1184. for ac_var in $ac_precious_vars; do
  1185. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_env_${ac_var}_value=\$${ac_var}
  1187. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1188. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1189. done
  1190. #
  1191. # Report the --help message.
  1192. #
  1193. if test "$ac_init_help" = "long"; then
  1194. # Omit some internal or obsolete options to make the list less imposing.
  1195. # This message is too long to be a string in the A/UX 3.1 sh.
  1196. cat <<_ACEOF
  1197. \`configure' configures aria2c 1.0.1 to adapt to many kinds of systems.
  1198. Usage: $0 [OPTION]... [VAR=VALUE]...
  1199. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1200. VAR=VALUE. See below for descriptions of some of the useful variables.
  1201. Defaults for the options are specified in brackets.
  1202. Configuration:
  1203. -h, --help display this help and exit
  1204. --help=short display options specific to this package
  1205. --help=recursive display the short help of all the included packages
  1206. -V, --version display version information and exit
  1207. -q, --quiet, --silent do not print \`checking...' messages
  1208. --cache-file=FILE cache test results in FILE [disabled]
  1209. -C, --config-cache alias for \`--cache-file=config.cache'
  1210. -n, --no-create do not create output files
  1211. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1212. Installation directories:
  1213. --prefix=PREFIX install architecture-independent files in PREFIX
  1214. [$ac_default_prefix]
  1215. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1216. [PREFIX]
  1217. By default, \`make install' will install all the files in
  1218. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1219. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1220. for instance \`--prefix=\$HOME'.
  1221. For better control, use the options below.
  1222. Fine tuning of the installation directories:
  1223. --bindir=DIR user executables [EPREFIX/bin]
  1224. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1225. --libexecdir=DIR program executables [EPREFIX/libexec]
  1226. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1227. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1228. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1229. --libdir=DIR object code libraries [EPREFIX/lib]
  1230. --includedir=DIR C header files [PREFIX/include]
  1231. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1232. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1233. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1234. --infodir=DIR info documentation [DATAROOTDIR/info]
  1235. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1236. --mandir=DIR man documentation [DATAROOTDIR/man]
  1237. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1238. --htmldir=DIR html documentation [DOCDIR]
  1239. --dvidir=DIR dvi documentation [DOCDIR]
  1240. --pdfdir=DIR pdf documentation [DOCDIR]
  1241. --psdir=DIR ps documentation [DOCDIR]
  1242. _ACEOF
  1243. cat <<\_ACEOF
  1244. Program names:
  1245. --program-prefix=PREFIX prepend PREFIX to installed program names
  1246. --program-suffix=SUFFIX append SUFFIX to installed program names
  1247. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1248. System types:
  1249. --build=BUILD configure for building on BUILD [guessed]
  1250. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1251. --target=TARGET configure for building compilers for TARGET [HOST]
  1252. _ACEOF
  1253. fi
  1254. if test -n "$ac_init_help"; then
  1255. case $ac_init_help in
  1256. short | recursive ) echo "Configuration of aria2c 1.0.1:";;
  1257. esac
  1258. cat <<\_ACEOF
  1259. Optional Features:
  1260. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1261. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1262. --enable-bittorrent enable bittorrent support.
  1263. --enable-metalink enable metalink support.
  1264. --enable-epoll enable epoll support.
  1265. --disable-dependency-tracking speeds up one-time build
  1266. --enable-dependency-tracking do not reject slow dependency extractors
  1267. --disable-xmltest Do not try to compile and run a test LIBXML program
  1268. --disable-largefile omit support for large files
  1269. --disable-nls do not use Native Language Support
  1270. --enable-threads={posix|solaris|pth|win32}
  1271. specify multithreading API
  1272. --disable-threads build without multithread safety
  1273. --disable-rpath do not hardcode runtime library paths
  1274. Optional Packages:
  1275. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1276. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1277. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1278. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1279. --with-gnutls use gnutls if it is installed.
  1280. --with-openssl use openssl if it is installed.
  1281. --with-sqlite3 use sqlite3 if it is installed.
  1282. --with-libxml2 use libxml2 if it is installed.
  1283. --with-libexpat use libexpat if it is installed.
  1284. --with-libcares use libcares if it is installed.
  1285. --with-libz use libz if it is installed.
  1286. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1287. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1288. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1289. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1290. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1291. --with-libgcrypt-prefix=PFX
  1292. prefix where LIBGCRYPT is installed (optional)
  1293. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1294. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1295. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1296. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1297. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1298. --without-libpth-prefix don't search for libpth in includedir and libdir
  1299. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1300. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1301. --with-included-gettext use the GNU gettext library included here
  1302. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1303. --without-libintl-prefix don't search for libintl in includedir and libdir
  1304. Some influential environment variables:
  1305. CXX C++ compiler command
  1306. CXXFLAGS C++ compiler flags
  1307. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1308. nonstandard directory <lib dir>
  1309. LIBS libraries to pass to the linker, e.g. -l<library>
  1310. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1311. you have headers in a nonstandard directory <include dir>
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1315. the first program found out of: `bison -y', `byacc', `yacc'.
  1316. YFLAGS The list of arguments that will be passed by default to $YACC.
  1317. This script will default YFLAGS to the empty string to avoid a
  1318. default value of `-d' given by some make applications.
  1319. CXXCPP C++ preprocessor
  1320. Use these variables to override the choices made by `configure' or to help
  1321. it to find libraries and programs with nonstandard names/locations.
  1322. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1323. _ACEOF
  1324. ac_status=$?
  1325. fi
  1326. if test "$ac_init_help" = "recursive"; then
  1327. # If there are subdirs, report their specific --help.
  1328. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1329. test -d "$ac_dir" || continue
  1330. ac_builddir=.
  1331. case "$ac_dir" in
  1332. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1333. *)
  1334. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1335. # A ".." for each directory in $ac_dir_suffix.
  1336. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1337. case $ac_top_builddir_sub in
  1338. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1339. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1340. esac ;;
  1341. esac
  1342. ac_abs_top_builddir=$ac_pwd
  1343. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1344. # for backward compatibility:
  1345. ac_top_builddir=$ac_top_build_prefix
  1346. case $srcdir in
  1347. .) # We are building in place.
  1348. ac_srcdir=.
  1349. ac_top_srcdir=$ac_top_builddir_sub
  1350. ac_abs_top_srcdir=$ac_pwd ;;
  1351. [\\/]* | ?:[\\/]* ) # Absolute name.
  1352. ac_srcdir=$srcdir$ac_dir_suffix;
  1353. ac_top_srcdir=$srcdir
  1354. ac_abs_top_srcdir=$srcdir ;;
  1355. *) # Relative name.
  1356. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1357. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1358. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1359. esac
  1360. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1361. cd "$ac_dir" || { ac_status=$?; continue; }
  1362. # Check for guested configure.
  1363. if test -f "$ac_srcdir/configure.gnu"; then
  1364. echo &&
  1365. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1366. elif test -f "$ac_srcdir/configure"; then
  1367. echo &&
  1368. $SHELL "$ac_srcdir/configure" --help=recursive
  1369. else
  1370. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1371. fi || ac_status=$?
  1372. cd "$ac_pwd" || { ac_status=$?; break; }
  1373. done
  1374. fi
  1375. test -n "$ac_init_help" && exit $ac_status
  1376. if $ac_init_version; then
  1377. cat <<\_ACEOF
  1378. aria2c configure 1.0.1
  1379. generated by GNU Autoconf 2.61
  1380. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1381. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1382. This configure script is free software; the Free Software Foundation
  1383. gives unlimited permission to copy, distribute and modify it.
  1384. _ACEOF
  1385. exit
  1386. fi
  1387. cat >config.log <<_ACEOF
  1388. This file contains any messages produced by compilers while
  1389. running configure, to aid debugging if configure makes a mistake.
  1390. It was created by aria2c $as_me 1.0.1, which was
  1391. generated by GNU Autoconf 2.61. Invocation command line was
  1392. $ $0 $@
  1393. _ACEOF
  1394. exec 5>>config.log
  1395. {
  1396. cat <<_ASUNAME
  1397. ## --------- ##
  1398. ## Platform. ##
  1399. ## --------- ##
  1400. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1401. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1402. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1403. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1404. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1405. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1406. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1407. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1408. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1409. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1410. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1411. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1412. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1413. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1414. _ASUNAME
  1415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1416. for as_dir in $PATH
  1417. do
  1418. IFS=$as_save_IFS
  1419. test -z "$as_dir" && as_dir=.
  1420. echo "PATH: $as_dir"
  1421. done
  1422. IFS=$as_save_IFS
  1423. } >&5
  1424. cat >&5 <<_ACEOF
  1425. ## ----------- ##
  1426. ## Core tests. ##
  1427. ## ----------- ##
  1428. _ACEOF
  1429. # Keep a trace of the command line.
  1430. # Strip out --no-create and --no-recursion so they do not pile up.
  1431. # Strip out --silent because we don't want to record it for future runs.
  1432. # Also quote any args containing shell meta-characters.
  1433. # Make two passes to allow for proper duplicate-argument suppression.
  1434. ac_configure_args=
  1435. ac_configure_args0=
  1436. ac_configure_args1=
  1437. ac_must_keep_next=false
  1438. for ac_pass in 1 2
  1439. do
  1440. for ac_arg
  1441. do
  1442. case $ac_arg in
  1443. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1444. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1445. | -silent | --silent | --silen | --sile | --sil)
  1446. continue ;;
  1447. *\'*)
  1448. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1449. esac
  1450. case $ac_pass in
  1451. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1452. 2)
  1453. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1454. if test $ac_must_keep_next = true; then
  1455. ac_must_keep_next=false # Got value, back to normal.
  1456. else
  1457. case $ac_arg in
  1458. *=* | --config-cache | -C | -disable-* | --disable-* \
  1459. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1460. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1461. | -with-* | --with-* | -without-* | --without-* | --x)
  1462. case "$ac_configure_args0 " in
  1463. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1464. esac
  1465. ;;
  1466. -* ) ac_must_keep_next=true ;;
  1467. esac
  1468. fi
  1469. ac_configure_args="$ac_configure_args '$ac_arg'"
  1470. ;;
  1471. esac
  1472. done
  1473. done
  1474. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1475. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1476. # When interrupted or exit'd, cleanup temporary files, and complete
  1477. # config.log. We remove comments because anyway the quotes in there
  1478. # would cause problems or look ugly.
  1479. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1480. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1481. trap 'exit_status=$?
  1482. # Save into config.log some information that might help in debugging.
  1483. {
  1484. echo
  1485. cat <<\_ASBOX
  1486. ## ---------------- ##
  1487. ## Cache variables. ##
  1488. ## ---------------- ##
  1489. _ASBOX
  1490. echo
  1491. # The following way of writing the cache mishandles newlines in values,
  1492. (
  1493. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1494. eval ac_val=\$$ac_var
  1495. case $ac_val in #(
  1496. *${as_nl}*)
  1497. case $ac_var in #(
  1498. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1499. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1500. esac
  1501. case $ac_var in #(
  1502. _ | IFS | as_nl) ;; #(
  1503. *) $as_unset $ac_var ;;
  1504. esac ;;
  1505. esac
  1506. done
  1507. (set) 2>&1 |
  1508. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1509. *${as_nl}ac_space=\ *)
  1510. sed -n \
  1511. "s/'\''/'\''\\\\'\'''\''/g;
  1512. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1513. ;; #(
  1514. *)
  1515. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1516. ;;
  1517. esac |
  1518. sort
  1519. )
  1520. echo
  1521. cat <<\_ASBOX
  1522. ## ----------------- ##
  1523. ## Output variables. ##
  1524. ## ----------------- ##
  1525. _ASBOX
  1526. echo
  1527. for ac_var in $ac_subst_vars
  1528. do
  1529. eval ac_val=\$$ac_var
  1530. case $ac_val in
  1531. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1532. esac
  1533. echo "$ac_var='\''$ac_val'\''"
  1534. done | sort
  1535. echo
  1536. if test -n "$ac_subst_files"; then
  1537. cat <<\_ASBOX
  1538. ## ------------------- ##
  1539. ## File substitutions. ##
  1540. ## ------------------- ##
  1541. _ASBOX
  1542. echo
  1543. for ac_var in $ac_subst_files
  1544. do
  1545. eval ac_val=\$$ac_var
  1546. case $ac_val in
  1547. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1548. esac
  1549. echo "$ac_var='\''$ac_val'\''"
  1550. done | sort
  1551. echo
  1552. fi
  1553. if test -s confdefs.h; then
  1554. cat <<\_ASBOX
  1555. ## ----------- ##
  1556. ## confdefs.h. ##
  1557. ## ----------- ##
  1558. _ASBOX
  1559. echo
  1560. cat confdefs.h
  1561. echo
  1562. fi
  1563. test "$ac_signal" != 0 &&
  1564. echo "$as_me: caught signal $ac_signal"
  1565. echo "$as_me: exit $exit_status"
  1566. } >&5
  1567. rm -f core *.core core.conftest.* &&
  1568. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1569. exit $exit_status
  1570. ' 0
  1571. for ac_signal in 1 2 13 15; do
  1572. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1573. done
  1574. ac_signal=0
  1575. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1576. rm -f -r conftest* confdefs.h
  1577. # Predefined preprocessor variables.
  1578. cat >>confdefs.h <<_ACEOF
  1579. #define PACKAGE_NAME "$PACKAGE_NAME"
  1580. _ACEOF
  1581. cat >>confdefs.h <<_ACEOF
  1582. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1583. _ACEOF
  1584. cat >>confdefs.h <<_ACEOF
  1585. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1586. _ACEOF
  1587. cat >>confdefs.h <<_ACEOF
  1588. #define PACKAGE_STRING "$PACKAGE_STRING"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1592. _ACEOF
  1593. # Let the site file select an alternate cache file if it wants to.
  1594. # Prefer explicitly selected file to automatically selected ones.
  1595. if test -n "$CONFIG_SITE"; then
  1596. set x "$CONFIG_SITE"
  1597. elif test "x$prefix" != xNONE; then
  1598. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1599. else
  1600. set x "$ac_default_prefix/share/config.site" \
  1601. "$ac_default_prefix/etc/config.site"
  1602. fi
  1603. shift
  1604. for ac_site_file
  1605. do
  1606. if test -r "$ac_site_file"; then
  1607. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1608. echo "$as_me: loading site script $ac_site_file" >&6;}
  1609. sed 's/^/| /' "$ac_site_file" >&5
  1610. . "$ac_site_file"
  1611. fi
  1612. done
  1613. if test -r "$cache_file"; then
  1614. # Some versions of bash will fail to source /dev/null (special
  1615. # files actually), so we avoid doing that.
  1616. if test -f "$cache_file"; then
  1617. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1618. echo "$as_me: loading cache $cache_file" >&6;}
  1619. case $cache_file in
  1620. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1621. *) . "./$cache_file";;
  1622. esac
  1623. fi
  1624. else
  1625. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1626. echo "$as_me: creating cache $cache_file" >&6;}
  1627. >$cache_file
  1628. fi
  1629. gt_needs="$gt_needs "
  1630. ac_header_list="$ac_header_list sys/time.h"
  1631. ac_header_list="$ac_header_list unistd.h"
  1632. ac_func_list="$ac_func_list alarm"
  1633. # Check that the precious variables saved in the cache have kept the same
  1634. # value.
  1635. ac_cache_corrupted=false
  1636. for ac_var in $ac_precious_vars; do
  1637. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1638. eval ac_new_set=\$ac_env_${ac_var}_set
  1639. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1640. eval ac_new_val=\$ac_env_${ac_var}_value
  1641. case $ac_old_set,$ac_new_set in
  1642. set,)
  1643. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1644. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1645. ac_cache_corrupted=: ;;
  1646. ,set)
  1647. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1648. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1649. ac_cache_corrupted=: ;;
  1650. ,);;
  1651. *)
  1652. if test "x$ac_old_val" != "x$ac_new_val"; then
  1653. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1654. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1655. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1656. echo "$as_me: former value: $ac_old_val" >&2;}
  1657. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1658. echo "$as_me: current value: $ac_new_val" >&2;}
  1659. ac_cache_corrupted=:
  1660. fi;;
  1661. esac
  1662. # Pass precious variables to config.status.
  1663. if test "$ac_new_set" = set; then
  1664. case $ac_new_val in
  1665. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1666. *) ac_arg=$ac_var=$ac_new_val ;;
  1667. esac
  1668. case " $ac_configure_args " in
  1669. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1670. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1671. esac
  1672. fi
  1673. done
  1674. if $ac_cache_corrupted; then
  1675. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1676. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1677. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1678. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1679. { (exit 1); exit 1; }; }
  1680. fi
  1681. ac_ext=c
  1682. ac_cpp='$CPP $CPPFLAGS'
  1683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1686. ac_aux_dir=
  1687. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1688. if test -f "$ac_dir/install-sh"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/install-sh -c"
  1691. break
  1692. elif test -f "$ac_dir/install.sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install.sh -c"
  1695. break
  1696. elif test -f "$ac_dir/shtool"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/shtool install -c"
  1699. break
  1700. fi
  1701. done
  1702. if test -z "$ac_aux_dir"; then
  1703. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1704. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1705. { (exit 1); exit 1; }; }
  1706. fi
  1707. # These three variables are undocumented and unsupported,
  1708. # and are intended to be withdrawn in a future Autoconf release.
  1709. # They can cause serious problems if a builder's source tree is in a directory
  1710. # whose full name contains unusual characters.
  1711. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1712. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1713. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1714. # Make sure we can run config.sub.
  1715. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1716. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1717. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1718. { (exit 1); exit 1; }; }
  1719. { echo "$as_me:$LINENO: checking build system type" >&5
  1720. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1721. if test "${ac_cv_build+set}" = set; then
  1722. echo $ECHO_N "(cached) $ECHO_C" >&6
  1723. else
  1724. ac_build_alias=$build_alias
  1725. test "x$ac_build_alias" = x &&
  1726. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1727. test "x$ac_build_alias" = x &&
  1728. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1729. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1730. { (exit 1); exit 1; }; }
  1731. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1732. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1733. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1734. { (exit 1); exit 1; }; }
  1735. fi
  1736. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1737. echo "${ECHO_T}$ac_cv_build" >&6; }
  1738. case $ac_cv_build in
  1739. *-*-*) ;;
  1740. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1741. echo "$as_me: error: invalid value of canonical build" >&2;}
  1742. { (exit 1); exit 1; }; };;
  1743. esac
  1744. build=$ac_cv_build
  1745. ac_save_IFS=$IFS; IFS='-'
  1746. set x $ac_cv_build
  1747. shift
  1748. build_cpu=$1
  1749. build_vendor=$2
  1750. shift; shift
  1751. # Remember, the first character of IFS is used to create $*,
  1752. # except with old shells:
  1753. build_os=$*
  1754. IFS=$ac_save_IFS
  1755. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1756. { echo "$as_me:$LINENO: checking host system type" >&5
  1757. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1758. if test "${ac_cv_host+set}" = set; then
  1759. echo $ECHO_N "(cached) $ECHO_C" >&6
  1760. else
  1761. if test "x$host_alias" = x; then
  1762. ac_cv_host=$ac_cv_build
  1763. else
  1764. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1765. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1766. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1767. { (exit 1); exit 1; }; }
  1768. fi
  1769. fi
  1770. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1771. echo "${ECHO_T}$ac_cv_host" >&6; }
  1772. case $ac_cv_host in
  1773. *-*-*) ;;
  1774. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1775. echo "$as_me: error: invalid value of canonical host" >&2;}
  1776. { (exit 1); exit 1; }; };;
  1777. esac
  1778. host=$ac_cv_host
  1779. ac_save_IFS=$IFS; IFS='-'
  1780. set x $ac_cv_host
  1781. shift
  1782. host_cpu=$1
  1783. host_vendor=$2
  1784. shift; shift
  1785. # Remember, the first character of IFS is used to create $*,
  1786. # except with old shells:
  1787. host_os=$*
  1788. IFS=$ac_save_IFS
  1789. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1790. { echo "$as_me:$LINENO: checking target system type" >&5
  1791. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1792. if test "${ac_cv_target+set}" = set; then
  1793. echo $ECHO_N "(cached) $ECHO_C" >&6
  1794. else
  1795. if test "x$target_alias" = x; then
  1796. ac_cv_target=$ac_cv_host
  1797. else
  1798. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1799. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1800. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1801. { (exit 1); exit 1; }; }
  1802. fi
  1803. fi
  1804. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1805. echo "${ECHO_T}$ac_cv_target" >&6; }
  1806. case $ac_cv_target in
  1807. *-*-*) ;;
  1808. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1809. echo "$as_me: error: invalid value of canonical target" >&2;}
  1810. { (exit 1); exit 1; }; };;
  1811. esac
  1812. target=$ac_cv_target
  1813. ac_save_IFS=$IFS; IFS='-'
  1814. set x $ac_cv_target
  1815. shift
  1816. target_cpu=$1
  1817. target_vendor=$2
  1818. shift; shift
  1819. # Remember, the first character of IFS is used to create $*,
  1820. # except with old shells:
  1821. target_os=$*
  1822. IFS=$ac_save_IFS
  1823. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1824. # The aliases save the names the user supplied, while $host etc.
  1825. # will get canonicalized.
  1826. test -n "$target_alias" &&
  1827. test "$program_prefix$program_suffix$program_transform_name" = \
  1828. NONENONEs,x,x, &&
  1829. program_prefix=${target_alias}-
  1830. am__api_version='1.10'
  1831. # Find a good install program. We prefer a C program (faster),
  1832. # so one script is as good as another. But avoid the broken or
  1833. # incompatible versions:
  1834. # SysV /etc/install, /usr/sbin/install
  1835. # SunOS /usr/etc/install
  1836. # IRIX /sbin/install
  1837. # AIX /bin/install
  1838. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1839. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1840. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1841. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1842. # OS/2's system install, which has a completely different semantic
  1843. # ./install, which can be erroneously created by make from ./install.sh.
  1844. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1845. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1846. if test -z "$INSTALL"; then
  1847. if test "${ac_cv_path_install+set}" = set; then
  1848. echo $ECHO_N "(cached) $ECHO_C" >&6
  1849. else
  1850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1851. for as_dir in $PATH
  1852. do
  1853. IFS=$as_save_IFS
  1854. test -z "$as_dir" && as_dir=.
  1855. # Account for people who put trailing slashes in PATH elements.
  1856. case $as_dir/ in
  1857. ./ | .// | /cC/* | \
  1858. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1859. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1860. /usr/ucb/* ) ;;
  1861. *)
  1862. # OSF1 and SCO ODT 3.0 have their own names for install.
  1863. # Don't use installbsd from OSF since it installs stuff as root
  1864. # by default.
  1865. for ac_prog in ginstall scoinst install; do
  1866. for ac_exec_ext in '' $ac_executable_extensions; do
  1867. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1868. if test $ac_prog = install &&
  1869. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1870. # AIX install. It has an incompatible calling convention.
  1871. :
  1872. elif test $ac_prog = install &&
  1873. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1874. # program-specific install script used by HP pwplus--don't use.
  1875. :
  1876. else
  1877. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1878. break 3
  1879. fi
  1880. fi
  1881. done
  1882. done
  1883. ;;
  1884. esac
  1885. done
  1886. IFS=$as_save_IFS
  1887. fi
  1888. if test "${ac_cv_path_install+set}" = set; then
  1889. INSTALL=$ac_cv_path_install
  1890. else
  1891. # As a last resort, use the slow shell script. Don't cache a
  1892. # value for INSTALL within a source directory, because that will
  1893. # break other packages using the cache if that directory is
  1894. # removed, or if the value is a relative name.
  1895. INSTALL=$ac_install_sh
  1896. fi
  1897. fi
  1898. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1899. echo "${ECHO_T}$INSTALL" >&6; }
  1900. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1901. # It thinks the first close brace ends the variable substitution.
  1902. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1903. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1904. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1905. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1906. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1907. # Just in case
  1908. sleep 1
  1909. echo timestamp > conftest.file
  1910. # Do `set' in a subshell so we don't clobber the current shell's
  1911. # arguments. Must try -L first in case configure is actually a
  1912. # symlink; some systems play weird games with the mod time of symlinks
  1913. # (eg FreeBSD returns the mod time of the symlink's containing
  1914. # directory).
  1915. if (
  1916. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1917. if test "$*" = "X"; then
  1918. # -L didn't work.
  1919. set X `ls -t $srcdir/configure conftest.file`
  1920. fi
  1921. rm -f conftest.file
  1922. if test "$*" != "X $srcdir/configure conftest.file" \
  1923. && test "$*" != "X conftest.file $srcdir/configure"; then
  1924. # If neither matched, then we have a broken ls. This can happen
  1925. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1926. # broken ls alias from the environment. This has actually
  1927. # happened. Such a system could not be considered "sane".
  1928. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1929. alias in your environment" >&5
  1930. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1931. alias in your environment" >&2;}
  1932. { (exit 1); exit 1; }; }
  1933. fi
  1934. test "$2" = conftest.file
  1935. )
  1936. then
  1937. # Ok.
  1938. :
  1939. else
  1940. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1941. Check your system clock" >&5
  1942. echo "$as_me: error: newly created file is older than distributed files!
  1943. Check your system clock" >&2;}
  1944. { (exit 1); exit 1; }; }
  1945. fi
  1946. { echo "$as_me:$LINENO: result: yes" >&5
  1947. echo "${ECHO_T}yes" >&6; }
  1948. test "$program_prefix" != NONE &&
  1949. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1950. # Use a double $ so make ignores it.
  1951. test "$program_suffix" != NONE &&
  1952. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1953. # Double any \ or $. echo might interpret backslashes.
  1954. # By default was `s,x,x', remove it if useless.
  1955. cat <<\_ACEOF >conftest.sed
  1956. s/[\\$]/&&/g;s/;s,x,x,$//
  1957. _ACEOF
  1958. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1959. rm -f conftest.sed
  1960. # expand $ac_aux_dir to an absolute path
  1961. am_aux_dir=`cd $ac_aux_dir && pwd`
  1962. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1963. # Use eval to expand $SHELL
  1964. if eval "$MISSING --run true"; then
  1965. am_missing_run="$MISSING --run "
  1966. else
  1967. am_missing_run=
  1968. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1969. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1970. fi
  1971. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1972. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1973. if test -z "$MKDIR_P"; then
  1974. if test "${ac_cv_path_mkdir+set}" = set; then
  1975. echo $ECHO_N "(cached) $ECHO_C" >&6
  1976. else
  1977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1978. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1979. do
  1980. IFS=$as_save_IFS
  1981. test -z "$as_dir" && as_dir=.
  1982. for ac_prog in mkdir gmkdir; do
  1983. for ac_exec_ext in '' $ac_executable_extensions; do
  1984. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1985. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1986. 'mkdir (GNU coreutils) '* | \
  1987. 'mkdir (coreutils) '* | \
  1988. 'mkdir (fileutils) '4.1*)
  1989. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1990. break 3;;
  1991. esac
  1992. done
  1993. done
  1994. done
  1995. IFS=$as_save_IFS
  1996. fi
  1997. if test "${ac_cv_path_mkdir+set}" = set; then
  1998. MKDIR_P="$ac_cv_path_mkdir -p"
  1999. else
  2000. # As a last resort, use the slow shell script. Don't cache a
  2001. # value for MKDIR_P within a source directory, because that will
  2002. # break other packages using the cache if that directory is
  2003. # removed, or if the value is a relative name.
  2004. test -d ./--version && rmdir ./--version
  2005. MKDIR_P="$ac_install_sh -d"
  2006. fi
  2007. fi
  2008. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2009. echo "${ECHO_T}$MKDIR_P" >&6; }
  2010. mkdir_p="$MKDIR_P"
  2011. case $mkdir_p in
  2012. [\\/$]* | ?:[\\/]*) ;;
  2013. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2014. esac
  2015. for ac_prog in gawk mawk nawk awk
  2016. do
  2017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2018. set dummy $ac_prog; ac_word=$2
  2019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2021. if test "${ac_cv_prog_AWK+set}" = set; then
  2022. echo $ECHO_N "(cached) $ECHO_C" >&6
  2023. else
  2024. if test -n "$AWK"; then
  2025. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2026. else
  2027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2028. for as_dir in $PATH
  2029. do
  2030. IFS=$as_save_IFS
  2031. test -z "$as_dir" && as_dir=.
  2032. for ac_exec_ext in '' $ac_executable_extensions; do
  2033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2034. ac_cv_prog_AWK="$ac_prog"
  2035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2036. break 2
  2037. fi
  2038. done
  2039. done
  2040. IFS=$as_save_IFS
  2041. fi
  2042. fi
  2043. AWK=$ac_cv_prog_AWK
  2044. if test -n "$AWK"; then
  2045. { echo "$as_me:$LINENO: result: $AWK" >&5
  2046. echo "${ECHO_T}$AWK" >&6; }
  2047. else
  2048. { echo "$as_me:$LINENO: result: no" >&5
  2049. echo "${ECHO_T}no" >&6; }
  2050. fi
  2051. test -n "$AWK" && break
  2052. done
  2053. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2054. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2055. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2056. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2057. echo $ECHO_N "(cached) $ECHO_C" >&6
  2058. else
  2059. cat >conftest.make <<\_ACEOF
  2060. SHELL = /bin/sh
  2061. all:
  2062. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2063. _ACEOF
  2064. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2065. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2066. *@@@%%%=?*=@@@%%%*)
  2067. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2068. *)
  2069. eval ac_cv_prog_make_${ac_make}_set=no;;
  2070. esac
  2071. rm -f conftest.make
  2072. fi
  2073. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2074. { echo "$as_me:$LINENO: result: yes" >&5
  2075. echo "${ECHO_T}yes" >&6; }
  2076. SET_MAKE=
  2077. else
  2078. { echo "$as_me:$LINENO: result: no" >&5
  2079. echo "${ECHO_T}no" >&6; }
  2080. SET_MAKE="MAKE=${MAKE-make}"
  2081. fi
  2082. rm -rf .tst 2>/dev/null
  2083. mkdir .tst 2>/dev/null
  2084. if test -d .tst; then
  2085. am__leading_dot=.
  2086. else
  2087. am__leading_dot=_
  2088. fi
  2089. rmdir .tst 2>/dev/null
  2090. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2091. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2092. # is not polluted with repeated "-I."
  2093. am__isrc=' -I$(srcdir)'
  2094. # test to see if srcdir already configured
  2095. if test -f $srcdir/config.status; then
  2096. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2097. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2098. { (exit 1); exit 1; }; }
  2099. fi
  2100. fi
  2101. # test whether we have cygpath
  2102. if test -z "$CYGPATH_W"; then
  2103. if (cygpath --version) >/dev/null 2>/dev/null; then
  2104. CYGPATH_W='cygpath -w'
  2105. else
  2106. CYGPATH_W=echo
  2107. fi
  2108. fi
  2109. # Define the identity of the package.
  2110. PACKAGE='aria2c'
  2111. VERSION='1.0.1'
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE "$PACKAGE"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define VERSION "$VERSION"
  2117. _ACEOF
  2118. # Some tools Automake needs.
  2119. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2120. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2121. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2122. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2123. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2124. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2125. # Installed binaries are usually stripped using `strip' when the user
  2126. # run `make install-strip'. However `strip' might not be the right
  2127. # tool to use in cross-compilation environments, therefore Automake
  2128. # will honor the `STRIP' environment variable to overrule this program.
  2129. if test "$cross_compiling" != no; then
  2130. if test -n "$ac_tool_prefix"; then
  2131. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2132. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2133. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2135. if test "${ac_cv_prog_STRIP+set}" = set; then
  2136. echo $ECHO_N "(cached) $ECHO_C" >&6
  2137. else
  2138. if test -n "$STRIP"; then
  2139. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2140. else
  2141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2142. for as_dir in $PATH
  2143. do
  2144. IFS=$as_save_IFS
  2145. test -z "$as_dir" && as_dir=.
  2146. for ac_exec_ext in '' $ac_executable_extensions; do
  2147. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2148. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2149. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2150. break 2
  2151. fi
  2152. done
  2153. done
  2154. IFS=$as_save_IFS
  2155. fi
  2156. fi
  2157. STRIP=$ac_cv_prog_STRIP
  2158. if test -n "$STRIP"; then
  2159. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2160. echo "${ECHO_T}$STRIP" >&6; }
  2161. else
  2162. { echo "$as_me:$LINENO: result: no" >&5
  2163. echo "${ECHO_T}no" >&6; }
  2164. fi
  2165. fi
  2166. if test -z "$ac_cv_prog_STRIP"; then
  2167. ac_ct_STRIP=$STRIP
  2168. # Extract the first word of "strip", so it can be a program name with args.
  2169. set dummy strip; ac_word=$2
  2170. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2171. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2172. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2173. echo $ECHO_N "(cached) $ECHO_C" >&6
  2174. else
  2175. if test -n "$ac_ct_STRIP"; then
  2176. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2177. else
  2178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2179. for as_dir in $PATH
  2180. do
  2181. IFS=$as_save_IFS
  2182. test -z "$as_dir" && as_dir=.
  2183. for ac_exec_ext in '' $ac_executable_extensions; do
  2184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2185. ac_cv_prog_ac_ct_STRIP="strip"
  2186. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2187. break 2
  2188. fi
  2189. done
  2190. done
  2191. IFS=$as_save_IFS
  2192. fi
  2193. fi
  2194. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2195. if test -n "$ac_ct_STRIP"; then
  2196. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2197. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2198. else
  2199. { echo "$as_me:$LINENO: result: no" >&5
  2200. echo "${ECHO_T}no" >&6; }
  2201. fi
  2202. if test "x$ac_ct_STRIP" = x; then
  2203. STRIP=":"
  2204. else
  2205. case $cross_compiling:$ac_tool_warned in
  2206. yes:)
  2207. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2208. whose name does not start with the host triplet. If you think this
  2209. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2210. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2211. whose name does not start with the host triplet. If you think this
  2212. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2213. ac_tool_warned=yes ;;
  2214. esac
  2215. STRIP=$ac_ct_STRIP
  2216. fi
  2217. else
  2218. STRIP="$ac_cv_prog_STRIP"
  2219. fi
  2220. fi
  2221. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2222. # We need awk for the "check" target. The system "awk" is bad on
  2223. # some platforms.
  2224. # Always define AMTAR for backward compatibility.
  2225. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2226. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2227. # Check whether --with-cppunit-prefix was given.
  2228. if test "${with_cppunit_prefix+set}" = set; then
  2229. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2230. else
  2231. cppunit_config_prefix=""
  2232. fi
  2233. # Check whether --with-cppunit-exec-prefix was given.
  2234. if test "${with_cppunit_exec_prefix+set}" = set; then
  2235. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2236. else
  2237. cppunit_config_exec_prefix=""
  2238. fi
  2239. if test x$cppunit_config_exec_prefix != x ; then
  2240. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2241. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2242. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2243. fi
  2244. fi
  2245. if test x$cppunit_config_prefix != x ; then
  2246. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2247. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2248. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2249. fi
  2250. fi
  2251. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2252. set dummy cppunit-config; ac_word=$2
  2253. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2254. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2255. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2256. echo $ECHO_N "(cached) $ECHO_C" >&6
  2257. else
  2258. case $CPPUNIT_CONFIG in
  2259. [\\/]* | ?:[\\/]*)
  2260. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2261. ;;
  2262. *)
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2270. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2271. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2272. break 2
  2273. fi
  2274. done
  2275. done
  2276. IFS=$as_save_IFS
  2277. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2278. ;;
  2279. esac
  2280. fi
  2281. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2282. if test -n "$CPPUNIT_CONFIG"; then
  2283. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2284. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2285. else
  2286. { echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6; }
  2288. fi
  2289. cppunit_version_min=1.10.2
  2290. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2291. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2292. no_cppunit=""
  2293. if test "$CPPUNIT_CONFIG" = "no" ; then
  2294. { echo "$as_me:$LINENO: result: no" >&5
  2295. echo "${ECHO_T}no" >&6; }
  2296. no_cppunit=yes
  2297. else
  2298. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2299. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2300. cppunit_version=`$CPPUNIT_CONFIG --version`
  2301. cppunit_major_version=`echo $cppunit_version | \
  2302. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2303. cppunit_minor_version=`echo $cppunit_version | \
  2304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2305. cppunit_micro_version=`echo $cppunit_version | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2307. cppunit_major_min=`echo $cppunit_version_min | \
  2308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2309. if test "x${cppunit_major_min}" = "x" ; then
  2310. cppunit_major_min=0
  2311. fi
  2312. cppunit_minor_min=`echo $cppunit_version_min | \
  2313. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2314. if test "x${cppunit_minor_min}" = "x" ; then
  2315. cppunit_minor_min=0
  2316. fi
  2317. cppunit_micro_min=`echo $cppunit_version_min | \
  2318. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2319. if test "x${cppunit_micro_min}" = "x" ; then
  2320. cppunit_micro_min=0
  2321. fi
  2322. cppunit_version_proper=`expr \
  2323. $cppunit_major_version \> $cppunit_major_min \| \
  2324. $cppunit_major_version \= $cppunit_major_min \& \
  2325. $cppunit_minor_version \> $cppunit_minor_min \| \
  2326. $cppunit_major_version \= $cppunit_major_min \& \
  2327. $cppunit_minor_version \= $cppunit_minor_min \& \
  2328. $cppunit_micro_version \>= $cppunit_micro_min `
  2329. if test "$cppunit_version_proper" = "1" ; then
  2330. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2331. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2332. else
  2333. { echo "$as_me:$LINENO: result: no" >&5
  2334. echo "${ECHO_T}no" >&6; }
  2335. no_cppunit=yes
  2336. fi
  2337. fi
  2338. if test "x$no_cppunit" = x ; then
  2339. :
  2340. else
  2341. CPPUNIT_CFLAGS=""
  2342. CPPUNIT_LIBS=""
  2343. :
  2344. fi
  2345. ac_config_headers="$ac_config_headers config.h"
  2346. case "$target" in
  2347. *mingw*|*cygwin*)
  2348. WINSOCK_LIBS="-lws2_32 -lpthread"
  2349. ;;
  2350. esac
  2351. cat >>confdefs.h <<_ACEOF
  2352. #define TARGET "$target"
  2353. _ACEOF
  2354. # Set localedir
  2355. localedir=${datadir}/locale
  2356. # Checks for arguments.
  2357. # Check whether --with-gnutls was given.
  2358. if test "${with_gnutls+set}" = set; then
  2359. withval=$with_gnutls; with_gnutls=$withval
  2360. else
  2361. with_gnutls=yes
  2362. fi
  2363. # Check whether --with-openssl was given.
  2364. if test "${with_openssl+set}" = set; then
  2365. withval=$with_openssl; with_openssl=$withval
  2366. else
  2367. with_openssl=yes
  2368. fi
  2369. # Check whether --with-sqlite3 was given.
  2370. if test "${with_sqlite3+set}" = set; then
  2371. withval=$with_sqlite3; with_sqlite3=$withval
  2372. else
  2373. with_sqlite3=yes
  2374. fi
  2375. # Check whether --with-libxml2 was given.
  2376. if test "${with_libxml2+set}" = set; then
  2377. withval=$with_libxml2; with_libxml2=$withval
  2378. else
  2379. with_libxml2=yes
  2380. fi
  2381. # Check whether --with-libexpat was given.
  2382. if test "${with_libexpat+set}" = set; then
  2383. withval=$with_libexpat; with_libexpat=$withval
  2384. else
  2385. with_libexpat=yes
  2386. fi
  2387. # Check whether --with-libcares was given.
  2388. if test "${with_libcares+set}" = set; then
  2389. withval=$with_libcares; with_libcares=$withval
  2390. else
  2391. with_libcares=yes
  2392. fi
  2393. # Check whether --with-libz was given.
  2394. if test "${with_libz+set}" = set; then
  2395. withval=$with_libz; with_libz=$withval
  2396. else
  2397. with_libz=yes
  2398. fi
  2399. # Check whether --enable-bittorrent was given.
  2400. if test "${enable_bittorrent+set}" = set; then
  2401. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2402. else
  2403. enable_bittorrent=yes
  2404. fi
  2405. # Check whether --enable-metalink was given.
  2406. if test "${enable_metalink+set}" = set; then
  2407. enableval=$enable_metalink; enable_metalink=$enableval
  2408. else
  2409. enable_metalink=yes
  2410. fi
  2411. # Check whether --enable-epoll was given.
  2412. if test "${enable_epoll+set}" = set; then
  2413. enableval=$enable_epoll; enable_epoll=$enableval
  2414. else
  2415. enable_epoll=yes
  2416. fi
  2417. # Checks for programs.
  2418. ac_ext=cpp
  2419. ac_cpp='$CXXCPP $CPPFLAGS'
  2420. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2421. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2422. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2423. if test -z "$CXX"; then
  2424. if test -n "$CCC"; then
  2425. CXX=$CCC
  2426. else
  2427. if test -n "$ac_tool_prefix"; then
  2428. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2429. do
  2430. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2431. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2432. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2433. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2434. if test "${ac_cv_prog_CXX+set}" = set; then
  2435. echo $ECHO_N "(cached) $ECHO_C" >&6
  2436. else
  2437. if test -n "$CXX"; then
  2438. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2439. else
  2440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2441. for as_dir in $PATH
  2442. do
  2443. IFS=$as_save_IFS
  2444. test -z "$as_dir" && as_dir=.
  2445. for ac_exec_ext in '' $ac_executable_extensions; do
  2446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2447. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2448. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2449. break 2
  2450. fi
  2451. done
  2452. done
  2453. IFS=$as_save_IFS
  2454. fi
  2455. fi
  2456. CXX=$ac_cv_prog_CXX
  2457. if test -n "$CXX"; then
  2458. { echo "$as_me:$LINENO: result: $CXX" >&5
  2459. echo "${ECHO_T}$CXX" >&6; }
  2460. else
  2461. { echo "$as_me:$LINENO: result: no" >&5
  2462. echo "${ECHO_T}no" >&6; }
  2463. fi
  2464. test -n "$CXX" && break
  2465. done
  2466. fi
  2467. if test -z "$CXX"; then
  2468. ac_ct_CXX=$CXX
  2469. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2470. do
  2471. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2472. set dummy $ac_prog; ac_word=$2
  2473. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2474. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2475. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2476. echo $ECHO_N "(cached) $ECHO_C" >&6
  2477. else
  2478. if test -n "$ac_ct_CXX"; then
  2479. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2480. else
  2481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2482. for as_dir in $PATH
  2483. do
  2484. IFS=$as_save_IFS
  2485. test -z "$as_dir" && as_dir=.
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2488. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2489. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2490. break 2
  2491. fi
  2492. done
  2493. done
  2494. IFS=$as_save_IFS
  2495. fi
  2496. fi
  2497. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2498. if test -n "$ac_ct_CXX"; then
  2499. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2500. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2501. else
  2502. { echo "$as_me:$LINENO: result: no" >&5
  2503. echo "${ECHO_T}no" >&6; }
  2504. fi
  2505. test -n "$ac_ct_CXX" && break
  2506. done
  2507. if test "x$ac_ct_CXX" = x; then
  2508. CXX="g++"
  2509. else
  2510. case $cross_compiling:$ac_tool_warned in
  2511. yes:)
  2512. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2513. whose name does not start with the host triplet. If you think this
  2514. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2515. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2516. whose name does not start with the host triplet. If you think this
  2517. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2518. ac_tool_warned=yes ;;
  2519. esac
  2520. CXX=$ac_ct_CXX
  2521. fi
  2522. fi
  2523. fi
  2524. fi
  2525. # Provide some information about the compiler.
  2526. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2527. ac_compiler=`set X $ac_compile; echo $2`
  2528. { (ac_try="$ac_compiler --version >&5"
  2529. case "(($ac_try" in
  2530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2531. *) ac_try_echo=$ac_try;;
  2532. esac
  2533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2534. (eval "$ac_compiler --version >&5") 2>&5
  2535. ac_status=$?
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); }
  2538. { (ac_try="$ac_compiler -v >&5"
  2539. case "(($ac_try" in
  2540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2541. *) ac_try_echo=$ac_try;;
  2542. esac
  2543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2544. (eval "$ac_compiler -v >&5") 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }
  2548. { (ac_try="$ac_compiler -V >&5"
  2549. case "(($ac_try" in
  2550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2551. *) ac_try_echo=$ac_try;;
  2552. esac
  2553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2554. (eval "$ac_compiler -V >&5") 2>&5
  2555. ac_status=$?
  2556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2557. (exit $ac_status); }
  2558. cat >conftest.$ac_ext <<_ACEOF
  2559. /* confdefs.h. */
  2560. _ACEOF
  2561. cat confdefs.h >>conftest.$ac_ext
  2562. cat >>conftest.$ac_ext <<_ACEOF
  2563. /* end confdefs.h. */
  2564. int
  2565. main ()
  2566. {
  2567. ;
  2568. return 0;
  2569. }
  2570. _ACEOF
  2571. ac_clean_files_save=$ac_clean_files
  2572. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2573. # Try to create an executable without -o first, disregard a.out.
  2574. # It will help us diagnose broken compilers, and finding out an intuition
  2575. # of exeext.
  2576. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2577. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2578. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2579. #
  2580. # List of possible output files, starting from the most likely.
  2581. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2582. # only as a last resort. b.out is created by i960 compilers.
  2583. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2584. #
  2585. # The IRIX 6 linker writes into existing files which may not be
  2586. # executable, retaining their permissions. Remove them first so a
  2587. # subsequent execution test works.
  2588. ac_rmfiles=
  2589. for ac_file in $ac_files
  2590. do
  2591. case $ac_file in
  2592. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2593. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2594. esac
  2595. done
  2596. rm -f $ac_rmfiles
  2597. if { (ac_try="$ac_link_default"
  2598. case "(($ac_try" in
  2599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2600. *) ac_try_echo=$ac_try;;
  2601. esac
  2602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2603. (eval "$ac_link_default") 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; then
  2607. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2608. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2609. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2610. # so that the user can short-circuit this test for compilers unknown to
  2611. # Autoconf.
  2612. for ac_file in $ac_files ''
  2613. do
  2614. test -f "$ac_file" || continue
  2615. case $ac_file in
  2616. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2617. ;;
  2618. [ab].out )
  2619. # We found the default executable, but exeext='' is most
  2620. # certainly right.
  2621. break;;
  2622. *.* )
  2623. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2624. then :; else
  2625. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2626. fi
  2627. # We set ac_cv_exeext here because the later test for it is not
  2628. # safe: cross compilers may not add the suffix if given an `-o'
  2629. # argument, so we may need to know it at that point already.
  2630. # Even if this section looks crufty: it has the advantage of
  2631. # actually working.
  2632. break;;
  2633. * )
  2634. break;;
  2635. esac
  2636. done
  2637. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2638. else
  2639. ac_file=''
  2640. fi
  2641. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2642. echo "${ECHO_T}$ac_file" >&6; }
  2643. if test -z "$ac_file"; then
  2644. echo "$as_me: failed program was:" >&5
  2645. sed 's/^/| /' conftest.$ac_ext >&5
  2646. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2647. See \`config.log' for more details." >&5
  2648. echo "$as_me: error: C++ compiler cannot create executables
  2649. See \`config.log' for more details." >&2;}
  2650. { (exit 77); exit 77; }; }
  2651. fi
  2652. ac_exeext=$ac_cv_exeext
  2653. # Check that the compiler produces executables we can run. If not, either
  2654. # the compiler is broken, or we cross compile.
  2655. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2656. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2657. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2658. # If not cross compiling, check that we can run a simple program.
  2659. if test "$cross_compiling" != yes; then
  2660. if { ac_try='./$ac_file'
  2661. { (case "(($ac_try" in
  2662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2663. *) ac_try_echo=$ac_try;;
  2664. esac
  2665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2666. (eval "$ac_try") 2>&5
  2667. ac_status=$?
  2668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2669. (exit $ac_status); }; }; then
  2670. cross_compiling=no
  2671. else
  2672. if test "$cross_compiling" = maybe; then
  2673. cross_compiling=yes
  2674. else
  2675. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2676. If you meant to cross compile, use \`--host'.
  2677. See \`config.log' for more details." >&5
  2678. echo "$as_me: error: cannot run C++ compiled programs.
  2679. If you meant to cross compile, use \`--host'.
  2680. See \`config.log' for more details." >&2;}
  2681. { (exit 1); exit 1; }; }
  2682. fi
  2683. fi
  2684. fi
  2685. { echo "$as_me:$LINENO: result: yes" >&5
  2686. echo "${ECHO_T}yes" >&6; }
  2687. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2688. ac_clean_files=$ac_clean_files_save
  2689. # Check that the compiler produces executables we can run. If not, either
  2690. # the compiler is broken, or we cross compile.
  2691. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2692. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2693. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2694. echo "${ECHO_T}$cross_compiling" >&6; }
  2695. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2696. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2697. if { (ac_try="$ac_link"
  2698. case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2703. (eval "$ac_link") 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }; then
  2707. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2708. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2709. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2710. # `rm'.
  2711. for ac_file in conftest.exe conftest conftest.*; do
  2712. test -f "$ac_file" || continue
  2713. case $ac_file in
  2714. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2715. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2716. break;;
  2717. * ) break;;
  2718. esac
  2719. done
  2720. else
  2721. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2722. See \`config.log' for more details." >&5
  2723. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2724. See \`config.log' for more details." >&2;}
  2725. { (exit 1); exit 1; }; }
  2726. fi
  2727. rm -f conftest$ac_cv_exeext
  2728. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2729. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2730. rm -f conftest.$ac_ext
  2731. EXEEXT=$ac_cv_exeext
  2732. ac_exeext=$EXEEXT
  2733. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2734. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2735. if test "${ac_cv_objext+set}" = set; then
  2736. echo $ECHO_N "(cached) $ECHO_C" >&6
  2737. else
  2738. cat >conftest.$ac_ext <<_ACEOF
  2739. /* confdefs.h. */
  2740. _ACEOF
  2741. cat confdefs.h >>conftest.$ac_ext
  2742. cat >>conftest.$ac_ext <<_ACEOF
  2743. /* end confdefs.h. */
  2744. int
  2745. main ()
  2746. {
  2747. ;
  2748. return 0;
  2749. }
  2750. _ACEOF
  2751. rm -f conftest.o conftest.obj
  2752. if { (ac_try="$ac_compile"
  2753. case "(($ac_try" in
  2754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2755. *) ac_try_echo=$ac_try;;
  2756. esac
  2757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2758. (eval "$ac_compile") 2>&5
  2759. ac_status=$?
  2760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2761. (exit $ac_status); }; then
  2762. for ac_file in conftest.o conftest.obj conftest.*; do
  2763. test -f "$ac_file" || continue;
  2764. case $ac_file in
  2765. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2766. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2767. break;;
  2768. esac
  2769. done
  2770. else
  2771. echo "$as_me: failed program was:" >&5
  2772. sed 's/^/| /' conftest.$ac_ext >&5
  2773. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2774. See \`config.log' for more details." >&5
  2775. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2776. See \`config.log' for more details." >&2;}
  2777. { (exit 1); exit 1; }; }
  2778. fi
  2779. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2780. fi
  2781. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2782. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2783. OBJEXT=$ac_cv_objext
  2784. ac_objext=$OBJEXT
  2785. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2786. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2787. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. cat >conftest.$ac_ext <<_ACEOF
  2791. /* confdefs.h. */
  2792. _ACEOF
  2793. cat confdefs.h >>conftest.$ac_ext
  2794. cat >>conftest.$ac_ext <<_ACEOF
  2795. /* end confdefs.h. */
  2796. int
  2797. main ()
  2798. {
  2799. #ifndef __GNUC__
  2800. choke me
  2801. #endif
  2802. ;
  2803. return 0;
  2804. }
  2805. _ACEOF
  2806. rm -f conftest.$ac_objext
  2807. if { (ac_try="$ac_compile"
  2808. case "(($ac_try" in
  2809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2810. *) ac_try_echo=$ac_try;;
  2811. esac
  2812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2813. (eval "$ac_compile") 2>conftest.er1
  2814. ac_status=$?
  2815. grep -v '^ *+' conftest.er1 >conftest.err
  2816. rm -f conftest.er1
  2817. cat conftest.err >&5
  2818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2819. (exit $ac_status); } && {
  2820. test -z "$ac_cxx_werror_flag" ||
  2821. test ! -s conftest.err
  2822. } && test -s conftest.$ac_objext; then
  2823. ac_compiler_gnu=yes
  2824. else
  2825. echo "$as_me: failed program was:" >&5
  2826. sed 's/^/| /' conftest.$ac_ext >&5
  2827. ac_compiler_gnu=no
  2828. fi
  2829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2830. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2831. fi
  2832. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2833. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2834. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2835. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2836. ac_save_CXXFLAGS=$CXXFLAGS
  2837. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2838. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2839. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2840. echo $ECHO_N "(cached) $ECHO_C" >&6
  2841. else
  2842. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2843. ac_cxx_werror_flag=yes
  2844. ac_cv_prog_cxx_g=no
  2845. CXXFLAGS="-g"
  2846. cat >conftest.$ac_ext <<_ACEOF
  2847. /* confdefs.h. */
  2848. _ACEOF
  2849. cat confdefs.h >>conftest.$ac_ext
  2850. cat >>conftest.$ac_ext <<_ACEOF
  2851. /* end confdefs.h. */
  2852. int
  2853. main ()
  2854. {
  2855. ;
  2856. return 0;
  2857. }
  2858. _ACEOF
  2859. rm -f conftest.$ac_objext
  2860. if { (ac_try="$ac_compile"
  2861. case "(($ac_try" in
  2862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2863. *) ac_try_echo=$ac_try;;
  2864. esac
  2865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2866. (eval "$ac_compile") 2>conftest.er1
  2867. ac_status=$?
  2868. grep -v '^ *+' conftest.er1 >conftest.err
  2869. rm -f conftest.er1
  2870. cat conftest.err >&5
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); } && {
  2873. test -z "$ac_cxx_werror_flag" ||
  2874. test ! -s conftest.err
  2875. } && test -s conftest.$ac_objext; then
  2876. ac_cv_prog_cxx_g=yes
  2877. else
  2878. echo "$as_me: failed program was:" >&5
  2879. sed 's/^/| /' conftest.$ac_ext >&5
  2880. CXXFLAGS=""
  2881. cat >conftest.$ac_ext <<_ACEOF
  2882. /* confdefs.h. */
  2883. _ACEOF
  2884. cat confdefs.h >>conftest.$ac_ext
  2885. cat >>conftest.$ac_ext <<_ACEOF
  2886. /* end confdefs.h. */
  2887. int
  2888. main ()
  2889. {
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. rm -f conftest.$ac_objext
  2895. if { (ac_try="$ac_compile"
  2896. case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2901. (eval "$ac_compile") 2>conftest.er1
  2902. ac_status=$?
  2903. grep -v '^ *+' conftest.er1 >conftest.err
  2904. rm -f conftest.er1
  2905. cat conftest.err >&5
  2906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2907. (exit $ac_status); } && {
  2908. test -z "$ac_cxx_werror_flag" ||
  2909. test ! -s conftest.err
  2910. } && test -s conftest.$ac_objext; then
  2911. :
  2912. else
  2913. echo "$as_me: failed program was:" >&5
  2914. sed 's/^/| /' conftest.$ac_ext >&5
  2915. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2916. CXXFLAGS="-g"
  2917. cat >conftest.$ac_ext <<_ACEOF
  2918. /* confdefs.h. */
  2919. _ACEOF
  2920. cat confdefs.h >>conftest.$ac_ext
  2921. cat >>conftest.$ac_ext <<_ACEOF
  2922. /* end confdefs.h. */
  2923. int
  2924. main ()
  2925. {
  2926. ;
  2927. return 0;
  2928. }
  2929. _ACEOF
  2930. rm -f conftest.$ac_objext
  2931. if { (ac_try="$ac_compile"
  2932. case "(($ac_try" in
  2933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2934. *) ac_try_echo=$ac_try;;
  2935. esac
  2936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2937. (eval "$ac_compile") 2>conftest.er1
  2938. ac_status=$?
  2939. grep -v '^ *+' conftest.er1 >conftest.err
  2940. rm -f conftest.er1
  2941. cat conftest.err >&5
  2942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2943. (exit $ac_status); } && {
  2944. test -z "$ac_cxx_werror_flag" ||
  2945. test ! -s conftest.err
  2946. } && test -s conftest.$ac_objext; then
  2947. ac_cv_prog_cxx_g=yes
  2948. else
  2949. echo "$as_me: failed program was:" >&5
  2950. sed 's/^/| /' conftest.$ac_ext >&5
  2951. fi
  2952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2953. fi
  2954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2958. fi
  2959. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2960. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2961. if test "$ac_test_CXXFLAGS" = set; then
  2962. CXXFLAGS=$ac_save_CXXFLAGS
  2963. elif test $ac_cv_prog_cxx_g = yes; then
  2964. if test "$GXX" = yes; then
  2965. CXXFLAGS="-g -O2"
  2966. else
  2967. CXXFLAGS="-g"
  2968. fi
  2969. else
  2970. if test "$GXX" = yes; then
  2971. CXXFLAGS="-O2"
  2972. else
  2973. CXXFLAGS=
  2974. fi
  2975. fi
  2976. ac_ext=c
  2977. ac_cpp='$CPP $CPPFLAGS'
  2978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2981. DEPDIR="${am__leading_dot}deps"
  2982. ac_config_commands="$ac_config_commands depfiles"
  2983. am_make=${MAKE-make}
  2984. cat > confinc << 'END'
  2985. am__doit:
  2986. @echo done
  2987. .PHONY: am__doit
  2988. END
  2989. # If we don't find an include directive, just comment out the code.
  2990. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2991. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2992. am__include="#"
  2993. am__quote=
  2994. _am_result=none
  2995. # First try GNU make style include.
  2996. echo "include confinc" > confmf
  2997. # We grep out `Entering directory' and `Leaving directory'
  2998. # messages which can occur if `w' ends up in MAKEFLAGS.
  2999. # In particular we don't look at `^make:' because GNU make might
  3000. # be invoked under some other name (usually "gmake"), in which
  3001. # case it prints its new name instead of `make'.
  3002. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3003. am__include=include
  3004. am__quote=
  3005. _am_result=GNU
  3006. fi
  3007. # Now try BSD make style include.
  3008. if test "$am__include" = "#"; then
  3009. echo '.include "confinc"' > confmf
  3010. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3011. am__include=.include
  3012. am__quote="\""
  3013. _am_result=BSD
  3014. fi
  3015. fi
  3016. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3017. echo "${ECHO_T}$_am_result" >&6; }
  3018. rm -f confinc confmf
  3019. # Check whether --enable-dependency-tracking was given.
  3020. if test "${enable_dependency_tracking+set}" = set; then
  3021. enableval=$enable_dependency_tracking;
  3022. fi
  3023. if test "x$enable_dependency_tracking" != xno; then
  3024. am_depcomp="$ac_aux_dir/depcomp"
  3025. AMDEPBACKSLASH='\'
  3026. fi
  3027. if test "x$enable_dependency_tracking" != xno; then
  3028. AMDEP_TRUE=
  3029. AMDEP_FALSE='#'
  3030. else
  3031. AMDEP_TRUE='#'
  3032. AMDEP_FALSE=
  3033. fi
  3034. depcc="$CXX" am_compiler_list=
  3035. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3036. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3037. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3038. echo $ECHO_N "(cached) $ECHO_C" >&6
  3039. else
  3040. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3041. # We make a subdir and do the tests there. Otherwise we can end up
  3042. # making bogus files that we don't know about and never remove. For
  3043. # instance it was reported that on HP-UX the gcc test will end up
  3044. # making a dummy file named `D' -- because `-MD' means `put the output
  3045. # in D'.
  3046. mkdir conftest.dir
  3047. # Copy depcomp to subdir because otherwise we won't find it if we're
  3048. # using a relative directory.
  3049. cp "$am_depcomp" conftest.dir
  3050. cd conftest.dir
  3051. # We will build objects and dependencies in a subdirectory because
  3052. # it helps to detect inapplicable dependency modes. For instance
  3053. # both Tru64's cc and ICC support -MD to output dependencies as a
  3054. # side effect of compilation, but ICC will put the dependencies in
  3055. # the current directory while Tru64 will put them in the object
  3056. # directory.
  3057. mkdir sub
  3058. am_cv_CXX_dependencies_compiler_type=none
  3059. if test "$am_compiler_list" = ""; then
  3060. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3061. fi
  3062. for depmode in $am_compiler_list; do
  3063. # Setup a source with many dependencies, because some compilers
  3064. # like to wrap large dependency lists on column 80 (with \), and
  3065. # we should not choose a depcomp mode which is confused by this.
  3066. #
  3067. # We need to recreate these files for each test, as the compiler may
  3068. # overwrite some of them when testing with obscure command lines.
  3069. # This happens at least with the AIX C compiler.
  3070. : > sub/conftest.c
  3071. for i in 1 2 3 4 5 6; do
  3072. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3073. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3074. # Solaris 8's {/usr,}/bin/sh.
  3075. touch sub/conftst$i.h
  3076. done
  3077. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3078. case $depmode in
  3079. nosideeffect)
  3080. # after this tag, mechanisms are not by side-effect, so they'll
  3081. # only be used when explicitly requested
  3082. if test "x$enable_dependency_tracking" = xyes; then
  3083. continue
  3084. else
  3085. break
  3086. fi
  3087. ;;
  3088. none) break ;;
  3089. esac
  3090. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3091. # mode. It turns out that the SunPro C++ compiler does not properly
  3092. # handle `-M -o', and we need to detect this.
  3093. if depmode=$depmode \
  3094. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3095. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3096. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3097. >/dev/null 2>conftest.err &&
  3098. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3099. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3100. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3101. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3102. # icc doesn't choke on unknown options, it will just issue warnings
  3103. # or remarks (even with -Werror). So we grep stderr for any message
  3104. # that says an option was ignored or not supported.
  3105. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3106. # icc: Command line warning: ignoring option '-M'; no argument required
  3107. # The diagnosis changed in icc 8.0:
  3108. # icc: Command line remark: option '-MP' not supported
  3109. if (grep 'ignoring option' conftest.err ||
  3110. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3111. am_cv_CXX_dependencies_compiler_type=$depmode
  3112. break
  3113. fi
  3114. fi
  3115. done
  3116. cd ..
  3117. rm -rf conftest.dir
  3118. else
  3119. am_cv_CXX_dependencies_compiler_type=none
  3120. fi
  3121. fi
  3122. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3123. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3124. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3125. if
  3126. test "x$enable_dependency_tracking" != xno \
  3127. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3128. am__fastdepCXX_TRUE=
  3129. am__fastdepCXX_FALSE='#'
  3130. else
  3131. am__fastdepCXX_TRUE='#'
  3132. am__fastdepCXX_FALSE=
  3133. fi
  3134. ac_ext=c
  3135. ac_cpp='$CPP $CPPFLAGS'
  3136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3139. if test -n "$ac_tool_prefix"; then
  3140. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3141. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3142. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3144. if test "${ac_cv_prog_CC+set}" = set; then
  3145. echo $ECHO_N "(cached) $ECHO_C" >&6
  3146. else
  3147. if test -n "$CC"; then
  3148. ac_cv_prog_CC="$CC" # Let the user override the test.
  3149. else
  3150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3151. for as_dir in $PATH
  3152. do
  3153. IFS=$as_save_IFS
  3154. test -z "$as_dir" && as_dir=.
  3155. for ac_exec_ext in '' $ac_executable_extensions; do
  3156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3157. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3159. break 2
  3160. fi
  3161. done
  3162. done
  3163. IFS=$as_save_IFS
  3164. fi
  3165. fi
  3166. CC=$ac_cv_prog_CC
  3167. if test -n "$CC"; then
  3168. { echo "$as_me:$LINENO: result: $CC" >&5
  3169. echo "${ECHO_T}$CC" >&6; }
  3170. else
  3171. { echo "$as_me:$LINENO: result: no" >&5
  3172. echo "${ECHO_T}no" >&6; }
  3173. fi
  3174. fi
  3175. if test -z "$ac_cv_prog_CC"; then
  3176. ac_ct_CC=$CC
  3177. # Extract the first word of "gcc", so it can be a program name with args.
  3178. set dummy gcc; ac_word=$2
  3179. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3181. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3182. echo $ECHO_N "(cached) $ECHO_C" >&6
  3183. else
  3184. if test -n "$ac_ct_CC"; then
  3185. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3186. else
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3194. ac_cv_prog_ac_ct_CC="gcc"
  3195. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3196. break 2
  3197. fi
  3198. done
  3199. done
  3200. IFS=$as_save_IFS
  3201. fi
  3202. fi
  3203. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3204. if test -n "$ac_ct_CC"; then
  3205. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3206. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3207. else
  3208. { echo "$as_me:$LINENO: result: no" >&5
  3209. echo "${ECHO_T}no" >&6; }
  3210. fi
  3211. if test "x$ac_ct_CC" = x; then
  3212. CC=""
  3213. else
  3214. case $cross_compiling:$ac_tool_warned in
  3215. yes:)
  3216. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3217. whose name does not start with the host triplet. If you think this
  3218. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3219. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3220. whose name does not start with the host triplet. If you think this
  3221. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3222. ac_tool_warned=yes ;;
  3223. esac
  3224. CC=$ac_ct_CC
  3225. fi
  3226. else
  3227. CC="$ac_cv_prog_CC"
  3228. fi
  3229. if test -z "$CC"; then
  3230. if test -n "$ac_tool_prefix"; then
  3231. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3232. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3233. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3234. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3235. if test "${ac_cv_prog_CC+set}" = set; then
  3236. echo $ECHO_N "(cached) $ECHO_C" >&6
  3237. else
  3238. if test -n "$CC"; then
  3239. ac_cv_prog_CC="$CC" # Let the user override the test.
  3240. else
  3241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3242. for as_dir in $PATH
  3243. do
  3244. IFS=$as_save_IFS
  3245. test -z "$as_dir" && as_dir=.
  3246. for ac_exec_ext in '' $ac_executable_extensions; do
  3247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3248. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3249. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3250. break 2
  3251. fi
  3252. done
  3253. done
  3254. IFS=$as_save_IFS
  3255. fi
  3256. fi
  3257. CC=$ac_cv_prog_CC
  3258. if test -n "$CC"; then
  3259. { echo "$as_me:$LINENO: result: $CC" >&5
  3260. echo "${ECHO_T}$CC" >&6; }
  3261. else
  3262. { echo "$as_me:$LINENO: result: no" >&5
  3263. echo "${ECHO_T}no" >&6; }
  3264. fi
  3265. fi
  3266. fi
  3267. if test -z "$CC"; then
  3268. # Extract the first word of "cc", so it can be a program name with args.
  3269. set dummy cc; ac_word=$2
  3270. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3271. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3272. if test "${ac_cv_prog_CC+set}" = set; then
  3273. echo $ECHO_N "(cached) $ECHO_C" >&6
  3274. else
  3275. if test -n "$CC"; then
  3276. ac_cv_prog_CC="$CC" # Let the user override the test.
  3277. else
  3278. ac_prog_rejected=no
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. test -z "$as_dir" && as_dir=.
  3284. for ac_exec_ext in '' $ac_executable_extensions; do
  3285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3286. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3287. ac_prog_rejected=yes
  3288. continue
  3289. fi
  3290. ac_cv_prog_CC="cc"
  3291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3292. break 2
  3293. fi
  3294. done
  3295. done
  3296. IFS=$as_save_IFS
  3297. if test $ac_prog_rejected = yes; then
  3298. # We found a bogon in the path, so make sure we never use it.
  3299. set dummy $ac_cv_prog_CC
  3300. shift
  3301. if test $# != 0; then
  3302. # We chose a different compiler from the bogus one.
  3303. # However, it has the same basename, so the bogon will be chosen
  3304. # first if we set CC to just the basename; use the full file name.
  3305. shift
  3306. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3307. fi
  3308. fi
  3309. fi
  3310. fi
  3311. CC=$ac_cv_prog_CC
  3312. if test -n "$CC"; then
  3313. { echo "$as_me:$LINENO: result: $CC" >&5
  3314. echo "${ECHO_T}$CC" >&6; }
  3315. else
  3316. { echo "$as_me:$LINENO: result: no" >&5
  3317. echo "${ECHO_T}no" >&6; }
  3318. fi
  3319. fi
  3320. if test -z "$CC"; then
  3321. if test -n "$ac_tool_prefix"; then
  3322. for ac_prog in cl.exe
  3323. do
  3324. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3325. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3326. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3327. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3328. if test "${ac_cv_prog_CC+set}" = set; then
  3329. echo $ECHO_N "(cached) $ECHO_C" >&6
  3330. else
  3331. if test -n "$CC"; then
  3332. ac_cv_prog_CC="$CC" # Let the user override the test.
  3333. else
  3334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3335. for as_dir in $PATH
  3336. do
  3337. IFS=$as_save_IFS
  3338. test -z "$as_dir" && as_dir=.
  3339. for ac_exec_ext in '' $ac_executable_extensions; do
  3340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3341. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3342. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3343. break 2
  3344. fi
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. fi
  3349. fi
  3350. CC=$ac_cv_prog_CC
  3351. if test -n "$CC"; then
  3352. { echo "$as_me:$LINENO: result: $CC" >&5
  3353. echo "${ECHO_T}$CC" >&6; }
  3354. else
  3355. { echo "$as_me:$LINENO: result: no" >&5
  3356. echo "${ECHO_T}no" >&6; }
  3357. fi
  3358. test -n "$CC" && break
  3359. done
  3360. fi
  3361. if test -z "$CC"; then
  3362. ac_ct_CC=$CC
  3363. for ac_prog in cl.exe
  3364. do
  3365. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3366. set dummy $ac_prog; ac_word=$2
  3367. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3369. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3370. echo $ECHO_N "(cached) $ECHO_C" >&6
  3371. else
  3372. if test -n "$ac_ct_CC"; then
  3373. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3374. else
  3375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3376. for as_dir in $PATH
  3377. do
  3378. IFS=$as_save_IFS
  3379. test -z "$as_dir" && as_dir=.
  3380. for ac_exec_ext in '' $ac_executable_extensions; do
  3381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3382. ac_cv_prog_ac_ct_CC="$ac_prog"
  3383. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3384. break 2
  3385. fi
  3386. done
  3387. done
  3388. IFS=$as_save_IFS
  3389. fi
  3390. fi
  3391. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3392. if test -n "$ac_ct_CC"; then
  3393. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3394. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3395. else
  3396. { echo "$as_me:$LINENO: result: no" >&5
  3397. echo "${ECHO_T}no" >&6; }
  3398. fi
  3399. test -n "$ac_ct_CC" && break
  3400. done
  3401. if test "x$ac_ct_CC" = x; then
  3402. CC=""
  3403. else
  3404. case $cross_compiling:$ac_tool_warned in
  3405. yes:)
  3406. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3407. whose name does not start with the host triplet. If you think this
  3408. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3409. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3410. whose name does not start with the host triplet. If you think this
  3411. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3412. ac_tool_warned=yes ;;
  3413. esac
  3414. CC=$ac_ct_CC
  3415. fi
  3416. fi
  3417. fi
  3418. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3419. See \`config.log' for more details." >&5
  3420. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3421. See \`config.log' for more details." >&2;}
  3422. { (exit 1); exit 1; }; }
  3423. # Provide some information about the compiler.
  3424. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3425. ac_compiler=`set X $ac_compile; echo $2`
  3426. { (ac_try="$ac_compiler --version >&5"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3432. (eval "$ac_compiler --version >&5") 2>&5
  3433. ac_status=$?
  3434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3435. (exit $ac_status); }
  3436. { (ac_try="$ac_compiler -v >&5"
  3437. case "(($ac_try" in
  3438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3439. *) ac_try_echo=$ac_try;;
  3440. esac
  3441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3442. (eval "$ac_compiler -v >&5") 2>&5
  3443. ac_status=$?
  3444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3445. (exit $ac_status); }
  3446. { (ac_try="$ac_compiler -V >&5"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3452. (eval "$ac_compiler -V >&5") 2>&5
  3453. ac_status=$?
  3454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3455. (exit $ac_status); }
  3456. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3457. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3458. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3459. echo $ECHO_N "(cached) $ECHO_C" >&6
  3460. else
  3461. cat >conftest.$ac_ext <<_ACEOF
  3462. /* confdefs.h. */
  3463. _ACEOF
  3464. cat confdefs.h >>conftest.$ac_ext
  3465. cat >>conftest.$ac_ext <<_ACEOF
  3466. /* end confdefs.h. */
  3467. int
  3468. main ()
  3469. {
  3470. #ifndef __GNUC__
  3471. choke me
  3472. #endif
  3473. ;
  3474. return 0;
  3475. }
  3476. _ACEOF
  3477. rm -f conftest.$ac_objext
  3478. if { (ac_try="$ac_compile"
  3479. case "(($ac_try" in
  3480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3481. *) ac_try_echo=$ac_try;;
  3482. esac
  3483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3484. (eval "$ac_compile") 2>conftest.er1
  3485. ac_status=$?
  3486. grep -v '^ *+' conftest.er1 >conftest.err
  3487. rm -f conftest.er1
  3488. cat conftest.err >&5
  3489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3490. (exit $ac_status); } && {
  3491. test -z "$ac_c_werror_flag" ||
  3492. test ! -s conftest.err
  3493. } && test -s conftest.$ac_objext; then
  3494. ac_compiler_gnu=yes
  3495. else
  3496. echo "$as_me: failed program was:" >&5
  3497. sed 's/^/| /' conftest.$ac_ext >&5
  3498. ac_compiler_gnu=no
  3499. fi
  3500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3501. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3502. fi
  3503. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3504. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3505. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3506. ac_test_CFLAGS=${CFLAGS+set}
  3507. ac_save_CFLAGS=$CFLAGS
  3508. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3509. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3510. if test "${ac_cv_prog_cc_g+set}" = set; then
  3511. echo $ECHO_N "(cached) $ECHO_C" >&6
  3512. else
  3513. ac_save_c_werror_flag=$ac_c_werror_flag
  3514. ac_c_werror_flag=yes
  3515. ac_cv_prog_cc_g=no
  3516. CFLAGS="-g"
  3517. cat >conftest.$ac_ext <<_ACEOF
  3518. /* confdefs.h. */
  3519. _ACEOF
  3520. cat confdefs.h >>conftest.$ac_ext
  3521. cat >>conftest.$ac_ext <<_ACEOF
  3522. /* end confdefs.h. */
  3523. int
  3524. main ()
  3525. {
  3526. ;
  3527. return 0;
  3528. }
  3529. _ACEOF
  3530. rm -f conftest.$ac_objext
  3531. if { (ac_try="$ac_compile"
  3532. case "(($ac_try" in
  3533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3534. *) ac_try_echo=$ac_try;;
  3535. esac
  3536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3537. (eval "$ac_compile") 2>conftest.er1
  3538. ac_status=$?
  3539. grep -v '^ *+' conftest.er1 >conftest.err
  3540. rm -f conftest.er1
  3541. cat conftest.err >&5
  3542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3543. (exit $ac_status); } && {
  3544. test -z "$ac_c_werror_flag" ||
  3545. test ! -s conftest.err
  3546. } && test -s conftest.$ac_objext; then
  3547. ac_cv_prog_cc_g=yes
  3548. else
  3549. echo "$as_me: failed program was:" >&5
  3550. sed 's/^/| /' conftest.$ac_ext >&5
  3551. CFLAGS=""
  3552. cat >conftest.$ac_ext <<_ACEOF
  3553. /* confdefs.h. */
  3554. _ACEOF
  3555. cat confdefs.h >>conftest.$ac_ext
  3556. cat >>conftest.$ac_ext <<_ACEOF
  3557. /* end confdefs.h. */
  3558. int
  3559. main ()
  3560. {
  3561. ;
  3562. return 0;
  3563. }
  3564. _ACEOF
  3565. rm -f conftest.$ac_objext
  3566. if { (ac_try="$ac_compile"
  3567. case "(($ac_try" in
  3568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3569. *) ac_try_echo=$ac_try;;
  3570. esac
  3571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3572. (eval "$ac_compile") 2>conftest.er1
  3573. ac_status=$?
  3574. grep -v '^ *+' conftest.er1 >conftest.err
  3575. rm -f conftest.er1
  3576. cat conftest.err >&5
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); } && {
  3579. test -z "$ac_c_werror_flag" ||
  3580. test ! -s conftest.err
  3581. } && test -s conftest.$ac_objext; then
  3582. :
  3583. else
  3584. echo "$as_me: failed program was:" >&5
  3585. sed 's/^/| /' conftest.$ac_ext >&5
  3586. ac_c_werror_flag=$ac_save_c_werror_flag
  3587. CFLAGS="-g"
  3588. cat >conftest.$ac_ext <<_ACEOF
  3589. /* confdefs.h. */
  3590. _ACEOF
  3591. cat confdefs.h >>conftest.$ac_ext
  3592. cat >>conftest.$ac_ext <<_ACEOF
  3593. /* end confdefs.h. */
  3594. int
  3595. main ()
  3596. {
  3597. ;
  3598. return 0;
  3599. }
  3600. _ACEOF
  3601. rm -f conftest.$ac_objext
  3602. if { (ac_try="$ac_compile"
  3603. case "(($ac_try" in
  3604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3605. *) ac_try_echo=$ac_try;;
  3606. esac
  3607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3608. (eval "$ac_compile") 2>conftest.er1
  3609. ac_status=$?
  3610. grep -v '^ *+' conftest.er1 >conftest.err
  3611. rm -f conftest.er1
  3612. cat conftest.err >&5
  3613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3614. (exit $ac_status); } && {
  3615. test -z "$ac_c_werror_flag" ||
  3616. test ! -s conftest.err
  3617. } && test -s conftest.$ac_objext; then
  3618. ac_cv_prog_cc_g=yes
  3619. else
  3620. echo "$as_me: failed program was:" >&5
  3621. sed 's/^/| /' conftest.$ac_ext >&5
  3622. fi
  3623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. fi
  3625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. ac_c_werror_flag=$ac_save_c_werror_flag
  3629. fi
  3630. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3631. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3632. if test "$ac_test_CFLAGS" = set; then
  3633. CFLAGS=$ac_save_CFLAGS
  3634. elif test $ac_cv_prog_cc_g = yes; then
  3635. if test "$GCC" = yes; then
  3636. CFLAGS="-g -O2"
  3637. else
  3638. CFLAGS="-g"
  3639. fi
  3640. else
  3641. if test "$GCC" = yes; then
  3642. CFLAGS="-O2"
  3643. else
  3644. CFLAGS=
  3645. fi
  3646. fi
  3647. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3648. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3649. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3650. echo $ECHO_N "(cached) $ECHO_C" >&6
  3651. else
  3652. ac_cv_prog_cc_c89=no
  3653. ac_save_CC=$CC
  3654. cat >conftest.$ac_ext <<_ACEOF
  3655. /* confdefs.h. */
  3656. _ACEOF
  3657. cat confdefs.h >>conftest.$ac_ext
  3658. cat >>conftest.$ac_ext <<_ACEOF
  3659. /* end confdefs.h. */
  3660. #include <stdarg.h>
  3661. #include <stdio.h>
  3662. #include <sys/types.h>
  3663. #include <sys/stat.h>
  3664. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3665. struct buf { int x; };
  3666. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3667. static char *e (p, i)
  3668. char **p;
  3669. int i;
  3670. {
  3671. return p[i];
  3672. }
  3673. static char *f (char * (*g) (char **, int), char **p, ...)
  3674. {
  3675. char *s;
  3676. va_list v;
  3677. va_start (v,p);
  3678. s = g (p, va_arg (v,int));
  3679. va_end (v);
  3680. return s;
  3681. }
  3682. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3683. function prototypes and stuff, but not '\xHH' hex character constants.
  3684. These don't provoke an error unfortunately, instead are silently treated
  3685. as 'x'. The following induces an error, until -std is added to get
  3686. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3687. array size at least. It's necessary to write '\x00'==0 to get something
  3688. that's true only with -std. */
  3689. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3690. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3691. inside strings and character constants. */
  3692. #define FOO(x) 'x'
  3693. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3694. int test (int i, double x);
  3695. struct s1 {int (*f) (int a);};
  3696. struct s2 {int (*f) (double a);};
  3697. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3698. int argc;
  3699. char **argv;
  3700. int
  3701. main ()
  3702. {
  3703. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3709. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3710. do
  3711. CC="$ac_save_CC $ac_arg"
  3712. rm -f conftest.$ac_objext
  3713. if { (ac_try="$ac_compile"
  3714. case "(($ac_try" in
  3715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3716. *) ac_try_echo=$ac_try;;
  3717. esac
  3718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3719. (eval "$ac_compile") 2>conftest.er1
  3720. ac_status=$?
  3721. grep -v '^ *+' conftest.er1 >conftest.err
  3722. rm -f conftest.er1
  3723. cat conftest.err >&5
  3724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3725. (exit $ac_status); } && {
  3726. test -z "$ac_c_werror_flag" ||
  3727. test ! -s conftest.err
  3728. } && test -s conftest.$ac_objext; then
  3729. ac_cv_prog_cc_c89=$ac_arg
  3730. else
  3731. echo "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. fi
  3734. rm -f core conftest.err conftest.$ac_objext
  3735. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3736. done
  3737. rm -f conftest.$ac_ext
  3738. CC=$ac_save_CC
  3739. fi
  3740. # AC_CACHE_VAL
  3741. case "x$ac_cv_prog_cc_c89" in
  3742. x)
  3743. { echo "$as_me:$LINENO: result: none needed" >&5
  3744. echo "${ECHO_T}none needed" >&6; } ;;
  3745. xno)
  3746. { echo "$as_me:$LINENO: result: unsupported" >&5
  3747. echo "${ECHO_T}unsupported" >&6; } ;;
  3748. *)
  3749. CC="$CC $ac_cv_prog_cc_c89"
  3750. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3751. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3752. esac
  3753. ac_ext=c
  3754. ac_cpp='$CPP $CPPFLAGS'
  3755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3758. depcc="$CC" am_compiler_list=
  3759. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3760. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3761. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3762. echo $ECHO_N "(cached) $ECHO_C" >&6
  3763. else
  3764. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3765. # We make a subdir and do the tests there. Otherwise we can end up
  3766. # making bogus files that we don't know about and never remove. For
  3767. # instance it was reported that on HP-UX the gcc test will end up
  3768. # making a dummy file named `D' -- because `-MD' means `put the output
  3769. # in D'.
  3770. mkdir conftest.dir
  3771. # Copy depcomp to subdir because otherwise we won't find it if we're
  3772. # using a relative directory.
  3773. cp "$am_depcomp" conftest.dir
  3774. cd conftest.dir
  3775. # We will build objects and dependencies in a subdirectory because
  3776. # it helps to detect inapplicable dependency modes. For instance
  3777. # both Tru64's cc and ICC support -MD to output dependencies as a
  3778. # side effect of compilation, but ICC will put the dependencies in
  3779. # the current directory while Tru64 will put them in the object
  3780. # directory.
  3781. mkdir sub
  3782. am_cv_CC_dependencies_compiler_type=none
  3783. if test "$am_compiler_list" = ""; then
  3784. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3785. fi
  3786. for depmode in $am_compiler_list; do
  3787. # Setup a source with many dependencies, because some compilers
  3788. # like to wrap large dependency lists on column 80 (with \), and
  3789. # we should not choose a depcomp mode which is confused by this.
  3790. #
  3791. # We need to recreate these files for each test, as the compiler may
  3792. # overwrite some of them when testing with obscure command lines.
  3793. # This happens at least with the AIX C compiler.
  3794. : > sub/conftest.c
  3795. for i in 1 2 3 4 5 6; do
  3796. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3797. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3798. # Solaris 8's {/usr,}/bin/sh.
  3799. touch sub/conftst$i.h
  3800. done
  3801. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3802. case $depmode in
  3803. nosideeffect)
  3804. # after this tag, mechanisms are not by side-effect, so they'll
  3805. # only be used when explicitly requested
  3806. if test "x$enable_dependency_tracking" = xyes; then
  3807. continue
  3808. else
  3809. break
  3810. fi
  3811. ;;
  3812. none) break ;;
  3813. esac
  3814. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3815. # mode. It turns out that the SunPro C++ compiler does not properly
  3816. # handle `-M -o', and we need to detect this.
  3817. if depmode=$depmode \
  3818. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3819. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3820. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3821. >/dev/null 2>conftest.err &&
  3822. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3823. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3824. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3825. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3826. # icc doesn't choke on unknown options, it will just issue warnings
  3827. # or remarks (even with -Werror). So we grep stderr for any message
  3828. # that says an option was ignored or not supported.
  3829. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3830. # icc: Command line warning: ignoring option '-M'; no argument required
  3831. # The diagnosis changed in icc 8.0:
  3832. # icc: Command line remark: option '-MP' not supported
  3833. if (grep 'ignoring option' conftest.err ||
  3834. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3835. am_cv_CC_dependencies_compiler_type=$depmode
  3836. break
  3837. fi
  3838. fi
  3839. done
  3840. cd ..
  3841. rm -rf conftest.dir
  3842. else
  3843. am_cv_CC_dependencies_compiler_type=none
  3844. fi
  3845. fi
  3846. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3847. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3848. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3849. if
  3850. test "x$enable_dependency_tracking" != xno \
  3851. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3852. am__fastdepCC_TRUE=
  3853. am__fastdepCC_FALSE='#'
  3854. else
  3855. am__fastdepCC_TRUE='#'
  3856. am__fastdepCC_FALSE=
  3857. fi
  3858. # Find a good install program. We prefer a C program (faster),
  3859. # so one script is as good as another. But avoid the broken or
  3860. # incompatible versions:
  3861. # SysV /etc/install, /usr/sbin/install
  3862. # SunOS /usr/etc/install
  3863. # IRIX /sbin/install
  3864. # AIX /bin/install
  3865. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3866. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3867. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3868. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3869. # OS/2's system install, which has a completely different semantic
  3870. # ./install, which can be erroneously created by make from ./install.sh.
  3871. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3872. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3873. if test -z "$INSTALL"; then
  3874. if test "${ac_cv_path_install+set}" = set; then
  3875. echo $ECHO_N "(cached) $ECHO_C" >&6
  3876. else
  3877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3878. for as_dir in $PATH
  3879. do
  3880. IFS=$as_save_IFS
  3881. test -z "$as_dir" && as_dir=.
  3882. # Account for people who put trailing slashes in PATH elements.
  3883. case $as_dir/ in
  3884. ./ | .// | /cC/* | \
  3885. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3886. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3887. /usr/ucb/* ) ;;
  3888. *)
  3889. # OSF1 and SCO ODT 3.0 have their own names for install.
  3890. # Don't use installbsd from OSF since it installs stuff as root
  3891. # by default.
  3892. for ac_prog in ginstall scoinst install; do
  3893. for ac_exec_ext in '' $ac_executable_extensions; do
  3894. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3895. if test $ac_prog = install &&
  3896. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3897. # AIX install. It has an incompatible calling convention.
  3898. :
  3899. elif test $ac_prog = install &&
  3900. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3901. # program-specific install script used by HP pwplus--don't use.
  3902. :
  3903. else
  3904. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3905. break 3
  3906. fi
  3907. fi
  3908. done
  3909. done
  3910. ;;
  3911. esac
  3912. done
  3913. IFS=$as_save_IFS
  3914. fi
  3915. if test "${ac_cv_path_install+set}" = set; then
  3916. INSTALL=$ac_cv_path_install
  3917. else
  3918. # As a last resort, use the slow shell script. Don't cache a
  3919. # value for INSTALL within a source directory, because that will
  3920. # break other packages using the cache if that directory is
  3921. # removed, or if the value is a relative name.
  3922. INSTALL=$ac_install_sh
  3923. fi
  3924. fi
  3925. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3926. echo "${ECHO_T}$INSTALL" >&6; }
  3927. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3928. # It thinks the first close brace ends the variable substitution.
  3929. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3930. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3931. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3932. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3933. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3934. if test -z "$MKDIR_P"; then
  3935. if test "${ac_cv_path_mkdir+set}" = set; then
  3936. echo $ECHO_N "(cached) $ECHO_C" >&6
  3937. else
  3938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3939. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3940. do
  3941. IFS=$as_save_IFS
  3942. test -z "$as_dir" && as_dir=.
  3943. for ac_prog in mkdir gmkdir; do
  3944. for ac_exec_ext in '' $ac_executable_extensions; do
  3945. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3946. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3947. 'mkdir (GNU coreutils) '* | \
  3948. 'mkdir (coreutils) '* | \
  3949. 'mkdir (fileutils) '4.1*)
  3950. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3951. break 3;;
  3952. esac
  3953. done
  3954. done
  3955. done
  3956. IFS=$as_save_IFS
  3957. fi
  3958. if test "${ac_cv_path_mkdir+set}" = set; then
  3959. MKDIR_P="$ac_cv_path_mkdir -p"
  3960. else
  3961. # As a last resort, use the slow shell script. Don't cache a
  3962. # value for MKDIR_P within a source directory, because that will
  3963. # break other packages using the cache if that directory is
  3964. # removed, or if the value is a relative name.
  3965. test -d ./--version && rmdir ./--version
  3966. MKDIR_P="$ac_install_sh -d"
  3967. fi
  3968. fi
  3969. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3970. echo "${ECHO_T}$MKDIR_P" >&6; }
  3971. if test -n "$ac_tool_prefix"; then
  3972. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3973. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3974. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3975. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3976. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3977. echo $ECHO_N "(cached) $ECHO_C" >&6
  3978. else
  3979. if test -n "$RANLIB"; then
  3980. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3981. else
  3982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3983. for as_dir in $PATH
  3984. do
  3985. IFS=$as_save_IFS
  3986. test -z "$as_dir" && as_dir=.
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3989. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3990. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3991. break 2
  3992. fi
  3993. done
  3994. done
  3995. IFS=$as_save_IFS
  3996. fi
  3997. fi
  3998. RANLIB=$ac_cv_prog_RANLIB
  3999. if test -n "$RANLIB"; then
  4000. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4001. echo "${ECHO_T}$RANLIB" >&6; }
  4002. else
  4003. { echo "$as_me:$LINENO: result: no" >&5
  4004. echo "${ECHO_T}no" >&6; }
  4005. fi
  4006. fi
  4007. if test -z "$ac_cv_prog_RANLIB"; then
  4008. ac_ct_RANLIB=$RANLIB
  4009. # Extract the first word of "ranlib", so it can be a program name with args.
  4010. set dummy ranlib; ac_word=$2
  4011. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4013. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4014. echo $ECHO_N "(cached) $ECHO_C" >&6
  4015. else
  4016. if test -n "$ac_ct_RANLIB"; then
  4017. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4018. else
  4019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4020. for as_dir in $PATH
  4021. do
  4022. IFS=$as_save_IFS
  4023. test -z "$as_dir" && as_dir=.
  4024. for ac_exec_ext in '' $ac_executable_extensions; do
  4025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4026. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4028. break 2
  4029. fi
  4030. done
  4031. done
  4032. IFS=$as_save_IFS
  4033. fi
  4034. fi
  4035. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4036. if test -n "$ac_ct_RANLIB"; then
  4037. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4038. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4039. else
  4040. { echo "$as_me:$LINENO: result: no" >&5
  4041. echo "${ECHO_T}no" >&6; }
  4042. fi
  4043. if test "x$ac_ct_RANLIB" = x; then
  4044. RANLIB=":"
  4045. else
  4046. case $cross_compiling:$ac_tool_warned in
  4047. yes:)
  4048. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4049. whose name does not start with the host triplet. If you think this
  4050. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4051. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4052. whose name does not start with the host triplet. If you think this
  4053. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4054. ac_tool_warned=yes ;;
  4055. esac
  4056. RANLIB=$ac_ct_RANLIB
  4057. fi
  4058. else
  4059. RANLIB="$ac_cv_prog_RANLIB"
  4060. fi
  4061. for ac_prog in 'bison -y' byacc
  4062. do
  4063. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4064. set dummy $ac_prog; ac_word=$2
  4065. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4066. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4067. if test "${ac_cv_prog_YACC+set}" = set; then
  4068. echo $ECHO_N "(cached) $ECHO_C" >&6
  4069. else
  4070. if test -n "$YACC"; then
  4071. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4072. else
  4073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4074. for as_dir in $PATH
  4075. do
  4076. IFS=$as_save_IFS
  4077. test -z "$as_dir" && as_dir=.
  4078. for ac_exec_ext in '' $ac_executable_extensions; do
  4079. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4080. ac_cv_prog_YACC="$ac_prog"
  4081. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4082. break 2
  4083. fi
  4084. done
  4085. done
  4086. IFS=$as_save_IFS
  4087. fi
  4088. fi
  4089. YACC=$ac_cv_prog_YACC
  4090. if test -n "$YACC"; then
  4091. { echo "$as_me:$LINENO: result: $YACC" >&5
  4092. echo "${ECHO_T}$YACC" >&6; }
  4093. else
  4094. { echo "$as_me:$LINENO: result: no" >&5
  4095. echo "${ECHO_T}no" >&6; }
  4096. fi
  4097. test -n "$YACC" && break
  4098. done
  4099. test -n "$YACC" || YACC="yacc"
  4100. # Setting language choice
  4101. ac_ext=cpp
  4102. ac_cpp='$CXXCPP $CPPFLAGS'
  4103. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4104. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4105. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4106. # Check for GNU library
  4107. cat >>confdefs.h <<\_ACEOF
  4108. #define _GNU_SOURCE 1
  4109. _ACEOF
  4110. # Enable system extensions
  4111. ac_ext=cpp
  4112. ac_cpp='$CXXCPP $CPPFLAGS'
  4113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4116. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4117. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4118. if test -z "$CXXCPP"; then
  4119. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4120. echo $ECHO_N "(cached) $ECHO_C" >&6
  4121. else
  4122. # Double quotes because CXXCPP needs to be expanded
  4123. for CXXCPP in "$CXX -E" "/lib/cpp"
  4124. do
  4125. ac_preproc_ok=false
  4126. for ac_cxx_preproc_warn_flag in '' yes
  4127. do
  4128. # Use a header file that comes with gcc, so configuring glibc
  4129. # with a fresh cross-compiler works.
  4130. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4131. # <limits.h> exists even on freestanding compilers.
  4132. # On the NeXT, cc -E runs the code through the compiler's parser,
  4133. # not just through cpp. "Syntax error" is here to catch this case.
  4134. cat >conftest.$ac_ext <<_ACEOF
  4135. /* confdefs.h. */
  4136. _ACEOF
  4137. cat confdefs.h >>conftest.$ac_ext
  4138. cat >>conftest.$ac_ext <<_ACEOF
  4139. /* end confdefs.h. */
  4140. #ifdef __STDC__
  4141. # include <limits.h>
  4142. #else
  4143. # include <assert.h>
  4144. #endif
  4145. Syntax error
  4146. _ACEOF
  4147. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4148. case "(($ac_try" in
  4149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4150. *) ac_try_echo=$ac_try;;
  4151. esac
  4152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4153. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4154. ac_status=$?
  4155. grep -v '^ *+' conftest.er1 >conftest.err
  4156. rm -f conftest.er1
  4157. cat conftest.err >&5
  4158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4159. (exit $ac_status); } >/dev/null && {
  4160. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4161. test ! -s conftest.err
  4162. }; then
  4163. :
  4164. else
  4165. echo "$as_me: failed program was:" >&5
  4166. sed 's/^/| /' conftest.$ac_ext >&5
  4167. # Broken: fails on valid input.
  4168. continue
  4169. fi
  4170. rm -f conftest.err conftest.$ac_ext
  4171. # OK, works on sane cases. Now check whether nonexistent headers
  4172. # can be detected and how.
  4173. cat >conftest.$ac_ext <<_ACEOF
  4174. /* confdefs.h. */
  4175. _ACEOF
  4176. cat confdefs.h >>conftest.$ac_ext
  4177. cat >>conftest.$ac_ext <<_ACEOF
  4178. /* end confdefs.h. */
  4179. #include <ac_nonexistent.h>
  4180. _ACEOF
  4181. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4182. case "(($ac_try" in
  4183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4184. *) ac_try_echo=$ac_try;;
  4185. esac
  4186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4187. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4188. ac_status=$?
  4189. grep -v '^ *+' conftest.er1 >conftest.err
  4190. rm -f conftest.er1
  4191. cat conftest.err >&5
  4192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); } >/dev/null && {
  4194. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4195. test ! -s conftest.err
  4196. }; then
  4197. # Broken: success on invalid input.
  4198. continue
  4199. else
  4200. echo "$as_me: failed program was:" >&5
  4201. sed 's/^/| /' conftest.$ac_ext >&5
  4202. # Passes both tests.
  4203. ac_preproc_ok=:
  4204. break
  4205. fi
  4206. rm -f conftest.err conftest.$ac_ext
  4207. done
  4208. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4209. rm -f conftest.err conftest.$ac_ext
  4210. if $ac_preproc_ok; then
  4211. break
  4212. fi
  4213. done
  4214. ac_cv_prog_CXXCPP=$CXXCPP
  4215. fi
  4216. CXXCPP=$ac_cv_prog_CXXCPP
  4217. else
  4218. ac_cv_prog_CXXCPP=$CXXCPP
  4219. fi
  4220. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4221. echo "${ECHO_T}$CXXCPP" >&6; }
  4222. ac_preproc_ok=false
  4223. for ac_cxx_preproc_warn_flag in '' yes
  4224. do
  4225. # Use a header file that comes with gcc, so configuring glibc
  4226. # with a fresh cross-compiler works.
  4227. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4228. # <limits.h> exists even on freestanding compilers.
  4229. # On the NeXT, cc -E runs the code through the compiler's parser,
  4230. # not just through cpp. "Syntax error" is here to catch this case.
  4231. cat >conftest.$ac_ext <<_ACEOF
  4232. /* confdefs.h. */
  4233. _ACEOF
  4234. cat confdefs.h >>conftest.$ac_ext
  4235. cat >>conftest.$ac_ext <<_ACEOF
  4236. /* end confdefs.h. */
  4237. #ifdef __STDC__
  4238. # include <limits.h>
  4239. #else
  4240. # include <assert.h>
  4241. #endif
  4242. Syntax error
  4243. _ACEOF
  4244. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4245. case "(($ac_try" in
  4246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4247. *) ac_try_echo=$ac_try;;
  4248. esac
  4249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4250. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4251. ac_status=$?
  4252. grep -v '^ *+' conftest.er1 >conftest.err
  4253. rm -f conftest.er1
  4254. cat conftest.err >&5
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); } >/dev/null && {
  4257. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4258. test ! -s conftest.err
  4259. }; then
  4260. :
  4261. else
  4262. echo "$as_me: failed program was:" >&5
  4263. sed 's/^/| /' conftest.$ac_ext >&5
  4264. # Broken: fails on valid input.
  4265. continue
  4266. fi
  4267. rm -f conftest.err conftest.$ac_ext
  4268. # OK, works on sane cases. Now check whether nonexistent headers
  4269. # can be detected and how.
  4270. cat >conftest.$ac_ext <<_ACEOF
  4271. /* confdefs.h. */
  4272. _ACEOF
  4273. cat confdefs.h >>conftest.$ac_ext
  4274. cat >>conftest.$ac_ext <<_ACEOF
  4275. /* end confdefs.h. */
  4276. #include <ac_nonexistent.h>
  4277. _ACEOF
  4278. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4279. case "(($ac_try" in
  4280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4281. *) ac_try_echo=$ac_try;;
  4282. esac
  4283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4285. ac_status=$?
  4286. grep -v '^ *+' conftest.er1 >conftest.err
  4287. rm -f conftest.er1
  4288. cat conftest.err >&5
  4289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4290. (exit $ac_status); } >/dev/null && {
  4291. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4292. test ! -s conftest.err
  4293. }; then
  4294. # Broken: success on invalid input.
  4295. continue
  4296. else
  4297. echo "$as_me: failed program was:" >&5
  4298. sed 's/^/| /' conftest.$ac_ext >&5
  4299. # Passes both tests.
  4300. ac_preproc_ok=:
  4301. break
  4302. fi
  4303. rm -f conftest.err conftest.$ac_ext
  4304. done
  4305. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4306. rm -f conftest.err conftest.$ac_ext
  4307. if $ac_preproc_ok; then
  4308. :
  4309. else
  4310. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4311. See \`config.log' for more details." >&5
  4312. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4313. See \`config.log' for more details." >&2;}
  4314. { (exit 1); exit 1; }; }
  4315. fi
  4316. ac_ext=cpp
  4317. ac_cpp='$CXXCPP $CPPFLAGS'
  4318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4321. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4322. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4323. if test "${ac_cv_path_GREP+set}" = set; then
  4324. echo $ECHO_N "(cached) $ECHO_C" >&6
  4325. else
  4326. # Extract the first word of "grep ggrep" to use in msg output
  4327. if test -z "$GREP"; then
  4328. set dummy grep ggrep; ac_prog_name=$2
  4329. if test "${ac_cv_path_GREP+set}" = set; then
  4330. echo $ECHO_N "(cached) $ECHO_C" >&6
  4331. else
  4332. ac_path_GREP_found=false
  4333. # Loop through the user's path and test for each of PROGNAME-LIST
  4334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4335. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4336. do
  4337. IFS=$as_save_IFS
  4338. test -z "$as_dir" && as_dir=.
  4339. for ac_prog in grep ggrep; do
  4340. for ac_exec_ext in '' $ac_executable_extensions; do
  4341. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4342. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4343. # Check for GNU ac_path_GREP and select it if it is found.
  4344. # Check for GNU $ac_path_GREP
  4345. case `"$ac_path_GREP" --version 2>&1` in
  4346. *GNU*)
  4347. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4348. *)
  4349. ac_count=0
  4350. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4351. while :
  4352. do
  4353. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4354. mv "conftest.tmp" "conftest.in"
  4355. cp "conftest.in" "conftest.nl"
  4356. echo 'GREP' >> "conftest.nl"
  4357. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4358. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4359. ac_count=`expr $ac_count + 1`
  4360. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4361. # Best one so far, save it but keep looking for a better one
  4362. ac_cv_path_GREP="$ac_path_GREP"
  4363. ac_path_GREP_max=$ac_count
  4364. fi
  4365. # 10*(2^10) chars as input seems more than enough
  4366. test $ac_count -gt 10 && break
  4367. done
  4368. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4369. esac
  4370. $ac_path_GREP_found && break 3
  4371. done
  4372. done
  4373. done
  4374. IFS=$as_save_IFS
  4375. fi
  4376. GREP="$ac_cv_path_GREP"
  4377. if test -z "$GREP"; then
  4378. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4379. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4380. { (exit 1); exit 1; }; }
  4381. fi
  4382. else
  4383. ac_cv_path_GREP=$GREP
  4384. fi
  4385. fi
  4386. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4387. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4388. GREP="$ac_cv_path_GREP"
  4389. { echo "$as_me:$LINENO: checking for egrep" >&5
  4390. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4391. if test "${ac_cv_path_EGREP+set}" = set; then
  4392. echo $ECHO_N "(cached) $ECHO_C" >&6
  4393. else
  4394. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4395. then ac_cv_path_EGREP="$GREP -E"
  4396. else
  4397. # Extract the first word of "egrep" to use in msg output
  4398. if test -z "$EGREP"; then
  4399. set dummy egrep; ac_prog_name=$2
  4400. if test "${ac_cv_path_EGREP+set}" = set; then
  4401. echo $ECHO_N "(cached) $ECHO_C" >&6
  4402. else
  4403. ac_path_EGREP_found=false
  4404. # Loop through the user's path and test for each of PROGNAME-LIST
  4405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4406. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4407. do
  4408. IFS=$as_save_IFS
  4409. test -z "$as_dir" && as_dir=.
  4410. for ac_prog in egrep; do
  4411. for ac_exec_ext in '' $ac_executable_extensions; do
  4412. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4413. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4414. # Check for GNU ac_path_EGREP and select it if it is found.
  4415. # Check for GNU $ac_path_EGREP
  4416. case `"$ac_path_EGREP" --version 2>&1` in
  4417. *GNU*)
  4418. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4419. *)
  4420. ac_count=0
  4421. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4422. while :
  4423. do
  4424. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4425. mv "conftest.tmp" "conftest.in"
  4426. cp "conftest.in" "conftest.nl"
  4427. echo 'EGREP' >> "conftest.nl"
  4428. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4429. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4430. ac_count=`expr $ac_count + 1`
  4431. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4432. # Best one so far, save it but keep looking for a better one
  4433. ac_cv_path_EGREP="$ac_path_EGREP"
  4434. ac_path_EGREP_max=$ac_count
  4435. fi
  4436. # 10*(2^10) chars as input seems more than enough
  4437. test $ac_count -gt 10 && break
  4438. done
  4439. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4440. esac
  4441. $ac_path_EGREP_found && break 3
  4442. done
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. fi
  4447. EGREP="$ac_cv_path_EGREP"
  4448. if test -z "$EGREP"; then
  4449. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4450. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4451. { (exit 1); exit 1; }; }
  4452. fi
  4453. else
  4454. ac_cv_path_EGREP=$EGREP
  4455. fi
  4456. fi
  4457. fi
  4458. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4459. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4460. EGREP="$ac_cv_path_EGREP"
  4461. { echo "$as_me:$LINENO: checking for AIX" >&5
  4462. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4463. cat >conftest.$ac_ext <<_ACEOF
  4464. /* confdefs.h. */
  4465. _ACEOF
  4466. cat confdefs.h >>conftest.$ac_ext
  4467. cat >>conftest.$ac_ext <<_ACEOF
  4468. /* end confdefs.h. */
  4469. #ifdef _AIX
  4470. yes
  4471. #endif
  4472. _ACEOF
  4473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4474. $EGREP "yes" >/dev/null 2>&1; then
  4475. { echo "$as_me:$LINENO: result: yes" >&5
  4476. echo "${ECHO_T}yes" >&6; }
  4477. cat >>confdefs.h <<\_ACEOF
  4478. #define _ALL_SOURCE 1
  4479. _ACEOF
  4480. else
  4481. { echo "$as_me:$LINENO: result: no" >&5
  4482. echo "${ECHO_T}no" >&6; }
  4483. fi
  4484. rm -f conftest*
  4485. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4486. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4487. if test "${ac_cv_header_stdc+set}" = set; then
  4488. echo $ECHO_N "(cached) $ECHO_C" >&6
  4489. else
  4490. cat >conftest.$ac_ext <<_ACEOF
  4491. /* confdefs.h. */
  4492. _ACEOF
  4493. cat confdefs.h >>conftest.$ac_ext
  4494. cat >>conftest.$ac_ext <<_ACEOF
  4495. /* end confdefs.h. */
  4496. #include <stdlib.h>
  4497. #include <stdarg.h>
  4498. #include <string.h>
  4499. #include <float.h>
  4500. int
  4501. main ()
  4502. {
  4503. ;
  4504. return 0;
  4505. }
  4506. _ACEOF
  4507. rm -f conftest.$ac_objext
  4508. if { (ac_try="$ac_compile"
  4509. case "(($ac_try" in
  4510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4511. *) ac_try_echo=$ac_try;;
  4512. esac
  4513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4514. (eval "$ac_compile") 2>conftest.er1
  4515. ac_status=$?
  4516. grep -v '^ *+' conftest.er1 >conftest.err
  4517. rm -f conftest.er1
  4518. cat conftest.err >&5
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } && {
  4521. test -z "$ac_cxx_werror_flag" ||
  4522. test ! -s conftest.err
  4523. } && test -s conftest.$ac_objext; then
  4524. ac_cv_header_stdc=yes
  4525. else
  4526. echo "$as_me: failed program was:" >&5
  4527. sed 's/^/| /' conftest.$ac_ext >&5
  4528. ac_cv_header_stdc=no
  4529. fi
  4530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4531. if test $ac_cv_header_stdc = yes; then
  4532. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4533. cat >conftest.$ac_ext <<_ACEOF
  4534. /* confdefs.h. */
  4535. _ACEOF
  4536. cat confdefs.h >>conftest.$ac_ext
  4537. cat >>conftest.$ac_ext <<_ACEOF
  4538. /* end confdefs.h. */
  4539. #include <string.h>
  4540. _ACEOF
  4541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4542. $EGREP "memchr" >/dev/null 2>&1; then
  4543. :
  4544. else
  4545. ac_cv_header_stdc=no
  4546. fi
  4547. rm -f conftest*
  4548. fi
  4549. if test $ac_cv_header_stdc = yes; then
  4550. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4551. cat >conftest.$ac_ext <<_ACEOF
  4552. /* confdefs.h. */
  4553. _ACEOF
  4554. cat confdefs.h >>conftest.$ac_ext
  4555. cat >>conftest.$ac_ext <<_ACEOF
  4556. /* end confdefs.h. */
  4557. #include <stdlib.h>
  4558. _ACEOF
  4559. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4560. $EGREP "free" >/dev/null 2>&1; then
  4561. :
  4562. else
  4563. ac_cv_header_stdc=no
  4564. fi
  4565. rm -f conftest*
  4566. fi
  4567. if test $ac_cv_header_stdc = yes; then
  4568. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4569. if test "$cross_compiling" = yes; then
  4570. :
  4571. else
  4572. cat >conftest.$ac_ext <<_ACEOF
  4573. /* confdefs.h. */
  4574. _ACEOF
  4575. cat confdefs.h >>conftest.$ac_ext
  4576. cat >>conftest.$ac_ext <<_ACEOF
  4577. /* end confdefs.h. */
  4578. #include <ctype.h>
  4579. #include <stdlib.h>
  4580. #if ((' ' & 0x0FF) == 0x020)
  4581. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4582. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4583. #else
  4584. # define ISLOWER(c) \
  4585. (('a' <= (c) && (c) <= 'i') \
  4586. || ('j' <= (c) && (c) <= 'r') \
  4587. || ('s' <= (c) && (c) <= 'z'))
  4588. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4589. #endif
  4590. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4591. int
  4592. main ()
  4593. {
  4594. int i;
  4595. for (i = 0; i < 256; i++)
  4596. if (XOR (islower (i), ISLOWER (i))
  4597. || toupper (i) != TOUPPER (i))
  4598. return 2;
  4599. return 0;
  4600. }
  4601. _ACEOF
  4602. rm -f conftest$ac_exeext
  4603. if { (ac_try="$ac_link"
  4604. case "(($ac_try" in
  4605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4606. *) ac_try_echo=$ac_try;;
  4607. esac
  4608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4609. (eval "$ac_link") 2>&5
  4610. ac_status=$?
  4611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4612. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4613. { (case "(($ac_try" in
  4614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4615. *) ac_try_echo=$ac_try;;
  4616. esac
  4617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4618. (eval "$ac_try") 2>&5
  4619. ac_status=$?
  4620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4621. (exit $ac_status); }; }; then
  4622. :
  4623. else
  4624. echo "$as_me: program exited with status $ac_status" >&5
  4625. echo "$as_me: failed program was:" >&5
  4626. sed 's/^/| /' conftest.$ac_ext >&5
  4627. ( exit $ac_status )
  4628. ac_cv_header_stdc=no
  4629. fi
  4630. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4631. fi
  4632. fi
  4633. fi
  4634. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4635. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4636. if test $ac_cv_header_stdc = yes; then
  4637. cat >>confdefs.h <<\_ACEOF
  4638. #define STDC_HEADERS 1
  4639. _ACEOF
  4640. fi
  4641. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4642. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4643. inttypes.h stdint.h unistd.h
  4644. do
  4645. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4646. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4647. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4648. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4649. echo $ECHO_N "(cached) $ECHO_C" >&6
  4650. else
  4651. cat >conftest.$ac_ext <<_ACEOF
  4652. /* confdefs.h. */
  4653. _ACEOF
  4654. cat confdefs.h >>conftest.$ac_ext
  4655. cat >>conftest.$ac_ext <<_ACEOF
  4656. /* end confdefs.h. */
  4657. $ac_includes_default
  4658. #include <$ac_header>
  4659. _ACEOF
  4660. rm -f conftest.$ac_objext
  4661. if { (ac_try="$ac_compile"
  4662. case "(($ac_try" in
  4663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4664. *) ac_try_echo=$ac_try;;
  4665. esac
  4666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4667. (eval "$ac_compile") 2>conftest.er1
  4668. ac_status=$?
  4669. grep -v '^ *+' conftest.er1 >conftest.err
  4670. rm -f conftest.er1
  4671. cat conftest.err >&5
  4672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4673. (exit $ac_status); } && {
  4674. test -z "$ac_cxx_werror_flag" ||
  4675. test ! -s conftest.err
  4676. } && test -s conftest.$ac_objext; then
  4677. eval "$as_ac_Header=yes"
  4678. else
  4679. echo "$as_me: failed program was:" >&5
  4680. sed 's/^/| /' conftest.$ac_ext >&5
  4681. eval "$as_ac_Header=no"
  4682. fi
  4683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4684. fi
  4685. ac_res=`eval echo '${'$as_ac_Header'}'`
  4686. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4687. echo "${ECHO_T}$ac_res" >&6; }
  4688. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4689. cat >>confdefs.h <<_ACEOF
  4690. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4691. _ACEOF
  4692. fi
  4693. done
  4694. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4695. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4696. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4697. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4698. echo $ECHO_N "(cached) $ECHO_C" >&6
  4699. fi
  4700. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4701. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4702. else
  4703. # Is the header compilable?
  4704. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4705. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4706. cat >conftest.$ac_ext <<_ACEOF
  4707. /* confdefs.h. */
  4708. _ACEOF
  4709. cat confdefs.h >>conftest.$ac_ext
  4710. cat >>conftest.$ac_ext <<_ACEOF
  4711. /* end confdefs.h. */
  4712. $ac_includes_default
  4713. #include <minix/config.h>
  4714. _ACEOF
  4715. rm -f conftest.$ac_objext
  4716. if { (ac_try="$ac_compile"
  4717. case "(($ac_try" in
  4718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4719. *) ac_try_echo=$ac_try;;
  4720. esac
  4721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4722. (eval "$ac_compile") 2>conftest.er1
  4723. ac_status=$?
  4724. grep -v '^ *+' conftest.er1 >conftest.err
  4725. rm -f conftest.er1
  4726. cat conftest.err >&5
  4727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4728. (exit $ac_status); } && {
  4729. test -z "$ac_cxx_werror_flag" ||
  4730. test ! -s conftest.err
  4731. } && test -s conftest.$ac_objext; then
  4732. ac_header_compiler=yes
  4733. else
  4734. echo "$as_me: failed program was:" >&5
  4735. sed 's/^/| /' conftest.$ac_ext >&5
  4736. ac_header_compiler=no
  4737. fi
  4738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4739. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4740. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4741. # Is the header present?
  4742. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4743. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4744. cat >conftest.$ac_ext <<_ACEOF
  4745. /* confdefs.h. */
  4746. _ACEOF
  4747. cat confdefs.h >>conftest.$ac_ext
  4748. cat >>conftest.$ac_ext <<_ACEOF
  4749. /* end confdefs.h. */
  4750. #include <minix/config.h>
  4751. _ACEOF
  4752. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4753. case "(($ac_try" in
  4754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4755. *) ac_try_echo=$ac_try;;
  4756. esac
  4757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4758. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4759. ac_status=$?
  4760. grep -v '^ *+' conftest.er1 >conftest.err
  4761. rm -f conftest.er1
  4762. cat conftest.err >&5
  4763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4764. (exit $ac_status); } >/dev/null && {
  4765. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4766. test ! -s conftest.err
  4767. }; then
  4768. ac_header_preproc=yes
  4769. else
  4770. echo "$as_me: failed program was:" >&5
  4771. sed 's/^/| /' conftest.$ac_ext >&5
  4772. ac_header_preproc=no
  4773. fi
  4774. rm -f conftest.err conftest.$ac_ext
  4775. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4776. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4777. # So? What about this header?
  4778. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4779. yes:no: )
  4780. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4781. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4782. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4783. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4784. ac_header_preproc=yes
  4785. ;;
  4786. no:yes:* )
  4787. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4788. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4789. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4790. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4791. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4792. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4793. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4794. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4796. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4798. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4799. ( cat <<\_ASBOX
  4800. ## ----------------------------------------------- ##
  4801. ## Report this to t-tujikawa@users.sourceforge.net ##
  4802. ## ----------------------------------------------- ##
  4803. _ASBOX
  4804. ) | sed "s/^/$as_me: WARNING: /" >&2
  4805. ;;
  4806. esac
  4807. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4808. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4809. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4810. echo $ECHO_N "(cached) $ECHO_C" >&6
  4811. else
  4812. ac_cv_header_minix_config_h=$ac_header_preproc
  4813. fi
  4814. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4815. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4816. fi
  4817. if test $ac_cv_header_minix_config_h = yes; then
  4818. MINIX=yes
  4819. else
  4820. MINIX=
  4821. fi
  4822. if test "$MINIX" = yes; then
  4823. cat >>confdefs.h <<\_ACEOF
  4824. #define _POSIX_SOURCE 1
  4825. _ACEOF
  4826. cat >>confdefs.h <<\_ACEOF
  4827. #define _POSIX_1_SOURCE 2
  4828. _ACEOF
  4829. cat >>confdefs.h <<\_ACEOF
  4830. #define _MINIX 1
  4831. _ACEOF
  4832. fi
  4833. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4834. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4835. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4836. echo $ECHO_N "(cached) $ECHO_C" >&6
  4837. else
  4838. cat >conftest.$ac_ext <<_ACEOF
  4839. /* confdefs.h. */
  4840. _ACEOF
  4841. cat confdefs.h >>conftest.$ac_ext
  4842. cat >>conftest.$ac_ext <<_ACEOF
  4843. /* end confdefs.h. */
  4844. # define __EXTENSIONS__ 1
  4845. $ac_includes_default
  4846. int
  4847. main ()
  4848. {
  4849. ;
  4850. return 0;
  4851. }
  4852. _ACEOF
  4853. rm -f conftest.$ac_objext
  4854. if { (ac_try="$ac_compile"
  4855. case "(($ac_try" in
  4856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4857. *) ac_try_echo=$ac_try;;
  4858. esac
  4859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4860. (eval "$ac_compile") 2>conftest.er1
  4861. ac_status=$?
  4862. grep -v '^ *+' conftest.er1 >conftest.err
  4863. rm -f conftest.er1
  4864. cat conftest.err >&5
  4865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4866. (exit $ac_status); } && {
  4867. test -z "$ac_cxx_werror_flag" ||
  4868. test ! -s conftest.err
  4869. } && test -s conftest.$ac_objext; then
  4870. ac_cv_safe_to_define___extensions__=yes
  4871. else
  4872. echo "$as_me: failed program was:" >&5
  4873. sed 's/^/| /' conftest.$ac_ext >&5
  4874. ac_cv_safe_to_define___extensions__=no
  4875. fi
  4876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4877. fi
  4878. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4879. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4880. test $ac_cv_safe_to_define___extensions__ = yes &&
  4881. cat >>confdefs.h <<\_ACEOF
  4882. #define __EXTENSIONS__ 1
  4883. _ACEOF
  4884. cat >>confdefs.h <<\_ACEOF
  4885. #define _POSIX_PTHREAD_SEMANTICS 1
  4886. _ACEOF
  4887. cat >>confdefs.h <<\_ACEOF
  4888. #define _TANDEM_SOURCE 1
  4889. _ACEOF
  4890. # Checks for libraries.
  4891. if test "x$with_libxml2" = "xyes"; then
  4892. # Check whether --with-xml-prefix was given.
  4893. if test "${with_xml_prefix+set}" = set; then
  4894. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4895. else
  4896. xml_config_prefix=""
  4897. fi
  4898. # Check whether --with-xml-exec-prefix was given.
  4899. if test "${with_xml_exec_prefix+set}" = set; then
  4900. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4901. else
  4902. xml_config_exec_prefix=""
  4903. fi
  4904. # Check whether --enable-xmltest was given.
  4905. if test "${enable_xmltest+set}" = set; then
  4906. enableval=$enable_xmltest;
  4907. else
  4908. enable_xmltest=yes
  4909. fi
  4910. if test x$xml_config_exec_prefix != x ; then
  4911. xml_config_args="$xml_config_args"
  4912. if test x${XML2_CONFIG+set} != xset ; then
  4913. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4914. fi
  4915. fi
  4916. if test x$xml_config_prefix != x ; then
  4917. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4918. if test x${XML2_CONFIG+set} != xset ; then
  4919. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4920. fi
  4921. fi
  4922. # Extract the first word of "xml2-config", so it can be a program name with args.
  4923. set dummy xml2-config; ac_word=$2
  4924. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4925. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4926. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4927. echo $ECHO_N "(cached) $ECHO_C" >&6
  4928. else
  4929. case $XML2_CONFIG in
  4930. [\\/]* | ?:[\\/]*)
  4931. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4932. ;;
  4933. *)
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4941. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4949. ;;
  4950. esac
  4951. fi
  4952. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4953. if test -n "$XML2_CONFIG"; then
  4954. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4955. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4956. else
  4957. { echo "$as_me:$LINENO: result: no" >&5
  4958. echo "${ECHO_T}no" >&6; }
  4959. fi
  4960. min_xml_version=2.6.24
  4961. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4962. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4963. no_xml=""
  4964. if test "$XML2_CONFIG" = "no" ; then
  4965. no_xml=yes
  4966. else
  4967. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4968. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4969. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4970. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4971. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4972. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4973. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4974. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4975. if test "x$enable_xmltest" = "xyes" ; then
  4976. ac_save_CPPFLAGS="$CPPFLAGS"
  4977. ac_save_LIBS="$LIBS"
  4978. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4979. LIBS="$XML_LIBS $LIBS"
  4980. rm -f conf.xmltest
  4981. if test "$cross_compiling" = yes; then
  4982. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4983. else
  4984. cat >conftest.$ac_ext <<_ACEOF
  4985. /* confdefs.h. */
  4986. _ACEOF
  4987. cat confdefs.h >>conftest.$ac_ext
  4988. cat >>conftest.$ac_ext <<_ACEOF
  4989. /* end confdefs.h. */
  4990. #include <stdlib.h>
  4991. #include <stdio.h>
  4992. #include <string.h>
  4993. #include <libxml/xmlversion.h>
  4994. int
  4995. main()
  4996. {
  4997. int xml_major_version, xml_minor_version, xml_micro_version;
  4998. int major, minor, micro;
  4999. char *tmp_version;
  5000. system("touch conf.xmltest");
  5001. /* Capture xml2-config output via autoconf/configure variables */
  5002. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5003. tmp_version = (char *)strdup("$min_xml_version");
  5004. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5005. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5006. exit(1);
  5007. }
  5008. free(tmp_version);
  5009. /* Capture the version information from the header files */
  5010. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5011. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5012. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5013. exit(1);
  5014. }
  5015. free(tmp_version);
  5016. /* Compare xml2-config output to the libxml headers */
  5017. if ((xml_major_version != $xml_config_major_version) ||
  5018. (xml_minor_version != $xml_config_minor_version) ||
  5019. (xml_micro_version != $xml_config_micro_version))
  5020. {
  5021. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5022. xml_major_version, xml_minor_version, xml_micro_version);
  5023. printf("*** xml2-config (version %d.%d.%d)\n",
  5024. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5025. return 1;
  5026. }
  5027. /* Compare the headers to the library to make sure we match */
  5028. /* Less than ideal -- doesn't provide us with return value feedback,
  5029. * only exits if there's a serious mismatch between header and library.
  5030. */
  5031. LIBXML_TEST_VERSION;
  5032. /* Test that the library is greater than our minimum version */
  5033. if ((xml_major_version > major) ||
  5034. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5035. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5036. (xml_micro_version >= micro)))
  5037. {
  5038. return 0;
  5039. }
  5040. else
  5041. {
  5042. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5043. xml_major_version, xml_minor_version, xml_micro_version);
  5044. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5045. major, minor, micro);
  5046. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5047. printf("***\n");
  5048. printf("*** If you have already installed a sufficiently new version, this error\n");
  5049. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5050. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5051. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5052. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5053. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5054. printf("*** so that the correct libraries are found at run-time))\n");
  5055. }
  5056. return 1;
  5057. }
  5058. _ACEOF
  5059. rm -f conftest$ac_exeext
  5060. if { (ac_try="$ac_link"
  5061. case "(($ac_try" in
  5062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5063. *) ac_try_echo=$ac_try;;
  5064. esac
  5065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5066. (eval "$ac_link") 2>&5
  5067. ac_status=$?
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5070. { (case "(($ac_try" in
  5071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5072. *) ac_try_echo=$ac_try;;
  5073. esac
  5074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5075. (eval "$ac_try") 2>&5
  5076. ac_status=$?
  5077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. (exit $ac_status); }; }; then
  5079. :
  5080. else
  5081. echo "$as_me: program exited with status $ac_status" >&5
  5082. echo "$as_me: failed program was:" >&5
  5083. sed 's/^/| /' conftest.$ac_ext >&5
  5084. ( exit $ac_status )
  5085. no_xml=yes
  5086. fi
  5087. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5088. fi
  5089. CPPFLAGS="$ac_save_CPPFLAGS"
  5090. LIBS="$ac_save_LIBS"
  5091. fi
  5092. fi
  5093. if test "x$no_xml" = x ; then
  5094. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5095. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5096. have_libxml2=yes
  5097. else
  5098. { echo "$as_me:$LINENO: result: no" >&5
  5099. echo "${ECHO_T}no" >&6; }
  5100. if test "$XML2_CONFIG" = "no" ; then
  5101. echo "*** The xml2-config script installed by LIBXML could not be found"
  5102. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5103. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5104. echo "*** full path to xml2-config."
  5105. else
  5106. if test -f conf.xmltest ; then
  5107. :
  5108. else
  5109. echo "*** Could not run libxml test program, checking why..."
  5110. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5111. LIBS="$LIBS $XML_LIBS"
  5112. cat >conftest.$ac_ext <<_ACEOF
  5113. /* confdefs.h. */
  5114. _ACEOF
  5115. cat confdefs.h >>conftest.$ac_ext
  5116. cat >>conftest.$ac_ext <<_ACEOF
  5117. /* end confdefs.h. */
  5118. #include <libxml/xmlversion.h>
  5119. #include <stdio.h>
  5120. int
  5121. main ()
  5122. {
  5123. LIBXML_TEST_VERSION; return 0;
  5124. ;
  5125. return 0;
  5126. }
  5127. _ACEOF
  5128. rm -f conftest.$ac_objext conftest$ac_exeext
  5129. if { (ac_try="$ac_link"
  5130. case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5135. (eval "$ac_link") 2>conftest.er1
  5136. ac_status=$?
  5137. grep -v '^ *+' conftest.er1 >conftest.err
  5138. rm -f conftest.er1
  5139. cat conftest.err >&5
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); } && {
  5142. test -z "$ac_cxx_werror_flag" ||
  5143. test ! -s conftest.err
  5144. } && test -s conftest$ac_exeext &&
  5145. $as_test_x conftest$ac_exeext; then
  5146. echo "*** The test program compiled, but did not run. This usually means"
  5147. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5148. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5149. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5150. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5151. echo "*** is required on your system"
  5152. echo "***"
  5153. echo "*** If you have an old version installed, it is best to remove it, although"
  5154. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5155. else
  5156. echo "$as_me: failed program was:" >&5
  5157. sed 's/^/| /' conftest.$ac_ext >&5
  5158. echo "*** The test program failed to compile or link. See the file config.log for the"
  5159. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5160. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5161. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5164. conftest$ac_exeext conftest.$ac_ext
  5165. CPPFLAGS="$ac_save_CPPFLAGS"
  5166. LIBS="$ac_save_LIBS"
  5167. fi
  5168. fi
  5169. XML_CPPFLAGS=""
  5170. XML_LIBS=""
  5171. :
  5172. fi
  5173. rm -f conf.xmltest
  5174. if test "x$have_libxml2" = "xyes"; then
  5175. cat >>confdefs.h <<\_ACEOF
  5176. #define HAVE_LIBXML2 1
  5177. _ACEOF
  5178. fi
  5179. fi
  5180. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5181. # Check whether --with-libexpat-prefix was given.
  5182. if test "${with_libexpat_prefix+set}" = set; then
  5183. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5184. else
  5185. libexpat_prefix=""
  5186. fi
  5187. if test "x$libexpat_prefix" = "x"; then
  5188. libexpat_prefix="/usr"
  5189. fi
  5190. libexpat_prefix_lib=$libexpat_prefix/lib
  5191. libexpat_prefix_include=$libexpat_prefix/include
  5192. LIBS_save=$LIBS
  5193. CPPFLAGS_save=$CPPFLAGS
  5194. LIBS="-L$libexpat_prefix_lib $LIBS"
  5195. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5196. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5197. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5198. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5199. echo $ECHO_N "(cached) $ECHO_C" >&6
  5200. else
  5201. ac_check_lib_save_LIBS=$LIBS
  5202. LIBS="-lexpat $LIBS"
  5203. cat >conftest.$ac_ext <<_ACEOF
  5204. /* confdefs.h. */
  5205. _ACEOF
  5206. cat confdefs.h >>conftest.$ac_ext
  5207. cat >>conftest.$ac_ext <<_ACEOF
  5208. /* end confdefs.h. */
  5209. /* Override any GCC internal prototype to avoid an error.
  5210. Use char because int might match the return type of a GCC
  5211. builtin and then its argument prototype would still apply. */
  5212. #ifdef __cplusplus
  5213. extern "C"
  5214. #endif
  5215. char XML_ParserCreate ();
  5216. int
  5217. main ()
  5218. {
  5219. return XML_ParserCreate ();
  5220. ;
  5221. return 0;
  5222. }
  5223. _ACEOF
  5224. rm -f conftest.$ac_objext conftest$ac_exeext
  5225. if { (ac_try="$ac_link"
  5226. case "(($ac_try" in
  5227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5228. *) ac_try_echo=$ac_try;;
  5229. esac
  5230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5231. (eval "$ac_link") 2>conftest.er1
  5232. ac_status=$?
  5233. grep -v '^ *+' conftest.er1 >conftest.err
  5234. rm -f conftest.er1
  5235. cat conftest.err >&5
  5236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5237. (exit $ac_status); } && {
  5238. test -z "$ac_cxx_werror_flag" ||
  5239. test ! -s conftest.err
  5240. } && test -s conftest$ac_exeext &&
  5241. $as_test_x conftest$ac_exeext; then
  5242. ac_cv_lib_expat_XML_ParserCreate=yes
  5243. else
  5244. echo "$as_me: failed program was:" >&5
  5245. sed 's/^/| /' conftest.$ac_ext >&5
  5246. ac_cv_lib_expat_XML_ParserCreate=no
  5247. fi
  5248. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5249. conftest$ac_exeext conftest.$ac_ext
  5250. LIBS=$ac_check_lib_save_LIBS
  5251. fi
  5252. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5253. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5254. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5255. have_libexpat=yes
  5256. fi
  5257. if test "x$have_libexpat" = "xyes"; then
  5258. cat >>confdefs.h <<\_ACEOF
  5259. #define HAVE_LIBEXPAT 1
  5260. _ACEOF
  5261. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5262. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5263. fi
  5264. LIBS=$LIBS_save
  5265. CPPFLAGS=$CPPFLAGS_save
  5266. fi
  5267. if test "x$with_sqlite3" = "xyes"; then
  5268. # Check whether --with-sqlite3-prefix was given.
  5269. if test "${with_sqlite3_prefix+set}" = set; then
  5270. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5271. else
  5272. sqlite3_prefix=""
  5273. fi
  5274. if test "x$sqlite3_prefix" = "x"; then
  5275. sqlite3_prefix="/usr"
  5276. fi
  5277. LIBS_save=$LIBS
  5278. CPPFLAGS_save=$CPPFLAGS
  5279. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5280. if test -x $PKG_CONFIG; then
  5281. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5282. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5283. $PKG_CONFIG --exists sqlite3
  5284. if test "$?" = "0"; then
  5285. # Use pkg-config to detect LIBS and CFLAGS
  5286. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5287. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5288. LIBS="$SQLITE3_LIBS $LIBS"
  5289. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5290. have_sqlite3=yes
  5291. { echo "$as_me:$LINENO: result: yes" >&5
  5292. echo "${ECHO_T}yes" >&6; }
  5293. else
  5294. { echo "$as_me:$LINENO: result: no" >&5
  5295. echo "${ECHO_T}no" >&6; }
  5296. fi
  5297. fi
  5298. if test "x$have_sqlite3" != "xyes"; then
  5299. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5300. sqlite3_prefix_include=$sqlite3_prefix/include
  5301. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5302. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5303. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5304. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5305. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5306. echo $ECHO_N "(cached) $ECHO_C" >&6
  5307. else
  5308. ac_check_lib_save_LIBS=$LIBS
  5309. LIBS="-lsqlite3 $LIBS"
  5310. cat >conftest.$ac_ext <<_ACEOF
  5311. /* confdefs.h. */
  5312. _ACEOF
  5313. cat confdefs.h >>conftest.$ac_ext
  5314. cat >>conftest.$ac_ext <<_ACEOF
  5315. /* end confdefs.h. */
  5316. /* Override any GCC internal prototype to avoid an error.
  5317. Use char because int might match the return type of a GCC
  5318. builtin and then its argument prototype would still apply. */
  5319. #ifdef __cplusplus
  5320. extern "C"
  5321. #endif
  5322. char sqlite3_open ();
  5323. int
  5324. main ()
  5325. {
  5326. return sqlite3_open ();
  5327. ;
  5328. return 0;
  5329. }
  5330. _ACEOF
  5331. rm -f conftest.$ac_objext conftest$ac_exeext
  5332. if { (ac_try="$ac_link"
  5333. case "(($ac_try" in
  5334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5335. *) ac_try_echo=$ac_try;;
  5336. esac
  5337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5338. (eval "$ac_link") 2>conftest.er1
  5339. ac_status=$?
  5340. grep -v '^ *+' conftest.er1 >conftest.err
  5341. rm -f conftest.er1
  5342. cat conftest.err >&5
  5343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5344. (exit $ac_status); } && {
  5345. test -z "$ac_cxx_werror_flag" ||
  5346. test ! -s conftest.err
  5347. } && test -s conftest$ac_exeext &&
  5348. $as_test_x conftest$ac_exeext; then
  5349. ac_cv_lib_sqlite3_sqlite3_open=yes
  5350. else
  5351. echo "$as_me: failed program was:" >&5
  5352. sed 's/^/| /' conftest.$ac_ext >&5
  5353. ac_cv_lib_sqlite3_sqlite3_open=no
  5354. fi
  5355. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5356. conftest$ac_exeext conftest.$ac_ext
  5357. LIBS=$ac_check_lib_save_LIBS
  5358. fi
  5359. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5360. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5361. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5362. have_sqlite3=yes
  5363. fi
  5364. if test "x$have_sqlite3" = "xyes"; then
  5365. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5366. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5367. fi
  5368. fi
  5369. if test "x$have_sqlite3" = "xyes"; then
  5370. for ac_func in sqlite3_open_v2
  5371. do
  5372. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5373. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5374. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5375. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5376. echo $ECHO_N "(cached) $ECHO_C" >&6
  5377. else
  5378. cat >conftest.$ac_ext <<_ACEOF
  5379. /* confdefs.h. */
  5380. _ACEOF
  5381. cat confdefs.h >>conftest.$ac_ext
  5382. cat >>conftest.$ac_ext <<_ACEOF
  5383. /* end confdefs.h. */
  5384. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5385. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5386. #define $ac_func innocuous_$ac_func
  5387. /* System header to define __stub macros and hopefully few prototypes,
  5388. which can conflict with char $ac_func (); below.
  5389. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5390. <limits.h> exists even on freestanding compilers. */
  5391. #ifdef __STDC__
  5392. # include <limits.h>
  5393. #else
  5394. # include <assert.h>
  5395. #endif
  5396. #undef $ac_func
  5397. /* Override any GCC internal prototype to avoid an error.
  5398. Use char because int might match the return type of a GCC
  5399. builtin and then its argument prototype would still apply. */
  5400. #ifdef __cplusplus
  5401. extern "C"
  5402. #endif
  5403. char $ac_func ();
  5404. /* The GNU C library defines this for functions which it implements
  5405. to always fail with ENOSYS. Some functions are actually named
  5406. something starting with __ and the normal name is an alias. */
  5407. #if defined __stub_$ac_func || defined __stub___$ac_func
  5408. choke me
  5409. #endif
  5410. int
  5411. main ()
  5412. {
  5413. return $ac_func ();
  5414. ;
  5415. return 0;
  5416. }
  5417. _ACEOF
  5418. rm -f conftest.$ac_objext conftest$ac_exeext
  5419. if { (ac_try="$ac_link"
  5420. case "(($ac_try" in
  5421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5422. *) ac_try_echo=$ac_try;;
  5423. esac
  5424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5425. (eval "$ac_link") 2>conftest.er1
  5426. ac_status=$?
  5427. grep -v '^ *+' conftest.er1 >conftest.err
  5428. rm -f conftest.er1
  5429. cat conftest.err >&5
  5430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431. (exit $ac_status); } && {
  5432. test -z "$ac_cxx_werror_flag" ||
  5433. test ! -s conftest.err
  5434. } && test -s conftest$ac_exeext &&
  5435. $as_test_x conftest$ac_exeext; then
  5436. eval "$as_ac_var=yes"
  5437. else
  5438. echo "$as_me: failed program was:" >&5
  5439. sed 's/^/| /' conftest.$ac_ext >&5
  5440. eval "$as_ac_var=no"
  5441. fi
  5442. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5443. conftest$ac_exeext conftest.$ac_ext
  5444. fi
  5445. ac_res=`eval echo '${'$as_ac_var'}'`
  5446. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5447. echo "${ECHO_T}$ac_res" >&6; }
  5448. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5449. cat >>confdefs.h <<_ACEOF
  5450. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5451. _ACEOF
  5452. fi
  5453. done
  5454. cat >>confdefs.h <<\_ACEOF
  5455. #define HAVE_SQLITE3 1
  5456. _ACEOF
  5457. fi
  5458. LIBS=$LIBS_save
  5459. CPPFLAGS=$CPPFLAGS_save
  5460. fi
  5461. if test "x$with_gnutls" = "xyes"; then
  5462. # Check whether --with-libgnutls-prefix was given.
  5463. if test "${with_libgnutls_prefix+set}" = set; then
  5464. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5465. else
  5466. libgnutls_config_prefix=""
  5467. fi
  5468. if test x$libgnutls_config_prefix != x ; then
  5469. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5470. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5471. fi
  5472. fi
  5473. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5474. set dummy libgnutls-config; ac_word=$2
  5475. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5476. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5477. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5478. echo $ECHO_N "(cached) $ECHO_C" >&6
  5479. else
  5480. case $LIBGNUTLS_CONFIG in
  5481. [\\/]* | ?:[\\/]*)
  5482. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5483. ;;
  5484. *)
  5485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5486. for as_dir in $PATH
  5487. do
  5488. IFS=$as_save_IFS
  5489. test -z "$as_dir" && as_dir=.
  5490. for ac_exec_ext in '' $ac_executable_extensions; do
  5491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5492. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5494. break 2
  5495. fi
  5496. done
  5497. done
  5498. IFS=$as_save_IFS
  5499. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5500. ;;
  5501. esac
  5502. fi
  5503. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5504. if test -n "$LIBGNUTLS_CONFIG"; then
  5505. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5506. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5507. else
  5508. { echo "$as_me:$LINENO: result: no" >&5
  5509. echo "${ECHO_T}no" >&6; }
  5510. fi
  5511. min_libgnutls_version=1.2.9
  5512. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5513. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5514. no_libgnutls=""
  5515. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5516. no_libgnutls=yes
  5517. else
  5518. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5519. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5520. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5521. ac_save_CFLAGS="$CFLAGS"
  5522. ac_save_LIBS="$LIBS"
  5523. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5524. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5525. rm -f conf.libgnutlstest
  5526. if test "$cross_compiling" = yes; then
  5527. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5528. else
  5529. cat >conftest.$ac_ext <<_ACEOF
  5530. /* confdefs.h. */
  5531. _ACEOF
  5532. cat confdefs.h >>conftest.$ac_ext
  5533. cat >>conftest.$ac_ext <<_ACEOF
  5534. /* end confdefs.h. */
  5535. #include <stdio.h>
  5536. #include <stdlib.h>
  5537. #include <string.h>
  5538. #include <gnutls/gnutls.h>
  5539. int
  5540. main ()
  5541. {
  5542. system ("touch conf.libgnutlstest");
  5543. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5544. {
  5545. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5546. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5547. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5548. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5549. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5550. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5551. printf("*** required on your system.\n");
  5552. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5553. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5554. printf("*** before re-running configure\n");
  5555. }
  5556. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5557. {
  5558. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5559. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5560. }
  5561. else
  5562. {
  5563. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5564. {
  5565. return 0;
  5566. }
  5567. else
  5568. {
  5569. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5570. gnutls_check_version(NULL) );
  5571. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5572. "$min_libgnutls_version" );
  5573. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5574. printf("*** \n");
  5575. printf("*** If you have already installed a sufficiently new version, this error\n");
  5576. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5577. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5578. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5579. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5580. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5581. printf("*** so that the correct libraries are found at run-time))\n");
  5582. }
  5583. }
  5584. return 1;
  5585. }
  5586. _ACEOF
  5587. rm -f conftest$ac_exeext
  5588. if { (ac_try="$ac_link"
  5589. case "(($ac_try" in
  5590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5591. *) ac_try_echo=$ac_try;;
  5592. esac
  5593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5594. (eval "$ac_link") 2>&5
  5595. ac_status=$?
  5596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5597. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5598. { (case "(($ac_try" in
  5599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5600. *) ac_try_echo=$ac_try;;
  5601. esac
  5602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5603. (eval "$ac_try") 2>&5
  5604. ac_status=$?
  5605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5606. (exit $ac_status); }; }; then
  5607. :
  5608. else
  5609. echo "$as_me: program exited with status $ac_status" >&5
  5610. echo "$as_me: failed program was:" >&5
  5611. sed 's/^/| /' conftest.$ac_ext >&5
  5612. ( exit $ac_status )
  5613. no_libgnutls=yes
  5614. fi
  5615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5616. fi
  5617. CFLAGS="$ac_save_CFLAGS"
  5618. LIBS="$ac_save_LIBS"
  5619. fi
  5620. if test "x$no_libgnutls" = x ; then
  5621. { echo "$as_me:$LINENO: result: yes" >&5
  5622. echo "${ECHO_T}yes" >&6; }
  5623. have_libgnutls=yes
  5624. else
  5625. if test -f conf.libgnutlstest ; then
  5626. :
  5627. else
  5628. { echo "$as_me:$LINENO: result: no" >&5
  5629. echo "${ECHO_T}no" >&6; }
  5630. fi
  5631. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5632. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5633. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5634. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5635. echo "*** full path to libgnutls-config."
  5636. else
  5637. if test -f conf.libgnutlstest ; then
  5638. :
  5639. else
  5640. echo "*** Could not run libgnutls test program, checking why..."
  5641. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5642. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5643. cat >conftest.$ac_ext <<_ACEOF
  5644. /* confdefs.h. */
  5645. _ACEOF
  5646. cat confdefs.h >>conftest.$ac_ext
  5647. cat >>conftest.$ac_ext <<_ACEOF
  5648. /* end confdefs.h. */
  5649. #include <stdio.h>
  5650. #include <stdlib.h>
  5651. #include <string.h>
  5652. #include <gnutls/gnutls.h>
  5653. int
  5654. main ()
  5655. {
  5656. return !!gnutls_check_version(NULL);
  5657. ;
  5658. return 0;
  5659. }
  5660. _ACEOF
  5661. rm -f conftest.$ac_objext conftest$ac_exeext
  5662. if { (ac_try="$ac_link"
  5663. case "(($ac_try" in
  5664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5665. *) ac_try_echo=$ac_try;;
  5666. esac
  5667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5668. (eval "$ac_link") 2>conftest.er1
  5669. ac_status=$?
  5670. grep -v '^ *+' conftest.er1 >conftest.err
  5671. rm -f conftest.er1
  5672. cat conftest.err >&5
  5673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5674. (exit $ac_status); } && {
  5675. test -z "$ac_cxx_werror_flag" ||
  5676. test ! -s conftest.err
  5677. } && test -s conftest$ac_exeext &&
  5678. $as_test_x conftest$ac_exeext; then
  5679. echo "*** The test program compiled, but did not run. This usually means"
  5680. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5681. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5682. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5683. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5684. echo "*** is required on your system"
  5685. echo "***"
  5686. echo "*** If you have an old version installed, it is best to remove it, although"
  5687. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5688. echo "***"
  5689. else
  5690. echo "$as_me: failed program was:" >&5
  5691. sed 's/^/| /' conftest.$ac_ext >&5
  5692. echo "*** The test program failed to compile or link. See the file config.log for the"
  5693. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5694. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5695. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5696. fi
  5697. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5698. conftest$ac_exeext conftest.$ac_ext
  5699. CFLAGS="$ac_save_CFLAGS"
  5700. LIBS="$ac_save_LIBS"
  5701. fi
  5702. fi
  5703. LIBGNUTLS_CFLAGS=""
  5704. LIBGNUTLS_LIBS=""
  5705. :
  5706. fi
  5707. rm -f conf.libgnutlstest
  5708. if test "x$have_libgnutls" = "xyes"; then
  5709. cat >>confdefs.h <<\_ACEOF
  5710. #define HAVE_LIBGNUTLS 1
  5711. _ACEOF
  5712. fi
  5713. fi
  5714. if test "x$have_libgnutls" = "xyes"; then
  5715. # Check whether --with-libgcrypt-prefix was given.
  5716. if test "${with_libgcrypt_prefix+set}" = set; then
  5717. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5718. else
  5719. libgcrypt_config_prefix=""
  5720. fi
  5721. if test x$libgcrypt_config_prefix != x ; then
  5722. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5723. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5724. fi
  5725. fi
  5726. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5727. set dummy libgcrypt-config; ac_word=$2
  5728. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5729. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5730. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5731. echo $ECHO_N "(cached) $ECHO_C" >&6
  5732. else
  5733. case $LIBGCRYPT_CONFIG in
  5734. [\\/]* | ?:[\\/]*)
  5735. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5736. ;;
  5737. *)
  5738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5739. for as_dir in $PATH
  5740. do
  5741. IFS=$as_save_IFS
  5742. test -z "$as_dir" && as_dir=.
  5743. for ac_exec_ext in '' $ac_executable_extensions; do
  5744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5745. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5746. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5747. break 2
  5748. fi
  5749. done
  5750. done
  5751. IFS=$as_save_IFS
  5752. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5753. ;;
  5754. esac
  5755. fi
  5756. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5757. if test -n "$LIBGCRYPT_CONFIG"; then
  5758. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5759. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5760. else
  5761. { echo "$as_me:$LINENO: result: no" >&5
  5762. echo "${ECHO_T}no" >&6; }
  5763. fi
  5764. tmp=1.2.2
  5765. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5766. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5767. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5768. else
  5769. req_libgcrypt_api=0
  5770. min_libgcrypt_version="$tmp"
  5771. fi
  5772. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5773. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5774. ok=no
  5775. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5776. req_major=`echo $min_libgcrypt_version | \
  5777. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5778. req_minor=`echo $min_libgcrypt_version | \
  5779. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5780. req_micro=`echo $min_libgcrypt_version | \
  5781. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5782. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5783. major=`echo $libgcrypt_config_version | \
  5784. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5785. minor=`echo $libgcrypt_config_version | \
  5786. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5787. micro=`echo $libgcrypt_config_version | \
  5788. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5789. if test "$major" -gt "$req_major"; then
  5790. ok=yes
  5791. else
  5792. if test "$major" -eq "$req_major"; then
  5793. if test "$minor" -gt "$req_minor"; then
  5794. ok=yes
  5795. else
  5796. if test "$minor" -eq "$req_minor"; then
  5797. if test "$micro" -ge "$req_micro"; then
  5798. ok=yes
  5799. fi
  5800. fi
  5801. fi
  5802. fi
  5803. fi
  5804. fi
  5805. if test $ok = yes; then
  5806. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5807. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5808. else
  5809. { echo "$as_me:$LINENO: result: no" >&5
  5810. echo "${ECHO_T}no" >&6; }
  5811. fi
  5812. if test $ok = yes; then
  5813. # If we have a recent libgcrypt, we should also check that the
  5814. # API is compatible
  5815. if test "$req_libgcrypt_api" -gt 0 ; then
  5816. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5817. if test "$tmp" -gt 0 ; then
  5818. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5819. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5820. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5821. { echo "$as_me:$LINENO: result: okay" >&5
  5822. echo "${ECHO_T}okay" >&6; }
  5823. else
  5824. ok=no
  5825. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5826. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5827. fi
  5828. fi
  5829. fi
  5830. fi
  5831. if test $ok = yes; then
  5832. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5833. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5834. have_libgcrypt=yes
  5835. else
  5836. LIBGCRYPT_CFLAGS=""
  5837. LIBGCRYPT_LIBS=""
  5838. :
  5839. fi
  5840. if test "x$have_libgcrypt" = "xyes"; then
  5841. cat >>confdefs.h <<\_ACEOF
  5842. #define HAVE_LIBGCRYPT 1
  5843. _ACEOF
  5844. fi
  5845. fi
  5846. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5847. # Check whether --with-openssl-prefix was given.
  5848. if test "${with_openssl_prefix+set}" = set; then
  5849. withval=$with_openssl_prefix; openssl_prefix=$withval
  5850. else
  5851. openssl_prefix=""
  5852. fi
  5853. if test "x$openssl_prefix" = "x"; then
  5854. openssl_prefix="/usr/local"
  5855. fi
  5856. LIBS_save=$LIBS
  5857. CPPFLAGS_save=$CPPFLAGS
  5858. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5859. if test -x $PKG_CONFIG; then
  5860. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5861. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5862. $PKG_CONFIG --exists openssl
  5863. if test "$?" = "0"; then
  5864. # Use pkg-config to detect LIBS and CFLAGS
  5865. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5866. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5867. LIBS="$OPENSSL_LIBS $LIBS"
  5868. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5869. have_openssl=yes
  5870. { echo "$as_me:$LINENO: result: yes" >&5
  5871. echo "${ECHO_T}yes" >&6; }
  5872. else
  5873. { echo "$as_me:$LINENO: result: no" >&5
  5874. echo "${ECHO_T}no" >&6; }
  5875. fi
  5876. fi
  5877. if test "x$have_openssl" != "xyes"; then
  5878. openssl_prefix_lib=$openssl_prefix/lib
  5879. openssl_prefix_include=$openssl_prefix/include
  5880. LIBS="-L$openssl_prefix_lib $LIBS"
  5881. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5882. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5883. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5884. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5885. echo $ECHO_N "(cached) $ECHO_C" >&6
  5886. else
  5887. ac_check_lib_save_LIBS=$LIBS
  5888. LIBS="-lssl $LIBS"
  5889. cat >conftest.$ac_ext <<_ACEOF
  5890. /* confdefs.h. */
  5891. _ACEOF
  5892. cat confdefs.h >>conftest.$ac_ext
  5893. cat >>conftest.$ac_ext <<_ACEOF
  5894. /* end confdefs.h. */
  5895. /* Override any GCC internal prototype to avoid an error.
  5896. Use char because int might match the return type of a GCC
  5897. builtin and then its argument prototype would still apply. */
  5898. #ifdef __cplusplus
  5899. extern "C"
  5900. #endif
  5901. char SSL_library_init ();
  5902. int
  5903. main ()
  5904. {
  5905. return SSL_library_init ();
  5906. ;
  5907. return 0;
  5908. }
  5909. _ACEOF
  5910. rm -f conftest.$ac_objext conftest$ac_exeext
  5911. if { (ac_try="$ac_link"
  5912. case "(($ac_try" in
  5913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5914. *) ac_try_echo=$ac_try;;
  5915. esac
  5916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5917. (eval "$ac_link") 2>conftest.er1
  5918. ac_status=$?
  5919. grep -v '^ *+' conftest.er1 >conftest.err
  5920. rm -f conftest.er1
  5921. cat conftest.err >&5
  5922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5923. (exit $ac_status); } && {
  5924. test -z "$ac_cxx_werror_flag" ||
  5925. test ! -s conftest.err
  5926. } && test -s conftest$ac_exeext &&
  5927. $as_test_x conftest$ac_exeext; then
  5928. ac_cv_lib_ssl_SSL_library_init=yes
  5929. else
  5930. echo "$as_me: failed program was:" >&5
  5931. sed 's/^/| /' conftest.$ac_ext >&5
  5932. ac_cv_lib_ssl_SSL_library_init=no
  5933. fi
  5934. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5935. conftest$ac_exeext conftest.$ac_ext
  5936. LIBS=$ac_check_lib_save_LIBS
  5937. fi
  5938. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5939. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5940. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5941. have_openssl=yes LIBS="-lssl $LIBS"
  5942. fi
  5943. if test "x$have_openssl" = "xyes"; then
  5944. have_openssl=no
  5945. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5946. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5947. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5948. echo $ECHO_N "(cached) $ECHO_C" >&6
  5949. else
  5950. ac_check_lib_save_LIBS=$LIBS
  5951. LIBS="-lcrypto $LIBS"
  5952. cat >conftest.$ac_ext <<_ACEOF
  5953. /* confdefs.h. */
  5954. _ACEOF
  5955. cat confdefs.h >>conftest.$ac_ext
  5956. cat >>conftest.$ac_ext <<_ACEOF
  5957. /* end confdefs.h. */
  5958. int
  5959. main ()
  5960. {
  5961. return main ();
  5962. ;
  5963. return 0;
  5964. }
  5965. _ACEOF
  5966. rm -f conftest.$ac_objext conftest$ac_exeext
  5967. if { (ac_try="$ac_link"
  5968. case "(($ac_try" in
  5969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5970. *) ac_try_echo=$ac_try;;
  5971. esac
  5972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5973. (eval "$ac_link") 2>conftest.er1
  5974. ac_status=$?
  5975. grep -v '^ *+' conftest.er1 >conftest.err
  5976. rm -f conftest.er1
  5977. cat conftest.err >&5
  5978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5979. (exit $ac_status); } && {
  5980. test -z "$ac_cxx_werror_flag" ||
  5981. test ! -s conftest.err
  5982. } && test -s conftest$ac_exeext &&
  5983. $as_test_x conftest$ac_exeext; then
  5984. ac_cv_lib_crypto_main=yes
  5985. else
  5986. echo "$as_me: failed program was:" >&5
  5987. sed 's/^/| /' conftest.$ac_ext >&5
  5988. ac_cv_lib_crypto_main=no
  5989. fi
  5990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5991. conftest$ac_exeext conftest.$ac_ext
  5992. LIBS=$ac_check_lib_save_LIBS
  5993. fi
  5994. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5995. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5996. if test $ac_cv_lib_crypto_main = yes; then
  5997. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5998. fi
  5999. if test "x$have_openssl" = "xyes"; then
  6000. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6001. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6002. fi
  6003. fi
  6004. fi
  6005. if test "x$have_openssl" = "xyes"; then
  6006. cat >>confdefs.h <<\_ACEOF
  6007. #define HAVE_LIBSSL 1
  6008. _ACEOF
  6009. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6010. for ac_func in EVP_DigestInit_ex
  6011. do
  6012. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6013. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6014. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6015. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6016. echo $ECHO_N "(cached) $ECHO_C" >&6
  6017. else
  6018. cat >conftest.$ac_ext <<_ACEOF
  6019. /* confdefs.h. */
  6020. _ACEOF
  6021. cat confdefs.h >>conftest.$ac_ext
  6022. cat >>conftest.$ac_ext <<_ACEOF
  6023. /* end confdefs.h. */
  6024. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6025. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6026. #define $ac_func innocuous_$ac_func
  6027. /* System header to define __stub macros and hopefully few prototypes,
  6028. which can conflict with char $ac_func (); below.
  6029. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6030. <limits.h> exists even on freestanding compilers. */
  6031. #ifdef __STDC__
  6032. # include <limits.h>
  6033. #else
  6034. # include <assert.h>
  6035. #endif
  6036. #undef $ac_func
  6037. /* Override any GCC internal prototype to avoid an error.
  6038. Use char because int might match the return type of a GCC
  6039. builtin and then its argument prototype would still apply. */
  6040. #ifdef __cplusplus
  6041. extern "C"
  6042. #endif
  6043. char $ac_func ();
  6044. /* The GNU C library defines this for functions which it implements
  6045. to always fail with ENOSYS. Some functions are actually named
  6046. something starting with __ and the normal name is an alias. */
  6047. #if defined __stub_$ac_func || defined __stub___$ac_func
  6048. choke me
  6049. #endif
  6050. int
  6051. main ()
  6052. {
  6053. return $ac_func ();
  6054. ;
  6055. return 0;
  6056. }
  6057. _ACEOF
  6058. rm -f conftest.$ac_objext conftest$ac_exeext
  6059. if { (ac_try="$ac_link"
  6060. case "(($ac_try" in
  6061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6062. *) ac_try_echo=$ac_try;;
  6063. esac
  6064. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6065. (eval "$ac_link") 2>conftest.er1
  6066. ac_status=$?
  6067. grep -v '^ *+' conftest.er1 >conftest.err
  6068. rm -f conftest.er1
  6069. cat conftest.err >&5
  6070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6071. (exit $ac_status); } && {
  6072. test -z "$ac_cxx_werror_flag" ||
  6073. test ! -s conftest.err
  6074. } && test -s conftest$ac_exeext &&
  6075. $as_test_x conftest$ac_exeext; then
  6076. eval "$as_ac_var=yes"
  6077. else
  6078. echo "$as_me: failed program was:" >&5
  6079. sed 's/^/| /' conftest.$ac_ext >&5
  6080. eval "$as_ac_var=no"
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6083. conftest$ac_exeext conftest.$ac_ext
  6084. fi
  6085. ac_res=`eval echo '${'$as_ac_var'}'`
  6086. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6087. echo "${ECHO_T}$ac_res" >&6; }
  6088. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6089. cat >>confdefs.h <<_ACEOF
  6090. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6091. _ACEOF
  6092. have_digestinit_ex=yes
  6093. fi
  6094. done
  6095. if test "x$have_digestinit_ex" = "x"; then
  6096. cat >>confdefs.h <<\_ACEOF
  6097. #define HAVE_OLD_LIBSSL 1
  6098. _ACEOF
  6099. fi
  6100. # search for sha256 support
  6101. for ac_func in EVP_sha256
  6102. do
  6103. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6104. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6105. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6106. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6107. echo $ECHO_N "(cached) $ECHO_C" >&6
  6108. else
  6109. cat >conftest.$ac_ext <<_ACEOF
  6110. /* confdefs.h. */
  6111. _ACEOF
  6112. cat confdefs.h >>conftest.$ac_ext
  6113. cat >>conftest.$ac_ext <<_ACEOF
  6114. /* end confdefs.h. */
  6115. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6116. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6117. #define $ac_func innocuous_$ac_func
  6118. /* System header to define __stub macros and hopefully few prototypes,
  6119. which can conflict with char $ac_func (); below.
  6120. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6121. <limits.h> exists even on freestanding compilers. */
  6122. #ifdef __STDC__
  6123. # include <limits.h>
  6124. #else
  6125. # include <assert.h>
  6126. #endif
  6127. #undef $ac_func
  6128. /* Override any GCC internal prototype to avoid an error.
  6129. Use char because int might match the return type of a GCC
  6130. builtin and then its argument prototype would still apply. */
  6131. #ifdef __cplusplus
  6132. extern "C"
  6133. #endif
  6134. char $ac_func ();
  6135. /* The GNU C library defines this for functions which it implements
  6136. to always fail with ENOSYS. Some functions are actually named
  6137. something starting with __ and the normal name is an alias. */
  6138. #if defined __stub_$ac_func || defined __stub___$ac_func
  6139. choke me
  6140. #endif
  6141. int
  6142. main ()
  6143. {
  6144. return $ac_func ();
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. rm -f conftest.$ac_objext conftest$ac_exeext
  6150. if { (ac_try="$ac_link"
  6151. case "(($ac_try" in
  6152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6153. *) ac_try_echo=$ac_try;;
  6154. esac
  6155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6156. (eval "$ac_link") 2>conftest.er1
  6157. ac_status=$?
  6158. grep -v '^ *+' conftest.er1 >conftest.err
  6159. rm -f conftest.er1
  6160. cat conftest.err >&5
  6161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6162. (exit $ac_status); } && {
  6163. test -z "$ac_cxx_werror_flag" ||
  6164. test ! -s conftest.err
  6165. } && test -s conftest$ac_exeext &&
  6166. $as_test_x conftest$ac_exeext; then
  6167. eval "$as_ac_var=yes"
  6168. else
  6169. echo "$as_me: failed program was:" >&5
  6170. sed 's/^/| /' conftest.$ac_ext >&5
  6171. eval "$as_ac_var=no"
  6172. fi
  6173. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6174. conftest$ac_exeext conftest.$ac_ext
  6175. fi
  6176. ac_res=`eval echo '${'$as_ac_var'}'`
  6177. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6178. echo "${ECHO_T}$ac_res" >&6; }
  6179. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6180. cat >>confdefs.h <<_ACEOF
  6181. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6182. _ACEOF
  6183. fi
  6184. done
  6185. fi
  6186. LIBS=$LIBS_save
  6187. CPPFLAGS=$CPPFLAGS_save
  6188. fi
  6189. if test "x$with_libcares" = "xyes"; then
  6190. # Check whether --with-libcares-prefix was given.
  6191. if test "${with_libcares_prefix+set}" = set; then
  6192. withval=$with_libcares_prefix; libcares_prefix=$withval
  6193. else
  6194. libcares_prefix=""
  6195. fi
  6196. if test "x$libcares_prefix" = "x"; then
  6197. libcares_prefix="/usr"
  6198. fi
  6199. libcares_prefix_lib=$libcares_prefix/lib
  6200. libcares_prefix_include=$libcares_prefix/include
  6201. LIBS_save=$LIBS
  6202. CPPFLAGS_save=$CPPFLAGS
  6203. LIBS="-L$libcares_prefix_lib $LIBS"
  6204. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6205. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6206. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6207. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6208. echo $ECHO_N "(cached) $ECHO_C" >&6
  6209. else
  6210. ac_check_lib_save_LIBS=$LIBS
  6211. LIBS="-lcares $LIBS"
  6212. cat >conftest.$ac_ext <<_ACEOF
  6213. /* confdefs.h. */
  6214. _ACEOF
  6215. cat confdefs.h >>conftest.$ac_ext
  6216. cat >>conftest.$ac_ext <<_ACEOF
  6217. /* end confdefs.h. */
  6218. /* Override any GCC internal prototype to avoid an error.
  6219. Use char because int might match the return type of a GCC
  6220. builtin and then its argument prototype would still apply. */
  6221. #ifdef __cplusplus
  6222. extern "C"
  6223. #endif
  6224. char ares_init ();
  6225. int
  6226. main ()
  6227. {
  6228. return ares_init ();
  6229. ;
  6230. return 0;
  6231. }
  6232. _ACEOF
  6233. rm -f conftest.$ac_objext conftest$ac_exeext
  6234. if { (ac_try="$ac_link"
  6235. case "(($ac_try" in
  6236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6237. *) ac_try_echo=$ac_try;;
  6238. esac
  6239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6240. (eval "$ac_link") 2>conftest.er1
  6241. ac_status=$?
  6242. grep -v '^ *+' conftest.er1 >conftest.err
  6243. rm -f conftest.er1
  6244. cat conftest.err >&5
  6245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6246. (exit $ac_status); } && {
  6247. test -z "$ac_cxx_werror_flag" ||
  6248. test ! -s conftest.err
  6249. } && test -s conftest$ac_exeext &&
  6250. $as_test_x conftest$ac_exeext; then
  6251. ac_cv_lib_cares_ares_init=yes
  6252. else
  6253. echo "$as_me: failed program was:" >&5
  6254. sed 's/^/| /' conftest.$ac_ext >&5
  6255. ac_cv_lib_cares_ares_init=no
  6256. fi
  6257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6258. conftest$ac_exeext conftest.$ac_ext
  6259. LIBS=$ac_check_lib_save_LIBS
  6260. fi
  6261. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6262. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6263. if test $ac_cv_lib_cares_ares_init = yes; then
  6264. have_libcares=yes
  6265. fi
  6266. if test "x$have_libcares" != "xyes"; then
  6267. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6268. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6269. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6270. echo $ECHO_N "(cached) $ECHO_C" >&6
  6271. else
  6272. ac_check_lib_save_LIBS=$LIBS
  6273. LIBS="-lcares -lrt $LIBS"
  6274. cat >conftest.$ac_ext <<_ACEOF
  6275. /* confdefs.h. */
  6276. _ACEOF
  6277. cat confdefs.h >>conftest.$ac_ext
  6278. cat >>conftest.$ac_ext <<_ACEOF
  6279. /* end confdefs.h. */
  6280. /* Override any GCC internal prototype to avoid an error.
  6281. Use char because int might match the return type of a GCC
  6282. builtin and then its argument prototype would still apply. */
  6283. #ifdef __cplusplus
  6284. extern "C"
  6285. #endif
  6286. char ares_init ();
  6287. int
  6288. main ()
  6289. {
  6290. return ares_init ();
  6291. ;
  6292. return 0;
  6293. }
  6294. _ACEOF
  6295. rm -f conftest.$ac_objext conftest$ac_exeext
  6296. if { (ac_try="$ac_link"
  6297. case "(($ac_try" in
  6298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6299. *) ac_try_echo=$ac_try;;
  6300. esac
  6301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6302. (eval "$ac_link") 2>conftest.er1
  6303. ac_status=$?
  6304. grep -v '^ *+' conftest.er1 >conftest.err
  6305. rm -f conftest.er1
  6306. cat conftest.err >&5
  6307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6308. (exit $ac_status); } && {
  6309. test -z "$ac_cxx_werror_flag" ||
  6310. test ! -s conftest.err
  6311. } && test -s conftest$ac_exeext &&
  6312. $as_test_x conftest$ac_exeext; then
  6313. ac_cv_lib_cares_ares_init=yes
  6314. else
  6315. echo "$as_me: failed program was:" >&5
  6316. sed 's/^/| /' conftest.$ac_ext >&5
  6317. ac_cv_lib_cares_ares_init=no
  6318. fi
  6319. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6320. conftest$ac_exeext conftest.$ac_ext
  6321. LIBS=$ac_check_lib_save_LIBS
  6322. fi
  6323. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6324. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6325. if test $ac_cv_lib_cares_ares_init = yes; then
  6326. have_libcares=yes need_librt=yes
  6327. fi
  6328. fi
  6329. if test "x$have_libcares" = "xyes"; then
  6330. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6331. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6332. cat >conftest.$ac_ext <<_ACEOF
  6333. /* confdefs.h. */
  6334. _ACEOF
  6335. cat confdefs.h >>conftest.$ac_ext
  6336. cat >>conftest.$ac_ext <<_ACEOF
  6337. /* end confdefs.h. */
  6338. #include <ares.h>
  6339. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6340. int
  6341. main ()
  6342. {
  6343. ares_channel channel;
  6344. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. rm -f conftest.$ac_objext
  6350. if { (ac_try="$ac_compile"
  6351. case "(($ac_try" in
  6352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6353. *) ac_try_echo=$ac_try;;
  6354. esac
  6355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6356. (eval "$ac_compile") 2>conftest.er1
  6357. ac_status=$?
  6358. grep -v '^ *+' conftest.er1 >conftest.err
  6359. rm -f conftest.er1
  6360. cat conftest.err >&5
  6361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362. (exit $ac_status); } && {
  6363. test -z "$ac_cxx_werror_flag" ||
  6364. test ! -s conftest.err
  6365. } && test -s conftest.$ac_objext; then
  6366. have_libcares1_5=yes
  6367. else
  6368. echo "$as_me: failed program was:" >&5
  6369. sed 's/^/| /' conftest.$ac_ext >&5
  6370. have_libcares1_5=no
  6371. fi
  6372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6373. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6374. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6375. if test "x$have_libcares1_5" = "xyes"; then
  6376. cat >>confdefs.h <<\_ACEOF
  6377. #define HAVE_LIBCARES1_5 1
  6378. _ACEOF
  6379. fi
  6380. cat >>confdefs.h <<\_ACEOF
  6381. #define HAVE_LIBCARES 1
  6382. _ACEOF
  6383. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6384. if test "x$need_librt" = "xyes"; then
  6385. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6386. fi
  6387. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6388. fi
  6389. LIBS=$LIBS_save
  6390. CPPFLAGS=$CPPFLAGS_save
  6391. fi
  6392. # Check availability of libz
  6393. if test "x$with_libz" = "xyes"; then
  6394. # Check whether --with-libz-prefix was given.
  6395. if test "${with_libz_prefix+set}" = set; then
  6396. withval=$with_libz_prefix; libz_prefix=$withval
  6397. else
  6398. libz_prefix=""
  6399. fi
  6400. if test "x$libz_prefix" = "x"; then
  6401. libz_prefix="/usr"
  6402. fi
  6403. libz_prefix_lib=$libz_prefix/lib
  6404. libz_prefix_include=$libz_prefix/include
  6405. LIBS_save=$LIBS
  6406. CPPFLAGS_save=$CPPFLAGS
  6407. LIBS="-L$libz_prefix_lib $LIBS"
  6408. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6409. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6410. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6411. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6412. echo $ECHO_N "(cached) $ECHO_C" >&6
  6413. else
  6414. ac_check_lib_save_LIBS=$LIBS
  6415. LIBS="-lz $LIBS"
  6416. cat >conftest.$ac_ext <<_ACEOF
  6417. /* confdefs.h. */
  6418. _ACEOF
  6419. cat confdefs.h >>conftest.$ac_ext
  6420. cat >>conftest.$ac_ext <<_ACEOF
  6421. /* end confdefs.h. */
  6422. /* Override any GCC internal prototype to avoid an error.
  6423. Use char because int might match the return type of a GCC
  6424. builtin and then its argument prototype would still apply. */
  6425. #ifdef __cplusplus
  6426. extern "C"
  6427. #endif
  6428. char zlibVersion ();
  6429. int
  6430. main ()
  6431. {
  6432. return zlibVersion ();
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. rm -f conftest.$ac_objext conftest$ac_exeext
  6438. if { (ac_try="$ac_link"
  6439. case "(($ac_try" in
  6440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6441. *) ac_try_echo=$ac_try;;
  6442. esac
  6443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6444. (eval "$ac_link") 2>conftest.er1
  6445. ac_status=$?
  6446. grep -v '^ *+' conftest.er1 >conftest.err
  6447. rm -f conftest.er1
  6448. cat conftest.err >&5
  6449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6450. (exit $ac_status); } && {
  6451. test -z "$ac_cxx_werror_flag" ||
  6452. test ! -s conftest.err
  6453. } && test -s conftest$ac_exeext &&
  6454. $as_test_x conftest$ac_exeext; then
  6455. ac_cv_lib_z_zlibVersion=yes
  6456. else
  6457. echo "$as_me: failed program was:" >&5
  6458. sed 's/^/| /' conftest.$ac_ext >&5
  6459. ac_cv_lib_z_zlibVersion=no
  6460. fi
  6461. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6462. conftest$ac_exeext conftest.$ac_ext
  6463. LIBS=$ac_check_lib_save_LIBS
  6464. fi
  6465. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6466. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6467. if test $ac_cv_lib_z_zlibVersion = yes; then
  6468. have_libz=yes
  6469. fi
  6470. if test "x$have_libz" = "xyes"; then
  6471. cat >>confdefs.h <<\_ACEOF
  6472. #define HAVE_LIBZ 1
  6473. _ACEOF
  6474. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6475. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6476. fi
  6477. LIBS=$LIBS_save
  6478. CPPFLAGS=$CPPFLAGS_save
  6479. fi
  6480. # Define variables based on the result of the checks for libraries.
  6481. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6482. cat >>confdefs.h <<\_ACEOF
  6483. #define ENABLE_SSL 1
  6484. _ACEOF
  6485. if true; then
  6486. ENABLE_SSL_TRUE=
  6487. ENABLE_SSL_FALSE='#'
  6488. else
  6489. ENABLE_SSL_TRUE='#'
  6490. ENABLE_SSL_FALSE=
  6491. fi
  6492. else
  6493. if false; then
  6494. ENABLE_SSL_TRUE=
  6495. ENABLE_SSL_FALSE='#'
  6496. else
  6497. ENABLE_SSL_TRUE='#'
  6498. ENABLE_SSL_FALSE=
  6499. fi
  6500. fi
  6501. if test "x$have_libgnutls" = "xyes" ; then
  6502. HAVE_LIBGNUTLS_TRUE=
  6503. HAVE_LIBGNUTLS_FALSE='#'
  6504. else
  6505. HAVE_LIBGNUTLS_TRUE='#'
  6506. HAVE_LIBGNUTLS_FALSE=
  6507. fi
  6508. if test "x$have_openssl" = "xyes" ; then
  6509. HAVE_LIBSSL_TRUE=
  6510. HAVE_LIBSSL_FALSE='#'
  6511. else
  6512. HAVE_LIBSSL_TRUE='#'
  6513. HAVE_LIBSSL_FALSE=
  6514. fi
  6515. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6516. cat >>confdefs.h <<\_ACEOF
  6517. #define ENABLE_MESSAGE_DIGEST 1
  6518. _ACEOF
  6519. if true; then
  6520. ENABLE_MESSAGE_DIGEST_TRUE=
  6521. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6522. else
  6523. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6524. ENABLE_MESSAGE_DIGEST_FALSE=
  6525. fi
  6526. enable_message_digest=yes
  6527. else
  6528. if false; then
  6529. ENABLE_MESSAGE_DIGEST_TRUE=
  6530. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6531. else
  6532. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6533. ENABLE_MESSAGE_DIGEST_FALSE=
  6534. fi
  6535. fi
  6536. if test "x$enable_bittorrent" = "xyes" &&
  6537. test "x$enable_message_digest" = "xyes"; then
  6538. cat >>confdefs.h <<\_ACEOF
  6539. #define ENABLE_BITTORRENT 1
  6540. _ACEOF
  6541. if true; then
  6542. ENABLE_BITTORRENT_TRUE=
  6543. ENABLE_BITTORRENT_FALSE='#'
  6544. else
  6545. ENABLE_BITTORRENT_TRUE='#'
  6546. ENABLE_BITTORRENT_FALSE=
  6547. fi
  6548. else
  6549. enable_bittorrent=no
  6550. if false; then
  6551. ENABLE_BITTORRENT_TRUE=
  6552. ENABLE_BITTORRENT_FALSE='#'
  6553. else
  6554. ENABLE_BITTORRENT_TRUE='#'
  6555. ENABLE_BITTORRENT_FALSE=
  6556. fi
  6557. fi
  6558. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6559. test "x$enable_metalink" = "xyes"; then
  6560. cat >>confdefs.h <<\_ACEOF
  6561. #define ENABLE_METALINK 1
  6562. _ACEOF
  6563. if true; then
  6564. ENABLE_METALINK_TRUE=
  6565. ENABLE_METALINK_FALSE='#'
  6566. else
  6567. ENABLE_METALINK_TRUE='#'
  6568. ENABLE_METALINK_FALSE=
  6569. fi
  6570. else
  6571. enable_metalink=no
  6572. if false; then
  6573. ENABLE_METALINK_TRUE=
  6574. ENABLE_METALINK_FALSE='#'
  6575. else
  6576. ENABLE_METALINK_TRUE='#'
  6577. ENABLE_METALINK_FALSE=
  6578. fi
  6579. fi
  6580. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6581. ENABLE_LIBXML2_TRUE=
  6582. ENABLE_LIBXML2_FALSE='#'
  6583. else
  6584. ENABLE_LIBXML2_TRUE='#'
  6585. ENABLE_LIBXML2_FALSE=
  6586. fi
  6587. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6588. ENABLE_LIBEXPAT_TRUE=
  6589. ENABLE_LIBEXPAT_FALSE='#'
  6590. else
  6591. ENABLE_LIBEXPAT_TRUE='#'
  6592. ENABLE_LIBEXPAT_FALSE=
  6593. fi
  6594. if test "x$have_libcares" = "xyes"; then
  6595. cat >>confdefs.h <<\_ACEOF
  6596. #define ENABLE_ASYNC_DNS 1
  6597. _ACEOF
  6598. if true; then
  6599. ENABLE_ASYNC_DNS_TRUE=
  6600. ENABLE_ASYNC_DNS_FALSE='#'
  6601. else
  6602. ENABLE_ASYNC_DNS_TRUE='#'
  6603. ENABLE_ASYNC_DNS_FALSE=
  6604. fi
  6605. else
  6606. if false; then
  6607. ENABLE_ASYNC_DNS_TRUE=
  6608. ENABLE_ASYNC_DNS_FALSE='#'
  6609. else
  6610. ENABLE_ASYNC_DNS_TRUE='#'
  6611. ENABLE_ASYNC_DNS_FALSE=
  6612. fi
  6613. fi
  6614. # Set conditional for libz
  6615. if test "x$have_libz" = "xyes"; then
  6616. HAVE_LIBZ_TRUE=
  6617. HAVE_LIBZ_FALSE='#'
  6618. else
  6619. HAVE_LIBZ_TRUE='#'
  6620. HAVE_LIBZ_FALSE=
  6621. fi
  6622. # Set conditional for sqlite3
  6623. if test "x$have_sqlite3" = "xyes"; then
  6624. HAVE_SQLITE3_TRUE=
  6625. HAVE_SQLITE3_FALSE='#'
  6626. else
  6627. HAVE_SQLITE3_TRUE='#'
  6628. HAVE_SQLITE3_FALSE=
  6629. fi
  6630. # Checks for header files.
  6631. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6632. # for constant arguments. Useless!
  6633. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6634. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6635. if test "${ac_cv_working_alloca_h+set}" = set; then
  6636. echo $ECHO_N "(cached) $ECHO_C" >&6
  6637. else
  6638. cat >conftest.$ac_ext <<_ACEOF
  6639. /* confdefs.h. */
  6640. _ACEOF
  6641. cat confdefs.h >>conftest.$ac_ext
  6642. cat >>conftest.$ac_ext <<_ACEOF
  6643. /* end confdefs.h. */
  6644. #include <alloca.h>
  6645. int
  6646. main ()
  6647. {
  6648. char *p = (char *) alloca (2 * sizeof (int));
  6649. if (p) return 0;
  6650. ;
  6651. return 0;
  6652. }
  6653. _ACEOF
  6654. rm -f conftest.$ac_objext conftest$ac_exeext
  6655. if { (ac_try="$ac_link"
  6656. case "(($ac_try" in
  6657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6658. *) ac_try_echo=$ac_try;;
  6659. esac
  6660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6661. (eval "$ac_link") 2>conftest.er1
  6662. ac_status=$?
  6663. grep -v '^ *+' conftest.er1 >conftest.err
  6664. rm -f conftest.er1
  6665. cat conftest.err >&5
  6666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6667. (exit $ac_status); } && {
  6668. test -z "$ac_cxx_werror_flag" ||
  6669. test ! -s conftest.err
  6670. } && test -s conftest$ac_exeext &&
  6671. $as_test_x conftest$ac_exeext; then
  6672. ac_cv_working_alloca_h=yes
  6673. else
  6674. echo "$as_me: failed program was:" >&5
  6675. sed 's/^/| /' conftest.$ac_ext >&5
  6676. ac_cv_working_alloca_h=no
  6677. fi
  6678. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6679. conftest$ac_exeext conftest.$ac_ext
  6680. fi
  6681. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6682. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6683. if test $ac_cv_working_alloca_h = yes; then
  6684. cat >>confdefs.h <<\_ACEOF
  6685. #define HAVE_ALLOCA_H 1
  6686. _ACEOF
  6687. fi
  6688. { echo "$as_me:$LINENO: checking for alloca" >&5
  6689. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6690. if test "${ac_cv_func_alloca_works+set}" = set; then
  6691. echo $ECHO_N "(cached) $ECHO_C" >&6
  6692. else
  6693. cat >conftest.$ac_ext <<_ACEOF
  6694. /* confdefs.h. */
  6695. _ACEOF
  6696. cat confdefs.h >>conftest.$ac_ext
  6697. cat >>conftest.$ac_ext <<_ACEOF
  6698. /* end confdefs.h. */
  6699. #ifdef __GNUC__
  6700. # define alloca __builtin_alloca
  6701. #else
  6702. # ifdef _MSC_VER
  6703. # include <malloc.h>
  6704. # define alloca _alloca
  6705. # else
  6706. # ifdef HAVE_ALLOCA_H
  6707. # include <alloca.h>
  6708. # else
  6709. # ifdef _AIX
  6710. #pragma alloca
  6711. # else
  6712. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6713. char *alloca ();
  6714. # endif
  6715. # endif
  6716. # endif
  6717. # endif
  6718. #endif
  6719. int
  6720. main ()
  6721. {
  6722. char *p = (char *) alloca (1);
  6723. if (p) return 0;
  6724. ;
  6725. return 0;
  6726. }
  6727. _ACEOF
  6728. rm -f conftest.$ac_objext conftest$ac_exeext
  6729. if { (ac_try="$ac_link"
  6730. case "(($ac_try" in
  6731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6732. *) ac_try_echo=$ac_try;;
  6733. esac
  6734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6735. (eval "$ac_link") 2>conftest.er1
  6736. ac_status=$?
  6737. grep -v '^ *+' conftest.er1 >conftest.err
  6738. rm -f conftest.er1
  6739. cat conftest.err >&5
  6740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6741. (exit $ac_status); } && {
  6742. test -z "$ac_cxx_werror_flag" ||
  6743. test ! -s conftest.err
  6744. } && test -s conftest$ac_exeext &&
  6745. $as_test_x conftest$ac_exeext; then
  6746. ac_cv_func_alloca_works=yes
  6747. else
  6748. echo "$as_me: failed program was:" >&5
  6749. sed 's/^/| /' conftest.$ac_ext >&5
  6750. ac_cv_func_alloca_works=no
  6751. fi
  6752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6753. conftest$ac_exeext conftest.$ac_ext
  6754. fi
  6755. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6756. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6757. if test $ac_cv_func_alloca_works = yes; then
  6758. cat >>confdefs.h <<\_ACEOF
  6759. #define HAVE_ALLOCA 1
  6760. _ACEOF
  6761. else
  6762. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6763. # that cause trouble. Some versions do not even contain alloca or
  6764. # contain a buggy version. If you still want to use their alloca,
  6765. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6766. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6767. cat >>confdefs.h <<\_ACEOF
  6768. #define C_ALLOCA 1
  6769. _ACEOF
  6770. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6771. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6772. if test "${ac_cv_os_cray+set}" = set; then
  6773. echo $ECHO_N "(cached) $ECHO_C" >&6
  6774. else
  6775. cat >conftest.$ac_ext <<_ACEOF
  6776. /* confdefs.h. */
  6777. _ACEOF
  6778. cat confdefs.h >>conftest.$ac_ext
  6779. cat >>conftest.$ac_ext <<_ACEOF
  6780. /* end confdefs.h. */
  6781. #if defined CRAY && ! defined CRAY2
  6782. webecray
  6783. #else
  6784. wenotbecray
  6785. #endif
  6786. _ACEOF
  6787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6788. $EGREP "webecray" >/dev/null 2>&1; then
  6789. ac_cv_os_cray=yes
  6790. else
  6791. ac_cv_os_cray=no
  6792. fi
  6793. rm -f conftest*
  6794. fi
  6795. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6796. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6797. if test $ac_cv_os_cray = yes; then
  6798. for ac_func in _getb67 GETB67 getb67; do
  6799. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6800. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6801. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6802. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6803. echo $ECHO_N "(cached) $ECHO_C" >&6
  6804. else
  6805. cat >conftest.$ac_ext <<_ACEOF
  6806. /* confdefs.h. */
  6807. _ACEOF
  6808. cat confdefs.h >>conftest.$ac_ext
  6809. cat >>conftest.$ac_ext <<_ACEOF
  6810. /* end confdefs.h. */
  6811. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6812. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6813. #define $ac_func innocuous_$ac_func
  6814. /* System header to define __stub macros and hopefully few prototypes,
  6815. which can conflict with char $ac_func (); below.
  6816. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6817. <limits.h> exists even on freestanding compilers. */
  6818. #ifdef __STDC__
  6819. # include <limits.h>
  6820. #else
  6821. # include <assert.h>
  6822. #endif
  6823. #undef $ac_func
  6824. /* Override any GCC internal prototype to avoid an error.
  6825. Use char because int might match the return type of a GCC
  6826. builtin and then its argument prototype would still apply. */
  6827. #ifdef __cplusplus
  6828. extern "C"
  6829. #endif
  6830. char $ac_func ();
  6831. /* The GNU C library defines this for functions which it implements
  6832. to always fail with ENOSYS. Some functions are actually named
  6833. something starting with __ and the normal name is an alias. */
  6834. #if defined __stub_$ac_func || defined __stub___$ac_func
  6835. choke me
  6836. #endif
  6837. int
  6838. main ()
  6839. {
  6840. return $ac_func ();
  6841. ;
  6842. return 0;
  6843. }
  6844. _ACEOF
  6845. rm -f conftest.$ac_objext conftest$ac_exeext
  6846. if { (ac_try="$ac_link"
  6847. case "(($ac_try" in
  6848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6849. *) ac_try_echo=$ac_try;;
  6850. esac
  6851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6852. (eval "$ac_link") 2>conftest.er1
  6853. ac_status=$?
  6854. grep -v '^ *+' conftest.er1 >conftest.err
  6855. rm -f conftest.er1
  6856. cat conftest.err >&5
  6857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6858. (exit $ac_status); } && {
  6859. test -z "$ac_cxx_werror_flag" ||
  6860. test ! -s conftest.err
  6861. } && test -s conftest$ac_exeext &&
  6862. $as_test_x conftest$ac_exeext; then
  6863. eval "$as_ac_var=yes"
  6864. else
  6865. echo "$as_me: failed program was:" >&5
  6866. sed 's/^/| /' conftest.$ac_ext >&5
  6867. eval "$as_ac_var=no"
  6868. fi
  6869. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6870. conftest$ac_exeext conftest.$ac_ext
  6871. fi
  6872. ac_res=`eval echo '${'$as_ac_var'}'`
  6873. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6874. echo "${ECHO_T}$ac_res" >&6; }
  6875. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6876. cat >>confdefs.h <<_ACEOF
  6877. #define CRAY_STACKSEG_END $ac_func
  6878. _ACEOF
  6879. break
  6880. fi
  6881. done
  6882. fi
  6883. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6884. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6885. if test "${ac_cv_c_stack_direction+set}" = set; then
  6886. echo $ECHO_N "(cached) $ECHO_C" >&6
  6887. else
  6888. if test "$cross_compiling" = yes; then
  6889. ac_cv_c_stack_direction=0
  6890. else
  6891. cat >conftest.$ac_ext <<_ACEOF
  6892. /* confdefs.h. */
  6893. _ACEOF
  6894. cat confdefs.h >>conftest.$ac_ext
  6895. cat >>conftest.$ac_ext <<_ACEOF
  6896. /* end confdefs.h. */
  6897. $ac_includes_default
  6898. int
  6899. find_stack_direction ()
  6900. {
  6901. static char *addr = 0;
  6902. auto char dummy;
  6903. if (addr == 0)
  6904. {
  6905. addr = &dummy;
  6906. return find_stack_direction ();
  6907. }
  6908. else
  6909. return (&dummy > addr) ? 1 : -1;
  6910. }
  6911. int
  6912. main ()
  6913. {
  6914. return find_stack_direction () < 0;
  6915. }
  6916. _ACEOF
  6917. rm -f conftest$ac_exeext
  6918. if { (ac_try="$ac_link"
  6919. case "(($ac_try" in
  6920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6921. *) ac_try_echo=$ac_try;;
  6922. esac
  6923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6924. (eval "$ac_link") 2>&5
  6925. ac_status=$?
  6926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6927. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6928. { (case "(($ac_try" in
  6929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6930. *) ac_try_echo=$ac_try;;
  6931. esac
  6932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6933. (eval "$ac_try") 2>&5
  6934. ac_status=$?
  6935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6936. (exit $ac_status); }; }; then
  6937. ac_cv_c_stack_direction=1
  6938. else
  6939. echo "$as_me: program exited with status $ac_status" >&5
  6940. echo "$as_me: failed program was:" >&5
  6941. sed 's/^/| /' conftest.$ac_ext >&5
  6942. ( exit $ac_status )
  6943. ac_cv_c_stack_direction=-1
  6944. fi
  6945. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6946. fi
  6947. fi
  6948. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6949. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6950. cat >>confdefs.h <<_ACEOF
  6951. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6952. _ACEOF
  6953. fi
  6954. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6955. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6956. if test "${ac_cv_header_stdc+set}" = set; then
  6957. echo $ECHO_N "(cached) $ECHO_C" >&6
  6958. else
  6959. cat >conftest.$ac_ext <<_ACEOF
  6960. /* confdefs.h. */
  6961. _ACEOF
  6962. cat confdefs.h >>conftest.$ac_ext
  6963. cat >>conftest.$ac_ext <<_ACEOF
  6964. /* end confdefs.h. */
  6965. #include <stdlib.h>
  6966. #include <stdarg.h>
  6967. #include <string.h>
  6968. #include <float.h>
  6969. int
  6970. main ()
  6971. {
  6972. ;
  6973. return 0;
  6974. }
  6975. _ACEOF
  6976. rm -f conftest.$ac_objext
  6977. if { (ac_try="$ac_compile"
  6978. case "(($ac_try" in
  6979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6980. *) ac_try_echo=$ac_try;;
  6981. esac
  6982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6983. (eval "$ac_compile") 2>conftest.er1
  6984. ac_status=$?
  6985. grep -v '^ *+' conftest.er1 >conftest.err
  6986. rm -f conftest.er1
  6987. cat conftest.err >&5
  6988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6989. (exit $ac_status); } && {
  6990. test -z "$ac_cxx_werror_flag" ||
  6991. test ! -s conftest.err
  6992. } && test -s conftest.$ac_objext; then
  6993. ac_cv_header_stdc=yes
  6994. else
  6995. echo "$as_me: failed program was:" >&5
  6996. sed 's/^/| /' conftest.$ac_ext >&5
  6997. ac_cv_header_stdc=no
  6998. fi
  6999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7000. if test $ac_cv_header_stdc = yes; then
  7001. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7002. cat >conftest.$ac_ext <<_ACEOF
  7003. /* confdefs.h. */
  7004. _ACEOF
  7005. cat confdefs.h >>conftest.$ac_ext
  7006. cat >>conftest.$ac_ext <<_ACEOF
  7007. /* end confdefs.h. */
  7008. #include <string.h>
  7009. _ACEOF
  7010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7011. $EGREP "memchr" >/dev/null 2>&1; then
  7012. :
  7013. else
  7014. ac_cv_header_stdc=no
  7015. fi
  7016. rm -f conftest*
  7017. fi
  7018. if test $ac_cv_header_stdc = yes; then
  7019. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7020. cat >conftest.$ac_ext <<_ACEOF
  7021. /* confdefs.h. */
  7022. _ACEOF
  7023. cat confdefs.h >>conftest.$ac_ext
  7024. cat >>conftest.$ac_ext <<_ACEOF
  7025. /* end confdefs.h. */
  7026. #include <stdlib.h>
  7027. _ACEOF
  7028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7029. $EGREP "free" >/dev/null 2>&1; then
  7030. :
  7031. else
  7032. ac_cv_header_stdc=no
  7033. fi
  7034. rm -f conftest*
  7035. fi
  7036. if test $ac_cv_header_stdc = yes; then
  7037. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7038. if test "$cross_compiling" = yes; then
  7039. :
  7040. else
  7041. cat >conftest.$ac_ext <<_ACEOF
  7042. /* confdefs.h. */
  7043. _ACEOF
  7044. cat confdefs.h >>conftest.$ac_ext
  7045. cat >>conftest.$ac_ext <<_ACEOF
  7046. /* end confdefs.h. */
  7047. #include <ctype.h>
  7048. #include <stdlib.h>
  7049. #if ((' ' & 0x0FF) == 0x020)
  7050. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7051. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7052. #else
  7053. # define ISLOWER(c) \
  7054. (('a' <= (c) && (c) <= 'i') \
  7055. || ('j' <= (c) && (c) <= 'r') \
  7056. || ('s' <= (c) && (c) <= 'z'))
  7057. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7058. #endif
  7059. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7060. int
  7061. main ()
  7062. {
  7063. int i;
  7064. for (i = 0; i < 256; i++)
  7065. if (XOR (islower (i), ISLOWER (i))
  7066. || toupper (i) != TOUPPER (i))
  7067. return 2;
  7068. return 0;
  7069. }
  7070. _ACEOF
  7071. rm -f conftest$ac_exeext
  7072. if { (ac_try="$ac_link"
  7073. case "(($ac_try" in
  7074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7075. *) ac_try_echo=$ac_try;;
  7076. esac
  7077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7078. (eval "$ac_link") 2>&5
  7079. ac_status=$?
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7082. { (case "(($ac_try" in
  7083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7084. *) ac_try_echo=$ac_try;;
  7085. esac
  7086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7087. (eval "$ac_try") 2>&5
  7088. ac_status=$?
  7089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7090. (exit $ac_status); }; }; then
  7091. :
  7092. else
  7093. echo "$as_me: program exited with status $ac_status" >&5
  7094. echo "$as_me: failed program was:" >&5
  7095. sed 's/^/| /' conftest.$ac_ext >&5
  7096. ( exit $ac_status )
  7097. ac_cv_header_stdc=no
  7098. fi
  7099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7100. fi
  7101. fi
  7102. fi
  7103. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7104. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7105. if test $ac_cv_header_stdc = yes; then
  7106. cat >>confdefs.h <<\_ACEOF
  7107. #define STDC_HEADERS 1
  7108. _ACEOF
  7109. fi
  7110. case "$target" in
  7111. *mingw*)
  7112. for ac_header in winsock2.h \
  7113. ws2tcpip.h
  7114. do
  7115. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7116. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7117. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7118. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7119. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7120. echo $ECHO_N "(cached) $ECHO_C" >&6
  7121. fi
  7122. ac_res=`eval echo '${'$as_ac_Header'}'`
  7123. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7124. echo "${ECHO_T}$ac_res" >&6; }
  7125. else
  7126. # Is the header compilable?
  7127. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7128. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7129. cat >conftest.$ac_ext <<_ACEOF
  7130. /* confdefs.h. */
  7131. _ACEOF
  7132. cat confdefs.h >>conftest.$ac_ext
  7133. cat >>conftest.$ac_ext <<_ACEOF
  7134. /* end confdefs.h. */
  7135. $ac_includes_default
  7136. #include <$ac_header>
  7137. _ACEOF
  7138. rm -f conftest.$ac_objext
  7139. if { (ac_try="$ac_compile"
  7140. case "(($ac_try" in
  7141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7142. *) ac_try_echo=$ac_try;;
  7143. esac
  7144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7145. (eval "$ac_compile") 2>conftest.er1
  7146. ac_status=$?
  7147. grep -v '^ *+' conftest.er1 >conftest.err
  7148. rm -f conftest.er1
  7149. cat conftest.err >&5
  7150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7151. (exit $ac_status); } && {
  7152. test -z "$ac_cxx_werror_flag" ||
  7153. test ! -s conftest.err
  7154. } && test -s conftest.$ac_objext; then
  7155. ac_header_compiler=yes
  7156. else
  7157. echo "$as_me: failed program was:" >&5
  7158. sed 's/^/| /' conftest.$ac_ext >&5
  7159. ac_header_compiler=no
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7162. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7163. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7164. # Is the header present?
  7165. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7166. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7167. cat >conftest.$ac_ext <<_ACEOF
  7168. /* confdefs.h. */
  7169. _ACEOF
  7170. cat confdefs.h >>conftest.$ac_ext
  7171. cat >>conftest.$ac_ext <<_ACEOF
  7172. /* end confdefs.h. */
  7173. #include <$ac_header>
  7174. _ACEOF
  7175. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7176. case "(($ac_try" in
  7177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7178. *) ac_try_echo=$ac_try;;
  7179. esac
  7180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7181. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7182. ac_status=$?
  7183. grep -v '^ *+' conftest.er1 >conftest.err
  7184. rm -f conftest.er1
  7185. cat conftest.err >&5
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); } >/dev/null && {
  7188. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7189. test ! -s conftest.err
  7190. }; then
  7191. ac_header_preproc=yes
  7192. else
  7193. echo "$as_me: failed program was:" >&5
  7194. sed 's/^/| /' conftest.$ac_ext >&5
  7195. ac_header_preproc=no
  7196. fi
  7197. rm -f conftest.err conftest.$ac_ext
  7198. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7199. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7200. # So? What about this header?
  7201. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7202. yes:no: )
  7203. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7204. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7205. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7206. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7207. ac_header_preproc=yes
  7208. ;;
  7209. no:yes:* )
  7210. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7211. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7212. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7213. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7214. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7215. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7216. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7217. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7218. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7219. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7220. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7221. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7222. ( cat <<\_ASBOX
  7223. ## ----------------------------------------------- ##
  7224. ## Report this to t-tujikawa@users.sourceforge.net ##
  7225. ## ----------------------------------------------- ##
  7226. _ASBOX
  7227. ) | sed "s/^/$as_me: WARNING: /" >&2
  7228. ;;
  7229. esac
  7230. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7231. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7232. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7233. echo $ECHO_N "(cached) $ECHO_C" >&6
  7234. else
  7235. eval "$as_ac_Header=\$ac_header_preproc"
  7236. fi
  7237. ac_res=`eval echo '${'$as_ac_Header'}'`
  7238. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7239. echo "${ECHO_T}$ac_res" >&6; }
  7240. fi
  7241. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7242. cat >>confdefs.h <<_ACEOF
  7243. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7244. _ACEOF
  7245. fi
  7246. done
  7247. ;;
  7248. esac
  7249. for ac_header in argz.h \
  7250. arpa/inet.h \
  7251. fcntl.h \
  7252. float.h \
  7253. inttypes.h \
  7254. io.h \
  7255. langinfo.h \
  7256. libintl.h \
  7257. limits.h \
  7258. locale.h \
  7259. malloc.h \
  7260. netdb.h \
  7261. netinet/in.h \
  7262. stddef.h \
  7263. stdint.h \
  7264. stdio_ext.h \
  7265. stdlib.h \
  7266. string.h \
  7267. strings.h \
  7268. sys/ioctl.h \
  7269. sys/param.h \
  7270. sys/socket.h \
  7271. sys/time.h \
  7272. termios.h \
  7273. unistd.h \
  7274. wchar.h
  7275. do
  7276. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7277. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7278. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7279. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7280. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7281. echo $ECHO_N "(cached) $ECHO_C" >&6
  7282. fi
  7283. ac_res=`eval echo '${'$as_ac_Header'}'`
  7284. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7285. echo "${ECHO_T}$ac_res" >&6; }
  7286. else
  7287. # Is the header compilable?
  7288. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7289. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7290. cat >conftest.$ac_ext <<_ACEOF
  7291. /* confdefs.h. */
  7292. _ACEOF
  7293. cat confdefs.h >>conftest.$ac_ext
  7294. cat >>conftest.$ac_ext <<_ACEOF
  7295. /* end confdefs.h. */
  7296. $ac_includes_default
  7297. #include <$ac_header>
  7298. _ACEOF
  7299. rm -f conftest.$ac_objext
  7300. if { (ac_try="$ac_compile"
  7301. case "(($ac_try" in
  7302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7303. *) ac_try_echo=$ac_try;;
  7304. esac
  7305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7306. (eval "$ac_compile") 2>conftest.er1
  7307. ac_status=$?
  7308. grep -v '^ *+' conftest.er1 >conftest.err
  7309. rm -f conftest.er1
  7310. cat conftest.err >&5
  7311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7312. (exit $ac_status); } && {
  7313. test -z "$ac_cxx_werror_flag" ||
  7314. test ! -s conftest.err
  7315. } && test -s conftest.$ac_objext; then
  7316. ac_header_compiler=yes
  7317. else
  7318. echo "$as_me: failed program was:" >&5
  7319. sed 's/^/| /' conftest.$ac_ext >&5
  7320. ac_header_compiler=no
  7321. fi
  7322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7323. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7324. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7325. # Is the header present?
  7326. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7327. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7328. cat >conftest.$ac_ext <<_ACEOF
  7329. /* confdefs.h. */
  7330. _ACEOF
  7331. cat confdefs.h >>conftest.$ac_ext
  7332. cat >>conftest.$ac_ext <<_ACEOF
  7333. /* end confdefs.h. */
  7334. #include <$ac_header>
  7335. _ACEOF
  7336. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7337. case "(($ac_try" in
  7338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7339. *) ac_try_echo=$ac_try;;
  7340. esac
  7341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7342. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7343. ac_status=$?
  7344. grep -v '^ *+' conftest.er1 >conftest.err
  7345. rm -f conftest.er1
  7346. cat conftest.err >&5
  7347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7348. (exit $ac_status); } >/dev/null && {
  7349. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7350. test ! -s conftest.err
  7351. }; then
  7352. ac_header_preproc=yes
  7353. else
  7354. echo "$as_me: failed program was:" >&5
  7355. sed 's/^/| /' conftest.$ac_ext >&5
  7356. ac_header_preproc=no
  7357. fi
  7358. rm -f conftest.err conftest.$ac_ext
  7359. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7360. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7361. # So? What about this header?
  7362. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7363. yes:no: )
  7364. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7365. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7366. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7367. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7368. ac_header_preproc=yes
  7369. ;;
  7370. no:yes:* )
  7371. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7372. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7373. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7374. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7375. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7376. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7377. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7378. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7379. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7380. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7381. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7382. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7383. ( cat <<\_ASBOX
  7384. ## ----------------------------------------------- ##
  7385. ## Report this to t-tujikawa@users.sourceforge.net ##
  7386. ## ----------------------------------------------- ##
  7387. _ASBOX
  7388. ) | sed "s/^/$as_me: WARNING: /" >&2
  7389. ;;
  7390. esac
  7391. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7392. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7393. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7394. echo $ECHO_N "(cached) $ECHO_C" >&6
  7395. else
  7396. eval "$as_ac_Header=\$ac_header_preproc"
  7397. fi
  7398. ac_res=`eval echo '${'$as_ac_Header'}'`
  7399. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7400. echo "${ECHO_T}$ac_res" >&6; }
  7401. fi
  7402. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7403. cat >>confdefs.h <<_ACEOF
  7404. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7405. _ACEOF
  7406. fi
  7407. done
  7408. # Checks for typedefs, structures, and compiler characteristics.
  7409. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7410. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7411. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7412. echo $ECHO_N "(cached) $ECHO_C" >&6
  7413. else
  7414. cat >conftest.$ac_ext <<_ACEOF
  7415. /* confdefs.h. */
  7416. _ACEOF
  7417. cat confdefs.h >>conftest.$ac_ext
  7418. cat >>conftest.$ac_ext <<_ACEOF
  7419. /* end confdefs.h. */
  7420. #include <stdbool.h>
  7421. #ifndef bool
  7422. "error: bool is not defined"
  7423. #endif
  7424. #ifndef false
  7425. "error: false is not defined"
  7426. #endif
  7427. #if false
  7428. "error: false is not 0"
  7429. #endif
  7430. #ifndef true
  7431. "error: true is not defined"
  7432. #endif
  7433. #if true != 1
  7434. "error: true is not 1"
  7435. #endif
  7436. #ifndef __bool_true_false_are_defined
  7437. "error: __bool_true_false_are_defined is not defined"
  7438. #endif
  7439. struct s { _Bool s: 1; _Bool t; } s;
  7440. char a[true == 1 ? 1 : -1];
  7441. char b[false == 0 ? 1 : -1];
  7442. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7443. char d[(bool) 0.5 == true ? 1 : -1];
  7444. bool e = &s;
  7445. char f[(_Bool) 0.0 == false ? 1 : -1];
  7446. char g[true];
  7447. char h[sizeof (_Bool)];
  7448. char i[sizeof s.t];
  7449. enum { j = false, k = true, l = false * true, m = true * 256 };
  7450. _Bool n[m];
  7451. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7452. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7453. # if defined __xlc__ || defined __GNUC__
  7454. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7455. reported by James Lemley on 2005-10-05; see
  7456. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7457. This test is not quite right, since xlc is allowed to
  7458. reject this program, as the initializer for xlcbug is
  7459. not one of the forms that C requires support for.
  7460. However, doing the test right would require a runtime
  7461. test, and that would make cross-compilation harder.
  7462. Let us hope that IBM fixes the xlc bug, and also adds
  7463. support for this kind of constant expression. In the
  7464. meantime, this test will reject xlc, which is OK, since
  7465. our stdbool.h substitute should suffice. We also test
  7466. this with GCC, where it should work, to detect more
  7467. quickly whether someone messes up the test in the
  7468. future. */
  7469. char digs[] = "0123456789";
  7470. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7471. # endif
  7472. /* Catch a bug in an HP-UX C compiler. See
  7473. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7474. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7475. */
  7476. _Bool q = true;
  7477. _Bool *pq = &q;
  7478. int
  7479. main ()
  7480. {
  7481. *pq |= q;
  7482. *pq |= ! q;
  7483. /* Refer to every declared value, to avoid compiler optimizations. */
  7484. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7485. + !m + !n + !o + !p + !q + !pq);
  7486. ;
  7487. return 0;
  7488. }
  7489. _ACEOF
  7490. rm -f conftest.$ac_objext
  7491. if { (ac_try="$ac_compile"
  7492. case "(($ac_try" in
  7493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7494. *) ac_try_echo=$ac_try;;
  7495. esac
  7496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7497. (eval "$ac_compile") 2>conftest.er1
  7498. ac_status=$?
  7499. grep -v '^ *+' conftest.er1 >conftest.err
  7500. rm -f conftest.er1
  7501. cat conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); } && {
  7504. test -z "$ac_cxx_werror_flag" ||
  7505. test ! -s conftest.err
  7506. } && test -s conftest.$ac_objext; then
  7507. ac_cv_header_stdbool_h=yes
  7508. else
  7509. echo "$as_me: failed program was:" >&5
  7510. sed 's/^/| /' conftest.$ac_ext >&5
  7511. ac_cv_header_stdbool_h=no
  7512. fi
  7513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7514. fi
  7515. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7516. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7517. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7518. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7519. if test "${ac_cv_type__Bool+set}" = set; then
  7520. echo $ECHO_N "(cached) $ECHO_C" >&6
  7521. else
  7522. cat >conftest.$ac_ext <<_ACEOF
  7523. /* confdefs.h. */
  7524. _ACEOF
  7525. cat confdefs.h >>conftest.$ac_ext
  7526. cat >>conftest.$ac_ext <<_ACEOF
  7527. /* end confdefs.h. */
  7528. $ac_includes_default
  7529. typedef _Bool ac__type_new_;
  7530. int
  7531. main ()
  7532. {
  7533. if ((ac__type_new_ *) 0)
  7534. return 0;
  7535. if (sizeof (ac__type_new_))
  7536. return 0;
  7537. ;
  7538. return 0;
  7539. }
  7540. _ACEOF
  7541. rm -f conftest.$ac_objext
  7542. if { (ac_try="$ac_compile"
  7543. case "(($ac_try" in
  7544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7545. *) ac_try_echo=$ac_try;;
  7546. esac
  7547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7548. (eval "$ac_compile") 2>conftest.er1
  7549. ac_status=$?
  7550. grep -v '^ *+' conftest.er1 >conftest.err
  7551. rm -f conftest.er1
  7552. cat conftest.err >&5
  7553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. (exit $ac_status); } && {
  7555. test -z "$ac_cxx_werror_flag" ||
  7556. test ! -s conftest.err
  7557. } && test -s conftest.$ac_objext; then
  7558. ac_cv_type__Bool=yes
  7559. else
  7560. echo "$as_me: failed program was:" >&5
  7561. sed 's/^/| /' conftest.$ac_ext >&5
  7562. ac_cv_type__Bool=no
  7563. fi
  7564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7565. fi
  7566. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7567. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7568. if test $ac_cv_type__Bool = yes; then
  7569. cat >>confdefs.h <<_ACEOF
  7570. #define HAVE__BOOL 1
  7571. _ACEOF
  7572. fi
  7573. if test $ac_cv_header_stdbool_h = yes; then
  7574. cat >>confdefs.h <<\_ACEOF
  7575. #define HAVE_STDBOOL_H 1
  7576. _ACEOF
  7577. fi
  7578. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7579. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7580. if test "${ac_cv_c_const+set}" = set; then
  7581. echo $ECHO_N "(cached) $ECHO_C" >&6
  7582. else
  7583. cat >conftest.$ac_ext <<_ACEOF
  7584. /* confdefs.h. */
  7585. _ACEOF
  7586. cat confdefs.h >>conftest.$ac_ext
  7587. cat >>conftest.$ac_ext <<_ACEOF
  7588. /* end confdefs.h. */
  7589. int
  7590. main ()
  7591. {
  7592. /* FIXME: Include the comments suggested by Paul. */
  7593. #ifndef __cplusplus
  7594. /* Ultrix mips cc rejects this. */
  7595. typedef int charset[2];
  7596. const charset cs;
  7597. /* SunOS 4.1.1 cc rejects this. */
  7598. char const *const *pcpcc;
  7599. char **ppc;
  7600. /* NEC SVR4.0.2 mips cc rejects this. */
  7601. struct point {int x, y;};
  7602. static struct point const zero = {0,0};
  7603. /* AIX XL C 1.02.0.0 rejects this.
  7604. It does not let you subtract one const X* pointer from another in
  7605. an arm of an if-expression whose if-part is not a constant
  7606. expression */
  7607. const char *g = "string";
  7608. pcpcc = &g + (g ? g-g : 0);
  7609. /* HPUX 7.0 cc rejects these. */
  7610. ++pcpcc;
  7611. ppc = (char**) pcpcc;
  7612. pcpcc = (char const *const *) ppc;
  7613. { /* SCO 3.2v4 cc rejects this. */
  7614. char *t;
  7615. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7616. *t++ = 0;
  7617. if (s) return 0;
  7618. }
  7619. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7620. int x[] = {25, 17};
  7621. const int *foo = &x[0];
  7622. ++foo;
  7623. }
  7624. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7625. typedef const int *iptr;
  7626. iptr p = 0;
  7627. ++p;
  7628. }
  7629. { /* AIX XL C 1.02.0.0 rejects this saying
  7630. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7631. struct s { int j; const int *ap[3]; };
  7632. struct s *b; b->j = 5;
  7633. }
  7634. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7635. const int foo = 10;
  7636. if (!foo) return 0;
  7637. }
  7638. return !cs[0] && !zero.x;
  7639. #endif
  7640. ;
  7641. return 0;
  7642. }
  7643. _ACEOF
  7644. rm -f conftest.$ac_objext
  7645. if { (ac_try="$ac_compile"
  7646. case "(($ac_try" in
  7647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7648. *) ac_try_echo=$ac_try;;
  7649. esac
  7650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7651. (eval "$ac_compile") 2>conftest.er1
  7652. ac_status=$?
  7653. grep -v '^ *+' conftest.er1 >conftest.err
  7654. rm -f conftest.er1
  7655. cat conftest.err >&5
  7656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7657. (exit $ac_status); } && {
  7658. test -z "$ac_cxx_werror_flag" ||
  7659. test ! -s conftest.err
  7660. } && test -s conftest.$ac_objext; then
  7661. ac_cv_c_const=yes
  7662. else
  7663. echo "$as_me: failed program was:" >&5
  7664. sed 's/^/| /' conftest.$ac_ext >&5
  7665. ac_cv_c_const=no
  7666. fi
  7667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7668. fi
  7669. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7670. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7671. if test $ac_cv_c_const = no; then
  7672. cat >>confdefs.h <<\_ACEOF
  7673. #define const
  7674. _ACEOF
  7675. fi
  7676. { echo "$as_me:$LINENO: checking for inline" >&5
  7677. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7678. if test "${ac_cv_c_inline+set}" = set; then
  7679. echo $ECHO_N "(cached) $ECHO_C" >&6
  7680. else
  7681. ac_cv_c_inline=no
  7682. for ac_kw in inline __inline__ __inline; do
  7683. cat >conftest.$ac_ext <<_ACEOF
  7684. /* confdefs.h. */
  7685. _ACEOF
  7686. cat confdefs.h >>conftest.$ac_ext
  7687. cat >>conftest.$ac_ext <<_ACEOF
  7688. /* end confdefs.h. */
  7689. #ifndef __cplusplus
  7690. typedef int foo_t;
  7691. static $ac_kw foo_t static_foo () {return 0; }
  7692. $ac_kw foo_t foo () {return 0; }
  7693. #endif
  7694. _ACEOF
  7695. rm -f conftest.$ac_objext
  7696. if { (ac_try="$ac_compile"
  7697. case "(($ac_try" in
  7698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7699. *) ac_try_echo=$ac_try;;
  7700. esac
  7701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7702. (eval "$ac_compile") 2>conftest.er1
  7703. ac_status=$?
  7704. grep -v '^ *+' conftest.er1 >conftest.err
  7705. rm -f conftest.er1
  7706. cat conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); } && {
  7709. test -z "$ac_cxx_werror_flag" ||
  7710. test ! -s conftest.err
  7711. } && test -s conftest.$ac_objext; then
  7712. ac_cv_c_inline=$ac_kw
  7713. else
  7714. echo "$as_me: failed program was:" >&5
  7715. sed 's/^/| /' conftest.$ac_ext >&5
  7716. fi
  7717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7718. test "$ac_cv_c_inline" != no && break
  7719. done
  7720. fi
  7721. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7722. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7723. case $ac_cv_c_inline in
  7724. inline | yes) ;;
  7725. *)
  7726. case $ac_cv_c_inline in
  7727. no) ac_val=;;
  7728. *) ac_val=$ac_cv_c_inline;;
  7729. esac
  7730. cat >>confdefs.h <<_ACEOF
  7731. #ifndef __cplusplus
  7732. #define inline $ac_val
  7733. #endif
  7734. _ACEOF
  7735. ;;
  7736. esac
  7737. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7738. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7739. if test "${ac_cv_c_int16_t+set}" = set; then
  7740. echo $ECHO_N "(cached) $ECHO_C" >&6
  7741. else
  7742. ac_cv_c_int16_t=no
  7743. for ac_type in 'int16_t' 'int' 'long int' \
  7744. 'long long int' 'short int' 'signed char'; do
  7745. cat >conftest.$ac_ext <<_ACEOF
  7746. /* confdefs.h. */
  7747. _ACEOF
  7748. cat confdefs.h >>conftest.$ac_ext
  7749. cat >>conftest.$ac_ext <<_ACEOF
  7750. /* end confdefs.h. */
  7751. $ac_includes_default
  7752. int
  7753. main ()
  7754. {
  7755. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7756. test_array [0] = 0
  7757. ;
  7758. return 0;
  7759. }
  7760. _ACEOF
  7761. rm -f conftest.$ac_objext
  7762. if { (ac_try="$ac_compile"
  7763. case "(($ac_try" in
  7764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7765. *) ac_try_echo=$ac_try;;
  7766. esac
  7767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7768. (eval "$ac_compile") 2>conftest.er1
  7769. ac_status=$?
  7770. grep -v '^ *+' conftest.er1 >conftest.err
  7771. rm -f conftest.er1
  7772. cat conftest.err >&5
  7773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7774. (exit $ac_status); } && {
  7775. test -z "$ac_cxx_werror_flag" ||
  7776. test ! -s conftest.err
  7777. } && test -s conftest.$ac_objext; then
  7778. cat >conftest.$ac_ext <<_ACEOF
  7779. /* confdefs.h. */
  7780. _ACEOF
  7781. cat confdefs.h >>conftest.$ac_ext
  7782. cat >>conftest.$ac_ext <<_ACEOF
  7783. /* end confdefs.h. */
  7784. $ac_includes_default
  7785. int
  7786. main ()
  7787. {
  7788. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7789. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7790. test_array [0] = 0
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. rm -f conftest.$ac_objext
  7796. if { (ac_try="$ac_compile"
  7797. case "(($ac_try" in
  7798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7799. *) ac_try_echo=$ac_try;;
  7800. esac
  7801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7802. (eval "$ac_compile") 2>conftest.er1
  7803. ac_status=$?
  7804. grep -v '^ *+' conftest.er1 >conftest.err
  7805. rm -f conftest.er1
  7806. cat conftest.err >&5
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); } && {
  7809. test -z "$ac_cxx_werror_flag" ||
  7810. test ! -s conftest.err
  7811. } && test -s conftest.$ac_objext; then
  7812. :
  7813. else
  7814. echo "$as_me: failed program was:" >&5
  7815. sed 's/^/| /' conftest.$ac_ext >&5
  7816. case $ac_type in
  7817. int16_t) ac_cv_c_int16_t=yes ;;
  7818. *) ac_cv_c_int16_t=$ac_type ;;
  7819. esac
  7820. fi
  7821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7822. else
  7823. echo "$as_me: failed program was:" >&5
  7824. sed 's/^/| /' conftest.$ac_ext >&5
  7825. fi
  7826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7827. test "$ac_cv_c_int16_t" != no && break
  7828. done
  7829. fi
  7830. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7831. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7832. case $ac_cv_c_int16_t in #(
  7833. no|yes) ;; #(
  7834. *)
  7835. cat >>confdefs.h <<_ACEOF
  7836. #define int16_t $ac_cv_c_int16_t
  7837. _ACEOF
  7838. ;;
  7839. esac
  7840. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7841. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7842. if test "${ac_cv_c_int32_t+set}" = set; then
  7843. echo $ECHO_N "(cached) $ECHO_C" >&6
  7844. else
  7845. ac_cv_c_int32_t=no
  7846. for ac_type in 'int32_t' 'int' 'long int' \
  7847. 'long long int' 'short int' 'signed char'; do
  7848. cat >conftest.$ac_ext <<_ACEOF
  7849. /* confdefs.h. */
  7850. _ACEOF
  7851. cat confdefs.h >>conftest.$ac_ext
  7852. cat >>conftest.$ac_ext <<_ACEOF
  7853. /* end confdefs.h. */
  7854. $ac_includes_default
  7855. int
  7856. main ()
  7857. {
  7858. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7859. test_array [0] = 0
  7860. ;
  7861. return 0;
  7862. }
  7863. _ACEOF
  7864. rm -f conftest.$ac_objext
  7865. if { (ac_try="$ac_compile"
  7866. case "(($ac_try" in
  7867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7868. *) ac_try_echo=$ac_try;;
  7869. esac
  7870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7871. (eval "$ac_compile") 2>conftest.er1
  7872. ac_status=$?
  7873. grep -v '^ *+' conftest.er1 >conftest.err
  7874. rm -f conftest.er1
  7875. cat conftest.err >&5
  7876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7877. (exit $ac_status); } && {
  7878. test -z "$ac_cxx_werror_flag" ||
  7879. test ! -s conftest.err
  7880. } && test -s conftest.$ac_objext; then
  7881. cat >conftest.$ac_ext <<_ACEOF
  7882. /* confdefs.h. */
  7883. _ACEOF
  7884. cat confdefs.h >>conftest.$ac_ext
  7885. cat >>conftest.$ac_ext <<_ACEOF
  7886. /* end confdefs.h. */
  7887. $ac_includes_default
  7888. int
  7889. main ()
  7890. {
  7891. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7892. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7893. test_array [0] = 0
  7894. ;
  7895. return 0;
  7896. }
  7897. _ACEOF
  7898. rm -f conftest.$ac_objext
  7899. if { (ac_try="$ac_compile"
  7900. case "(($ac_try" in
  7901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7902. *) ac_try_echo=$ac_try;;
  7903. esac
  7904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7905. (eval "$ac_compile") 2>conftest.er1
  7906. ac_status=$?
  7907. grep -v '^ *+' conftest.er1 >conftest.err
  7908. rm -f conftest.er1
  7909. cat conftest.err >&5
  7910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); } && {
  7912. test -z "$ac_cxx_werror_flag" ||
  7913. test ! -s conftest.err
  7914. } && test -s conftest.$ac_objext; then
  7915. :
  7916. else
  7917. echo "$as_me: failed program was:" >&5
  7918. sed 's/^/| /' conftest.$ac_ext >&5
  7919. case $ac_type in
  7920. int32_t) ac_cv_c_int32_t=yes ;;
  7921. *) ac_cv_c_int32_t=$ac_type ;;
  7922. esac
  7923. fi
  7924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7925. else
  7926. echo "$as_me: failed program was:" >&5
  7927. sed 's/^/| /' conftest.$ac_ext >&5
  7928. fi
  7929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7930. test "$ac_cv_c_int32_t" != no && break
  7931. done
  7932. fi
  7933. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7934. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7935. case $ac_cv_c_int32_t in #(
  7936. no|yes) ;; #(
  7937. *)
  7938. cat >>confdefs.h <<_ACEOF
  7939. #define int32_t $ac_cv_c_int32_t
  7940. _ACEOF
  7941. ;;
  7942. esac
  7943. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7944. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7945. if test "${ac_cv_c_int64_t+set}" = set; then
  7946. echo $ECHO_N "(cached) $ECHO_C" >&6
  7947. else
  7948. ac_cv_c_int64_t=no
  7949. for ac_type in 'int64_t' 'int' 'long int' \
  7950. 'long long int' 'short int' 'signed char'; do
  7951. cat >conftest.$ac_ext <<_ACEOF
  7952. /* confdefs.h. */
  7953. _ACEOF
  7954. cat confdefs.h >>conftest.$ac_ext
  7955. cat >>conftest.$ac_ext <<_ACEOF
  7956. /* end confdefs.h. */
  7957. $ac_includes_default
  7958. int
  7959. main ()
  7960. {
  7961. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7962. test_array [0] = 0
  7963. ;
  7964. return 0;
  7965. }
  7966. _ACEOF
  7967. rm -f conftest.$ac_objext
  7968. if { (ac_try="$ac_compile"
  7969. case "(($ac_try" in
  7970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7971. *) ac_try_echo=$ac_try;;
  7972. esac
  7973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7974. (eval "$ac_compile") 2>conftest.er1
  7975. ac_status=$?
  7976. grep -v '^ *+' conftest.er1 >conftest.err
  7977. rm -f conftest.er1
  7978. cat conftest.err >&5
  7979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); } && {
  7981. test -z "$ac_cxx_werror_flag" ||
  7982. test ! -s conftest.err
  7983. } && test -s conftest.$ac_objext; then
  7984. cat >conftest.$ac_ext <<_ACEOF
  7985. /* confdefs.h. */
  7986. _ACEOF
  7987. cat confdefs.h >>conftest.$ac_ext
  7988. cat >>conftest.$ac_ext <<_ACEOF
  7989. /* end confdefs.h. */
  7990. $ac_includes_default
  7991. int
  7992. main ()
  7993. {
  7994. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7995. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7996. test_array [0] = 0
  7997. ;
  7998. return 0;
  7999. }
  8000. _ACEOF
  8001. rm -f conftest.$ac_objext
  8002. if { (ac_try="$ac_compile"
  8003. case "(($ac_try" in
  8004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8005. *) ac_try_echo=$ac_try;;
  8006. esac
  8007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8008. (eval "$ac_compile") 2>conftest.er1
  8009. ac_status=$?
  8010. grep -v '^ *+' conftest.er1 >conftest.err
  8011. rm -f conftest.er1
  8012. cat conftest.err >&5
  8013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. (exit $ac_status); } && {
  8015. test -z "$ac_cxx_werror_flag" ||
  8016. test ! -s conftest.err
  8017. } && test -s conftest.$ac_objext; then
  8018. :
  8019. else
  8020. echo "$as_me: failed program was:" >&5
  8021. sed 's/^/| /' conftest.$ac_ext >&5
  8022. case $ac_type in
  8023. int64_t) ac_cv_c_int64_t=yes ;;
  8024. *) ac_cv_c_int64_t=$ac_type ;;
  8025. esac
  8026. fi
  8027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8028. else
  8029. echo "$as_me: failed program was:" >&5
  8030. sed 's/^/| /' conftest.$ac_ext >&5
  8031. fi
  8032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8033. test "$ac_cv_c_int64_t" != no && break
  8034. done
  8035. fi
  8036. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8037. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8038. case $ac_cv_c_int64_t in #(
  8039. no|yes) ;; #(
  8040. *)
  8041. cat >>confdefs.h <<_ACEOF
  8042. #define int64_t $ac_cv_c_int64_t
  8043. _ACEOF
  8044. ;;
  8045. esac
  8046. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8047. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8048. if test "${ac_cv_c_int8_t+set}" = set; then
  8049. echo $ECHO_N "(cached) $ECHO_C" >&6
  8050. else
  8051. ac_cv_c_int8_t=no
  8052. for ac_type in 'int8_t' 'int' 'long int' \
  8053. 'long long int' 'short int' 'signed char'; do
  8054. cat >conftest.$ac_ext <<_ACEOF
  8055. /* confdefs.h. */
  8056. _ACEOF
  8057. cat confdefs.h >>conftest.$ac_ext
  8058. cat >>conftest.$ac_ext <<_ACEOF
  8059. /* end confdefs.h. */
  8060. $ac_includes_default
  8061. int
  8062. main ()
  8063. {
  8064. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8065. test_array [0] = 0
  8066. ;
  8067. return 0;
  8068. }
  8069. _ACEOF
  8070. rm -f conftest.$ac_objext
  8071. if { (ac_try="$ac_compile"
  8072. case "(($ac_try" in
  8073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8074. *) ac_try_echo=$ac_try;;
  8075. esac
  8076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8077. (eval "$ac_compile") 2>conftest.er1
  8078. ac_status=$?
  8079. grep -v '^ *+' conftest.er1 >conftest.err
  8080. rm -f conftest.er1
  8081. cat conftest.err >&5
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); } && {
  8084. test -z "$ac_cxx_werror_flag" ||
  8085. test ! -s conftest.err
  8086. } && test -s conftest.$ac_objext; then
  8087. cat >conftest.$ac_ext <<_ACEOF
  8088. /* confdefs.h. */
  8089. _ACEOF
  8090. cat confdefs.h >>conftest.$ac_ext
  8091. cat >>conftest.$ac_ext <<_ACEOF
  8092. /* end confdefs.h. */
  8093. $ac_includes_default
  8094. int
  8095. main ()
  8096. {
  8097. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8098. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8099. test_array [0] = 0
  8100. ;
  8101. return 0;
  8102. }
  8103. _ACEOF
  8104. rm -f conftest.$ac_objext
  8105. if { (ac_try="$ac_compile"
  8106. case "(($ac_try" in
  8107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8108. *) ac_try_echo=$ac_try;;
  8109. esac
  8110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8111. (eval "$ac_compile") 2>conftest.er1
  8112. ac_status=$?
  8113. grep -v '^ *+' conftest.er1 >conftest.err
  8114. rm -f conftest.er1
  8115. cat conftest.err >&5
  8116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8117. (exit $ac_status); } && {
  8118. test -z "$ac_cxx_werror_flag" ||
  8119. test ! -s conftest.err
  8120. } && test -s conftest.$ac_objext; then
  8121. :
  8122. else
  8123. echo "$as_me: failed program was:" >&5
  8124. sed 's/^/| /' conftest.$ac_ext >&5
  8125. case $ac_type in
  8126. int8_t) ac_cv_c_int8_t=yes ;;
  8127. *) ac_cv_c_int8_t=$ac_type ;;
  8128. esac
  8129. fi
  8130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8131. else
  8132. echo "$as_me: failed program was:" >&5
  8133. sed 's/^/| /' conftest.$ac_ext >&5
  8134. fi
  8135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8136. test "$ac_cv_c_int8_t" != no && break
  8137. done
  8138. fi
  8139. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8140. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8141. case $ac_cv_c_int8_t in #(
  8142. no|yes) ;; #(
  8143. *)
  8144. cat >>confdefs.h <<_ACEOF
  8145. #define int8_t $ac_cv_c_int8_t
  8146. _ACEOF
  8147. ;;
  8148. esac
  8149. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8150. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8151. if test "${ac_cv_type_mode_t+set}" = set; then
  8152. echo $ECHO_N "(cached) $ECHO_C" >&6
  8153. else
  8154. cat >conftest.$ac_ext <<_ACEOF
  8155. /* confdefs.h. */
  8156. _ACEOF
  8157. cat confdefs.h >>conftest.$ac_ext
  8158. cat >>conftest.$ac_ext <<_ACEOF
  8159. /* end confdefs.h. */
  8160. $ac_includes_default
  8161. typedef mode_t ac__type_new_;
  8162. int
  8163. main ()
  8164. {
  8165. if ((ac__type_new_ *) 0)
  8166. return 0;
  8167. if (sizeof (ac__type_new_))
  8168. return 0;
  8169. ;
  8170. return 0;
  8171. }
  8172. _ACEOF
  8173. rm -f conftest.$ac_objext
  8174. if { (ac_try="$ac_compile"
  8175. case "(($ac_try" in
  8176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8177. *) ac_try_echo=$ac_try;;
  8178. esac
  8179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8180. (eval "$ac_compile") 2>conftest.er1
  8181. ac_status=$?
  8182. grep -v '^ *+' conftest.er1 >conftest.err
  8183. rm -f conftest.er1
  8184. cat conftest.err >&5
  8185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8186. (exit $ac_status); } && {
  8187. test -z "$ac_cxx_werror_flag" ||
  8188. test ! -s conftest.err
  8189. } && test -s conftest.$ac_objext; then
  8190. ac_cv_type_mode_t=yes
  8191. else
  8192. echo "$as_me: failed program was:" >&5
  8193. sed 's/^/| /' conftest.$ac_ext >&5
  8194. ac_cv_type_mode_t=no
  8195. fi
  8196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8197. fi
  8198. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8199. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8200. if test $ac_cv_type_mode_t = yes; then
  8201. :
  8202. else
  8203. cat >>confdefs.h <<_ACEOF
  8204. #define mode_t int
  8205. _ACEOF
  8206. fi
  8207. { echo "$as_me:$LINENO: checking for off_t" >&5
  8208. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8209. if test "${ac_cv_type_off_t+set}" = set; then
  8210. echo $ECHO_N "(cached) $ECHO_C" >&6
  8211. else
  8212. cat >conftest.$ac_ext <<_ACEOF
  8213. /* confdefs.h. */
  8214. _ACEOF
  8215. cat confdefs.h >>conftest.$ac_ext
  8216. cat >>conftest.$ac_ext <<_ACEOF
  8217. /* end confdefs.h. */
  8218. $ac_includes_default
  8219. typedef off_t ac__type_new_;
  8220. int
  8221. main ()
  8222. {
  8223. if ((ac__type_new_ *) 0)
  8224. return 0;
  8225. if (sizeof (ac__type_new_))
  8226. return 0;
  8227. ;
  8228. return 0;
  8229. }
  8230. _ACEOF
  8231. rm -f conftest.$ac_objext
  8232. if { (ac_try="$ac_compile"
  8233. case "(($ac_try" in
  8234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8235. *) ac_try_echo=$ac_try;;
  8236. esac
  8237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8238. (eval "$ac_compile") 2>conftest.er1
  8239. ac_status=$?
  8240. grep -v '^ *+' conftest.er1 >conftest.err
  8241. rm -f conftest.er1
  8242. cat conftest.err >&5
  8243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); } && {
  8245. test -z "$ac_cxx_werror_flag" ||
  8246. test ! -s conftest.err
  8247. } && test -s conftest.$ac_objext; then
  8248. ac_cv_type_off_t=yes
  8249. else
  8250. echo "$as_me: failed program was:" >&5
  8251. sed 's/^/| /' conftest.$ac_ext >&5
  8252. ac_cv_type_off_t=no
  8253. fi
  8254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8255. fi
  8256. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8257. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8258. if test $ac_cv_type_off_t = yes; then
  8259. :
  8260. else
  8261. cat >>confdefs.h <<_ACEOF
  8262. #define off_t long int
  8263. _ACEOF
  8264. fi
  8265. { echo "$as_me:$LINENO: checking for size_t" >&5
  8266. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8267. if test "${ac_cv_type_size_t+set}" = set; then
  8268. echo $ECHO_N "(cached) $ECHO_C" >&6
  8269. else
  8270. cat >conftest.$ac_ext <<_ACEOF
  8271. /* confdefs.h. */
  8272. _ACEOF
  8273. cat confdefs.h >>conftest.$ac_ext
  8274. cat >>conftest.$ac_ext <<_ACEOF
  8275. /* end confdefs.h. */
  8276. $ac_includes_default
  8277. typedef size_t ac__type_new_;
  8278. int
  8279. main ()
  8280. {
  8281. if ((ac__type_new_ *) 0)
  8282. return 0;
  8283. if (sizeof (ac__type_new_))
  8284. return 0;
  8285. ;
  8286. return 0;
  8287. }
  8288. _ACEOF
  8289. rm -f conftest.$ac_objext
  8290. if { (ac_try="$ac_compile"
  8291. case "(($ac_try" in
  8292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8293. *) ac_try_echo=$ac_try;;
  8294. esac
  8295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8296. (eval "$ac_compile") 2>conftest.er1
  8297. ac_status=$?
  8298. grep -v '^ *+' conftest.er1 >conftest.err
  8299. rm -f conftest.er1
  8300. cat conftest.err >&5
  8301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8302. (exit $ac_status); } && {
  8303. test -z "$ac_cxx_werror_flag" ||
  8304. test ! -s conftest.err
  8305. } && test -s conftest.$ac_objext; then
  8306. ac_cv_type_size_t=yes
  8307. else
  8308. echo "$as_me: failed program was:" >&5
  8309. sed 's/^/| /' conftest.$ac_ext >&5
  8310. ac_cv_type_size_t=no
  8311. fi
  8312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8313. fi
  8314. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8315. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8316. if test $ac_cv_type_size_t = yes; then
  8317. :
  8318. else
  8319. cat >>confdefs.h <<_ACEOF
  8320. #define size_t unsigned int
  8321. _ACEOF
  8322. fi
  8323. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8324. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8325. if test "${ac_cv_type_ssize_t+set}" = set; then
  8326. echo $ECHO_N "(cached) $ECHO_C" >&6
  8327. else
  8328. cat >conftest.$ac_ext <<_ACEOF
  8329. /* confdefs.h. */
  8330. _ACEOF
  8331. cat confdefs.h >>conftest.$ac_ext
  8332. cat >>conftest.$ac_ext <<_ACEOF
  8333. /* end confdefs.h. */
  8334. $ac_includes_default
  8335. typedef ssize_t ac__type_new_;
  8336. int
  8337. main ()
  8338. {
  8339. if ((ac__type_new_ *) 0)
  8340. return 0;
  8341. if (sizeof (ac__type_new_))
  8342. return 0;
  8343. ;
  8344. return 0;
  8345. }
  8346. _ACEOF
  8347. rm -f conftest.$ac_objext
  8348. if { (ac_try="$ac_compile"
  8349. case "(($ac_try" in
  8350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8351. *) ac_try_echo=$ac_try;;
  8352. esac
  8353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8354. (eval "$ac_compile") 2>conftest.er1
  8355. ac_status=$?
  8356. grep -v '^ *+' conftest.er1 >conftest.err
  8357. rm -f conftest.er1
  8358. cat conftest.err >&5
  8359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8360. (exit $ac_status); } && {
  8361. test -z "$ac_cxx_werror_flag" ||
  8362. test ! -s conftest.err
  8363. } && test -s conftest.$ac_objext; then
  8364. ac_cv_type_ssize_t=yes
  8365. else
  8366. echo "$as_me: failed program was:" >&5
  8367. sed 's/^/| /' conftest.$ac_ext >&5
  8368. ac_cv_type_ssize_t=no
  8369. fi
  8370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8371. fi
  8372. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8373. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8374. if test $ac_cv_type_ssize_t = yes; then
  8375. :
  8376. else
  8377. cat >>confdefs.h <<_ACEOF
  8378. #define ssize_t int
  8379. _ACEOF
  8380. fi
  8381. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8382. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8383. if test "${ac_cv_header_time+set}" = set; then
  8384. echo $ECHO_N "(cached) $ECHO_C" >&6
  8385. else
  8386. cat >conftest.$ac_ext <<_ACEOF
  8387. /* confdefs.h. */
  8388. _ACEOF
  8389. cat confdefs.h >>conftest.$ac_ext
  8390. cat >>conftest.$ac_ext <<_ACEOF
  8391. /* end confdefs.h. */
  8392. #include <sys/types.h>
  8393. #include <sys/time.h>
  8394. #include <time.h>
  8395. int
  8396. main ()
  8397. {
  8398. if ((struct tm *) 0)
  8399. return 0;
  8400. ;
  8401. return 0;
  8402. }
  8403. _ACEOF
  8404. rm -f conftest.$ac_objext
  8405. if { (ac_try="$ac_compile"
  8406. case "(($ac_try" in
  8407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8408. *) ac_try_echo=$ac_try;;
  8409. esac
  8410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8411. (eval "$ac_compile") 2>conftest.er1
  8412. ac_status=$?
  8413. grep -v '^ *+' conftest.er1 >conftest.err
  8414. rm -f conftest.er1
  8415. cat conftest.err >&5
  8416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8417. (exit $ac_status); } && {
  8418. test -z "$ac_cxx_werror_flag" ||
  8419. test ! -s conftest.err
  8420. } && test -s conftest.$ac_objext; then
  8421. ac_cv_header_time=yes
  8422. else
  8423. echo "$as_me: failed program was:" >&5
  8424. sed 's/^/| /' conftest.$ac_ext >&5
  8425. ac_cv_header_time=no
  8426. fi
  8427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8428. fi
  8429. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8430. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8431. if test $ac_cv_header_time = yes; then
  8432. cat >>confdefs.h <<\_ACEOF
  8433. #define TIME_WITH_SYS_TIME 1
  8434. _ACEOF
  8435. fi
  8436. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8437. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8438. if test "${ac_cv_struct_tm+set}" = set; then
  8439. echo $ECHO_N "(cached) $ECHO_C" >&6
  8440. else
  8441. cat >conftest.$ac_ext <<_ACEOF
  8442. /* confdefs.h. */
  8443. _ACEOF
  8444. cat confdefs.h >>conftest.$ac_ext
  8445. cat >>conftest.$ac_ext <<_ACEOF
  8446. /* end confdefs.h. */
  8447. #include <sys/types.h>
  8448. #include <time.h>
  8449. int
  8450. main ()
  8451. {
  8452. struct tm tm;
  8453. int *p = &tm.tm_sec;
  8454. return !p;
  8455. ;
  8456. return 0;
  8457. }
  8458. _ACEOF
  8459. rm -f conftest.$ac_objext
  8460. if { (ac_try="$ac_compile"
  8461. case "(($ac_try" in
  8462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8463. *) ac_try_echo=$ac_try;;
  8464. esac
  8465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8466. (eval "$ac_compile") 2>conftest.er1
  8467. ac_status=$?
  8468. grep -v '^ *+' conftest.er1 >conftest.err
  8469. rm -f conftest.er1
  8470. cat conftest.err >&5
  8471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8472. (exit $ac_status); } && {
  8473. test -z "$ac_cxx_werror_flag" ||
  8474. test ! -s conftest.err
  8475. } && test -s conftest.$ac_objext; then
  8476. ac_cv_struct_tm=time.h
  8477. else
  8478. echo "$as_me: failed program was:" >&5
  8479. sed 's/^/| /' conftest.$ac_ext >&5
  8480. ac_cv_struct_tm=sys/time.h
  8481. fi
  8482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8483. fi
  8484. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8485. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8486. if test $ac_cv_struct_tm = sys/time.h; then
  8487. cat >>confdefs.h <<\_ACEOF
  8488. #define TM_IN_SYS_TIME 1
  8489. _ACEOF
  8490. fi
  8491. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8492. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8493. if test "${ac_cv_c_uint16_t+set}" = set; then
  8494. echo $ECHO_N "(cached) $ECHO_C" >&6
  8495. else
  8496. ac_cv_c_uint16_t=no
  8497. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8498. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8499. cat >conftest.$ac_ext <<_ACEOF
  8500. /* confdefs.h. */
  8501. _ACEOF
  8502. cat confdefs.h >>conftest.$ac_ext
  8503. cat >>conftest.$ac_ext <<_ACEOF
  8504. /* end confdefs.h. */
  8505. $ac_includes_default
  8506. int
  8507. main ()
  8508. {
  8509. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8510. test_array [0] = 0
  8511. ;
  8512. return 0;
  8513. }
  8514. _ACEOF
  8515. rm -f conftest.$ac_objext
  8516. if { (ac_try="$ac_compile"
  8517. case "(($ac_try" in
  8518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8519. *) ac_try_echo=$ac_try;;
  8520. esac
  8521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8522. (eval "$ac_compile") 2>conftest.er1
  8523. ac_status=$?
  8524. grep -v '^ *+' conftest.er1 >conftest.err
  8525. rm -f conftest.er1
  8526. cat conftest.err >&5
  8527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8528. (exit $ac_status); } && {
  8529. test -z "$ac_cxx_werror_flag" ||
  8530. test ! -s conftest.err
  8531. } && test -s conftest.$ac_objext; then
  8532. case $ac_type in
  8533. uint16_t) ac_cv_c_uint16_t=yes ;;
  8534. *) ac_cv_c_uint16_t=$ac_type ;;
  8535. esac
  8536. else
  8537. echo "$as_me: failed program was:" >&5
  8538. sed 's/^/| /' conftest.$ac_ext >&5
  8539. fi
  8540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8541. test "$ac_cv_c_uint16_t" != no && break
  8542. done
  8543. fi
  8544. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8545. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8546. case $ac_cv_c_uint16_t in #(
  8547. no|yes) ;; #(
  8548. *)
  8549. cat >>confdefs.h <<_ACEOF
  8550. #define uint16_t $ac_cv_c_uint16_t
  8551. _ACEOF
  8552. ;;
  8553. esac
  8554. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8555. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8556. if test "${ac_cv_c_uint32_t+set}" = set; then
  8557. echo $ECHO_N "(cached) $ECHO_C" >&6
  8558. else
  8559. ac_cv_c_uint32_t=no
  8560. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8561. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8562. cat >conftest.$ac_ext <<_ACEOF
  8563. /* confdefs.h. */
  8564. _ACEOF
  8565. cat confdefs.h >>conftest.$ac_ext
  8566. cat >>conftest.$ac_ext <<_ACEOF
  8567. /* end confdefs.h. */
  8568. $ac_includes_default
  8569. int
  8570. main ()
  8571. {
  8572. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8573. test_array [0] = 0
  8574. ;
  8575. return 0;
  8576. }
  8577. _ACEOF
  8578. rm -f conftest.$ac_objext
  8579. if { (ac_try="$ac_compile"
  8580. case "(($ac_try" in
  8581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8582. *) ac_try_echo=$ac_try;;
  8583. esac
  8584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8585. (eval "$ac_compile") 2>conftest.er1
  8586. ac_status=$?
  8587. grep -v '^ *+' conftest.er1 >conftest.err
  8588. rm -f conftest.er1
  8589. cat conftest.err >&5
  8590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8591. (exit $ac_status); } && {
  8592. test -z "$ac_cxx_werror_flag" ||
  8593. test ! -s conftest.err
  8594. } && test -s conftest.$ac_objext; then
  8595. case $ac_type in
  8596. uint32_t) ac_cv_c_uint32_t=yes ;;
  8597. *) ac_cv_c_uint32_t=$ac_type ;;
  8598. esac
  8599. else
  8600. echo "$as_me: failed program was:" >&5
  8601. sed 's/^/| /' conftest.$ac_ext >&5
  8602. fi
  8603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8604. test "$ac_cv_c_uint32_t" != no && break
  8605. done
  8606. fi
  8607. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8608. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8609. case $ac_cv_c_uint32_t in #(
  8610. no|yes) ;; #(
  8611. *)
  8612. cat >>confdefs.h <<\_ACEOF
  8613. #define _UINT32_T 1
  8614. _ACEOF
  8615. cat >>confdefs.h <<_ACEOF
  8616. #define uint32_t $ac_cv_c_uint32_t
  8617. _ACEOF
  8618. ;;
  8619. esac
  8620. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8621. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8622. if test "${ac_cv_c_uint64_t+set}" = set; then
  8623. echo $ECHO_N "(cached) $ECHO_C" >&6
  8624. else
  8625. ac_cv_c_uint64_t=no
  8626. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8627. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8628. cat >conftest.$ac_ext <<_ACEOF
  8629. /* confdefs.h. */
  8630. _ACEOF
  8631. cat confdefs.h >>conftest.$ac_ext
  8632. cat >>conftest.$ac_ext <<_ACEOF
  8633. /* end confdefs.h. */
  8634. $ac_includes_default
  8635. int
  8636. main ()
  8637. {
  8638. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8639. test_array [0] = 0
  8640. ;
  8641. return 0;
  8642. }
  8643. _ACEOF
  8644. rm -f conftest.$ac_objext
  8645. if { (ac_try="$ac_compile"
  8646. case "(($ac_try" in
  8647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8648. *) ac_try_echo=$ac_try;;
  8649. esac
  8650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8651. (eval "$ac_compile") 2>conftest.er1
  8652. ac_status=$?
  8653. grep -v '^ *+' conftest.er1 >conftest.err
  8654. rm -f conftest.er1
  8655. cat conftest.err >&5
  8656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8657. (exit $ac_status); } && {
  8658. test -z "$ac_cxx_werror_flag" ||
  8659. test ! -s conftest.err
  8660. } && test -s conftest.$ac_objext; then
  8661. case $ac_type in
  8662. uint64_t) ac_cv_c_uint64_t=yes ;;
  8663. *) ac_cv_c_uint64_t=$ac_type ;;
  8664. esac
  8665. else
  8666. echo "$as_me: failed program was:" >&5
  8667. sed 's/^/| /' conftest.$ac_ext >&5
  8668. fi
  8669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8670. test "$ac_cv_c_uint64_t" != no && break
  8671. done
  8672. fi
  8673. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8674. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8675. case $ac_cv_c_uint64_t in #(
  8676. no|yes) ;; #(
  8677. *)
  8678. cat >>confdefs.h <<\_ACEOF
  8679. #define _UINT64_T 1
  8680. _ACEOF
  8681. cat >>confdefs.h <<_ACEOF
  8682. #define uint64_t $ac_cv_c_uint64_t
  8683. _ACEOF
  8684. ;;
  8685. esac
  8686. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8687. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8688. if test "${ac_cv_c_uint8_t+set}" = set; then
  8689. echo $ECHO_N "(cached) $ECHO_C" >&6
  8690. else
  8691. ac_cv_c_uint8_t=no
  8692. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8693. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8694. cat >conftest.$ac_ext <<_ACEOF
  8695. /* confdefs.h. */
  8696. _ACEOF
  8697. cat confdefs.h >>conftest.$ac_ext
  8698. cat >>conftest.$ac_ext <<_ACEOF
  8699. /* end confdefs.h. */
  8700. $ac_includes_default
  8701. int
  8702. main ()
  8703. {
  8704. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8705. test_array [0] = 0
  8706. ;
  8707. return 0;
  8708. }
  8709. _ACEOF
  8710. rm -f conftest.$ac_objext
  8711. if { (ac_try="$ac_compile"
  8712. case "(($ac_try" in
  8713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8714. *) ac_try_echo=$ac_try;;
  8715. esac
  8716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8717. (eval "$ac_compile") 2>conftest.er1
  8718. ac_status=$?
  8719. grep -v '^ *+' conftest.er1 >conftest.err
  8720. rm -f conftest.er1
  8721. cat conftest.err >&5
  8722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8723. (exit $ac_status); } && {
  8724. test -z "$ac_cxx_werror_flag" ||
  8725. test ! -s conftest.err
  8726. } && test -s conftest.$ac_objext; then
  8727. case $ac_type in
  8728. uint8_t) ac_cv_c_uint8_t=yes ;;
  8729. *) ac_cv_c_uint8_t=$ac_type ;;
  8730. esac
  8731. else
  8732. echo "$as_me: failed program was:" >&5
  8733. sed 's/^/| /' conftest.$ac_ext >&5
  8734. fi
  8735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8736. test "$ac_cv_c_uint8_t" != no && break
  8737. done
  8738. fi
  8739. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8740. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8741. case $ac_cv_c_uint8_t in #(
  8742. no|yes) ;; #(
  8743. *)
  8744. cat >>confdefs.h <<\_ACEOF
  8745. #define _UINT8_T 1
  8746. _ACEOF
  8747. cat >>confdefs.h <<_ACEOF
  8748. #define uint8_t $ac_cv_c_uint8_t
  8749. _ACEOF
  8750. ;;
  8751. esac
  8752. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8753. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8754. if test "${ac_cv_c_volatile+set}" = set; then
  8755. echo $ECHO_N "(cached) $ECHO_C" >&6
  8756. else
  8757. cat >conftest.$ac_ext <<_ACEOF
  8758. /* confdefs.h. */
  8759. _ACEOF
  8760. cat confdefs.h >>conftest.$ac_ext
  8761. cat >>conftest.$ac_ext <<_ACEOF
  8762. /* end confdefs.h. */
  8763. int
  8764. main ()
  8765. {
  8766. volatile int x;
  8767. int * volatile y = (int *) 0;
  8768. return !x && !y;
  8769. ;
  8770. return 0;
  8771. }
  8772. _ACEOF
  8773. rm -f conftest.$ac_objext
  8774. if { (ac_try="$ac_compile"
  8775. case "(($ac_try" in
  8776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8777. *) ac_try_echo=$ac_try;;
  8778. esac
  8779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8780. (eval "$ac_compile") 2>conftest.er1
  8781. ac_status=$?
  8782. grep -v '^ *+' conftest.er1 >conftest.err
  8783. rm -f conftest.er1
  8784. cat conftest.err >&5
  8785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8786. (exit $ac_status); } && {
  8787. test -z "$ac_cxx_werror_flag" ||
  8788. test ! -s conftest.err
  8789. } && test -s conftest.$ac_objext; then
  8790. ac_cv_c_volatile=yes
  8791. else
  8792. echo "$as_me: failed program was:" >&5
  8793. sed 's/^/| /' conftest.$ac_ext >&5
  8794. ac_cv_c_volatile=no
  8795. fi
  8796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8797. fi
  8798. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8799. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8800. if test $ac_cv_c_volatile = no; then
  8801. cat >>confdefs.h <<\_ACEOF
  8802. #define volatile
  8803. _ACEOF
  8804. fi
  8805. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8806. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8807. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8808. echo $ECHO_N "(cached) $ECHO_C" >&6
  8809. else
  8810. cat >conftest.$ac_ext <<_ACEOF
  8811. /* confdefs.h. */
  8812. _ACEOF
  8813. cat confdefs.h >>conftest.$ac_ext
  8814. cat >>conftest.$ac_ext <<_ACEOF
  8815. /* end confdefs.h. */
  8816. $ac_includes_default
  8817. typedef ptrdiff_t ac__type_new_;
  8818. int
  8819. main ()
  8820. {
  8821. if ((ac__type_new_ *) 0)
  8822. return 0;
  8823. if (sizeof (ac__type_new_))
  8824. return 0;
  8825. ;
  8826. return 0;
  8827. }
  8828. _ACEOF
  8829. rm -f conftest.$ac_objext
  8830. if { (ac_try="$ac_compile"
  8831. case "(($ac_try" in
  8832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8833. *) ac_try_echo=$ac_try;;
  8834. esac
  8835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8836. (eval "$ac_compile") 2>conftest.er1
  8837. ac_status=$?
  8838. grep -v '^ *+' conftest.er1 >conftest.err
  8839. rm -f conftest.er1
  8840. cat conftest.err >&5
  8841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8842. (exit $ac_status); } && {
  8843. test -z "$ac_cxx_werror_flag" ||
  8844. test ! -s conftest.err
  8845. } && test -s conftest.$ac_objext; then
  8846. ac_cv_type_ptrdiff_t=yes
  8847. else
  8848. echo "$as_me: failed program was:" >&5
  8849. sed 's/^/| /' conftest.$ac_ext >&5
  8850. ac_cv_type_ptrdiff_t=no
  8851. fi
  8852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8853. fi
  8854. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8855. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8856. if test $ac_cv_type_ptrdiff_t = yes; then
  8857. cat >>confdefs.h <<_ACEOF
  8858. #define HAVE_PTRDIFF_T 1
  8859. _ACEOF
  8860. fi
  8861. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8862. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8863. if test "${ac_cv_c_bigendian+set}" = set; then
  8864. echo $ECHO_N "(cached) $ECHO_C" >&6
  8865. else
  8866. # See if sys/param.h defines the BYTE_ORDER macro.
  8867. cat >conftest.$ac_ext <<_ACEOF
  8868. /* confdefs.h. */
  8869. _ACEOF
  8870. cat confdefs.h >>conftest.$ac_ext
  8871. cat >>conftest.$ac_ext <<_ACEOF
  8872. /* end confdefs.h. */
  8873. #include <sys/types.h>
  8874. #include <sys/param.h>
  8875. int
  8876. main ()
  8877. {
  8878. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8879. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8880. bogus endian macros
  8881. #endif
  8882. ;
  8883. return 0;
  8884. }
  8885. _ACEOF
  8886. rm -f conftest.$ac_objext
  8887. if { (ac_try="$ac_compile"
  8888. case "(($ac_try" in
  8889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8890. *) ac_try_echo=$ac_try;;
  8891. esac
  8892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8893. (eval "$ac_compile") 2>conftest.er1
  8894. ac_status=$?
  8895. grep -v '^ *+' conftest.er1 >conftest.err
  8896. rm -f conftest.er1
  8897. cat conftest.err >&5
  8898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8899. (exit $ac_status); } && {
  8900. test -z "$ac_cxx_werror_flag" ||
  8901. test ! -s conftest.err
  8902. } && test -s conftest.$ac_objext; then
  8903. # It does; now see whether it defined to BIG_ENDIAN or not.
  8904. cat >conftest.$ac_ext <<_ACEOF
  8905. /* confdefs.h. */
  8906. _ACEOF
  8907. cat confdefs.h >>conftest.$ac_ext
  8908. cat >>conftest.$ac_ext <<_ACEOF
  8909. /* end confdefs.h. */
  8910. #include <sys/types.h>
  8911. #include <sys/param.h>
  8912. int
  8913. main ()
  8914. {
  8915. #if BYTE_ORDER != BIG_ENDIAN
  8916. not big endian
  8917. #endif
  8918. ;
  8919. return 0;
  8920. }
  8921. _ACEOF
  8922. rm -f conftest.$ac_objext
  8923. if { (ac_try="$ac_compile"
  8924. case "(($ac_try" in
  8925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8926. *) ac_try_echo=$ac_try;;
  8927. esac
  8928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8929. (eval "$ac_compile") 2>conftest.er1
  8930. ac_status=$?
  8931. grep -v '^ *+' conftest.er1 >conftest.err
  8932. rm -f conftest.er1
  8933. cat conftest.err >&5
  8934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8935. (exit $ac_status); } && {
  8936. test -z "$ac_cxx_werror_flag" ||
  8937. test ! -s conftest.err
  8938. } && test -s conftest.$ac_objext; then
  8939. ac_cv_c_bigendian=yes
  8940. else
  8941. echo "$as_me: failed program was:" >&5
  8942. sed 's/^/| /' conftest.$ac_ext >&5
  8943. ac_cv_c_bigendian=no
  8944. fi
  8945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8946. else
  8947. echo "$as_me: failed program was:" >&5
  8948. sed 's/^/| /' conftest.$ac_ext >&5
  8949. # It does not; compile a test program.
  8950. if test "$cross_compiling" = yes; then
  8951. # try to guess the endianness by grepping values into an object file
  8952. ac_cv_c_bigendian=unknown
  8953. cat >conftest.$ac_ext <<_ACEOF
  8954. /* confdefs.h. */
  8955. _ACEOF
  8956. cat confdefs.h >>conftest.$ac_ext
  8957. cat >>conftest.$ac_ext <<_ACEOF
  8958. /* end confdefs.h. */
  8959. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8960. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8961. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8962. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8963. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8964. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8965. int
  8966. main ()
  8967. {
  8968. _ascii (); _ebcdic ();
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. rm -f conftest.$ac_objext
  8974. if { (ac_try="$ac_compile"
  8975. case "(($ac_try" in
  8976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8977. *) ac_try_echo=$ac_try;;
  8978. esac
  8979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8980. (eval "$ac_compile") 2>conftest.er1
  8981. ac_status=$?
  8982. grep -v '^ *+' conftest.er1 >conftest.err
  8983. rm -f conftest.er1
  8984. cat conftest.err >&5
  8985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8986. (exit $ac_status); } && {
  8987. test -z "$ac_cxx_werror_flag" ||
  8988. test ! -s conftest.err
  8989. } && test -s conftest.$ac_objext; then
  8990. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8991. ac_cv_c_bigendian=yes
  8992. fi
  8993. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8994. if test "$ac_cv_c_bigendian" = unknown; then
  8995. ac_cv_c_bigendian=no
  8996. else
  8997. # finding both strings is unlikely to happen, but who knows?
  8998. ac_cv_c_bigendian=unknown
  8999. fi
  9000. fi
  9001. else
  9002. echo "$as_me: failed program was:" >&5
  9003. sed 's/^/| /' conftest.$ac_ext >&5
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9006. else
  9007. cat >conftest.$ac_ext <<_ACEOF
  9008. /* confdefs.h. */
  9009. _ACEOF
  9010. cat confdefs.h >>conftest.$ac_ext
  9011. cat >>conftest.$ac_ext <<_ACEOF
  9012. /* end confdefs.h. */
  9013. $ac_includes_default
  9014. int
  9015. main ()
  9016. {
  9017. /* Are we little or big endian? From Harbison&Steele. */
  9018. union
  9019. {
  9020. long int l;
  9021. char c[sizeof (long int)];
  9022. } u;
  9023. u.l = 1;
  9024. return u.c[sizeof (long int) - 1] == 1;
  9025. ;
  9026. return 0;
  9027. }
  9028. _ACEOF
  9029. rm -f conftest$ac_exeext
  9030. if { (ac_try="$ac_link"
  9031. case "(($ac_try" in
  9032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9033. *) ac_try_echo=$ac_try;;
  9034. esac
  9035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9036. (eval "$ac_link") 2>&5
  9037. ac_status=$?
  9038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9039. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9040. { (case "(($ac_try" in
  9041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9042. *) ac_try_echo=$ac_try;;
  9043. esac
  9044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9045. (eval "$ac_try") 2>&5
  9046. ac_status=$?
  9047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9048. (exit $ac_status); }; }; then
  9049. ac_cv_c_bigendian=no
  9050. else
  9051. echo "$as_me: program exited with status $ac_status" >&5
  9052. echo "$as_me: failed program was:" >&5
  9053. sed 's/^/| /' conftest.$ac_ext >&5
  9054. ( exit $ac_status )
  9055. ac_cv_c_bigendian=yes
  9056. fi
  9057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9058. fi
  9059. fi
  9060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9061. fi
  9062. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9063. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9064. case $ac_cv_c_bigendian in
  9065. yes)
  9066. cat >>confdefs.h <<\_ACEOF
  9067. #define WORDS_BIGENDIAN 1
  9068. _ACEOF
  9069. ;;
  9070. no)
  9071. ;;
  9072. *)
  9073. { { echo "$as_me:$LINENO: error: unknown endianness
  9074. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9075. echo "$as_me: error: unknown endianness
  9076. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9077. { (exit 1); exit 1; }; } ;;
  9078. esac
  9079. # Check whether --enable-largefile was given.
  9080. if test "${enable_largefile+set}" = set; then
  9081. enableval=$enable_largefile;
  9082. fi
  9083. if test "$enable_largefile" != no; then
  9084. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9085. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9086. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9087. echo $ECHO_N "(cached) $ECHO_C" >&6
  9088. else
  9089. ac_cv_sys_largefile_CC=no
  9090. if test "$GCC" != yes; then
  9091. ac_save_CC=$CC
  9092. while :; do
  9093. # IRIX 6.2 and later do not support large files by default,
  9094. # so use the C compiler's -n32 option if that helps.
  9095. cat >conftest.$ac_ext <<_ACEOF
  9096. /* confdefs.h. */
  9097. _ACEOF
  9098. cat confdefs.h >>conftest.$ac_ext
  9099. cat >>conftest.$ac_ext <<_ACEOF
  9100. /* end confdefs.h. */
  9101. #include <sys/types.h>
  9102. /* Check that off_t can represent 2**63 - 1 correctly.
  9103. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9104. since some C++ compilers masquerading as C compilers
  9105. incorrectly reject 9223372036854775807. */
  9106. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9107. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9108. && LARGE_OFF_T % 2147483647 == 1)
  9109. ? 1 : -1];
  9110. int
  9111. main ()
  9112. {
  9113. ;
  9114. return 0;
  9115. }
  9116. _ACEOF
  9117. rm -f conftest.$ac_objext
  9118. if { (ac_try="$ac_compile"
  9119. case "(($ac_try" in
  9120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9121. *) ac_try_echo=$ac_try;;
  9122. esac
  9123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9124. (eval "$ac_compile") 2>conftest.er1
  9125. ac_status=$?
  9126. grep -v '^ *+' conftest.er1 >conftest.err
  9127. rm -f conftest.er1
  9128. cat conftest.err >&5
  9129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9130. (exit $ac_status); } && {
  9131. test -z "$ac_cxx_werror_flag" ||
  9132. test ! -s conftest.err
  9133. } && test -s conftest.$ac_objext; then
  9134. break
  9135. else
  9136. echo "$as_me: failed program was:" >&5
  9137. sed 's/^/| /' conftest.$ac_ext >&5
  9138. fi
  9139. rm -f core conftest.err conftest.$ac_objext
  9140. CC="$CC -n32"
  9141. rm -f conftest.$ac_objext
  9142. if { (ac_try="$ac_compile"
  9143. case "(($ac_try" in
  9144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9145. *) ac_try_echo=$ac_try;;
  9146. esac
  9147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9148. (eval "$ac_compile") 2>conftest.er1
  9149. ac_status=$?
  9150. grep -v '^ *+' conftest.er1 >conftest.err
  9151. rm -f conftest.er1
  9152. cat conftest.err >&5
  9153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9154. (exit $ac_status); } && {
  9155. test -z "$ac_cxx_werror_flag" ||
  9156. test ! -s conftest.err
  9157. } && test -s conftest.$ac_objext; then
  9158. ac_cv_sys_largefile_CC=' -n32'; break
  9159. else
  9160. echo "$as_me: failed program was:" >&5
  9161. sed 's/^/| /' conftest.$ac_ext >&5
  9162. fi
  9163. rm -f core conftest.err conftest.$ac_objext
  9164. break
  9165. done
  9166. CC=$ac_save_CC
  9167. rm -f conftest.$ac_ext
  9168. fi
  9169. fi
  9170. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9171. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9172. if test "$ac_cv_sys_largefile_CC" != no; then
  9173. CC=$CC$ac_cv_sys_largefile_CC
  9174. fi
  9175. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9176. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9177. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9178. echo $ECHO_N "(cached) $ECHO_C" >&6
  9179. else
  9180. while :; do
  9181. cat >conftest.$ac_ext <<_ACEOF
  9182. /* confdefs.h. */
  9183. _ACEOF
  9184. cat confdefs.h >>conftest.$ac_ext
  9185. cat >>conftest.$ac_ext <<_ACEOF
  9186. /* end confdefs.h. */
  9187. #include <sys/types.h>
  9188. /* Check that off_t can represent 2**63 - 1 correctly.
  9189. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9190. since some C++ compilers masquerading as C compilers
  9191. incorrectly reject 9223372036854775807. */
  9192. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9193. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9194. && LARGE_OFF_T % 2147483647 == 1)
  9195. ? 1 : -1];
  9196. int
  9197. main ()
  9198. {
  9199. ;
  9200. return 0;
  9201. }
  9202. _ACEOF
  9203. rm -f conftest.$ac_objext
  9204. if { (ac_try="$ac_compile"
  9205. case "(($ac_try" in
  9206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9207. *) ac_try_echo=$ac_try;;
  9208. esac
  9209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9210. (eval "$ac_compile") 2>conftest.er1
  9211. ac_status=$?
  9212. grep -v '^ *+' conftest.er1 >conftest.err
  9213. rm -f conftest.er1
  9214. cat conftest.err >&5
  9215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9216. (exit $ac_status); } && {
  9217. test -z "$ac_cxx_werror_flag" ||
  9218. test ! -s conftest.err
  9219. } && test -s conftest.$ac_objext; then
  9220. ac_cv_sys_file_offset_bits=no; break
  9221. else
  9222. echo "$as_me: failed program was:" >&5
  9223. sed 's/^/| /' conftest.$ac_ext >&5
  9224. fi
  9225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9226. cat >conftest.$ac_ext <<_ACEOF
  9227. /* confdefs.h. */
  9228. _ACEOF
  9229. cat confdefs.h >>conftest.$ac_ext
  9230. cat >>conftest.$ac_ext <<_ACEOF
  9231. /* end confdefs.h. */
  9232. #define _FILE_OFFSET_BITS 64
  9233. #include <sys/types.h>
  9234. /* Check that off_t can represent 2**63 - 1 correctly.
  9235. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9236. since some C++ compilers masquerading as C compilers
  9237. incorrectly reject 9223372036854775807. */
  9238. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9239. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9240. && LARGE_OFF_T % 2147483647 == 1)
  9241. ? 1 : -1];
  9242. int
  9243. main ()
  9244. {
  9245. ;
  9246. return 0;
  9247. }
  9248. _ACEOF
  9249. rm -f conftest.$ac_objext
  9250. if { (ac_try="$ac_compile"
  9251. case "(($ac_try" in
  9252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9253. *) ac_try_echo=$ac_try;;
  9254. esac
  9255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9256. (eval "$ac_compile") 2>conftest.er1
  9257. ac_status=$?
  9258. grep -v '^ *+' conftest.er1 >conftest.err
  9259. rm -f conftest.er1
  9260. cat conftest.err >&5
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); } && {
  9263. test -z "$ac_cxx_werror_flag" ||
  9264. test ! -s conftest.err
  9265. } && test -s conftest.$ac_objext; then
  9266. ac_cv_sys_file_offset_bits=64; break
  9267. else
  9268. echo "$as_me: failed program was:" >&5
  9269. sed 's/^/| /' conftest.$ac_ext >&5
  9270. fi
  9271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9272. ac_cv_sys_file_offset_bits=unknown
  9273. break
  9274. done
  9275. fi
  9276. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9277. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9278. case $ac_cv_sys_file_offset_bits in #(
  9279. no | unknown) ;;
  9280. *)
  9281. cat >>confdefs.h <<_ACEOF
  9282. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9283. _ACEOF
  9284. ;;
  9285. esac
  9286. rm -f conftest*
  9287. if test $ac_cv_sys_file_offset_bits = unknown; then
  9288. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9289. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9290. if test "${ac_cv_sys_large_files+set}" = set; then
  9291. echo $ECHO_N "(cached) $ECHO_C" >&6
  9292. else
  9293. while :; do
  9294. cat >conftest.$ac_ext <<_ACEOF
  9295. /* confdefs.h. */
  9296. _ACEOF
  9297. cat confdefs.h >>conftest.$ac_ext
  9298. cat >>conftest.$ac_ext <<_ACEOF
  9299. /* end confdefs.h. */
  9300. #include <sys/types.h>
  9301. /* Check that off_t can represent 2**63 - 1 correctly.
  9302. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9303. since some C++ compilers masquerading as C compilers
  9304. incorrectly reject 9223372036854775807. */
  9305. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9306. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9307. && LARGE_OFF_T % 2147483647 == 1)
  9308. ? 1 : -1];
  9309. int
  9310. main ()
  9311. {
  9312. ;
  9313. return 0;
  9314. }
  9315. _ACEOF
  9316. rm -f conftest.$ac_objext
  9317. if { (ac_try="$ac_compile"
  9318. case "(($ac_try" in
  9319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9320. *) ac_try_echo=$ac_try;;
  9321. esac
  9322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9323. (eval "$ac_compile") 2>conftest.er1
  9324. ac_status=$?
  9325. grep -v '^ *+' conftest.er1 >conftest.err
  9326. rm -f conftest.er1
  9327. cat conftest.err >&5
  9328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9329. (exit $ac_status); } && {
  9330. test -z "$ac_cxx_werror_flag" ||
  9331. test ! -s conftest.err
  9332. } && test -s conftest.$ac_objext; then
  9333. ac_cv_sys_large_files=no; break
  9334. else
  9335. echo "$as_me: failed program was:" >&5
  9336. sed 's/^/| /' conftest.$ac_ext >&5
  9337. fi
  9338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9339. cat >conftest.$ac_ext <<_ACEOF
  9340. /* confdefs.h. */
  9341. _ACEOF
  9342. cat confdefs.h >>conftest.$ac_ext
  9343. cat >>conftest.$ac_ext <<_ACEOF
  9344. /* end confdefs.h. */
  9345. #define _LARGE_FILES 1
  9346. #include <sys/types.h>
  9347. /* Check that off_t can represent 2**63 - 1 correctly.
  9348. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9349. since some C++ compilers masquerading as C compilers
  9350. incorrectly reject 9223372036854775807. */
  9351. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9352. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9353. && LARGE_OFF_T % 2147483647 == 1)
  9354. ? 1 : -1];
  9355. int
  9356. main ()
  9357. {
  9358. ;
  9359. return 0;
  9360. }
  9361. _ACEOF
  9362. rm -f conftest.$ac_objext
  9363. if { (ac_try="$ac_compile"
  9364. case "(($ac_try" in
  9365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9366. *) ac_try_echo=$ac_try;;
  9367. esac
  9368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9369. (eval "$ac_compile") 2>conftest.er1
  9370. ac_status=$?
  9371. grep -v '^ *+' conftest.er1 >conftest.err
  9372. rm -f conftest.er1
  9373. cat conftest.err >&5
  9374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9375. (exit $ac_status); } && {
  9376. test -z "$ac_cxx_werror_flag" ||
  9377. test ! -s conftest.err
  9378. } && test -s conftest.$ac_objext; then
  9379. ac_cv_sys_large_files=1; break
  9380. else
  9381. echo "$as_me: failed program was:" >&5
  9382. sed 's/^/| /' conftest.$ac_ext >&5
  9383. fi
  9384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9385. ac_cv_sys_large_files=unknown
  9386. break
  9387. done
  9388. fi
  9389. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9390. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9391. case $ac_cv_sys_large_files in #(
  9392. no | unknown) ;;
  9393. *)
  9394. cat >>confdefs.h <<_ACEOF
  9395. #define _LARGE_FILES $ac_cv_sys_large_files
  9396. _ACEOF
  9397. ;;
  9398. esac
  9399. rm -f conftest*
  9400. fi
  9401. fi
  9402. # Checks for library functions.
  9403. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9404. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9405. # Check whether --enable-nls was given.
  9406. if test "${enable_nls+set}" = set; then
  9407. enableval=$enable_nls; USE_NLS=$enableval
  9408. else
  9409. USE_NLS=yes
  9410. fi
  9411. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9412. echo "${ECHO_T}$USE_NLS" >&6; }
  9413. GETTEXT_MACRO_VERSION=0.17
  9414. # Prepare PATH_SEPARATOR.
  9415. # The user is always right.
  9416. if test "${PATH_SEPARATOR+set}" != set; then
  9417. echo "#! /bin/sh" >conf$$.sh
  9418. echo "exit 0" >>conf$$.sh
  9419. chmod +x conf$$.sh
  9420. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9421. PATH_SEPARATOR=';'
  9422. else
  9423. PATH_SEPARATOR=:
  9424. fi
  9425. rm -f conf$$.sh
  9426. fi
  9427. # Find out how to test for executable files. Don't use a zero-byte file,
  9428. # as systems may use methods other than mode bits to determine executability.
  9429. cat >conf$$.file <<_ASEOF
  9430. #! /bin/sh
  9431. exit 0
  9432. _ASEOF
  9433. chmod +x conf$$.file
  9434. if test -x conf$$.file >/dev/null 2>&1; then
  9435. ac_executable_p="test -x"
  9436. else
  9437. ac_executable_p="test -f"
  9438. fi
  9439. rm -f conf$$.file
  9440. # Extract the first word of "msgfmt", so it can be a program name with args.
  9441. set dummy msgfmt; ac_word=$2
  9442. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9443. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9444. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9445. echo $ECHO_N "(cached) $ECHO_C" >&6
  9446. else
  9447. case "$MSGFMT" in
  9448. [\\/]* | ?:[\\/]*)
  9449. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9450. ;;
  9451. *)
  9452. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9453. for ac_dir in $PATH; do
  9454. IFS="$ac_save_IFS"
  9455. test -z "$ac_dir" && ac_dir=.
  9456. for ac_exec_ext in '' $ac_executable_extensions; do
  9457. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9458. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9459. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9460. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9461. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9462. break 2
  9463. fi
  9464. fi
  9465. done
  9466. done
  9467. IFS="$ac_save_IFS"
  9468. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9469. ;;
  9470. esac
  9471. fi
  9472. MSGFMT="$ac_cv_path_MSGFMT"
  9473. if test "$MSGFMT" != ":"; then
  9474. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9475. echo "${ECHO_T}$MSGFMT" >&6; }
  9476. else
  9477. { echo "$as_me:$LINENO: result: no" >&5
  9478. echo "${ECHO_T}no" >&6; }
  9479. fi
  9480. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9481. set dummy gmsgfmt; ac_word=$2
  9482. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9484. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9485. echo $ECHO_N "(cached) $ECHO_C" >&6
  9486. else
  9487. case $GMSGFMT in
  9488. [\\/]* | ?:[\\/]*)
  9489. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9490. ;;
  9491. *)
  9492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9493. for as_dir in $PATH
  9494. do
  9495. IFS=$as_save_IFS
  9496. test -z "$as_dir" && as_dir=.
  9497. for ac_exec_ext in '' $ac_executable_extensions; do
  9498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9499. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9500. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9501. break 2
  9502. fi
  9503. done
  9504. done
  9505. IFS=$as_save_IFS
  9506. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9507. ;;
  9508. esac
  9509. fi
  9510. GMSGFMT=$ac_cv_path_GMSGFMT
  9511. if test -n "$GMSGFMT"; then
  9512. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9513. echo "${ECHO_T}$GMSGFMT" >&6; }
  9514. else
  9515. { echo "$as_me:$LINENO: result: no" >&5
  9516. echo "${ECHO_T}no" >&6; }
  9517. fi
  9518. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9519. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9520. *) MSGFMT_015=$MSGFMT ;;
  9521. esac
  9522. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9523. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9524. *) GMSGFMT_015=$GMSGFMT ;;
  9525. esac
  9526. # Prepare PATH_SEPARATOR.
  9527. # The user is always right.
  9528. if test "${PATH_SEPARATOR+set}" != set; then
  9529. echo "#! /bin/sh" >conf$$.sh
  9530. echo "exit 0" >>conf$$.sh
  9531. chmod +x conf$$.sh
  9532. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9533. PATH_SEPARATOR=';'
  9534. else
  9535. PATH_SEPARATOR=:
  9536. fi
  9537. rm -f conf$$.sh
  9538. fi
  9539. # Find out how to test for executable files. Don't use a zero-byte file,
  9540. # as systems may use methods other than mode bits to determine executability.
  9541. cat >conf$$.file <<_ASEOF
  9542. #! /bin/sh
  9543. exit 0
  9544. _ASEOF
  9545. chmod +x conf$$.file
  9546. if test -x conf$$.file >/dev/null 2>&1; then
  9547. ac_executable_p="test -x"
  9548. else
  9549. ac_executable_p="test -f"
  9550. fi
  9551. rm -f conf$$.file
  9552. # Extract the first word of "xgettext", so it can be a program name with args.
  9553. set dummy xgettext; ac_word=$2
  9554. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9555. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9556. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9557. echo $ECHO_N "(cached) $ECHO_C" >&6
  9558. else
  9559. case "$XGETTEXT" in
  9560. [\\/]* | ?:[\\/]*)
  9561. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9562. ;;
  9563. *)
  9564. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9565. for ac_dir in $PATH; do
  9566. IFS="$ac_save_IFS"
  9567. test -z "$ac_dir" && ac_dir=.
  9568. for ac_exec_ext in '' $ac_executable_extensions; do
  9569. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9570. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9571. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9572. (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
  9573. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9574. break 2
  9575. fi
  9576. fi
  9577. done
  9578. done
  9579. IFS="$ac_save_IFS"
  9580. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9581. ;;
  9582. esac
  9583. fi
  9584. XGETTEXT="$ac_cv_path_XGETTEXT"
  9585. if test "$XGETTEXT" != ":"; then
  9586. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9587. echo "${ECHO_T}$XGETTEXT" >&6; }
  9588. else
  9589. { echo "$as_me:$LINENO: result: no" >&5
  9590. echo "${ECHO_T}no" >&6; }
  9591. fi
  9592. rm -f messages.po
  9593. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9594. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9595. *) XGETTEXT_015=$XGETTEXT ;;
  9596. esac
  9597. # Prepare PATH_SEPARATOR.
  9598. # The user is always right.
  9599. if test "${PATH_SEPARATOR+set}" != set; then
  9600. echo "#! /bin/sh" >conf$$.sh
  9601. echo "exit 0" >>conf$$.sh
  9602. chmod +x conf$$.sh
  9603. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9604. PATH_SEPARATOR=';'
  9605. else
  9606. PATH_SEPARATOR=:
  9607. fi
  9608. rm -f conf$$.sh
  9609. fi
  9610. # Find out how to test for executable files. Don't use a zero-byte file,
  9611. # as systems may use methods other than mode bits to determine executability.
  9612. cat >conf$$.file <<_ASEOF
  9613. #! /bin/sh
  9614. exit 0
  9615. _ASEOF
  9616. chmod +x conf$$.file
  9617. if test -x conf$$.file >/dev/null 2>&1; then
  9618. ac_executable_p="test -x"
  9619. else
  9620. ac_executable_p="test -f"
  9621. fi
  9622. rm -f conf$$.file
  9623. # Extract the first word of "msgmerge", so it can be a program name with args.
  9624. set dummy msgmerge; ac_word=$2
  9625. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9626. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9627. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9628. echo $ECHO_N "(cached) $ECHO_C" >&6
  9629. else
  9630. case "$MSGMERGE" in
  9631. [\\/]* | ?:[\\/]*)
  9632. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9633. ;;
  9634. *)
  9635. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9636. for ac_dir in $PATH; do
  9637. IFS="$ac_save_IFS"
  9638. test -z "$ac_dir" && ac_dir=.
  9639. for ac_exec_ext in '' $ac_executable_extensions; do
  9640. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9641. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9642. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9643. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9644. break 2
  9645. fi
  9646. fi
  9647. done
  9648. done
  9649. IFS="$ac_save_IFS"
  9650. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9651. ;;
  9652. esac
  9653. fi
  9654. MSGMERGE="$ac_cv_path_MSGMERGE"
  9655. if test "$MSGMERGE" != ":"; then
  9656. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9657. echo "${ECHO_T}$MSGMERGE" >&6; }
  9658. else
  9659. { echo "$as_me:$LINENO: result: no" >&5
  9660. echo "${ECHO_T}no" >&6; }
  9661. fi
  9662. test -n "$localedir" || localedir='${datadir}/locale'
  9663. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9664. ac_config_commands="$ac_config_commands po-directories"
  9665. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9666. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9667. if test "${ac_cv_gnu_library_2+set}" = set; then
  9668. echo $ECHO_N "(cached) $ECHO_C" >&6
  9669. else
  9670. cat >conftest.$ac_ext <<_ACEOF
  9671. /* confdefs.h. */
  9672. _ACEOF
  9673. cat confdefs.h >>conftest.$ac_ext
  9674. cat >>conftest.$ac_ext <<_ACEOF
  9675. /* end confdefs.h. */
  9676. #include <features.h>
  9677. #ifdef __GNU_LIBRARY__
  9678. #if (__GLIBC__ >= 2)
  9679. Lucky GNU user
  9680. #endif
  9681. #endif
  9682. _ACEOF
  9683. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9684. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9685. ac_cv_gnu_library_2=yes
  9686. else
  9687. ac_cv_gnu_library_2=no
  9688. fi
  9689. rm -f conftest*
  9690. fi
  9691. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9692. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9693. GLIBC2="$ac_cv_gnu_library_2"
  9694. CFLAG_VISIBILITY=
  9695. HAVE_VISIBILITY=0
  9696. if test -n "$GCC"; then
  9697. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9698. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9699. if test "${gl_cv_cc_visibility+set}" = set; then
  9700. echo $ECHO_N "(cached) $ECHO_C" >&6
  9701. else
  9702. gl_save_CFLAGS="$CFLAGS"
  9703. CFLAGS="$CFLAGS -fvisibility=hidden"
  9704. cat >conftest.$ac_ext <<_ACEOF
  9705. /* confdefs.h. */
  9706. _ACEOF
  9707. cat confdefs.h >>conftest.$ac_ext
  9708. cat >>conftest.$ac_ext <<_ACEOF
  9709. /* end confdefs.h. */
  9710. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9711. extern __attribute__((__visibility__("default"))) int exportedvar;
  9712. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9713. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9714. int
  9715. main ()
  9716. {
  9717. ;
  9718. return 0;
  9719. }
  9720. _ACEOF
  9721. rm -f conftest.$ac_objext
  9722. if { (ac_try="$ac_compile"
  9723. case "(($ac_try" in
  9724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9725. *) ac_try_echo=$ac_try;;
  9726. esac
  9727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9728. (eval "$ac_compile") 2>conftest.er1
  9729. ac_status=$?
  9730. grep -v '^ *+' conftest.er1 >conftest.err
  9731. rm -f conftest.er1
  9732. cat conftest.err >&5
  9733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9734. (exit $ac_status); } && {
  9735. test -z "$ac_cxx_werror_flag" ||
  9736. test ! -s conftest.err
  9737. } && test -s conftest.$ac_objext; then
  9738. gl_cv_cc_visibility=yes
  9739. else
  9740. echo "$as_me: failed program was:" >&5
  9741. sed 's/^/| /' conftest.$ac_ext >&5
  9742. gl_cv_cc_visibility=no
  9743. fi
  9744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9745. CFLAGS="$gl_save_CFLAGS"
  9746. fi
  9747. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9748. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9749. if test $gl_cv_cc_visibility = yes; then
  9750. CFLAG_VISIBILITY="-fvisibility=hidden"
  9751. HAVE_VISIBILITY=1
  9752. fi
  9753. fi
  9754. cat >>confdefs.h <<_ACEOF
  9755. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9756. _ACEOF
  9757. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9758. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9759. if test "${gl_cv_header_stdint_h+set}" = set; then
  9760. echo $ECHO_N "(cached) $ECHO_C" >&6
  9761. else
  9762. cat >conftest.$ac_ext <<_ACEOF
  9763. /* confdefs.h. */
  9764. _ACEOF
  9765. cat confdefs.h >>conftest.$ac_ext
  9766. cat >>conftest.$ac_ext <<_ACEOF
  9767. /* end confdefs.h. */
  9768. #include <sys/types.h>
  9769. #include <stdint.h>
  9770. int
  9771. main ()
  9772. {
  9773. uintmax_t i = (uintmax_t) -1; return !i;
  9774. ;
  9775. return 0;
  9776. }
  9777. _ACEOF
  9778. rm -f conftest.$ac_objext
  9779. if { (ac_try="$ac_compile"
  9780. case "(($ac_try" in
  9781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9782. *) ac_try_echo=$ac_try;;
  9783. esac
  9784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9785. (eval "$ac_compile") 2>conftest.er1
  9786. ac_status=$?
  9787. grep -v '^ *+' conftest.er1 >conftest.err
  9788. rm -f conftest.er1
  9789. cat conftest.err >&5
  9790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9791. (exit $ac_status); } && {
  9792. test -z "$ac_cxx_werror_flag" ||
  9793. test ! -s conftest.err
  9794. } && test -s conftest.$ac_objext; then
  9795. gl_cv_header_stdint_h=yes
  9796. else
  9797. echo "$as_me: failed program was:" >&5
  9798. sed 's/^/| /' conftest.$ac_ext >&5
  9799. gl_cv_header_stdint_h=no
  9800. fi
  9801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9802. fi
  9803. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9804. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9805. if test $gl_cv_header_stdint_h = yes; then
  9806. cat >>confdefs.h <<_ACEOF
  9807. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9808. _ACEOF
  9809. fi
  9810. for ac_header in stdlib.h unistd.h
  9811. do
  9812. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9814. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9815. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9817. echo $ECHO_N "(cached) $ECHO_C" >&6
  9818. fi
  9819. ac_res=`eval echo '${'$as_ac_Header'}'`
  9820. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9821. echo "${ECHO_T}$ac_res" >&6; }
  9822. else
  9823. # Is the header compilable?
  9824. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9825. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  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. $ac_includes_default
  9833. #include <$ac_header>
  9834. _ACEOF
  9835. rm -f conftest.$ac_objext
  9836. if { (ac_try="$ac_compile"
  9837. case "(($ac_try" in
  9838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9839. *) ac_try_echo=$ac_try;;
  9840. esac
  9841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9842. (eval "$ac_compile") 2>conftest.er1
  9843. ac_status=$?
  9844. grep -v '^ *+' conftest.er1 >conftest.err
  9845. rm -f conftest.er1
  9846. cat conftest.err >&5
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } && {
  9849. test -z "$ac_cxx_werror_flag" ||
  9850. test ! -s conftest.err
  9851. } && test -s conftest.$ac_objext; then
  9852. ac_header_compiler=yes
  9853. else
  9854. echo "$as_me: failed program was:" >&5
  9855. sed 's/^/| /' conftest.$ac_ext >&5
  9856. ac_header_compiler=no
  9857. fi
  9858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9859. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9860. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9861. # Is the header present?
  9862. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9863. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9864. cat >conftest.$ac_ext <<_ACEOF
  9865. /* confdefs.h. */
  9866. _ACEOF
  9867. cat confdefs.h >>conftest.$ac_ext
  9868. cat >>conftest.$ac_ext <<_ACEOF
  9869. /* end confdefs.h. */
  9870. #include <$ac_header>
  9871. _ACEOF
  9872. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9873. case "(($ac_try" in
  9874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9875. *) ac_try_echo=$ac_try;;
  9876. esac
  9877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9878. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9879. ac_status=$?
  9880. grep -v '^ *+' conftest.er1 >conftest.err
  9881. rm -f conftest.er1
  9882. cat conftest.err >&5
  9883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9884. (exit $ac_status); } >/dev/null && {
  9885. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9886. test ! -s conftest.err
  9887. }; then
  9888. ac_header_preproc=yes
  9889. else
  9890. echo "$as_me: failed program was:" >&5
  9891. sed 's/^/| /' conftest.$ac_ext >&5
  9892. ac_header_preproc=no
  9893. fi
  9894. rm -f conftest.err conftest.$ac_ext
  9895. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9896. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9897. # So? What about this header?
  9898. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9899. yes:no: )
  9900. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9901. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9902. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9903. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9904. ac_header_preproc=yes
  9905. ;;
  9906. no:yes:* )
  9907. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9908. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9909. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9910. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9911. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9912. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9913. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9914. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9915. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9916. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9917. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9918. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9919. ( cat <<\_ASBOX
  9920. ## ----------------------------------------------- ##
  9921. ## Report this to t-tujikawa@users.sourceforge.net ##
  9922. ## ----------------------------------------------- ##
  9923. _ASBOX
  9924. ) | sed "s/^/$as_me: WARNING: /" >&2
  9925. ;;
  9926. esac
  9927. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9928. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9929. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9930. echo $ECHO_N "(cached) $ECHO_C" >&6
  9931. else
  9932. eval "$as_ac_Header=\$ac_header_preproc"
  9933. fi
  9934. ac_res=`eval echo '${'$as_ac_Header'}'`
  9935. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9936. echo "${ECHO_T}$ac_res" >&6; }
  9937. fi
  9938. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9939. cat >>confdefs.h <<_ACEOF
  9940. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9941. _ACEOF
  9942. fi
  9943. done
  9944. for ac_func in getpagesize
  9945. do
  9946. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9947. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9948. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9949. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9950. echo $ECHO_N "(cached) $ECHO_C" >&6
  9951. else
  9952. cat >conftest.$ac_ext <<_ACEOF
  9953. /* confdefs.h. */
  9954. _ACEOF
  9955. cat confdefs.h >>conftest.$ac_ext
  9956. cat >>conftest.$ac_ext <<_ACEOF
  9957. /* end confdefs.h. */
  9958. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9959. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9960. #define $ac_func innocuous_$ac_func
  9961. /* System header to define __stub macros and hopefully few prototypes,
  9962. which can conflict with char $ac_func (); below.
  9963. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9964. <limits.h> exists even on freestanding compilers. */
  9965. #ifdef __STDC__
  9966. # include <limits.h>
  9967. #else
  9968. # include <assert.h>
  9969. #endif
  9970. #undef $ac_func
  9971. /* Override any GCC internal prototype to avoid an error.
  9972. Use char because int might match the return type of a GCC
  9973. builtin and then its argument prototype would still apply. */
  9974. #ifdef __cplusplus
  9975. extern "C"
  9976. #endif
  9977. char $ac_func ();
  9978. /* The GNU C library defines this for functions which it implements
  9979. to always fail with ENOSYS. Some functions are actually named
  9980. something starting with __ and the normal name is an alias. */
  9981. #if defined __stub_$ac_func || defined __stub___$ac_func
  9982. choke me
  9983. #endif
  9984. int
  9985. main ()
  9986. {
  9987. return $ac_func ();
  9988. ;
  9989. return 0;
  9990. }
  9991. _ACEOF
  9992. rm -f conftest.$ac_objext conftest$ac_exeext
  9993. if { (ac_try="$ac_link"
  9994. case "(($ac_try" in
  9995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9996. *) ac_try_echo=$ac_try;;
  9997. esac
  9998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9999. (eval "$ac_link") 2>conftest.er1
  10000. ac_status=$?
  10001. grep -v '^ *+' conftest.er1 >conftest.err
  10002. rm -f conftest.er1
  10003. cat conftest.err >&5
  10004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10005. (exit $ac_status); } && {
  10006. test -z "$ac_cxx_werror_flag" ||
  10007. test ! -s conftest.err
  10008. } && test -s conftest$ac_exeext &&
  10009. $as_test_x conftest$ac_exeext; then
  10010. eval "$as_ac_var=yes"
  10011. else
  10012. echo "$as_me: failed program was:" >&5
  10013. sed 's/^/| /' conftest.$ac_ext >&5
  10014. eval "$as_ac_var=no"
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. fi
  10019. ac_res=`eval echo '${'$as_ac_var'}'`
  10020. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10021. echo "${ECHO_T}$ac_res" >&6; }
  10022. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10023. cat >>confdefs.h <<_ACEOF
  10024. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10025. _ACEOF
  10026. fi
  10027. done
  10028. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10029. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10030. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10031. echo $ECHO_N "(cached) $ECHO_C" >&6
  10032. else
  10033. if test "$cross_compiling" = yes; then
  10034. ac_cv_func_mmap_fixed_mapped=no
  10035. else
  10036. cat >conftest.$ac_ext <<_ACEOF
  10037. /* confdefs.h. */
  10038. _ACEOF
  10039. cat confdefs.h >>conftest.$ac_ext
  10040. cat >>conftest.$ac_ext <<_ACEOF
  10041. /* end confdefs.h. */
  10042. $ac_includes_default
  10043. /* malloc might have been renamed as rpl_malloc. */
  10044. #undef malloc
  10045. /* Thanks to Mike Haertel and Jim Avera for this test.
  10046. Here is a matrix of mmap possibilities:
  10047. mmap private not fixed
  10048. mmap private fixed at somewhere currently unmapped
  10049. mmap private fixed at somewhere already mapped
  10050. mmap shared not fixed
  10051. mmap shared fixed at somewhere currently unmapped
  10052. mmap shared fixed at somewhere already mapped
  10053. For private mappings, we should verify that changes cannot be read()
  10054. back from the file, nor mmap's back from the file at a different
  10055. address. (There have been systems where private was not correctly
  10056. implemented like the infamous i386 svr4.0, and systems where the
  10057. VM page cache was not coherent with the file system buffer cache
  10058. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10059. For shared mappings, we should conversely verify that changes get
  10060. propagated back to all the places they're supposed to be.
  10061. Grep wants private fixed already mapped.
  10062. The main things grep needs to know about mmap are:
  10063. * does it exist and is it safe to write into the mmap'd area
  10064. * how to use it (BSD variants) */
  10065. #include <fcntl.h>
  10066. #include <sys/mman.h>
  10067. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10068. char *malloc ();
  10069. #endif
  10070. /* This mess was copied from the GNU getpagesize.h. */
  10071. #ifndef HAVE_GETPAGESIZE
  10072. /* Assume that all systems that can run configure have sys/param.h. */
  10073. # ifndef HAVE_SYS_PARAM_H
  10074. # define HAVE_SYS_PARAM_H 1
  10075. # endif
  10076. # ifdef _SC_PAGESIZE
  10077. # define getpagesize() sysconf(_SC_PAGESIZE)
  10078. # else /* no _SC_PAGESIZE */
  10079. # ifdef HAVE_SYS_PARAM_H
  10080. # include <sys/param.h>
  10081. # ifdef EXEC_PAGESIZE
  10082. # define getpagesize() EXEC_PAGESIZE
  10083. # else /* no EXEC_PAGESIZE */
  10084. # ifdef NBPG
  10085. # define getpagesize() NBPG * CLSIZE
  10086. # ifndef CLSIZE
  10087. # define CLSIZE 1
  10088. # endif /* no CLSIZE */
  10089. # else /* no NBPG */
  10090. # ifdef NBPC
  10091. # define getpagesize() NBPC
  10092. # else /* no NBPC */
  10093. # ifdef PAGESIZE
  10094. # define getpagesize() PAGESIZE
  10095. # endif /* PAGESIZE */
  10096. # endif /* no NBPC */
  10097. # endif /* no NBPG */
  10098. # endif /* no EXEC_PAGESIZE */
  10099. # else /* no HAVE_SYS_PARAM_H */
  10100. # define getpagesize() 8192 /* punt totally */
  10101. # endif /* no HAVE_SYS_PARAM_H */
  10102. # endif /* no _SC_PAGESIZE */
  10103. #endif /* no HAVE_GETPAGESIZE */
  10104. int
  10105. main ()
  10106. {
  10107. char *data, *data2, *data3;
  10108. int i, pagesize;
  10109. int fd;
  10110. pagesize = getpagesize ();
  10111. /* First, make a file with some known garbage in it. */
  10112. data = (char *) malloc (pagesize);
  10113. if (!data)
  10114. return 1;
  10115. for (i = 0; i < pagesize; ++i)
  10116. *(data + i) = rand ();
  10117. umask (0);
  10118. fd = creat ("conftest.mmap", 0600);
  10119. if (fd < 0)
  10120. return 1;
  10121. if (write (fd, data, pagesize) != pagesize)
  10122. return 1;
  10123. close (fd);
  10124. /* Next, try to mmap the file at a fixed address which already has
  10125. something else allocated at it. If we can, also make sure that
  10126. we see the same garbage. */
  10127. fd = open ("conftest.mmap", O_RDWR);
  10128. if (fd < 0)
  10129. return 1;
  10130. data2 = (char *) malloc (2 * pagesize);
  10131. if (!data2)
  10132. return 1;
  10133. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10134. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10135. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10136. return 1;
  10137. for (i = 0; i < pagesize; ++i)
  10138. if (*(data + i) != *(data2 + i))
  10139. return 1;
  10140. /* Finally, make sure that changes to the mapped area do not
  10141. percolate back to the file as seen by read(). (This is a bug on
  10142. some variants of i386 svr4.0.) */
  10143. for (i = 0; i < pagesize; ++i)
  10144. *(data2 + i) = *(data2 + i) + 1;
  10145. data3 = (char *) malloc (pagesize);
  10146. if (!data3)
  10147. return 1;
  10148. if (read (fd, data3, pagesize) != pagesize)
  10149. return 1;
  10150. for (i = 0; i < pagesize; ++i)
  10151. if (*(data + i) != *(data3 + i))
  10152. return 1;
  10153. close (fd);
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. rm -f conftest$ac_exeext
  10158. if { (ac_try="$ac_link"
  10159. case "(($ac_try" in
  10160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10161. *) ac_try_echo=$ac_try;;
  10162. esac
  10163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10164. (eval "$ac_link") 2>&5
  10165. ac_status=$?
  10166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10167. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10168. { (case "(($ac_try" in
  10169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10170. *) ac_try_echo=$ac_try;;
  10171. esac
  10172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10173. (eval "$ac_try") 2>&5
  10174. ac_status=$?
  10175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10176. (exit $ac_status); }; }; then
  10177. ac_cv_func_mmap_fixed_mapped=yes
  10178. else
  10179. echo "$as_me: program exited with status $ac_status" >&5
  10180. echo "$as_me: failed program was:" >&5
  10181. sed 's/^/| /' conftest.$ac_ext >&5
  10182. ( exit $ac_status )
  10183. ac_cv_func_mmap_fixed_mapped=no
  10184. fi
  10185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10186. fi
  10187. fi
  10188. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10189. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10190. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10191. cat >>confdefs.h <<\_ACEOF
  10192. #define HAVE_MMAP 1
  10193. _ACEOF
  10194. fi
  10195. rm -f conftest.mmap
  10196. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10197. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10198. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10199. echo $ECHO_N "(cached) $ECHO_C" >&6
  10200. else
  10201. gt_cv_int_divbyzero_sigfpe=
  10202. case "$host_os" in
  10203. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10204. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10205. # compiling. If we were to perform the real test, 1 Crash Report
  10206. # dialog window would pop up.
  10207. case "$host_cpu" in
  10208. i[34567]86 | x86_64)
  10209. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10210. esac
  10211. ;;
  10212. esac
  10213. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10214. if test "$cross_compiling" = yes; then
  10215. # Guess based on the CPU.
  10216. case "$host_cpu" in
  10217. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10218. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10219. *)
  10220. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10221. esac
  10222. else
  10223. cat >conftest.$ac_ext <<_ACEOF
  10224. /* confdefs.h. */
  10225. _ACEOF
  10226. cat confdefs.h >>conftest.$ac_ext
  10227. cat >>conftest.$ac_ext <<_ACEOF
  10228. /* end confdefs.h. */
  10229. #include <stdlib.h>
  10230. #include <signal.h>
  10231. static void
  10232. sigfpe_handler (int sig)
  10233. {
  10234. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10235. exit (sig != SIGFPE);
  10236. }
  10237. int x = 1;
  10238. int y = 0;
  10239. int z;
  10240. int nan;
  10241. int main ()
  10242. {
  10243. signal (SIGFPE, sigfpe_handler);
  10244. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10245. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10246. signal (SIGTRAP, sigfpe_handler);
  10247. #endif
  10248. /* Linux/SPARC yields signal SIGILL. */
  10249. #if defined (__sparc__) && defined (__linux__)
  10250. signal (SIGILL, sigfpe_handler);
  10251. #endif
  10252. z = x / y;
  10253. nan = y / y;
  10254. exit (1);
  10255. }
  10256. _ACEOF
  10257. rm -f conftest$ac_exeext
  10258. if { (ac_try="$ac_link"
  10259. case "(($ac_try" in
  10260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10261. *) ac_try_echo=$ac_try;;
  10262. esac
  10263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10264. (eval "$ac_link") 2>&5
  10265. ac_status=$?
  10266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10267. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10268. { (case "(($ac_try" in
  10269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10270. *) ac_try_echo=$ac_try;;
  10271. esac
  10272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10273. (eval "$ac_try") 2>&5
  10274. ac_status=$?
  10275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10276. (exit $ac_status); }; }; then
  10277. gt_cv_int_divbyzero_sigfpe=yes
  10278. else
  10279. echo "$as_me: program exited with status $ac_status" >&5
  10280. echo "$as_me: failed program was:" >&5
  10281. sed 's/^/| /' conftest.$ac_ext >&5
  10282. ( exit $ac_status )
  10283. gt_cv_int_divbyzero_sigfpe=no
  10284. fi
  10285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10286. fi
  10287. fi
  10288. fi
  10289. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10290. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10291. case "$gt_cv_int_divbyzero_sigfpe" in
  10292. *yes) value=1;;
  10293. *) value=0;;
  10294. esac
  10295. cat >>confdefs.h <<_ACEOF
  10296. #define INTDIV0_RAISES_SIGFPE $value
  10297. _ACEOF
  10298. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10299. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10300. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10301. echo $ECHO_N "(cached) $ECHO_C" >&6
  10302. else
  10303. cat >conftest.$ac_ext <<_ACEOF
  10304. /* confdefs.h. */
  10305. _ACEOF
  10306. cat confdefs.h >>conftest.$ac_ext
  10307. cat >>conftest.$ac_ext <<_ACEOF
  10308. /* end confdefs.h. */
  10309. #include <sys/types.h>
  10310. #include <inttypes.h>
  10311. int
  10312. main ()
  10313. {
  10314. uintmax_t i = (uintmax_t) -1; return !i;
  10315. ;
  10316. return 0;
  10317. }
  10318. _ACEOF
  10319. rm -f conftest.$ac_objext
  10320. if { (ac_try="$ac_compile"
  10321. case "(($ac_try" in
  10322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10323. *) ac_try_echo=$ac_try;;
  10324. esac
  10325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10326. (eval "$ac_compile") 2>conftest.er1
  10327. ac_status=$?
  10328. grep -v '^ *+' conftest.er1 >conftest.err
  10329. rm -f conftest.er1
  10330. cat conftest.err >&5
  10331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10332. (exit $ac_status); } && {
  10333. test -z "$ac_cxx_werror_flag" ||
  10334. test ! -s conftest.err
  10335. } && test -s conftest.$ac_objext; then
  10336. gl_cv_header_inttypes_h=yes
  10337. else
  10338. echo "$as_me: failed program was:" >&5
  10339. sed 's/^/| /' conftest.$ac_ext >&5
  10340. gl_cv_header_inttypes_h=no
  10341. fi
  10342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10343. fi
  10344. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10345. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10346. if test $gl_cv_header_inttypes_h = yes; then
  10347. cat >>confdefs.h <<_ACEOF
  10348. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10349. _ACEOF
  10350. fi
  10351. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10352. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10353. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10354. echo $ECHO_N "(cached) $ECHO_C" >&6
  10355. else
  10356. cat >conftest.$ac_ext <<_ACEOF
  10357. /* confdefs.h. */
  10358. _ACEOF
  10359. cat confdefs.h >>conftest.$ac_ext
  10360. cat >>conftest.$ac_ext <<_ACEOF
  10361. /* end confdefs.h. */
  10362. /* Test preprocessor. */
  10363. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10364. error in preprocessor;
  10365. #endif
  10366. #if ! (18446744073709551615ULL <= -1ull)
  10367. error in preprocessor;
  10368. #endif
  10369. /* Test literals. */
  10370. long long int ll = 9223372036854775807ll;
  10371. long long int nll = -9223372036854775807LL;
  10372. unsigned long long int ull = 18446744073709551615ULL;
  10373. /* Test constant expressions. */
  10374. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10375. ? 1 : -1)];
  10376. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10377. ? 1 : -1)];
  10378. int i = 63;
  10379. int
  10380. main ()
  10381. {
  10382. /* Test availability of runtime routines for shift and division. */
  10383. long long int llmax = 9223372036854775807ll;
  10384. unsigned long long int ullmax = 18446744073709551615ull;
  10385. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10386. | (llmax / ll) | (llmax % ll)
  10387. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10388. | (ullmax / ull) | (ullmax % ull));
  10389. ;
  10390. return 0;
  10391. }
  10392. _ACEOF
  10393. rm -f conftest.$ac_objext conftest$ac_exeext
  10394. if { (ac_try="$ac_link"
  10395. case "(($ac_try" in
  10396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10397. *) ac_try_echo=$ac_try;;
  10398. esac
  10399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10400. (eval "$ac_link") 2>conftest.er1
  10401. ac_status=$?
  10402. grep -v '^ *+' conftest.er1 >conftest.err
  10403. rm -f conftest.er1
  10404. cat conftest.err >&5
  10405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10406. (exit $ac_status); } && {
  10407. test -z "$ac_cxx_werror_flag" ||
  10408. test ! -s conftest.err
  10409. } && test -s conftest$ac_exeext &&
  10410. $as_test_x conftest$ac_exeext; then
  10411. ac_cv_type_unsigned_long_long_int=yes
  10412. else
  10413. echo "$as_me: failed program was:" >&5
  10414. sed 's/^/| /' conftest.$ac_ext >&5
  10415. ac_cv_type_unsigned_long_long_int=no
  10416. fi
  10417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10418. conftest$ac_exeext conftest.$ac_ext
  10419. fi
  10420. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10421. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10422. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10423. cat >>confdefs.h <<\_ACEOF
  10424. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10425. _ACEOF
  10426. fi
  10427. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10428. test $ac_cv_type_unsigned_long_long_int = yes \
  10429. && ac_type='unsigned long long' \
  10430. || ac_type='unsigned long'
  10431. cat >>confdefs.h <<_ACEOF
  10432. #define uintmax_t $ac_type
  10433. _ACEOF
  10434. else
  10435. cat >>confdefs.h <<\_ACEOF
  10436. #define HAVE_UINTMAX_T 1
  10437. _ACEOF
  10438. fi
  10439. for ac_header in inttypes.h
  10440. do
  10441. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10442. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10443. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10444. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10445. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10446. echo $ECHO_N "(cached) $ECHO_C" >&6
  10447. fi
  10448. ac_res=`eval echo '${'$as_ac_Header'}'`
  10449. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10450. echo "${ECHO_T}$ac_res" >&6; }
  10451. else
  10452. # Is the header compilable?
  10453. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10454. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10455. cat >conftest.$ac_ext <<_ACEOF
  10456. /* confdefs.h. */
  10457. _ACEOF
  10458. cat confdefs.h >>conftest.$ac_ext
  10459. cat >>conftest.$ac_ext <<_ACEOF
  10460. /* end confdefs.h. */
  10461. $ac_includes_default
  10462. #include <$ac_header>
  10463. _ACEOF
  10464. rm -f conftest.$ac_objext
  10465. if { (ac_try="$ac_compile"
  10466. case "(($ac_try" in
  10467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10468. *) ac_try_echo=$ac_try;;
  10469. esac
  10470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10471. (eval "$ac_compile") 2>conftest.er1
  10472. ac_status=$?
  10473. grep -v '^ *+' conftest.er1 >conftest.err
  10474. rm -f conftest.er1
  10475. cat conftest.err >&5
  10476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10477. (exit $ac_status); } && {
  10478. test -z "$ac_cxx_werror_flag" ||
  10479. test ! -s conftest.err
  10480. } && test -s conftest.$ac_objext; then
  10481. ac_header_compiler=yes
  10482. else
  10483. echo "$as_me: failed program was:" >&5
  10484. sed 's/^/| /' conftest.$ac_ext >&5
  10485. ac_header_compiler=no
  10486. fi
  10487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10488. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10489. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10490. # Is the header present?
  10491. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10492. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10493. cat >conftest.$ac_ext <<_ACEOF
  10494. /* confdefs.h. */
  10495. _ACEOF
  10496. cat confdefs.h >>conftest.$ac_ext
  10497. cat >>conftest.$ac_ext <<_ACEOF
  10498. /* end confdefs.h. */
  10499. #include <$ac_header>
  10500. _ACEOF
  10501. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10502. case "(($ac_try" in
  10503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10504. *) ac_try_echo=$ac_try;;
  10505. esac
  10506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10507. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10508. ac_status=$?
  10509. grep -v '^ *+' conftest.er1 >conftest.err
  10510. rm -f conftest.er1
  10511. cat conftest.err >&5
  10512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10513. (exit $ac_status); } >/dev/null && {
  10514. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10515. test ! -s conftest.err
  10516. }; then
  10517. ac_header_preproc=yes
  10518. else
  10519. echo "$as_me: failed program was:" >&5
  10520. sed 's/^/| /' conftest.$ac_ext >&5
  10521. ac_header_preproc=no
  10522. fi
  10523. rm -f conftest.err conftest.$ac_ext
  10524. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10525. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10526. # So? What about this header?
  10527. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10528. yes:no: )
  10529. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10530. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10531. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10532. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10533. ac_header_preproc=yes
  10534. ;;
  10535. no:yes:* )
  10536. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10537. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10538. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10539. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10540. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10541. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10542. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10543. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10544. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10545. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10546. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10547. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10548. ( cat <<\_ASBOX
  10549. ## ----------------------------------------------- ##
  10550. ## Report this to t-tujikawa@users.sourceforge.net ##
  10551. ## ----------------------------------------------- ##
  10552. _ASBOX
  10553. ) | sed "s/^/$as_me: WARNING: /" >&2
  10554. ;;
  10555. esac
  10556. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10557. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10558. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10559. echo $ECHO_N "(cached) $ECHO_C" >&6
  10560. else
  10561. eval "$as_ac_Header=\$ac_header_preproc"
  10562. fi
  10563. ac_res=`eval echo '${'$as_ac_Header'}'`
  10564. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10565. echo "${ECHO_T}$ac_res" >&6; }
  10566. fi
  10567. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10568. cat >>confdefs.h <<_ACEOF
  10569. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10570. _ACEOF
  10571. fi
  10572. done
  10573. if test $ac_cv_header_inttypes_h = yes; then
  10574. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10575. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10576. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10577. echo $ECHO_N "(cached) $ECHO_C" >&6
  10578. else
  10579. cat >conftest.$ac_ext <<_ACEOF
  10580. /* confdefs.h. */
  10581. _ACEOF
  10582. cat confdefs.h >>conftest.$ac_ext
  10583. cat >>conftest.$ac_ext <<_ACEOF
  10584. /* end confdefs.h. */
  10585. #include <inttypes.h>
  10586. #ifdef PRId32
  10587. char *p = PRId32;
  10588. #endif
  10589. int
  10590. main ()
  10591. {
  10592. ;
  10593. return 0;
  10594. }
  10595. _ACEOF
  10596. rm -f conftest.$ac_objext
  10597. if { (ac_try="$ac_compile"
  10598. case "(($ac_try" in
  10599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10600. *) ac_try_echo=$ac_try;;
  10601. esac
  10602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10603. (eval "$ac_compile") 2>conftest.er1
  10604. ac_status=$?
  10605. grep -v '^ *+' conftest.er1 >conftest.err
  10606. rm -f conftest.er1
  10607. cat conftest.err >&5
  10608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10609. (exit $ac_status); } && {
  10610. test -z "$ac_cxx_werror_flag" ||
  10611. test ! -s conftest.err
  10612. } && test -s conftest.$ac_objext; then
  10613. gt_cv_inttypes_pri_broken=no
  10614. else
  10615. echo "$as_me: failed program was:" >&5
  10616. sed 's/^/| /' conftest.$ac_ext >&5
  10617. gt_cv_inttypes_pri_broken=yes
  10618. fi
  10619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10620. fi
  10621. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10622. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10623. fi
  10624. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10625. cat >>confdefs.h <<_ACEOF
  10626. #define PRI_MACROS_BROKEN 1
  10627. _ACEOF
  10628. PRI_MACROS_BROKEN=1
  10629. else
  10630. PRI_MACROS_BROKEN=0
  10631. fi
  10632. # Check whether --enable-threads was given.
  10633. if test "${enable_threads+set}" = set; then
  10634. enableval=$enable_threads; gl_use_threads=$enableval
  10635. else
  10636. case "$host_os" in
  10637. osf*) gl_use_threads=no ;;
  10638. *) gl_use_threads=yes ;;
  10639. esac
  10640. fi
  10641. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10642. # For using <pthread.h>:
  10643. case "$host_os" in
  10644. osf*)
  10645. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10646. # groks <pthread.h>. cc also understands the flag -pthread, but
  10647. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10648. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10649. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10650. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10651. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10652. ;;
  10653. esac
  10654. # Some systems optimize for single-threaded programs by default, and
  10655. # need special flags to disable these optimizations. For example, the
  10656. # definition of 'errno' in <errno.h>.
  10657. case "$host_os" in
  10658. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10659. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10660. esac
  10661. fi
  10662. if test "X$prefix" = "XNONE"; then
  10663. acl_final_prefix="$ac_default_prefix"
  10664. else
  10665. acl_final_prefix="$prefix"
  10666. fi
  10667. if test "X$exec_prefix" = "XNONE"; then
  10668. acl_final_exec_prefix='${prefix}'
  10669. else
  10670. acl_final_exec_prefix="$exec_prefix"
  10671. fi
  10672. acl_save_prefix="$prefix"
  10673. prefix="$acl_final_prefix"
  10674. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10675. prefix="$acl_save_prefix"
  10676. # Check whether --with-gnu-ld was given.
  10677. if test "${with_gnu_ld+set}" = set; then
  10678. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10679. else
  10680. with_gnu_ld=no
  10681. fi
  10682. # Prepare PATH_SEPARATOR.
  10683. # The user is always right.
  10684. if test "${PATH_SEPARATOR+set}" != set; then
  10685. echo "#! /bin/sh" >conf$$.sh
  10686. echo "exit 0" >>conf$$.sh
  10687. chmod +x conf$$.sh
  10688. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10689. PATH_SEPARATOR=';'
  10690. else
  10691. PATH_SEPARATOR=:
  10692. fi
  10693. rm -f conf$$.sh
  10694. fi
  10695. ac_prog=ld
  10696. if test "$GCC" = yes; then
  10697. # Check if gcc -print-prog-name=ld gives a path.
  10698. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10699. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10700. case $host in
  10701. *-*-mingw*)
  10702. # gcc leaves a trailing carriage return which upsets mingw
  10703. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10704. *)
  10705. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10706. esac
  10707. case $ac_prog in
  10708. # Accept absolute paths.
  10709. [\\/]* | [A-Za-z]:[\\/]*)
  10710. re_direlt='/[^/][^/]*/\.\./'
  10711. # Canonicalize the path of ld
  10712. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10713. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10714. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10715. done
  10716. test -z "$LD" && LD="$ac_prog"
  10717. ;;
  10718. "")
  10719. # If it fails, then pretend we aren't using GCC.
  10720. ac_prog=ld
  10721. ;;
  10722. *)
  10723. # If it is relative, then search for the first ld in PATH.
  10724. with_gnu_ld=unknown
  10725. ;;
  10726. esac
  10727. elif test "$with_gnu_ld" = yes; then
  10728. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10729. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10730. else
  10731. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10732. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10733. fi
  10734. if test "${acl_cv_path_LD+set}" = set; then
  10735. echo $ECHO_N "(cached) $ECHO_C" >&6
  10736. else
  10737. if test -z "$LD"; then
  10738. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10739. for ac_dir in $PATH; do
  10740. test -z "$ac_dir" && ac_dir=.
  10741. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10742. acl_cv_path_LD="$ac_dir/$ac_prog"
  10743. # Check to see if the program is GNU ld. I'd rather use --version,
  10744. # but apparently some GNU ld's only accept -v.
  10745. # Break only if it was the GNU/non-GNU ld that we prefer.
  10746. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10747. *GNU* | *'with BFD'*)
  10748. test "$with_gnu_ld" != no && break ;;
  10749. *)
  10750. test "$with_gnu_ld" != yes && break ;;
  10751. esac
  10752. fi
  10753. done
  10754. IFS="$ac_save_ifs"
  10755. else
  10756. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10757. fi
  10758. fi
  10759. LD="$acl_cv_path_LD"
  10760. if test -n "$LD"; then
  10761. { echo "$as_me:$LINENO: result: $LD" >&5
  10762. echo "${ECHO_T}$LD" >&6; }
  10763. else
  10764. { echo "$as_me:$LINENO: result: no" >&5
  10765. echo "${ECHO_T}no" >&6; }
  10766. fi
  10767. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10768. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10769. { (exit 1); exit 1; }; }
  10770. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10771. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10772. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10773. echo $ECHO_N "(cached) $ECHO_C" >&6
  10774. else
  10775. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10776. case `$LD -v 2>&1 </dev/null` in
  10777. *GNU* | *'with BFD'*)
  10778. acl_cv_prog_gnu_ld=yes ;;
  10779. *)
  10780. acl_cv_prog_gnu_ld=no ;;
  10781. esac
  10782. fi
  10783. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10784. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10785. with_gnu_ld=$acl_cv_prog_gnu_ld
  10786. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10787. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10788. if test "${acl_cv_rpath+set}" = set; then
  10789. echo $ECHO_N "(cached) $ECHO_C" >&6
  10790. else
  10791. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10792. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10793. . ./conftest.sh
  10794. rm -f ./conftest.sh
  10795. acl_cv_rpath=done
  10796. fi
  10797. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10798. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10799. wl="$acl_cv_wl"
  10800. acl_libext="$acl_cv_libext"
  10801. acl_shlibext="$acl_cv_shlibext"
  10802. acl_libname_spec="$acl_cv_libname_spec"
  10803. acl_library_names_spec="$acl_cv_library_names_spec"
  10804. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10805. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10806. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10807. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10808. # Check whether --enable-rpath was given.
  10809. if test "${enable_rpath+set}" = set; then
  10810. enableval=$enable_rpath; :
  10811. else
  10812. enable_rpath=yes
  10813. fi
  10814. acl_libdirstem=lib
  10815. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10816. if test -n "$searchpath"; then
  10817. acl_save_IFS="${IFS= }"; IFS=":"
  10818. for searchdir in $searchpath; do
  10819. if test -d "$searchdir"; then
  10820. case "$searchdir" in
  10821. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10822. *) searchdir=`cd "$searchdir" && pwd`
  10823. case "$searchdir" in
  10824. */lib64 ) acl_libdirstem=lib64 ;;
  10825. esac ;;
  10826. esac
  10827. fi
  10828. done
  10829. IFS="$acl_save_IFS"
  10830. fi
  10831. gl_threads_api=none
  10832. LIBTHREAD=
  10833. LTLIBTHREAD=
  10834. LIBMULTITHREAD=
  10835. LTLIBMULTITHREAD=
  10836. if test "$gl_use_threads" != no; then
  10837. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10838. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10839. gl_have_weak=no
  10840. cat >conftest.$ac_ext <<_ACEOF
  10841. /* confdefs.h. */
  10842. _ACEOF
  10843. cat confdefs.h >>conftest.$ac_ext
  10844. cat >>conftest.$ac_ext <<_ACEOF
  10845. /* end confdefs.h. */
  10846. extern void xyzzy ();
  10847. #pragma weak xyzzy
  10848. int
  10849. main ()
  10850. {
  10851. xyzzy();
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. rm -f conftest.$ac_objext conftest$ac_exeext
  10857. if { (ac_try="$ac_link"
  10858. case "(($ac_try" in
  10859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10860. *) ac_try_echo=$ac_try;;
  10861. esac
  10862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10863. (eval "$ac_link") 2>conftest.er1
  10864. ac_status=$?
  10865. grep -v '^ *+' conftest.er1 >conftest.err
  10866. rm -f conftest.er1
  10867. cat conftest.err >&5
  10868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10869. (exit $ac_status); } && {
  10870. test -z "$ac_cxx_werror_flag" ||
  10871. test ! -s conftest.err
  10872. } && test -s conftest$ac_exeext &&
  10873. $as_test_x conftest$ac_exeext; then
  10874. gl_have_weak=yes
  10875. else
  10876. echo "$as_me: failed program was:" >&5
  10877. sed 's/^/| /' conftest.$ac_ext >&5
  10878. fi
  10879. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10880. conftest$ac_exeext conftest.$ac_ext
  10881. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10882. echo "${ECHO_T}$gl_have_weak" >&6; }
  10883. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10884. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10885. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10886. if test "${ac_cv_header_pthread_h+set}" = set; then
  10887. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10888. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10889. if test "${ac_cv_header_pthread_h+set}" = set; then
  10890. echo $ECHO_N "(cached) $ECHO_C" >&6
  10891. fi
  10892. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10893. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10894. else
  10895. # Is the header compilable?
  10896. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10897. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10898. cat >conftest.$ac_ext <<_ACEOF
  10899. /* confdefs.h. */
  10900. _ACEOF
  10901. cat confdefs.h >>conftest.$ac_ext
  10902. cat >>conftest.$ac_ext <<_ACEOF
  10903. /* end confdefs.h. */
  10904. $ac_includes_default
  10905. #include <pthread.h>
  10906. _ACEOF
  10907. rm -f conftest.$ac_objext
  10908. if { (ac_try="$ac_compile"
  10909. case "(($ac_try" in
  10910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10911. *) ac_try_echo=$ac_try;;
  10912. esac
  10913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10914. (eval "$ac_compile") 2>conftest.er1
  10915. ac_status=$?
  10916. grep -v '^ *+' conftest.er1 >conftest.err
  10917. rm -f conftest.er1
  10918. cat conftest.err >&5
  10919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10920. (exit $ac_status); } && {
  10921. test -z "$ac_cxx_werror_flag" ||
  10922. test ! -s conftest.err
  10923. } && test -s conftest.$ac_objext; then
  10924. ac_header_compiler=yes
  10925. else
  10926. echo "$as_me: failed program was:" >&5
  10927. sed 's/^/| /' conftest.$ac_ext >&5
  10928. ac_header_compiler=no
  10929. fi
  10930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10931. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10932. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10933. # Is the header present?
  10934. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10935. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10936. cat >conftest.$ac_ext <<_ACEOF
  10937. /* confdefs.h. */
  10938. _ACEOF
  10939. cat confdefs.h >>conftest.$ac_ext
  10940. cat >>conftest.$ac_ext <<_ACEOF
  10941. /* end confdefs.h. */
  10942. #include <pthread.h>
  10943. _ACEOF
  10944. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10945. case "(($ac_try" in
  10946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10947. *) ac_try_echo=$ac_try;;
  10948. esac
  10949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10950. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10951. ac_status=$?
  10952. grep -v '^ *+' conftest.er1 >conftest.err
  10953. rm -f conftest.er1
  10954. cat conftest.err >&5
  10955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10956. (exit $ac_status); } >/dev/null && {
  10957. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10958. test ! -s conftest.err
  10959. }; then
  10960. ac_header_preproc=yes
  10961. else
  10962. echo "$as_me: failed program was:" >&5
  10963. sed 's/^/| /' conftest.$ac_ext >&5
  10964. ac_header_preproc=no
  10965. fi
  10966. rm -f conftest.err conftest.$ac_ext
  10967. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10968. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10969. # So? What about this header?
  10970. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10971. yes:no: )
  10972. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10973. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10974. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10975. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10976. ac_header_preproc=yes
  10977. ;;
  10978. no:yes:* )
  10979. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10980. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10981. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10982. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10983. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10984. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10985. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10986. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10987. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10988. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10989. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10990. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10991. ( cat <<\_ASBOX
  10992. ## ----------------------------------------------- ##
  10993. ## Report this to t-tujikawa@users.sourceforge.net ##
  10994. ## ----------------------------------------------- ##
  10995. _ASBOX
  10996. ) | sed "s/^/$as_me: WARNING: /" >&2
  10997. ;;
  10998. esac
  10999. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11000. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11001. if test "${ac_cv_header_pthread_h+set}" = set; then
  11002. echo $ECHO_N "(cached) $ECHO_C" >&6
  11003. else
  11004. ac_cv_header_pthread_h=$ac_header_preproc
  11005. fi
  11006. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11007. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11008. fi
  11009. if test $ac_cv_header_pthread_h = yes; then
  11010. gl_have_pthread_h=yes
  11011. else
  11012. gl_have_pthread_h=no
  11013. fi
  11014. if test "$gl_have_pthread_h" = yes; then
  11015. # Other possible tests:
  11016. # -lpthreads (FSU threads, PCthreads)
  11017. # -lgthreads
  11018. gl_have_pthread=
  11019. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11020. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11021. # the second one only in libpthread, and lock.c needs it.
  11022. cat >conftest.$ac_ext <<_ACEOF
  11023. /* confdefs.h. */
  11024. _ACEOF
  11025. cat confdefs.h >>conftest.$ac_ext
  11026. cat >>conftest.$ac_ext <<_ACEOF
  11027. /* end confdefs.h. */
  11028. #include <pthread.h>
  11029. int
  11030. main ()
  11031. {
  11032. pthread_mutex_lock((pthread_mutex_t*)0);
  11033. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11034. ;
  11035. return 0;
  11036. }
  11037. _ACEOF
  11038. rm -f conftest.$ac_objext conftest$ac_exeext
  11039. if { (ac_try="$ac_link"
  11040. case "(($ac_try" in
  11041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11042. *) ac_try_echo=$ac_try;;
  11043. esac
  11044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11045. (eval "$ac_link") 2>conftest.er1
  11046. ac_status=$?
  11047. grep -v '^ *+' conftest.er1 >conftest.err
  11048. rm -f conftest.er1
  11049. cat conftest.err >&5
  11050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11051. (exit $ac_status); } && {
  11052. test -z "$ac_cxx_werror_flag" ||
  11053. test ! -s conftest.err
  11054. } && test -s conftest$ac_exeext &&
  11055. $as_test_x conftest$ac_exeext; then
  11056. gl_have_pthread=yes
  11057. else
  11058. echo "$as_me: failed program was:" >&5
  11059. sed 's/^/| /' conftest.$ac_ext >&5
  11060. fi
  11061. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11062. conftest$ac_exeext conftest.$ac_ext
  11063. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11064. # since it is defined as a macro on OSF/1.)
  11065. if test -n "$gl_have_pthread"; then
  11066. # The program links fine without libpthread. But it may actually
  11067. # need to link with libpthread in order to create multiple threads.
  11068. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11069. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11070. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11071. echo $ECHO_N "(cached) $ECHO_C" >&6
  11072. else
  11073. ac_check_lib_save_LIBS=$LIBS
  11074. LIBS="-lpthread $LIBS"
  11075. cat >conftest.$ac_ext <<_ACEOF
  11076. /* confdefs.h. */
  11077. _ACEOF
  11078. cat confdefs.h >>conftest.$ac_ext
  11079. cat >>conftest.$ac_ext <<_ACEOF
  11080. /* end confdefs.h. */
  11081. /* Override any GCC internal prototype to avoid an error.
  11082. Use char because int might match the return type of a GCC
  11083. builtin and then its argument prototype would still apply. */
  11084. #ifdef __cplusplus
  11085. extern "C"
  11086. #endif
  11087. char pthread_kill ();
  11088. int
  11089. main ()
  11090. {
  11091. return pthread_kill ();
  11092. ;
  11093. return 0;
  11094. }
  11095. _ACEOF
  11096. rm -f conftest.$ac_objext conftest$ac_exeext
  11097. if { (ac_try="$ac_link"
  11098. case "(($ac_try" in
  11099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11100. *) ac_try_echo=$ac_try;;
  11101. esac
  11102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11103. (eval "$ac_link") 2>conftest.er1
  11104. ac_status=$?
  11105. grep -v '^ *+' conftest.er1 >conftest.err
  11106. rm -f conftest.er1
  11107. cat conftest.err >&5
  11108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11109. (exit $ac_status); } && {
  11110. test -z "$ac_cxx_werror_flag" ||
  11111. test ! -s conftest.err
  11112. } && test -s conftest$ac_exeext &&
  11113. $as_test_x conftest$ac_exeext; then
  11114. ac_cv_lib_pthread_pthread_kill=yes
  11115. else
  11116. echo "$as_me: failed program was:" >&5
  11117. sed 's/^/| /' conftest.$ac_ext >&5
  11118. ac_cv_lib_pthread_pthread_kill=no
  11119. fi
  11120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11121. conftest$ac_exeext conftest.$ac_ext
  11122. LIBS=$ac_check_lib_save_LIBS
  11123. fi
  11124. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11125. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11126. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11127. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11128. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11129. # Therefore pthread_in_use() needs to actually try to create a
  11130. # thread: pthread_create from libc will fail, whereas
  11131. # pthread_create will actually create a thread.
  11132. case "$host_os" in
  11133. solaris* | hpux*)
  11134. cat >>confdefs.h <<\_ACEOF
  11135. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11136. _ACEOF
  11137. esac
  11138. fi
  11139. else
  11140. # Some library is needed. Try libpthread and libc_r.
  11141. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11142. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11143. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11144. echo $ECHO_N "(cached) $ECHO_C" >&6
  11145. else
  11146. ac_check_lib_save_LIBS=$LIBS
  11147. LIBS="-lpthread $LIBS"
  11148. cat >conftest.$ac_ext <<_ACEOF
  11149. /* confdefs.h. */
  11150. _ACEOF
  11151. cat confdefs.h >>conftest.$ac_ext
  11152. cat >>conftest.$ac_ext <<_ACEOF
  11153. /* end confdefs.h. */
  11154. /* Override any GCC internal prototype to avoid an error.
  11155. Use char because int might match the return type of a GCC
  11156. builtin and then its argument prototype would still apply. */
  11157. #ifdef __cplusplus
  11158. extern "C"
  11159. #endif
  11160. char pthread_kill ();
  11161. int
  11162. main ()
  11163. {
  11164. return pthread_kill ();
  11165. ;
  11166. return 0;
  11167. }
  11168. _ACEOF
  11169. rm -f conftest.$ac_objext conftest$ac_exeext
  11170. if { (ac_try="$ac_link"
  11171. case "(($ac_try" in
  11172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11173. *) ac_try_echo=$ac_try;;
  11174. esac
  11175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11176. (eval "$ac_link") 2>conftest.er1
  11177. ac_status=$?
  11178. grep -v '^ *+' conftest.er1 >conftest.err
  11179. rm -f conftest.er1
  11180. cat conftest.err >&5
  11181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11182. (exit $ac_status); } && {
  11183. test -z "$ac_cxx_werror_flag" ||
  11184. test ! -s conftest.err
  11185. } && test -s conftest$ac_exeext &&
  11186. $as_test_x conftest$ac_exeext; then
  11187. ac_cv_lib_pthread_pthread_kill=yes
  11188. else
  11189. echo "$as_me: failed program was:" >&5
  11190. sed 's/^/| /' conftest.$ac_ext >&5
  11191. ac_cv_lib_pthread_pthread_kill=no
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11194. conftest$ac_exeext conftest.$ac_ext
  11195. LIBS=$ac_check_lib_save_LIBS
  11196. fi
  11197. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11198. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11199. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11200. gl_have_pthread=yes
  11201. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11202. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11203. fi
  11204. if test -z "$gl_have_pthread"; then
  11205. # For FreeBSD 4.
  11206. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11207. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11208. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11209. echo $ECHO_N "(cached) $ECHO_C" >&6
  11210. else
  11211. ac_check_lib_save_LIBS=$LIBS
  11212. LIBS="-lc_r $LIBS"
  11213. cat >conftest.$ac_ext <<_ACEOF
  11214. /* confdefs.h. */
  11215. _ACEOF
  11216. cat confdefs.h >>conftest.$ac_ext
  11217. cat >>conftest.$ac_ext <<_ACEOF
  11218. /* end confdefs.h. */
  11219. /* Override any GCC internal prototype to avoid an error.
  11220. Use char because int might match the return type of a GCC
  11221. builtin and then its argument prototype would still apply. */
  11222. #ifdef __cplusplus
  11223. extern "C"
  11224. #endif
  11225. char pthread_kill ();
  11226. int
  11227. main ()
  11228. {
  11229. return pthread_kill ();
  11230. ;
  11231. return 0;
  11232. }
  11233. _ACEOF
  11234. rm -f conftest.$ac_objext conftest$ac_exeext
  11235. if { (ac_try="$ac_link"
  11236. case "(($ac_try" in
  11237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11238. *) ac_try_echo=$ac_try;;
  11239. esac
  11240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11241. (eval "$ac_link") 2>conftest.er1
  11242. ac_status=$?
  11243. grep -v '^ *+' conftest.er1 >conftest.err
  11244. rm -f conftest.er1
  11245. cat conftest.err >&5
  11246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11247. (exit $ac_status); } && {
  11248. test -z "$ac_cxx_werror_flag" ||
  11249. test ! -s conftest.err
  11250. } && test -s conftest$ac_exeext &&
  11251. $as_test_x conftest$ac_exeext; then
  11252. ac_cv_lib_c_r_pthread_kill=yes
  11253. else
  11254. echo "$as_me: failed program was:" >&5
  11255. sed 's/^/| /' conftest.$ac_ext >&5
  11256. ac_cv_lib_c_r_pthread_kill=no
  11257. fi
  11258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11259. conftest$ac_exeext conftest.$ac_ext
  11260. LIBS=$ac_check_lib_save_LIBS
  11261. fi
  11262. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11263. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11264. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11265. gl_have_pthread=yes
  11266. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11267. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11268. fi
  11269. fi
  11270. fi
  11271. if test -n "$gl_have_pthread"; then
  11272. gl_threads_api=posix
  11273. cat >>confdefs.h <<\_ACEOF
  11274. #define USE_POSIX_THREADS 1
  11275. _ACEOF
  11276. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11277. if test $gl_have_weak = yes; then
  11278. cat >>confdefs.h <<\_ACEOF
  11279. #define USE_POSIX_THREADS_WEAK 1
  11280. _ACEOF
  11281. LIBTHREAD=
  11282. LTLIBTHREAD=
  11283. fi
  11284. fi
  11285. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11286. # pthread_rwlock_* functions.
  11287. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11288. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11289. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11290. echo $ECHO_N "(cached) $ECHO_C" >&6
  11291. else
  11292. cat >conftest.$ac_ext <<_ACEOF
  11293. /* confdefs.h. */
  11294. _ACEOF
  11295. cat confdefs.h >>conftest.$ac_ext
  11296. cat >>conftest.$ac_ext <<_ACEOF
  11297. /* end confdefs.h. */
  11298. #include <pthread.h>
  11299. typedef pthread_rwlock_t ac__type_new_;
  11300. int
  11301. main ()
  11302. {
  11303. if ((ac__type_new_ *) 0)
  11304. return 0;
  11305. if (sizeof (ac__type_new_))
  11306. return 0;
  11307. ;
  11308. return 0;
  11309. }
  11310. _ACEOF
  11311. rm -f conftest.$ac_objext
  11312. if { (ac_try="$ac_compile"
  11313. case "(($ac_try" in
  11314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11315. *) ac_try_echo=$ac_try;;
  11316. esac
  11317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11318. (eval "$ac_compile") 2>conftest.er1
  11319. ac_status=$?
  11320. grep -v '^ *+' conftest.er1 >conftest.err
  11321. rm -f conftest.er1
  11322. cat conftest.err >&5
  11323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11324. (exit $ac_status); } && {
  11325. test -z "$ac_cxx_werror_flag" ||
  11326. test ! -s conftest.err
  11327. } && test -s conftest.$ac_objext; then
  11328. ac_cv_type_pthread_rwlock_t=yes
  11329. else
  11330. echo "$as_me: failed program was:" >&5
  11331. sed 's/^/| /' conftest.$ac_ext >&5
  11332. ac_cv_type_pthread_rwlock_t=no
  11333. fi
  11334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11335. fi
  11336. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11337. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11338. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11339. cat >>confdefs.h <<\_ACEOF
  11340. #define HAVE_PTHREAD_RWLOCK 1
  11341. _ACEOF
  11342. fi
  11343. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11344. cat >conftest.$ac_ext <<_ACEOF
  11345. /* confdefs.h. */
  11346. _ACEOF
  11347. cat confdefs.h >>conftest.$ac_ext
  11348. cat >>conftest.$ac_ext <<_ACEOF
  11349. /* end confdefs.h. */
  11350. #include <pthread.h>
  11351. int
  11352. main ()
  11353. {
  11354. #if __FreeBSD__ == 4
  11355. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11356. #else
  11357. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11358. return !x;
  11359. #endif
  11360. ;
  11361. return 0;
  11362. }
  11363. _ACEOF
  11364. rm -f conftest.$ac_objext
  11365. if { (ac_try="$ac_compile"
  11366. case "(($ac_try" in
  11367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11368. *) ac_try_echo=$ac_try;;
  11369. esac
  11370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11371. (eval "$ac_compile") 2>conftest.er1
  11372. ac_status=$?
  11373. grep -v '^ *+' conftest.er1 >conftest.err
  11374. rm -f conftest.er1
  11375. cat conftest.err >&5
  11376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11377. (exit $ac_status); } && {
  11378. test -z "$ac_cxx_werror_flag" ||
  11379. test ! -s conftest.err
  11380. } && test -s conftest.$ac_objext; then
  11381. cat >>confdefs.h <<\_ACEOF
  11382. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11383. _ACEOF
  11384. else
  11385. echo "$as_me: failed program was:" >&5
  11386. sed 's/^/| /' conftest.$ac_ext >&5
  11387. fi
  11388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11389. fi
  11390. fi
  11391. fi
  11392. if test -z "$gl_have_pthread"; then
  11393. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11394. gl_have_solaristhread=
  11395. gl_save_LIBS="$LIBS"
  11396. LIBS="$LIBS -lthread"
  11397. cat >conftest.$ac_ext <<_ACEOF
  11398. /* confdefs.h. */
  11399. _ACEOF
  11400. cat confdefs.h >>conftest.$ac_ext
  11401. cat >>conftest.$ac_ext <<_ACEOF
  11402. /* end confdefs.h. */
  11403. #include <thread.h>
  11404. #include <synch.h>
  11405. int
  11406. main ()
  11407. {
  11408. thr_self();
  11409. ;
  11410. return 0;
  11411. }
  11412. _ACEOF
  11413. rm -f conftest.$ac_objext conftest$ac_exeext
  11414. if { (ac_try="$ac_link"
  11415. case "(($ac_try" in
  11416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11417. *) ac_try_echo=$ac_try;;
  11418. esac
  11419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11420. (eval "$ac_link") 2>conftest.er1
  11421. ac_status=$?
  11422. grep -v '^ *+' conftest.er1 >conftest.err
  11423. rm -f conftest.er1
  11424. cat conftest.err >&5
  11425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11426. (exit $ac_status); } && {
  11427. test -z "$ac_cxx_werror_flag" ||
  11428. test ! -s conftest.err
  11429. } && test -s conftest$ac_exeext &&
  11430. $as_test_x conftest$ac_exeext; then
  11431. gl_have_solaristhread=yes
  11432. else
  11433. echo "$as_me: failed program was:" >&5
  11434. sed 's/^/| /' conftest.$ac_ext >&5
  11435. fi
  11436. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11437. conftest$ac_exeext conftest.$ac_ext
  11438. LIBS="$gl_save_LIBS"
  11439. if test -n "$gl_have_solaristhread"; then
  11440. gl_threads_api=solaris
  11441. LIBTHREAD=-lthread
  11442. LTLIBTHREAD=-lthread
  11443. LIBMULTITHREAD="$LIBTHREAD"
  11444. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11445. cat >>confdefs.h <<\_ACEOF
  11446. #define USE_SOLARIS_THREADS 1
  11447. _ACEOF
  11448. if test $gl_have_weak = yes; then
  11449. cat >>confdefs.h <<\_ACEOF
  11450. #define USE_SOLARIS_THREADS_WEAK 1
  11451. _ACEOF
  11452. LIBTHREAD=
  11453. LTLIBTHREAD=
  11454. fi
  11455. fi
  11456. fi
  11457. fi
  11458. if test "$gl_use_threads" = pth; then
  11459. gl_save_CPPFLAGS="$CPPFLAGS"
  11460. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11461. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11462. if test "${ac_cv_libpth_libs+set}" = set; then
  11463. echo $ECHO_N "(cached) $ECHO_C" >&6
  11464. else
  11465. use_additional=yes
  11466. acl_save_prefix="$prefix"
  11467. prefix="$acl_final_prefix"
  11468. acl_save_exec_prefix="$exec_prefix"
  11469. exec_prefix="$acl_final_exec_prefix"
  11470. eval additional_includedir=\"$includedir\"
  11471. eval additional_libdir=\"$libdir\"
  11472. exec_prefix="$acl_save_exec_prefix"
  11473. prefix="$acl_save_prefix"
  11474. # Check whether --with-libpth-prefix was given.
  11475. if test "${with_libpth_prefix+set}" = set; then
  11476. withval=$with_libpth_prefix;
  11477. if test "X$withval" = "Xno"; then
  11478. use_additional=no
  11479. else
  11480. if test "X$withval" = "X"; then
  11481. acl_save_prefix="$prefix"
  11482. prefix="$acl_final_prefix"
  11483. acl_save_exec_prefix="$exec_prefix"
  11484. exec_prefix="$acl_final_exec_prefix"
  11485. eval additional_includedir=\"$includedir\"
  11486. eval additional_libdir=\"$libdir\"
  11487. exec_prefix="$acl_save_exec_prefix"
  11488. prefix="$acl_save_prefix"
  11489. else
  11490. additional_includedir="$withval/include"
  11491. additional_libdir="$withval/$acl_libdirstem"
  11492. fi
  11493. fi
  11494. fi
  11495. LIBPTH=
  11496. LTLIBPTH=
  11497. INCPTH=
  11498. LIBPTH_PREFIX=
  11499. rpathdirs=
  11500. ltrpathdirs=
  11501. names_already_handled=
  11502. names_next_round='pth '
  11503. while test -n "$names_next_round"; do
  11504. names_this_round="$names_next_round"
  11505. names_next_round=
  11506. for name in $names_this_round; do
  11507. already_handled=
  11508. for n in $names_already_handled; do
  11509. if test "$n" = "$name"; then
  11510. already_handled=yes
  11511. break
  11512. fi
  11513. done
  11514. if test -z "$already_handled"; then
  11515. names_already_handled="$names_already_handled $name"
  11516. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11517. eval value=\"\$HAVE_LIB$uppername\"
  11518. if test -n "$value"; then
  11519. if test "$value" = yes; then
  11520. eval value=\"\$LIB$uppername\"
  11521. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11522. eval value=\"\$LTLIB$uppername\"
  11523. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11524. else
  11525. :
  11526. fi
  11527. else
  11528. found_dir=
  11529. found_la=
  11530. found_so=
  11531. found_a=
  11532. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11533. if test -n "$acl_shlibext"; then
  11534. shrext=".$acl_shlibext" # typically: shrext=.so
  11535. else
  11536. shrext=
  11537. fi
  11538. if test $use_additional = yes; then
  11539. dir="$additional_libdir"
  11540. if test -n "$acl_shlibext"; then
  11541. if test -f "$dir/$libname$shrext"; then
  11542. found_dir="$dir"
  11543. found_so="$dir/$libname$shrext"
  11544. else
  11545. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11546. ver=`(cd "$dir" && \
  11547. for f in "$libname$shrext".*; do echo "$f"; done \
  11548. | sed -e "s,^$libname$shrext\\\\.,," \
  11549. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11550. | sed 1q ) 2>/dev/null`
  11551. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11552. found_dir="$dir"
  11553. found_so="$dir/$libname$shrext.$ver"
  11554. fi
  11555. else
  11556. eval library_names=\"$acl_library_names_spec\"
  11557. for f in $library_names; do
  11558. if test -f "$dir/$f"; then
  11559. found_dir="$dir"
  11560. found_so="$dir/$f"
  11561. break
  11562. fi
  11563. done
  11564. fi
  11565. fi
  11566. fi
  11567. if test "X$found_dir" = "X"; then
  11568. if test -f "$dir/$libname.$acl_libext"; then
  11569. found_dir="$dir"
  11570. found_a="$dir/$libname.$acl_libext"
  11571. fi
  11572. fi
  11573. if test "X$found_dir" != "X"; then
  11574. if test -f "$dir/$libname.la"; then
  11575. found_la="$dir/$libname.la"
  11576. fi
  11577. fi
  11578. fi
  11579. if test "X$found_dir" = "X"; then
  11580. for x in $LDFLAGS $LTLIBPTH; do
  11581. acl_save_prefix="$prefix"
  11582. prefix="$acl_final_prefix"
  11583. acl_save_exec_prefix="$exec_prefix"
  11584. exec_prefix="$acl_final_exec_prefix"
  11585. eval x=\"$x\"
  11586. exec_prefix="$acl_save_exec_prefix"
  11587. prefix="$acl_save_prefix"
  11588. case "$x" in
  11589. -L*)
  11590. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11591. if test -n "$acl_shlibext"; then
  11592. if test -f "$dir/$libname$shrext"; then
  11593. found_dir="$dir"
  11594. found_so="$dir/$libname$shrext"
  11595. else
  11596. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11597. ver=`(cd "$dir" && \
  11598. for f in "$libname$shrext".*; do echo "$f"; done \
  11599. | sed -e "s,^$libname$shrext\\\\.,," \
  11600. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11601. | sed 1q ) 2>/dev/null`
  11602. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11603. found_dir="$dir"
  11604. found_so="$dir/$libname$shrext.$ver"
  11605. fi
  11606. else
  11607. eval library_names=\"$acl_library_names_spec\"
  11608. for f in $library_names; do
  11609. if test -f "$dir/$f"; then
  11610. found_dir="$dir"
  11611. found_so="$dir/$f"
  11612. break
  11613. fi
  11614. done
  11615. fi
  11616. fi
  11617. fi
  11618. if test "X$found_dir" = "X"; then
  11619. if test -f "$dir/$libname.$acl_libext"; then
  11620. found_dir="$dir"
  11621. found_a="$dir/$libname.$acl_libext"
  11622. fi
  11623. fi
  11624. if test "X$found_dir" != "X"; then
  11625. if test -f "$dir/$libname.la"; then
  11626. found_la="$dir/$libname.la"
  11627. fi
  11628. fi
  11629. ;;
  11630. esac
  11631. if test "X$found_dir" != "X"; then
  11632. break
  11633. fi
  11634. done
  11635. fi
  11636. if test "X$found_dir" != "X"; then
  11637. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11638. if test "X$found_so" != "X"; then
  11639. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11640. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11641. else
  11642. haveit=
  11643. for x in $ltrpathdirs; do
  11644. if test "X$x" = "X$found_dir"; then
  11645. haveit=yes
  11646. break
  11647. fi
  11648. done
  11649. if test -z "$haveit"; then
  11650. ltrpathdirs="$ltrpathdirs $found_dir"
  11651. fi
  11652. if test "$acl_hardcode_direct" = yes; then
  11653. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11654. else
  11655. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11656. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11657. haveit=
  11658. for x in $rpathdirs; do
  11659. if test "X$x" = "X$found_dir"; then
  11660. haveit=yes
  11661. break
  11662. fi
  11663. done
  11664. if test -z "$haveit"; then
  11665. rpathdirs="$rpathdirs $found_dir"
  11666. fi
  11667. else
  11668. haveit=
  11669. for x in $LDFLAGS $LIBPTH; do
  11670. acl_save_prefix="$prefix"
  11671. prefix="$acl_final_prefix"
  11672. acl_save_exec_prefix="$exec_prefix"
  11673. exec_prefix="$acl_final_exec_prefix"
  11674. eval x=\"$x\"
  11675. exec_prefix="$acl_save_exec_prefix"
  11676. prefix="$acl_save_prefix"
  11677. if test "X$x" = "X-L$found_dir"; then
  11678. haveit=yes
  11679. break
  11680. fi
  11681. done
  11682. if test -z "$haveit"; then
  11683. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11684. fi
  11685. if test "$acl_hardcode_minus_L" != no; then
  11686. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11687. else
  11688. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11689. fi
  11690. fi
  11691. fi
  11692. fi
  11693. else
  11694. if test "X$found_a" != "X"; then
  11695. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11696. else
  11697. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11698. fi
  11699. fi
  11700. additional_includedir=
  11701. case "$found_dir" in
  11702. */$acl_libdirstem | */$acl_libdirstem/)
  11703. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11704. LIBPTH_PREFIX="$basedir"
  11705. additional_includedir="$basedir/include"
  11706. ;;
  11707. esac
  11708. if test "X$additional_includedir" != "X"; then
  11709. if test "X$additional_includedir" != "X/usr/include"; then
  11710. haveit=
  11711. if test "X$additional_includedir" = "X/usr/local/include"; then
  11712. if test -n "$GCC"; then
  11713. case $host_os in
  11714. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11715. esac
  11716. fi
  11717. fi
  11718. if test -z "$haveit"; then
  11719. for x in $CPPFLAGS $INCPTH; do
  11720. acl_save_prefix="$prefix"
  11721. prefix="$acl_final_prefix"
  11722. acl_save_exec_prefix="$exec_prefix"
  11723. exec_prefix="$acl_final_exec_prefix"
  11724. eval x=\"$x\"
  11725. exec_prefix="$acl_save_exec_prefix"
  11726. prefix="$acl_save_prefix"
  11727. if test "X$x" = "X-I$additional_includedir"; then
  11728. haveit=yes
  11729. break
  11730. fi
  11731. done
  11732. if test -z "$haveit"; then
  11733. if test -d "$additional_includedir"; then
  11734. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11735. fi
  11736. fi
  11737. fi
  11738. fi
  11739. fi
  11740. if test -n "$found_la"; then
  11741. save_libdir="$libdir"
  11742. case "$found_la" in
  11743. */* | *\\*) . "$found_la" ;;
  11744. *) . "./$found_la" ;;
  11745. esac
  11746. libdir="$save_libdir"
  11747. for dep in $dependency_libs; do
  11748. case "$dep" in
  11749. -L*)
  11750. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11751. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11752. haveit=
  11753. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11754. if test -n "$GCC"; then
  11755. case $host_os in
  11756. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11757. esac
  11758. fi
  11759. fi
  11760. if test -z "$haveit"; then
  11761. haveit=
  11762. for x in $LDFLAGS $LIBPTH; do
  11763. acl_save_prefix="$prefix"
  11764. prefix="$acl_final_prefix"
  11765. acl_save_exec_prefix="$exec_prefix"
  11766. exec_prefix="$acl_final_exec_prefix"
  11767. eval x=\"$x\"
  11768. exec_prefix="$acl_save_exec_prefix"
  11769. prefix="$acl_save_prefix"
  11770. if test "X$x" = "X-L$additional_libdir"; then
  11771. haveit=yes
  11772. break
  11773. fi
  11774. done
  11775. if test -z "$haveit"; then
  11776. if test -d "$additional_libdir"; then
  11777. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11778. fi
  11779. fi
  11780. haveit=
  11781. for x in $LDFLAGS $LTLIBPTH; do
  11782. acl_save_prefix="$prefix"
  11783. prefix="$acl_final_prefix"
  11784. acl_save_exec_prefix="$exec_prefix"
  11785. exec_prefix="$acl_final_exec_prefix"
  11786. eval x=\"$x\"
  11787. exec_prefix="$acl_save_exec_prefix"
  11788. prefix="$acl_save_prefix"
  11789. if test "X$x" = "X-L$additional_libdir"; then
  11790. haveit=yes
  11791. break
  11792. fi
  11793. done
  11794. if test -z "$haveit"; then
  11795. if test -d "$additional_libdir"; then
  11796. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11797. fi
  11798. fi
  11799. fi
  11800. fi
  11801. ;;
  11802. -R*)
  11803. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11804. if test "$enable_rpath" != no; then
  11805. haveit=
  11806. for x in $rpathdirs; do
  11807. if test "X$x" = "X$dir"; then
  11808. haveit=yes
  11809. break
  11810. fi
  11811. done
  11812. if test -z "$haveit"; then
  11813. rpathdirs="$rpathdirs $dir"
  11814. fi
  11815. haveit=
  11816. for x in $ltrpathdirs; do
  11817. if test "X$x" = "X$dir"; then
  11818. haveit=yes
  11819. break
  11820. fi
  11821. done
  11822. if test -z "$haveit"; then
  11823. ltrpathdirs="$ltrpathdirs $dir"
  11824. fi
  11825. fi
  11826. ;;
  11827. -l*)
  11828. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11829. ;;
  11830. *.la)
  11831. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11832. ;;
  11833. *)
  11834. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11835. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11836. ;;
  11837. esac
  11838. done
  11839. fi
  11840. else
  11841. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11842. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11843. fi
  11844. fi
  11845. fi
  11846. done
  11847. done
  11848. if test "X$rpathdirs" != "X"; then
  11849. if test -n "$acl_hardcode_libdir_separator"; then
  11850. alldirs=
  11851. for found_dir in $rpathdirs; do
  11852. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11853. done
  11854. acl_save_libdir="$libdir"
  11855. libdir="$alldirs"
  11856. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11857. libdir="$acl_save_libdir"
  11858. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11859. else
  11860. for found_dir in $rpathdirs; do
  11861. acl_save_libdir="$libdir"
  11862. libdir="$found_dir"
  11863. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11864. libdir="$acl_save_libdir"
  11865. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11866. done
  11867. fi
  11868. fi
  11869. if test "X$ltrpathdirs" != "X"; then
  11870. for found_dir in $ltrpathdirs; do
  11871. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11872. done
  11873. fi
  11874. ac_cv_libpth_libs="$LIBPTH"
  11875. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11876. ac_cv_libpth_cppflags="$INCPTH"
  11877. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11878. fi
  11879. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11880. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11881. LIBPTH="$ac_cv_libpth_libs"
  11882. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11883. INCPTH="$ac_cv_libpth_cppflags"
  11884. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11885. for element in $INCPTH; do
  11886. haveit=
  11887. for x in $CPPFLAGS; do
  11888. acl_save_prefix="$prefix"
  11889. prefix="$acl_final_prefix"
  11890. acl_save_exec_prefix="$exec_prefix"
  11891. exec_prefix="$acl_final_exec_prefix"
  11892. eval x=\"$x\"
  11893. exec_prefix="$acl_save_exec_prefix"
  11894. prefix="$acl_save_prefix"
  11895. if test "X$x" = "X$element"; then
  11896. haveit=yes
  11897. break
  11898. fi
  11899. done
  11900. if test -z "$haveit"; then
  11901. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11902. fi
  11903. done
  11904. HAVE_LIBPTH=yes
  11905. gl_have_pth=
  11906. gl_save_LIBS="$LIBS"
  11907. LIBS="$LIBS -lpth"
  11908. cat >conftest.$ac_ext <<_ACEOF
  11909. /* confdefs.h. */
  11910. _ACEOF
  11911. cat confdefs.h >>conftest.$ac_ext
  11912. cat >>conftest.$ac_ext <<_ACEOF
  11913. /* end confdefs.h. */
  11914. #include <pth.h>
  11915. int
  11916. main ()
  11917. {
  11918. pth_self();
  11919. ;
  11920. return 0;
  11921. }
  11922. _ACEOF
  11923. rm -f conftest.$ac_objext conftest$ac_exeext
  11924. if { (ac_try="$ac_link"
  11925. case "(($ac_try" in
  11926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11927. *) ac_try_echo=$ac_try;;
  11928. esac
  11929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11930. (eval "$ac_link") 2>conftest.er1
  11931. ac_status=$?
  11932. grep -v '^ *+' conftest.er1 >conftest.err
  11933. rm -f conftest.er1
  11934. cat conftest.err >&5
  11935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11936. (exit $ac_status); } && {
  11937. test -z "$ac_cxx_werror_flag" ||
  11938. test ! -s conftest.err
  11939. } && test -s conftest$ac_exeext &&
  11940. $as_test_x conftest$ac_exeext; then
  11941. gl_have_pth=yes
  11942. else
  11943. echo "$as_me: failed program was:" >&5
  11944. sed 's/^/| /' conftest.$ac_ext >&5
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11947. conftest$ac_exeext conftest.$ac_ext
  11948. LIBS="$gl_save_LIBS"
  11949. if test -n "$gl_have_pth"; then
  11950. gl_threads_api=pth
  11951. LIBTHREAD="$LIBPTH"
  11952. LTLIBTHREAD="$LTLIBPTH"
  11953. LIBMULTITHREAD="$LIBTHREAD"
  11954. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11955. cat >>confdefs.h <<\_ACEOF
  11956. #define USE_PTH_THREADS 1
  11957. _ACEOF
  11958. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11959. if test $gl_have_weak = yes; then
  11960. cat >>confdefs.h <<\_ACEOF
  11961. #define USE_PTH_THREADS_WEAK 1
  11962. _ACEOF
  11963. LIBTHREAD=
  11964. LTLIBTHREAD=
  11965. fi
  11966. fi
  11967. else
  11968. CPPFLAGS="$gl_save_CPPFLAGS"
  11969. fi
  11970. fi
  11971. if test -z "$gl_have_pthread"; then
  11972. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11973. if { case "$host_os" in
  11974. mingw*) true;;
  11975. *) false;;
  11976. esac
  11977. }; then
  11978. gl_threads_api=win32
  11979. cat >>confdefs.h <<\_ACEOF
  11980. #define USE_WIN32_THREADS 1
  11981. _ACEOF
  11982. fi
  11983. fi
  11984. fi
  11985. fi
  11986. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11987. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11988. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11989. echo "${ECHO_T}$gl_threads_api" >&6; }
  11990. use_additional=yes
  11991. acl_save_prefix="$prefix"
  11992. prefix="$acl_final_prefix"
  11993. acl_save_exec_prefix="$exec_prefix"
  11994. exec_prefix="$acl_final_exec_prefix"
  11995. eval additional_includedir=\"$includedir\"
  11996. eval additional_libdir=\"$libdir\"
  11997. exec_prefix="$acl_save_exec_prefix"
  11998. prefix="$acl_save_prefix"
  11999. # Check whether --with-libiconv-prefix was given.
  12000. if test "${with_libiconv_prefix+set}" = set; then
  12001. withval=$with_libiconv_prefix;
  12002. if test "X$withval" = "Xno"; then
  12003. use_additional=no
  12004. else
  12005. if test "X$withval" = "X"; then
  12006. acl_save_prefix="$prefix"
  12007. prefix="$acl_final_prefix"
  12008. acl_save_exec_prefix="$exec_prefix"
  12009. exec_prefix="$acl_final_exec_prefix"
  12010. eval additional_includedir=\"$includedir\"
  12011. eval additional_libdir=\"$libdir\"
  12012. exec_prefix="$acl_save_exec_prefix"
  12013. prefix="$acl_save_prefix"
  12014. else
  12015. additional_includedir="$withval/include"
  12016. additional_libdir="$withval/$acl_libdirstem"
  12017. fi
  12018. fi
  12019. fi
  12020. LIBICONV=
  12021. LTLIBICONV=
  12022. INCICONV=
  12023. LIBICONV_PREFIX=
  12024. rpathdirs=
  12025. ltrpathdirs=
  12026. names_already_handled=
  12027. names_next_round='iconv '
  12028. while test -n "$names_next_round"; do
  12029. names_this_round="$names_next_round"
  12030. names_next_round=
  12031. for name in $names_this_round; do
  12032. already_handled=
  12033. for n in $names_already_handled; do
  12034. if test "$n" = "$name"; then
  12035. already_handled=yes
  12036. break
  12037. fi
  12038. done
  12039. if test -z "$already_handled"; then
  12040. names_already_handled="$names_already_handled $name"
  12041. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12042. eval value=\"\$HAVE_LIB$uppername\"
  12043. if test -n "$value"; then
  12044. if test "$value" = yes; then
  12045. eval value=\"\$LIB$uppername\"
  12046. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12047. eval value=\"\$LTLIB$uppername\"
  12048. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12049. else
  12050. :
  12051. fi
  12052. else
  12053. found_dir=
  12054. found_la=
  12055. found_so=
  12056. found_a=
  12057. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12058. if test -n "$acl_shlibext"; then
  12059. shrext=".$acl_shlibext" # typically: shrext=.so
  12060. else
  12061. shrext=
  12062. fi
  12063. if test $use_additional = yes; then
  12064. dir="$additional_libdir"
  12065. if test -n "$acl_shlibext"; then
  12066. if test -f "$dir/$libname$shrext"; then
  12067. found_dir="$dir"
  12068. found_so="$dir/$libname$shrext"
  12069. else
  12070. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12071. ver=`(cd "$dir" && \
  12072. for f in "$libname$shrext".*; do echo "$f"; done \
  12073. | sed -e "s,^$libname$shrext\\\\.,," \
  12074. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12075. | sed 1q ) 2>/dev/null`
  12076. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12077. found_dir="$dir"
  12078. found_so="$dir/$libname$shrext.$ver"
  12079. fi
  12080. else
  12081. eval library_names=\"$acl_library_names_spec\"
  12082. for f in $library_names; do
  12083. if test -f "$dir/$f"; then
  12084. found_dir="$dir"
  12085. found_so="$dir/$f"
  12086. break
  12087. fi
  12088. done
  12089. fi
  12090. fi
  12091. fi
  12092. if test "X$found_dir" = "X"; then
  12093. if test -f "$dir/$libname.$acl_libext"; then
  12094. found_dir="$dir"
  12095. found_a="$dir/$libname.$acl_libext"
  12096. fi
  12097. fi
  12098. if test "X$found_dir" != "X"; then
  12099. if test -f "$dir/$libname.la"; then
  12100. found_la="$dir/$libname.la"
  12101. fi
  12102. fi
  12103. fi
  12104. if test "X$found_dir" = "X"; then
  12105. for x in $LDFLAGS $LTLIBICONV; do
  12106. acl_save_prefix="$prefix"
  12107. prefix="$acl_final_prefix"
  12108. acl_save_exec_prefix="$exec_prefix"
  12109. exec_prefix="$acl_final_exec_prefix"
  12110. eval x=\"$x\"
  12111. exec_prefix="$acl_save_exec_prefix"
  12112. prefix="$acl_save_prefix"
  12113. case "$x" in
  12114. -L*)
  12115. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12116. if test -n "$acl_shlibext"; then
  12117. if test -f "$dir/$libname$shrext"; then
  12118. found_dir="$dir"
  12119. found_so="$dir/$libname$shrext"
  12120. else
  12121. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12122. ver=`(cd "$dir" && \
  12123. for f in "$libname$shrext".*; do echo "$f"; done \
  12124. | sed -e "s,^$libname$shrext\\\\.,," \
  12125. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12126. | sed 1q ) 2>/dev/null`
  12127. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12128. found_dir="$dir"
  12129. found_so="$dir/$libname$shrext.$ver"
  12130. fi
  12131. else
  12132. eval library_names=\"$acl_library_names_spec\"
  12133. for f in $library_names; do
  12134. if test -f "$dir/$f"; then
  12135. found_dir="$dir"
  12136. found_so="$dir/$f"
  12137. break
  12138. fi
  12139. done
  12140. fi
  12141. fi
  12142. fi
  12143. if test "X$found_dir" = "X"; then
  12144. if test -f "$dir/$libname.$acl_libext"; then
  12145. found_dir="$dir"
  12146. found_a="$dir/$libname.$acl_libext"
  12147. fi
  12148. fi
  12149. if test "X$found_dir" != "X"; then
  12150. if test -f "$dir/$libname.la"; then
  12151. found_la="$dir/$libname.la"
  12152. fi
  12153. fi
  12154. ;;
  12155. esac
  12156. if test "X$found_dir" != "X"; then
  12157. break
  12158. fi
  12159. done
  12160. fi
  12161. if test "X$found_dir" != "X"; then
  12162. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12163. if test "X$found_so" != "X"; then
  12164. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12165. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12166. else
  12167. haveit=
  12168. for x in $ltrpathdirs; do
  12169. if test "X$x" = "X$found_dir"; then
  12170. haveit=yes
  12171. break
  12172. fi
  12173. done
  12174. if test -z "$haveit"; then
  12175. ltrpathdirs="$ltrpathdirs $found_dir"
  12176. fi
  12177. if test "$acl_hardcode_direct" = yes; then
  12178. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12179. else
  12180. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12181. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12182. haveit=
  12183. for x in $rpathdirs; do
  12184. if test "X$x" = "X$found_dir"; then
  12185. haveit=yes
  12186. break
  12187. fi
  12188. done
  12189. if test -z "$haveit"; then
  12190. rpathdirs="$rpathdirs $found_dir"
  12191. fi
  12192. else
  12193. haveit=
  12194. for x in $LDFLAGS $LIBICONV; do
  12195. acl_save_prefix="$prefix"
  12196. prefix="$acl_final_prefix"
  12197. acl_save_exec_prefix="$exec_prefix"
  12198. exec_prefix="$acl_final_exec_prefix"
  12199. eval x=\"$x\"
  12200. exec_prefix="$acl_save_exec_prefix"
  12201. prefix="$acl_save_prefix"
  12202. if test "X$x" = "X-L$found_dir"; then
  12203. haveit=yes
  12204. break
  12205. fi
  12206. done
  12207. if test -z "$haveit"; then
  12208. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12209. fi
  12210. if test "$acl_hardcode_minus_L" != no; then
  12211. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12212. else
  12213. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12214. fi
  12215. fi
  12216. fi
  12217. fi
  12218. else
  12219. if test "X$found_a" != "X"; then
  12220. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12221. else
  12222. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12223. fi
  12224. fi
  12225. additional_includedir=
  12226. case "$found_dir" in
  12227. */$acl_libdirstem | */$acl_libdirstem/)
  12228. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12229. LIBICONV_PREFIX="$basedir"
  12230. additional_includedir="$basedir/include"
  12231. ;;
  12232. esac
  12233. if test "X$additional_includedir" != "X"; then
  12234. if test "X$additional_includedir" != "X/usr/include"; then
  12235. haveit=
  12236. if test "X$additional_includedir" = "X/usr/local/include"; then
  12237. if test -n "$GCC"; then
  12238. case $host_os in
  12239. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12240. esac
  12241. fi
  12242. fi
  12243. if test -z "$haveit"; then
  12244. for x in $CPPFLAGS $INCICONV; do
  12245. acl_save_prefix="$prefix"
  12246. prefix="$acl_final_prefix"
  12247. acl_save_exec_prefix="$exec_prefix"
  12248. exec_prefix="$acl_final_exec_prefix"
  12249. eval x=\"$x\"
  12250. exec_prefix="$acl_save_exec_prefix"
  12251. prefix="$acl_save_prefix"
  12252. if test "X$x" = "X-I$additional_includedir"; then
  12253. haveit=yes
  12254. break
  12255. fi
  12256. done
  12257. if test -z "$haveit"; then
  12258. if test -d "$additional_includedir"; then
  12259. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12260. fi
  12261. fi
  12262. fi
  12263. fi
  12264. fi
  12265. if test -n "$found_la"; then
  12266. save_libdir="$libdir"
  12267. case "$found_la" in
  12268. */* | *\\*) . "$found_la" ;;
  12269. *) . "./$found_la" ;;
  12270. esac
  12271. libdir="$save_libdir"
  12272. for dep in $dependency_libs; do
  12273. case "$dep" in
  12274. -L*)
  12275. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12276. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12277. haveit=
  12278. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12279. if test -n "$GCC"; then
  12280. case $host_os in
  12281. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12282. esac
  12283. fi
  12284. fi
  12285. if test -z "$haveit"; then
  12286. haveit=
  12287. for x in $LDFLAGS $LIBICONV; do
  12288. acl_save_prefix="$prefix"
  12289. prefix="$acl_final_prefix"
  12290. acl_save_exec_prefix="$exec_prefix"
  12291. exec_prefix="$acl_final_exec_prefix"
  12292. eval x=\"$x\"
  12293. exec_prefix="$acl_save_exec_prefix"
  12294. prefix="$acl_save_prefix"
  12295. if test "X$x" = "X-L$additional_libdir"; then
  12296. haveit=yes
  12297. break
  12298. fi
  12299. done
  12300. if test -z "$haveit"; then
  12301. if test -d "$additional_libdir"; then
  12302. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12303. fi
  12304. fi
  12305. haveit=
  12306. for x in $LDFLAGS $LTLIBICONV; do
  12307. acl_save_prefix="$prefix"
  12308. prefix="$acl_final_prefix"
  12309. acl_save_exec_prefix="$exec_prefix"
  12310. exec_prefix="$acl_final_exec_prefix"
  12311. eval x=\"$x\"
  12312. exec_prefix="$acl_save_exec_prefix"
  12313. prefix="$acl_save_prefix"
  12314. if test "X$x" = "X-L$additional_libdir"; then
  12315. haveit=yes
  12316. break
  12317. fi
  12318. done
  12319. if test -z "$haveit"; then
  12320. if test -d "$additional_libdir"; then
  12321. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12322. fi
  12323. fi
  12324. fi
  12325. fi
  12326. ;;
  12327. -R*)
  12328. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12329. if test "$enable_rpath" != no; then
  12330. haveit=
  12331. for x in $rpathdirs; do
  12332. if test "X$x" = "X$dir"; then
  12333. haveit=yes
  12334. break
  12335. fi
  12336. done
  12337. if test -z "$haveit"; then
  12338. rpathdirs="$rpathdirs $dir"
  12339. fi
  12340. haveit=
  12341. for x in $ltrpathdirs; do
  12342. if test "X$x" = "X$dir"; then
  12343. haveit=yes
  12344. break
  12345. fi
  12346. done
  12347. if test -z "$haveit"; then
  12348. ltrpathdirs="$ltrpathdirs $dir"
  12349. fi
  12350. fi
  12351. ;;
  12352. -l*)
  12353. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12354. ;;
  12355. *.la)
  12356. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12357. ;;
  12358. *)
  12359. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12360. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12361. ;;
  12362. esac
  12363. done
  12364. fi
  12365. else
  12366. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12367. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12368. fi
  12369. fi
  12370. fi
  12371. done
  12372. done
  12373. if test "X$rpathdirs" != "X"; then
  12374. if test -n "$acl_hardcode_libdir_separator"; then
  12375. alldirs=
  12376. for found_dir in $rpathdirs; do
  12377. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12378. done
  12379. acl_save_libdir="$libdir"
  12380. libdir="$alldirs"
  12381. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12382. libdir="$acl_save_libdir"
  12383. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12384. else
  12385. for found_dir in $rpathdirs; do
  12386. acl_save_libdir="$libdir"
  12387. libdir="$found_dir"
  12388. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12389. libdir="$acl_save_libdir"
  12390. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12391. done
  12392. fi
  12393. fi
  12394. if test "X$ltrpathdirs" != "X"; then
  12395. for found_dir in $ltrpathdirs; do
  12396. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12397. done
  12398. fi
  12399. cat >conftest.$ac_ext <<_ACEOF
  12400. /* confdefs.h. */
  12401. _ACEOF
  12402. cat confdefs.h >>conftest.$ac_ext
  12403. cat >>conftest.$ac_ext <<_ACEOF
  12404. /* end confdefs.h. */
  12405. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12406. int
  12407. main ()
  12408. {
  12409. ;
  12410. return 0;
  12411. }
  12412. _ACEOF
  12413. rm -f conftest.$ac_objext conftest$ac_exeext
  12414. if { (ac_try="$ac_link"
  12415. case "(($ac_try" in
  12416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12417. *) ac_try_echo=$ac_try;;
  12418. esac
  12419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12420. (eval "$ac_link") 2>conftest.er1
  12421. ac_status=$?
  12422. grep -v '^ *+' conftest.er1 >conftest.err
  12423. rm -f conftest.er1
  12424. cat conftest.err >&5
  12425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12426. (exit $ac_status); } && {
  12427. test -z "$ac_cxx_werror_flag" ||
  12428. test ! -s conftest.err
  12429. } && test -s conftest$ac_exeext &&
  12430. $as_test_x conftest$ac_exeext; then
  12431. cat >>confdefs.h <<\_ACEOF
  12432. #define HAVE_BUILTIN_EXPECT 1
  12433. _ACEOF
  12434. else
  12435. echo "$as_me: failed program was:" >&5
  12436. sed 's/^/| /' conftest.$ac_ext >&5
  12437. fi
  12438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12439. conftest$ac_exeext conftest.$ac_ext
  12440. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12441. do
  12442. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12443. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12444. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12445. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12446. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12447. echo $ECHO_N "(cached) $ECHO_C" >&6
  12448. fi
  12449. ac_res=`eval echo '${'$as_ac_Header'}'`
  12450. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12451. echo "${ECHO_T}$ac_res" >&6; }
  12452. else
  12453. # Is the header compilable?
  12454. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12455. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12456. cat >conftest.$ac_ext <<_ACEOF
  12457. /* confdefs.h. */
  12458. _ACEOF
  12459. cat confdefs.h >>conftest.$ac_ext
  12460. cat >>conftest.$ac_ext <<_ACEOF
  12461. /* end confdefs.h. */
  12462. $ac_includes_default
  12463. #include <$ac_header>
  12464. _ACEOF
  12465. rm -f conftest.$ac_objext
  12466. if { (ac_try="$ac_compile"
  12467. case "(($ac_try" in
  12468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12469. *) ac_try_echo=$ac_try;;
  12470. esac
  12471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12472. (eval "$ac_compile") 2>conftest.er1
  12473. ac_status=$?
  12474. grep -v '^ *+' conftest.er1 >conftest.err
  12475. rm -f conftest.er1
  12476. cat conftest.err >&5
  12477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12478. (exit $ac_status); } && {
  12479. test -z "$ac_cxx_werror_flag" ||
  12480. test ! -s conftest.err
  12481. } && test -s conftest.$ac_objext; then
  12482. ac_header_compiler=yes
  12483. else
  12484. echo "$as_me: failed program was:" >&5
  12485. sed 's/^/| /' conftest.$ac_ext >&5
  12486. ac_header_compiler=no
  12487. fi
  12488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12489. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12490. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12491. # Is the header present?
  12492. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12493. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12494. cat >conftest.$ac_ext <<_ACEOF
  12495. /* confdefs.h. */
  12496. _ACEOF
  12497. cat confdefs.h >>conftest.$ac_ext
  12498. cat >>conftest.$ac_ext <<_ACEOF
  12499. /* end confdefs.h. */
  12500. #include <$ac_header>
  12501. _ACEOF
  12502. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12503. case "(($ac_try" in
  12504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12505. *) ac_try_echo=$ac_try;;
  12506. esac
  12507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12509. ac_status=$?
  12510. grep -v '^ *+' conftest.er1 >conftest.err
  12511. rm -f conftest.er1
  12512. cat conftest.err >&5
  12513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12514. (exit $ac_status); } >/dev/null && {
  12515. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12516. test ! -s conftest.err
  12517. }; then
  12518. ac_header_preproc=yes
  12519. else
  12520. echo "$as_me: failed program was:" >&5
  12521. sed 's/^/| /' conftest.$ac_ext >&5
  12522. ac_header_preproc=no
  12523. fi
  12524. rm -f conftest.err conftest.$ac_ext
  12525. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12526. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12527. # So? What about this header?
  12528. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12529. yes:no: )
  12530. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12531. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12532. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12533. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12534. ac_header_preproc=yes
  12535. ;;
  12536. no:yes:* )
  12537. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12538. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12539. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12540. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12541. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12542. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12543. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12544. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12545. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12546. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12547. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12548. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12549. ( cat <<\_ASBOX
  12550. ## ----------------------------------------------- ##
  12551. ## Report this to t-tujikawa@users.sourceforge.net ##
  12552. ## ----------------------------------------------- ##
  12553. _ASBOX
  12554. ) | sed "s/^/$as_me: WARNING: /" >&2
  12555. ;;
  12556. esac
  12557. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12558. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12559. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12560. echo $ECHO_N "(cached) $ECHO_C" >&6
  12561. else
  12562. eval "$as_ac_Header=\$ac_header_preproc"
  12563. fi
  12564. ac_res=`eval echo '${'$as_ac_Header'}'`
  12565. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12566. echo "${ECHO_T}$ac_res" >&6; }
  12567. fi
  12568. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12569. cat >>confdefs.h <<_ACEOF
  12570. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12571. _ACEOF
  12572. fi
  12573. done
  12574. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12575. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12576. argz_next __fsetlocking
  12577. do
  12578. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12579. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12580. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12581. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12582. echo $ECHO_N "(cached) $ECHO_C" >&6
  12583. else
  12584. cat >conftest.$ac_ext <<_ACEOF
  12585. /* confdefs.h. */
  12586. _ACEOF
  12587. cat confdefs.h >>conftest.$ac_ext
  12588. cat >>conftest.$ac_ext <<_ACEOF
  12589. /* end confdefs.h. */
  12590. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12591. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12592. #define $ac_func innocuous_$ac_func
  12593. /* System header to define __stub macros and hopefully few prototypes,
  12594. which can conflict with char $ac_func (); below.
  12595. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12596. <limits.h> exists even on freestanding compilers. */
  12597. #ifdef __STDC__
  12598. # include <limits.h>
  12599. #else
  12600. # include <assert.h>
  12601. #endif
  12602. #undef $ac_func
  12603. /* Override any GCC internal prototype to avoid an error.
  12604. Use char because int might match the return type of a GCC
  12605. builtin and then its argument prototype would still apply. */
  12606. #ifdef __cplusplus
  12607. extern "C"
  12608. #endif
  12609. char $ac_func ();
  12610. /* The GNU C library defines this for functions which it implements
  12611. to always fail with ENOSYS. Some functions are actually named
  12612. something starting with __ and the normal name is an alias. */
  12613. #if defined __stub_$ac_func || defined __stub___$ac_func
  12614. choke me
  12615. #endif
  12616. int
  12617. main ()
  12618. {
  12619. return $ac_func ();
  12620. ;
  12621. return 0;
  12622. }
  12623. _ACEOF
  12624. rm -f conftest.$ac_objext conftest$ac_exeext
  12625. if { (ac_try="$ac_link"
  12626. case "(($ac_try" in
  12627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12628. *) ac_try_echo=$ac_try;;
  12629. esac
  12630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12631. (eval "$ac_link") 2>conftest.er1
  12632. ac_status=$?
  12633. grep -v '^ *+' conftest.er1 >conftest.err
  12634. rm -f conftest.er1
  12635. cat conftest.err >&5
  12636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12637. (exit $ac_status); } && {
  12638. test -z "$ac_cxx_werror_flag" ||
  12639. test ! -s conftest.err
  12640. } && test -s conftest$ac_exeext &&
  12641. $as_test_x conftest$ac_exeext; then
  12642. eval "$as_ac_var=yes"
  12643. else
  12644. echo "$as_me: failed program was:" >&5
  12645. sed 's/^/| /' conftest.$ac_ext >&5
  12646. eval "$as_ac_var=no"
  12647. fi
  12648. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12649. conftest$ac_exeext conftest.$ac_ext
  12650. fi
  12651. ac_res=`eval echo '${'$as_ac_var'}'`
  12652. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12653. echo "${ECHO_T}$ac_res" >&6; }
  12654. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12655. cat >>confdefs.h <<_ACEOF
  12656. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12657. _ACEOF
  12658. fi
  12659. done
  12660. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12661. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12662. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12663. echo $ECHO_N "(cached) $ECHO_C" >&6
  12664. else
  12665. cat >conftest.$ac_ext <<_ACEOF
  12666. /* confdefs.h. */
  12667. _ACEOF
  12668. cat confdefs.h >>conftest.$ac_ext
  12669. cat >>conftest.$ac_ext <<_ACEOF
  12670. /* end confdefs.h. */
  12671. #include <stdio.h>
  12672. int
  12673. main ()
  12674. {
  12675. #ifndef feof_unlocked
  12676. char *p = (char *) feof_unlocked;
  12677. #endif
  12678. ;
  12679. return 0;
  12680. }
  12681. _ACEOF
  12682. rm -f conftest.$ac_objext
  12683. if { (ac_try="$ac_compile"
  12684. case "(($ac_try" in
  12685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12686. *) ac_try_echo=$ac_try;;
  12687. esac
  12688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12689. (eval "$ac_compile") 2>conftest.er1
  12690. ac_status=$?
  12691. grep -v '^ *+' conftest.er1 >conftest.err
  12692. rm -f conftest.er1
  12693. cat conftest.err >&5
  12694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12695. (exit $ac_status); } && {
  12696. test -z "$ac_cxx_werror_flag" ||
  12697. test ! -s conftest.err
  12698. } && test -s conftest.$ac_objext; then
  12699. ac_cv_have_decl_feof_unlocked=yes
  12700. else
  12701. echo "$as_me: failed program was:" >&5
  12702. sed 's/^/| /' conftest.$ac_ext >&5
  12703. ac_cv_have_decl_feof_unlocked=no
  12704. fi
  12705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12706. fi
  12707. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12708. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12709. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12710. gt_value=1
  12711. else
  12712. gt_value=0
  12713. fi
  12714. cat >>confdefs.h <<_ACEOF
  12715. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12716. _ACEOF
  12717. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12718. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12719. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12720. echo $ECHO_N "(cached) $ECHO_C" >&6
  12721. else
  12722. cat >conftest.$ac_ext <<_ACEOF
  12723. /* confdefs.h. */
  12724. _ACEOF
  12725. cat confdefs.h >>conftest.$ac_ext
  12726. cat >>conftest.$ac_ext <<_ACEOF
  12727. /* end confdefs.h. */
  12728. #include <stdio.h>
  12729. int
  12730. main ()
  12731. {
  12732. #ifndef fgets_unlocked
  12733. char *p = (char *) fgets_unlocked;
  12734. #endif
  12735. ;
  12736. return 0;
  12737. }
  12738. _ACEOF
  12739. rm -f conftest.$ac_objext
  12740. if { (ac_try="$ac_compile"
  12741. case "(($ac_try" in
  12742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12743. *) ac_try_echo=$ac_try;;
  12744. esac
  12745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12746. (eval "$ac_compile") 2>conftest.er1
  12747. ac_status=$?
  12748. grep -v '^ *+' conftest.er1 >conftest.err
  12749. rm -f conftest.er1
  12750. cat conftest.err >&5
  12751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12752. (exit $ac_status); } && {
  12753. test -z "$ac_cxx_werror_flag" ||
  12754. test ! -s conftest.err
  12755. } && test -s conftest.$ac_objext; then
  12756. ac_cv_have_decl_fgets_unlocked=yes
  12757. else
  12758. echo "$as_me: failed program was:" >&5
  12759. sed 's/^/| /' conftest.$ac_ext >&5
  12760. ac_cv_have_decl_fgets_unlocked=no
  12761. fi
  12762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12763. fi
  12764. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12765. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12766. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12767. gt_value=1
  12768. else
  12769. gt_value=0
  12770. fi
  12771. cat >>confdefs.h <<_ACEOF
  12772. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12773. _ACEOF
  12774. am_save_CPPFLAGS="$CPPFLAGS"
  12775. for element in $INCICONV; do
  12776. haveit=
  12777. for x in $CPPFLAGS; do
  12778. acl_save_prefix="$prefix"
  12779. prefix="$acl_final_prefix"
  12780. acl_save_exec_prefix="$exec_prefix"
  12781. exec_prefix="$acl_final_exec_prefix"
  12782. eval x=\"$x\"
  12783. exec_prefix="$acl_save_exec_prefix"
  12784. prefix="$acl_save_prefix"
  12785. if test "X$x" = "X$element"; then
  12786. haveit=yes
  12787. break
  12788. fi
  12789. done
  12790. if test -z "$haveit"; then
  12791. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12792. fi
  12793. done
  12794. { echo "$as_me:$LINENO: checking for iconv" >&5
  12795. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12796. if test "${am_cv_func_iconv+set}" = set; then
  12797. echo $ECHO_N "(cached) $ECHO_C" >&6
  12798. else
  12799. am_cv_func_iconv="no, consider installing GNU libiconv"
  12800. am_cv_lib_iconv=no
  12801. cat >conftest.$ac_ext <<_ACEOF
  12802. /* confdefs.h. */
  12803. _ACEOF
  12804. cat confdefs.h >>conftest.$ac_ext
  12805. cat >>conftest.$ac_ext <<_ACEOF
  12806. /* end confdefs.h. */
  12807. #include <stdlib.h>
  12808. #include <iconv.h>
  12809. int
  12810. main ()
  12811. {
  12812. iconv_t cd = iconv_open("","");
  12813. iconv(cd,NULL,NULL,NULL,NULL);
  12814. iconv_close(cd);
  12815. ;
  12816. return 0;
  12817. }
  12818. _ACEOF
  12819. rm -f conftest.$ac_objext conftest$ac_exeext
  12820. if { (ac_try="$ac_link"
  12821. case "(($ac_try" in
  12822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12823. *) ac_try_echo=$ac_try;;
  12824. esac
  12825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12826. (eval "$ac_link") 2>conftest.er1
  12827. ac_status=$?
  12828. grep -v '^ *+' conftest.er1 >conftest.err
  12829. rm -f conftest.er1
  12830. cat conftest.err >&5
  12831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12832. (exit $ac_status); } && {
  12833. test -z "$ac_cxx_werror_flag" ||
  12834. test ! -s conftest.err
  12835. } && test -s conftest$ac_exeext &&
  12836. $as_test_x conftest$ac_exeext; then
  12837. am_cv_func_iconv=yes
  12838. else
  12839. echo "$as_me: failed program was:" >&5
  12840. sed 's/^/| /' conftest.$ac_ext >&5
  12841. fi
  12842. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12843. conftest$ac_exeext conftest.$ac_ext
  12844. if test "$am_cv_func_iconv" != yes; then
  12845. am_save_LIBS="$LIBS"
  12846. LIBS="$LIBS $LIBICONV"
  12847. cat >conftest.$ac_ext <<_ACEOF
  12848. /* confdefs.h. */
  12849. _ACEOF
  12850. cat confdefs.h >>conftest.$ac_ext
  12851. cat >>conftest.$ac_ext <<_ACEOF
  12852. /* end confdefs.h. */
  12853. #include <stdlib.h>
  12854. #include <iconv.h>
  12855. int
  12856. main ()
  12857. {
  12858. iconv_t cd = iconv_open("","");
  12859. iconv(cd,NULL,NULL,NULL,NULL);
  12860. iconv_close(cd);
  12861. ;
  12862. return 0;
  12863. }
  12864. _ACEOF
  12865. rm -f conftest.$ac_objext conftest$ac_exeext
  12866. if { (ac_try="$ac_link"
  12867. case "(($ac_try" in
  12868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12869. *) ac_try_echo=$ac_try;;
  12870. esac
  12871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12872. (eval "$ac_link") 2>conftest.er1
  12873. ac_status=$?
  12874. grep -v '^ *+' conftest.er1 >conftest.err
  12875. rm -f conftest.er1
  12876. cat conftest.err >&5
  12877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12878. (exit $ac_status); } && {
  12879. test -z "$ac_cxx_werror_flag" ||
  12880. test ! -s conftest.err
  12881. } && test -s conftest$ac_exeext &&
  12882. $as_test_x conftest$ac_exeext; then
  12883. am_cv_lib_iconv=yes
  12884. am_cv_func_iconv=yes
  12885. else
  12886. echo "$as_me: failed program was:" >&5
  12887. sed 's/^/| /' conftest.$ac_ext >&5
  12888. fi
  12889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12890. conftest$ac_exeext conftest.$ac_ext
  12891. LIBS="$am_save_LIBS"
  12892. fi
  12893. fi
  12894. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12895. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12896. if test "$am_cv_func_iconv" = yes; then
  12897. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12898. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12899. if test "${am_cv_func_iconv_works+set}" = set; then
  12900. echo $ECHO_N "(cached) $ECHO_C" >&6
  12901. else
  12902. am_save_LIBS="$LIBS"
  12903. if test $am_cv_lib_iconv = yes; then
  12904. LIBS="$LIBS $LIBICONV"
  12905. fi
  12906. if test "$cross_compiling" = yes; then
  12907. case "$host_os" in
  12908. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12909. *) am_cv_func_iconv_works="guessing yes" ;;
  12910. esac
  12911. else
  12912. cat >conftest.$ac_ext <<_ACEOF
  12913. /* confdefs.h. */
  12914. _ACEOF
  12915. cat confdefs.h >>conftest.$ac_ext
  12916. cat >>conftest.$ac_ext <<_ACEOF
  12917. /* end confdefs.h. */
  12918. #include <iconv.h>
  12919. #include <string.h>
  12920. int main ()
  12921. {
  12922. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12923. returns. */
  12924. {
  12925. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12926. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12927. {
  12928. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12929. char buf[10];
  12930. const char *inptr = input;
  12931. size_t inbytesleft = strlen (input);
  12932. char *outptr = buf;
  12933. size_t outbytesleft = sizeof (buf);
  12934. size_t res = iconv (cd_utf8_to_88591,
  12935. (char **) &inptr, &inbytesleft,
  12936. &outptr, &outbytesleft);
  12937. if (res == 0)
  12938. return 1;
  12939. }
  12940. }
  12941. #if 0 /* This bug could be worked around by the caller. */
  12942. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12943. {
  12944. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12945. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12946. {
  12947. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12948. char buf[50];
  12949. const char *inptr = input;
  12950. size_t inbytesleft = strlen (input);
  12951. char *outptr = buf;
  12952. size_t outbytesleft = sizeof (buf);
  12953. size_t res = iconv (cd_88591_to_utf8,
  12954. (char **) &inptr, &inbytesleft,
  12955. &outptr, &outbytesleft);
  12956. if ((int)res > 0)
  12957. return 1;
  12958. }
  12959. }
  12960. #endif
  12961. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12962. provided. */
  12963. if (/* Try standardized names. */
  12964. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12965. /* Try IRIX, OSF/1 names. */
  12966. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12967. /* Try AIX names. */
  12968. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12969. /* Try HP-UX names. */
  12970. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12971. return 1;
  12972. return 0;
  12973. }
  12974. _ACEOF
  12975. rm -f conftest$ac_exeext
  12976. if { (ac_try="$ac_link"
  12977. case "(($ac_try" in
  12978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12979. *) ac_try_echo=$ac_try;;
  12980. esac
  12981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12982. (eval "$ac_link") 2>&5
  12983. ac_status=$?
  12984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12985. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12986. { (case "(($ac_try" in
  12987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12988. *) ac_try_echo=$ac_try;;
  12989. esac
  12990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12991. (eval "$ac_try") 2>&5
  12992. ac_status=$?
  12993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12994. (exit $ac_status); }; }; then
  12995. am_cv_func_iconv_works=yes
  12996. else
  12997. echo "$as_me: program exited with status $ac_status" >&5
  12998. echo "$as_me: failed program was:" >&5
  12999. sed 's/^/| /' conftest.$ac_ext >&5
  13000. ( exit $ac_status )
  13001. am_cv_func_iconv_works=no
  13002. fi
  13003. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13004. fi
  13005. LIBS="$am_save_LIBS"
  13006. fi
  13007. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13008. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13009. case "$am_cv_func_iconv_works" in
  13010. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13011. *) am_func_iconv=yes ;;
  13012. esac
  13013. else
  13014. am_func_iconv=no am_cv_lib_iconv=no
  13015. fi
  13016. if test "$am_func_iconv" = yes; then
  13017. cat >>confdefs.h <<\_ACEOF
  13018. #define HAVE_ICONV 1
  13019. _ACEOF
  13020. fi
  13021. if test "$am_cv_lib_iconv" = yes; then
  13022. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13023. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13024. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13025. echo "${ECHO_T}$LIBICONV" >&6; }
  13026. else
  13027. CPPFLAGS="$am_save_CPPFLAGS"
  13028. LIBICONV=
  13029. LTLIBICONV=
  13030. fi
  13031. if test "$am_cv_func_iconv" = yes; then
  13032. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13033. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13034. if test "${am_cv_proto_iconv+set}" = set; then
  13035. echo $ECHO_N "(cached) $ECHO_C" >&6
  13036. else
  13037. cat >conftest.$ac_ext <<_ACEOF
  13038. /* confdefs.h. */
  13039. _ACEOF
  13040. cat confdefs.h >>conftest.$ac_ext
  13041. cat >>conftest.$ac_ext <<_ACEOF
  13042. /* end confdefs.h. */
  13043. #include <stdlib.h>
  13044. #include <iconv.h>
  13045. extern
  13046. #ifdef __cplusplus
  13047. "C"
  13048. #endif
  13049. #if defined(__STDC__) || defined(__cplusplus)
  13050. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13051. #else
  13052. size_t iconv();
  13053. #endif
  13054. int
  13055. main ()
  13056. {
  13057. ;
  13058. return 0;
  13059. }
  13060. _ACEOF
  13061. rm -f conftest.$ac_objext
  13062. if { (ac_try="$ac_compile"
  13063. case "(($ac_try" in
  13064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13065. *) ac_try_echo=$ac_try;;
  13066. esac
  13067. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13068. (eval "$ac_compile") 2>conftest.er1
  13069. ac_status=$?
  13070. grep -v '^ *+' conftest.er1 >conftest.err
  13071. rm -f conftest.er1
  13072. cat conftest.err >&5
  13073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13074. (exit $ac_status); } && {
  13075. test -z "$ac_cxx_werror_flag" ||
  13076. test ! -s conftest.err
  13077. } && test -s conftest.$ac_objext; then
  13078. am_cv_proto_iconv_arg1=""
  13079. else
  13080. echo "$as_me: failed program was:" >&5
  13081. sed 's/^/| /' conftest.$ac_ext >&5
  13082. am_cv_proto_iconv_arg1="const"
  13083. fi
  13084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13085. 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);"
  13086. fi
  13087. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13088. { echo "$as_me:$LINENO: result: ${ac_t:-
  13089. }$am_cv_proto_iconv" >&5
  13090. echo "${ECHO_T}${ac_t:-
  13091. }$am_cv_proto_iconv" >&6; }
  13092. cat >>confdefs.h <<_ACEOF
  13093. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13094. _ACEOF
  13095. fi
  13096. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13097. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13098. if test "${gt_cv_nl_locale_name+set}" = set; then
  13099. echo $ECHO_N "(cached) $ECHO_C" >&6
  13100. else
  13101. cat >conftest.$ac_ext <<_ACEOF
  13102. /* confdefs.h. */
  13103. _ACEOF
  13104. cat confdefs.h >>conftest.$ac_ext
  13105. cat >>conftest.$ac_ext <<_ACEOF
  13106. /* end confdefs.h. */
  13107. #include <langinfo.h>
  13108. #include <locale.h>
  13109. int
  13110. main ()
  13111. {
  13112. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13113. return !cs;
  13114. ;
  13115. return 0;
  13116. }
  13117. _ACEOF
  13118. rm -f conftest.$ac_objext conftest$ac_exeext
  13119. if { (ac_try="$ac_link"
  13120. case "(($ac_try" in
  13121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13122. *) ac_try_echo=$ac_try;;
  13123. esac
  13124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13125. (eval "$ac_link") 2>conftest.er1
  13126. ac_status=$?
  13127. grep -v '^ *+' conftest.er1 >conftest.err
  13128. rm -f conftest.er1
  13129. cat conftest.err >&5
  13130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13131. (exit $ac_status); } && {
  13132. test -z "$ac_cxx_werror_flag" ||
  13133. test ! -s conftest.err
  13134. } && test -s conftest$ac_exeext &&
  13135. $as_test_x conftest$ac_exeext; then
  13136. gt_cv_nl_locale_name=yes
  13137. else
  13138. echo "$as_me: failed program was:" >&5
  13139. sed 's/^/| /' conftest.$ac_ext >&5
  13140. gt_cv_nl_locale_name=no
  13141. fi
  13142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13143. conftest$ac_exeext conftest.$ac_ext
  13144. fi
  13145. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13146. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13147. if test $gt_cv_nl_locale_name = yes; then
  13148. cat >>confdefs.h <<\_ACEOF
  13149. #define HAVE_NL_LOCALE_NAME 1
  13150. _ACEOF
  13151. fi
  13152. for ac_prog in bison
  13153. do
  13154. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13155. set dummy $ac_prog; ac_word=$2
  13156. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13157. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13158. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13159. echo $ECHO_N "(cached) $ECHO_C" >&6
  13160. else
  13161. if test -n "$INTLBISON"; then
  13162. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13163. else
  13164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13165. for as_dir in $PATH
  13166. do
  13167. IFS=$as_save_IFS
  13168. test -z "$as_dir" && as_dir=.
  13169. for ac_exec_ext in '' $ac_executable_extensions; do
  13170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13171. ac_cv_prog_INTLBISON="$ac_prog"
  13172. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13173. break 2
  13174. fi
  13175. done
  13176. done
  13177. IFS=$as_save_IFS
  13178. fi
  13179. fi
  13180. INTLBISON=$ac_cv_prog_INTLBISON
  13181. if test -n "$INTLBISON"; then
  13182. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13183. echo "${ECHO_T}$INTLBISON" >&6; }
  13184. else
  13185. { echo "$as_me:$LINENO: result: no" >&5
  13186. echo "${ECHO_T}no" >&6; }
  13187. fi
  13188. test -n "$INTLBISON" && break
  13189. done
  13190. if test -z "$INTLBISON"; then
  13191. ac_verc_fail=yes
  13192. else
  13193. { echo "$as_me:$LINENO: checking version of bison" >&5
  13194. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13195. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13196. case $ac_prog_version in
  13197. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13198. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13199. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13200. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13201. esac
  13202. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13203. echo "${ECHO_T}$ac_prog_version" >&6; }
  13204. fi
  13205. if test $ac_verc_fail = yes; then
  13206. INTLBISON=:
  13207. fi
  13208. { echo "$as_me:$LINENO: checking for long long int" >&5
  13209. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13210. if test "${ac_cv_type_long_long_int+set}" = set; then
  13211. echo $ECHO_N "(cached) $ECHO_C" >&6
  13212. else
  13213. cat >conftest.$ac_ext <<_ACEOF
  13214. /* confdefs.h. */
  13215. _ACEOF
  13216. cat confdefs.h >>conftest.$ac_ext
  13217. cat >>conftest.$ac_ext <<_ACEOF
  13218. /* end confdefs.h. */
  13219. /* Test preprocessor. */
  13220. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13221. error in preprocessor;
  13222. #endif
  13223. #if ! (18446744073709551615ULL <= -1ull)
  13224. error in preprocessor;
  13225. #endif
  13226. /* Test literals. */
  13227. long long int ll = 9223372036854775807ll;
  13228. long long int nll = -9223372036854775807LL;
  13229. unsigned long long int ull = 18446744073709551615ULL;
  13230. /* Test constant expressions. */
  13231. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13232. ? 1 : -1)];
  13233. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13234. ? 1 : -1)];
  13235. int i = 63;
  13236. int
  13237. main ()
  13238. {
  13239. /* Test availability of runtime routines for shift and division. */
  13240. long long int llmax = 9223372036854775807ll;
  13241. unsigned long long int ullmax = 18446744073709551615ull;
  13242. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13243. | (llmax / ll) | (llmax % ll)
  13244. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13245. | (ullmax / ull) | (ullmax % ull));
  13246. ;
  13247. return 0;
  13248. }
  13249. _ACEOF
  13250. rm -f conftest.$ac_objext conftest$ac_exeext
  13251. if { (ac_try="$ac_link"
  13252. case "(($ac_try" in
  13253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13254. *) ac_try_echo=$ac_try;;
  13255. esac
  13256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13257. (eval "$ac_link") 2>conftest.er1
  13258. ac_status=$?
  13259. grep -v '^ *+' conftest.er1 >conftest.err
  13260. rm -f conftest.er1
  13261. cat conftest.err >&5
  13262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13263. (exit $ac_status); } && {
  13264. test -z "$ac_cxx_werror_flag" ||
  13265. test ! -s conftest.err
  13266. } && test -s conftest$ac_exeext &&
  13267. $as_test_x conftest$ac_exeext; then
  13268. if test "$cross_compiling" = yes; then
  13269. ac_cv_type_long_long_int=yes
  13270. else
  13271. cat >conftest.$ac_ext <<_ACEOF
  13272. /* confdefs.h. */
  13273. _ACEOF
  13274. cat confdefs.h >>conftest.$ac_ext
  13275. cat >>conftest.$ac_ext <<_ACEOF
  13276. /* end confdefs.h. */
  13277. #include <limits.h>
  13278. #ifndef LLONG_MAX
  13279. # define HALF \
  13280. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13281. # define LLONG_MAX (HALF - 1 + HALF)
  13282. #endif
  13283. int
  13284. main ()
  13285. {
  13286. long long int n = 1;
  13287. int i;
  13288. for (i = 0; ; i++)
  13289. {
  13290. long long int m = n << i;
  13291. if (m >> i != n)
  13292. return 1;
  13293. if (LLONG_MAX / 2 < m)
  13294. break;
  13295. }
  13296. return 0;
  13297. ;
  13298. return 0;
  13299. }
  13300. _ACEOF
  13301. rm -f conftest$ac_exeext
  13302. if { (ac_try="$ac_link"
  13303. case "(($ac_try" in
  13304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13305. *) ac_try_echo=$ac_try;;
  13306. esac
  13307. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13308. (eval "$ac_link") 2>&5
  13309. ac_status=$?
  13310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13311. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13312. { (case "(($ac_try" in
  13313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13314. *) ac_try_echo=$ac_try;;
  13315. esac
  13316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13317. (eval "$ac_try") 2>&5
  13318. ac_status=$?
  13319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13320. (exit $ac_status); }; }; then
  13321. ac_cv_type_long_long_int=yes
  13322. else
  13323. echo "$as_me: program exited with status $ac_status" >&5
  13324. echo "$as_me: failed program was:" >&5
  13325. sed 's/^/| /' conftest.$ac_ext >&5
  13326. ( exit $ac_status )
  13327. ac_cv_type_long_long_int=no
  13328. fi
  13329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13330. fi
  13331. else
  13332. echo "$as_me: failed program was:" >&5
  13333. sed 's/^/| /' conftest.$ac_ext >&5
  13334. ac_cv_type_long_long_int=no
  13335. fi
  13336. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13337. conftest$ac_exeext conftest.$ac_ext
  13338. fi
  13339. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13340. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13341. if test $ac_cv_type_long_long_int = yes; then
  13342. cat >>confdefs.h <<\_ACEOF
  13343. #define HAVE_LONG_LONG_INT 1
  13344. _ACEOF
  13345. fi
  13346. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13347. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13348. if test "${gt_cv_c_wchar_t+set}" = set; then
  13349. echo $ECHO_N "(cached) $ECHO_C" >&6
  13350. else
  13351. cat >conftest.$ac_ext <<_ACEOF
  13352. /* confdefs.h. */
  13353. _ACEOF
  13354. cat confdefs.h >>conftest.$ac_ext
  13355. cat >>conftest.$ac_ext <<_ACEOF
  13356. /* end confdefs.h. */
  13357. #include <stddef.h>
  13358. wchar_t foo = (wchar_t)'\0';
  13359. int
  13360. main ()
  13361. {
  13362. ;
  13363. return 0;
  13364. }
  13365. _ACEOF
  13366. rm -f conftest.$ac_objext
  13367. if { (ac_try="$ac_compile"
  13368. case "(($ac_try" in
  13369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13370. *) ac_try_echo=$ac_try;;
  13371. esac
  13372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13373. (eval "$ac_compile") 2>conftest.er1
  13374. ac_status=$?
  13375. grep -v '^ *+' conftest.er1 >conftest.err
  13376. rm -f conftest.er1
  13377. cat conftest.err >&5
  13378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13379. (exit $ac_status); } && {
  13380. test -z "$ac_cxx_werror_flag" ||
  13381. test ! -s conftest.err
  13382. } && test -s conftest.$ac_objext; then
  13383. gt_cv_c_wchar_t=yes
  13384. else
  13385. echo "$as_me: failed program was:" >&5
  13386. sed 's/^/| /' conftest.$ac_ext >&5
  13387. gt_cv_c_wchar_t=no
  13388. fi
  13389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13390. fi
  13391. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13392. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13393. if test $gt_cv_c_wchar_t = yes; then
  13394. cat >>confdefs.h <<\_ACEOF
  13395. #define HAVE_WCHAR_T 1
  13396. _ACEOF
  13397. fi
  13398. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13399. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13400. if test "${gt_cv_c_wint_t+set}" = set; then
  13401. echo $ECHO_N "(cached) $ECHO_C" >&6
  13402. else
  13403. cat >conftest.$ac_ext <<_ACEOF
  13404. /* confdefs.h. */
  13405. _ACEOF
  13406. cat confdefs.h >>conftest.$ac_ext
  13407. cat >>conftest.$ac_ext <<_ACEOF
  13408. /* end confdefs.h. */
  13409. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13410. <wchar.h>.
  13411. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13412. before <wchar.h>. */
  13413. #include <stddef.h>
  13414. #include <stdio.h>
  13415. #include <time.h>
  13416. #include <wchar.h>
  13417. wint_t foo = (wchar_t)'\0';
  13418. int
  13419. main ()
  13420. {
  13421. ;
  13422. return 0;
  13423. }
  13424. _ACEOF
  13425. rm -f conftest.$ac_objext
  13426. if { (ac_try="$ac_compile"
  13427. case "(($ac_try" in
  13428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13429. *) ac_try_echo=$ac_try;;
  13430. esac
  13431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13432. (eval "$ac_compile") 2>conftest.er1
  13433. ac_status=$?
  13434. grep -v '^ *+' conftest.er1 >conftest.err
  13435. rm -f conftest.er1
  13436. cat conftest.err >&5
  13437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13438. (exit $ac_status); } && {
  13439. test -z "$ac_cxx_werror_flag" ||
  13440. test ! -s conftest.err
  13441. } && test -s conftest.$ac_objext; then
  13442. gt_cv_c_wint_t=yes
  13443. else
  13444. echo "$as_me: failed program was:" >&5
  13445. sed 's/^/| /' conftest.$ac_ext >&5
  13446. gt_cv_c_wint_t=no
  13447. fi
  13448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13449. fi
  13450. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13451. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13452. if test $gt_cv_c_wint_t = yes; then
  13453. cat >>confdefs.h <<\_ACEOF
  13454. #define HAVE_WINT_T 1
  13455. _ACEOF
  13456. fi
  13457. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13458. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13459. if test "${gt_cv_c_intmax_t+set}" = set; then
  13460. echo $ECHO_N "(cached) $ECHO_C" >&6
  13461. else
  13462. cat >conftest.$ac_ext <<_ACEOF
  13463. /* confdefs.h. */
  13464. _ACEOF
  13465. cat confdefs.h >>conftest.$ac_ext
  13466. cat >>conftest.$ac_ext <<_ACEOF
  13467. /* end confdefs.h. */
  13468. #include <stddef.h>
  13469. #include <stdlib.h>
  13470. #if HAVE_STDINT_H_WITH_UINTMAX
  13471. #include <stdint.h>
  13472. #endif
  13473. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13474. #include <inttypes.h>
  13475. #endif
  13476. int
  13477. main ()
  13478. {
  13479. intmax_t x = -1;
  13480. return !x;
  13481. ;
  13482. return 0;
  13483. }
  13484. _ACEOF
  13485. rm -f conftest.$ac_objext
  13486. if { (ac_try="$ac_compile"
  13487. case "(($ac_try" in
  13488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13489. *) ac_try_echo=$ac_try;;
  13490. esac
  13491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13492. (eval "$ac_compile") 2>conftest.er1
  13493. ac_status=$?
  13494. grep -v '^ *+' conftest.er1 >conftest.err
  13495. rm -f conftest.er1
  13496. cat conftest.err >&5
  13497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13498. (exit $ac_status); } && {
  13499. test -z "$ac_cxx_werror_flag" ||
  13500. test ! -s conftest.err
  13501. } && test -s conftest.$ac_objext; then
  13502. gt_cv_c_intmax_t=yes
  13503. else
  13504. echo "$as_me: failed program was:" >&5
  13505. sed 's/^/| /' conftest.$ac_ext >&5
  13506. gt_cv_c_intmax_t=no
  13507. fi
  13508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13509. fi
  13510. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13511. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13512. if test $gt_cv_c_intmax_t = yes; then
  13513. cat >>confdefs.h <<\_ACEOF
  13514. #define HAVE_INTMAX_T 1
  13515. _ACEOF
  13516. fi
  13517. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13518. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13519. if test "${gt_cv_func_printf_posix+set}" = set; then
  13520. echo $ECHO_N "(cached) $ECHO_C" >&6
  13521. else
  13522. if test "$cross_compiling" = yes; then
  13523. cat >conftest.$ac_ext <<_ACEOF
  13524. /* confdefs.h. */
  13525. _ACEOF
  13526. cat confdefs.h >>conftest.$ac_ext
  13527. cat >>conftest.$ac_ext <<_ACEOF
  13528. /* end confdefs.h. */
  13529. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13530. notposix
  13531. #endif
  13532. _ACEOF
  13533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13534. $EGREP "notposix" >/dev/null 2>&1; then
  13535. gt_cv_func_printf_posix="guessing no"
  13536. else
  13537. gt_cv_func_printf_posix="guessing yes"
  13538. fi
  13539. rm -f conftest*
  13540. else
  13541. cat >conftest.$ac_ext <<_ACEOF
  13542. /* confdefs.h. */
  13543. _ACEOF
  13544. cat confdefs.h >>conftest.$ac_ext
  13545. cat >>conftest.$ac_ext <<_ACEOF
  13546. /* end confdefs.h. */
  13547. #include <stdio.h>
  13548. #include <string.h>
  13549. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13550. dollar expansion (possibly an autoconf bug). */
  13551. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13552. static char buf[100];
  13553. int main ()
  13554. {
  13555. sprintf (buf, format, 33, 55);
  13556. return (strcmp (buf, "55 33") != 0);
  13557. }
  13558. _ACEOF
  13559. rm -f conftest$ac_exeext
  13560. if { (ac_try="$ac_link"
  13561. case "(($ac_try" in
  13562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13563. *) ac_try_echo=$ac_try;;
  13564. esac
  13565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13566. (eval "$ac_link") 2>&5
  13567. ac_status=$?
  13568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13569. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13570. { (case "(($ac_try" in
  13571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13572. *) ac_try_echo=$ac_try;;
  13573. esac
  13574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13575. (eval "$ac_try") 2>&5
  13576. ac_status=$?
  13577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13578. (exit $ac_status); }; }; then
  13579. gt_cv_func_printf_posix=yes
  13580. else
  13581. echo "$as_me: program exited with status $ac_status" >&5
  13582. echo "$as_me: failed program was:" >&5
  13583. sed 's/^/| /' conftest.$ac_ext >&5
  13584. ( exit $ac_status )
  13585. gt_cv_func_printf_posix=no
  13586. fi
  13587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13588. fi
  13589. fi
  13590. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13591. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13592. case $gt_cv_func_printf_posix in
  13593. *yes)
  13594. cat >>confdefs.h <<\_ACEOF
  13595. #define HAVE_POSIX_PRINTF 1
  13596. _ACEOF
  13597. ;;
  13598. esac
  13599. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13600. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13601. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13602. echo $ECHO_N "(cached) $ECHO_C" >&6
  13603. else
  13604. cat >conftest.$ac_ext <<_ACEOF
  13605. /* confdefs.h. */
  13606. _ACEOF
  13607. cat confdefs.h >>conftest.$ac_ext
  13608. cat >>conftest.$ac_ext <<_ACEOF
  13609. /* end confdefs.h. */
  13610. #include <features.h>
  13611. #ifdef __GNU_LIBRARY__
  13612. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13613. Lucky GNU user
  13614. #endif
  13615. #endif
  13616. _ACEOF
  13617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13618. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13619. ac_cv_gnu_library_2_1=yes
  13620. else
  13621. ac_cv_gnu_library_2_1=no
  13622. fi
  13623. rm -f conftest*
  13624. fi
  13625. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13626. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13627. GLIBC21="$ac_cv_gnu_library_2_1"
  13628. for ac_header in stdint.h
  13629. do
  13630. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13631. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13632. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13633. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13634. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13635. echo $ECHO_N "(cached) $ECHO_C" >&6
  13636. fi
  13637. ac_res=`eval echo '${'$as_ac_Header'}'`
  13638. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13639. echo "${ECHO_T}$ac_res" >&6; }
  13640. else
  13641. # Is the header compilable?
  13642. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13643. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13644. cat >conftest.$ac_ext <<_ACEOF
  13645. /* confdefs.h. */
  13646. _ACEOF
  13647. cat confdefs.h >>conftest.$ac_ext
  13648. cat >>conftest.$ac_ext <<_ACEOF
  13649. /* end confdefs.h. */
  13650. $ac_includes_default
  13651. #include <$ac_header>
  13652. _ACEOF
  13653. rm -f conftest.$ac_objext
  13654. if { (ac_try="$ac_compile"
  13655. case "(($ac_try" in
  13656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13657. *) ac_try_echo=$ac_try;;
  13658. esac
  13659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13660. (eval "$ac_compile") 2>conftest.er1
  13661. ac_status=$?
  13662. grep -v '^ *+' conftest.er1 >conftest.err
  13663. rm -f conftest.er1
  13664. cat conftest.err >&5
  13665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13666. (exit $ac_status); } && {
  13667. test -z "$ac_cxx_werror_flag" ||
  13668. test ! -s conftest.err
  13669. } && test -s conftest.$ac_objext; then
  13670. ac_header_compiler=yes
  13671. else
  13672. echo "$as_me: failed program was:" >&5
  13673. sed 's/^/| /' conftest.$ac_ext >&5
  13674. ac_header_compiler=no
  13675. fi
  13676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13677. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13678. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13679. # Is the header present?
  13680. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13681. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13682. cat >conftest.$ac_ext <<_ACEOF
  13683. /* confdefs.h. */
  13684. _ACEOF
  13685. cat confdefs.h >>conftest.$ac_ext
  13686. cat >>conftest.$ac_ext <<_ACEOF
  13687. /* end confdefs.h. */
  13688. #include <$ac_header>
  13689. _ACEOF
  13690. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13691. case "(($ac_try" in
  13692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13693. *) ac_try_echo=$ac_try;;
  13694. esac
  13695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13696. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13697. ac_status=$?
  13698. grep -v '^ *+' conftest.er1 >conftest.err
  13699. rm -f conftest.er1
  13700. cat conftest.err >&5
  13701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13702. (exit $ac_status); } >/dev/null && {
  13703. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13704. test ! -s conftest.err
  13705. }; then
  13706. ac_header_preproc=yes
  13707. else
  13708. echo "$as_me: failed program was:" >&5
  13709. sed 's/^/| /' conftest.$ac_ext >&5
  13710. ac_header_preproc=no
  13711. fi
  13712. rm -f conftest.err conftest.$ac_ext
  13713. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13714. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13715. # So? What about this header?
  13716. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13717. yes:no: )
  13718. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13719. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13720. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13721. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13722. ac_header_preproc=yes
  13723. ;;
  13724. no:yes:* )
  13725. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13726. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13727. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13728. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13729. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13730. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13731. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13732. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13733. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13734. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13735. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13736. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13737. ( cat <<\_ASBOX
  13738. ## ----------------------------------------------- ##
  13739. ## Report this to t-tujikawa@users.sourceforge.net ##
  13740. ## ----------------------------------------------- ##
  13741. _ASBOX
  13742. ) | sed "s/^/$as_me: WARNING: /" >&2
  13743. ;;
  13744. esac
  13745. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13746. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13747. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13748. echo $ECHO_N "(cached) $ECHO_C" >&6
  13749. else
  13750. eval "$as_ac_Header=\$ac_header_preproc"
  13751. fi
  13752. ac_res=`eval echo '${'$as_ac_Header'}'`
  13753. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13754. echo "${ECHO_T}$ac_res" >&6; }
  13755. fi
  13756. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13757. cat >>confdefs.h <<_ACEOF
  13758. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13759. _ACEOF
  13760. fi
  13761. done
  13762. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13763. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13764. if test "${gl_cv_size_max+set}" = set; then
  13765. echo $ECHO_N "(cached) $ECHO_C" >&6
  13766. else
  13767. gl_cv_size_max=
  13768. cat >conftest.$ac_ext <<_ACEOF
  13769. /* confdefs.h. */
  13770. _ACEOF
  13771. cat confdefs.h >>conftest.$ac_ext
  13772. cat >>conftest.$ac_ext <<_ACEOF
  13773. /* end confdefs.h. */
  13774. #include <limits.h>
  13775. #if HAVE_STDINT_H
  13776. #include <stdint.h>
  13777. #endif
  13778. #ifdef SIZE_MAX
  13779. Found it
  13780. #endif
  13781. _ACEOF
  13782. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13783. $EGREP "Found it" >/dev/null 2>&1; then
  13784. gl_cv_size_max=yes
  13785. fi
  13786. rm -f conftest*
  13787. if test -z "$gl_cv_size_max"; then
  13788. if test "$cross_compiling" = yes; then
  13789. # Depending upon the size, compute the lo and hi bounds.
  13790. cat >conftest.$ac_ext <<_ACEOF
  13791. /* confdefs.h. */
  13792. _ACEOF
  13793. cat confdefs.h >>conftest.$ac_ext
  13794. cat >>conftest.$ac_ext <<_ACEOF
  13795. /* end confdefs.h. */
  13796. #include <stddef.h>
  13797. #include <limits.h>
  13798. int
  13799. main ()
  13800. {
  13801. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13802. test_array [0] = 0
  13803. ;
  13804. return 0;
  13805. }
  13806. _ACEOF
  13807. rm -f conftest.$ac_objext
  13808. if { (ac_try="$ac_compile"
  13809. case "(($ac_try" in
  13810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13811. *) ac_try_echo=$ac_try;;
  13812. esac
  13813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13814. (eval "$ac_compile") 2>conftest.er1
  13815. ac_status=$?
  13816. grep -v '^ *+' conftest.er1 >conftest.err
  13817. rm -f conftest.er1
  13818. cat conftest.err >&5
  13819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13820. (exit $ac_status); } && {
  13821. test -z "$ac_cxx_werror_flag" ||
  13822. test ! -s conftest.err
  13823. } && test -s conftest.$ac_objext; then
  13824. ac_lo=0 ac_mid=0
  13825. while :; do
  13826. cat >conftest.$ac_ext <<_ACEOF
  13827. /* confdefs.h. */
  13828. _ACEOF
  13829. cat confdefs.h >>conftest.$ac_ext
  13830. cat >>conftest.$ac_ext <<_ACEOF
  13831. /* end confdefs.h. */
  13832. #include <stddef.h>
  13833. #include <limits.h>
  13834. int
  13835. main ()
  13836. {
  13837. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13838. test_array [0] = 0
  13839. ;
  13840. return 0;
  13841. }
  13842. _ACEOF
  13843. rm -f conftest.$ac_objext
  13844. if { (ac_try="$ac_compile"
  13845. case "(($ac_try" in
  13846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13847. *) ac_try_echo=$ac_try;;
  13848. esac
  13849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13850. (eval "$ac_compile") 2>conftest.er1
  13851. ac_status=$?
  13852. grep -v '^ *+' conftest.er1 >conftest.err
  13853. rm -f conftest.er1
  13854. cat conftest.err >&5
  13855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13856. (exit $ac_status); } && {
  13857. test -z "$ac_cxx_werror_flag" ||
  13858. test ! -s conftest.err
  13859. } && test -s conftest.$ac_objext; then
  13860. ac_hi=$ac_mid; break
  13861. else
  13862. echo "$as_me: failed program was:" >&5
  13863. sed 's/^/| /' conftest.$ac_ext >&5
  13864. ac_lo=`expr $ac_mid + 1`
  13865. if test $ac_lo -le $ac_mid; then
  13866. ac_lo= ac_hi=
  13867. break
  13868. fi
  13869. ac_mid=`expr 2 '*' $ac_mid + 1`
  13870. fi
  13871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13872. done
  13873. else
  13874. echo "$as_me: failed program was:" >&5
  13875. sed 's/^/| /' conftest.$ac_ext >&5
  13876. cat >conftest.$ac_ext <<_ACEOF
  13877. /* confdefs.h. */
  13878. _ACEOF
  13879. cat confdefs.h >>conftest.$ac_ext
  13880. cat >>conftest.$ac_ext <<_ACEOF
  13881. /* end confdefs.h. */
  13882. #include <stddef.h>
  13883. #include <limits.h>
  13884. int
  13885. main ()
  13886. {
  13887. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13888. test_array [0] = 0
  13889. ;
  13890. return 0;
  13891. }
  13892. _ACEOF
  13893. rm -f conftest.$ac_objext
  13894. if { (ac_try="$ac_compile"
  13895. case "(($ac_try" in
  13896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13897. *) ac_try_echo=$ac_try;;
  13898. esac
  13899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13900. (eval "$ac_compile") 2>conftest.er1
  13901. ac_status=$?
  13902. grep -v '^ *+' conftest.er1 >conftest.err
  13903. rm -f conftest.er1
  13904. cat conftest.err >&5
  13905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13906. (exit $ac_status); } && {
  13907. test -z "$ac_cxx_werror_flag" ||
  13908. test ! -s conftest.err
  13909. } && test -s conftest.$ac_objext; then
  13910. ac_hi=-1 ac_mid=-1
  13911. while :; do
  13912. cat >conftest.$ac_ext <<_ACEOF
  13913. /* confdefs.h. */
  13914. _ACEOF
  13915. cat confdefs.h >>conftest.$ac_ext
  13916. cat >>conftest.$ac_ext <<_ACEOF
  13917. /* end confdefs.h. */
  13918. #include <stddef.h>
  13919. #include <limits.h>
  13920. int
  13921. main ()
  13922. {
  13923. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13924. test_array [0] = 0
  13925. ;
  13926. return 0;
  13927. }
  13928. _ACEOF
  13929. rm -f conftest.$ac_objext
  13930. if { (ac_try="$ac_compile"
  13931. case "(($ac_try" in
  13932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13933. *) ac_try_echo=$ac_try;;
  13934. esac
  13935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13936. (eval "$ac_compile") 2>conftest.er1
  13937. ac_status=$?
  13938. grep -v '^ *+' conftest.er1 >conftest.err
  13939. rm -f conftest.er1
  13940. cat conftest.err >&5
  13941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13942. (exit $ac_status); } && {
  13943. test -z "$ac_cxx_werror_flag" ||
  13944. test ! -s conftest.err
  13945. } && test -s conftest.$ac_objext; then
  13946. ac_lo=$ac_mid; break
  13947. else
  13948. echo "$as_me: failed program was:" >&5
  13949. sed 's/^/| /' conftest.$ac_ext >&5
  13950. ac_hi=`expr '(' $ac_mid ')' - 1`
  13951. if test $ac_mid -le $ac_hi; then
  13952. ac_lo= ac_hi=
  13953. break
  13954. fi
  13955. ac_mid=`expr 2 '*' $ac_mid`
  13956. fi
  13957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13958. done
  13959. else
  13960. echo "$as_me: failed program was:" >&5
  13961. sed 's/^/| /' conftest.$ac_ext >&5
  13962. ac_lo= ac_hi=
  13963. fi
  13964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13965. fi
  13966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13967. # Binary search between lo and hi bounds.
  13968. while test "x$ac_lo" != "x$ac_hi"; do
  13969. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13970. cat >conftest.$ac_ext <<_ACEOF
  13971. /* confdefs.h. */
  13972. _ACEOF
  13973. cat confdefs.h >>conftest.$ac_ext
  13974. cat >>conftest.$ac_ext <<_ACEOF
  13975. /* end confdefs.h. */
  13976. #include <stddef.h>
  13977. #include <limits.h>
  13978. int
  13979. main ()
  13980. {
  13981. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13982. test_array [0] = 0
  13983. ;
  13984. return 0;
  13985. }
  13986. _ACEOF
  13987. rm -f conftest.$ac_objext
  13988. if { (ac_try="$ac_compile"
  13989. case "(($ac_try" in
  13990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13991. *) ac_try_echo=$ac_try;;
  13992. esac
  13993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13994. (eval "$ac_compile") 2>conftest.er1
  13995. ac_status=$?
  13996. grep -v '^ *+' conftest.er1 >conftest.err
  13997. rm -f conftest.er1
  13998. cat conftest.err >&5
  13999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14000. (exit $ac_status); } && {
  14001. test -z "$ac_cxx_werror_flag" ||
  14002. test ! -s conftest.err
  14003. } && test -s conftest.$ac_objext; then
  14004. ac_hi=$ac_mid
  14005. else
  14006. echo "$as_me: failed program was:" >&5
  14007. sed 's/^/| /' conftest.$ac_ext >&5
  14008. ac_lo=`expr '(' $ac_mid ')' + 1`
  14009. fi
  14010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14011. done
  14012. case $ac_lo in
  14013. ?*) size_t_bits_minus_1=$ac_lo;;
  14014. '') size_t_bits_minus_1= ;;
  14015. esac
  14016. else
  14017. cat >conftest.$ac_ext <<_ACEOF
  14018. /* confdefs.h. */
  14019. _ACEOF
  14020. cat confdefs.h >>conftest.$ac_ext
  14021. cat >>conftest.$ac_ext <<_ACEOF
  14022. /* end confdefs.h. */
  14023. #include <stddef.h>
  14024. #include <limits.h>
  14025. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14026. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14027. #include <stdio.h>
  14028. #include <stdlib.h>
  14029. int
  14030. main ()
  14031. {
  14032. FILE *f = fopen ("conftest.val", "w");
  14033. if (! f)
  14034. return 1;
  14035. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14036. {
  14037. long int i = longval ();
  14038. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14039. return 1;
  14040. fprintf (f, "%ld\n", i);
  14041. }
  14042. else
  14043. {
  14044. unsigned long int i = ulongval ();
  14045. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14046. return 1;
  14047. fprintf (f, "%lu\n", i);
  14048. }
  14049. return ferror (f) || fclose (f) != 0;
  14050. ;
  14051. return 0;
  14052. }
  14053. _ACEOF
  14054. rm -f conftest$ac_exeext
  14055. if { (ac_try="$ac_link"
  14056. case "(($ac_try" in
  14057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14058. *) ac_try_echo=$ac_try;;
  14059. esac
  14060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14061. (eval "$ac_link") 2>&5
  14062. ac_status=$?
  14063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14064. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14065. { (case "(($ac_try" in
  14066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14067. *) ac_try_echo=$ac_try;;
  14068. esac
  14069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14070. (eval "$ac_try") 2>&5
  14071. ac_status=$?
  14072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14073. (exit $ac_status); }; }; then
  14074. size_t_bits_minus_1=`cat conftest.val`
  14075. else
  14076. echo "$as_me: program exited with status $ac_status" >&5
  14077. echo "$as_me: failed program was:" >&5
  14078. sed 's/^/| /' conftest.$ac_ext >&5
  14079. ( exit $ac_status )
  14080. size_t_bits_minus_1=
  14081. fi
  14082. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14083. fi
  14084. rm -f conftest.val
  14085. if test "$cross_compiling" = yes; then
  14086. # Depending upon the size, compute the lo and hi bounds.
  14087. cat >conftest.$ac_ext <<_ACEOF
  14088. /* confdefs.h. */
  14089. _ACEOF
  14090. cat confdefs.h >>conftest.$ac_ext
  14091. cat >>conftest.$ac_ext <<_ACEOF
  14092. /* end confdefs.h. */
  14093. #include <stddef.h>
  14094. int
  14095. main ()
  14096. {
  14097. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14098. test_array [0] = 0
  14099. ;
  14100. return 0;
  14101. }
  14102. _ACEOF
  14103. rm -f conftest.$ac_objext
  14104. if { (ac_try="$ac_compile"
  14105. case "(($ac_try" in
  14106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14107. *) ac_try_echo=$ac_try;;
  14108. esac
  14109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14110. (eval "$ac_compile") 2>conftest.er1
  14111. ac_status=$?
  14112. grep -v '^ *+' conftest.er1 >conftest.err
  14113. rm -f conftest.er1
  14114. cat conftest.err >&5
  14115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14116. (exit $ac_status); } && {
  14117. test -z "$ac_cxx_werror_flag" ||
  14118. test ! -s conftest.err
  14119. } && test -s conftest.$ac_objext; then
  14120. ac_lo=0 ac_mid=0
  14121. while :; do
  14122. cat >conftest.$ac_ext <<_ACEOF
  14123. /* confdefs.h. */
  14124. _ACEOF
  14125. cat confdefs.h >>conftest.$ac_ext
  14126. cat >>conftest.$ac_ext <<_ACEOF
  14127. /* end confdefs.h. */
  14128. #include <stddef.h>
  14129. int
  14130. main ()
  14131. {
  14132. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14133. test_array [0] = 0
  14134. ;
  14135. return 0;
  14136. }
  14137. _ACEOF
  14138. rm -f conftest.$ac_objext
  14139. if { (ac_try="$ac_compile"
  14140. case "(($ac_try" in
  14141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14142. *) ac_try_echo=$ac_try;;
  14143. esac
  14144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14145. (eval "$ac_compile") 2>conftest.er1
  14146. ac_status=$?
  14147. grep -v '^ *+' conftest.er1 >conftest.err
  14148. rm -f conftest.er1
  14149. cat conftest.err >&5
  14150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14151. (exit $ac_status); } && {
  14152. test -z "$ac_cxx_werror_flag" ||
  14153. test ! -s conftest.err
  14154. } && test -s conftest.$ac_objext; then
  14155. ac_hi=$ac_mid; break
  14156. else
  14157. echo "$as_me: failed program was:" >&5
  14158. sed 's/^/| /' conftest.$ac_ext >&5
  14159. ac_lo=`expr $ac_mid + 1`
  14160. if test $ac_lo -le $ac_mid; then
  14161. ac_lo= ac_hi=
  14162. break
  14163. fi
  14164. ac_mid=`expr 2 '*' $ac_mid + 1`
  14165. fi
  14166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14167. done
  14168. else
  14169. echo "$as_me: failed program was:" >&5
  14170. sed 's/^/| /' conftest.$ac_ext >&5
  14171. cat >conftest.$ac_ext <<_ACEOF
  14172. /* confdefs.h. */
  14173. _ACEOF
  14174. cat confdefs.h >>conftest.$ac_ext
  14175. cat >>conftest.$ac_ext <<_ACEOF
  14176. /* end confdefs.h. */
  14177. #include <stddef.h>
  14178. int
  14179. main ()
  14180. {
  14181. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14182. test_array [0] = 0
  14183. ;
  14184. return 0;
  14185. }
  14186. _ACEOF
  14187. rm -f conftest.$ac_objext
  14188. if { (ac_try="$ac_compile"
  14189. case "(($ac_try" in
  14190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14191. *) ac_try_echo=$ac_try;;
  14192. esac
  14193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14194. (eval "$ac_compile") 2>conftest.er1
  14195. ac_status=$?
  14196. grep -v '^ *+' conftest.er1 >conftest.err
  14197. rm -f conftest.er1
  14198. cat conftest.err >&5
  14199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14200. (exit $ac_status); } && {
  14201. test -z "$ac_cxx_werror_flag" ||
  14202. test ! -s conftest.err
  14203. } && test -s conftest.$ac_objext; then
  14204. ac_hi=-1 ac_mid=-1
  14205. while :; do
  14206. cat >conftest.$ac_ext <<_ACEOF
  14207. /* confdefs.h. */
  14208. _ACEOF
  14209. cat confdefs.h >>conftest.$ac_ext
  14210. cat >>conftest.$ac_ext <<_ACEOF
  14211. /* end confdefs.h. */
  14212. #include <stddef.h>
  14213. int
  14214. main ()
  14215. {
  14216. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14217. test_array [0] = 0
  14218. ;
  14219. return 0;
  14220. }
  14221. _ACEOF
  14222. rm -f conftest.$ac_objext
  14223. if { (ac_try="$ac_compile"
  14224. case "(($ac_try" in
  14225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14226. *) ac_try_echo=$ac_try;;
  14227. esac
  14228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14229. (eval "$ac_compile") 2>conftest.er1
  14230. ac_status=$?
  14231. grep -v '^ *+' conftest.er1 >conftest.err
  14232. rm -f conftest.er1
  14233. cat conftest.err >&5
  14234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14235. (exit $ac_status); } && {
  14236. test -z "$ac_cxx_werror_flag" ||
  14237. test ! -s conftest.err
  14238. } && test -s conftest.$ac_objext; then
  14239. ac_lo=$ac_mid; break
  14240. else
  14241. echo "$as_me: failed program was:" >&5
  14242. sed 's/^/| /' conftest.$ac_ext >&5
  14243. ac_hi=`expr '(' $ac_mid ')' - 1`
  14244. if test $ac_mid -le $ac_hi; then
  14245. ac_lo= ac_hi=
  14246. break
  14247. fi
  14248. ac_mid=`expr 2 '*' $ac_mid`
  14249. fi
  14250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14251. done
  14252. else
  14253. echo "$as_me: failed program was:" >&5
  14254. sed 's/^/| /' conftest.$ac_ext >&5
  14255. ac_lo= ac_hi=
  14256. fi
  14257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14258. fi
  14259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14260. # Binary search between lo and hi bounds.
  14261. while test "x$ac_lo" != "x$ac_hi"; do
  14262. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14263. cat >conftest.$ac_ext <<_ACEOF
  14264. /* confdefs.h. */
  14265. _ACEOF
  14266. cat confdefs.h >>conftest.$ac_ext
  14267. cat >>conftest.$ac_ext <<_ACEOF
  14268. /* end confdefs.h. */
  14269. #include <stddef.h>
  14270. int
  14271. main ()
  14272. {
  14273. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14274. test_array [0] = 0
  14275. ;
  14276. return 0;
  14277. }
  14278. _ACEOF
  14279. rm -f conftest.$ac_objext
  14280. if { (ac_try="$ac_compile"
  14281. case "(($ac_try" in
  14282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14283. *) ac_try_echo=$ac_try;;
  14284. esac
  14285. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14286. (eval "$ac_compile") 2>conftest.er1
  14287. ac_status=$?
  14288. grep -v '^ *+' conftest.er1 >conftest.err
  14289. rm -f conftest.er1
  14290. cat conftest.err >&5
  14291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14292. (exit $ac_status); } && {
  14293. test -z "$ac_cxx_werror_flag" ||
  14294. test ! -s conftest.err
  14295. } && test -s conftest.$ac_objext; then
  14296. ac_hi=$ac_mid
  14297. else
  14298. echo "$as_me: failed program was:" >&5
  14299. sed 's/^/| /' conftest.$ac_ext >&5
  14300. ac_lo=`expr '(' $ac_mid ')' + 1`
  14301. fi
  14302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14303. done
  14304. case $ac_lo in
  14305. ?*) fits_in_uint=$ac_lo;;
  14306. '') fits_in_uint= ;;
  14307. esac
  14308. else
  14309. cat >conftest.$ac_ext <<_ACEOF
  14310. /* confdefs.h. */
  14311. _ACEOF
  14312. cat confdefs.h >>conftest.$ac_ext
  14313. cat >>conftest.$ac_ext <<_ACEOF
  14314. /* end confdefs.h. */
  14315. #include <stddef.h>
  14316. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14317. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14318. #include <stdio.h>
  14319. #include <stdlib.h>
  14320. int
  14321. main ()
  14322. {
  14323. FILE *f = fopen ("conftest.val", "w");
  14324. if (! f)
  14325. return 1;
  14326. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14327. {
  14328. long int i = longval ();
  14329. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14330. return 1;
  14331. fprintf (f, "%ld\n", i);
  14332. }
  14333. else
  14334. {
  14335. unsigned long int i = ulongval ();
  14336. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14337. return 1;
  14338. fprintf (f, "%lu\n", i);
  14339. }
  14340. return ferror (f) || fclose (f) != 0;
  14341. ;
  14342. return 0;
  14343. }
  14344. _ACEOF
  14345. rm -f conftest$ac_exeext
  14346. if { (ac_try="$ac_link"
  14347. case "(($ac_try" in
  14348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14349. *) ac_try_echo=$ac_try;;
  14350. esac
  14351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14352. (eval "$ac_link") 2>&5
  14353. ac_status=$?
  14354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14355. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14356. { (case "(($ac_try" in
  14357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14358. *) ac_try_echo=$ac_try;;
  14359. esac
  14360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14361. (eval "$ac_try") 2>&5
  14362. ac_status=$?
  14363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14364. (exit $ac_status); }; }; then
  14365. fits_in_uint=`cat conftest.val`
  14366. else
  14367. echo "$as_me: program exited with status $ac_status" >&5
  14368. echo "$as_me: failed program was:" >&5
  14369. sed 's/^/| /' conftest.$ac_ext >&5
  14370. ( exit $ac_status )
  14371. fits_in_uint=
  14372. fi
  14373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14374. fi
  14375. rm -f conftest.val
  14376. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14377. if test $fits_in_uint = 1; then
  14378. cat >conftest.$ac_ext <<_ACEOF
  14379. /* confdefs.h. */
  14380. _ACEOF
  14381. cat confdefs.h >>conftest.$ac_ext
  14382. cat >>conftest.$ac_ext <<_ACEOF
  14383. /* end confdefs.h. */
  14384. #include <stddef.h>
  14385. extern size_t foo;
  14386. extern unsigned long foo;
  14387. int
  14388. main ()
  14389. {
  14390. ;
  14391. return 0;
  14392. }
  14393. _ACEOF
  14394. rm -f conftest.$ac_objext
  14395. if { (ac_try="$ac_compile"
  14396. case "(($ac_try" in
  14397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14398. *) ac_try_echo=$ac_try;;
  14399. esac
  14400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14401. (eval "$ac_compile") 2>conftest.er1
  14402. ac_status=$?
  14403. grep -v '^ *+' conftest.er1 >conftest.err
  14404. rm -f conftest.er1
  14405. cat conftest.err >&5
  14406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14407. (exit $ac_status); } && {
  14408. test -z "$ac_cxx_werror_flag" ||
  14409. test ! -s conftest.err
  14410. } && test -s conftest.$ac_objext; then
  14411. fits_in_uint=0
  14412. else
  14413. echo "$as_me: failed program was:" >&5
  14414. sed 's/^/| /' conftest.$ac_ext >&5
  14415. fi
  14416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14417. fi
  14418. if test $fits_in_uint = 1; then
  14419. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14420. else
  14421. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14422. fi
  14423. else
  14424. gl_cv_size_max='((size_t)~(size_t)0)'
  14425. fi
  14426. fi
  14427. fi
  14428. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14429. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14430. if test "$gl_cv_size_max" != yes; then
  14431. cat >>confdefs.h <<_ACEOF
  14432. #define SIZE_MAX $gl_cv_size_max
  14433. _ACEOF
  14434. fi
  14435. for ac_header in stdint.h
  14436. do
  14437. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14438. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14439. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14440. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14441. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14442. echo $ECHO_N "(cached) $ECHO_C" >&6
  14443. fi
  14444. ac_res=`eval echo '${'$as_ac_Header'}'`
  14445. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14446. echo "${ECHO_T}$ac_res" >&6; }
  14447. else
  14448. # Is the header compilable?
  14449. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14450. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14451. cat >conftest.$ac_ext <<_ACEOF
  14452. /* confdefs.h. */
  14453. _ACEOF
  14454. cat confdefs.h >>conftest.$ac_ext
  14455. cat >>conftest.$ac_ext <<_ACEOF
  14456. /* end confdefs.h. */
  14457. $ac_includes_default
  14458. #include <$ac_header>
  14459. _ACEOF
  14460. rm -f conftest.$ac_objext
  14461. if { (ac_try="$ac_compile"
  14462. case "(($ac_try" in
  14463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14464. *) ac_try_echo=$ac_try;;
  14465. esac
  14466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14467. (eval "$ac_compile") 2>conftest.er1
  14468. ac_status=$?
  14469. grep -v '^ *+' conftest.er1 >conftest.err
  14470. rm -f conftest.er1
  14471. cat conftest.err >&5
  14472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14473. (exit $ac_status); } && {
  14474. test -z "$ac_cxx_werror_flag" ||
  14475. test ! -s conftest.err
  14476. } && test -s conftest.$ac_objext; then
  14477. ac_header_compiler=yes
  14478. else
  14479. echo "$as_me: failed program was:" >&5
  14480. sed 's/^/| /' conftest.$ac_ext >&5
  14481. ac_header_compiler=no
  14482. fi
  14483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14484. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14485. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14486. # Is the header present?
  14487. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14488. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14489. cat >conftest.$ac_ext <<_ACEOF
  14490. /* confdefs.h. */
  14491. _ACEOF
  14492. cat confdefs.h >>conftest.$ac_ext
  14493. cat >>conftest.$ac_ext <<_ACEOF
  14494. /* end confdefs.h. */
  14495. #include <$ac_header>
  14496. _ACEOF
  14497. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14498. case "(($ac_try" in
  14499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14500. *) ac_try_echo=$ac_try;;
  14501. esac
  14502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14503. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14504. ac_status=$?
  14505. grep -v '^ *+' conftest.er1 >conftest.err
  14506. rm -f conftest.er1
  14507. cat conftest.err >&5
  14508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14509. (exit $ac_status); } >/dev/null && {
  14510. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14511. test ! -s conftest.err
  14512. }; then
  14513. ac_header_preproc=yes
  14514. else
  14515. echo "$as_me: failed program was:" >&5
  14516. sed 's/^/| /' conftest.$ac_ext >&5
  14517. ac_header_preproc=no
  14518. fi
  14519. rm -f conftest.err conftest.$ac_ext
  14520. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14521. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14522. # So? What about this header?
  14523. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14524. yes:no: )
  14525. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14526. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14527. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14528. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14529. ac_header_preproc=yes
  14530. ;;
  14531. no:yes:* )
  14532. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14533. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14534. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14535. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14536. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14537. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14538. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14539. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14540. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14541. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14542. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14543. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14544. ( cat <<\_ASBOX
  14545. ## ----------------------------------------------- ##
  14546. ## Report this to t-tujikawa@users.sourceforge.net ##
  14547. ## ----------------------------------------------- ##
  14548. _ASBOX
  14549. ) | sed "s/^/$as_me: WARNING: /" >&2
  14550. ;;
  14551. esac
  14552. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14553. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14555. echo $ECHO_N "(cached) $ECHO_C" >&6
  14556. else
  14557. eval "$as_ac_Header=\$ac_header_preproc"
  14558. fi
  14559. ac_res=`eval echo '${'$as_ac_Header'}'`
  14560. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14561. echo "${ECHO_T}$ac_res" >&6; }
  14562. fi
  14563. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14564. cat >>confdefs.h <<_ACEOF
  14565. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14566. _ACEOF
  14567. fi
  14568. done
  14569. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14570. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14571. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14572. echo $ECHO_N "(cached) $ECHO_C" >&6
  14573. else
  14574. gt_save_LIBS="$LIBS"
  14575. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14576. cat >conftest.$ac_ext <<_ACEOF
  14577. /* confdefs.h. */
  14578. _ACEOF
  14579. cat confdefs.h >>conftest.$ac_ext
  14580. cat >>conftest.$ac_ext <<_ACEOF
  14581. /* end confdefs.h. */
  14582. #include <CoreFoundation/CFPreferences.h>
  14583. int
  14584. main ()
  14585. {
  14586. CFPreferencesCopyAppValue(NULL, NULL)
  14587. ;
  14588. return 0;
  14589. }
  14590. _ACEOF
  14591. rm -f conftest.$ac_objext conftest$ac_exeext
  14592. if { (ac_try="$ac_link"
  14593. case "(($ac_try" in
  14594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14595. *) ac_try_echo=$ac_try;;
  14596. esac
  14597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14598. (eval "$ac_link") 2>conftest.er1
  14599. ac_status=$?
  14600. grep -v '^ *+' conftest.er1 >conftest.err
  14601. rm -f conftest.er1
  14602. cat conftest.err >&5
  14603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14604. (exit $ac_status); } && {
  14605. test -z "$ac_cxx_werror_flag" ||
  14606. test ! -s conftest.err
  14607. } && test -s conftest$ac_exeext &&
  14608. $as_test_x conftest$ac_exeext; then
  14609. gt_cv_func_CFPreferencesCopyAppValue=yes
  14610. else
  14611. echo "$as_me: failed program was:" >&5
  14612. sed 's/^/| /' conftest.$ac_ext >&5
  14613. gt_cv_func_CFPreferencesCopyAppValue=no
  14614. fi
  14615. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14616. conftest$ac_exeext conftest.$ac_ext
  14617. LIBS="$gt_save_LIBS"
  14618. fi
  14619. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14620. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14621. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14622. cat >>confdefs.h <<\_ACEOF
  14623. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14624. _ACEOF
  14625. fi
  14626. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14627. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14628. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14629. echo $ECHO_N "(cached) $ECHO_C" >&6
  14630. else
  14631. gt_save_LIBS="$LIBS"
  14632. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14633. cat >conftest.$ac_ext <<_ACEOF
  14634. /* confdefs.h. */
  14635. _ACEOF
  14636. cat confdefs.h >>conftest.$ac_ext
  14637. cat >>conftest.$ac_ext <<_ACEOF
  14638. /* end confdefs.h. */
  14639. #include <CoreFoundation/CFLocale.h>
  14640. int
  14641. main ()
  14642. {
  14643. CFLocaleCopyCurrent();
  14644. ;
  14645. return 0;
  14646. }
  14647. _ACEOF
  14648. rm -f conftest.$ac_objext conftest$ac_exeext
  14649. if { (ac_try="$ac_link"
  14650. case "(($ac_try" in
  14651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14652. *) ac_try_echo=$ac_try;;
  14653. esac
  14654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14655. (eval "$ac_link") 2>conftest.er1
  14656. ac_status=$?
  14657. grep -v '^ *+' conftest.er1 >conftest.err
  14658. rm -f conftest.er1
  14659. cat conftest.err >&5
  14660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14661. (exit $ac_status); } && {
  14662. test -z "$ac_cxx_werror_flag" ||
  14663. test ! -s conftest.err
  14664. } && test -s conftest$ac_exeext &&
  14665. $as_test_x conftest$ac_exeext; then
  14666. gt_cv_func_CFLocaleCopyCurrent=yes
  14667. else
  14668. echo "$as_me: failed program was:" >&5
  14669. sed 's/^/| /' conftest.$ac_ext >&5
  14670. gt_cv_func_CFLocaleCopyCurrent=no
  14671. fi
  14672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14673. conftest$ac_exeext conftest.$ac_ext
  14674. LIBS="$gt_save_LIBS"
  14675. fi
  14676. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14677. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14678. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14679. cat >>confdefs.h <<\_ACEOF
  14680. #define HAVE_CFLOCALECOPYCURRENT 1
  14681. _ACEOF
  14682. fi
  14683. INTL_MACOSX_LIBS=
  14684. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14685. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14686. fi
  14687. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14688. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14689. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14690. echo $ECHO_N "(cached) $ECHO_C" >&6
  14691. else
  14692. cat >conftest.$ac_ext <<_ACEOF
  14693. /* confdefs.h. */
  14694. _ACEOF
  14695. cat confdefs.h >>conftest.$ac_ext
  14696. cat >>conftest.$ac_ext <<_ACEOF
  14697. /* end confdefs.h. */
  14698. $ac_includes_default
  14699. typedef ptrdiff_t ac__type_new_;
  14700. int
  14701. main ()
  14702. {
  14703. if ((ac__type_new_ *) 0)
  14704. return 0;
  14705. if (sizeof (ac__type_new_))
  14706. return 0;
  14707. ;
  14708. return 0;
  14709. }
  14710. _ACEOF
  14711. rm -f conftest.$ac_objext
  14712. if { (ac_try="$ac_compile"
  14713. case "(($ac_try" in
  14714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14715. *) ac_try_echo=$ac_try;;
  14716. esac
  14717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14718. (eval "$ac_compile") 2>conftest.er1
  14719. ac_status=$?
  14720. grep -v '^ *+' conftest.er1 >conftest.err
  14721. rm -f conftest.er1
  14722. cat conftest.err >&5
  14723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14724. (exit $ac_status); } && {
  14725. test -z "$ac_cxx_werror_flag" ||
  14726. test ! -s conftest.err
  14727. } && test -s conftest.$ac_objext; then
  14728. ac_cv_type_ptrdiff_t=yes
  14729. else
  14730. echo "$as_me: failed program was:" >&5
  14731. sed 's/^/| /' conftest.$ac_ext >&5
  14732. ac_cv_type_ptrdiff_t=no
  14733. fi
  14734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14735. fi
  14736. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14737. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14738. if test $ac_cv_type_ptrdiff_t = yes; then
  14739. :
  14740. else
  14741. cat >>confdefs.h <<\_ACEOF
  14742. #define ptrdiff_t long
  14743. _ACEOF
  14744. fi
  14745. for ac_header in stddef.h stdlib.h string.h
  14746. do
  14747. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14748. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14749. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14750. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14751. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14752. echo $ECHO_N "(cached) $ECHO_C" >&6
  14753. fi
  14754. ac_res=`eval echo '${'$as_ac_Header'}'`
  14755. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14756. echo "${ECHO_T}$ac_res" >&6; }
  14757. else
  14758. # Is the header compilable?
  14759. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14760. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14761. cat >conftest.$ac_ext <<_ACEOF
  14762. /* confdefs.h. */
  14763. _ACEOF
  14764. cat confdefs.h >>conftest.$ac_ext
  14765. cat >>conftest.$ac_ext <<_ACEOF
  14766. /* end confdefs.h. */
  14767. $ac_includes_default
  14768. #include <$ac_header>
  14769. _ACEOF
  14770. rm -f conftest.$ac_objext
  14771. if { (ac_try="$ac_compile"
  14772. case "(($ac_try" in
  14773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14774. *) ac_try_echo=$ac_try;;
  14775. esac
  14776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14777. (eval "$ac_compile") 2>conftest.er1
  14778. ac_status=$?
  14779. grep -v '^ *+' conftest.er1 >conftest.err
  14780. rm -f conftest.er1
  14781. cat conftest.err >&5
  14782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14783. (exit $ac_status); } && {
  14784. test -z "$ac_cxx_werror_flag" ||
  14785. test ! -s conftest.err
  14786. } && test -s conftest.$ac_objext; then
  14787. ac_header_compiler=yes
  14788. else
  14789. echo "$as_me: failed program was:" >&5
  14790. sed 's/^/| /' conftest.$ac_ext >&5
  14791. ac_header_compiler=no
  14792. fi
  14793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14794. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14795. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14796. # Is the header present?
  14797. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14798. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14799. cat >conftest.$ac_ext <<_ACEOF
  14800. /* confdefs.h. */
  14801. _ACEOF
  14802. cat confdefs.h >>conftest.$ac_ext
  14803. cat >>conftest.$ac_ext <<_ACEOF
  14804. /* end confdefs.h. */
  14805. #include <$ac_header>
  14806. _ACEOF
  14807. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14808. case "(($ac_try" in
  14809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14810. *) ac_try_echo=$ac_try;;
  14811. esac
  14812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14813. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14814. ac_status=$?
  14815. grep -v '^ *+' conftest.er1 >conftest.err
  14816. rm -f conftest.er1
  14817. cat conftest.err >&5
  14818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14819. (exit $ac_status); } >/dev/null && {
  14820. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14821. test ! -s conftest.err
  14822. }; then
  14823. ac_header_preproc=yes
  14824. else
  14825. echo "$as_me: failed program was:" >&5
  14826. sed 's/^/| /' conftest.$ac_ext >&5
  14827. ac_header_preproc=no
  14828. fi
  14829. rm -f conftest.err conftest.$ac_ext
  14830. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14831. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14832. # So? What about this header?
  14833. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14834. yes:no: )
  14835. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14836. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14837. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14838. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14839. ac_header_preproc=yes
  14840. ;;
  14841. no:yes:* )
  14842. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14843. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14844. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14845. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14846. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14847. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14848. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14849. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14850. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14851. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14852. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14853. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14854. ( cat <<\_ASBOX
  14855. ## ----------------------------------------------- ##
  14856. ## Report this to t-tujikawa@users.sourceforge.net ##
  14857. ## ----------------------------------------------- ##
  14858. _ASBOX
  14859. ) | sed "s/^/$as_me: WARNING: /" >&2
  14860. ;;
  14861. esac
  14862. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14863. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14864. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14865. echo $ECHO_N "(cached) $ECHO_C" >&6
  14866. else
  14867. eval "$as_ac_Header=\$ac_header_preproc"
  14868. fi
  14869. ac_res=`eval echo '${'$as_ac_Header'}'`
  14870. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14871. echo "${ECHO_T}$ac_res" >&6; }
  14872. fi
  14873. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14874. cat >>confdefs.h <<_ACEOF
  14875. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14876. _ACEOF
  14877. fi
  14878. done
  14879. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14880. do
  14881. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14882. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14883. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14884. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14885. echo $ECHO_N "(cached) $ECHO_C" >&6
  14886. else
  14887. cat >conftest.$ac_ext <<_ACEOF
  14888. /* confdefs.h. */
  14889. _ACEOF
  14890. cat confdefs.h >>conftest.$ac_ext
  14891. cat >>conftest.$ac_ext <<_ACEOF
  14892. /* end confdefs.h. */
  14893. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14894. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14895. #define $ac_func innocuous_$ac_func
  14896. /* System header to define __stub macros and hopefully few prototypes,
  14897. which can conflict with char $ac_func (); below.
  14898. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14899. <limits.h> exists even on freestanding compilers. */
  14900. #ifdef __STDC__
  14901. # include <limits.h>
  14902. #else
  14903. # include <assert.h>
  14904. #endif
  14905. #undef $ac_func
  14906. /* Override any GCC internal prototype to avoid an error.
  14907. Use char because int might match the return type of a GCC
  14908. builtin and then its argument prototype would still apply. */
  14909. #ifdef __cplusplus
  14910. extern "C"
  14911. #endif
  14912. char $ac_func ();
  14913. /* The GNU C library defines this for functions which it implements
  14914. to always fail with ENOSYS. Some functions are actually named
  14915. something starting with __ and the normal name is an alias. */
  14916. #if defined __stub_$ac_func || defined __stub___$ac_func
  14917. choke me
  14918. #endif
  14919. int
  14920. main ()
  14921. {
  14922. return $ac_func ();
  14923. ;
  14924. return 0;
  14925. }
  14926. _ACEOF
  14927. rm -f conftest.$ac_objext conftest$ac_exeext
  14928. if { (ac_try="$ac_link"
  14929. case "(($ac_try" in
  14930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14931. *) ac_try_echo=$ac_try;;
  14932. esac
  14933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14934. (eval "$ac_link") 2>conftest.er1
  14935. ac_status=$?
  14936. grep -v '^ *+' conftest.er1 >conftest.err
  14937. rm -f conftest.er1
  14938. cat conftest.err >&5
  14939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14940. (exit $ac_status); } && {
  14941. test -z "$ac_cxx_werror_flag" ||
  14942. test ! -s conftest.err
  14943. } && test -s conftest$ac_exeext &&
  14944. $as_test_x conftest$ac_exeext; then
  14945. eval "$as_ac_var=yes"
  14946. else
  14947. echo "$as_me: failed program was:" >&5
  14948. sed 's/^/| /' conftest.$ac_ext >&5
  14949. eval "$as_ac_var=no"
  14950. fi
  14951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14952. conftest$ac_exeext conftest.$ac_ext
  14953. fi
  14954. ac_res=`eval echo '${'$as_ac_var'}'`
  14955. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14956. echo "${ECHO_T}$ac_res" >&6; }
  14957. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14958. cat >>confdefs.h <<_ACEOF
  14959. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14960. _ACEOF
  14961. fi
  14962. done
  14963. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14964. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14965. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14966. echo $ECHO_N "(cached) $ECHO_C" >&6
  14967. else
  14968. cat >conftest.$ac_ext <<_ACEOF
  14969. /* confdefs.h. */
  14970. _ACEOF
  14971. cat confdefs.h >>conftest.$ac_ext
  14972. cat >>conftest.$ac_ext <<_ACEOF
  14973. /* end confdefs.h. */
  14974. #include <stdio.h>
  14975. int
  14976. main ()
  14977. {
  14978. #ifndef _snprintf
  14979. char *p = (char *) _snprintf;
  14980. #endif
  14981. ;
  14982. return 0;
  14983. }
  14984. _ACEOF
  14985. rm -f conftest.$ac_objext
  14986. if { (ac_try="$ac_compile"
  14987. case "(($ac_try" in
  14988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14989. *) ac_try_echo=$ac_try;;
  14990. esac
  14991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14992. (eval "$ac_compile") 2>conftest.er1
  14993. ac_status=$?
  14994. grep -v '^ *+' conftest.er1 >conftest.err
  14995. rm -f conftest.er1
  14996. cat conftest.err >&5
  14997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14998. (exit $ac_status); } && {
  14999. test -z "$ac_cxx_werror_flag" ||
  15000. test ! -s conftest.err
  15001. } && test -s conftest.$ac_objext; then
  15002. ac_cv_have_decl__snprintf=yes
  15003. else
  15004. echo "$as_me: failed program was:" >&5
  15005. sed 's/^/| /' conftest.$ac_ext >&5
  15006. ac_cv_have_decl__snprintf=no
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15009. fi
  15010. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15011. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15012. if test $ac_cv_have_decl__snprintf = yes; then
  15013. gt_value=1
  15014. else
  15015. gt_value=0
  15016. fi
  15017. cat >>confdefs.h <<_ACEOF
  15018. #define HAVE_DECL__SNPRINTF $gt_value
  15019. _ACEOF
  15020. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15021. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15022. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15023. echo $ECHO_N "(cached) $ECHO_C" >&6
  15024. else
  15025. cat >conftest.$ac_ext <<_ACEOF
  15026. /* confdefs.h. */
  15027. _ACEOF
  15028. cat confdefs.h >>conftest.$ac_ext
  15029. cat >>conftest.$ac_ext <<_ACEOF
  15030. /* end confdefs.h. */
  15031. #include <stdio.h>
  15032. int
  15033. main ()
  15034. {
  15035. #ifndef _snwprintf
  15036. char *p = (char *) _snwprintf;
  15037. #endif
  15038. ;
  15039. return 0;
  15040. }
  15041. _ACEOF
  15042. rm -f conftest.$ac_objext
  15043. if { (ac_try="$ac_compile"
  15044. case "(($ac_try" in
  15045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15046. *) ac_try_echo=$ac_try;;
  15047. esac
  15048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15049. (eval "$ac_compile") 2>conftest.er1
  15050. ac_status=$?
  15051. grep -v '^ *+' conftest.er1 >conftest.err
  15052. rm -f conftest.er1
  15053. cat conftest.err >&5
  15054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15055. (exit $ac_status); } && {
  15056. test -z "$ac_cxx_werror_flag" ||
  15057. test ! -s conftest.err
  15058. } && test -s conftest.$ac_objext; then
  15059. ac_cv_have_decl__snwprintf=yes
  15060. else
  15061. echo "$as_me: failed program was:" >&5
  15062. sed 's/^/| /' conftest.$ac_ext >&5
  15063. ac_cv_have_decl__snwprintf=no
  15064. fi
  15065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15066. fi
  15067. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15068. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15069. if test $ac_cv_have_decl__snwprintf = yes; then
  15070. gt_value=1
  15071. else
  15072. gt_value=0
  15073. fi
  15074. cat >>confdefs.h <<_ACEOF
  15075. #define HAVE_DECL__SNWPRINTF $gt_value
  15076. _ACEOF
  15077. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15078. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15079. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15080. echo $ECHO_N "(cached) $ECHO_C" >&6
  15081. else
  15082. cat >conftest.$ac_ext <<_ACEOF
  15083. /* confdefs.h. */
  15084. _ACEOF
  15085. cat confdefs.h >>conftest.$ac_ext
  15086. cat >>conftest.$ac_ext <<_ACEOF
  15087. /* end confdefs.h. */
  15088. #include <stdio.h>
  15089. int
  15090. main ()
  15091. {
  15092. #ifndef getc_unlocked
  15093. char *p = (char *) getc_unlocked;
  15094. #endif
  15095. ;
  15096. return 0;
  15097. }
  15098. _ACEOF
  15099. rm -f conftest.$ac_objext
  15100. if { (ac_try="$ac_compile"
  15101. case "(($ac_try" in
  15102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15103. *) ac_try_echo=$ac_try;;
  15104. esac
  15105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15106. (eval "$ac_compile") 2>conftest.er1
  15107. ac_status=$?
  15108. grep -v '^ *+' conftest.er1 >conftest.err
  15109. rm -f conftest.er1
  15110. cat conftest.err >&5
  15111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15112. (exit $ac_status); } && {
  15113. test -z "$ac_cxx_werror_flag" ||
  15114. test ! -s conftest.err
  15115. } && test -s conftest.$ac_objext; then
  15116. ac_cv_have_decl_getc_unlocked=yes
  15117. else
  15118. echo "$as_me: failed program was:" >&5
  15119. sed 's/^/| /' conftest.$ac_ext >&5
  15120. ac_cv_have_decl_getc_unlocked=no
  15121. fi
  15122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15123. fi
  15124. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15125. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15126. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15127. gt_value=1
  15128. else
  15129. gt_value=0
  15130. fi
  15131. cat >>confdefs.h <<_ACEOF
  15132. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15133. _ACEOF
  15134. case $gt_cv_func_printf_posix in
  15135. *yes) HAVE_POSIX_PRINTF=1 ;;
  15136. *) HAVE_POSIX_PRINTF=0 ;;
  15137. esac
  15138. if test "$ac_cv_func_asprintf" = yes; then
  15139. HAVE_ASPRINTF=1
  15140. else
  15141. HAVE_ASPRINTF=0
  15142. fi
  15143. if test "$ac_cv_func_snprintf" = yes; then
  15144. HAVE_SNPRINTF=1
  15145. else
  15146. HAVE_SNPRINTF=0
  15147. fi
  15148. if test "$ac_cv_func_wprintf" = yes; then
  15149. HAVE_WPRINTF=1
  15150. else
  15151. HAVE_WPRINTF=0
  15152. fi
  15153. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15154. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15155. if test "${am_cv_langinfo_codeset+set}" = set; then
  15156. echo $ECHO_N "(cached) $ECHO_C" >&6
  15157. else
  15158. cat >conftest.$ac_ext <<_ACEOF
  15159. /* confdefs.h. */
  15160. _ACEOF
  15161. cat confdefs.h >>conftest.$ac_ext
  15162. cat >>conftest.$ac_ext <<_ACEOF
  15163. /* end confdefs.h. */
  15164. #include <langinfo.h>
  15165. int
  15166. main ()
  15167. {
  15168. char* cs = nl_langinfo(CODESET); return !cs;
  15169. ;
  15170. return 0;
  15171. }
  15172. _ACEOF
  15173. rm -f conftest.$ac_objext conftest$ac_exeext
  15174. if { (ac_try="$ac_link"
  15175. case "(($ac_try" in
  15176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15177. *) ac_try_echo=$ac_try;;
  15178. esac
  15179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15180. (eval "$ac_link") 2>conftest.er1
  15181. ac_status=$?
  15182. grep -v '^ *+' conftest.er1 >conftest.err
  15183. rm -f conftest.er1
  15184. cat conftest.err >&5
  15185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15186. (exit $ac_status); } && {
  15187. test -z "$ac_cxx_werror_flag" ||
  15188. test ! -s conftest.err
  15189. } && test -s conftest$ac_exeext &&
  15190. $as_test_x conftest$ac_exeext; then
  15191. am_cv_langinfo_codeset=yes
  15192. else
  15193. echo "$as_me: failed program was:" >&5
  15194. sed 's/^/| /' conftest.$ac_ext >&5
  15195. am_cv_langinfo_codeset=no
  15196. fi
  15197. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15198. conftest$ac_exeext conftest.$ac_ext
  15199. fi
  15200. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15201. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15202. if test $am_cv_langinfo_codeset = yes; then
  15203. cat >>confdefs.h <<\_ACEOF
  15204. #define HAVE_LANGINFO_CODESET 1
  15205. _ACEOF
  15206. fi
  15207. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15208. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15209. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15210. echo $ECHO_N "(cached) $ECHO_C" >&6
  15211. else
  15212. cat >conftest.$ac_ext <<_ACEOF
  15213. /* confdefs.h. */
  15214. _ACEOF
  15215. cat confdefs.h >>conftest.$ac_ext
  15216. cat >>conftest.$ac_ext <<_ACEOF
  15217. /* end confdefs.h. */
  15218. #include <locale.h>
  15219. int
  15220. main ()
  15221. {
  15222. return LC_MESSAGES
  15223. ;
  15224. return 0;
  15225. }
  15226. _ACEOF
  15227. rm -f conftest.$ac_objext conftest$ac_exeext
  15228. if { (ac_try="$ac_link"
  15229. case "(($ac_try" in
  15230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15231. *) ac_try_echo=$ac_try;;
  15232. esac
  15233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15234. (eval "$ac_link") 2>conftest.er1
  15235. ac_status=$?
  15236. grep -v '^ *+' conftest.er1 >conftest.err
  15237. rm -f conftest.er1
  15238. cat conftest.err >&5
  15239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15240. (exit $ac_status); } && {
  15241. test -z "$ac_cxx_werror_flag" ||
  15242. test ! -s conftest.err
  15243. } && test -s conftest$ac_exeext &&
  15244. $as_test_x conftest$ac_exeext; then
  15245. gt_cv_val_LC_MESSAGES=yes
  15246. else
  15247. echo "$as_me: failed program was:" >&5
  15248. sed 's/^/| /' conftest.$ac_ext >&5
  15249. gt_cv_val_LC_MESSAGES=no
  15250. fi
  15251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15252. conftest$ac_exeext conftest.$ac_ext
  15253. fi
  15254. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15255. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15256. if test $gt_cv_val_LC_MESSAGES = yes; then
  15257. cat >>confdefs.h <<\_ACEOF
  15258. #define HAVE_LC_MESSAGES 1
  15259. _ACEOF
  15260. fi
  15261. if test "$enable_shared" = yes; then
  15262. case "$host_os" in
  15263. mingw* | cygwin*) is_woe32dll=yes ;;
  15264. *) is_woe32dll=no ;;
  15265. esac
  15266. else
  15267. is_woe32dll=no
  15268. fi
  15269. WOE32DLL=$is_woe32dll
  15270. case "$host_os" in
  15271. mingw* | cygwin*) is_woe32=yes ;;
  15272. *) is_woe32=no ;;
  15273. esac
  15274. WOE32=$is_woe32
  15275. if test $WOE32 = yes; then
  15276. if test -n "$ac_tool_prefix"; then
  15277. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15278. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15279. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15280. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15281. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15282. echo $ECHO_N "(cached) $ECHO_C" >&6
  15283. else
  15284. if test -n "$WINDRES"; then
  15285. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15286. else
  15287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15288. for as_dir in $PATH
  15289. do
  15290. IFS=$as_save_IFS
  15291. test -z "$as_dir" && as_dir=.
  15292. for ac_exec_ext in '' $ac_executable_extensions; do
  15293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15294. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15296. break 2
  15297. fi
  15298. done
  15299. done
  15300. IFS=$as_save_IFS
  15301. fi
  15302. fi
  15303. WINDRES=$ac_cv_prog_WINDRES
  15304. if test -n "$WINDRES"; then
  15305. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15306. echo "${ECHO_T}$WINDRES" >&6; }
  15307. else
  15308. { echo "$as_me:$LINENO: result: no" >&5
  15309. echo "${ECHO_T}no" >&6; }
  15310. fi
  15311. fi
  15312. if test -z "$ac_cv_prog_WINDRES"; then
  15313. ac_ct_WINDRES=$WINDRES
  15314. # Extract the first word of "windres", so it can be a program name with args.
  15315. set dummy windres; ac_word=$2
  15316. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15317. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15318. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15319. echo $ECHO_N "(cached) $ECHO_C" >&6
  15320. else
  15321. if test -n "$ac_ct_WINDRES"; then
  15322. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15323. else
  15324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15325. for as_dir in $PATH
  15326. do
  15327. IFS=$as_save_IFS
  15328. test -z "$as_dir" && as_dir=.
  15329. for ac_exec_ext in '' $ac_executable_extensions; do
  15330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15331. ac_cv_prog_ac_ct_WINDRES="windres"
  15332. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15333. break 2
  15334. fi
  15335. done
  15336. done
  15337. IFS=$as_save_IFS
  15338. fi
  15339. fi
  15340. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15341. if test -n "$ac_ct_WINDRES"; then
  15342. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15343. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15344. else
  15345. { echo "$as_me:$LINENO: result: no" >&5
  15346. echo "${ECHO_T}no" >&6; }
  15347. fi
  15348. if test "x$ac_ct_WINDRES" = x; then
  15349. WINDRES=""
  15350. else
  15351. case $cross_compiling:$ac_tool_warned in
  15352. yes:)
  15353. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15354. whose name does not start with the host triplet. If you think this
  15355. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15356. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15357. whose name does not start with the host triplet. If you think this
  15358. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15359. ac_tool_warned=yes ;;
  15360. esac
  15361. WINDRES=$ac_ct_WINDRES
  15362. fi
  15363. else
  15364. WINDRES="$ac_cv_prog_WINDRES"
  15365. fi
  15366. fi
  15367. case "$host_os" in
  15368. hpux*) LTLIBC="" ;;
  15369. *) LTLIBC="-lc" ;;
  15370. esac
  15371. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15372. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15373. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15374. echo $ECHO_N "(cached) $ECHO_C" >&6
  15375. else
  15376. gt_save_LIBS="$LIBS"
  15377. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15378. cat >conftest.$ac_ext <<_ACEOF
  15379. /* confdefs.h. */
  15380. _ACEOF
  15381. cat confdefs.h >>conftest.$ac_ext
  15382. cat >>conftest.$ac_ext <<_ACEOF
  15383. /* end confdefs.h. */
  15384. #include <CoreFoundation/CFPreferences.h>
  15385. int
  15386. main ()
  15387. {
  15388. CFPreferencesCopyAppValue(NULL, NULL)
  15389. ;
  15390. return 0;
  15391. }
  15392. _ACEOF
  15393. rm -f conftest.$ac_objext conftest$ac_exeext
  15394. if { (ac_try="$ac_link"
  15395. case "(($ac_try" in
  15396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15397. *) ac_try_echo=$ac_try;;
  15398. esac
  15399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15400. (eval "$ac_link") 2>conftest.er1
  15401. ac_status=$?
  15402. grep -v '^ *+' conftest.er1 >conftest.err
  15403. rm -f conftest.er1
  15404. cat conftest.err >&5
  15405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15406. (exit $ac_status); } && {
  15407. test -z "$ac_cxx_werror_flag" ||
  15408. test ! -s conftest.err
  15409. } && test -s conftest$ac_exeext &&
  15410. $as_test_x conftest$ac_exeext; then
  15411. gt_cv_func_CFPreferencesCopyAppValue=yes
  15412. else
  15413. echo "$as_me: failed program was:" >&5
  15414. sed 's/^/| /' conftest.$ac_ext >&5
  15415. gt_cv_func_CFPreferencesCopyAppValue=no
  15416. fi
  15417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15418. conftest$ac_exeext conftest.$ac_ext
  15419. LIBS="$gt_save_LIBS"
  15420. fi
  15421. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15422. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15423. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15424. cat >>confdefs.h <<\_ACEOF
  15425. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15426. _ACEOF
  15427. fi
  15428. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15429. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15430. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15431. echo $ECHO_N "(cached) $ECHO_C" >&6
  15432. else
  15433. gt_save_LIBS="$LIBS"
  15434. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15435. cat >conftest.$ac_ext <<_ACEOF
  15436. /* confdefs.h. */
  15437. _ACEOF
  15438. cat confdefs.h >>conftest.$ac_ext
  15439. cat >>conftest.$ac_ext <<_ACEOF
  15440. /* end confdefs.h. */
  15441. #include <CoreFoundation/CFLocale.h>
  15442. int
  15443. main ()
  15444. {
  15445. CFLocaleCopyCurrent();
  15446. ;
  15447. return 0;
  15448. }
  15449. _ACEOF
  15450. rm -f conftest.$ac_objext conftest$ac_exeext
  15451. if { (ac_try="$ac_link"
  15452. case "(($ac_try" in
  15453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15454. *) ac_try_echo=$ac_try;;
  15455. esac
  15456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15457. (eval "$ac_link") 2>conftest.er1
  15458. ac_status=$?
  15459. grep -v '^ *+' conftest.er1 >conftest.err
  15460. rm -f conftest.er1
  15461. cat conftest.err >&5
  15462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15463. (exit $ac_status); } && {
  15464. test -z "$ac_cxx_werror_flag" ||
  15465. test ! -s conftest.err
  15466. } && test -s conftest$ac_exeext &&
  15467. $as_test_x conftest$ac_exeext; then
  15468. gt_cv_func_CFLocaleCopyCurrent=yes
  15469. else
  15470. echo "$as_me: failed program was:" >&5
  15471. sed 's/^/| /' conftest.$ac_ext >&5
  15472. gt_cv_func_CFLocaleCopyCurrent=no
  15473. fi
  15474. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15475. conftest$ac_exeext conftest.$ac_ext
  15476. LIBS="$gt_save_LIBS"
  15477. fi
  15478. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15479. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15480. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15481. cat >>confdefs.h <<\_ACEOF
  15482. #define HAVE_CFLOCALECOPYCURRENT 1
  15483. _ACEOF
  15484. fi
  15485. INTL_MACOSX_LIBS=
  15486. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15487. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15488. fi
  15489. BUILD_INCLUDED_LIBINTL=no
  15490. USE_INCLUDED_LIBINTL=no
  15491. LIBINTL=
  15492. LTLIBINTL=
  15493. POSUB=
  15494. case " $gt_needs " in
  15495. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15496. *" need-ngettext "*) gt_api_version=2 ;;
  15497. *) gt_api_version=1 ;;
  15498. esac
  15499. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15500. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15501. if test "$USE_NLS" = "yes"; then
  15502. gt_use_preinstalled_gnugettext=no
  15503. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15504. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15505. # Check whether --with-included-gettext was given.
  15506. if test "${with_included_gettext+set}" = set; then
  15507. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15508. else
  15509. nls_cv_force_use_gnu_gettext=no
  15510. fi
  15511. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15512. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15513. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15514. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15515. if test $gt_api_version -ge 3; then
  15516. gt_revision_test_code='
  15517. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15518. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15519. #endif
  15520. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15521. '
  15522. else
  15523. gt_revision_test_code=
  15524. fi
  15525. if test $gt_api_version -ge 2; then
  15526. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15527. else
  15528. gt_expression_test_code=
  15529. fi
  15530. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15531. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15532. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15533. echo $ECHO_N "(cached) $ECHO_C" >&6
  15534. else
  15535. cat >conftest.$ac_ext <<_ACEOF
  15536. /* confdefs.h. */
  15537. _ACEOF
  15538. cat confdefs.h >>conftest.$ac_ext
  15539. cat >>conftest.$ac_ext <<_ACEOF
  15540. /* end confdefs.h. */
  15541. #include <libintl.h>
  15542. $gt_revision_test_code
  15543. extern int _nl_msg_cat_cntr;
  15544. extern int *_nl_domain_bindings;
  15545. int
  15546. main ()
  15547. {
  15548. bindtextdomain ("", "");
  15549. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15550. ;
  15551. return 0;
  15552. }
  15553. _ACEOF
  15554. rm -f conftest.$ac_objext conftest$ac_exeext
  15555. if { (ac_try="$ac_link"
  15556. case "(($ac_try" in
  15557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15558. *) ac_try_echo=$ac_try;;
  15559. esac
  15560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15561. (eval "$ac_link") 2>conftest.er1
  15562. ac_status=$?
  15563. grep -v '^ *+' conftest.er1 >conftest.err
  15564. rm -f conftest.er1
  15565. cat conftest.err >&5
  15566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15567. (exit $ac_status); } && {
  15568. test -z "$ac_cxx_werror_flag" ||
  15569. test ! -s conftest.err
  15570. } && test -s conftest$ac_exeext &&
  15571. $as_test_x conftest$ac_exeext; then
  15572. eval "$gt_func_gnugettext_libc=yes"
  15573. else
  15574. echo "$as_me: failed program was:" >&5
  15575. sed 's/^/| /' conftest.$ac_ext >&5
  15576. eval "$gt_func_gnugettext_libc=no"
  15577. fi
  15578. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15579. conftest$ac_exeext conftest.$ac_ext
  15580. fi
  15581. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15582. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15583. echo "${ECHO_T}$ac_res" >&6; }
  15584. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15585. use_additional=yes
  15586. acl_save_prefix="$prefix"
  15587. prefix="$acl_final_prefix"
  15588. acl_save_exec_prefix="$exec_prefix"
  15589. exec_prefix="$acl_final_exec_prefix"
  15590. eval additional_includedir=\"$includedir\"
  15591. eval additional_libdir=\"$libdir\"
  15592. exec_prefix="$acl_save_exec_prefix"
  15593. prefix="$acl_save_prefix"
  15594. # Check whether --with-libintl-prefix was given.
  15595. if test "${with_libintl_prefix+set}" = set; then
  15596. withval=$with_libintl_prefix;
  15597. if test "X$withval" = "Xno"; then
  15598. use_additional=no
  15599. else
  15600. if test "X$withval" = "X"; then
  15601. acl_save_prefix="$prefix"
  15602. prefix="$acl_final_prefix"
  15603. acl_save_exec_prefix="$exec_prefix"
  15604. exec_prefix="$acl_final_exec_prefix"
  15605. eval additional_includedir=\"$includedir\"
  15606. eval additional_libdir=\"$libdir\"
  15607. exec_prefix="$acl_save_exec_prefix"
  15608. prefix="$acl_save_prefix"
  15609. else
  15610. additional_includedir="$withval/include"
  15611. additional_libdir="$withval/$acl_libdirstem"
  15612. fi
  15613. fi
  15614. fi
  15615. LIBINTL=
  15616. LTLIBINTL=
  15617. INCINTL=
  15618. LIBINTL_PREFIX=
  15619. rpathdirs=
  15620. ltrpathdirs=
  15621. names_already_handled=
  15622. names_next_round='intl '
  15623. while test -n "$names_next_round"; do
  15624. names_this_round="$names_next_round"
  15625. names_next_round=
  15626. for name in $names_this_round; do
  15627. already_handled=
  15628. for n in $names_already_handled; do
  15629. if test "$n" = "$name"; then
  15630. already_handled=yes
  15631. break
  15632. fi
  15633. done
  15634. if test -z "$already_handled"; then
  15635. names_already_handled="$names_already_handled $name"
  15636. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15637. eval value=\"\$HAVE_LIB$uppername\"
  15638. if test -n "$value"; then
  15639. if test "$value" = yes; then
  15640. eval value=\"\$LIB$uppername\"
  15641. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15642. eval value=\"\$LTLIB$uppername\"
  15643. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15644. else
  15645. :
  15646. fi
  15647. else
  15648. found_dir=
  15649. found_la=
  15650. found_so=
  15651. found_a=
  15652. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15653. if test -n "$acl_shlibext"; then
  15654. shrext=".$acl_shlibext" # typically: shrext=.so
  15655. else
  15656. shrext=
  15657. fi
  15658. if test $use_additional = yes; then
  15659. dir="$additional_libdir"
  15660. if test -n "$acl_shlibext"; then
  15661. if test -f "$dir/$libname$shrext"; then
  15662. found_dir="$dir"
  15663. found_so="$dir/$libname$shrext"
  15664. else
  15665. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15666. ver=`(cd "$dir" && \
  15667. for f in "$libname$shrext".*; do echo "$f"; done \
  15668. | sed -e "s,^$libname$shrext\\\\.,," \
  15669. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15670. | sed 1q ) 2>/dev/null`
  15671. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15672. found_dir="$dir"
  15673. found_so="$dir/$libname$shrext.$ver"
  15674. fi
  15675. else
  15676. eval library_names=\"$acl_library_names_spec\"
  15677. for f in $library_names; do
  15678. if test -f "$dir/$f"; then
  15679. found_dir="$dir"
  15680. found_so="$dir/$f"
  15681. break
  15682. fi
  15683. done
  15684. fi
  15685. fi
  15686. fi
  15687. if test "X$found_dir" = "X"; then
  15688. if test -f "$dir/$libname.$acl_libext"; then
  15689. found_dir="$dir"
  15690. found_a="$dir/$libname.$acl_libext"
  15691. fi
  15692. fi
  15693. if test "X$found_dir" != "X"; then
  15694. if test -f "$dir/$libname.la"; then
  15695. found_la="$dir/$libname.la"
  15696. fi
  15697. fi
  15698. fi
  15699. if test "X$found_dir" = "X"; then
  15700. for x in $LDFLAGS $LTLIBINTL; do
  15701. acl_save_prefix="$prefix"
  15702. prefix="$acl_final_prefix"
  15703. acl_save_exec_prefix="$exec_prefix"
  15704. exec_prefix="$acl_final_exec_prefix"
  15705. eval x=\"$x\"
  15706. exec_prefix="$acl_save_exec_prefix"
  15707. prefix="$acl_save_prefix"
  15708. case "$x" in
  15709. -L*)
  15710. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15711. if test -n "$acl_shlibext"; then
  15712. if test -f "$dir/$libname$shrext"; then
  15713. found_dir="$dir"
  15714. found_so="$dir/$libname$shrext"
  15715. else
  15716. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15717. ver=`(cd "$dir" && \
  15718. for f in "$libname$shrext".*; do echo "$f"; done \
  15719. | sed -e "s,^$libname$shrext\\\\.,," \
  15720. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15721. | sed 1q ) 2>/dev/null`
  15722. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15723. found_dir="$dir"
  15724. found_so="$dir/$libname$shrext.$ver"
  15725. fi
  15726. else
  15727. eval library_names=\"$acl_library_names_spec\"
  15728. for f in $library_names; do
  15729. if test -f "$dir/$f"; then
  15730. found_dir="$dir"
  15731. found_so="$dir/$f"
  15732. break
  15733. fi
  15734. done
  15735. fi
  15736. fi
  15737. fi
  15738. if test "X$found_dir" = "X"; then
  15739. if test -f "$dir/$libname.$acl_libext"; then
  15740. found_dir="$dir"
  15741. found_a="$dir/$libname.$acl_libext"
  15742. fi
  15743. fi
  15744. if test "X$found_dir" != "X"; then
  15745. if test -f "$dir/$libname.la"; then
  15746. found_la="$dir/$libname.la"
  15747. fi
  15748. fi
  15749. ;;
  15750. esac
  15751. if test "X$found_dir" != "X"; then
  15752. break
  15753. fi
  15754. done
  15755. fi
  15756. if test "X$found_dir" != "X"; then
  15757. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15758. if test "X$found_so" != "X"; then
  15759. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15760. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15761. else
  15762. haveit=
  15763. for x in $ltrpathdirs; do
  15764. if test "X$x" = "X$found_dir"; then
  15765. haveit=yes
  15766. break
  15767. fi
  15768. done
  15769. if test -z "$haveit"; then
  15770. ltrpathdirs="$ltrpathdirs $found_dir"
  15771. fi
  15772. if test "$acl_hardcode_direct" = yes; then
  15773. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15774. else
  15775. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15776. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15777. haveit=
  15778. for x in $rpathdirs; do
  15779. if test "X$x" = "X$found_dir"; then
  15780. haveit=yes
  15781. break
  15782. fi
  15783. done
  15784. if test -z "$haveit"; then
  15785. rpathdirs="$rpathdirs $found_dir"
  15786. fi
  15787. else
  15788. haveit=
  15789. for x in $LDFLAGS $LIBINTL; do
  15790. acl_save_prefix="$prefix"
  15791. prefix="$acl_final_prefix"
  15792. acl_save_exec_prefix="$exec_prefix"
  15793. exec_prefix="$acl_final_exec_prefix"
  15794. eval x=\"$x\"
  15795. exec_prefix="$acl_save_exec_prefix"
  15796. prefix="$acl_save_prefix"
  15797. if test "X$x" = "X-L$found_dir"; then
  15798. haveit=yes
  15799. break
  15800. fi
  15801. done
  15802. if test -z "$haveit"; then
  15803. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15804. fi
  15805. if test "$acl_hardcode_minus_L" != no; then
  15806. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15807. else
  15808. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15809. fi
  15810. fi
  15811. fi
  15812. fi
  15813. else
  15814. if test "X$found_a" != "X"; then
  15815. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15816. else
  15817. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15818. fi
  15819. fi
  15820. additional_includedir=
  15821. case "$found_dir" in
  15822. */$acl_libdirstem | */$acl_libdirstem/)
  15823. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15824. LIBINTL_PREFIX="$basedir"
  15825. additional_includedir="$basedir/include"
  15826. ;;
  15827. esac
  15828. if test "X$additional_includedir" != "X"; then
  15829. if test "X$additional_includedir" != "X/usr/include"; then
  15830. haveit=
  15831. if test "X$additional_includedir" = "X/usr/local/include"; then
  15832. if test -n "$GCC"; then
  15833. case $host_os in
  15834. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15835. esac
  15836. fi
  15837. fi
  15838. if test -z "$haveit"; then
  15839. for x in $CPPFLAGS $INCINTL; do
  15840. acl_save_prefix="$prefix"
  15841. prefix="$acl_final_prefix"
  15842. acl_save_exec_prefix="$exec_prefix"
  15843. exec_prefix="$acl_final_exec_prefix"
  15844. eval x=\"$x\"
  15845. exec_prefix="$acl_save_exec_prefix"
  15846. prefix="$acl_save_prefix"
  15847. if test "X$x" = "X-I$additional_includedir"; then
  15848. haveit=yes
  15849. break
  15850. fi
  15851. done
  15852. if test -z "$haveit"; then
  15853. if test -d "$additional_includedir"; then
  15854. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15855. fi
  15856. fi
  15857. fi
  15858. fi
  15859. fi
  15860. if test -n "$found_la"; then
  15861. save_libdir="$libdir"
  15862. case "$found_la" in
  15863. */* | *\\*) . "$found_la" ;;
  15864. *) . "./$found_la" ;;
  15865. esac
  15866. libdir="$save_libdir"
  15867. for dep in $dependency_libs; do
  15868. case "$dep" in
  15869. -L*)
  15870. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15871. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15872. haveit=
  15873. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15874. if test -n "$GCC"; then
  15875. case $host_os in
  15876. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15877. esac
  15878. fi
  15879. fi
  15880. if test -z "$haveit"; then
  15881. haveit=
  15882. for x in $LDFLAGS $LIBINTL; do
  15883. acl_save_prefix="$prefix"
  15884. prefix="$acl_final_prefix"
  15885. acl_save_exec_prefix="$exec_prefix"
  15886. exec_prefix="$acl_final_exec_prefix"
  15887. eval x=\"$x\"
  15888. exec_prefix="$acl_save_exec_prefix"
  15889. prefix="$acl_save_prefix"
  15890. if test "X$x" = "X-L$additional_libdir"; then
  15891. haveit=yes
  15892. break
  15893. fi
  15894. done
  15895. if test -z "$haveit"; then
  15896. if test -d "$additional_libdir"; then
  15897. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15898. fi
  15899. fi
  15900. haveit=
  15901. for x in $LDFLAGS $LTLIBINTL; do
  15902. acl_save_prefix="$prefix"
  15903. prefix="$acl_final_prefix"
  15904. acl_save_exec_prefix="$exec_prefix"
  15905. exec_prefix="$acl_final_exec_prefix"
  15906. eval x=\"$x\"
  15907. exec_prefix="$acl_save_exec_prefix"
  15908. prefix="$acl_save_prefix"
  15909. if test "X$x" = "X-L$additional_libdir"; then
  15910. haveit=yes
  15911. break
  15912. fi
  15913. done
  15914. if test -z "$haveit"; then
  15915. if test -d "$additional_libdir"; then
  15916. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15917. fi
  15918. fi
  15919. fi
  15920. fi
  15921. ;;
  15922. -R*)
  15923. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15924. if test "$enable_rpath" != no; then
  15925. haveit=
  15926. for x in $rpathdirs; do
  15927. if test "X$x" = "X$dir"; then
  15928. haveit=yes
  15929. break
  15930. fi
  15931. done
  15932. if test -z "$haveit"; then
  15933. rpathdirs="$rpathdirs $dir"
  15934. fi
  15935. haveit=
  15936. for x in $ltrpathdirs; do
  15937. if test "X$x" = "X$dir"; then
  15938. haveit=yes
  15939. break
  15940. fi
  15941. done
  15942. if test -z "$haveit"; then
  15943. ltrpathdirs="$ltrpathdirs $dir"
  15944. fi
  15945. fi
  15946. ;;
  15947. -l*)
  15948. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15949. ;;
  15950. *.la)
  15951. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15952. ;;
  15953. *)
  15954. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15955. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15956. ;;
  15957. esac
  15958. done
  15959. fi
  15960. else
  15961. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15962. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15963. fi
  15964. fi
  15965. fi
  15966. done
  15967. done
  15968. if test "X$rpathdirs" != "X"; then
  15969. if test -n "$acl_hardcode_libdir_separator"; then
  15970. alldirs=
  15971. for found_dir in $rpathdirs; do
  15972. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15973. done
  15974. acl_save_libdir="$libdir"
  15975. libdir="$alldirs"
  15976. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15977. libdir="$acl_save_libdir"
  15978. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15979. else
  15980. for found_dir in $rpathdirs; do
  15981. acl_save_libdir="$libdir"
  15982. libdir="$found_dir"
  15983. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15984. libdir="$acl_save_libdir"
  15985. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15986. done
  15987. fi
  15988. fi
  15989. if test "X$ltrpathdirs" != "X"; then
  15990. for found_dir in $ltrpathdirs; do
  15991. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15992. done
  15993. fi
  15994. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15995. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15996. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15997. echo $ECHO_N "(cached) $ECHO_C" >&6
  15998. else
  15999. gt_save_CPPFLAGS="$CPPFLAGS"
  16000. CPPFLAGS="$CPPFLAGS $INCINTL"
  16001. gt_save_LIBS="$LIBS"
  16002. LIBS="$LIBS $LIBINTL"
  16003. cat >conftest.$ac_ext <<_ACEOF
  16004. /* confdefs.h. */
  16005. _ACEOF
  16006. cat confdefs.h >>conftest.$ac_ext
  16007. cat >>conftest.$ac_ext <<_ACEOF
  16008. /* end confdefs.h. */
  16009. #include <libintl.h>
  16010. $gt_revision_test_code
  16011. extern int _nl_msg_cat_cntr;
  16012. extern
  16013. #ifdef __cplusplus
  16014. "C"
  16015. #endif
  16016. const char *_nl_expand_alias (const char *);
  16017. int
  16018. main ()
  16019. {
  16020. bindtextdomain ("", "");
  16021. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16022. ;
  16023. return 0;
  16024. }
  16025. _ACEOF
  16026. rm -f conftest.$ac_objext conftest$ac_exeext
  16027. if { (ac_try="$ac_link"
  16028. case "(($ac_try" in
  16029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16030. *) ac_try_echo=$ac_try;;
  16031. esac
  16032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16033. (eval "$ac_link") 2>conftest.er1
  16034. ac_status=$?
  16035. grep -v '^ *+' conftest.er1 >conftest.err
  16036. rm -f conftest.er1
  16037. cat conftest.err >&5
  16038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16039. (exit $ac_status); } && {
  16040. test -z "$ac_cxx_werror_flag" ||
  16041. test ! -s conftest.err
  16042. } && test -s conftest$ac_exeext &&
  16043. $as_test_x conftest$ac_exeext; then
  16044. eval "$gt_func_gnugettext_libintl=yes"
  16045. else
  16046. echo "$as_me: failed program was:" >&5
  16047. sed 's/^/| /' conftest.$ac_ext >&5
  16048. eval "$gt_func_gnugettext_libintl=no"
  16049. fi
  16050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16051. conftest$ac_exeext conftest.$ac_ext
  16052. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16053. LIBS="$LIBS $LIBICONV"
  16054. cat >conftest.$ac_ext <<_ACEOF
  16055. /* confdefs.h. */
  16056. _ACEOF
  16057. cat confdefs.h >>conftest.$ac_ext
  16058. cat >>conftest.$ac_ext <<_ACEOF
  16059. /* end confdefs.h. */
  16060. #include <libintl.h>
  16061. $gt_revision_test_code
  16062. extern int _nl_msg_cat_cntr;
  16063. extern
  16064. #ifdef __cplusplus
  16065. "C"
  16066. #endif
  16067. const char *_nl_expand_alias (const char *);
  16068. int
  16069. main ()
  16070. {
  16071. bindtextdomain ("", "");
  16072. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16073. ;
  16074. return 0;
  16075. }
  16076. _ACEOF
  16077. rm -f conftest.$ac_objext conftest$ac_exeext
  16078. if { (ac_try="$ac_link"
  16079. case "(($ac_try" in
  16080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16081. *) ac_try_echo=$ac_try;;
  16082. esac
  16083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16084. (eval "$ac_link") 2>conftest.er1
  16085. ac_status=$?
  16086. grep -v '^ *+' conftest.er1 >conftest.err
  16087. rm -f conftest.er1
  16088. cat conftest.err >&5
  16089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16090. (exit $ac_status); } && {
  16091. test -z "$ac_cxx_werror_flag" ||
  16092. test ! -s conftest.err
  16093. } && test -s conftest$ac_exeext &&
  16094. $as_test_x conftest$ac_exeext; then
  16095. LIBINTL="$LIBINTL $LIBICONV"
  16096. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16097. eval "$gt_func_gnugettext_libintl=yes"
  16098. else
  16099. echo "$as_me: failed program was:" >&5
  16100. sed 's/^/| /' conftest.$ac_ext >&5
  16101. fi
  16102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16103. conftest$ac_exeext conftest.$ac_ext
  16104. fi
  16105. CPPFLAGS="$gt_save_CPPFLAGS"
  16106. LIBS="$gt_save_LIBS"
  16107. fi
  16108. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16109. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16110. echo "${ECHO_T}$ac_res" >&6; }
  16111. fi
  16112. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16113. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16114. && test "$PACKAGE" != gettext-runtime \
  16115. && test "$PACKAGE" != gettext-tools; }; then
  16116. gt_use_preinstalled_gnugettext=yes
  16117. else
  16118. LIBINTL=
  16119. LTLIBINTL=
  16120. INCINTL=
  16121. fi
  16122. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16123. nls_cv_use_gnu_gettext=yes
  16124. fi
  16125. fi
  16126. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16127. BUILD_INCLUDED_LIBINTL=yes
  16128. USE_INCLUDED_LIBINTL=yes
  16129. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16130. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16131. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16132. fi
  16133. CATOBJEXT=
  16134. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16135. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16136. CATOBJEXT=.gmo
  16137. fi
  16138. if test -n "$INTL_MACOSX_LIBS"; then
  16139. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16140. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16141. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16142. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16143. fi
  16144. fi
  16145. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16146. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16147. cat >>confdefs.h <<\_ACEOF
  16148. #define ENABLE_NLS 1
  16149. _ACEOF
  16150. else
  16151. USE_NLS=no
  16152. fi
  16153. fi
  16154. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16155. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16156. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16157. echo "${ECHO_T}$USE_NLS" >&6; }
  16158. if test "$USE_NLS" = "yes"; then
  16159. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16160. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16161. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16162. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16163. gt_source="external libintl"
  16164. else
  16165. gt_source="libc"
  16166. fi
  16167. else
  16168. gt_source="included intl directory"
  16169. fi
  16170. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16171. echo "${ECHO_T}$gt_source" >&6; }
  16172. fi
  16173. if test "$USE_NLS" = "yes"; then
  16174. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16175. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16176. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16177. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16178. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16179. echo "${ECHO_T}$LIBINTL" >&6; }
  16180. for element in $INCINTL; do
  16181. haveit=
  16182. for x in $CPPFLAGS; do
  16183. acl_save_prefix="$prefix"
  16184. prefix="$acl_final_prefix"
  16185. acl_save_exec_prefix="$exec_prefix"
  16186. exec_prefix="$acl_final_exec_prefix"
  16187. eval x=\"$x\"
  16188. exec_prefix="$acl_save_exec_prefix"
  16189. prefix="$acl_save_prefix"
  16190. if test "X$x" = "X$element"; then
  16191. haveit=yes
  16192. break
  16193. fi
  16194. done
  16195. if test -z "$haveit"; then
  16196. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16197. fi
  16198. done
  16199. fi
  16200. cat >>confdefs.h <<\_ACEOF
  16201. #define HAVE_GETTEXT 1
  16202. _ACEOF
  16203. cat >>confdefs.h <<\_ACEOF
  16204. #define HAVE_DCGETTEXT 1
  16205. _ACEOF
  16206. fi
  16207. POSUB=po
  16208. fi
  16209. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16210. BUILD_INCLUDED_LIBINTL=yes
  16211. fi
  16212. nls_cv_header_intl=
  16213. nls_cv_header_libgt=
  16214. DATADIRNAME=share
  16215. INSTOBJEXT=.mo
  16216. GENCAT=gencat
  16217. INTLOBJS=
  16218. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16219. INTLOBJS="\$(GETTOBJS)"
  16220. fi
  16221. INTL_LIBTOOL_SUFFIX_PREFIX=
  16222. INTLLIBS="$LIBINTL"
  16223. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16224. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16225. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16226. echo $ECHO_N "(cached) $ECHO_C" >&6
  16227. else
  16228. cat >conftest.$ac_ext <<_ACEOF
  16229. /* confdefs.h. */
  16230. _ACEOF
  16231. cat confdefs.h >>conftest.$ac_ext
  16232. cat >>conftest.$ac_ext <<_ACEOF
  16233. /* end confdefs.h. */
  16234. #include <error.h>
  16235. int
  16236. main ()
  16237. {
  16238. error_at_line (0, 0, "", 0, "an error occurred");
  16239. ;
  16240. return 0;
  16241. }
  16242. _ACEOF
  16243. rm -f conftest.$ac_objext conftest$ac_exeext
  16244. if { (ac_try="$ac_link"
  16245. case "(($ac_try" in
  16246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16247. *) ac_try_echo=$ac_try;;
  16248. esac
  16249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16250. (eval "$ac_link") 2>conftest.er1
  16251. ac_status=$?
  16252. grep -v '^ *+' conftest.er1 >conftest.err
  16253. rm -f conftest.er1
  16254. cat conftest.err >&5
  16255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16256. (exit $ac_status); } && {
  16257. test -z "$ac_cxx_werror_flag" ||
  16258. test ! -s conftest.err
  16259. } && test -s conftest$ac_exeext &&
  16260. $as_test_x conftest$ac_exeext; then
  16261. ac_cv_lib_error_at_line=yes
  16262. else
  16263. echo "$as_me: failed program was:" >&5
  16264. sed 's/^/| /' conftest.$ac_ext >&5
  16265. ac_cv_lib_error_at_line=no
  16266. fi
  16267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16268. conftest$ac_exeext conftest.$ac_ext
  16269. fi
  16270. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16271. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16272. if test $ac_cv_lib_error_at_line = no; then
  16273. case " $LIBOBJS " in
  16274. *" error.$ac_objext "* ) ;;
  16275. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16276. ;;
  16277. esac
  16278. fi
  16279. if test $ac_cv_c_compiler_gnu = yes; then
  16280. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16281. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16282. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16283. echo $ECHO_N "(cached) $ECHO_C" >&6
  16284. else
  16285. ac_pattern="Autoconf.*'x'"
  16286. cat >conftest.$ac_ext <<_ACEOF
  16287. /* confdefs.h. */
  16288. _ACEOF
  16289. cat confdefs.h >>conftest.$ac_ext
  16290. cat >>conftest.$ac_ext <<_ACEOF
  16291. /* end confdefs.h. */
  16292. #include <sgtty.h>
  16293. Autoconf TIOCGETP
  16294. _ACEOF
  16295. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16296. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16297. ac_cv_prog_gcc_traditional=yes
  16298. else
  16299. ac_cv_prog_gcc_traditional=no
  16300. fi
  16301. rm -f conftest*
  16302. if test $ac_cv_prog_gcc_traditional = no; then
  16303. cat >conftest.$ac_ext <<_ACEOF
  16304. /* confdefs.h. */
  16305. _ACEOF
  16306. cat confdefs.h >>conftest.$ac_ext
  16307. cat >>conftest.$ac_ext <<_ACEOF
  16308. /* end confdefs.h. */
  16309. #include <termio.h>
  16310. Autoconf TCGETA
  16311. _ACEOF
  16312. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16313. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16314. ac_cv_prog_gcc_traditional=yes
  16315. fi
  16316. rm -f conftest*
  16317. fi
  16318. fi
  16319. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16320. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16321. if test $ac_cv_prog_gcc_traditional = yes; then
  16322. CC="$CC -traditional"
  16323. fi
  16324. fi
  16325. case "$target" in
  16326. *mingw*)
  16327. ;;
  16328. *)
  16329. for ac_header in stdlib.h
  16330. do
  16331. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16332. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16333. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16334. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16335. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16336. echo $ECHO_N "(cached) $ECHO_C" >&6
  16337. fi
  16338. ac_res=`eval echo '${'$as_ac_Header'}'`
  16339. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16340. echo "${ECHO_T}$ac_res" >&6; }
  16341. else
  16342. # Is the header compilable?
  16343. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16344. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16345. cat >conftest.$ac_ext <<_ACEOF
  16346. /* confdefs.h. */
  16347. _ACEOF
  16348. cat confdefs.h >>conftest.$ac_ext
  16349. cat >>conftest.$ac_ext <<_ACEOF
  16350. /* end confdefs.h. */
  16351. $ac_includes_default
  16352. #include <$ac_header>
  16353. _ACEOF
  16354. rm -f conftest.$ac_objext
  16355. if { (ac_try="$ac_compile"
  16356. case "(($ac_try" in
  16357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16358. *) ac_try_echo=$ac_try;;
  16359. esac
  16360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16361. (eval "$ac_compile") 2>conftest.er1
  16362. ac_status=$?
  16363. grep -v '^ *+' conftest.er1 >conftest.err
  16364. rm -f conftest.er1
  16365. cat conftest.err >&5
  16366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16367. (exit $ac_status); } && {
  16368. test -z "$ac_cxx_werror_flag" ||
  16369. test ! -s conftest.err
  16370. } && test -s conftest.$ac_objext; then
  16371. ac_header_compiler=yes
  16372. else
  16373. echo "$as_me: failed program was:" >&5
  16374. sed 's/^/| /' conftest.$ac_ext >&5
  16375. ac_header_compiler=no
  16376. fi
  16377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16378. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16379. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16380. # Is the header present?
  16381. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16382. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16383. cat >conftest.$ac_ext <<_ACEOF
  16384. /* confdefs.h. */
  16385. _ACEOF
  16386. cat confdefs.h >>conftest.$ac_ext
  16387. cat >>conftest.$ac_ext <<_ACEOF
  16388. /* end confdefs.h. */
  16389. #include <$ac_header>
  16390. _ACEOF
  16391. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16392. case "(($ac_try" in
  16393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16394. *) ac_try_echo=$ac_try;;
  16395. esac
  16396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16397. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16398. ac_status=$?
  16399. grep -v '^ *+' conftest.er1 >conftest.err
  16400. rm -f conftest.er1
  16401. cat conftest.err >&5
  16402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16403. (exit $ac_status); } >/dev/null && {
  16404. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16405. test ! -s conftest.err
  16406. }; then
  16407. ac_header_preproc=yes
  16408. else
  16409. echo "$as_me: failed program was:" >&5
  16410. sed 's/^/| /' conftest.$ac_ext >&5
  16411. ac_header_preproc=no
  16412. fi
  16413. rm -f conftest.err conftest.$ac_ext
  16414. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16415. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16416. # So? What about this header?
  16417. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16418. yes:no: )
  16419. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16420. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16421. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16422. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16423. ac_header_preproc=yes
  16424. ;;
  16425. no:yes:* )
  16426. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16427. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16428. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16429. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16430. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16431. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16432. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16433. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16434. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16435. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16436. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16437. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16438. ( cat <<\_ASBOX
  16439. ## ----------------------------------------------- ##
  16440. ## Report this to t-tujikawa@users.sourceforge.net ##
  16441. ## ----------------------------------------------- ##
  16442. _ASBOX
  16443. ) | sed "s/^/$as_me: WARNING: /" >&2
  16444. ;;
  16445. esac
  16446. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16448. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16449. echo $ECHO_N "(cached) $ECHO_C" >&6
  16450. else
  16451. eval "$as_ac_Header=\$ac_header_preproc"
  16452. fi
  16453. ac_res=`eval echo '${'$as_ac_Header'}'`
  16454. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16455. echo "${ECHO_T}$ac_res" >&6; }
  16456. fi
  16457. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16458. cat >>confdefs.h <<_ACEOF
  16459. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16460. _ACEOF
  16461. fi
  16462. done
  16463. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16464. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16465. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16466. echo $ECHO_N "(cached) $ECHO_C" >&6
  16467. else
  16468. if test "$cross_compiling" = yes; then
  16469. ac_cv_func_malloc_0_nonnull=no
  16470. else
  16471. cat >conftest.$ac_ext <<_ACEOF
  16472. /* confdefs.h. */
  16473. _ACEOF
  16474. cat confdefs.h >>conftest.$ac_ext
  16475. cat >>conftest.$ac_ext <<_ACEOF
  16476. /* end confdefs.h. */
  16477. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16478. # include <stdlib.h>
  16479. #else
  16480. char *malloc ();
  16481. #endif
  16482. int
  16483. main ()
  16484. {
  16485. return ! malloc (0);
  16486. ;
  16487. return 0;
  16488. }
  16489. _ACEOF
  16490. rm -f conftest$ac_exeext
  16491. if { (ac_try="$ac_link"
  16492. case "(($ac_try" in
  16493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16494. *) ac_try_echo=$ac_try;;
  16495. esac
  16496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16497. (eval "$ac_link") 2>&5
  16498. ac_status=$?
  16499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16500. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16501. { (case "(($ac_try" in
  16502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16503. *) ac_try_echo=$ac_try;;
  16504. esac
  16505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16506. (eval "$ac_try") 2>&5
  16507. ac_status=$?
  16508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16509. (exit $ac_status); }; }; then
  16510. ac_cv_func_malloc_0_nonnull=yes
  16511. else
  16512. echo "$as_me: program exited with status $ac_status" >&5
  16513. echo "$as_me: failed program was:" >&5
  16514. sed 's/^/| /' conftest.$ac_ext >&5
  16515. ( exit $ac_status )
  16516. ac_cv_func_malloc_0_nonnull=no
  16517. fi
  16518. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16519. fi
  16520. fi
  16521. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16522. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16523. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16524. cat >>confdefs.h <<\_ACEOF
  16525. #define HAVE_MALLOC 1
  16526. _ACEOF
  16527. else
  16528. cat >>confdefs.h <<\_ACEOF
  16529. #define HAVE_MALLOC 0
  16530. _ACEOF
  16531. case " $LIBOBJS " in
  16532. *" malloc.$ac_objext "* ) ;;
  16533. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16534. ;;
  16535. esac
  16536. cat >>confdefs.h <<\_ACEOF
  16537. #define malloc rpl_malloc
  16538. _ACEOF
  16539. fi
  16540. for ac_header in stdlib.h
  16541. do
  16542. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16543. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16544. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16545. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16546. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16547. echo $ECHO_N "(cached) $ECHO_C" >&6
  16548. fi
  16549. ac_res=`eval echo '${'$as_ac_Header'}'`
  16550. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16551. echo "${ECHO_T}$ac_res" >&6; }
  16552. else
  16553. # Is the header compilable?
  16554. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16555. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16556. cat >conftest.$ac_ext <<_ACEOF
  16557. /* confdefs.h. */
  16558. _ACEOF
  16559. cat confdefs.h >>conftest.$ac_ext
  16560. cat >>conftest.$ac_ext <<_ACEOF
  16561. /* end confdefs.h. */
  16562. $ac_includes_default
  16563. #include <$ac_header>
  16564. _ACEOF
  16565. rm -f conftest.$ac_objext
  16566. if { (ac_try="$ac_compile"
  16567. case "(($ac_try" in
  16568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16569. *) ac_try_echo=$ac_try;;
  16570. esac
  16571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16572. (eval "$ac_compile") 2>conftest.er1
  16573. ac_status=$?
  16574. grep -v '^ *+' conftest.er1 >conftest.err
  16575. rm -f conftest.er1
  16576. cat conftest.err >&5
  16577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16578. (exit $ac_status); } && {
  16579. test -z "$ac_cxx_werror_flag" ||
  16580. test ! -s conftest.err
  16581. } && test -s conftest.$ac_objext; then
  16582. ac_header_compiler=yes
  16583. else
  16584. echo "$as_me: failed program was:" >&5
  16585. sed 's/^/| /' conftest.$ac_ext >&5
  16586. ac_header_compiler=no
  16587. fi
  16588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16589. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16590. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16591. # Is the header present?
  16592. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16593. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16594. cat >conftest.$ac_ext <<_ACEOF
  16595. /* confdefs.h. */
  16596. _ACEOF
  16597. cat confdefs.h >>conftest.$ac_ext
  16598. cat >>conftest.$ac_ext <<_ACEOF
  16599. /* end confdefs.h. */
  16600. #include <$ac_header>
  16601. _ACEOF
  16602. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16603. case "(($ac_try" in
  16604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16605. *) ac_try_echo=$ac_try;;
  16606. esac
  16607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16608. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16609. ac_status=$?
  16610. grep -v '^ *+' conftest.er1 >conftest.err
  16611. rm -f conftest.er1
  16612. cat conftest.err >&5
  16613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16614. (exit $ac_status); } >/dev/null && {
  16615. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16616. test ! -s conftest.err
  16617. }; then
  16618. ac_header_preproc=yes
  16619. else
  16620. echo "$as_me: failed program was:" >&5
  16621. sed 's/^/| /' conftest.$ac_ext >&5
  16622. ac_header_preproc=no
  16623. fi
  16624. rm -f conftest.err conftest.$ac_ext
  16625. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16626. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16627. # So? What about this header?
  16628. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16629. yes:no: )
  16630. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16631. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16632. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16633. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16634. ac_header_preproc=yes
  16635. ;;
  16636. no:yes:* )
  16637. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16638. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16639. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16640. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16641. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16642. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16643. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16644. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16645. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16646. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16647. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16648. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16649. ( cat <<\_ASBOX
  16650. ## ----------------------------------------------- ##
  16651. ## Report this to t-tujikawa@users.sourceforge.net ##
  16652. ## ----------------------------------------------- ##
  16653. _ASBOX
  16654. ) | sed "s/^/$as_me: WARNING: /" >&2
  16655. ;;
  16656. esac
  16657. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16658. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16659. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16660. echo $ECHO_N "(cached) $ECHO_C" >&6
  16661. else
  16662. eval "$as_ac_Header=\$ac_header_preproc"
  16663. fi
  16664. ac_res=`eval echo '${'$as_ac_Header'}'`
  16665. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16666. echo "${ECHO_T}$ac_res" >&6; }
  16667. fi
  16668. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16669. cat >>confdefs.h <<_ACEOF
  16670. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16671. _ACEOF
  16672. fi
  16673. done
  16674. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16675. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16676. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16677. echo $ECHO_N "(cached) $ECHO_C" >&6
  16678. else
  16679. if test "$cross_compiling" = yes; then
  16680. ac_cv_func_realloc_0_nonnull=no
  16681. else
  16682. cat >conftest.$ac_ext <<_ACEOF
  16683. /* confdefs.h. */
  16684. _ACEOF
  16685. cat confdefs.h >>conftest.$ac_ext
  16686. cat >>conftest.$ac_ext <<_ACEOF
  16687. /* end confdefs.h. */
  16688. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16689. # include <stdlib.h>
  16690. #else
  16691. char *realloc ();
  16692. #endif
  16693. int
  16694. main ()
  16695. {
  16696. return ! realloc (0, 0);
  16697. ;
  16698. return 0;
  16699. }
  16700. _ACEOF
  16701. rm -f conftest$ac_exeext
  16702. if { (ac_try="$ac_link"
  16703. case "(($ac_try" in
  16704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16705. *) ac_try_echo=$ac_try;;
  16706. esac
  16707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16708. (eval "$ac_link") 2>&5
  16709. ac_status=$?
  16710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16711. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16712. { (case "(($ac_try" in
  16713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16714. *) ac_try_echo=$ac_try;;
  16715. esac
  16716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16717. (eval "$ac_try") 2>&5
  16718. ac_status=$?
  16719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16720. (exit $ac_status); }; }; then
  16721. ac_cv_func_realloc_0_nonnull=yes
  16722. else
  16723. echo "$as_me: program exited with status $ac_status" >&5
  16724. echo "$as_me: failed program was:" >&5
  16725. sed 's/^/| /' conftest.$ac_ext >&5
  16726. ( exit $ac_status )
  16727. ac_cv_func_realloc_0_nonnull=no
  16728. fi
  16729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16730. fi
  16731. fi
  16732. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16733. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16734. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16735. cat >>confdefs.h <<\_ACEOF
  16736. #define HAVE_REALLOC 1
  16737. _ACEOF
  16738. else
  16739. cat >>confdefs.h <<\_ACEOF
  16740. #define HAVE_REALLOC 0
  16741. _ACEOF
  16742. case " $LIBOBJS " in
  16743. *" realloc.$ac_objext "* ) ;;
  16744. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16745. ;;
  16746. esac
  16747. cat >>confdefs.h <<\_ACEOF
  16748. #define realloc rpl_realloc
  16749. _ACEOF
  16750. fi
  16751. ;;
  16752. esac
  16753. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16754. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16755. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16756. echo $ECHO_N "(cached) $ECHO_C" >&6
  16757. else
  16758. if test "$cross_compiling" = yes; then
  16759. ac_cv_func_memcmp_working=no
  16760. else
  16761. cat >conftest.$ac_ext <<_ACEOF
  16762. /* confdefs.h. */
  16763. _ACEOF
  16764. cat confdefs.h >>conftest.$ac_ext
  16765. cat >>conftest.$ac_ext <<_ACEOF
  16766. /* end confdefs.h. */
  16767. $ac_includes_default
  16768. int
  16769. main ()
  16770. {
  16771. /* Some versions of memcmp are not 8-bit clean. */
  16772. char c0 = '\100', c1 = '\200', c2 = '\201';
  16773. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16774. return 1;
  16775. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16776. or more and with at least one buffer not starting on a 4-byte boundary.
  16777. William Lewis provided this test program. */
  16778. {
  16779. char foo[21];
  16780. char bar[21];
  16781. int i;
  16782. for (i = 0; i < 4; i++)
  16783. {
  16784. char *a = foo + i;
  16785. char *b = bar + i;
  16786. strcpy (a, "--------01111111");
  16787. strcpy (b, "--------10000000");
  16788. if (memcmp (a, b, 16) >= 0)
  16789. return 1;
  16790. }
  16791. return 0;
  16792. }
  16793. ;
  16794. return 0;
  16795. }
  16796. _ACEOF
  16797. rm -f conftest$ac_exeext
  16798. if { (ac_try="$ac_link"
  16799. case "(($ac_try" in
  16800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16801. *) ac_try_echo=$ac_try;;
  16802. esac
  16803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16804. (eval "$ac_link") 2>&5
  16805. ac_status=$?
  16806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16807. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16808. { (case "(($ac_try" in
  16809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16810. *) ac_try_echo=$ac_try;;
  16811. esac
  16812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16813. (eval "$ac_try") 2>&5
  16814. ac_status=$?
  16815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16816. (exit $ac_status); }; }; then
  16817. ac_cv_func_memcmp_working=yes
  16818. else
  16819. echo "$as_me: program exited with status $ac_status" >&5
  16820. echo "$as_me: failed program was:" >&5
  16821. sed 's/^/| /' conftest.$ac_ext >&5
  16822. ( exit $ac_status )
  16823. ac_cv_func_memcmp_working=no
  16824. fi
  16825. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16826. fi
  16827. fi
  16828. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16829. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16830. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16831. *" memcmp.$ac_objext "* ) ;;
  16832. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16833. ;;
  16834. esac
  16835. for ac_header in $ac_header_list
  16836. do
  16837. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16838. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16839. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16840. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16841. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16842. echo $ECHO_N "(cached) $ECHO_C" >&6
  16843. fi
  16844. ac_res=`eval echo '${'$as_ac_Header'}'`
  16845. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16846. echo "${ECHO_T}$ac_res" >&6; }
  16847. else
  16848. # Is the header compilable?
  16849. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16850. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16851. cat >conftest.$ac_ext <<_ACEOF
  16852. /* confdefs.h. */
  16853. _ACEOF
  16854. cat confdefs.h >>conftest.$ac_ext
  16855. cat >>conftest.$ac_ext <<_ACEOF
  16856. /* end confdefs.h. */
  16857. $ac_includes_default
  16858. #include <$ac_header>
  16859. _ACEOF
  16860. rm -f conftest.$ac_objext
  16861. if { (ac_try="$ac_compile"
  16862. case "(($ac_try" in
  16863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16864. *) ac_try_echo=$ac_try;;
  16865. esac
  16866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16867. (eval "$ac_compile") 2>conftest.er1
  16868. ac_status=$?
  16869. grep -v '^ *+' conftest.er1 >conftest.err
  16870. rm -f conftest.er1
  16871. cat conftest.err >&5
  16872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16873. (exit $ac_status); } && {
  16874. test -z "$ac_cxx_werror_flag" ||
  16875. test ! -s conftest.err
  16876. } && test -s conftest.$ac_objext; then
  16877. ac_header_compiler=yes
  16878. else
  16879. echo "$as_me: failed program was:" >&5
  16880. sed 's/^/| /' conftest.$ac_ext >&5
  16881. ac_header_compiler=no
  16882. fi
  16883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16884. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16885. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16886. # Is the header present?
  16887. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16888. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16889. cat >conftest.$ac_ext <<_ACEOF
  16890. /* confdefs.h. */
  16891. _ACEOF
  16892. cat confdefs.h >>conftest.$ac_ext
  16893. cat >>conftest.$ac_ext <<_ACEOF
  16894. /* end confdefs.h. */
  16895. #include <$ac_header>
  16896. _ACEOF
  16897. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16898. case "(($ac_try" in
  16899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16900. *) ac_try_echo=$ac_try;;
  16901. esac
  16902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16903. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16904. ac_status=$?
  16905. grep -v '^ *+' conftest.er1 >conftest.err
  16906. rm -f conftest.er1
  16907. cat conftest.err >&5
  16908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16909. (exit $ac_status); } >/dev/null && {
  16910. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16911. test ! -s conftest.err
  16912. }; then
  16913. ac_header_preproc=yes
  16914. else
  16915. echo "$as_me: failed program was:" >&5
  16916. sed 's/^/| /' conftest.$ac_ext >&5
  16917. ac_header_preproc=no
  16918. fi
  16919. rm -f conftest.err conftest.$ac_ext
  16920. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16921. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16922. # So? What about this header?
  16923. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16924. yes:no: )
  16925. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16926. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16927. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16928. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16929. ac_header_preproc=yes
  16930. ;;
  16931. no:yes:* )
  16932. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16933. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16934. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16935. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16936. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16937. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16938. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16939. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16940. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16941. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16942. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16943. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16944. ( cat <<\_ASBOX
  16945. ## ----------------------------------------------- ##
  16946. ## Report this to t-tujikawa@users.sourceforge.net ##
  16947. ## ----------------------------------------------- ##
  16948. _ASBOX
  16949. ) | sed "s/^/$as_me: WARNING: /" >&2
  16950. ;;
  16951. esac
  16952. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16953. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16954. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16955. echo $ECHO_N "(cached) $ECHO_C" >&6
  16956. else
  16957. eval "$as_ac_Header=\$ac_header_preproc"
  16958. fi
  16959. ac_res=`eval echo '${'$as_ac_Header'}'`
  16960. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16961. echo "${ECHO_T}$ac_res" >&6; }
  16962. fi
  16963. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16964. cat >>confdefs.h <<_ACEOF
  16965. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16966. _ACEOF
  16967. fi
  16968. done
  16969. for ac_func in $ac_func_list
  16970. do
  16971. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16972. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16973. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16974. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16975. echo $ECHO_N "(cached) $ECHO_C" >&6
  16976. else
  16977. cat >conftest.$ac_ext <<_ACEOF
  16978. /* confdefs.h. */
  16979. _ACEOF
  16980. cat confdefs.h >>conftest.$ac_ext
  16981. cat >>conftest.$ac_ext <<_ACEOF
  16982. /* end confdefs.h. */
  16983. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16984. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16985. #define $ac_func innocuous_$ac_func
  16986. /* System header to define __stub macros and hopefully few prototypes,
  16987. which can conflict with char $ac_func (); below.
  16988. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16989. <limits.h> exists even on freestanding compilers. */
  16990. #ifdef __STDC__
  16991. # include <limits.h>
  16992. #else
  16993. # include <assert.h>
  16994. #endif
  16995. #undef $ac_func
  16996. /* Override any GCC internal prototype to avoid an error.
  16997. Use char because int might match the return type of a GCC
  16998. builtin and then its argument prototype would still apply. */
  16999. #ifdef __cplusplus
  17000. extern "C"
  17001. #endif
  17002. char $ac_func ();
  17003. /* The GNU C library defines this for functions which it implements
  17004. to always fail with ENOSYS. Some functions are actually named
  17005. something starting with __ and the normal name is an alias. */
  17006. #if defined __stub_$ac_func || defined __stub___$ac_func
  17007. choke me
  17008. #endif
  17009. int
  17010. main ()
  17011. {
  17012. return $ac_func ();
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. rm -f conftest.$ac_objext conftest$ac_exeext
  17018. if { (ac_try="$ac_link"
  17019. case "(($ac_try" in
  17020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17021. *) ac_try_echo=$ac_try;;
  17022. esac
  17023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17024. (eval "$ac_link") 2>conftest.er1
  17025. ac_status=$?
  17026. grep -v '^ *+' conftest.er1 >conftest.err
  17027. rm -f conftest.er1
  17028. cat conftest.err >&5
  17029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17030. (exit $ac_status); } && {
  17031. test -z "$ac_cxx_werror_flag" ||
  17032. test ! -s conftest.err
  17033. } && test -s conftest$ac_exeext &&
  17034. $as_test_x conftest$ac_exeext; then
  17035. eval "$as_ac_var=yes"
  17036. else
  17037. echo "$as_me: failed program was:" >&5
  17038. sed 's/^/| /' conftest.$ac_ext >&5
  17039. eval "$as_ac_var=no"
  17040. fi
  17041. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17042. conftest$ac_exeext conftest.$ac_ext
  17043. fi
  17044. ac_res=`eval echo '${'$as_ac_var'}'`
  17045. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17046. echo "${ECHO_T}$ac_res" >&6; }
  17047. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17048. cat >>confdefs.h <<_ACEOF
  17049. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17050. _ACEOF
  17051. fi
  17052. done
  17053. { echo "$as_me:$LINENO: checking for working mktime" >&5
  17054. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  17055. if test "${ac_cv_func_working_mktime+set}" = set; then
  17056. echo $ECHO_N "(cached) $ECHO_C" >&6
  17057. else
  17058. if test "$cross_compiling" = yes; then
  17059. ac_cv_func_working_mktime=no
  17060. else
  17061. cat >conftest.$ac_ext <<_ACEOF
  17062. /* confdefs.h. */
  17063. _ACEOF
  17064. cat confdefs.h >>conftest.$ac_ext
  17065. cat >>conftest.$ac_ext <<_ACEOF
  17066. /* end confdefs.h. */
  17067. /* Test program from Paul Eggert and Tony Leneis. */
  17068. #ifdef TIME_WITH_SYS_TIME
  17069. # include <sys/time.h>
  17070. # include <time.h>
  17071. #else
  17072. # ifdef HAVE_SYS_TIME_H
  17073. # include <sys/time.h>
  17074. # else
  17075. # include <time.h>
  17076. # endif
  17077. #endif
  17078. #include <limits.h>
  17079. #include <stdlib.h>
  17080. #ifdef HAVE_UNISTD_H
  17081. # include <unistd.h>
  17082. #endif
  17083. #ifndef HAVE_ALARM
  17084. # define alarm(X) /* empty */
  17085. #endif
  17086. /* Work around redefinition to rpl_putenv by other config tests. */
  17087. #undef putenv
  17088. static time_t time_t_max;
  17089. static time_t time_t_min;
  17090. /* Values we'll use to set the TZ environment variable. */
  17091. static char *tz_strings[] = {
  17092. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17093. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17094. };
  17095. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17096. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17097. Based on a problem report from Andreas Jaeger. */
  17098. static int
  17099. spring_forward_gap ()
  17100. {
  17101. /* glibc (up to about 1998-10-07) failed this test. */
  17102. struct tm tm;
  17103. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17104. instead of "TZ=America/Vancouver" in order to detect the bug even
  17105. on systems that don't support the Olson extension, or don't have the
  17106. full zoneinfo tables installed. */
  17107. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17108. tm.tm_year = 98;
  17109. tm.tm_mon = 3;
  17110. tm.tm_mday = 5;
  17111. tm.tm_hour = 2;
  17112. tm.tm_min = 0;
  17113. tm.tm_sec = 0;
  17114. tm.tm_isdst = -1;
  17115. return mktime (&tm) != (time_t) -1;
  17116. }
  17117. static int
  17118. mktime_test1 (now)
  17119. time_t now;
  17120. {
  17121. struct tm *lt;
  17122. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17123. }
  17124. static int
  17125. mktime_test (now)
  17126. time_t now;
  17127. {
  17128. return (mktime_test1 (now)
  17129. && mktime_test1 ((time_t) (time_t_max - now))
  17130. && mktime_test1 ((time_t) (time_t_min + now)));
  17131. }
  17132. static int
  17133. irix_6_4_bug ()
  17134. {
  17135. /* Based on code from Ariel Faigon. */
  17136. struct tm tm;
  17137. tm.tm_year = 96;
  17138. tm.tm_mon = 3;
  17139. tm.tm_mday = 0;
  17140. tm.tm_hour = 0;
  17141. tm.tm_min = 0;
  17142. tm.tm_sec = 0;
  17143. tm.tm_isdst = -1;
  17144. mktime (&tm);
  17145. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17146. }
  17147. static int
  17148. bigtime_test (j)
  17149. int j;
  17150. {
  17151. struct tm tm;
  17152. time_t now;
  17153. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17154. now = mktime (&tm);
  17155. if (now != (time_t) -1)
  17156. {
  17157. struct tm *lt = localtime (&now);
  17158. if (! (lt
  17159. && lt->tm_year == tm.tm_year
  17160. && lt->tm_mon == tm.tm_mon
  17161. && lt->tm_mday == tm.tm_mday
  17162. && lt->tm_hour == tm.tm_hour
  17163. && lt->tm_min == tm.tm_min
  17164. && lt->tm_sec == tm.tm_sec
  17165. && lt->tm_yday == tm.tm_yday
  17166. && lt->tm_wday == tm.tm_wday
  17167. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17168. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17169. return 0;
  17170. }
  17171. return 1;
  17172. }
  17173. static int
  17174. year_2050_test ()
  17175. {
  17176. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17177. ignoring leap seconds. */
  17178. unsigned long int answer = 2527315200UL;
  17179. struct tm tm;
  17180. time_t t;
  17181. tm.tm_year = 2050 - 1900;
  17182. tm.tm_mon = 2 - 1;
  17183. tm.tm_mday = 1;
  17184. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17185. tm.tm_isdst = -1;
  17186. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17187. instead of "TZ=America/Vancouver" in order to detect the bug even
  17188. on systems that don't support the Olson extension, or don't have the
  17189. full zoneinfo tables installed. */
  17190. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17191. t = mktime (&tm);
  17192. /* Check that the result is either a failure, or close enough
  17193. to the correct answer that we can assume the discrepancy is
  17194. due to leap seconds. */
  17195. return (t == (time_t) -1
  17196. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17197. }
  17198. int
  17199. main ()
  17200. {
  17201. time_t t, delta;
  17202. int i, j;
  17203. /* This test makes some buggy mktime implementations loop.
  17204. Give up after 60 seconds; a mktime slower than that
  17205. isn't worth using anyway. */
  17206. alarm (60);
  17207. for (;;)
  17208. {
  17209. t = (time_t_max << 1) + 1;
  17210. if (t <= time_t_max)
  17211. break;
  17212. time_t_max = t;
  17213. }
  17214. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17215. delta = time_t_max / 997; /* a suitable prime number */
  17216. for (i = 0; i < N_STRINGS; i++)
  17217. {
  17218. if (tz_strings[i])
  17219. putenv (tz_strings[i]);
  17220. for (t = 0; t <= time_t_max - delta; t += delta)
  17221. if (! mktime_test (t))
  17222. return 1;
  17223. if (! (mktime_test ((time_t) 1)
  17224. && mktime_test ((time_t) (60 * 60))
  17225. && mktime_test ((time_t) (60 * 60 * 24))))
  17226. return 1;
  17227. for (j = 1; ; j <<= 1)
  17228. if (! bigtime_test (j))
  17229. return 1;
  17230. else if (INT_MAX / 2 < j)
  17231. break;
  17232. if (! bigtime_test (INT_MAX))
  17233. return 1;
  17234. }
  17235. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17236. }
  17237. _ACEOF
  17238. rm -f conftest$ac_exeext
  17239. if { (ac_try="$ac_link"
  17240. case "(($ac_try" in
  17241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17242. *) ac_try_echo=$ac_try;;
  17243. esac
  17244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17245. (eval "$ac_link") 2>&5
  17246. ac_status=$?
  17247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17248. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17249. { (case "(($ac_try" in
  17250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17251. *) ac_try_echo=$ac_try;;
  17252. esac
  17253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17254. (eval "$ac_try") 2>&5
  17255. ac_status=$?
  17256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17257. (exit $ac_status); }; }; then
  17258. ac_cv_func_working_mktime=yes
  17259. else
  17260. echo "$as_me: program exited with status $ac_status" >&5
  17261. echo "$as_me: failed program was:" >&5
  17262. sed 's/^/| /' conftest.$ac_ext >&5
  17263. ( exit $ac_status )
  17264. ac_cv_func_working_mktime=no
  17265. fi
  17266. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17267. fi
  17268. fi
  17269. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17270. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17271. if test $ac_cv_func_working_mktime = no; then
  17272. case " $LIBOBJS " in
  17273. *" mktime.$ac_objext "* ) ;;
  17274. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17275. ;;
  17276. esac
  17277. fi
  17278. for ac_header in stdlib.h unistd.h
  17279. do
  17280. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17281. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17282. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17283. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17284. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17285. echo $ECHO_N "(cached) $ECHO_C" >&6
  17286. fi
  17287. ac_res=`eval echo '${'$as_ac_Header'}'`
  17288. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17289. echo "${ECHO_T}$ac_res" >&6; }
  17290. else
  17291. # Is the header compilable?
  17292. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17293. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17294. cat >conftest.$ac_ext <<_ACEOF
  17295. /* confdefs.h. */
  17296. _ACEOF
  17297. cat confdefs.h >>conftest.$ac_ext
  17298. cat >>conftest.$ac_ext <<_ACEOF
  17299. /* end confdefs.h. */
  17300. $ac_includes_default
  17301. #include <$ac_header>
  17302. _ACEOF
  17303. rm -f conftest.$ac_objext
  17304. if { (ac_try="$ac_compile"
  17305. case "(($ac_try" in
  17306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17307. *) ac_try_echo=$ac_try;;
  17308. esac
  17309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17310. (eval "$ac_compile") 2>conftest.er1
  17311. ac_status=$?
  17312. grep -v '^ *+' conftest.er1 >conftest.err
  17313. rm -f conftest.er1
  17314. cat conftest.err >&5
  17315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17316. (exit $ac_status); } && {
  17317. test -z "$ac_cxx_werror_flag" ||
  17318. test ! -s conftest.err
  17319. } && test -s conftest.$ac_objext; then
  17320. ac_header_compiler=yes
  17321. else
  17322. echo "$as_me: failed program was:" >&5
  17323. sed 's/^/| /' conftest.$ac_ext >&5
  17324. ac_header_compiler=no
  17325. fi
  17326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17327. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17328. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17329. # Is the header present?
  17330. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17331. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17332. cat >conftest.$ac_ext <<_ACEOF
  17333. /* confdefs.h. */
  17334. _ACEOF
  17335. cat confdefs.h >>conftest.$ac_ext
  17336. cat >>conftest.$ac_ext <<_ACEOF
  17337. /* end confdefs.h. */
  17338. #include <$ac_header>
  17339. _ACEOF
  17340. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17341. case "(($ac_try" in
  17342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17343. *) ac_try_echo=$ac_try;;
  17344. esac
  17345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17346. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17347. ac_status=$?
  17348. grep -v '^ *+' conftest.er1 >conftest.err
  17349. rm -f conftest.er1
  17350. cat conftest.err >&5
  17351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17352. (exit $ac_status); } >/dev/null && {
  17353. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17354. test ! -s conftest.err
  17355. }; then
  17356. ac_header_preproc=yes
  17357. else
  17358. echo "$as_me: failed program was:" >&5
  17359. sed 's/^/| /' conftest.$ac_ext >&5
  17360. ac_header_preproc=no
  17361. fi
  17362. rm -f conftest.err conftest.$ac_ext
  17363. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17364. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17365. # So? What about this header?
  17366. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17367. yes:no: )
  17368. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17369. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17370. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17371. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17372. ac_header_preproc=yes
  17373. ;;
  17374. no:yes:* )
  17375. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17376. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17377. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17378. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17379. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17380. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17381. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17382. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17383. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17384. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17385. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17386. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17387. ( cat <<\_ASBOX
  17388. ## ----------------------------------------------- ##
  17389. ## Report this to t-tujikawa@users.sourceforge.net ##
  17390. ## ----------------------------------------------- ##
  17391. _ASBOX
  17392. ) | sed "s/^/$as_me: WARNING: /" >&2
  17393. ;;
  17394. esac
  17395. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17396. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17397. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17398. echo $ECHO_N "(cached) $ECHO_C" >&6
  17399. else
  17400. eval "$as_ac_Header=\$ac_header_preproc"
  17401. fi
  17402. ac_res=`eval echo '${'$as_ac_Header'}'`
  17403. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17404. echo "${ECHO_T}$ac_res" >&6; }
  17405. fi
  17406. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17407. cat >>confdefs.h <<_ACEOF
  17408. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17409. _ACEOF
  17410. fi
  17411. done
  17412. for ac_func in getpagesize
  17413. do
  17414. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17415. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17416. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17417. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17418. echo $ECHO_N "(cached) $ECHO_C" >&6
  17419. else
  17420. cat >conftest.$ac_ext <<_ACEOF
  17421. /* confdefs.h. */
  17422. _ACEOF
  17423. cat confdefs.h >>conftest.$ac_ext
  17424. cat >>conftest.$ac_ext <<_ACEOF
  17425. /* end confdefs.h. */
  17426. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17427. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17428. #define $ac_func innocuous_$ac_func
  17429. /* System header to define __stub macros and hopefully few prototypes,
  17430. which can conflict with char $ac_func (); below.
  17431. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17432. <limits.h> exists even on freestanding compilers. */
  17433. #ifdef __STDC__
  17434. # include <limits.h>
  17435. #else
  17436. # include <assert.h>
  17437. #endif
  17438. #undef $ac_func
  17439. /* Override any GCC internal prototype to avoid an error.
  17440. Use char because int might match the return type of a GCC
  17441. builtin and then its argument prototype would still apply. */
  17442. #ifdef __cplusplus
  17443. extern "C"
  17444. #endif
  17445. char $ac_func ();
  17446. /* The GNU C library defines this for functions which it implements
  17447. to always fail with ENOSYS. Some functions are actually named
  17448. something starting with __ and the normal name is an alias. */
  17449. #if defined __stub_$ac_func || defined __stub___$ac_func
  17450. choke me
  17451. #endif
  17452. int
  17453. main ()
  17454. {
  17455. return $ac_func ();
  17456. ;
  17457. return 0;
  17458. }
  17459. _ACEOF
  17460. rm -f conftest.$ac_objext conftest$ac_exeext
  17461. if { (ac_try="$ac_link"
  17462. case "(($ac_try" in
  17463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17464. *) ac_try_echo=$ac_try;;
  17465. esac
  17466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17467. (eval "$ac_link") 2>conftest.er1
  17468. ac_status=$?
  17469. grep -v '^ *+' conftest.er1 >conftest.err
  17470. rm -f conftest.er1
  17471. cat conftest.err >&5
  17472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17473. (exit $ac_status); } && {
  17474. test -z "$ac_cxx_werror_flag" ||
  17475. test ! -s conftest.err
  17476. } && test -s conftest$ac_exeext &&
  17477. $as_test_x conftest$ac_exeext; then
  17478. eval "$as_ac_var=yes"
  17479. else
  17480. echo "$as_me: failed program was:" >&5
  17481. sed 's/^/| /' conftest.$ac_ext >&5
  17482. eval "$as_ac_var=no"
  17483. fi
  17484. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17485. conftest$ac_exeext conftest.$ac_ext
  17486. fi
  17487. ac_res=`eval echo '${'$as_ac_var'}'`
  17488. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17489. echo "${ECHO_T}$ac_res" >&6; }
  17490. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17491. cat >>confdefs.h <<_ACEOF
  17492. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17493. _ACEOF
  17494. fi
  17495. done
  17496. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17497. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17498. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17499. echo $ECHO_N "(cached) $ECHO_C" >&6
  17500. else
  17501. if test "$cross_compiling" = yes; then
  17502. ac_cv_func_mmap_fixed_mapped=no
  17503. else
  17504. cat >conftest.$ac_ext <<_ACEOF
  17505. /* confdefs.h. */
  17506. _ACEOF
  17507. cat confdefs.h >>conftest.$ac_ext
  17508. cat >>conftest.$ac_ext <<_ACEOF
  17509. /* end confdefs.h. */
  17510. $ac_includes_default
  17511. /* malloc might have been renamed as rpl_malloc. */
  17512. #undef malloc
  17513. /* Thanks to Mike Haertel and Jim Avera for this test.
  17514. Here is a matrix of mmap possibilities:
  17515. mmap private not fixed
  17516. mmap private fixed at somewhere currently unmapped
  17517. mmap private fixed at somewhere already mapped
  17518. mmap shared not fixed
  17519. mmap shared fixed at somewhere currently unmapped
  17520. mmap shared fixed at somewhere already mapped
  17521. For private mappings, we should verify that changes cannot be read()
  17522. back from the file, nor mmap's back from the file at a different
  17523. address. (There have been systems where private was not correctly
  17524. implemented like the infamous i386 svr4.0, and systems where the
  17525. VM page cache was not coherent with the file system buffer cache
  17526. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17527. For shared mappings, we should conversely verify that changes get
  17528. propagated back to all the places they're supposed to be.
  17529. Grep wants private fixed already mapped.
  17530. The main things grep needs to know about mmap are:
  17531. * does it exist and is it safe to write into the mmap'd area
  17532. * how to use it (BSD variants) */
  17533. #include <fcntl.h>
  17534. #include <sys/mman.h>
  17535. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17536. char *malloc ();
  17537. #endif
  17538. /* This mess was copied from the GNU getpagesize.h. */
  17539. #ifndef HAVE_GETPAGESIZE
  17540. /* Assume that all systems that can run configure have sys/param.h. */
  17541. # ifndef HAVE_SYS_PARAM_H
  17542. # define HAVE_SYS_PARAM_H 1
  17543. # endif
  17544. # ifdef _SC_PAGESIZE
  17545. # define getpagesize() sysconf(_SC_PAGESIZE)
  17546. # else /* no _SC_PAGESIZE */
  17547. # ifdef HAVE_SYS_PARAM_H
  17548. # include <sys/param.h>
  17549. # ifdef EXEC_PAGESIZE
  17550. # define getpagesize() EXEC_PAGESIZE
  17551. # else /* no EXEC_PAGESIZE */
  17552. # ifdef NBPG
  17553. # define getpagesize() NBPG * CLSIZE
  17554. # ifndef CLSIZE
  17555. # define CLSIZE 1
  17556. # endif /* no CLSIZE */
  17557. # else /* no NBPG */
  17558. # ifdef NBPC
  17559. # define getpagesize() NBPC
  17560. # else /* no NBPC */
  17561. # ifdef PAGESIZE
  17562. # define getpagesize() PAGESIZE
  17563. # endif /* PAGESIZE */
  17564. # endif /* no NBPC */
  17565. # endif /* no NBPG */
  17566. # endif /* no EXEC_PAGESIZE */
  17567. # else /* no HAVE_SYS_PARAM_H */
  17568. # define getpagesize() 8192 /* punt totally */
  17569. # endif /* no HAVE_SYS_PARAM_H */
  17570. # endif /* no _SC_PAGESIZE */
  17571. #endif /* no HAVE_GETPAGESIZE */
  17572. int
  17573. main ()
  17574. {
  17575. char *data, *data2, *data3;
  17576. int i, pagesize;
  17577. int fd;
  17578. pagesize = getpagesize ();
  17579. /* First, make a file with some known garbage in it. */
  17580. data = (char *) malloc (pagesize);
  17581. if (!data)
  17582. return 1;
  17583. for (i = 0; i < pagesize; ++i)
  17584. *(data + i) = rand ();
  17585. umask (0);
  17586. fd = creat ("conftest.mmap", 0600);
  17587. if (fd < 0)
  17588. return 1;
  17589. if (write (fd, data, pagesize) != pagesize)
  17590. return 1;
  17591. close (fd);
  17592. /* Next, try to mmap the file at a fixed address which already has
  17593. something else allocated at it. If we can, also make sure that
  17594. we see the same garbage. */
  17595. fd = open ("conftest.mmap", O_RDWR);
  17596. if (fd < 0)
  17597. return 1;
  17598. data2 = (char *) malloc (2 * pagesize);
  17599. if (!data2)
  17600. return 1;
  17601. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17602. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17603. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17604. return 1;
  17605. for (i = 0; i < pagesize; ++i)
  17606. if (*(data + i) != *(data2 + i))
  17607. return 1;
  17608. /* Finally, make sure that changes to the mapped area do not
  17609. percolate back to the file as seen by read(). (This is a bug on
  17610. some variants of i386 svr4.0.) */
  17611. for (i = 0; i < pagesize; ++i)
  17612. *(data2 + i) = *(data2 + i) + 1;
  17613. data3 = (char *) malloc (pagesize);
  17614. if (!data3)
  17615. return 1;
  17616. if (read (fd, data3, pagesize) != pagesize)
  17617. return 1;
  17618. for (i = 0; i < pagesize; ++i)
  17619. if (*(data + i) != *(data3 + i))
  17620. return 1;
  17621. close (fd);
  17622. return 0;
  17623. }
  17624. _ACEOF
  17625. rm -f conftest$ac_exeext
  17626. if { (ac_try="$ac_link"
  17627. case "(($ac_try" in
  17628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17629. *) ac_try_echo=$ac_try;;
  17630. esac
  17631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17632. (eval "$ac_link") 2>&5
  17633. ac_status=$?
  17634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17635. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17636. { (case "(($ac_try" in
  17637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17638. *) ac_try_echo=$ac_try;;
  17639. esac
  17640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17641. (eval "$ac_try") 2>&5
  17642. ac_status=$?
  17643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17644. (exit $ac_status); }; }; then
  17645. ac_cv_func_mmap_fixed_mapped=yes
  17646. else
  17647. echo "$as_me: program exited with status $ac_status" >&5
  17648. echo "$as_me: failed program was:" >&5
  17649. sed 's/^/| /' conftest.$ac_ext >&5
  17650. ( exit $ac_status )
  17651. ac_cv_func_mmap_fixed_mapped=no
  17652. fi
  17653. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17654. fi
  17655. fi
  17656. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17657. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17658. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17659. cat >>confdefs.h <<\_ACEOF
  17660. #define HAVE_MMAP 1
  17661. _ACEOF
  17662. fi
  17663. rm -f conftest.mmap
  17664. for ac_header in sys/select.h sys/socket.h
  17665. do
  17666. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17668. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17669. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17670. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17671. echo $ECHO_N "(cached) $ECHO_C" >&6
  17672. fi
  17673. ac_res=`eval echo '${'$as_ac_Header'}'`
  17674. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17675. echo "${ECHO_T}$ac_res" >&6; }
  17676. else
  17677. # Is the header compilable?
  17678. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17679. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17680. cat >conftest.$ac_ext <<_ACEOF
  17681. /* confdefs.h. */
  17682. _ACEOF
  17683. cat confdefs.h >>conftest.$ac_ext
  17684. cat >>conftest.$ac_ext <<_ACEOF
  17685. /* end confdefs.h. */
  17686. $ac_includes_default
  17687. #include <$ac_header>
  17688. _ACEOF
  17689. rm -f conftest.$ac_objext
  17690. if { (ac_try="$ac_compile"
  17691. case "(($ac_try" in
  17692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17693. *) ac_try_echo=$ac_try;;
  17694. esac
  17695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17696. (eval "$ac_compile") 2>conftest.er1
  17697. ac_status=$?
  17698. grep -v '^ *+' conftest.er1 >conftest.err
  17699. rm -f conftest.er1
  17700. cat conftest.err >&5
  17701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17702. (exit $ac_status); } && {
  17703. test -z "$ac_cxx_werror_flag" ||
  17704. test ! -s conftest.err
  17705. } && test -s conftest.$ac_objext; then
  17706. ac_header_compiler=yes
  17707. else
  17708. echo "$as_me: failed program was:" >&5
  17709. sed 's/^/| /' conftest.$ac_ext >&5
  17710. ac_header_compiler=no
  17711. fi
  17712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17713. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17714. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17715. # Is the header present?
  17716. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17717. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17718. cat >conftest.$ac_ext <<_ACEOF
  17719. /* confdefs.h. */
  17720. _ACEOF
  17721. cat confdefs.h >>conftest.$ac_ext
  17722. cat >>conftest.$ac_ext <<_ACEOF
  17723. /* end confdefs.h. */
  17724. #include <$ac_header>
  17725. _ACEOF
  17726. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17727. case "(($ac_try" in
  17728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17729. *) ac_try_echo=$ac_try;;
  17730. esac
  17731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17733. ac_status=$?
  17734. grep -v '^ *+' conftest.er1 >conftest.err
  17735. rm -f conftest.er1
  17736. cat conftest.err >&5
  17737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17738. (exit $ac_status); } >/dev/null && {
  17739. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17740. test ! -s conftest.err
  17741. }; then
  17742. ac_header_preproc=yes
  17743. else
  17744. echo "$as_me: failed program was:" >&5
  17745. sed 's/^/| /' conftest.$ac_ext >&5
  17746. ac_header_preproc=no
  17747. fi
  17748. rm -f conftest.err conftest.$ac_ext
  17749. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17750. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17751. # So? What about this header?
  17752. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17753. yes:no: )
  17754. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17755. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17756. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17757. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17758. ac_header_preproc=yes
  17759. ;;
  17760. no:yes:* )
  17761. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17762. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17763. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17764. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17765. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17766. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17767. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17768. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17769. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17770. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17771. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17772. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17773. ( cat <<\_ASBOX
  17774. ## ----------------------------------------------- ##
  17775. ## Report this to t-tujikawa@users.sourceforge.net ##
  17776. ## ----------------------------------------------- ##
  17777. _ASBOX
  17778. ) | sed "s/^/$as_me: WARNING: /" >&2
  17779. ;;
  17780. esac
  17781. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17782. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17783. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17784. echo $ECHO_N "(cached) $ECHO_C" >&6
  17785. else
  17786. eval "$as_ac_Header=\$ac_header_preproc"
  17787. fi
  17788. ac_res=`eval echo '${'$as_ac_Header'}'`
  17789. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17790. echo "${ECHO_T}$ac_res" >&6; }
  17791. fi
  17792. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17793. cat >>confdefs.h <<_ACEOF
  17794. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17795. _ACEOF
  17796. fi
  17797. done
  17798. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17799. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17800. if test "${ac_cv_func_select_args+set}" = set; then
  17801. echo $ECHO_N "(cached) $ECHO_C" >&6
  17802. else
  17803. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17804. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17805. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17806. cat >conftest.$ac_ext <<_ACEOF
  17807. /* confdefs.h. */
  17808. _ACEOF
  17809. cat confdefs.h >>conftest.$ac_ext
  17810. cat >>conftest.$ac_ext <<_ACEOF
  17811. /* end confdefs.h. */
  17812. $ac_includes_default
  17813. #ifdef HAVE_SYS_SELECT_H
  17814. # include <sys/select.h>
  17815. #endif
  17816. #ifdef HAVE_SYS_SOCKET_H
  17817. # include <sys/socket.h>
  17818. #endif
  17819. int
  17820. main ()
  17821. {
  17822. extern int select ($ac_arg1,
  17823. $ac_arg234, $ac_arg234, $ac_arg234,
  17824. $ac_arg5);
  17825. ;
  17826. return 0;
  17827. }
  17828. _ACEOF
  17829. rm -f conftest.$ac_objext
  17830. if { (ac_try="$ac_compile"
  17831. case "(($ac_try" in
  17832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17833. *) ac_try_echo=$ac_try;;
  17834. esac
  17835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17836. (eval "$ac_compile") 2>conftest.er1
  17837. ac_status=$?
  17838. grep -v '^ *+' conftest.er1 >conftest.err
  17839. rm -f conftest.er1
  17840. cat conftest.err >&5
  17841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17842. (exit $ac_status); } && {
  17843. test -z "$ac_cxx_werror_flag" ||
  17844. test ! -s conftest.err
  17845. } && test -s conftest.$ac_objext; then
  17846. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17847. else
  17848. echo "$as_me: failed program was:" >&5
  17849. sed 's/^/| /' conftest.$ac_ext >&5
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17852. done
  17853. done
  17854. done
  17855. # Provide a safe default value.
  17856. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17857. fi
  17858. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17859. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17860. ac_save_IFS=$IFS; IFS=','
  17861. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17862. IFS=$ac_save_IFS
  17863. shift
  17864. cat >>confdefs.h <<_ACEOF
  17865. #define SELECT_TYPE_ARG1 $1
  17866. _ACEOF
  17867. cat >>confdefs.h <<_ACEOF
  17868. #define SELECT_TYPE_ARG234 ($2)
  17869. _ACEOF
  17870. cat >>confdefs.h <<_ACEOF
  17871. #define SELECT_TYPE_ARG5 ($3)
  17872. _ACEOF
  17873. rm -f conftest*
  17874. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17875. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17876. if test "${ac_cv_type_signal+set}" = set; then
  17877. echo $ECHO_N "(cached) $ECHO_C" >&6
  17878. else
  17879. cat >conftest.$ac_ext <<_ACEOF
  17880. /* confdefs.h. */
  17881. _ACEOF
  17882. cat confdefs.h >>conftest.$ac_ext
  17883. cat >>conftest.$ac_ext <<_ACEOF
  17884. /* end confdefs.h. */
  17885. #include <sys/types.h>
  17886. #include <signal.h>
  17887. int
  17888. main ()
  17889. {
  17890. return *(signal (0, 0)) (0) == 1;
  17891. ;
  17892. return 0;
  17893. }
  17894. _ACEOF
  17895. rm -f conftest.$ac_objext
  17896. if { (ac_try="$ac_compile"
  17897. case "(($ac_try" in
  17898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17899. *) ac_try_echo=$ac_try;;
  17900. esac
  17901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17902. (eval "$ac_compile") 2>conftest.er1
  17903. ac_status=$?
  17904. grep -v '^ *+' conftest.er1 >conftest.err
  17905. rm -f conftest.er1
  17906. cat conftest.err >&5
  17907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17908. (exit $ac_status); } && {
  17909. test -z "$ac_cxx_werror_flag" ||
  17910. test ! -s conftest.err
  17911. } && test -s conftest.$ac_objext; then
  17912. ac_cv_type_signal=int
  17913. else
  17914. echo "$as_me: failed program was:" >&5
  17915. sed 's/^/| /' conftest.$ac_ext >&5
  17916. ac_cv_type_signal=void
  17917. fi
  17918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17919. fi
  17920. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17921. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17922. cat >>confdefs.h <<_ACEOF
  17923. #define RETSIGTYPE $ac_cv_type_signal
  17924. _ACEOF
  17925. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17926. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17927. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17928. echo $ECHO_N "(cached) $ECHO_C" >&6
  17929. else
  17930. rm -f conftest.sym conftest.file
  17931. echo >conftest.file
  17932. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17933. if test "$cross_compiling" = yes; then
  17934. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17935. else
  17936. cat >conftest.$ac_ext <<_ACEOF
  17937. /* confdefs.h. */
  17938. _ACEOF
  17939. cat confdefs.h >>conftest.$ac_ext
  17940. cat >>conftest.$ac_ext <<_ACEOF
  17941. /* end confdefs.h. */
  17942. $ac_includes_default
  17943. int
  17944. main ()
  17945. {
  17946. struct stat sbuf;
  17947. /* Linux will dereference the symlink and fail.
  17948. That is better in the sense that it means we will not
  17949. have to compile and use the lstat wrapper. */
  17950. return lstat ("conftest.sym/", &sbuf) == 0;
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. rm -f conftest$ac_exeext
  17956. if { (ac_try="$ac_link"
  17957. case "(($ac_try" in
  17958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17959. *) ac_try_echo=$ac_try;;
  17960. esac
  17961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17962. (eval "$ac_link") 2>&5
  17963. ac_status=$?
  17964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17965. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17966. { (case "(($ac_try" in
  17967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17968. *) ac_try_echo=$ac_try;;
  17969. esac
  17970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17971. (eval "$ac_try") 2>&5
  17972. ac_status=$?
  17973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17974. (exit $ac_status); }; }; then
  17975. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17976. else
  17977. echo "$as_me: program exited with status $ac_status" >&5
  17978. echo "$as_me: failed program was:" >&5
  17979. sed 's/^/| /' conftest.$ac_ext >&5
  17980. ( exit $ac_status )
  17981. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17982. fi
  17983. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17984. fi
  17985. else
  17986. # If the `ln -s' command failed, then we probably don't even
  17987. # have an lstat function.
  17988. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17989. fi
  17990. rm -f conftest.sym conftest.file
  17991. fi
  17992. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17993. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17994. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17995. cat >>confdefs.h <<_ACEOF
  17996. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17997. _ACEOF
  17998. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17999. case " $LIBOBJS " in
  18000. *" lstat.$ac_objext "* ) ;;
  18001. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18002. ;;
  18003. esac
  18004. fi
  18005. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18006. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  18007. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18008. echo $ECHO_N "(cached) $ECHO_C" >&6
  18009. else
  18010. if test "$cross_compiling" = yes; then
  18011. ac_cv_func_stat_empty_string_bug=yes
  18012. else
  18013. cat >conftest.$ac_ext <<_ACEOF
  18014. /* confdefs.h. */
  18015. _ACEOF
  18016. cat confdefs.h >>conftest.$ac_ext
  18017. cat >>conftest.$ac_ext <<_ACEOF
  18018. /* end confdefs.h. */
  18019. $ac_includes_default
  18020. int
  18021. main ()
  18022. {
  18023. struct stat sbuf;
  18024. return stat ("", &sbuf) == 0;
  18025. ;
  18026. return 0;
  18027. }
  18028. _ACEOF
  18029. rm -f conftest$ac_exeext
  18030. if { (ac_try="$ac_link"
  18031. case "(($ac_try" in
  18032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18033. *) ac_try_echo=$ac_try;;
  18034. esac
  18035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18036. (eval "$ac_link") 2>&5
  18037. ac_status=$?
  18038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18039. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18040. { (case "(($ac_try" in
  18041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18042. *) ac_try_echo=$ac_try;;
  18043. esac
  18044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18045. (eval "$ac_try") 2>&5
  18046. ac_status=$?
  18047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18048. (exit $ac_status); }; }; then
  18049. ac_cv_func_stat_empty_string_bug=no
  18050. else
  18051. echo "$as_me: program exited with status $ac_status" >&5
  18052. echo "$as_me: failed program was:" >&5
  18053. sed 's/^/| /' conftest.$ac_ext >&5
  18054. ( exit $ac_status )
  18055. ac_cv_func_stat_empty_string_bug=yes
  18056. fi
  18057. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18058. fi
  18059. fi
  18060. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18061. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  18062. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18063. case " $LIBOBJS " in
  18064. *" stat.$ac_objext "* ) ;;
  18065. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18066. ;;
  18067. esac
  18068. cat >>confdefs.h <<_ACEOF
  18069. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18070. _ACEOF
  18071. fi
  18072. for ac_func in strftime
  18073. do
  18074. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18075. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18076. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18077. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18078. echo $ECHO_N "(cached) $ECHO_C" >&6
  18079. else
  18080. cat >conftest.$ac_ext <<_ACEOF
  18081. /* confdefs.h. */
  18082. _ACEOF
  18083. cat confdefs.h >>conftest.$ac_ext
  18084. cat >>conftest.$ac_ext <<_ACEOF
  18085. /* end confdefs.h. */
  18086. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18087. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18088. #define $ac_func innocuous_$ac_func
  18089. /* System header to define __stub macros and hopefully few prototypes,
  18090. which can conflict with char $ac_func (); below.
  18091. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18092. <limits.h> exists even on freestanding compilers. */
  18093. #ifdef __STDC__
  18094. # include <limits.h>
  18095. #else
  18096. # include <assert.h>
  18097. #endif
  18098. #undef $ac_func
  18099. /* Override any GCC internal prototype to avoid an error.
  18100. Use char because int might match the return type of a GCC
  18101. builtin and then its argument prototype would still apply. */
  18102. #ifdef __cplusplus
  18103. extern "C"
  18104. #endif
  18105. char $ac_func ();
  18106. /* The GNU C library defines this for functions which it implements
  18107. to always fail with ENOSYS. Some functions are actually named
  18108. something starting with __ and the normal name is an alias. */
  18109. #if defined __stub_$ac_func || defined __stub___$ac_func
  18110. choke me
  18111. #endif
  18112. int
  18113. main ()
  18114. {
  18115. return $ac_func ();
  18116. ;
  18117. return 0;
  18118. }
  18119. _ACEOF
  18120. rm -f conftest.$ac_objext conftest$ac_exeext
  18121. if { (ac_try="$ac_link"
  18122. case "(($ac_try" in
  18123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18124. *) ac_try_echo=$ac_try;;
  18125. esac
  18126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18127. (eval "$ac_link") 2>conftest.er1
  18128. ac_status=$?
  18129. grep -v '^ *+' conftest.er1 >conftest.err
  18130. rm -f conftest.er1
  18131. cat conftest.err >&5
  18132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18133. (exit $ac_status); } && {
  18134. test -z "$ac_cxx_werror_flag" ||
  18135. test ! -s conftest.err
  18136. } && test -s conftest$ac_exeext &&
  18137. $as_test_x conftest$ac_exeext; then
  18138. eval "$as_ac_var=yes"
  18139. else
  18140. echo "$as_me: failed program was:" >&5
  18141. sed 's/^/| /' conftest.$ac_ext >&5
  18142. eval "$as_ac_var=no"
  18143. fi
  18144. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18145. conftest$ac_exeext conftest.$ac_ext
  18146. fi
  18147. ac_res=`eval echo '${'$as_ac_var'}'`
  18148. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18149. echo "${ECHO_T}$ac_res" >&6; }
  18150. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18151. cat >>confdefs.h <<_ACEOF
  18152. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18153. _ACEOF
  18154. else
  18155. # strftime is in -lintl on SCO UNIX.
  18156. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18157. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18158. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18159. echo $ECHO_N "(cached) $ECHO_C" >&6
  18160. else
  18161. ac_check_lib_save_LIBS=$LIBS
  18162. LIBS="-lintl $LIBS"
  18163. cat >conftest.$ac_ext <<_ACEOF
  18164. /* confdefs.h. */
  18165. _ACEOF
  18166. cat confdefs.h >>conftest.$ac_ext
  18167. cat >>conftest.$ac_ext <<_ACEOF
  18168. /* end confdefs.h. */
  18169. /* Override any GCC internal prototype to avoid an error.
  18170. Use char because int might match the return type of a GCC
  18171. builtin and then its argument prototype would still apply. */
  18172. #ifdef __cplusplus
  18173. extern "C"
  18174. #endif
  18175. char strftime ();
  18176. int
  18177. main ()
  18178. {
  18179. return strftime ();
  18180. ;
  18181. return 0;
  18182. }
  18183. _ACEOF
  18184. rm -f conftest.$ac_objext conftest$ac_exeext
  18185. if { (ac_try="$ac_link"
  18186. case "(($ac_try" in
  18187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18188. *) ac_try_echo=$ac_try;;
  18189. esac
  18190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18191. (eval "$ac_link") 2>conftest.er1
  18192. ac_status=$?
  18193. grep -v '^ *+' conftest.er1 >conftest.err
  18194. rm -f conftest.er1
  18195. cat conftest.err >&5
  18196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18197. (exit $ac_status); } && {
  18198. test -z "$ac_cxx_werror_flag" ||
  18199. test ! -s conftest.err
  18200. } && test -s conftest$ac_exeext &&
  18201. $as_test_x conftest$ac_exeext; then
  18202. ac_cv_lib_intl_strftime=yes
  18203. else
  18204. echo "$as_me: failed program was:" >&5
  18205. sed 's/^/| /' conftest.$ac_ext >&5
  18206. ac_cv_lib_intl_strftime=no
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18209. conftest$ac_exeext conftest.$ac_ext
  18210. LIBS=$ac_check_lib_save_LIBS
  18211. fi
  18212. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18213. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18214. if test $ac_cv_lib_intl_strftime = yes; then
  18215. cat >>confdefs.h <<\_ACEOF
  18216. #define HAVE_STRFTIME 1
  18217. _ACEOF
  18218. LIBS="-lintl $LIBS"
  18219. fi
  18220. fi
  18221. done
  18222. for ac_func in vprintf
  18223. do
  18224. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18225. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18226. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18227. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18228. echo $ECHO_N "(cached) $ECHO_C" >&6
  18229. else
  18230. cat >conftest.$ac_ext <<_ACEOF
  18231. /* confdefs.h. */
  18232. _ACEOF
  18233. cat confdefs.h >>conftest.$ac_ext
  18234. cat >>conftest.$ac_ext <<_ACEOF
  18235. /* end confdefs.h. */
  18236. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18237. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18238. #define $ac_func innocuous_$ac_func
  18239. /* System header to define __stub macros and hopefully few prototypes,
  18240. which can conflict with char $ac_func (); below.
  18241. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18242. <limits.h> exists even on freestanding compilers. */
  18243. #ifdef __STDC__
  18244. # include <limits.h>
  18245. #else
  18246. # include <assert.h>
  18247. #endif
  18248. #undef $ac_func
  18249. /* Override any GCC internal prototype to avoid an error.
  18250. Use char because int might match the return type of a GCC
  18251. builtin and then its argument prototype would still apply. */
  18252. #ifdef __cplusplus
  18253. extern "C"
  18254. #endif
  18255. char $ac_func ();
  18256. /* The GNU C library defines this for functions which it implements
  18257. to always fail with ENOSYS. Some functions are actually named
  18258. something starting with __ and the normal name is an alias. */
  18259. #if defined __stub_$ac_func || defined __stub___$ac_func
  18260. choke me
  18261. #endif
  18262. int
  18263. main ()
  18264. {
  18265. return $ac_func ();
  18266. ;
  18267. return 0;
  18268. }
  18269. _ACEOF
  18270. rm -f conftest.$ac_objext conftest$ac_exeext
  18271. if { (ac_try="$ac_link"
  18272. case "(($ac_try" in
  18273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18274. *) ac_try_echo=$ac_try;;
  18275. esac
  18276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18277. (eval "$ac_link") 2>conftest.er1
  18278. ac_status=$?
  18279. grep -v '^ *+' conftest.er1 >conftest.err
  18280. rm -f conftest.er1
  18281. cat conftest.err >&5
  18282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18283. (exit $ac_status); } && {
  18284. test -z "$ac_cxx_werror_flag" ||
  18285. test ! -s conftest.err
  18286. } && test -s conftest$ac_exeext &&
  18287. $as_test_x conftest$ac_exeext; then
  18288. eval "$as_ac_var=yes"
  18289. else
  18290. echo "$as_me: failed program was:" >&5
  18291. sed 's/^/| /' conftest.$ac_ext >&5
  18292. eval "$as_ac_var=no"
  18293. fi
  18294. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18295. conftest$ac_exeext conftest.$ac_ext
  18296. fi
  18297. ac_res=`eval echo '${'$as_ac_var'}'`
  18298. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18299. echo "${ECHO_T}$ac_res" >&6; }
  18300. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18301. cat >>confdefs.h <<_ACEOF
  18302. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18303. _ACEOF
  18304. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18305. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18306. if test "${ac_cv_func__doprnt+set}" = set; then
  18307. echo $ECHO_N "(cached) $ECHO_C" >&6
  18308. else
  18309. cat >conftest.$ac_ext <<_ACEOF
  18310. /* confdefs.h. */
  18311. _ACEOF
  18312. cat confdefs.h >>conftest.$ac_ext
  18313. cat >>conftest.$ac_ext <<_ACEOF
  18314. /* end confdefs.h. */
  18315. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18316. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18317. #define _doprnt innocuous__doprnt
  18318. /* System header to define __stub macros and hopefully few prototypes,
  18319. which can conflict with char _doprnt (); below.
  18320. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18321. <limits.h> exists even on freestanding compilers. */
  18322. #ifdef __STDC__
  18323. # include <limits.h>
  18324. #else
  18325. # include <assert.h>
  18326. #endif
  18327. #undef _doprnt
  18328. /* Override any GCC internal prototype to avoid an error.
  18329. Use char because int might match the return type of a GCC
  18330. builtin and then its argument prototype would still apply. */
  18331. #ifdef __cplusplus
  18332. extern "C"
  18333. #endif
  18334. char _doprnt ();
  18335. /* The GNU C library defines this for functions which it implements
  18336. to always fail with ENOSYS. Some functions are actually named
  18337. something starting with __ and the normal name is an alias. */
  18338. #if defined __stub__doprnt || defined __stub____doprnt
  18339. choke me
  18340. #endif
  18341. int
  18342. main ()
  18343. {
  18344. return _doprnt ();
  18345. ;
  18346. return 0;
  18347. }
  18348. _ACEOF
  18349. rm -f conftest.$ac_objext conftest$ac_exeext
  18350. if { (ac_try="$ac_link"
  18351. case "(($ac_try" in
  18352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18353. *) ac_try_echo=$ac_try;;
  18354. esac
  18355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18356. (eval "$ac_link") 2>conftest.er1
  18357. ac_status=$?
  18358. grep -v '^ *+' conftest.er1 >conftest.err
  18359. rm -f conftest.er1
  18360. cat conftest.err >&5
  18361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18362. (exit $ac_status); } && {
  18363. test -z "$ac_cxx_werror_flag" ||
  18364. test ! -s conftest.err
  18365. } && test -s conftest$ac_exeext &&
  18366. $as_test_x conftest$ac_exeext; then
  18367. ac_cv_func__doprnt=yes
  18368. else
  18369. echo "$as_me: failed program was:" >&5
  18370. sed 's/^/| /' conftest.$ac_ext >&5
  18371. ac_cv_func__doprnt=no
  18372. fi
  18373. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18374. conftest$ac_exeext conftest.$ac_ext
  18375. fi
  18376. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18377. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18378. if test $ac_cv_func__doprnt = yes; then
  18379. cat >>confdefs.h <<\_ACEOF
  18380. #define HAVE_DOPRNT 1
  18381. _ACEOF
  18382. fi
  18383. fi
  18384. done
  18385. for ac_func in __argz_count \
  18386. __argz_next \
  18387. __argz_stringify \
  18388. atexit \
  18389. daemon \
  18390. ftruncate \
  18391. getcwd \
  18392. gethostbyaddr \
  18393. gethostbyname \
  18394. getpagesize \
  18395. inet_ntoa \
  18396. memchr \
  18397. memmove \
  18398. mempcpy \
  18399. memset \
  18400. mkdir \
  18401. munmap \
  18402. nl_langinfo \
  18403. posix_memalign \
  18404. putenv \
  18405. rmdir \
  18406. select \
  18407. setlocale \
  18408. sleep \
  18409. socket \
  18410. stpcpy \
  18411. strcasecmp \
  18412. strchr \
  18413. strcspn \
  18414. strdup \
  18415. strerror \
  18416. strncasecmp \
  18417. strstr \
  18418. strtol \
  18419. strtoul \
  18420. strtoull \
  18421. tzset \
  18422. unsetenv \
  18423. usleep
  18424. do
  18425. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18426. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18427. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18428. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18429. echo $ECHO_N "(cached) $ECHO_C" >&6
  18430. else
  18431. cat >conftest.$ac_ext <<_ACEOF
  18432. /* confdefs.h. */
  18433. _ACEOF
  18434. cat confdefs.h >>conftest.$ac_ext
  18435. cat >>conftest.$ac_ext <<_ACEOF
  18436. /* end confdefs.h. */
  18437. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18438. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18439. #define $ac_func innocuous_$ac_func
  18440. /* System header to define __stub macros and hopefully few prototypes,
  18441. which can conflict with char $ac_func (); below.
  18442. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18443. <limits.h> exists even on freestanding compilers. */
  18444. #ifdef __STDC__
  18445. # include <limits.h>
  18446. #else
  18447. # include <assert.h>
  18448. #endif
  18449. #undef $ac_func
  18450. /* Override any GCC internal prototype to avoid an error.
  18451. Use char because int might match the return type of a GCC
  18452. builtin and then its argument prototype would still apply. */
  18453. #ifdef __cplusplus
  18454. extern "C"
  18455. #endif
  18456. char $ac_func ();
  18457. /* The GNU C library defines this for functions which it implements
  18458. to always fail with ENOSYS. Some functions are actually named
  18459. something starting with __ and the normal name is an alias. */
  18460. #if defined __stub_$ac_func || defined __stub___$ac_func
  18461. choke me
  18462. #endif
  18463. int
  18464. main ()
  18465. {
  18466. return $ac_func ();
  18467. ;
  18468. return 0;
  18469. }
  18470. _ACEOF
  18471. rm -f conftest.$ac_objext conftest$ac_exeext
  18472. if { (ac_try="$ac_link"
  18473. case "(($ac_try" in
  18474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18475. *) ac_try_echo=$ac_try;;
  18476. esac
  18477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18478. (eval "$ac_link") 2>conftest.er1
  18479. ac_status=$?
  18480. grep -v '^ *+' conftest.er1 >conftest.err
  18481. rm -f conftest.er1
  18482. cat conftest.err >&5
  18483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18484. (exit $ac_status); } && {
  18485. test -z "$ac_cxx_werror_flag" ||
  18486. test ! -s conftest.err
  18487. } && test -s conftest$ac_exeext &&
  18488. $as_test_x conftest$ac_exeext; then
  18489. eval "$as_ac_var=yes"
  18490. else
  18491. echo "$as_me: failed program was:" >&5
  18492. sed 's/^/| /' conftest.$ac_ext >&5
  18493. eval "$as_ac_var=no"
  18494. fi
  18495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18496. conftest$ac_exeext conftest.$ac_ext
  18497. fi
  18498. ac_res=`eval echo '${'$as_ac_var'}'`
  18499. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18500. echo "${ECHO_T}$ac_res" >&6; }
  18501. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18502. cat >>confdefs.h <<_ACEOF
  18503. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18504. _ACEOF
  18505. fi
  18506. done
  18507. if test "x$enable_epoll" = "xyes"; then
  18508. for ac_func in epoll_create
  18509. do
  18510. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18511. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18512. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18513. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18514. echo $ECHO_N "(cached) $ECHO_C" >&6
  18515. else
  18516. cat >conftest.$ac_ext <<_ACEOF
  18517. /* confdefs.h. */
  18518. _ACEOF
  18519. cat confdefs.h >>conftest.$ac_ext
  18520. cat >>conftest.$ac_ext <<_ACEOF
  18521. /* end confdefs.h. */
  18522. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18523. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18524. #define $ac_func innocuous_$ac_func
  18525. /* System header to define __stub macros and hopefully few prototypes,
  18526. which can conflict with char $ac_func (); below.
  18527. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18528. <limits.h> exists even on freestanding compilers. */
  18529. #ifdef __STDC__
  18530. # include <limits.h>
  18531. #else
  18532. # include <assert.h>
  18533. #endif
  18534. #undef $ac_func
  18535. /* Override any GCC internal prototype to avoid an error.
  18536. Use char because int might match the return type of a GCC
  18537. builtin and then its argument prototype would still apply. */
  18538. #ifdef __cplusplus
  18539. extern "C"
  18540. #endif
  18541. char $ac_func ();
  18542. /* The GNU C library defines this for functions which it implements
  18543. to always fail with ENOSYS. Some functions are actually named
  18544. something starting with __ and the normal name is an alias. */
  18545. #if defined __stub_$ac_func || defined __stub___$ac_func
  18546. choke me
  18547. #endif
  18548. int
  18549. main ()
  18550. {
  18551. return $ac_func ();
  18552. ;
  18553. return 0;
  18554. }
  18555. _ACEOF
  18556. rm -f conftest.$ac_objext conftest$ac_exeext
  18557. if { (ac_try="$ac_link"
  18558. case "(($ac_try" in
  18559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18560. *) ac_try_echo=$ac_try;;
  18561. esac
  18562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18563. (eval "$ac_link") 2>conftest.er1
  18564. ac_status=$?
  18565. grep -v '^ *+' conftest.er1 >conftest.err
  18566. rm -f conftest.er1
  18567. cat conftest.err >&5
  18568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18569. (exit $ac_status); } && {
  18570. test -z "$ac_cxx_werror_flag" ||
  18571. test ! -s conftest.err
  18572. } && test -s conftest$ac_exeext &&
  18573. $as_test_x conftest$ac_exeext; then
  18574. eval "$as_ac_var=yes"
  18575. else
  18576. echo "$as_me: failed program was:" >&5
  18577. sed 's/^/| /' conftest.$ac_ext >&5
  18578. eval "$as_ac_var=no"
  18579. fi
  18580. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18581. conftest$ac_exeext conftest.$ac_ext
  18582. fi
  18583. ac_res=`eval echo '${'$as_ac_var'}'`
  18584. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18585. echo "${ECHO_T}$ac_res" >&6; }
  18586. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18587. cat >>confdefs.h <<_ACEOF
  18588. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18589. _ACEOF
  18590. fi
  18591. done
  18592. fi
  18593. for ac_func in asctime_r
  18594. do
  18595. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18596. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18597. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18598. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18599. echo $ECHO_N "(cached) $ECHO_C" >&6
  18600. else
  18601. cat >conftest.$ac_ext <<_ACEOF
  18602. /* confdefs.h. */
  18603. _ACEOF
  18604. cat confdefs.h >>conftest.$ac_ext
  18605. cat >>conftest.$ac_ext <<_ACEOF
  18606. /* end confdefs.h. */
  18607. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18608. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18609. #define $ac_func innocuous_$ac_func
  18610. /* System header to define __stub macros and hopefully few prototypes,
  18611. which can conflict with char $ac_func (); below.
  18612. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18613. <limits.h> exists even on freestanding compilers. */
  18614. #ifdef __STDC__
  18615. # include <limits.h>
  18616. #else
  18617. # include <assert.h>
  18618. #endif
  18619. #undef $ac_func
  18620. /* Override any GCC internal prototype to avoid an error.
  18621. Use char because int might match the return type of a GCC
  18622. builtin and then its argument prototype would still apply. */
  18623. #ifdef __cplusplus
  18624. extern "C"
  18625. #endif
  18626. char $ac_func ();
  18627. /* The GNU C library defines this for functions which it implements
  18628. to always fail with ENOSYS. Some functions are actually named
  18629. something starting with __ and the normal name is an alias. */
  18630. #if defined __stub_$ac_func || defined __stub___$ac_func
  18631. choke me
  18632. #endif
  18633. int
  18634. main ()
  18635. {
  18636. return $ac_func ();
  18637. ;
  18638. return 0;
  18639. }
  18640. _ACEOF
  18641. rm -f conftest.$ac_objext conftest$ac_exeext
  18642. if { (ac_try="$ac_link"
  18643. case "(($ac_try" in
  18644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18645. *) ac_try_echo=$ac_try;;
  18646. esac
  18647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18648. (eval "$ac_link") 2>conftest.er1
  18649. ac_status=$?
  18650. grep -v '^ *+' conftest.er1 >conftest.err
  18651. rm -f conftest.er1
  18652. cat conftest.err >&5
  18653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18654. (exit $ac_status); } && {
  18655. test -z "$ac_cxx_werror_flag" ||
  18656. test ! -s conftest.err
  18657. } && test -s conftest$ac_exeext &&
  18658. $as_test_x conftest$ac_exeext; then
  18659. eval "$as_ac_var=yes"
  18660. else
  18661. echo "$as_me: failed program was:" >&5
  18662. sed 's/^/| /' conftest.$ac_ext >&5
  18663. eval "$as_ac_var=no"
  18664. fi
  18665. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18666. conftest$ac_exeext conftest.$ac_ext
  18667. fi
  18668. ac_res=`eval echo '${'$as_ac_var'}'`
  18669. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18670. echo "${ECHO_T}$ac_res" >&6; }
  18671. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18672. cat >>confdefs.h <<_ACEOF
  18673. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18674. _ACEOF
  18675. if true; then
  18676. HAVE_ASCTIME_R_TRUE=
  18677. HAVE_ASCTIME_R_FALSE='#'
  18678. else
  18679. HAVE_ASCTIME_R_TRUE='#'
  18680. HAVE_ASCTIME_R_FALSE=
  18681. fi
  18682. else
  18683. if false; then
  18684. HAVE_ASCTIME_R_TRUE=
  18685. HAVE_ASCTIME_R_FALSE='#'
  18686. else
  18687. HAVE_ASCTIME_R_TRUE='#'
  18688. HAVE_ASCTIME_R_FALSE=
  18689. fi
  18690. fi
  18691. done
  18692. for ac_func in basename
  18693. do
  18694. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18695. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18696. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18697. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18698. echo $ECHO_N "(cached) $ECHO_C" >&6
  18699. else
  18700. cat >conftest.$ac_ext <<_ACEOF
  18701. /* confdefs.h. */
  18702. _ACEOF
  18703. cat confdefs.h >>conftest.$ac_ext
  18704. cat >>conftest.$ac_ext <<_ACEOF
  18705. /* end confdefs.h. */
  18706. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18708. #define $ac_func innocuous_$ac_func
  18709. /* System header to define __stub macros and hopefully few prototypes,
  18710. which can conflict with char $ac_func (); below.
  18711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18712. <limits.h> exists even on freestanding compilers. */
  18713. #ifdef __STDC__
  18714. # include <limits.h>
  18715. #else
  18716. # include <assert.h>
  18717. #endif
  18718. #undef $ac_func
  18719. /* Override any GCC internal prototype to avoid an error.
  18720. Use char because int might match the return type of a GCC
  18721. builtin and then its argument prototype would still apply. */
  18722. #ifdef __cplusplus
  18723. extern "C"
  18724. #endif
  18725. char $ac_func ();
  18726. /* The GNU C library defines this for functions which it implements
  18727. to always fail with ENOSYS. Some functions are actually named
  18728. something starting with __ and the normal name is an alias. */
  18729. #if defined __stub_$ac_func || defined __stub___$ac_func
  18730. choke me
  18731. #endif
  18732. int
  18733. main ()
  18734. {
  18735. return $ac_func ();
  18736. ;
  18737. return 0;
  18738. }
  18739. _ACEOF
  18740. rm -f conftest.$ac_objext conftest$ac_exeext
  18741. if { (ac_try="$ac_link"
  18742. case "(($ac_try" in
  18743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18744. *) ac_try_echo=$ac_try;;
  18745. esac
  18746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18747. (eval "$ac_link") 2>conftest.er1
  18748. ac_status=$?
  18749. grep -v '^ *+' conftest.er1 >conftest.err
  18750. rm -f conftest.er1
  18751. cat conftest.err >&5
  18752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18753. (exit $ac_status); } && {
  18754. test -z "$ac_cxx_werror_flag" ||
  18755. test ! -s conftest.err
  18756. } && test -s conftest$ac_exeext &&
  18757. $as_test_x conftest$ac_exeext; then
  18758. eval "$as_ac_var=yes"
  18759. else
  18760. echo "$as_me: failed program was:" >&5
  18761. sed 's/^/| /' conftest.$ac_ext >&5
  18762. eval "$as_ac_var=no"
  18763. fi
  18764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18765. conftest$ac_exeext conftest.$ac_ext
  18766. fi
  18767. ac_res=`eval echo '${'$as_ac_var'}'`
  18768. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18769. echo "${ECHO_T}$ac_res" >&6; }
  18770. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18771. cat >>confdefs.h <<_ACEOF
  18772. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18773. _ACEOF
  18774. if true; then
  18775. HAVE_BASENAME_TRUE=
  18776. HAVE_BASENAME_FALSE='#'
  18777. else
  18778. HAVE_BASENAME_TRUE='#'
  18779. HAVE_BASENAME_FALSE=
  18780. fi
  18781. else
  18782. if false; then
  18783. HAVE_BASENAME_TRUE=
  18784. HAVE_BASENAME_FALSE='#'
  18785. else
  18786. HAVE_BASENAME_TRUE='#'
  18787. HAVE_BASENAME_FALSE=
  18788. fi
  18789. fi
  18790. done
  18791. for ac_func in gai_strerror
  18792. do
  18793. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18794. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18795. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18796. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18797. echo $ECHO_N "(cached) $ECHO_C" >&6
  18798. else
  18799. cat >conftest.$ac_ext <<_ACEOF
  18800. /* confdefs.h. */
  18801. _ACEOF
  18802. cat confdefs.h >>conftest.$ac_ext
  18803. cat >>conftest.$ac_ext <<_ACEOF
  18804. /* end confdefs.h. */
  18805. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18806. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18807. #define $ac_func innocuous_$ac_func
  18808. /* System header to define __stub macros and hopefully few prototypes,
  18809. which can conflict with char $ac_func (); below.
  18810. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18811. <limits.h> exists even on freestanding compilers. */
  18812. #ifdef __STDC__
  18813. # include <limits.h>
  18814. #else
  18815. # include <assert.h>
  18816. #endif
  18817. #undef $ac_func
  18818. /* Override any GCC internal prototype to avoid an error.
  18819. Use char because int might match the return type of a GCC
  18820. builtin and then its argument prototype would still apply. */
  18821. #ifdef __cplusplus
  18822. extern "C"
  18823. #endif
  18824. char $ac_func ();
  18825. /* The GNU C library defines this for functions which it implements
  18826. to always fail with ENOSYS. Some functions are actually named
  18827. something starting with __ and the normal name is an alias. */
  18828. #if defined __stub_$ac_func || defined __stub___$ac_func
  18829. choke me
  18830. #endif
  18831. int
  18832. main ()
  18833. {
  18834. return $ac_func ();
  18835. ;
  18836. return 0;
  18837. }
  18838. _ACEOF
  18839. rm -f conftest.$ac_objext conftest$ac_exeext
  18840. if { (ac_try="$ac_link"
  18841. case "(($ac_try" in
  18842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18843. *) ac_try_echo=$ac_try;;
  18844. esac
  18845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18846. (eval "$ac_link") 2>conftest.er1
  18847. ac_status=$?
  18848. grep -v '^ *+' conftest.er1 >conftest.err
  18849. rm -f conftest.er1
  18850. cat conftest.err >&5
  18851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18852. (exit $ac_status); } && {
  18853. test -z "$ac_cxx_werror_flag" ||
  18854. test ! -s conftest.err
  18855. } && test -s conftest$ac_exeext &&
  18856. $as_test_x conftest$ac_exeext; then
  18857. eval "$as_ac_var=yes"
  18858. else
  18859. echo "$as_me: failed program was:" >&5
  18860. sed 's/^/| /' conftest.$ac_ext >&5
  18861. eval "$as_ac_var=no"
  18862. fi
  18863. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18864. conftest$ac_exeext conftest.$ac_ext
  18865. fi
  18866. ac_res=`eval echo '${'$as_ac_var'}'`
  18867. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18868. echo "${ECHO_T}$ac_res" >&6; }
  18869. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18870. cat >>confdefs.h <<_ACEOF
  18871. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18872. _ACEOF
  18873. if true; then
  18874. HAVE_GAI_STRERROR_TRUE=
  18875. HAVE_GAI_STRERROR_FALSE='#'
  18876. else
  18877. HAVE_GAI_STRERROR_TRUE='#'
  18878. HAVE_GAI_STRERROR_FALSE=
  18879. fi
  18880. else
  18881. if false; then
  18882. HAVE_GAI_STRERROR_TRUE=
  18883. HAVE_GAI_STRERROR_FALSE='#'
  18884. else
  18885. HAVE_GAI_STRERROR_TRUE='#'
  18886. HAVE_GAI_STRERROR_FALSE=
  18887. fi
  18888. fi
  18889. done
  18890. for ac_func in getaddrinfo
  18891. do
  18892. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18893. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18894. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18895. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18896. echo $ECHO_N "(cached) $ECHO_C" >&6
  18897. else
  18898. cat >conftest.$ac_ext <<_ACEOF
  18899. /* confdefs.h. */
  18900. _ACEOF
  18901. cat confdefs.h >>conftest.$ac_ext
  18902. cat >>conftest.$ac_ext <<_ACEOF
  18903. /* end confdefs.h. */
  18904. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18905. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18906. #define $ac_func innocuous_$ac_func
  18907. /* System header to define __stub macros and hopefully few prototypes,
  18908. which can conflict with char $ac_func (); below.
  18909. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18910. <limits.h> exists even on freestanding compilers. */
  18911. #ifdef __STDC__
  18912. # include <limits.h>
  18913. #else
  18914. # include <assert.h>
  18915. #endif
  18916. #undef $ac_func
  18917. /* Override any GCC internal prototype to avoid an error.
  18918. Use char because int might match the return type of a GCC
  18919. builtin and then its argument prototype would still apply. */
  18920. #ifdef __cplusplus
  18921. extern "C"
  18922. #endif
  18923. char $ac_func ();
  18924. /* The GNU C library defines this for functions which it implements
  18925. to always fail with ENOSYS. Some functions are actually named
  18926. something starting with __ and the normal name is an alias. */
  18927. #if defined __stub_$ac_func || defined __stub___$ac_func
  18928. choke me
  18929. #endif
  18930. int
  18931. main ()
  18932. {
  18933. return $ac_func ();
  18934. ;
  18935. return 0;
  18936. }
  18937. _ACEOF
  18938. rm -f conftest.$ac_objext conftest$ac_exeext
  18939. if { (ac_try="$ac_link"
  18940. case "(($ac_try" in
  18941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18942. *) ac_try_echo=$ac_try;;
  18943. esac
  18944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18945. (eval "$ac_link") 2>conftest.er1
  18946. ac_status=$?
  18947. grep -v '^ *+' conftest.er1 >conftest.err
  18948. rm -f conftest.er1
  18949. cat conftest.err >&5
  18950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18951. (exit $ac_status); } && {
  18952. test -z "$ac_cxx_werror_flag" ||
  18953. test ! -s conftest.err
  18954. } && test -s conftest$ac_exeext &&
  18955. $as_test_x conftest$ac_exeext; then
  18956. eval "$as_ac_var=yes"
  18957. else
  18958. echo "$as_me: failed program was:" >&5
  18959. sed 's/^/| /' conftest.$ac_ext >&5
  18960. eval "$as_ac_var=no"
  18961. fi
  18962. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18963. conftest$ac_exeext conftest.$ac_ext
  18964. fi
  18965. ac_res=`eval echo '${'$as_ac_var'}'`
  18966. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18967. echo "${ECHO_T}$ac_res" >&6; }
  18968. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18969. cat >>confdefs.h <<_ACEOF
  18970. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18971. _ACEOF
  18972. if true; then
  18973. HAVE_GETADDRINFO_TRUE=
  18974. HAVE_GETADDRINFO_FALSE='#'
  18975. else
  18976. HAVE_GETADDRINFO_TRUE='#'
  18977. HAVE_GETADDRINFO_FALSE=
  18978. fi
  18979. else
  18980. if false; then
  18981. HAVE_GETADDRINFO_TRUE=
  18982. HAVE_GETADDRINFO_FALSE='#'
  18983. else
  18984. HAVE_GETADDRINFO_TRUE='#'
  18985. HAVE_GETADDRINFO_FALSE=
  18986. fi
  18987. fi
  18988. done
  18989. for ac_func in gettimeofday
  18990. do
  18991. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18992. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18993. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18994. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18995. echo $ECHO_N "(cached) $ECHO_C" >&6
  18996. else
  18997. cat >conftest.$ac_ext <<_ACEOF
  18998. /* confdefs.h. */
  18999. _ACEOF
  19000. cat confdefs.h >>conftest.$ac_ext
  19001. cat >>conftest.$ac_ext <<_ACEOF
  19002. /* end confdefs.h. */
  19003. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19004. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19005. #define $ac_func innocuous_$ac_func
  19006. /* System header to define __stub macros and hopefully few prototypes,
  19007. which can conflict with char $ac_func (); below.
  19008. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19009. <limits.h> exists even on freestanding compilers. */
  19010. #ifdef __STDC__
  19011. # include <limits.h>
  19012. #else
  19013. # include <assert.h>
  19014. #endif
  19015. #undef $ac_func
  19016. /* Override any GCC internal prototype to avoid an error.
  19017. Use char because int might match the return type of a GCC
  19018. builtin and then its argument prototype would still apply. */
  19019. #ifdef __cplusplus
  19020. extern "C"
  19021. #endif
  19022. char $ac_func ();
  19023. /* The GNU C library defines this for functions which it implements
  19024. to always fail with ENOSYS. Some functions are actually named
  19025. something starting with __ and the normal name is an alias. */
  19026. #if defined __stub_$ac_func || defined __stub___$ac_func
  19027. choke me
  19028. #endif
  19029. int
  19030. main ()
  19031. {
  19032. return $ac_func ();
  19033. ;
  19034. return 0;
  19035. }
  19036. _ACEOF
  19037. rm -f conftest.$ac_objext conftest$ac_exeext
  19038. if { (ac_try="$ac_link"
  19039. case "(($ac_try" in
  19040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19041. *) ac_try_echo=$ac_try;;
  19042. esac
  19043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19044. (eval "$ac_link") 2>conftest.er1
  19045. ac_status=$?
  19046. grep -v '^ *+' conftest.er1 >conftest.err
  19047. rm -f conftest.er1
  19048. cat conftest.err >&5
  19049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19050. (exit $ac_status); } && {
  19051. test -z "$ac_cxx_werror_flag" ||
  19052. test ! -s conftest.err
  19053. } && test -s conftest$ac_exeext &&
  19054. $as_test_x conftest$ac_exeext; then
  19055. eval "$as_ac_var=yes"
  19056. else
  19057. echo "$as_me: failed program was:" >&5
  19058. sed 's/^/| /' conftest.$ac_ext >&5
  19059. eval "$as_ac_var=no"
  19060. fi
  19061. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19062. conftest$ac_exeext conftest.$ac_ext
  19063. fi
  19064. ac_res=`eval echo '${'$as_ac_var'}'`
  19065. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19066. echo "${ECHO_T}$ac_res" >&6; }
  19067. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19068. cat >>confdefs.h <<_ACEOF
  19069. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19070. _ACEOF
  19071. if true; then
  19072. HAVE_GETTIMEOFDAY_TRUE=
  19073. HAVE_GETTIMEOFDAY_FALSE='#'
  19074. else
  19075. HAVE_GETTIMEOFDAY_TRUE='#'
  19076. HAVE_GETTIMEOFDAY_FALSE=
  19077. fi
  19078. else
  19079. if false; then
  19080. HAVE_GETTIMEOFDAY_TRUE=
  19081. HAVE_GETTIMEOFDAY_FALSE='#'
  19082. else
  19083. HAVE_GETTIMEOFDAY_TRUE='#'
  19084. HAVE_GETTIMEOFDAY_FALSE=
  19085. fi
  19086. fi
  19087. done
  19088. for ac_func in inet_aton
  19089. do
  19090. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19091. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19092. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19093. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19094. echo $ECHO_N "(cached) $ECHO_C" >&6
  19095. else
  19096. cat >conftest.$ac_ext <<_ACEOF
  19097. /* confdefs.h. */
  19098. _ACEOF
  19099. cat confdefs.h >>conftest.$ac_ext
  19100. cat >>conftest.$ac_ext <<_ACEOF
  19101. /* end confdefs.h. */
  19102. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19103. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19104. #define $ac_func innocuous_$ac_func
  19105. /* System header to define __stub macros and hopefully few prototypes,
  19106. which can conflict with char $ac_func (); below.
  19107. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19108. <limits.h> exists even on freestanding compilers. */
  19109. #ifdef __STDC__
  19110. # include <limits.h>
  19111. #else
  19112. # include <assert.h>
  19113. #endif
  19114. #undef $ac_func
  19115. /* Override any GCC internal prototype to avoid an error.
  19116. Use char because int might match the return type of a GCC
  19117. builtin and then its argument prototype would still apply. */
  19118. #ifdef __cplusplus
  19119. extern "C"
  19120. #endif
  19121. char $ac_func ();
  19122. /* The GNU C library defines this for functions which it implements
  19123. to always fail with ENOSYS. Some functions are actually named
  19124. something starting with __ and the normal name is an alias. */
  19125. #if defined __stub_$ac_func || defined __stub___$ac_func
  19126. choke me
  19127. #endif
  19128. int
  19129. main ()
  19130. {
  19131. return $ac_func ();
  19132. ;
  19133. return 0;
  19134. }
  19135. _ACEOF
  19136. rm -f conftest.$ac_objext conftest$ac_exeext
  19137. if { (ac_try="$ac_link"
  19138. case "(($ac_try" in
  19139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19140. *) ac_try_echo=$ac_try;;
  19141. esac
  19142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19143. (eval "$ac_link") 2>conftest.er1
  19144. ac_status=$?
  19145. grep -v '^ *+' conftest.er1 >conftest.err
  19146. rm -f conftest.er1
  19147. cat conftest.err >&5
  19148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19149. (exit $ac_status); } && {
  19150. test -z "$ac_cxx_werror_flag" ||
  19151. test ! -s conftest.err
  19152. } && test -s conftest$ac_exeext &&
  19153. $as_test_x conftest$ac_exeext; then
  19154. eval "$as_ac_var=yes"
  19155. else
  19156. echo "$as_me: failed program was:" >&5
  19157. sed 's/^/| /' conftest.$ac_ext >&5
  19158. eval "$as_ac_var=no"
  19159. fi
  19160. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19161. conftest$ac_exeext conftest.$ac_ext
  19162. fi
  19163. ac_res=`eval echo '${'$as_ac_var'}'`
  19164. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19165. echo "${ECHO_T}$ac_res" >&6; }
  19166. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19167. cat >>confdefs.h <<_ACEOF
  19168. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19169. _ACEOF
  19170. if true; then
  19171. HAVE_INET_ATON_TRUE=
  19172. HAVE_INET_ATON_FALSE='#'
  19173. else
  19174. HAVE_INET_ATON_TRUE='#'
  19175. HAVE_INET_ATON_FALSE=
  19176. fi
  19177. else
  19178. if false; then
  19179. HAVE_INET_ATON_TRUE=
  19180. HAVE_INET_ATON_FALSE='#'
  19181. else
  19182. HAVE_INET_ATON_TRUE='#'
  19183. HAVE_INET_ATON_FALSE=
  19184. fi
  19185. fi
  19186. done
  19187. for ac_func in localtime_r
  19188. do
  19189. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19190. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19191. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19192. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19193. echo $ECHO_N "(cached) $ECHO_C" >&6
  19194. else
  19195. cat >conftest.$ac_ext <<_ACEOF
  19196. /* confdefs.h. */
  19197. _ACEOF
  19198. cat confdefs.h >>conftest.$ac_ext
  19199. cat >>conftest.$ac_ext <<_ACEOF
  19200. /* end confdefs.h. */
  19201. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19203. #define $ac_func innocuous_$ac_func
  19204. /* System header to define __stub macros and hopefully few prototypes,
  19205. which can conflict with char $ac_func (); below.
  19206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19207. <limits.h> exists even on freestanding compilers. */
  19208. #ifdef __STDC__
  19209. # include <limits.h>
  19210. #else
  19211. # include <assert.h>
  19212. #endif
  19213. #undef $ac_func
  19214. /* Override any GCC internal prototype to avoid an error.
  19215. Use char because int might match the return type of a GCC
  19216. builtin and then its argument prototype would still apply. */
  19217. #ifdef __cplusplus
  19218. extern "C"
  19219. #endif
  19220. char $ac_func ();
  19221. /* The GNU C library defines this for functions which it implements
  19222. to always fail with ENOSYS. Some functions are actually named
  19223. something starting with __ and the normal name is an alias. */
  19224. #if defined __stub_$ac_func || defined __stub___$ac_func
  19225. choke me
  19226. #endif
  19227. int
  19228. main ()
  19229. {
  19230. return $ac_func ();
  19231. ;
  19232. return 0;
  19233. }
  19234. _ACEOF
  19235. rm -f conftest.$ac_objext conftest$ac_exeext
  19236. if { (ac_try="$ac_link"
  19237. case "(($ac_try" in
  19238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19239. *) ac_try_echo=$ac_try;;
  19240. esac
  19241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19242. (eval "$ac_link") 2>conftest.er1
  19243. ac_status=$?
  19244. grep -v '^ *+' conftest.er1 >conftest.err
  19245. rm -f conftest.er1
  19246. cat conftest.err >&5
  19247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19248. (exit $ac_status); } && {
  19249. test -z "$ac_cxx_werror_flag" ||
  19250. test ! -s conftest.err
  19251. } && test -s conftest$ac_exeext &&
  19252. $as_test_x conftest$ac_exeext; then
  19253. eval "$as_ac_var=yes"
  19254. else
  19255. echo "$as_me: failed program was:" >&5
  19256. sed 's/^/| /' conftest.$ac_ext >&5
  19257. eval "$as_ac_var=no"
  19258. fi
  19259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19260. conftest$ac_exeext conftest.$ac_ext
  19261. fi
  19262. ac_res=`eval echo '${'$as_ac_var'}'`
  19263. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19264. echo "${ECHO_T}$ac_res" >&6; }
  19265. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19266. cat >>confdefs.h <<_ACEOF
  19267. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19268. _ACEOF
  19269. if true; then
  19270. HAVE_LOCALTIME_R_TRUE=
  19271. HAVE_LOCALTIME_R_FALSE='#'
  19272. else
  19273. HAVE_LOCALTIME_R_TRUE='#'
  19274. HAVE_LOCALTIME_R_FALSE=
  19275. fi
  19276. else
  19277. if false; then
  19278. HAVE_LOCALTIME_R_TRUE=
  19279. HAVE_LOCALTIME_R_FALSE='#'
  19280. else
  19281. HAVE_LOCALTIME_R_TRUE='#'
  19282. HAVE_LOCALTIME_R_FALSE=
  19283. fi
  19284. fi
  19285. done
  19286. for ac_func in strptime
  19287. do
  19288. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19289. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19290. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19291. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19292. echo $ECHO_N "(cached) $ECHO_C" >&6
  19293. else
  19294. cat >conftest.$ac_ext <<_ACEOF
  19295. /* confdefs.h. */
  19296. _ACEOF
  19297. cat confdefs.h >>conftest.$ac_ext
  19298. cat >>conftest.$ac_ext <<_ACEOF
  19299. /* end confdefs.h. */
  19300. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19301. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19302. #define $ac_func innocuous_$ac_func
  19303. /* System header to define __stub macros and hopefully few prototypes,
  19304. which can conflict with char $ac_func (); below.
  19305. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19306. <limits.h> exists even on freestanding compilers. */
  19307. #ifdef __STDC__
  19308. # include <limits.h>
  19309. #else
  19310. # include <assert.h>
  19311. #endif
  19312. #undef $ac_func
  19313. /* Override any GCC internal prototype to avoid an error.
  19314. Use char because int might match the return type of a GCC
  19315. builtin and then its argument prototype would still apply. */
  19316. #ifdef __cplusplus
  19317. extern "C"
  19318. #endif
  19319. char $ac_func ();
  19320. /* The GNU C library defines this for functions which it implements
  19321. to always fail with ENOSYS. Some functions are actually named
  19322. something starting with __ and the normal name is an alias. */
  19323. #if defined __stub_$ac_func || defined __stub___$ac_func
  19324. choke me
  19325. #endif
  19326. int
  19327. main ()
  19328. {
  19329. return $ac_func ();
  19330. ;
  19331. return 0;
  19332. }
  19333. _ACEOF
  19334. rm -f conftest.$ac_objext conftest$ac_exeext
  19335. if { (ac_try="$ac_link"
  19336. case "(($ac_try" in
  19337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19338. *) ac_try_echo=$ac_try;;
  19339. esac
  19340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19341. (eval "$ac_link") 2>conftest.er1
  19342. ac_status=$?
  19343. grep -v '^ *+' conftest.er1 >conftest.err
  19344. rm -f conftest.er1
  19345. cat conftest.err >&5
  19346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19347. (exit $ac_status); } && {
  19348. test -z "$ac_cxx_werror_flag" ||
  19349. test ! -s conftest.err
  19350. } && test -s conftest$ac_exeext &&
  19351. $as_test_x conftest$ac_exeext; then
  19352. eval "$as_ac_var=yes"
  19353. else
  19354. echo "$as_me: failed program was:" >&5
  19355. sed 's/^/| /' conftest.$ac_ext >&5
  19356. eval "$as_ac_var=no"
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19359. conftest$ac_exeext conftest.$ac_ext
  19360. fi
  19361. ac_res=`eval echo '${'$as_ac_var'}'`
  19362. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19363. echo "${ECHO_T}$ac_res" >&6; }
  19364. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19365. cat >>confdefs.h <<_ACEOF
  19366. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19367. _ACEOF
  19368. if true; then
  19369. HAVE_STRPTIME_TRUE=
  19370. HAVE_STRPTIME_FALSE='#'
  19371. else
  19372. HAVE_STRPTIME_TRUE='#'
  19373. HAVE_STRPTIME_FALSE=
  19374. fi
  19375. else
  19376. if false; then
  19377. HAVE_STRPTIME_TRUE=
  19378. HAVE_STRPTIME_FALSE='#'
  19379. else
  19380. HAVE_STRPTIME_TRUE='#'
  19381. HAVE_STRPTIME_FALSE=
  19382. fi
  19383. fi
  19384. done
  19385. for ac_func in timegm
  19386. do
  19387. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19388. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19389. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19390. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19391. echo $ECHO_N "(cached) $ECHO_C" >&6
  19392. else
  19393. cat >conftest.$ac_ext <<_ACEOF
  19394. /* confdefs.h. */
  19395. _ACEOF
  19396. cat confdefs.h >>conftest.$ac_ext
  19397. cat >>conftest.$ac_ext <<_ACEOF
  19398. /* end confdefs.h. */
  19399. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19400. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19401. #define $ac_func innocuous_$ac_func
  19402. /* System header to define __stub macros and hopefully few prototypes,
  19403. which can conflict with char $ac_func (); below.
  19404. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19405. <limits.h> exists even on freestanding compilers. */
  19406. #ifdef __STDC__
  19407. # include <limits.h>
  19408. #else
  19409. # include <assert.h>
  19410. #endif
  19411. #undef $ac_func
  19412. /* Override any GCC internal prototype to avoid an error.
  19413. Use char because int might match the return type of a GCC
  19414. builtin and then its argument prototype would still apply. */
  19415. #ifdef __cplusplus
  19416. extern "C"
  19417. #endif
  19418. char $ac_func ();
  19419. /* The GNU C library defines this for functions which it implements
  19420. to always fail with ENOSYS. Some functions are actually named
  19421. something starting with __ and the normal name is an alias. */
  19422. #if defined __stub_$ac_func || defined __stub___$ac_func
  19423. choke me
  19424. #endif
  19425. int
  19426. main ()
  19427. {
  19428. return $ac_func ();
  19429. ;
  19430. return 0;
  19431. }
  19432. _ACEOF
  19433. rm -f conftest.$ac_objext conftest$ac_exeext
  19434. if { (ac_try="$ac_link"
  19435. case "(($ac_try" in
  19436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19437. *) ac_try_echo=$ac_try;;
  19438. esac
  19439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19440. (eval "$ac_link") 2>conftest.er1
  19441. ac_status=$?
  19442. grep -v '^ *+' conftest.er1 >conftest.err
  19443. rm -f conftest.er1
  19444. cat conftest.err >&5
  19445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19446. (exit $ac_status); } && {
  19447. test -z "$ac_cxx_werror_flag" ||
  19448. test ! -s conftest.err
  19449. } && test -s conftest$ac_exeext &&
  19450. $as_test_x conftest$ac_exeext; then
  19451. eval "$as_ac_var=yes"
  19452. else
  19453. echo "$as_me: failed program was:" >&5
  19454. sed 's/^/| /' conftest.$ac_ext >&5
  19455. eval "$as_ac_var=no"
  19456. fi
  19457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19458. conftest$ac_exeext conftest.$ac_ext
  19459. fi
  19460. ac_res=`eval echo '${'$as_ac_var'}'`
  19461. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19462. echo "${ECHO_T}$ac_res" >&6; }
  19463. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19464. cat >>confdefs.h <<_ACEOF
  19465. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19466. _ACEOF
  19467. if true; then
  19468. HAVE_TIMEGM_TRUE=
  19469. HAVE_TIMEGM_FALSE='#'
  19470. else
  19471. HAVE_TIMEGM_TRUE='#'
  19472. HAVE_TIMEGM_FALSE=
  19473. fi
  19474. else
  19475. if false; then
  19476. HAVE_TIMEGM_TRUE=
  19477. HAVE_TIMEGM_FALSE='#'
  19478. else
  19479. HAVE_TIMEGM_TRUE='#'
  19480. HAVE_TIMEGM_FALSE=
  19481. fi
  19482. fi
  19483. done
  19484. case "$target" in
  19485. *mingw*)
  19486. if true; then
  19487. HAVE_GETADDRINFO_TRUE=
  19488. HAVE_GETADDRINFO_FALSE='#'
  19489. else
  19490. HAVE_GETADDRINFO_TRUE='#'
  19491. HAVE_GETADDRINFO_FALSE=
  19492. fi
  19493. if false; then
  19494. HAVE_GAI_STRERROR_TRUE=
  19495. HAVE_GAI_STRERROR_FALSE='#'
  19496. else
  19497. HAVE_GAI_STRERROR_TRUE='#'
  19498. HAVE_GAI_STRERROR_FALSE=
  19499. fi
  19500. ;;
  19501. esac
  19502. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19503. cat >confcache <<\_ACEOF
  19504. # This file is a shell script that caches the results of configure
  19505. # tests run on this system so they can be shared between configure
  19506. # scripts and configure runs, see configure's option --config-cache.
  19507. # It is not useful on other systems. If it contains results you don't
  19508. # want to keep, you may remove or edit it.
  19509. #
  19510. # config.status only pays attention to the cache file if you give it
  19511. # the --recheck option to rerun configure.
  19512. #
  19513. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19514. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19515. # following values.
  19516. _ACEOF
  19517. # The following way of writing the cache mishandles newlines in values,
  19518. # but we know of no workaround that is simple, portable, and efficient.
  19519. # So, we kill variables containing newlines.
  19520. # Ultrix sh set writes to stderr and can't be redirected directly,
  19521. # and sets the high bit in the cache file unless we assign to the vars.
  19522. (
  19523. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19524. eval ac_val=\$$ac_var
  19525. case $ac_val in #(
  19526. *${as_nl}*)
  19527. case $ac_var in #(
  19528. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19529. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19530. esac
  19531. case $ac_var in #(
  19532. _ | IFS | as_nl) ;; #(
  19533. *) $as_unset $ac_var ;;
  19534. esac ;;
  19535. esac
  19536. done
  19537. (set) 2>&1 |
  19538. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19539. *${as_nl}ac_space=\ *)
  19540. # `set' does not quote correctly, so add quotes (double-quote
  19541. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19542. sed -n \
  19543. "s/'/'\\\\''/g;
  19544. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19545. ;; #(
  19546. *)
  19547. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19548. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19549. ;;
  19550. esac |
  19551. sort
  19552. ) |
  19553. sed '
  19554. /^ac_cv_env_/b end
  19555. t clear
  19556. :clear
  19557. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19558. t end
  19559. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19560. :end' >>confcache
  19561. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19562. if test -w "$cache_file"; then
  19563. test "x$cache_file" != "x/dev/null" &&
  19564. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19565. echo "$as_me: updating cache $cache_file" >&6;}
  19566. cat confcache >$cache_file
  19567. else
  19568. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19569. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19570. fi
  19571. fi
  19572. rm -f confcache
  19573. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19574. # Let make expand exec_prefix.
  19575. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19576. DEFS=-DHAVE_CONFIG_H
  19577. ac_libobjs=
  19578. ac_ltlibobjs=
  19579. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19580. # 1. Remove the extension, and $U if already installed.
  19581. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19582. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19583. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19584. # will be set to the directory where LIBOBJS objects are built.
  19585. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19586. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19587. done
  19588. LIBOBJS=$ac_libobjs
  19589. LTLIBOBJS=$ac_ltlibobjs
  19590. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19591. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19592. Usually this means the macro was only invoked conditionally." >&5
  19593. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19594. Usually this means the macro was only invoked conditionally." >&2;}
  19595. { (exit 1); exit 1; }; }
  19596. fi
  19597. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19598. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19599. Usually this means the macro was only invoked conditionally." >&5
  19600. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19601. Usually this means the macro was only invoked conditionally." >&2;}
  19602. { (exit 1); exit 1; }; }
  19603. fi
  19604. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19605. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19606. Usually this means the macro was only invoked conditionally." >&5
  19607. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19608. Usually this means the macro was only invoked conditionally." >&2;}
  19609. { (exit 1); exit 1; }; }
  19610. fi
  19611. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19612. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19613. Usually this means the macro was only invoked conditionally." >&5
  19614. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19615. Usually this means the macro was only invoked conditionally." >&2;}
  19616. { (exit 1); exit 1; }; }
  19617. fi
  19618. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19619. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19620. Usually this means the macro was only invoked conditionally." >&5
  19621. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19622. Usually this means the macro was only invoked conditionally." >&2;}
  19623. { (exit 1); exit 1; }; }
  19624. fi
  19625. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  19626. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19627. Usually this means the macro was only invoked conditionally." >&5
  19628. echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19629. Usually this means the macro was only invoked conditionally." >&2;}
  19630. { (exit 1); exit 1; }; }
  19631. fi
  19632. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  19633. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  19634. Usually this means the macro was only invoked conditionally." >&5
  19635. echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  19636. Usually this means the macro was only invoked conditionally." >&2;}
  19637. { (exit 1); exit 1; }; }
  19638. fi
  19639. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19640. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19641. Usually this means the macro was only invoked conditionally." >&5
  19642. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19643. Usually this means the macro was only invoked conditionally." >&2;}
  19644. { (exit 1); exit 1; }; }
  19645. fi
  19646. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19647. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19648. Usually this means the macro was only invoked conditionally." >&5
  19649. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19650. Usually this means the macro was only invoked conditionally." >&2;}
  19651. { (exit 1); exit 1; }; }
  19652. fi
  19653. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19654. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19655. Usually this means the macro was only invoked conditionally." >&5
  19656. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19657. Usually this means the macro was only invoked conditionally." >&2;}
  19658. { (exit 1); exit 1; }; }
  19659. fi
  19660. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19661. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19662. Usually this means the macro was only invoked conditionally." >&5
  19663. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19664. Usually this means the macro was only invoked conditionally." >&2;}
  19665. { (exit 1); exit 1; }; }
  19666. fi
  19667. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19668. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19669. Usually this means the macro was only invoked conditionally." >&5
  19670. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19671. Usually this means the macro was only invoked conditionally." >&2;}
  19672. { (exit 1); exit 1; }; }
  19673. fi
  19674. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19675. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19676. Usually this means the macro was only invoked conditionally." >&5
  19677. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19678. Usually this means the macro was only invoked conditionally." >&2;}
  19679. { (exit 1); exit 1; }; }
  19680. fi
  19681. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19682. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19683. Usually this means the macro was only invoked conditionally." >&5
  19684. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19685. Usually this means the macro was only invoked conditionally." >&2;}
  19686. { (exit 1); exit 1; }; }
  19687. fi
  19688. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19689. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19690. Usually this means the macro was only invoked conditionally." >&5
  19691. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19692. Usually this means the macro was only invoked conditionally." >&2;}
  19693. { (exit 1); exit 1; }; }
  19694. fi
  19695. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19696. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19697. Usually this means the macro was only invoked conditionally." >&5
  19698. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19699. Usually this means the macro was only invoked conditionally." >&2;}
  19700. { (exit 1); exit 1; }; }
  19701. fi
  19702. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19703. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19704. Usually this means the macro was only invoked conditionally." >&5
  19705. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19706. Usually this means the macro was only invoked conditionally." >&2;}
  19707. { (exit 1); exit 1; }; }
  19708. fi
  19709. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19710. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19711. Usually this means the macro was only invoked conditionally." >&5
  19712. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19713. Usually this means the macro was only invoked conditionally." >&2;}
  19714. { (exit 1); exit 1; }; }
  19715. fi
  19716. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19717. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19718. Usually this means the macro was only invoked conditionally." >&5
  19719. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19720. Usually this means the macro was only invoked conditionally." >&2;}
  19721. { (exit 1); exit 1; }; }
  19722. fi
  19723. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19724. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19725. Usually this means the macro was only invoked conditionally." >&5
  19726. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19727. Usually this means the macro was only invoked conditionally." >&2;}
  19728. { (exit 1); exit 1; }; }
  19729. fi
  19730. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19731. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19732. Usually this means the macro was only invoked conditionally." >&5
  19733. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19734. Usually this means the macro was only invoked conditionally." >&2;}
  19735. { (exit 1); exit 1; }; }
  19736. fi
  19737. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19738. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19739. Usually this means the macro was only invoked conditionally." >&5
  19740. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19741. Usually this means the macro was only invoked conditionally." >&2;}
  19742. { (exit 1); exit 1; }; }
  19743. fi
  19744. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19745. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19746. Usually this means the macro was only invoked conditionally." >&5
  19747. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19748. Usually this means the macro was only invoked conditionally." >&2;}
  19749. { (exit 1); exit 1; }; }
  19750. fi
  19751. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19752. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19753. Usually this means the macro was only invoked conditionally." >&5
  19754. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19755. Usually this means the macro was only invoked conditionally." >&2;}
  19756. { (exit 1); exit 1; }; }
  19757. fi
  19758. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19759. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19760. Usually this means the macro was only invoked conditionally." >&5
  19761. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19762. Usually this means the macro was only invoked conditionally." >&2;}
  19763. { (exit 1); exit 1; }; }
  19764. fi
  19765. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19766. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19767. Usually this means the macro was only invoked conditionally." >&5
  19768. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19769. Usually this means the macro was only invoked conditionally." >&2;}
  19770. { (exit 1); exit 1; }; }
  19771. fi
  19772. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19773. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19774. Usually this means the macro was only invoked conditionally." >&5
  19775. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19776. Usually this means the macro was only invoked conditionally." >&2;}
  19777. { (exit 1); exit 1; }; }
  19778. fi
  19779. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19780. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19781. Usually this means the macro was only invoked conditionally." >&5
  19782. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19783. Usually this means the macro was only invoked conditionally." >&2;}
  19784. { (exit 1); exit 1; }; }
  19785. fi
  19786. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19787. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19788. Usually this means the macro was only invoked conditionally." >&5
  19789. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19790. Usually this means the macro was only invoked conditionally." >&2;}
  19791. { (exit 1); exit 1; }; }
  19792. fi
  19793. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19794. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19795. Usually this means the macro was only invoked conditionally." >&5
  19796. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19797. Usually this means the macro was only invoked conditionally." >&2;}
  19798. { (exit 1); exit 1; }; }
  19799. fi
  19800. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19801. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19802. Usually this means the macro was only invoked conditionally." >&5
  19803. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19804. Usually this means the macro was only invoked conditionally." >&2;}
  19805. { (exit 1); exit 1; }; }
  19806. fi
  19807. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19808. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19809. Usually this means the macro was only invoked conditionally." >&5
  19810. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19811. Usually this means the macro was only invoked conditionally." >&2;}
  19812. { (exit 1); exit 1; }; }
  19813. fi
  19814. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19815. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19816. Usually this means the macro was only invoked conditionally." >&5
  19817. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19818. Usually this means the macro was only invoked conditionally." >&2;}
  19819. { (exit 1); exit 1; }; }
  19820. fi
  19821. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19822. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19823. Usually this means the macro was only invoked conditionally." >&5
  19824. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19825. Usually this means the macro was only invoked conditionally." >&2;}
  19826. { (exit 1); exit 1; }; }
  19827. fi
  19828. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19829. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19830. Usually this means the macro was only invoked conditionally." >&5
  19831. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19832. Usually this means the macro was only invoked conditionally." >&2;}
  19833. { (exit 1); exit 1; }; }
  19834. fi
  19835. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19836. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19837. Usually this means the macro was only invoked conditionally." >&5
  19838. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19839. Usually this means the macro was only invoked conditionally." >&2;}
  19840. { (exit 1); exit 1; }; }
  19841. fi
  19842. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19843. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19844. Usually this means the macro was only invoked conditionally." >&5
  19845. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19846. Usually this means the macro was only invoked conditionally." >&2;}
  19847. { (exit 1); exit 1; }; }
  19848. fi
  19849. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19850. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19851. Usually this means the macro was only invoked conditionally." >&5
  19852. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19853. Usually this means the macro was only invoked conditionally." >&2;}
  19854. { (exit 1); exit 1; }; }
  19855. fi
  19856. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19857. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19858. Usually this means the macro was only invoked conditionally." >&5
  19859. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19860. Usually this means the macro was only invoked conditionally." >&2;}
  19861. { (exit 1); exit 1; }; }
  19862. fi
  19863. : ${CONFIG_STATUS=./config.status}
  19864. ac_clean_files_save=$ac_clean_files
  19865. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19866. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19867. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19868. cat >$CONFIG_STATUS <<_ACEOF
  19869. #! $SHELL
  19870. # Generated by $as_me.
  19871. # Run this file to recreate the current configuration.
  19872. # Compiler output produced by configure, useful for debugging
  19873. # configure, is in config.log if it exists.
  19874. debug=false
  19875. ac_cs_recheck=false
  19876. ac_cs_silent=false
  19877. SHELL=\${CONFIG_SHELL-$SHELL}
  19878. _ACEOF
  19879. cat >>$CONFIG_STATUS <<\_ACEOF
  19880. ## --------------------- ##
  19881. ## M4sh Initialization. ##
  19882. ## --------------------- ##
  19883. # Be more Bourne compatible
  19884. DUALCASE=1; export DUALCASE # for MKS sh
  19885. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19886. emulate sh
  19887. NULLCMD=:
  19888. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19889. # is contrary to our usage. Disable this feature.
  19890. alias -g '${1+"$@"}'='"$@"'
  19891. setopt NO_GLOB_SUBST
  19892. else
  19893. case `(set -o) 2>/dev/null` in
  19894. *posix*) set -o posix ;;
  19895. esac
  19896. fi
  19897. # PATH needs CR
  19898. # Avoid depending upon Character Ranges.
  19899. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19900. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19901. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19902. as_cr_digits='0123456789'
  19903. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19904. # The user is always right.
  19905. if test "${PATH_SEPARATOR+set}" != set; then
  19906. echo "#! /bin/sh" >conf$$.sh
  19907. echo "exit 0" >>conf$$.sh
  19908. chmod +x conf$$.sh
  19909. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19910. PATH_SEPARATOR=';'
  19911. else
  19912. PATH_SEPARATOR=:
  19913. fi
  19914. rm -f conf$$.sh
  19915. fi
  19916. # Support unset when possible.
  19917. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19918. as_unset=unset
  19919. else
  19920. as_unset=false
  19921. fi
  19922. # IFS
  19923. # We need space, tab and new line, in precisely that order. Quoting is
  19924. # there to prevent editors from complaining about space-tab.
  19925. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19926. # splitting by setting IFS to empty value.)
  19927. as_nl='
  19928. '
  19929. IFS=" "" $as_nl"
  19930. # Find who we are. Look in the path if we contain no directory separator.
  19931. case $0 in
  19932. *[\\/]* ) as_myself=$0 ;;
  19933. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19934. for as_dir in $PATH
  19935. do
  19936. IFS=$as_save_IFS
  19937. test -z "$as_dir" && as_dir=.
  19938. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19939. done
  19940. IFS=$as_save_IFS
  19941. ;;
  19942. esac
  19943. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19944. # in which case we are not to be found in the path.
  19945. if test "x$as_myself" = x; then
  19946. as_myself=$0
  19947. fi
  19948. if test ! -f "$as_myself"; then
  19949. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19950. { (exit 1); exit 1; }
  19951. fi
  19952. # Work around bugs in pre-3.0 UWIN ksh.
  19953. for as_var in ENV MAIL MAILPATH
  19954. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19955. done
  19956. PS1='$ '
  19957. PS2='> '
  19958. PS4='+ '
  19959. # NLS nuisances.
  19960. for as_var in \
  19961. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19962. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19963. LC_TELEPHONE LC_TIME
  19964. do
  19965. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19966. eval $as_var=C; export $as_var
  19967. else
  19968. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19969. fi
  19970. done
  19971. # Required to use basename.
  19972. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19973. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19974. as_expr=expr
  19975. else
  19976. as_expr=false
  19977. fi
  19978. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19979. as_basename=basename
  19980. else
  19981. as_basename=false
  19982. fi
  19983. # Name of the executable.
  19984. as_me=`$as_basename -- "$0" ||
  19985. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19986. X"$0" : 'X\(//\)$' \| \
  19987. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19988. echo X/"$0" |
  19989. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19990. s//\1/
  19991. q
  19992. }
  19993. /^X\/\(\/\/\)$/{
  19994. s//\1/
  19995. q
  19996. }
  19997. /^X\/\(\/\).*/{
  19998. s//\1/
  19999. q
  20000. }
  20001. s/.*/./; q'`
  20002. # CDPATH.
  20003. $as_unset CDPATH
  20004. as_lineno_1=$LINENO
  20005. as_lineno_2=$LINENO
  20006. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20007. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20008. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20009. # uniformly replaced by the line number. The first 'sed' inserts a
  20010. # line-number line after each line using $LINENO; the second 'sed'
  20011. # does the real work. The second script uses 'N' to pair each
  20012. # line-number line with the line containing $LINENO, and appends
  20013. # trailing '-' during substitution so that $LINENO is not a special
  20014. # case at line end.
  20015. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20016. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20017. # E. McMahon (1931-1989) for sed's syntax. :-)
  20018. sed -n '
  20019. p
  20020. /[$]LINENO/=
  20021. ' <$as_myself |
  20022. sed '
  20023. s/[$]LINENO.*/&-/
  20024. t lineno
  20025. b
  20026. :lineno
  20027. N
  20028. :loop
  20029. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20030. t loop
  20031. s/-\n.*//
  20032. ' >$as_me.lineno &&
  20033. chmod +x "$as_me.lineno" ||
  20034. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20035. { (exit 1); exit 1; }; }
  20036. # Don't try to exec as it changes $[0], causing all sort of problems
  20037. # (the dirname of $[0] is not the place where we might find the
  20038. # original and so on. Autoconf is especially sensitive to this).
  20039. . "./$as_me.lineno"
  20040. # Exit status is that of the last command.
  20041. exit
  20042. }
  20043. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20044. as_dirname=dirname
  20045. else
  20046. as_dirname=false
  20047. fi
  20048. ECHO_C= ECHO_N= ECHO_T=
  20049. case `echo -n x` in
  20050. -n*)
  20051. case `echo 'x\c'` in
  20052. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20053. *) ECHO_C='\c';;
  20054. esac;;
  20055. *)
  20056. ECHO_N='-n';;
  20057. esac
  20058. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20059. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20060. as_expr=expr
  20061. else
  20062. as_expr=false
  20063. fi
  20064. rm -f conf$$ conf$$.exe conf$$.file
  20065. if test -d conf$$.dir; then
  20066. rm -f conf$$.dir/conf$$.file
  20067. else
  20068. rm -f conf$$.dir
  20069. mkdir conf$$.dir
  20070. fi
  20071. echo >conf$$.file
  20072. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20073. as_ln_s='ln -s'
  20074. # ... but there are two gotchas:
  20075. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20076. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20077. # In both cases, we have to default to `cp -p'.
  20078. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20079. as_ln_s='cp -p'
  20080. elif ln conf$$.file conf$$ 2>/dev/null; then
  20081. as_ln_s=ln
  20082. else
  20083. as_ln_s='cp -p'
  20084. fi
  20085. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20086. rmdir conf$$.dir 2>/dev/null
  20087. if mkdir -p . 2>/dev/null; then
  20088. as_mkdir_p=:
  20089. else
  20090. test -d ./-p && rmdir ./-p
  20091. as_mkdir_p=false
  20092. fi
  20093. if test -x / >/dev/null 2>&1; then
  20094. as_test_x='test -x'
  20095. else
  20096. if ls -dL / >/dev/null 2>&1; then
  20097. as_ls_L_option=L
  20098. else
  20099. as_ls_L_option=
  20100. fi
  20101. as_test_x='
  20102. eval sh -c '\''
  20103. if test -d "$1"; then
  20104. test -d "$1/.";
  20105. else
  20106. case $1 in
  20107. -*)set "./$1";;
  20108. esac;
  20109. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20110. ???[sx]*):;;*)false;;esac;fi
  20111. '\'' sh
  20112. '
  20113. fi
  20114. as_executable_p=$as_test_x
  20115. # Sed expression to map a string onto a valid CPP name.
  20116. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20117. # Sed expression to map a string onto a valid variable name.
  20118. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20119. exec 6>&1
  20120. # Save the log message, to keep $[0] and so on meaningful, and to
  20121. # report actual input values of CONFIG_FILES etc. instead of their
  20122. # values after options handling.
  20123. ac_log="
  20124. This file was extended by aria2c $as_me 1.0.1, which was
  20125. generated by GNU Autoconf 2.61. Invocation command line was
  20126. CONFIG_FILES = $CONFIG_FILES
  20127. CONFIG_HEADERS = $CONFIG_HEADERS
  20128. CONFIG_LINKS = $CONFIG_LINKS
  20129. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20130. $ $0 $@
  20131. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20132. "
  20133. _ACEOF
  20134. cat >>$CONFIG_STATUS <<_ACEOF
  20135. # Files that config.status was made for.
  20136. config_files="$ac_config_files"
  20137. config_headers="$ac_config_headers"
  20138. config_commands="$ac_config_commands"
  20139. _ACEOF
  20140. cat >>$CONFIG_STATUS <<\_ACEOF
  20141. ac_cs_usage="\
  20142. \`$as_me' instantiates files from templates according to the
  20143. current configuration.
  20144. Usage: $0 [OPTIONS] [FILE]...
  20145. -h, --help print this help, then exit
  20146. -V, --version print version number and configuration settings, then exit
  20147. -q, --quiet do not print progress messages
  20148. -d, --debug don't remove temporary files
  20149. --recheck update $as_me by reconfiguring in the same conditions
  20150. --file=FILE[:TEMPLATE]
  20151. instantiate the configuration file FILE
  20152. --header=FILE[:TEMPLATE]
  20153. instantiate the configuration header FILE
  20154. Configuration files:
  20155. $config_files
  20156. Configuration headers:
  20157. $config_headers
  20158. Configuration commands:
  20159. $config_commands
  20160. Report bugs to <bug-autoconf@gnu.org>."
  20161. _ACEOF
  20162. cat >>$CONFIG_STATUS <<_ACEOF
  20163. ac_cs_version="\\
  20164. aria2c config.status 1.0.1
  20165. configured by $0, generated by GNU Autoconf 2.61,
  20166. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20167. Copyright (C) 2006 Free Software Foundation, Inc.
  20168. This config.status script is free software; the Free Software Foundation
  20169. gives unlimited permission to copy, distribute and modify it."
  20170. ac_pwd='$ac_pwd'
  20171. srcdir='$srcdir'
  20172. INSTALL='$INSTALL'
  20173. MKDIR_P='$MKDIR_P'
  20174. _ACEOF
  20175. cat >>$CONFIG_STATUS <<\_ACEOF
  20176. # If no file are specified by the user, then we need to provide default
  20177. # value. By we need to know if files were specified by the user.
  20178. ac_need_defaults=:
  20179. while test $# != 0
  20180. do
  20181. case $1 in
  20182. --*=*)
  20183. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20184. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20185. ac_shift=:
  20186. ;;
  20187. *)
  20188. ac_option=$1
  20189. ac_optarg=$2
  20190. ac_shift=shift
  20191. ;;
  20192. esac
  20193. case $ac_option in
  20194. # Handling of the options.
  20195. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20196. ac_cs_recheck=: ;;
  20197. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20198. echo "$ac_cs_version"; exit ;;
  20199. --debug | --debu | --deb | --de | --d | -d )
  20200. debug=: ;;
  20201. --file | --fil | --fi | --f )
  20202. $ac_shift
  20203. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20204. ac_need_defaults=false;;
  20205. --header | --heade | --head | --hea )
  20206. $ac_shift
  20207. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20208. ac_need_defaults=false;;
  20209. --he | --h)
  20210. # Conflict between --help and --header
  20211. { echo "$as_me: error: ambiguous option: $1
  20212. Try \`$0 --help' for more information." >&2
  20213. { (exit 1); exit 1; }; };;
  20214. --help | --hel | -h )
  20215. echo "$ac_cs_usage"; exit ;;
  20216. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20217. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20218. ac_cs_silent=: ;;
  20219. # This is an error.
  20220. -*) { echo "$as_me: error: unrecognized option: $1
  20221. Try \`$0 --help' for more information." >&2
  20222. { (exit 1); exit 1; }; } ;;
  20223. *) ac_config_targets="$ac_config_targets $1"
  20224. ac_need_defaults=false ;;
  20225. esac
  20226. shift
  20227. done
  20228. ac_configure_extra_args=
  20229. if $ac_cs_silent; then
  20230. exec 6>/dev/null
  20231. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20232. fi
  20233. _ACEOF
  20234. cat >>$CONFIG_STATUS <<_ACEOF
  20235. if \$ac_cs_recheck; then
  20236. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20237. CONFIG_SHELL=$SHELL
  20238. export CONFIG_SHELL
  20239. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20240. fi
  20241. _ACEOF
  20242. cat >>$CONFIG_STATUS <<\_ACEOF
  20243. exec 5>>config.log
  20244. {
  20245. echo
  20246. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20247. ## Running $as_me. ##
  20248. _ASBOX
  20249. echo "$ac_log"
  20250. } >&5
  20251. _ACEOF
  20252. cat >>$CONFIG_STATUS <<_ACEOF
  20253. #
  20254. # INIT-COMMANDS
  20255. #
  20256. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20257. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20258. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20259. # from automake < 1.5.
  20260. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20261. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20262. LINGUAS="${LINGUAS-%UNSET%}"
  20263. _ACEOF
  20264. cat >>$CONFIG_STATUS <<\_ACEOF
  20265. # Handling of arguments.
  20266. for ac_config_target in $ac_config_targets
  20267. do
  20268. case $ac_config_target in
  20269. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20270. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20271. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20272. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20273. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20274. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20275. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20276. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20277. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20278. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20279. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20280. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20281. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20282. { (exit 1); exit 1; }; };;
  20283. esac
  20284. done
  20285. # If the user did not use the arguments to specify the items to instantiate,
  20286. # then the envvar interface is used. Set only those that are not.
  20287. # We use the long form for the default assignment because of an extremely
  20288. # bizarre bug on SunOS 4.1.3.
  20289. if $ac_need_defaults; then
  20290. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20291. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20292. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20293. fi
  20294. # Have a temporary directory for convenience. Make it in the build tree
  20295. # simply because there is no reason against having it here, and in addition,
  20296. # creating and moving files from /tmp can sometimes cause problems.
  20297. # Hook for its removal unless debugging.
  20298. # Note that there is a small window in which the directory will not be cleaned:
  20299. # after its creation but before its name has been assigned to `$tmp'.
  20300. $debug ||
  20301. {
  20302. tmp=
  20303. trap 'exit_status=$?
  20304. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20305. ' 0
  20306. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20307. }
  20308. # Create a (secure) tmp directory for tmp files.
  20309. {
  20310. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20311. test -n "$tmp" && test -d "$tmp"
  20312. } ||
  20313. {
  20314. tmp=./conf$$-$RANDOM
  20315. (umask 077 && mkdir "$tmp")
  20316. } ||
  20317. {
  20318. echo "$me: cannot create a temporary directory in ." >&2
  20319. { (exit 1); exit 1; }
  20320. }
  20321. #
  20322. # Set up the sed scripts for CONFIG_FILES section.
  20323. #
  20324. # No need to generate the scripts if there are no CONFIG_FILES.
  20325. # This happens for instance when ./config.status config.h
  20326. if test -n "$CONFIG_FILES"; then
  20327. _ACEOF
  20328. ac_delim='%!_!# '
  20329. for ac_last_try in false false false false false :; do
  20330. cat >conf$$subs.sed <<_ACEOF
  20331. SHELL!$SHELL$ac_delim
  20332. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20333. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20334. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20335. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20336. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20337. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20338. exec_prefix!$exec_prefix$ac_delim
  20339. prefix!$prefix$ac_delim
  20340. program_transform_name!$program_transform_name$ac_delim
  20341. bindir!$bindir$ac_delim
  20342. sbindir!$sbindir$ac_delim
  20343. libexecdir!$libexecdir$ac_delim
  20344. datarootdir!$datarootdir$ac_delim
  20345. datadir!$datadir$ac_delim
  20346. sysconfdir!$sysconfdir$ac_delim
  20347. sharedstatedir!$sharedstatedir$ac_delim
  20348. localstatedir!$localstatedir$ac_delim
  20349. includedir!$includedir$ac_delim
  20350. oldincludedir!$oldincludedir$ac_delim
  20351. docdir!$docdir$ac_delim
  20352. infodir!$infodir$ac_delim
  20353. htmldir!$htmldir$ac_delim
  20354. dvidir!$dvidir$ac_delim
  20355. pdfdir!$pdfdir$ac_delim
  20356. psdir!$psdir$ac_delim
  20357. libdir!$libdir$ac_delim
  20358. localedir!$localedir$ac_delim
  20359. mandir!$mandir$ac_delim
  20360. DEFS!$DEFS$ac_delim
  20361. ECHO_C!$ECHO_C$ac_delim
  20362. ECHO_N!$ECHO_N$ac_delim
  20363. ECHO_T!$ECHO_T$ac_delim
  20364. LIBS!$LIBS$ac_delim
  20365. build_alias!$build_alias$ac_delim
  20366. host_alias!$host_alias$ac_delim
  20367. target_alias!$target_alias$ac_delim
  20368. build!$build$ac_delim
  20369. build_cpu!$build_cpu$ac_delim
  20370. build_vendor!$build_vendor$ac_delim
  20371. build_os!$build_os$ac_delim
  20372. host!$host$ac_delim
  20373. host_cpu!$host_cpu$ac_delim
  20374. host_vendor!$host_vendor$ac_delim
  20375. host_os!$host_os$ac_delim
  20376. target!$target$ac_delim
  20377. target_cpu!$target_cpu$ac_delim
  20378. target_vendor!$target_vendor$ac_delim
  20379. target_os!$target_os$ac_delim
  20380. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20381. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20382. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20383. am__isrc!$am__isrc$ac_delim
  20384. CYGPATH_W!$CYGPATH_W$ac_delim
  20385. PACKAGE!$PACKAGE$ac_delim
  20386. VERSION!$VERSION$ac_delim
  20387. ACLOCAL!$ACLOCAL$ac_delim
  20388. AUTOCONF!$AUTOCONF$ac_delim
  20389. AUTOMAKE!$AUTOMAKE$ac_delim
  20390. AUTOHEADER!$AUTOHEADER$ac_delim
  20391. MAKEINFO!$MAKEINFO$ac_delim
  20392. install_sh!$install_sh$ac_delim
  20393. STRIP!$STRIP$ac_delim
  20394. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20395. mkdir_p!$mkdir_p$ac_delim
  20396. AWK!$AWK$ac_delim
  20397. SET_MAKE!$SET_MAKE$ac_delim
  20398. am__leading_dot!$am__leading_dot$ac_delim
  20399. AMTAR!$AMTAR$ac_delim
  20400. am__tar!$am__tar$ac_delim
  20401. am__untar!$am__untar$ac_delim
  20402. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20403. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20404. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20405. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20406. CXX!$CXX$ac_delim
  20407. CXXFLAGS!$CXXFLAGS$ac_delim
  20408. LDFLAGS!$LDFLAGS$ac_delim
  20409. CPPFLAGS!$CPPFLAGS$ac_delim
  20410. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20411. EXEEXT!$EXEEXT$ac_delim
  20412. OBJEXT!$OBJEXT$ac_delim
  20413. DEPDIR!$DEPDIR$ac_delim
  20414. am__include!$am__include$ac_delim
  20415. am__quote!$am__quote$ac_delim
  20416. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20417. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20418. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20419. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20420. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20421. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20422. CC!$CC$ac_delim
  20423. CFLAGS!$CFLAGS$ac_delim
  20424. ac_ct_CC!$ac_ct_CC$ac_delim
  20425. CCDEPMODE!$CCDEPMODE$ac_delim
  20426. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20427. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20428. _ACEOF
  20429. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20430. break
  20431. elif $ac_last_try; then
  20432. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20433. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20434. { (exit 1); exit 1; }; }
  20435. else
  20436. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20437. fi
  20438. done
  20439. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20440. if test -n "$ac_eof"; then
  20441. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20442. ac_eof=`expr $ac_eof + 1`
  20443. fi
  20444. cat >>$CONFIG_STATUS <<_ACEOF
  20445. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20446. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20447. _ACEOF
  20448. sed '
  20449. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20450. s/^/s,@/; s/!/@,|#_!!_#|/
  20451. :n
  20452. t n
  20453. s/'"$ac_delim"'$/,g/; t
  20454. s/$/\\/; p
  20455. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20456. ' >>$CONFIG_STATUS <conf$$subs.sed
  20457. rm -f conf$$subs.sed
  20458. cat >>$CONFIG_STATUS <<_ACEOF
  20459. CEOF$ac_eof
  20460. _ACEOF
  20461. ac_delim='%!_!# '
  20462. for ac_last_try in false false false false false :; do
  20463. cat >conf$$subs.sed <<_ACEOF
  20464. RANLIB!$RANLIB$ac_delim
  20465. YACC!$YACC$ac_delim
  20466. YFLAGS!$YFLAGS$ac_delim
  20467. CXXCPP!$CXXCPP$ac_delim
  20468. GREP!$GREP$ac_delim
  20469. EGREP!$EGREP$ac_delim
  20470. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20471. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20472. XML_LIBS!$XML_LIBS$ac_delim
  20473. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20474. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20475. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20476. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20477. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20478. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20479. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20480. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20481. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20482. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20483. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20484. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20485. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20486. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20487. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20488. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20489. ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
  20490. ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
  20491. HAVE_LIBGNUTLS_TRUE!$HAVE_LIBGNUTLS_TRUE$ac_delim
  20492. HAVE_LIBGNUTLS_FALSE!$HAVE_LIBGNUTLS_FALSE$ac_delim
  20493. HAVE_LIBSSL_TRUE!$HAVE_LIBSSL_TRUE$ac_delim
  20494. HAVE_LIBSSL_FALSE!$HAVE_LIBSSL_FALSE$ac_delim
  20495. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20496. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20497. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20498. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20499. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20500. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20501. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20502. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20503. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20504. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20505. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20506. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20507. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20508. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20509. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20510. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20511. ALLOCA!$ALLOCA$ac_delim
  20512. USE_NLS!$USE_NLS$ac_delim
  20513. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20514. MSGFMT!$MSGFMT$ac_delim
  20515. GMSGFMT!$GMSGFMT$ac_delim
  20516. MSGFMT_015!$MSGFMT_015$ac_delim
  20517. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20518. XGETTEXT!$XGETTEXT$ac_delim
  20519. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20520. MSGMERGE!$MSGMERGE$ac_delim
  20521. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20522. GLIBC2!$GLIBC2$ac_delim
  20523. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20524. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20525. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20526. LIBPTH!$LIBPTH$ac_delim
  20527. LTLIBPTH!$LTLIBPTH$ac_delim
  20528. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20529. LIBTHREAD!$LIBTHREAD$ac_delim
  20530. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20531. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20532. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20533. LIBICONV!$LIBICONV$ac_delim
  20534. LTLIBICONV!$LTLIBICONV$ac_delim
  20535. INTLBISON!$INTLBISON$ac_delim
  20536. GLIBC21!$GLIBC21$ac_delim
  20537. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20538. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20539. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20540. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20541. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20542. WOE32DLL!$WOE32DLL$ac_delim
  20543. WOE32!$WOE32$ac_delim
  20544. WINDRES!$WINDRES$ac_delim
  20545. LTLIBC!$LTLIBC$ac_delim
  20546. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20547. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20548. CATOBJEXT!$CATOBJEXT$ac_delim
  20549. DATADIRNAME!$DATADIRNAME$ac_delim
  20550. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20551. GENCAT!$GENCAT$ac_delim
  20552. INTLOBJS!$INTLOBJS$ac_delim
  20553. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20554. INTLLIBS!$INTLLIBS$ac_delim
  20555. LIBINTL!$LIBINTL$ac_delim
  20556. LTLIBINTL!$LTLIBINTL$ac_delim
  20557. POSUB!$POSUB$ac_delim
  20558. LIBOBJS!$LIBOBJS$ac_delim
  20559. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20560. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20561. _ACEOF
  20562. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20563. break
  20564. elif $ac_last_try; then
  20565. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20566. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20567. { (exit 1); exit 1; }; }
  20568. else
  20569. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20570. fi
  20571. done
  20572. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20573. if test -n "$ac_eof"; then
  20574. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20575. ac_eof=`expr $ac_eof + 1`
  20576. fi
  20577. cat >>$CONFIG_STATUS <<_ACEOF
  20578. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20579. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20580. _ACEOF
  20581. sed '
  20582. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20583. s/^/s,@/; s/!/@,|#_!!_#|/
  20584. :n
  20585. t n
  20586. s/'"$ac_delim"'$/,g/; t
  20587. s/$/\\/; p
  20588. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20589. ' >>$CONFIG_STATUS <conf$$subs.sed
  20590. rm -f conf$$subs.sed
  20591. cat >>$CONFIG_STATUS <<_ACEOF
  20592. CEOF$ac_eof
  20593. _ACEOF
  20594. ac_delim='%!_!# '
  20595. for ac_last_try in false false false false false :; do
  20596. cat >conf$$subs.sed <<_ACEOF
  20597. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20598. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20599. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20600. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20601. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20602. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20603. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20604. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20605. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20606. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20607. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20608. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20609. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20610. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20611. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20612. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20613. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20614. _ACEOF
  20615. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
  20616. break
  20617. elif $ac_last_try; then
  20618. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20619. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20620. { (exit 1); exit 1; }; }
  20621. else
  20622. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20623. fi
  20624. done
  20625. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20626. if test -n "$ac_eof"; then
  20627. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20628. ac_eof=`expr $ac_eof + 1`
  20629. fi
  20630. cat >>$CONFIG_STATUS <<_ACEOF
  20631. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20632. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20633. _ACEOF
  20634. sed '
  20635. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20636. s/^/s,@/; s/!/@,|#_!!_#|/
  20637. :n
  20638. t n
  20639. s/'"$ac_delim"'$/,g/; t
  20640. s/$/\\/; p
  20641. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20642. ' >>$CONFIG_STATUS <conf$$subs.sed
  20643. rm -f conf$$subs.sed
  20644. cat >>$CONFIG_STATUS <<_ACEOF
  20645. :end
  20646. s/|#_!!_#|//g
  20647. CEOF$ac_eof
  20648. _ACEOF
  20649. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20650. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20651. # trailing colons and then remove the whole line if VPATH becomes empty
  20652. # (actually we leave an empty line to preserve line numbers).
  20653. if test "x$srcdir" = x.; then
  20654. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20655. s/:*\$(srcdir):*/:/
  20656. s/:*\${srcdir}:*/:/
  20657. s/:*@srcdir@:*/:/
  20658. s/^\([^=]*=[ ]*\):*/\1/
  20659. s/:*$//
  20660. s/^[^=]*=[ ]*$//
  20661. }'
  20662. fi
  20663. cat >>$CONFIG_STATUS <<\_ACEOF
  20664. fi # test -n "$CONFIG_FILES"
  20665. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20666. do
  20667. case $ac_tag in
  20668. :[FHLC]) ac_mode=$ac_tag; continue;;
  20669. esac
  20670. case $ac_mode$ac_tag in
  20671. :[FHL]*:*);;
  20672. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20673. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20674. { (exit 1); exit 1; }; };;
  20675. :[FH]-) ac_tag=-:-;;
  20676. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20677. esac
  20678. ac_save_IFS=$IFS
  20679. IFS=:
  20680. set x $ac_tag
  20681. IFS=$ac_save_IFS
  20682. shift
  20683. ac_file=$1
  20684. shift
  20685. case $ac_mode in
  20686. :L) ac_source=$1;;
  20687. :[FH])
  20688. ac_file_inputs=
  20689. for ac_f
  20690. do
  20691. case $ac_f in
  20692. -) ac_f="$tmp/stdin";;
  20693. *) # Look for the file first in the build tree, then in the source tree
  20694. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20695. # because $ac_f cannot contain `:'.
  20696. test -f "$ac_f" ||
  20697. case $ac_f in
  20698. [\\/$]*) false;;
  20699. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20700. esac ||
  20701. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20702. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20703. { (exit 1); exit 1; }; };;
  20704. esac
  20705. ac_file_inputs="$ac_file_inputs $ac_f"
  20706. done
  20707. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20708. # use $as_me), people would be surprised to read:
  20709. # /* config.h. Generated by config.status. */
  20710. configure_input="Generated from "`IFS=:
  20711. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20712. if test x"$ac_file" != x-; then
  20713. configure_input="$ac_file. $configure_input"
  20714. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20715. echo "$as_me: creating $ac_file" >&6;}
  20716. fi
  20717. case $ac_tag in
  20718. *:-:* | *:-) cat >"$tmp/stdin";;
  20719. esac
  20720. ;;
  20721. esac
  20722. ac_dir=`$as_dirname -- "$ac_file" ||
  20723. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20724. X"$ac_file" : 'X\(//\)[^/]' \| \
  20725. X"$ac_file" : 'X\(//\)$' \| \
  20726. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20727. echo X"$ac_file" |
  20728. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20729. s//\1/
  20730. q
  20731. }
  20732. /^X\(\/\/\)[^/].*/{
  20733. s//\1/
  20734. q
  20735. }
  20736. /^X\(\/\/\)$/{
  20737. s//\1/
  20738. q
  20739. }
  20740. /^X\(\/\).*/{
  20741. s//\1/
  20742. q
  20743. }
  20744. s/.*/./; q'`
  20745. { as_dir="$ac_dir"
  20746. case $as_dir in #(
  20747. -*) as_dir=./$as_dir;;
  20748. esac
  20749. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20750. as_dirs=
  20751. while :; do
  20752. case $as_dir in #(
  20753. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20754. *) as_qdir=$as_dir;;
  20755. esac
  20756. as_dirs="'$as_qdir' $as_dirs"
  20757. as_dir=`$as_dirname -- "$as_dir" ||
  20758. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20759. X"$as_dir" : 'X\(//\)[^/]' \| \
  20760. X"$as_dir" : 'X\(//\)$' \| \
  20761. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20762. echo X"$as_dir" |
  20763. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20764. s//\1/
  20765. q
  20766. }
  20767. /^X\(\/\/\)[^/].*/{
  20768. s//\1/
  20769. q
  20770. }
  20771. /^X\(\/\/\)$/{
  20772. s//\1/
  20773. q
  20774. }
  20775. /^X\(\/\).*/{
  20776. s//\1/
  20777. q
  20778. }
  20779. s/.*/./; q'`
  20780. test -d "$as_dir" && break
  20781. done
  20782. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20783. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20784. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20785. { (exit 1); exit 1; }; }; }
  20786. ac_builddir=.
  20787. case "$ac_dir" in
  20788. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20789. *)
  20790. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20791. # A ".." for each directory in $ac_dir_suffix.
  20792. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20793. case $ac_top_builddir_sub in
  20794. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20795. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20796. esac ;;
  20797. esac
  20798. ac_abs_top_builddir=$ac_pwd
  20799. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20800. # for backward compatibility:
  20801. ac_top_builddir=$ac_top_build_prefix
  20802. case $srcdir in
  20803. .) # We are building in place.
  20804. ac_srcdir=.
  20805. ac_top_srcdir=$ac_top_builddir_sub
  20806. ac_abs_top_srcdir=$ac_pwd ;;
  20807. [\\/]* | ?:[\\/]* ) # Absolute name.
  20808. ac_srcdir=$srcdir$ac_dir_suffix;
  20809. ac_top_srcdir=$srcdir
  20810. ac_abs_top_srcdir=$srcdir ;;
  20811. *) # Relative name.
  20812. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20813. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20814. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20815. esac
  20816. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20817. case $ac_mode in
  20818. :F)
  20819. #
  20820. # CONFIG_FILE
  20821. #
  20822. case $INSTALL in
  20823. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20824. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20825. esac
  20826. ac_MKDIR_P=$MKDIR_P
  20827. case $MKDIR_P in
  20828. [\\/$]* | ?:[\\/]* ) ;;
  20829. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20830. esac
  20831. _ACEOF
  20832. cat >>$CONFIG_STATUS <<\_ACEOF
  20833. # If the template does not know about datarootdir, expand it.
  20834. # FIXME: This hack should be removed a few years after 2.60.
  20835. ac_datarootdir_hack=; ac_datarootdir_seen=
  20836. case `sed -n '/datarootdir/ {
  20837. p
  20838. q
  20839. }
  20840. /@datadir@/p
  20841. /@docdir@/p
  20842. /@infodir@/p
  20843. /@localedir@/p
  20844. /@mandir@/p
  20845. ' $ac_file_inputs` in
  20846. *datarootdir*) ac_datarootdir_seen=yes;;
  20847. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20848. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20849. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20850. _ACEOF
  20851. cat >>$CONFIG_STATUS <<_ACEOF
  20852. ac_datarootdir_hack='
  20853. s&@datadir@&$datadir&g
  20854. s&@docdir@&$docdir&g
  20855. s&@infodir@&$infodir&g
  20856. s&@localedir@&$localedir&g
  20857. s&@mandir@&$mandir&g
  20858. s&\\\${datarootdir}&$datarootdir&g' ;;
  20859. esac
  20860. _ACEOF
  20861. # Neutralize VPATH when `$srcdir' = `.'.
  20862. # Shell code in configure.ac might set extrasub.
  20863. # FIXME: do we really want to maintain this feature?
  20864. cat >>$CONFIG_STATUS <<_ACEOF
  20865. sed "$ac_vpsub
  20866. $extrasub
  20867. _ACEOF
  20868. cat >>$CONFIG_STATUS <<\_ACEOF
  20869. :t
  20870. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20871. s&@configure_input@&$configure_input&;t t
  20872. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20873. s&@srcdir@&$ac_srcdir&;t t
  20874. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20875. s&@top_srcdir@&$ac_top_srcdir&;t t
  20876. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20877. s&@builddir@&$ac_builddir&;t t
  20878. s&@abs_builddir@&$ac_abs_builddir&;t t
  20879. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20880. s&@INSTALL@&$ac_INSTALL&;t t
  20881. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20882. $ac_datarootdir_hack
  20883. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20884. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20885. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20886. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20887. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20888. which seems to be undefined. Please make sure it is defined." >&5
  20889. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20890. which seems to be undefined. Please make sure it is defined." >&2;}
  20891. rm -f "$tmp/stdin"
  20892. case $ac_file in
  20893. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20894. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20895. esac
  20896. ;;
  20897. :H)
  20898. #
  20899. # CONFIG_HEADER
  20900. #
  20901. _ACEOF
  20902. # Transform confdefs.h into a sed script `conftest.defines', that
  20903. # substitutes the proper values into config.h.in to produce config.h.
  20904. rm -f conftest.defines conftest.tail
  20905. # First, append a space to every undef/define line, to ease matching.
  20906. echo 's/$/ /' >conftest.defines
  20907. # Then, protect against being on the right side of a sed subst, or in
  20908. # an unquoted here document, in config.status. If some macros were
  20909. # called several times there might be several #defines for the same
  20910. # symbol, which is useless. But do not sort them, since the last
  20911. # AC_DEFINE must be honored.
  20912. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20913. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20914. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20915. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20916. # just an empty string.
  20917. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20918. ac_dB='\\)[ (].*,\\1define\\2'
  20919. ac_dC=' '
  20920. ac_dD=' ,'
  20921. uniq confdefs.h |
  20922. sed -n '
  20923. t rset
  20924. :rset
  20925. s/^[ ]*#[ ]*define[ ][ ]*//
  20926. t ok
  20927. d
  20928. :ok
  20929. s/[\\&,]/\\&/g
  20930. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20931. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20932. ' >>conftest.defines
  20933. # Remove the space that was appended to ease matching.
  20934. # Then replace #undef with comments. This is necessary, for
  20935. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20936. # on some systems where configure will not decide to define it.
  20937. # (The regexp can be short, since the line contains either #define or #undef.)
  20938. echo 's/ $//
  20939. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20940. # Break up conftest.defines:
  20941. ac_max_sed_lines=50
  20942. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20943. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20944. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20945. # et cetera.
  20946. ac_in='$ac_file_inputs'
  20947. ac_out='"$tmp/out1"'
  20948. ac_nxt='"$tmp/out2"'
  20949. while :
  20950. do
  20951. # Write a here document:
  20952. cat >>$CONFIG_STATUS <<_ACEOF
  20953. # First, check the format of the line:
  20954. cat >"\$tmp/defines.sed" <<\\CEOF
  20955. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20956. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20957. b
  20958. :def
  20959. _ACEOF
  20960. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20961. echo 'CEOF
  20962. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20963. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20964. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20965. grep . conftest.tail >/dev/null || break
  20966. rm -f conftest.defines
  20967. mv conftest.tail conftest.defines
  20968. done
  20969. rm -f conftest.defines conftest.tail
  20970. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20971. cat >>$CONFIG_STATUS <<\_ACEOF
  20972. if test x"$ac_file" != x-; then
  20973. echo "/* $configure_input */" >"$tmp/config.h"
  20974. cat "$ac_result" >>"$tmp/config.h"
  20975. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20976. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20977. echo "$as_me: $ac_file is unchanged" >&6;}
  20978. else
  20979. rm -f $ac_file
  20980. mv "$tmp/config.h" $ac_file
  20981. fi
  20982. else
  20983. echo "/* $configure_input */"
  20984. cat "$ac_result"
  20985. fi
  20986. rm -f "$tmp/out12"
  20987. # Compute $ac_file's index in $config_headers.
  20988. _am_arg=$ac_file
  20989. _am_stamp_count=1
  20990. for _am_header in $config_headers :; do
  20991. case $_am_header in
  20992. $_am_arg | $_am_arg:* )
  20993. break ;;
  20994. * )
  20995. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20996. esac
  20997. done
  20998. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20999. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21000. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21001. X"$_am_arg" : 'X\(//\)$' \| \
  21002. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21003. echo X"$_am_arg" |
  21004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21005. s//\1/
  21006. q
  21007. }
  21008. /^X\(\/\/\)[^/].*/{
  21009. s//\1/
  21010. q
  21011. }
  21012. /^X\(\/\/\)$/{
  21013. s//\1/
  21014. q
  21015. }
  21016. /^X\(\/\).*/{
  21017. s//\1/
  21018. q
  21019. }
  21020. s/.*/./; q'`/stamp-h$_am_stamp_count
  21021. ;;
  21022. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21023. echo "$as_me: executing $ac_file commands" >&6;}
  21024. ;;
  21025. esac
  21026. case $ac_file$ac_mode in
  21027. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21028. # Strip MF so we end up with the name of the file.
  21029. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21030. # Check whether this is an Automake generated Makefile or not.
  21031. # We used to match only the files named `Makefile.in', but
  21032. # some people rename them; so instead we look at the file content.
  21033. # Grep'ing the first line is not enough: some people post-process
  21034. # each Makefile.in and add a new line on top of each file to say so.
  21035. # Grep'ing the whole file is not good either: AIX grep has a line
  21036. # limit of 2048, but all sed's we know have understand at least 4000.
  21037. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21038. dirpart=`$as_dirname -- "$mf" ||
  21039. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21040. X"$mf" : 'X\(//\)[^/]' \| \
  21041. X"$mf" : 'X\(//\)$' \| \
  21042. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21043. echo X"$mf" |
  21044. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21045. s//\1/
  21046. q
  21047. }
  21048. /^X\(\/\/\)[^/].*/{
  21049. s//\1/
  21050. q
  21051. }
  21052. /^X\(\/\/\)$/{
  21053. s//\1/
  21054. q
  21055. }
  21056. /^X\(\/\).*/{
  21057. s//\1/
  21058. q
  21059. }
  21060. s/.*/./; q'`
  21061. else
  21062. continue
  21063. fi
  21064. # Extract the definition of DEPDIR, am__include, and am__quote
  21065. # from the Makefile without running `make'.
  21066. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21067. test -z "$DEPDIR" && continue
  21068. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21069. test -z "am__include" && continue
  21070. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21071. # When using ansi2knr, U may be empty or an underscore; expand it
  21072. U=`sed -n 's/^U = //p' < "$mf"`
  21073. # Find all dependency output files, they are included files with
  21074. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21075. # simplest approach to changing $(DEPDIR) to its actual value in the
  21076. # expansion.
  21077. for file in `sed -n "
  21078. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21079. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21080. # Make sure the directory exists.
  21081. test -f "$dirpart/$file" && continue
  21082. fdir=`$as_dirname -- "$file" ||
  21083. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21084. X"$file" : 'X\(//\)[^/]' \| \
  21085. X"$file" : 'X\(//\)$' \| \
  21086. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21087. echo X"$file" |
  21088. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21089. s//\1/
  21090. q
  21091. }
  21092. /^X\(\/\/\)[^/].*/{
  21093. s//\1/
  21094. q
  21095. }
  21096. /^X\(\/\/\)$/{
  21097. s//\1/
  21098. q
  21099. }
  21100. /^X\(\/\).*/{
  21101. s//\1/
  21102. q
  21103. }
  21104. s/.*/./; q'`
  21105. { as_dir=$dirpart/$fdir
  21106. case $as_dir in #(
  21107. -*) as_dir=./$as_dir;;
  21108. esac
  21109. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21110. as_dirs=
  21111. while :; do
  21112. case $as_dir in #(
  21113. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21114. *) as_qdir=$as_dir;;
  21115. esac
  21116. as_dirs="'$as_qdir' $as_dirs"
  21117. as_dir=`$as_dirname -- "$as_dir" ||
  21118. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21119. X"$as_dir" : 'X\(//\)[^/]' \| \
  21120. X"$as_dir" : 'X\(//\)$' \| \
  21121. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21122. echo X"$as_dir" |
  21123. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21124. s//\1/
  21125. q
  21126. }
  21127. /^X\(\/\/\)[^/].*/{
  21128. s//\1/
  21129. q
  21130. }
  21131. /^X\(\/\/\)$/{
  21132. s//\1/
  21133. q
  21134. }
  21135. /^X\(\/\).*/{
  21136. s//\1/
  21137. q
  21138. }
  21139. s/.*/./; q'`
  21140. test -d "$as_dir" && break
  21141. done
  21142. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21143. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21144. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21145. { (exit 1); exit 1; }; }; }
  21146. # echo "creating $dirpart/$file"
  21147. echo '# dummy' > "$dirpart/$file"
  21148. done
  21149. done
  21150. ;;
  21151. "po-directories":C)
  21152. for ac_file in $CONFIG_FILES; do
  21153. # Support "outfile[:infile[:infile...]]"
  21154. case "$ac_file" in
  21155. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21156. esac
  21157. # PO directories have a Makefile.in generated from Makefile.in.in.
  21158. case "$ac_file" in */Makefile.in)
  21159. # Adjust a relative srcdir.
  21160. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21161. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21162. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21163. # In autoconf-2.13 it is called $ac_given_srcdir.
  21164. # In autoconf-2.50 it is called $srcdir.
  21165. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21166. case "$ac_given_srcdir" in
  21167. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21168. /*) top_srcdir="$ac_given_srcdir" ;;
  21169. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21170. esac
  21171. # Treat a directory as a PO directory if and only if it has a
  21172. # POTFILES.in file. This allows packages to have multiple PO
  21173. # directories under different names or in different locations.
  21174. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21175. rm -f "$ac_dir/POTFILES"
  21176. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21177. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21178. POMAKEFILEDEPS="POTFILES.in"
  21179. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21180. # on $ac_dir but don't depend on user-specified configuration
  21181. # parameters.
  21182. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21183. # The LINGUAS file contains the set of available languages.
  21184. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21185. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21186. fi
  21187. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21188. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21189. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21190. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21191. else
  21192. # The set of available languages was given in configure.in.
  21193. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21194. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21195. fi
  21196. # Compute POFILES
  21197. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21198. # Compute UPDATEPOFILES
  21199. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21200. # Compute DUMMYPOFILES
  21201. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21202. # Compute GMOFILES
  21203. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21204. case "$ac_given_srcdir" in
  21205. .) srcdirpre= ;;
  21206. *) srcdirpre='$(srcdir)/' ;;
  21207. esac
  21208. POFILES=
  21209. UPDATEPOFILES=
  21210. DUMMYPOFILES=
  21211. GMOFILES=
  21212. for lang in $ALL_LINGUAS; do
  21213. POFILES="$POFILES $srcdirpre$lang.po"
  21214. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21215. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21216. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21217. done
  21218. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21219. # environment variable.
  21220. INST_LINGUAS=
  21221. if test -n "$ALL_LINGUAS"; then
  21222. for presentlang in $ALL_LINGUAS; do
  21223. useit=no
  21224. if test "%UNSET%" != "$LINGUAS"; then
  21225. desiredlanguages="$LINGUAS"
  21226. else
  21227. desiredlanguages="$ALL_LINGUAS"
  21228. fi
  21229. for desiredlang in $desiredlanguages; do
  21230. # Use the presentlang catalog if desiredlang is
  21231. # a. equal to presentlang, or
  21232. # b. a variant of presentlang (because in this case,
  21233. # presentlang can be used as a fallback for messages
  21234. # which are not translated in the desiredlang catalog).
  21235. case "$desiredlang" in
  21236. "$presentlang"*) useit=yes;;
  21237. esac
  21238. done
  21239. if test $useit = yes; then
  21240. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21241. fi
  21242. done
  21243. fi
  21244. CATALOGS=
  21245. if test -n "$INST_LINGUAS"; then
  21246. for lang in $INST_LINGUAS; do
  21247. CATALOGS="$CATALOGS $lang.gmo"
  21248. done
  21249. fi
  21250. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21251. 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"
  21252. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21253. if test -f "$f"; then
  21254. case "$f" in
  21255. *.orig | *.bak | *~) ;;
  21256. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21257. esac
  21258. fi
  21259. done
  21260. fi
  21261. ;;
  21262. esac
  21263. done ;;
  21264. esac
  21265. done # for ac_tag
  21266. { (exit 0); exit 0; }
  21267. _ACEOF
  21268. chmod +x $CONFIG_STATUS
  21269. ac_clean_files=$ac_clean_files_save
  21270. # configure is writing to config.log, and then calls config.status.
  21271. # config.status does its own redirection, appending to config.log.
  21272. # Unfortunately, on DOS this fails, as config.log is still kept open
  21273. # by configure, so config.status won't be able to write to it; its
  21274. # output is simply discarded. So we exec the FD to /dev/null,
  21275. # effectively closing config.log, so it can be properly (re)opened and
  21276. # appended to by config.status. When coming back to configure, we
  21277. # need to make the FD available again.
  21278. if test "$no_create" != yes; then
  21279. ac_cs_success=:
  21280. ac_config_status_args=
  21281. test "$silent" = yes &&
  21282. ac_config_status_args="$ac_config_status_args --quiet"
  21283. exec 5>/dev/null
  21284. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21285. exec 5>>config.log
  21286. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21287. # would make configure fail if this is the last instruction.
  21288. $ac_cs_success || { (exit 1); exit 1; }
  21289. fi
  21290. echo " "
  21291. echo "Build: $build"
  21292. echo "Target: $target"
  21293. echo "Install prefix: $prefix"
  21294. echo "CFLAGS: $CFLAGS"
  21295. echo "CPPFLAGS: $CPPFLAGS"
  21296. echo "LDFLAGS: $LDFLAGS"
  21297. echo "LIBS: $LIBS"
  21298. echo "SQLite3: $have_sqlite3"
  21299. echo "GnuTLS: $have_libgnutls"
  21300. echo "OpenSSL: $have_openssl"
  21301. echo "LibXML2: $have_libxml2"
  21302. echo "LibExpat: $have_libexpat"
  21303. echo "LibCares: $have_libcares"
  21304. echo "Libz: $have_libz"
  21305. echo "Bittorrent: $enable_bittorrent"
  21306. echo "Metalink: $enable_metalink"