configure 696 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for aria2 1.4.0.
  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, 2007, 2008 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. # Pre-4.2 versions of Zsh do 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. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$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. # Pre-4.2 versions of Zsh do 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. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. exec 7<&0 </dev/null 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. # Identity of this package.
  515. PACKAGE_NAME='aria2'
  516. PACKAGE_TARNAME='aria2'
  517. PACKAGE_VERSION='1.4.0'
  518. PACKAGE_STRING='aria2 1.4.0'
  519. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  520. ac_unique_file="src/Socket.h"
  521. # Factoring default headers for most tests.
  522. ac_includes_default="\
  523. #include <stdio.h>
  524. #ifdef HAVE_SYS_TYPES_H
  525. # include <sys/types.h>
  526. #endif
  527. #ifdef HAVE_SYS_STAT_H
  528. # include <sys/stat.h>
  529. #endif
  530. #ifdef STDC_HEADERS
  531. # include <stdlib.h>
  532. # include <stddef.h>
  533. #else
  534. # ifdef HAVE_STDLIB_H
  535. # include <stdlib.h>
  536. # endif
  537. #endif
  538. #ifdef HAVE_STRING_H
  539. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  540. # include <memory.h>
  541. # endif
  542. # include <string.h>
  543. #endif
  544. #ifdef HAVE_STRINGS_H
  545. # include <strings.h>
  546. #endif
  547. #ifdef HAVE_INTTYPES_H
  548. # include <inttypes.h>
  549. #endif
  550. #ifdef HAVE_STDINT_H
  551. # include <stdint.h>
  552. #endif
  553. #ifdef HAVE_UNISTD_H
  554. # include <unistd.h>
  555. #endif"
  556. gt_needs=
  557. ac_header_list=
  558. ac_func_list=
  559. ac_subst_vars='LTLIBOBJS
  560. HAVE_TIMEGM_FALSE
  561. HAVE_TIMEGM_TRUE
  562. HAVE_STRPTIME_FALSE
  563. HAVE_STRPTIME_TRUE
  564. HAVE_LOCALTIME_R_FALSE
  565. HAVE_LOCALTIME_R_TRUE
  566. HAVE_INET_ATON_FALSE
  567. HAVE_INET_ATON_TRUE
  568. HAVE_GETTIMEOFDAY_FALSE
  569. HAVE_GETTIMEOFDAY_TRUE
  570. HAVE_GETADDRINFO_FALSE
  571. HAVE_GETADDRINFO_TRUE
  572. HAVE_GAI_STRERROR_FALSE
  573. HAVE_GAI_STRERROR_TRUE
  574. HAVE_BASENAME_FALSE
  575. HAVE_BASENAME_TRUE
  576. HAVE_ASCTIME_R_FALSE
  577. HAVE_ASCTIME_R_TRUE
  578. HAVE_POSIX_FALLOCATE_FALSE
  579. HAVE_POSIX_FALLOCATE_TRUE
  580. HAVE_EPOLL_FALSE
  581. HAVE_EPOLL_TRUE
  582. LIBOBJS
  583. POSUB
  584. LTLIBINTL
  585. LIBINTL
  586. INTLLIBS
  587. INTL_LIBTOOL_SUFFIX_PREFIX
  588. INTLOBJS
  589. GENCAT
  590. INSTOBJEXT
  591. DATADIRNAME
  592. CATOBJEXT
  593. USE_INCLUDED_LIBINTL
  594. BUILD_INCLUDED_LIBINTL
  595. LTLIBC
  596. WINDRES
  597. WOE32
  598. WOE32DLL
  599. HAVE_WPRINTF
  600. HAVE_SNPRINTF
  601. HAVE_ASPRINTF
  602. HAVE_POSIX_PRINTF
  603. INTL_MACOSX_LIBS
  604. GLIBC21
  605. INTLBISON
  606. LTLIBICONV
  607. LIBICONV
  608. LTLIBMULTITHREAD
  609. LIBMULTITHREAD
  610. LTLIBTHREAD
  611. LIBTHREAD
  612. LIBPTH_PREFIX
  613. LTLIBPTH
  614. LIBPTH
  615. PRI_MACROS_BROKEN
  616. HAVE_VISIBILITY
  617. CFLAG_VISIBILITY
  618. GLIBC2
  619. XGETTEXT_EXTRA_OPTIONS
  620. MSGMERGE
  621. XGETTEXT_015
  622. XGETTEXT
  623. GMSGFMT_015
  624. MSGFMT_015
  625. GMSGFMT
  626. MSGFMT
  627. GETTEXT_MACRO_VERSION
  628. USE_NLS
  629. ALLOCA
  630. HAVE_SQLITE3_FALSE
  631. HAVE_SQLITE3_TRUE
  632. HAVE_LIBZ_FALSE
  633. HAVE_LIBZ_TRUE
  634. ENABLE_ASYNC_DNS_FALSE
  635. ENABLE_ASYNC_DNS_TRUE
  636. HAVE_LIBEXPAT_FALSE
  637. HAVE_LIBEXPAT_TRUE
  638. HAVE_LIBXML2_FALSE
  639. HAVE_LIBXML2_TRUE
  640. ENABLE_XML_RPC_FALSE
  641. ENABLE_XML_RPC_TRUE
  642. ENABLE_METALINK_LIBEXPAT_FALSE
  643. ENABLE_METALINK_LIBEXPAT_TRUE
  644. ENABLE_METALINK_LIBXML2_FALSE
  645. ENABLE_METALINK_LIBXML2_TRUE
  646. ENABLE_METALINK_FALSE
  647. ENABLE_METALINK_TRUE
  648. ENABLE_BITTORRENT_FALSE
  649. ENABLE_BITTORRENT_TRUE
  650. ENABLE_MESSAGE_DIGEST_FALSE
  651. ENABLE_MESSAGE_DIGEST_TRUE
  652. HAVE_LIBSSL_FALSE
  653. HAVE_LIBSSL_TRUE
  654. HAVE_LIBGNUTLS_FALSE
  655. HAVE_LIBGNUTLS_TRUE
  656. ca_bundle
  657. ENABLE_SSL_FALSE
  658. ENABLE_SSL_TRUE
  659. LIBZ_CPPFLAGS
  660. LIBZ_LIBS
  661. LIBCARES_CPPFLAGS
  662. LIBCARES_LIBS
  663. OPENSSL_CFLAGS
  664. OPENSSL_LIBS
  665. LIBGCRYPT_LIBS
  666. LIBGCRYPT_CFLAGS
  667. LIBGCRYPT_CONFIG
  668. LIBGNUTLS_CONFIG
  669. LIBGNUTLS_LIBS
  670. LIBGNUTLS_CFLAGS
  671. PKG_CONFIG
  672. SQLITE3_CPPFLAGS
  673. SQLITE3_LIBS
  674. LIBEXPAT_CPPFLAGS
  675. LIBEXPAT_LIBS
  676. XML_LIBS
  677. XML_CPPFLAGS
  678. XML2_CONFIG
  679. EGREP
  680. GREP
  681. CXXCPP
  682. YFLAGS
  683. YACC
  684. RANLIB
  685. am__fastdepCC_FALSE
  686. am__fastdepCC_TRUE
  687. CCDEPMODE
  688. ac_ct_CC
  689. CFLAGS
  690. CC
  691. am__fastdepCXX_FALSE
  692. am__fastdepCXX_TRUE
  693. CXXDEPMODE
  694. AMDEPBACKSLASH
  695. AMDEP_FALSE
  696. AMDEP_TRUE
  697. am__quote
  698. am__include
  699. DEPDIR
  700. OBJEXT
  701. EXEEXT
  702. ac_ct_CXX
  703. CPPFLAGS
  704. LDFLAGS
  705. CXXFLAGS
  706. CXX
  707. WINSOCK_LIBS
  708. CPPUNIT_LIBS
  709. CPPUNIT_CFLAGS
  710. CPPUNIT_CONFIG
  711. am__untar
  712. am__tar
  713. AMTAR
  714. am__leading_dot
  715. SET_MAKE
  716. AWK
  717. mkdir_p
  718. MKDIR_P
  719. INSTALL_STRIP_PROGRAM
  720. STRIP
  721. install_sh
  722. MAKEINFO
  723. AUTOHEADER
  724. AUTOMAKE
  725. AUTOCONF
  726. ACLOCAL
  727. VERSION
  728. PACKAGE
  729. CYGPATH_W
  730. am__isrc
  731. INSTALL_DATA
  732. INSTALL_SCRIPT
  733. INSTALL_PROGRAM
  734. target_os
  735. target_vendor
  736. target_cpu
  737. target
  738. host_os
  739. host_vendor
  740. host_cpu
  741. host
  742. build_os
  743. build_vendor
  744. build_cpu
  745. build
  746. target_alias
  747. host_alias
  748. build_alias
  749. LIBS
  750. ECHO_T
  751. ECHO_N
  752. ECHO_C
  753. DEFS
  754. mandir
  755. localedir
  756. libdir
  757. psdir
  758. pdfdir
  759. dvidir
  760. htmldir
  761. infodir
  762. docdir
  763. oldincludedir
  764. includedir
  765. localstatedir
  766. sharedstatedir
  767. sysconfdir
  768. datadir
  769. datarootdir
  770. libexecdir
  771. sbindir
  772. bindir
  773. program_transform_name
  774. prefix
  775. exec_prefix
  776. PACKAGE_BUGREPORT
  777. PACKAGE_STRING
  778. PACKAGE_VERSION
  779. PACKAGE_TARNAME
  780. PACKAGE_NAME
  781. PATH_SEPARATOR
  782. SHELL'
  783. ac_subst_files=''
  784. ac_user_opts='
  785. enable_option_checking
  786. with_cppunit_prefix
  787. with_cppunit_exec_prefix
  788. with_gnutls
  789. with_openssl
  790. with_sqlite3
  791. with_libxml2
  792. with_libexpat
  793. with_libcares
  794. with_libz
  795. enable_bittorrent
  796. enable_metalink
  797. enable_epoll
  798. with_ca_bundle
  799. enable_dependency_tracking
  800. with_xml_prefix
  801. with_xml_exec_prefix
  802. enable_xmltest
  803. with_libexpat_prefix
  804. with_sqlite3_prefix
  805. with_libgnutls_prefix
  806. with_libgcrypt_prefix
  807. with_openssl_prefix
  808. with_libcares_prefix
  809. with_libz_prefix
  810. enable_largefile
  811. enable_nls
  812. enable_threads
  813. with_gnu_ld
  814. enable_rpath
  815. with_libpth_prefix
  816. with_libiconv_prefix
  817. with_included_gettext
  818. with_libintl_prefix
  819. '
  820. ac_precious_vars='build_alias
  821. host_alias
  822. target_alias
  823. CXX
  824. CXXFLAGS
  825. LDFLAGS
  826. LIBS
  827. CPPFLAGS
  828. CCC
  829. CC
  830. CFLAGS
  831. YACC
  832. YFLAGS
  833. CXXCPP
  834. PKG_CONFIG
  835. LIBGNUTLS_CFLAGS
  836. LIBGNUTLS_LIBS'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  932. { (exit 1); exit 1; }; }
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=no ;;
  943. -docdir | --docdir | --docdi | --doc | --do)
  944. ac_prev=docdir ;;
  945. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  946. docdir=$ac_optarg ;;
  947. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  948. ac_prev=dvidir ;;
  949. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  950. dvidir=$ac_optarg ;;
  951. -enable-* | --enable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  956. { (exit 1); exit 1; }; }
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "enable_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval enable_$ac_useropt=\$ac_optarg ;;
  967. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  968. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  969. | --exec | --exe | --ex)
  970. ac_prev=exec_prefix ;;
  971. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  972. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  973. | --exec=* | --exe=* | --ex=*)
  974. exec_prefix=$ac_optarg ;;
  975. -gas | --gas | --ga | --g)
  976. # Obsolete; use --with-gas.
  977. with_gas=yes ;;
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984. -host | --host | --hos | --ho)
  985. ac_prev=host_alias ;;
  986. -host=* | --host=* | --hos=* | --ho=*)
  987. host_alias=$ac_optarg ;;
  988. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  989. ac_prev=htmldir ;;
  990. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  991. | --ht=*)
  992. htmldir=$ac_optarg ;;
  993. -includedir | --includedir | --includedi | --included | --include \
  994. | --includ | --inclu | --incl | --inc)
  995. ac_prev=includedir ;;
  996. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  997. | --includ=* | --inclu=* | --incl=* | --inc=*)
  998. includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. infodir=$ac_optarg ;;
  1003. -libdir | --libdir | --libdi | --libd)
  1004. ac_prev=libdir ;;
  1005. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1006. libdir=$ac_optarg ;;
  1007. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1008. | --libexe | --libex | --libe)
  1009. ac_prev=libexecdir ;;
  1010. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1011. | --libexe=* | --libex=* | --libe=*)
  1012. libexecdir=$ac_optarg ;;
  1013. -localedir | --localedir | --localedi | --localed | --locale)
  1014. ac_prev=localedir ;;
  1015. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1016. localedir=$ac_optarg ;;
  1017. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1018. | --localstate | --localstat | --localsta | --localst | --locals)
  1019. ac_prev=localstatedir ;;
  1020. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1021. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1022. localstatedir=$ac_optarg ;;
  1023. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1024. ac_prev=mandir ;;
  1025. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1026. mandir=$ac_optarg ;;
  1027. -nfp | --nfp | --nf)
  1028. # Obsolete; use --without-fp.
  1029. with_fp=no ;;
  1030. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1031. | --no-cr | --no-c | -n)
  1032. no_create=yes ;;
  1033. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1034. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1035. no_recursion=yes ;;
  1036. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1037. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1038. | --oldin | --oldi | --old | --ol | --o)
  1039. ac_prev=oldincludedir ;;
  1040. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1041. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1042. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1043. oldincludedir=$ac_optarg ;;
  1044. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1045. ac_prev=prefix ;;
  1046. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1047. prefix=$ac_optarg ;;
  1048. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1049. | --program-pre | --program-pr | --program-p)
  1050. ac_prev=program_prefix ;;
  1051. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1052. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1053. program_prefix=$ac_optarg ;;
  1054. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1055. | --program-suf | --program-su | --program-s)
  1056. ac_prev=program_suffix ;;
  1057. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1058. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1059. program_suffix=$ac_optarg ;;
  1060. -program-transform-name | --program-transform-name \
  1061. | --program-transform-nam | --program-transform-na \
  1062. | --program-transform-n | --program-transform- \
  1063. | --program-transform | --program-transfor \
  1064. | --program-transfo | --program-transf \
  1065. | --program-trans | --program-tran \
  1066. | --progr-tra | --program-tr | --program-t)
  1067. ac_prev=program_transform_name ;;
  1068. -program-transform-name=* | --program-transform-name=* \
  1069. | --program-transform-nam=* | --program-transform-na=* \
  1070. | --program-transform-n=* | --program-transform-=* \
  1071. | --program-transform=* | --program-transfor=* \
  1072. | --program-transfo=* | --program-transf=* \
  1073. | --program-trans=* | --program-tran=* \
  1074. | --progr-tra=* | --program-tr=* | --program-t=*)
  1075. program_transform_name=$ac_optarg ;;
  1076. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1077. ac_prev=pdfdir ;;
  1078. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1079. pdfdir=$ac_optarg ;;
  1080. -psdir | --psdir | --psdi | --psd | --ps)
  1081. ac_prev=psdir ;;
  1082. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1083. psdir=$ac_optarg ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. silent=yes ;;
  1087. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1088. ac_prev=sbindir ;;
  1089. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1090. | --sbi=* | --sb=*)
  1091. sbindir=$ac_optarg ;;
  1092. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1093. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1094. | --sharedst | --shareds | --shared | --share | --shar \
  1095. | --sha | --sh)
  1096. ac_prev=sharedstatedir ;;
  1097. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1098. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1099. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1100. | --sha=* | --sh=*)
  1101. sharedstatedir=$ac_optarg ;;
  1102. -site | --site | --sit)
  1103. ac_prev=site ;;
  1104. -site=* | --site=* | --sit=*)
  1105. site=$ac_optarg ;;
  1106. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1107. ac_prev=srcdir ;;
  1108. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1109. srcdir=$ac_optarg ;;
  1110. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1111. | --syscon | --sysco | --sysc | --sys | --sy)
  1112. ac_prev=sysconfdir ;;
  1113. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1114. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1115. sysconfdir=$ac_optarg ;;
  1116. -target | --target | --targe | --targ | --tar | --ta | --t)
  1117. ac_prev=target_alias ;;
  1118. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1119. target_alias=$ac_optarg ;;
  1120. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121. verbose=yes ;;
  1122. -version | --version | --versio | --versi | --vers | -V)
  1123. ac_init_version=: ;;
  1124. -with-* | --with-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1129. { (exit 1); exit 1; }; }
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=\$ac_optarg ;;
  1140. -without-* | --without-*)
  1141. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1144. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1145. { (exit 1); exit 1; }; }
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=no ;;
  1156. --x)
  1157. # Obsolete; use --with-x.
  1158. with_x=yes ;;
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1166. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1167. ac_prev=x_libraries ;;
  1168. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1169. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1170. x_libraries=$ac_optarg ;;
  1171. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1172. Try \`$0 --help' for more information." >&2
  1173. { (exit 1); exit 1; }; }
  1174. ;;
  1175. *=*)
  1176. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1177. # Reject names that are not valid shell variable names.
  1178. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1179. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1180. { (exit 1); exit 1; }; }
  1181. eval $ac_envvar=\$ac_optarg
  1182. export $ac_envvar ;;
  1183. *)
  1184. # FIXME: should be removed in autoconf 3.0.
  1185. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1189. ;;
  1190. esac
  1191. done
  1192. if test -n "$ac_prev"; then
  1193. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1194. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1195. { (exit 1); exit 1; }; }
  1196. fi
  1197. if test -n "$ac_unrecognized_opts"; then
  1198. case $enable_option_checking in
  1199. no) ;;
  1200. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1201. { (exit 1); exit 1; }; } ;;
  1202. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1203. esac
  1204. fi
  1205. # Check all directory arguments for consistency.
  1206. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1207. datadir sysconfdir sharedstatedir localstatedir includedir \
  1208. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1209. libdir localedir mandir
  1210. do
  1211. eval ac_val=\$$ac_var
  1212. # Remove trailing slashes.
  1213. case $ac_val in
  1214. */ )
  1215. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1216. eval $ac_var=\$ac_val;;
  1217. esac
  1218. # Be sure to have absolute directory names.
  1219. case $ac_val in
  1220. [\\/$]* | ?:[\\/]* ) continue;;
  1221. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1222. esac
  1223. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1224. { (exit 1); exit 1; }; }
  1225. done
  1226. # There might be people who depend on the old broken behavior: `$host'
  1227. # used to hold the argument of --host etc.
  1228. # FIXME: To remove some day.
  1229. build=$build_alias
  1230. host=$host_alias
  1231. target=$target_alias
  1232. # FIXME: To remove some day.
  1233. if test "x$host_alias" != x; then
  1234. if test "x$build_alias" = x; then
  1235. cross_compiling=maybe
  1236. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1237. If a cross compiler is detected then cross compile mode will be used." >&2
  1238. elif test "x$build_alias" != "x$host_alias"; then
  1239. cross_compiling=yes
  1240. fi
  1241. fi
  1242. ac_tool_prefix=
  1243. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1244. test "$silent" = yes && exec 6>/dev/null
  1245. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1246. ac_ls_di=`ls -di .` &&
  1247. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1248. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1249. { (exit 1); exit 1; }; }
  1250. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1251. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1252. { (exit 1); exit 1; }; }
  1253. # Find the source files, if location was not specified.
  1254. if test -z "$srcdir"; then
  1255. ac_srcdir_defaulted=yes
  1256. # Try the directory containing this script, then the parent directory.
  1257. ac_confdir=`$as_dirname -- "$as_myself" ||
  1258. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1259. X"$as_myself" : 'X\(//\)[^/]' \| \
  1260. X"$as_myself" : 'X\(//\)$' \| \
  1261. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1262. $as_echo X"$as_myself" |
  1263. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\/\)[^/].*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. /^X\(\/\/\)$/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\).*/{
  1276. s//\1/
  1277. q
  1278. }
  1279. s/.*/./; q'`
  1280. srcdir=$ac_confdir
  1281. if test ! -r "$srcdir/$ac_unique_file"; then
  1282. srcdir=..
  1283. fi
  1284. else
  1285. ac_srcdir_defaulted=no
  1286. fi
  1287. if test ! -r "$srcdir/$ac_unique_file"; then
  1288. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1289. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1290. { (exit 1); exit 1; }; }
  1291. fi
  1292. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1293. ac_abs_confdir=`(
  1294. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1295. { (exit 1); exit 1; }; }
  1296. pwd)`
  1297. # When building in place, set srcdir=.
  1298. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1299. srcdir=.
  1300. fi
  1301. # Remove unnecessary trailing slashes from srcdir.
  1302. # Double slashes in file names in object file debugging info
  1303. # mess up M-x gdb in Emacs.
  1304. case $srcdir in
  1305. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1306. esac
  1307. for ac_var in $ac_precious_vars; do
  1308. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1309. eval ac_env_${ac_var}_value=\$${ac_var}
  1310. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1311. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1312. done
  1313. #
  1314. # Report the --help message.
  1315. #
  1316. if test "$ac_init_help" = "long"; then
  1317. # Omit some internal or obsolete options to make the list less imposing.
  1318. # This message is too long to be a string in the A/UX 3.1 sh.
  1319. cat <<_ACEOF
  1320. \`configure' configures aria2 1.4.0 to adapt to many kinds of systems.
  1321. Usage: $0 [OPTION]... [VAR=VALUE]...
  1322. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1323. VAR=VALUE. See below for descriptions of some of the useful variables.
  1324. Defaults for the options are specified in brackets.
  1325. Configuration:
  1326. -h, --help display this help and exit
  1327. --help=short display options specific to this package
  1328. --help=recursive display the short help of all the included packages
  1329. -V, --version display version information and exit
  1330. -q, --quiet, --silent do not print \`checking...' messages
  1331. --cache-file=FILE cache test results in FILE [disabled]
  1332. -C, --config-cache alias for \`--cache-file=config.cache'
  1333. -n, --no-create do not create output files
  1334. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1335. Installation directories:
  1336. --prefix=PREFIX install architecture-independent files in PREFIX
  1337. [$ac_default_prefix]
  1338. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1339. [PREFIX]
  1340. By default, \`make install' will install all the files in
  1341. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1342. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1343. for instance \`--prefix=\$HOME'.
  1344. For better control, use the options below.
  1345. Fine tuning of the installation directories:
  1346. --bindir=DIR user executables [EPREFIX/bin]
  1347. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1348. --libexecdir=DIR program executables [EPREFIX/libexec]
  1349. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1350. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1351. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1352. --libdir=DIR object code libraries [EPREFIX/lib]
  1353. --includedir=DIR C header files [PREFIX/include]
  1354. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1355. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1356. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1357. --infodir=DIR info documentation [DATAROOTDIR/info]
  1358. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1359. --mandir=DIR man documentation [DATAROOTDIR/man]
  1360. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1361. --htmldir=DIR html documentation [DOCDIR]
  1362. --dvidir=DIR dvi documentation [DOCDIR]
  1363. --pdfdir=DIR pdf documentation [DOCDIR]
  1364. --psdir=DIR ps documentation [DOCDIR]
  1365. _ACEOF
  1366. cat <<\_ACEOF
  1367. Program names:
  1368. --program-prefix=PREFIX prepend PREFIX to installed program names
  1369. --program-suffix=SUFFIX append SUFFIX to installed program names
  1370. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1371. System types:
  1372. --build=BUILD configure for building on BUILD [guessed]
  1373. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1374. --target=TARGET configure for building compilers for TARGET [HOST]
  1375. _ACEOF
  1376. fi
  1377. if test -n "$ac_init_help"; then
  1378. case $ac_init_help in
  1379. short | recursive ) echo "Configuration of aria2 1.4.0:";;
  1380. esac
  1381. cat <<\_ACEOF
  1382. Optional Features:
  1383. --disable-option-checking ignore unrecognized --enable/--with options
  1384. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1385. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1386. --enable-bittorrent enable bittorrent support.
  1387. --enable-metalink enable metalink support.
  1388. --enable-epoll enable epoll support.
  1389. --disable-dependency-tracking speeds up one-time build
  1390. --enable-dependency-tracking do not reject slow dependency extractors
  1391. --disable-xmltest Do not try to compile and run a test LIBXML program
  1392. --disable-largefile omit support for large files
  1393. --disable-nls do not use Native Language Support
  1394. --enable-threads={posix|solaris|pth|win32}
  1395. specify multithreading API
  1396. --disable-threads build without multithread safety
  1397. --disable-rpath do not hardcode runtime library paths
  1398. Optional Packages:
  1399. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1400. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1401. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1402. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1403. --with-gnutls use gnutls if it is installed.
  1404. --with-openssl use openssl if it is installed.
  1405. --with-sqlite3 use sqlite3 if it is installed.
  1406. --with-libxml2 use libxml2 if it is installed.
  1407. --with-libexpat use libexpat if it is installed.
  1408. --with-libcares use libcares if it is installed.
  1409. --with-libz use libz if it is installed.
  1410. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1411. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1412. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1413. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1414. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1415. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1416. --with-libgcrypt-prefix=PFX
  1417. prefix where LIBGCRYPT is installed (optional)
  1418. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1419. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1420. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1421. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1422. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1423. --without-libpth-prefix don't search for libpth in includedir and libdir
  1424. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1425. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1426. --with-included-gettext use the GNU gettext library included here
  1427. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1428. --without-libintl-prefix don't search for libintl in includedir and libdir
  1429. Some influential environment variables:
  1430. CXX C++ compiler command
  1431. CXXFLAGS C++ compiler flags
  1432. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1433. nonstandard directory <lib dir>
  1434. LIBS libraries to pass to the linker, e.g. -l<library>
  1435. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1436. you have headers in a nonstandard directory <include dir>
  1437. CC C compiler command
  1438. CFLAGS C compiler flags
  1439. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1440. the first program found out of: `bison -y', `byacc', `yacc'.
  1441. YFLAGS The list of arguments that will be passed by default to $YACC.
  1442. This script will default YFLAGS to the empty string to avoid a
  1443. default value of `-d' given by some make applications.
  1444. CXXCPP C++ preprocessor
  1445. PKG_CONFIG path to pkg-config utility
  1446. LIBGNUTLS_CFLAGS
  1447. C compiler flags for LIBGNUTLS, overriding pkg-config
  1448. LIBGNUTLS_LIBS
  1449. linker flags for LIBGNUTLS, overriding pkg-config
  1450. Use these variables to override the choices made by `configure' or to help
  1451. it to find libraries and programs with nonstandard names/locations.
  1452. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1453. _ACEOF
  1454. ac_status=$?
  1455. fi
  1456. if test "$ac_init_help" = "recursive"; then
  1457. # If there are subdirs, report their specific --help.
  1458. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1459. test -d "$ac_dir" ||
  1460. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1461. continue
  1462. ac_builddir=.
  1463. case "$ac_dir" in
  1464. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1465. *)
  1466. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1467. # A ".." for each directory in $ac_dir_suffix.
  1468. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1469. case $ac_top_builddir_sub in
  1470. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1471. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1472. esac ;;
  1473. esac
  1474. ac_abs_top_builddir=$ac_pwd
  1475. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1476. # for backward compatibility:
  1477. ac_top_builddir=$ac_top_build_prefix
  1478. case $srcdir in
  1479. .) # We are building in place.
  1480. ac_srcdir=.
  1481. ac_top_srcdir=$ac_top_builddir_sub
  1482. ac_abs_top_srcdir=$ac_pwd ;;
  1483. [\\/]* | ?:[\\/]* ) # Absolute name.
  1484. ac_srcdir=$srcdir$ac_dir_suffix;
  1485. ac_top_srcdir=$srcdir
  1486. ac_abs_top_srcdir=$srcdir ;;
  1487. *) # Relative name.
  1488. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1489. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1490. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1491. esac
  1492. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1493. cd "$ac_dir" || { ac_status=$?; continue; }
  1494. # Check for guested configure.
  1495. if test -f "$ac_srcdir/configure.gnu"; then
  1496. echo &&
  1497. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1498. elif test -f "$ac_srcdir/configure"; then
  1499. echo &&
  1500. $SHELL "$ac_srcdir/configure" --help=recursive
  1501. else
  1502. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1503. fi || ac_status=$?
  1504. cd "$ac_pwd" || { ac_status=$?; break; }
  1505. done
  1506. fi
  1507. test -n "$ac_init_help" && exit $ac_status
  1508. if $ac_init_version; then
  1509. cat <<\_ACEOF
  1510. aria2 configure 1.4.0
  1511. generated by GNU Autoconf 2.63
  1512. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1513. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1514. This configure script is free software; the Free Software Foundation
  1515. gives unlimited permission to copy, distribute and modify it.
  1516. _ACEOF
  1517. exit
  1518. fi
  1519. cat >config.log <<_ACEOF
  1520. This file contains any messages produced by compilers while
  1521. running configure, to aid debugging if configure makes a mistake.
  1522. It was created by aria2 $as_me 1.4.0, which was
  1523. generated by GNU Autoconf 2.63. Invocation command line was
  1524. $ $0 $@
  1525. _ACEOF
  1526. exec 5>>config.log
  1527. {
  1528. cat <<_ASUNAME
  1529. ## --------- ##
  1530. ## Platform. ##
  1531. ## --------- ##
  1532. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1533. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1534. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1535. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1536. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1537. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1538. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1539. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1540. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1541. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1542. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1543. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1544. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1545. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1546. _ASUNAME
  1547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1548. for as_dir in $PATH
  1549. do
  1550. IFS=$as_save_IFS
  1551. test -z "$as_dir" && as_dir=.
  1552. $as_echo "PATH: $as_dir"
  1553. done
  1554. IFS=$as_save_IFS
  1555. } >&5
  1556. cat >&5 <<_ACEOF
  1557. ## ----------- ##
  1558. ## Core tests. ##
  1559. ## ----------- ##
  1560. _ACEOF
  1561. # Keep a trace of the command line.
  1562. # Strip out --no-create and --no-recursion so they do not pile up.
  1563. # Strip out --silent because we don't want to record it for future runs.
  1564. # Also quote any args containing shell meta-characters.
  1565. # Make two passes to allow for proper duplicate-argument suppression.
  1566. ac_configure_args=
  1567. ac_configure_args0=
  1568. ac_configure_args1=
  1569. ac_must_keep_next=false
  1570. for ac_pass in 1 2
  1571. do
  1572. for ac_arg
  1573. do
  1574. case $ac_arg in
  1575. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1576. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1577. | -silent | --silent | --silen | --sile | --sil)
  1578. continue ;;
  1579. *\'*)
  1580. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1581. esac
  1582. case $ac_pass in
  1583. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1584. 2)
  1585. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1586. if test $ac_must_keep_next = true; then
  1587. ac_must_keep_next=false # Got value, back to normal.
  1588. else
  1589. case $ac_arg in
  1590. *=* | --config-cache | -C | -disable-* | --disable-* \
  1591. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1592. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1593. | -with-* | --with-* | -without-* | --without-* | --x)
  1594. case "$ac_configure_args0 " in
  1595. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1596. esac
  1597. ;;
  1598. -* ) ac_must_keep_next=true ;;
  1599. esac
  1600. fi
  1601. ac_configure_args="$ac_configure_args '$ac_arg'"
  1602. ;;
  1603. esac
  1604. done
  1605. done
  1606. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1607. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1608. # When interrupted or exit'd, cleanup temporary files, and complete
  1609. # config.log. We remove comments because anyway the quotes in there
  1610. # would cause problems or look ugly.
  1611. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1612. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1613. trap 'exit_status=$?
  1614. # Save into config.log some information that might help in debugging.
  1615. {
  1616. echo
  1617. cat <<\_ASBOX
  1618. ## ---------------- ##
  1619. ## Cache variables. ##
  1620. ## ---------------- ##
  1621. _ASBOX
  1622. echo
  1623. # The following way of writing the cache mishandles newlines in values,
  1624. (
  1625. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1626. eval ac_val=\$$ac_var
  1627. case $ac_val in #(
  1628. *${as_nl}*)
  1629. case $ac_var in #(
  1630. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1631. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1632. esac
  1633. case $ac_var in #(
  1634. _ | IFS | as_nl) ;; #(
  1635. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1636. *) $as_unset $ac_var ;;
  1637. esac ;;
  1638. esac
  1639. done
  1640. (set) 2>&1 |
  1641. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1642. *${as_nl}ac_space=\ *)
  1643. sed -n \
  1644. "s/'\''/'\''\\\\'\'''\''/g;
  1645. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1646. ;; #(
  1647. *)
  1648. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1649. ;;
  1650. esac |
  1651. sort
  1652. )
  1653. echo
  1654. cat <<\_ASBOX
  1655. ## ----------------- ##
  1656. ## Output variables. ##
  1657. ## ----------------- ##
  1658. _ASBOX
  1659. echo
  1660. for ac_var in $ac_subst_vars
  1661. do
  1662. eval ac_val=\$$ac_var
  1663. case $ac_val in
  1664. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1665. esac
  1666. $as_echo "$ac_var='\''$ac_val'\''"
  1667. done | sort
  1668. echo
  1669. if test -n "$ac_subst_files"; then
  1670. cat <<\_ASBOX
  1671. ## ------------------- ##
  1672. ## File substitutions. ##
  1673. ## ------------------- ##
  1674. _ASBOX
  1675. echo
  1676. for ac_var in $ac_subst_files
  1677. do
  1678. eval ac_val=\$$ac_var
  1679. case $ac_val in
  1680. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1681. esac
  1682. $as_echo "$ac_var='\''$ac_val'\''"
  1683. done | sort
  1684. echo
  1685. fi
  1686. if test -s confdefs.h; then
  1687. cat <<\_ASBOX
  1688. ## ----------- ##
  1689. ## confdefs.h. ##
  1690. ## ----------- ##
  1691. _ASBOX
  1692. echo
  1693. cat confdefs.h
  1694. echo
  1695. fi
  1696. test "$ac_signal" != 0 &&
  1697. $as_echo "$as_me: caught signal $ac_signal"
  1698. $as_echo "$as_me: exit $exit_status"
  1699. } >&5
  1700. rm -f core *.core core.conftest.* &&
  1701. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1702. exit $exit_status
  1703. ' 0
  1704. for ac_signal in 1 2 13 15; do
  1705. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1706. done
  1707. ac_signal=0
  1708. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1709. rm -f -r conftest* confdefs.h
  1710. # Predefined preprocessor variables.
  1711. cat >>confdefs.h <<_ACEOF
  1712. #define PACKAGE_NAME "$PACKAGE_NAME"
  1713. _ACEOF
  1714. cat >>confdefs.h <<_ACEOF
  1715. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1716. _ACEOF
  1717. cat >>confdefs.h <<_ACEOF
  1718. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1719. _ACEOF
  1720. cat >>confdefs.h <<_ACEOF
  1721. #define PACKAGE_STRING "$PACKAGE_STRING"
  1722. _ACEOF
  1723. cat >>confdefs.h <<_ACEOF
  1724. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1725. _ACEOF
  1726. # Let the site file select an alternate cache file if it wants to.
  1727. # Prefer an explicitly selected file to automatically selected ones.
  1728. ac_site_file1=NONE
  1729. ac_site_file2=NONE
  1730. if test -n "$CONFIG_SITE"; then
  1731. ac_site_file1=$CONFIG_SITE
  1732. elif test "x$prefix" != xNONE; then
  1733. ac_site_file1=$prefix/share/config.site
  1734. ac_site_file2=$prefix/etc/config.site
  1735. else
  1736. ac_site_file1=$ac_default_prefix/share/config.site
  1737. ac_site_file2=$ac_default_prefix/etc/config.site
  1738. fi
  1739. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1740. do
  1741. test "x$ac_site_file" = xNONE && continue
  1742. if test -r "$ac_site_file"; then
  1743. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1744. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1745. sed 's/^/| /' "$ac_site_file" >&5
  1746. . "$ac_site_file"
  1747. fi
  1748. done
  1749. if test -r "$cache_file"; then
  1750. # Some versions of bash will fail to source /dev/null (special
  1751. # files actually), so we avoid doing that.
  1752. if test -f "$cache_file"; then
  1753. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1754. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1755. case $cache_file in
  1756. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1757. *) . "./$cache_file";;
  1758. esac
  1759. fi
  1760. else
  1761. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1762. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1763. >$cache_file
  1764. fi
  1765. gt_needs="$gt_needs "
  1766. ac_header_list="$ac_header_list sys/time.h"
  1767. ac_header_list="$ac_header_list unistd.h"
  1768. ac_func_list="$ac_func_list alarm"
  1769. # Check that the precious variables saved in the cache have kept the same
  1770. # value.
  1771. ac_cache_corrupted=false
  1772. for ac_var in $ac_precious_vars; do
  1773. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1774. eval ac_new_set=\$ac_env_${ac_var}_set
  1775. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1776. eval ac_new_val=\$ac_env_${ac_var}_value
  1777. case $ac_old_set,$ac_new_set in
  1778. set,)
  1779. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1780. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1781. ac_cache_corrupted=: ;;
  1782. ,set)
  1783. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1784. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1785. ac_cache_corrupted=: ;;
  1786. ,);;
  1787. *)
  1788. if test "x$ac_old_val" != "x$ac_new_val"; then
  1789. # differences in whitespace do not lead to failure.
  1790. ac_old_val_w=`echo x $ac_old_val`
  1791. ac_new_val_w=`echo x $ac_new_val`
  1792. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1793. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1794. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1795. ac_cache_corrupted=:
  1796. else
  1797. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1798. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1799. eval $ac_var=\$ac_old_val
  1800. fi
  1801. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1802. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1803. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1804. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1805. fi;;
  1806. esac
  1807. # Pass precious variables to config.status.
  1808. if test "$ac_new_set" = set; then
  1809. case $ac_new_val in
  1810. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1811. *) ac_arg=$ac_var=$ac_new_val ;;
  1812. esac
  1813. case " $ac_configure_args " in
  1814. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1815. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1816. esac
  1817. fi
  1818. done
  1819. if $ac_cache_corrupted; then
  1820. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1821. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1822. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1823. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1824. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1825. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1826. { (exit 1); exit 1; }; }
  1827. fi
  1828. ac_ext=c
  1829. ac_cpp='$CPP $CPPFLAGS'
  1830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1833. ac_aux_dir=
  1834. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1835. if test -f "$ac_dir/install-sh"; then
  1836. ac_aux_dir=$ac_dir
  1837. ac_install_sh="$ac_aux_dir/install-sh -c"
  1838. break
  1839. elif test -f "$ac_dir/install.sh"; then
  1840. ac_aux_dir=$ac_dir
  1841. ac_install_sh="$ac_aux_dir/install.sh -c"
  1842. break
  1843. elif test -f "$ac_dir/shtool"; then
  1844. ac_aux_dir=$ac_dir
  1845. ac_install_sh="$ac_aux_dir/shtool install -c"
  1846. break
  1847. fi
  1848. done
  1849. if test -z "$ac_aux_dir"; then
  1850. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1851. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1852. { (exit 1); exit 1; }; }
  1853. fi
  1854. # These three variables are undocumented and unsupported,
  1855. # and are intended to be withdrawn in a future Autoconf release.
  1856. # They can cause serious problems if a builder's source tree is in a directory
  1857. # whose full name contains unusual characters.
  1858. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1859. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1860. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1861. # Make sure we can run config.sub.
  1862. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1863. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1864. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1865. { (exit 1); exit 1; }; }
  1866. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1867. $as_echo_n "checking build system type... " >&6; }
  1868. if test "${ac_cv_build+set}" = set; then
  1869. $as_echo_n "(cached) " >&6
  1870. else
  1871. ac_build_alias=$build_alias
  1872. test "x$ac_build_alias" = x &&
  1873. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1874. test "x$ac_build_alias" = x &&
  1875. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1876. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1877. { (exit 1); exit 1; }; }
  1878. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1879. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1880. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1881. { (exit 1); exit 1; }; }
  1882. fi
  1883. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1884. $as_echo "$ac_cv_build" >&6; }
  1885. case $ac_cv_build in
  1886. *-*-*) ;;
  1887. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1888. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1889. { (exit 1); exit 1; }; };;
  1890. esac
  1891. build=$ac_cv_build
  1892. ac_save_IFS=$IFS; IFS='-'
  1893. set x $ac_cv_build
  1894. shift
  1895. build_cpu=$1
  1896. build_vendor=$2
  1897. shift; shift
  1898. # Remember, the first character of IFS is used to create $*,
  1899. # except with old shells:
  1900. build_os=$*
  1901. IFS=$ac_save_IFS
  1902. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1903. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1904. $as_echo_n "checking host system type... " >&6; }
  1905. if test "${ac_cv_host+set}" = set; then
  1906. $as_echo_n "(cached) " >&6
  1907. else
  1908. if test "x$host_alias" = x; then
  1909. ac_cv_host=$ac_cv_build
  1910. else
  1911. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1912. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1913. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1914. { (exit 1); exit 1; }; }
  1915. fi
  1916. fi
  1917. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1918. $as_echo "$ac_cv_host" >&6; }
  1919. case $ac_cv_host in
  1920. *-*-*) ;;
  1921. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1922. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1923. { (exit 1); exit 1; }; };;
  1924. esac
  1925. host=$ac_cv_host
  1926. ac_save_IFS=$IFS; IFS='-'
  1927. set x $ac_cv_host
  1928. shift
  1929. host_cpu=$1
  1930. host_vendor=$2
  1931. shift; shift
  1932. # Remember, the first character of IFS is used to create $*,
  1933. # except with old shells:
  1934. host_os=$*
  1935. IFS=$ac_save_IFS
  1936. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1937. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1938. $as_echo_n "checking target system type... " >&6; }
  1939. if test "${ac_cv_target+set}" = set; then
  1940. $as_echo_n "(cached) " >&6
  1941. else
  1942. if test "x$target_alias" = x; then
  1943. ac_cv_target=$ac_cv_host
  1944. else
  1945. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1946. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1947. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1948. { (exit 1); exit 1; }; }
  1949. fi
  1950. fi
  1951. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1952. $as_echo "$ac_cv_target" >&6; }
  1953. case $ac_cv_target in
  1954. *-*-*) ;;
  1955. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1956. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1957. { (exit 1); exit 1; }; };;
  1958. esac
  1959. target=$ac_cv_target
  1960. ac_save_IFS=$IFS; IFS='-'
  1961. set x $ac_cv_target
  1962. shift
  1963. target_cpu=$1
  1964. target_vendor=$2
  1965. shift; shift
  1966. # Remember, the first character of IFS is used to create $*,
  1967. # except with old shells:
  1968. target_os=$*
  1969. IFS=$ac_save_IFS
  1970. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1971. # The aliases save the names the user supplied, while $host etc.
  1972. # will get canonicalized.
  1973. test -n "$target_alias" &&
  1974. test "$program_prefix$program_suffix$program_transform_name" = \
  1975. NONENONEs,x,x, &&
  1976. program_prefix=${target_alias}-
  1977. am__api_version='1.10'
  1978. # Find a good install program. We prefer a C program (faster),
  1979. # so one script is as good as another. But avoid the broken or
  1980. # incompatible versions:
  1981. # SysV /etc/install, /usr/sbin/install
  1982. # SunOS /usr/etc/install
  1983. # IRIX /sbin/install
  1984. # AIX /bin/install
  1985. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1986. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1987. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1988. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1989. # OS/2's system install, which has a completely different semantic
  1990. # ./install, which can be erroneously created by make from ./install.sh.
  1991. # Reject install programs that cannot install multiple files.
  1992. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1993. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1994. if test -z "$INSTALL"; then
  1995. if test "${ac_cv_path_install+set}" = set; then
  1996. $as_echo_n "(cached) " >&6
  1997. else
  1998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1999. for as_dir in $PATH
  2000. do
  2001. IFS=$as_save_IFS
  2002. test -z "$as_dir" && as_dir=.
  2003. # Account for people who put trailing slashes in PATH elements.
  2004. case $as_dir/ in
  2005. ./ | .// | /cC/* | \
  2006. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2007. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2008. /usr/ucb/* ) ;;
  2009. *)
  2010. # OSF1 and SCO ODT 3.0 have their own names for install.
  2011. # Don't use installbsd from OSF since it installs stuff as root
  2012. # by default.
  2013. for ac_prog in ginstall scoinst install; do
  2014. for ac_exec_ext in '' $ac_executable_extensions; do
  2015. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2016. if test $ac_prog = install &&
  2017. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2018. # AIX install. It has an incompatible calling convention.
  2019. :
  2020. elif test $ac_prog = install &&
  2021. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2022. # program-specific install script used by HP pwplus--don't use.
  2023. :
  2024. else
  2025. rm -rf conftest.one conftest.two conftest.dir
  2026. echo one > conftest.one
  2027. echo two > conftest.two
  2028. mkdir conftest.dir
  2029. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2030. test -s conftest.one && test -s conftest.two &&
  2031. test -s conftest.dir/conftest.one &&
  2032. test -s conftest.dir/conftest.two
  2033. then
  2034. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2035. break 3
  2036. fi
  2037. fi
  2038. fi
  2039. done
  2040. done
  2041. ;;
  2042. esac
  2043. done
  2044. IFS=$as_save_IFS
  2045. rm -rf conftest.one conftest.two conftest.dir
  2046. fi
  2047. if test "${ac_cv_path_install+set}" = set; then
  2048. INSTALL=$ac_cv_path_install
  2049. else
  2050. # As a last resort, use the slow shell script. Don't cache a
  2051. # value for INSTALL within a source directory, because that will
  2052. # break other packages using the cache if that directory is
  2053. # removed, or if the value is a relative name.
  2054. INSTALL=$ac_install_sh
  2055. fi
  2056. fi
  2057. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2058. $as_echo "$INSTALL" >&6; }
  2059. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2060. # It thinks the first close brace ends the variable substitution.
  2061. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2062. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2063. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2064. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2065. $as_echo_n "checking whether build environment is sane... " >&6; }
  2066. # Just in case
  2067. sleep 1
  2068. echo timestamp > conftest.file
  2069. # Do `set' in a subshell so we don't clobber the current shell's
  2070. # arguments. Must try -L first in case configure is actually a
  2071. # symlink; some systems play weird games with the mod time of symlinks
  2072. # (eg FreeBSD returns the mod time of the symlink's containing
  2073. # directory).
  2074. if (
  2075. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2076. if test "$*" = "X"; then
  2077. # -L didn't work.
  2078. set X `ls -t $srcdir/configure conftest.file`
  2079. fi
  2080. rm -f conftest.file
  2081. if test "$*" != "X $srcdir/configure conftest.file" \
  2082. && test "$*" != "X conftest.file $srcdir/configure"; then
  2083. # If neither matched, then we have a broken ls. This can happen
  2084. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2085. # broken ls alias from the environment. This has actually
  2086. # happened. Such a system could not be considered "sane".
  2087. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2088. alias in your environment" >&5
  2089. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2090. alias in your environment" >&2;}
  2091. { (exit 1); exit 1; }; }
  2092. fi
  2093. test "$2" = conftest.file
  2094. )
  2095. then
  2096. # Ok.
  2097. :
  2098. else
  2099. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2100. Check your system clock" >&5
  2101. $as_echo "$as_me: error: newly created file is older than distributed files!
  2102. Check your system clock" >&2;}
  2103. { (exit 1); exit 1; }; }
  2104. fi
  2105. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2106. $as_echo "yes" >&6; }
  2107. test "$program_prefix" != NONE &&
  2108. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2109. # Use a double $ so make ignores it.
  2110. test "$program_suffix" != NONE &&
  2111. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2112. # Double any \ or $.
  2113. # By default was `s,x,x', remove it if useless.
  2114. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2115. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2116. # expand $ac_aux_dir to an absolute path
  2117. am_aux_dir=`cd $ac_aux_dir && pwd`
  2118. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2119. # Use eval to expand $SHELL
  2120. if eval "$MISSING --run true"; then
  2121. am_missing_run="$MISSING --run "
  2122. else
  2123. am_missing_run=
  2124. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2125. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2126. fi
  2127. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2128. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2129. if test -z "$MKDIR_P"; then
  2130. if test "${ac_cv_path_mkdir+set}" = set; then
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. for ac_prog in mkdir gmkdir; do
  2139. for ac_exec_ext in '' $ac_executable_extensions; do
  2140. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2141. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2142. 'mkdir (GNU coreutils) '* | \
  2143. 'mkdir (coreutils) '* | \
  2144. 'mkdir (fileutils) '4.1*)
  2145. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2146. break 3;;
  2147. esac
  2148. done
  2149. done
  2150. done
  2151. IFS=$as_save_IFS
  2152. fi
  2153. if test "${ac_cv_path_mkdir+set}" = set; then
  2154. MKDIR_P="$ac_cv_path_mkdir -p"
  2155. else
  2156. # As a last resort, use the slow shell script. Don't cache a
  2157. # value for MKDIR_P within a source directory, because that will
  2158. # break other packages using the cache if that directory is
  2159. # removed, or if the value is a relative name.
  2160. test -d ./--version && rmdir ./--version
  2161. MKDIR_P="$ac_install_sh -d"
  2162. fi
  2163. fi
  2164. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2165. $as_echo "$MKDIR_P" >&6; }
  2166. mkdir_p="$MKDIR_P"
  2167. case $mkdir_p in
  2168. [\\/$]* | ?:[\\/]*) ;;
  2169. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2170. esac
  2171. for ac_prog in gawk mawk nawk awk
  2172. do
  2173. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2174. set dummy $ac_prog; ac_word=$2
  2175. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2176. $as_echo_n "checking for $ac_word... " >&6; }
  2177. if test "${ac_cv_prog_AWK+set}" = set; then
  2178. $as_echo_n "(cached) " >&6
  2179. else
  2180. if test -n "$AWK"; then
  2181. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2182. else
  2183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2184. for as_dir in $PATH
  2185. do
  2186. IFS=$as_save_IFS
  2187. test -z "$as_dir" && as_dir=.
  2188. for ac_exec_ext in '' $ac_executable_extensions; do
  2189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2190. ac_cv_prog_AWK="$ac_prog"
  2191. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2192. break 2
  2193. fi
  2194. done
  2195. done
  2196. IFS=$as_save_IFS
  2197. fi
  2198. fi
  2199. AWK=$ac_cv_prog_AWK
  2200. if test -n "$AWK"; then
  2201. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2202. $as_echo "$AWK" >&6; }
  2203. else
  2204. { $as_echo "$as_me:$LINENO: result: no" >&5
  2205. $as_echo "no" >&6; }
  2206. fi
  2207. test -n "$AWK" && break
  2208. done
  2209. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2210. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2211. set x ${MAKE-make}
  2212. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2213. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. cat >conftest.make <<\_ACEOF
  2217. SHELL = /bin/sh
  2218. all:
  2219. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2220. _ACEOF
  2221. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2222. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2223. *@@@%%%=?*=@@@%%%*)
  2224. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2225. *)
  2226. eval ac_cv_prog_make_${ac_make}_set=no;;
  2227. esac
  2228. rm -f conftest.make
  2229. fi
  2230. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2231. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2232. $as_echo "yes" >&6; }
  2233. SET_MAKE=
  2234. else
  2235. { $as_echo "$as_me:$LINENO: result: no" >&5
  2236. $as_echo "no" >&6; }
  2237. SET_MAKE="MAKE=${MAKE-make}"
  2238. fi
  2239. rm -rf .tst 2>/dev/null
  2240. mkdir .tst 2>/dev/null
  2241. if test -d .tst; then
  2242. am__leading_dot=.
  2243. else
  2244. am__leading_dot=_
  2245. fi
  2246. rmdir .tst 2>/dev/null
  2247. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2248. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2249. # is not polluted with repeated "-I."
  2250. am__isrc=' -I$(srcdir)'
  2251. # test to see if srcdir already configured
  2252. if test -f $srcdir/config.status; then
  2253. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2254. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2255. { (exit 1); exit 1; }; }
  2256. fi
  2257. fi
  2258. # test whether we have cygpath
  2259. if test -z "$CYGPATH_W"; then
  2260. if (cygpath --version) >/dev/null 2>/dev/null; then
  2261. CYGPATH_W='cygpath -w'
  2262. else
  2263. CYGPATH_W=echo
  2264. fi
  2265. fi
  2266. # Define the identity of the package.
  2267. PACKAGE='aria2'
  2268. VERSION='1.4.0'
  2269. cat >>confdefs.h <<_ACEOF
  2270. #define PACKAGE "$PACKAGE"
  2271. _ACEOF
  2272. cat >>confdefs.h <<_ACEOF
  2273. #define VERSION "$VERSION"
  2274. _ACEOF
  2275. # Some tools Automake needs.
  2276. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2277. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2278. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2279. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2280. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2281. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2282. # Installed binaries are usually stripped using `strip' when the user
  2283. # run `make install-strip'. However `strip' might not be the right
  2284. # tool to use in cross-compilation environments, therefore Automake
  2285. # will honor the `STRIP' environment variable to overrule this program.
  2286. if test "$cross_compiling" != no; then
  2287. if test -n "$ac_tool_prefix"; then
  2288. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2289. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2290. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2291. $as_echo_n "checking for $ac_word... " >&6; }
  2292. if test "${ac_cv_prog_STRIP+set}" = set; then
  2293. $as_echo_n "(cached) " >&6
  2294. else
  2295. if test -n "$STRIP"; then
  2296. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2297. else
  2298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2299. for as_dir in $PATH
  2300. do
  2301. IFS=$as_save_IFS
  2302. test -z "$as_dir" && as_dir=.
  2303. for ac_exec_ext in '' $ac_executable_extensions; do
  2304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2305. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2306. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2307. break 2
  2308. fi
  2309. done
  2310. done
  2311. IFS=$as_save_IFS
  2312. fi
  2313. fi
  2314. STRIP=$ac_cv_prog_STRIP
  2315. if test -n "$STRIP"; then
  2316. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2317. $as_echo "$STRIP" >&6; }
  2318. else
  2319. { $as_echo "$as_me:$LINENO: result: no" >&5
  2320. $as_echo "no" >&6; }
  2321. fi
  2322. fi
  2323. if test -z "$ac_cv_prog_STRIP"; then
  2324. ac_ct_STRIP=$STRIP
  2325. # Extract the first word of "strip", so it can be a program name with args.
  2326. set dummy strip; ac_word=$2
  2327. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2328. $as_echo_n "checking for $ac_word... " >&6; }
  2329. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2330. $as_echo_n "(cached) " >&6
  2331. else
  2332. if test -n "$ac_ct_STRIP"; then
  2333. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2334. else
  2335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2336. for as_dir in $PATH
  2337. do
  2338. IFS=$as_save_IFS
  2339. test -z "$as_dir" && as_dir=.
  2340. for ac_exec_ext in '' $ac_executable_extensions; do
  2341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2342. ac_cv_prog_ac_ct_STRIP="strip"
  2343. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349. fi
  2350. fi
  2351. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2352. if test -n "$ac_ct_STRIP"; then
  2353. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2354. $as_echo "$ac_ct_STRIP" >&6; }
  2355. else
  2356. { $as_echo "$as_me:$LINENO: result: no" >&5
  2357. $as_echo "no" >&6; }
  2358. fi
  2359. if test "x$ac_ct_STRIP" = x; then
  2360. STRIP=":"
  2361. else
  2362. case $cross_compiling:$ac_tool_warned in
  2363. yes:)
  2364. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2366. ac_tool_warned=yes ;;
  2367. esac
  2368. STRIP=$ac_ct_STRIP
  2369. fi
  2370. else
  2371. STRIP="$ac_cv_prog_STRIP"
  2372. fi
  2373. fi
  2374. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2375. # We need awk for the "check" target. The system "awk" is bad on
  2376. # some platforms.
  2377. # Always define AMTAR for backward compatibility.
  2378. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2379. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2380. # Check whether --with-cppunit-prefix was given.
  2381. if test "${with_cppunit_prefix+set}" = set; then
  2382. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2383. else
  2384. cppunit_config_prefix=""
  2385. fi
  2386. # Check whether --with-cppunit-exec-prefix was given.
  2387. if test "${with_cppunit_exec_prefix+set}" = set; then
  2388. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2389. else
  2390. cppunit_config_exec_prefix=""
  2391. fi
  2392. if test x$cppunit_config_exec_prefix != x ; then
  2393. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2394. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2395. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2396. fi
  2397. fi
  2398. if test x$cppunit_config_prefix != x ; then
  2399. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2400. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2401. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2402. fi
  2403. fi
  2404. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2405. set dummy cppunit-config; ac_word=$2
  2406. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2407. $as_echo_n "checking for $ac_word... " >&6; }
  2408. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2409. $as_echo_n "(cached) " >&6
  2410. else
  2411. case $CPPUNIT_CONFIG in
  2412. [\\/]* | ?:[\\/]*)
  2413. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2414. ;;
  2415. *)
  2416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2417. for as_dir in $PATH
  2418. do
  2419. IFS=$as_save_IFS
  2420. test -z "$as_dir" && as_dir=.
  2421. for ac_exec_ext in '' $ac_executable_extensions; do
  2422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2423. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2424. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2425. break 2
  2426. fi
  2427. done
  2428. done
  2429. IFS=$as_save_IFS
  2430. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2431. ;;
  2432. esac
  2433. fi
  2434. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2435. if test -n "$CPPUNIT_CONFIG"; then
  2436. { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2437. $as_echo "$CPPUNIT_CONFIG" >&6; }
  2438. else
  2439. { $as_echo "$as_me:$LINENO: result: no" >&5
  2440. $as_echo "no" >&6; }
  2441. fi
  2442. cppunit_version_min=1.10.2
  2443. { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2444. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  2445. no_cppunit=""
  2446. if test "$CPPUNIT_CONFIG" = "no" ; then
  2447. { $as_echo "$as_me:$LINENO: result: no" >&5
  2448. $as_echo "no" >&6; }
  2449. no_cppunit=yes
  2450. else
  2451. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2452. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2453. cppunit_version=`$CPPUNIT_CONFIG --version`
  2454. cppunit_major_version=`echo $cppunit_version | \
  2455. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2456. cppunit_minor_version=`echo $cppunit_version | \
  2457. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2458. cppunit_micro_version=`echo $cppunit_version | \
  2459. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2460. cppunit_major_min=`echo $cppunit_version_min | \
  2461. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2462. if test "x${cppunit_major_min}" = "x" ; then
  2463. cppunit_major_min=0
  2464. fi
  2465. cppunit_minor_min=`echo $cppunit_version_min | \
  2466. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2467. if test "x${cppunit_minor_min}" = "x" ; then
  2468. cppunit_minor_min=0
  2469. fi
  2470. cppunit_micro_min=`echo $cppunit_version_min | \
  2471. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2472. if test "x${cppunit_micro_min}" = "x" ; then
  2473. cppunit_micro_min=0
  2474. fi
  2475. cppunit_version_proper=`expr \
  2476. $cppunit_major_version \> $cppunit_major_min \| \
  2477. $cppunit_major_version \= $cppunit_major_min \& \
  2478. $cppunit_minor_version \> $cppunit_minor_min \| \
  2479. $cppunit_major_version \= $cppunit_major_min \& \
  2480. $cppunit_minor_version \= $cppunit_minor_min \& \
  2481. $cppunit_micro_version \>= $cppunit_micro_min `
  2482. if test "$cppunit_version_proper" = "1" ; then
  2483. { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2484. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2485. else
  2486. { $as_echo "$as_me:$LINENO: result: no" >&5
  2487. $as_echo "no" >&6; }
  2488. no_cppunit=yes
  2489. fi
  2490. fi
  2491. if test "x$no_cppunit" = x ; then
  2492. :
  2493. else
  2494. CPPUNIT_CFLAGS=""
  2495. CPPUNIT_LIBS=""
  2496. :
  2497. fi
  2498. ac_config_headers="$ac_config_headers config.h"
  2499. case "$target" in
  2500. *mingw*|*cygwin*)
  2501. WINSOCK_LIBS="-lws2_32 -lpthread"
  2502. ;;
  2503. esac
  2504. cat >>confdefs.h <<_ACEOF
  2505. #define TARGET "$target"
  2506. _ACEOF
  2507. # Set localedir
  2508. localedir=${datadir}/locale
  2509. # Checks for arguments.
  2510. # Check whether --with-gnutls was given.
  2511. if test "${with_gnutls+set}" = set; then
  2512. withval=$with_gnutls; with_gnutls=$withval
  2513. else
  2514. with_gnutls=yes
  2515. fi
  2516. # Check whether --with-openssl was given.
  2517. if test "${with_openssl+set}" = set; then
  2518. withval=$with_openssl; with_openssl=$withval
  2519. else
  2520. with_openssl=yes
  2521. fi
  2522. # Check whether --with-sqlite3 was given.
  2523. if test "${with_sqlite3+set}" = set; then
  2524. withval=$with_sqlite3; with_sqlite3=$withval
  2525. else
  2526. with_sqlite3=yes
  2527. fi
  2528. # Check whether --with-libxml2 was given.
  2529. if test "${with_libxml2+set}" = set; then
  2530. withval=$with_libxml2; with_libxml2=$withval
  2531. else
  2532. with_libxml2=yes
  2533. fi
  2534. # Check whether --with-libexpat was given.
  2535. if test "${with_libexpat+set}" = set; then
  2536. withval=$with_libexpat; with_libexpat=$withval
  2537. else
  2538. with_libexpat=yes
  2539. fi
  2540. # Check whether --with-libcares was given.
  2541. if test "${with_libcares+set}" = set; then
  2542. withval=$with_libcares; with_libcares=$withval
  2543. else
  2544. with_libcares=yes
  2545. fi
  2546. # Check whether --with-libz was given.
  2547. if test "${with_libz+set}" = set; then
  2548. withval=$with_libz; with_libz=$withval
  2549. else
  2550. with_libz=yes
  2551. fi
  2552. # Check whether --enable-bittorrent was given.
  2553. if test "${enable_bittorrent+set}" = set; then
  2554. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2555. else
  2556. enable_bittorrent=yes
  2557. fi
  2558. # Check whether --enable-metalink was given.
  2559. if test "${enable_metalink+set}" = set; then
  2560. enableval=$enable_metalink; enable_metalink=$enableval
  2561. else
  2562. enable_metalink=yes
  2563. fi
  2564. # Check whether --enable-epoll was given.
  2565. if test "${enable_epoll+set}" = set; then
  2566. enableval=$enable_epoll; enable_epoll=$enableval
  2567. else
  2568. enable_epoll=yes
  2569. fi
  2570. # Check whether --with-ca-bundle was given.
  2571. if test "${with_ca_bundle+set}" = set; then
  2572. withval=$with_ca_bundle; ca_bundle=$withval
  2573. else
  2574. ca_bundle=""
  2575. fi
  2576. # Checks for programs.
  2577. ac_ext=cpp
  2578. ac_cpp='$CXXCPP $CPPFLAGS'
  2579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2582. if test -z "$CXX"; then
  2583. if test -n "$CCC"; then
  2584. CXX=$CCC
  2585. else
  2586. if test -n "$ac_tool_prefix"; then
  2587. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2588. do
  2589. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2590. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2591. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if test "${ac_cv_prog_CXX+set}" = set; then
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$CXX"; then
  2597. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. for ac_exec_ext in '' $ac_executable_extensions; do
  2605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2606. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2607. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608. break 2
  2609. fi
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613. fi
  2614. fi
  2615. CXX=$ac_cv_prog_CXX
  2616. if test -n "$CXX"; then
  2617. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2618. $as_echo "$CXX" >&6; }
  2619. else
  2620. { $as_echo "$as_me:$LINENO: result: no" >&5
  2621. $as_echo "no" >&6; }
  2622. fi
  2623. test -n "$CXX" && break
  2624. done
  2625. fi
  2626. if test -z "$CXX"; then
  2627. ac_ct_CXX=$CXX
  2628. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2629. do
  2630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2631. set dummy $ac_prog; ac_word=$2
  2632. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2633. $as_echo_n "checking for $ac_word... " >&6; }
  2634. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2635. $as_echo_n "(cached) " >&6
  2636. else
  2637. if test -n "$ac_ct_CXX"; then
  2638. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2639. else
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. test -z "$as_dir" && as_dir=.
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2647. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2648. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. IFS=$as_save_IFS
  2654. fi
  2655. fi
  2656. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2657. if test -n "$ac_ct_CXX"; then
  2658. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2659. $as_echo "$ac_ct_CXX" >&6; }
  2660. else
  2661. { $as_echo "$as_me:$LINENO: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. fi
  2664. test -n "$ac_ct_CXX" && break
  2665. done
  2666. if test "x$ac_ct_CXX" = x; then
  2667. CXX="g++"
  2668. else
  2669. case $cross_compiling:$ac_tool_warned in
  2670. yes:)
  2671. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2673. ac_tool_warned=yes ;;
  2674. esac
  2675. CXX=$ac_ct_CXX
  2676. fi
  2677. fi
  2678. fi
  2679. fi
  2680. # Provide some information about the compiler.
  2681. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2682. set X $ac_compile
  2683. ac_compiler=$2
  2684. { (ac_try="$ac_compiler --version >&5"
  2685. case "(($ac_try" in
  2686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2687. *) ac_try_echo=$ac_try;;
  2688. esac
  2689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2690. $as_echo "$ac_try_echo") >&5
  2691. (eval "$ac_compiler --version >&5") 2>&5
  2692. ac_status=$?
  2693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2694. (exit $ac_status); }
  2695. { (ac_try="$ac_compiler -v >&5"
  2696. case "(($ac_try" in
  2697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2698. *) ac_try_echo=$ac_try;;
  2699. esac
  2700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2701. $as_echo "$ac_try_echo") >&5
  2702. (eval "$ac_compiler -v >&5") 2>&5
  2703. ac_status=$?
  2704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2705. (exit $ac_status); }
  2706. { (ac_try="$ac_compiler -V >&5"
  2707. case "(($ac_try" in
  2708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2709. *) ac_try_echo=$ac_try;;
  2710. esac
  2711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2712. $as_echo "$ac_try_echo") >&5
  2713. (eval "$ac_compiler -V >&5") 2>&5
  2714. ac_status=$?
  2715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2716. (exit $ac_status); }
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. /* confdefs.h. */
  2719. _ACEOF
  2720. cat confdefs.h >>conftest.$ac_ext
  2721. cat >>conftest.$ac_ext <<_ACEOF
  2722. /* end confdefs.h. */
  2723. int
  2724. main ()
  2725. {
  2726. ;
  2727. return 0;
  2728. }
  2729. _ACEOF
  2730. ac_clean_files_save=$ac_clean_files
  2731. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2732. # Try to create an executable without -o first, disregard a.out.
  2733. # It will help us diagnose broken compilers, and finding out an intuition
  2734. # of exeext.
  2735. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2736. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2737. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2738. # The possible output files:
  2739. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2740. ac_rmfiles=
  2741. for ac_file in $ac_files
  2742. do
  2743. case $ac_file in
  2744. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2745. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2746. esac
  2747. done
  2748. rm -f $ac_rmfiles
  2749. if { (ac_try="$ac_link_default"
  2750. case "(($ac_try" in
  2751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2752. *) ac_try_echo=$ac_try;;
  2753. esac
  2754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2755. $as_echo "$ac_try_echo") >&5
  2756. (eval "$ac_link_default") 2>&5
  2757. ac_status=$?
  2758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2759. (exit $ac_status); }; then
  2760. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2761. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2762. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2763. # so that the user can short-circuit this test for compilers unknown to
  2764. # Autoconf.
  2765. for ac_file in $ac_files ''
  2766. do
  2767. test -f "$ac_file" || continue
  2768. case $ac_file in
  2769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2770. ;;
  2771. [ab].out )
  2772. # We found the default executable, but exeext='' is most
  2773. # certainly right.
  2774. break;;
  2775. *.* )
  2776. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2777. then :; else
  2778. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2779. fi
  2780. # We set ac_cv_exeext here because the later test for it is not
  2781. # safe: cross compilers may not add the suffix if given an `-o'
  2782. # argument, so we may need to know it at that point already.
  2783. # Even if this section looks crufty: it has the advantage of
  2784. # actually working.
  2785. break;;
  2786. * )
  2787. break;;
  2788. esac
  2789. done
  2790. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2791. else
  2792. ac_file=''
  2793. fi
  2794. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2795. $as_echo "$ac_file" >&6; }
  2796. if test -z "$ac_file"; then
  2797. $as_echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2801. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2802. See \`config.log' for more details." >&5
  2803. $as_echo "$as_me: error: C++ compiler cannot create executables
  2804. See \`config.log' for more details." >&2;}
  2805. { (exit 77); exit 77; }; }; }
  2806. fi
  2807. ac_exeext=$ac_cv_exeext
  2808. # Check that the compiler produces executables we can run. If not, either
  2809. # the compiler is broken, or we cross compile.
  2810. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2811. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2812. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2813. # If not cross compiling, check that we can run a simple program.
  2814. if test "$cross_compiling" != yes; then
  2815. if { ac_try='./$ac_file'
  2816. { (case "(($ac_try" in
  2817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2818. *) ac_try_echo=$ac_try;;
  2819. esac
  2820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2821. $as_echo "$ac_try_echo") >&5
  2822. (eval "$ac_try") 2>&5
  2823. ac_status=$?
  2824. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2825. (exit $ac_status); }; }; then
  2826. cross_compiling=no
  2827. else
  2828. if test "$cross_compiling" = maybe; then
  2829. cross_compiling=yes
  2830. else
  2831. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2832. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2833. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2834. If you meant to cross compile, use \`--host'.
  2835. See \`config.log' for more details." >&5
  2836. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2837. If you meant to cross compile, use \`--host'.
  2838. See \`config.log' for more details." >&2;}
  2839. { (exit 1); exit 1; }; }; }
  2840. fi
  2841. fi
  2842. fi
  2843. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2844. $as_echo "yes" >&6; }
  2845. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2846. ac_clean_files=$ac_clean_files_save
  2847. # Check that the compiler produces executables we can run. If not, either
  2848. # the compiler is broken, or we cross compile.
  2849. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2850. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2851. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2852. $as_echo "$cross_compiling" >&6; }
  2853. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2854. $as_echo_n "checking for suffix of executables... " >&6; }
  2855. if { (ac_try="$ac_link"
  2856. case "(($ac_try" in
  2857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2858. *) ac_try_echo=$ac_try;;
  2859. esac
  2860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2861. $as_echo "$ac_try_echo") >&5
  2862. (eval "$ac_link") 2>&5
  2863. ac_status=$?
  2864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. (exit $ac_status); }; then
  2866. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2867. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2868. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2869. # `rm'.
  2870. for ac_file in conftest.exe conftest conftest.*; do
  2871. test -f "$ac_file" || continue
  2872. case $ac_file in
  2873. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2874. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2875. break;;
  2876. * ) break;;
  2877. esac
  2878. done
  2879. else
  2880. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2881. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2882. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2883. See \`config.log' for more details." >&5
  2884. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2885. See \`config.log' for more details." >&2;}
  2886. { (exit 1); exit 1; }; }; }
  2887. fi
  2888. rm -f conftest$ac_cv_exeext
  2889. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2890. $as_echo "$ac_cv_exeext" >&6; }
  2891. rm -f conftest.$ac_ext
  2892. EXEEXT=$ac_cv_exeext
  2893. ac_exeext=$EXEEXT
  2894. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2895. $as_echo_n "checking for suffix of object files... " >&6; }
  2896. if test "${ac_cv_objext+set}" = set; then
  2897. $as_echo_n "(cached) " >&6
  2898. else
  2899. cat >conftest.$ac_ext <<_ACEOF
  2900. /* confdefs.h. */
  2901. _ACEOF
  2902. cat confdefs.h >>conftest.$ac_ext
  2903. cat >>conftest.$ac_ext <<_ACEOF
  2904. /* end confdefs.h. */
  2905. int
  2906. main ()
  2907. {
  2908. ;
  2909. return 0;
  2910. }
  2911. _ACEOF
  2912. rm -f conftest.o conftest.obj
  2913. if { (ac_try="$ac_compile"
  2914. case "(($ac_try" in
  2915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2916. *) ac_try_echo=$ac_try;;
  2917. esac
  2918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2919. $as_echo "$ac_try_echo") >&5
  2920. (eval "$ac_compile") 2>&5
  2921. ac_status=$?
  2922. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2923. (exit $ac_status); }; then
  2924. for ac_file in conftest.o conftest.obj conftest.*; do
  2925. test -f "$ac_file" || continue;
  2926. case $ac_file in
  2927. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2928. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2929. break;;
  2930. esac
  2931. done
  2932. else
  2933. $as_echo "$as_me: failed program was:" >&5
  2934. sed 's/^/| /' conftest.$ac_ext >&5
  2935. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2936. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2937. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2938. See \`config.log' for more details." >&5
  2939. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2940. See \`config.log' for more details." >&2;}
  2941. { (exit 1); exit 1; }; }; }
  2942. fi
  2943. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2944. fi
  2945. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2946. $as_echo "$ac_cv_objext" >&6; }
  2947. OBJEXT=$ac_cv_objext
  2948. ac_objext=$OBJEXT
  2949. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2950. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2951. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. cat >conftest.$ac_ext <<_ACEOF
  2955. /* confdefs.h. */
  2956. _ACEOF
  2957. cat confdefs.h >>conftest.$ac_ext
  2958. cat >>conftest.$ac_ext <<_ACEOF
  2959. /* end confdefs.h. */
  2960. int
  2961. main ()
  2962. {
  2963. #ifndef __GNUC__
  2964. choke me
  2965. #endif
  2966. ;
  2967. return 0;
  2968. }
  2969. _ACEOF
  2970. rm -f conftest.$ac_objext
  2971. if { (ac_try="$ac_compile"
  2972. case "(($ac_try" in
  2973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2974. *) ac_try_echo=$ac_try;;
  2975. esac
  2976. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2977. $as_echo "$ac_try_echo") >&5
  2978. (eval "$ac_compile") 2>conftest.er1
  2979. ac_status=$?
  2980. grep -v '^ *+' conftest.er1 >conftest.err
  2981. rm -f conftest.er1
  2982. cat conftest.err >&5
  2983. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2984. (exit $ac_status); } && {
  2985. test -z "$ac_cxx_werror_flag" ||
  2986. test ! -s conftest.err
  2987. } && test -s conftest.$ac_objext; then
  2988. ac_compiler_gnu=yes
  2989. else
  2990. $as_echo "$as_me: failed program was:" >&5
  2991. sed 's/^/| /' conftest.$ac_ext >&5
  2992. ac_compiler_gnu=no
  2993. fi
  2994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2995. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2996. fi
  2997. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2998. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2999. if test $ac_compiler_gnu = yes; then
  3000. GXX=yes
  3001. else
  3002. GXX=
  3003. fi
  3004. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3005. ac_save_CXXFLAGS=$CXXFLAGS
  3006. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3007. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3008. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3009. $as_echo_n "(cached) " >&6
  3010. else
  3011. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3012. ac_cxx_werror_flag=yes
  3013. ac_cv_prog_cxx_g=no
  3014. CXXFLAGS="-g"
  3015. cat >conftest.$ac_ext <<_ACEOF
  3016. /* confdefs.h. */
  3017. _ACEOF
  3018. cat confdefs.h >>conftest.$ac_ext
  3019. cat >>conftest.$ac_ext <<_ACEOF
  3020. /* end confdefs.h. */
  3021. int
  3022. main ()
  3023. {
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. rm -f conftest.$ac_objext
  3029. if { (ac_try="$ac_compile"
  3030. case "(($ac_try" in
  3031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3032. *) ac_try_echo=$ac_try;;
  3033. esac
  3034. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3035. $as_echo "$ac_try_echo") >&5
  3036. (eval "$ac_compile") 2>conftest.er1
  3037. ac_status=$?
  3038. grep -v '^ *+' conftest.er1 >conftest.err
  3039. rm -f conftest.er1
  3040. cat conftest.err >&5
  3041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3042. (exit $ac_status); } && {
  3043. test -z "$ac_cxx_werror_flag" ||
  3044. test ! -s conftest.err
  3045. } && test -s conftest.$ac_objext; then
  3046. ac_cv_prog_cxx_g=yes
  3047. else
  3048. $as_echo "$as_me: failed program was:" >&5
  3049. sed 's/^/| /' conftest.$ac_ext >&5
  3050. CXXFLAGS=""
  3051. cat >conftest.$ac_ext <<_ACEOF
  3052. /* confdefs.h. */
  3053. _ACEOF
  3054. cat confdefs.h >>conftest.$ac_ext
  3055. cat >>conftest.$ac_ext <<_ACEOF
  3056. /* end confdefs.h. */
  3057. int
  3058. main ()
  3059. {
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. rm -f conftest.$ac_objext
  3065. if { (ac_try="$ac_compile"
  3066. case "(($ac_try" in
  3067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3068. *) ac_try_echo=$ac_try;;
  3069. esac
  3070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3071. $as_echo "$ac_try_echo") >&5
  3072. (eval "$ac_compile") 2>conftest.er1
  3073. ac_status=$?
  3074. grep -v '^ *+' conftest.er1 >conftest.err
  3075. rm -f conftest.er1
  3076. cat conftest.err >&5
  3077. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); } && {
  3079. test -z "$ac_cxx_werror_flag" ||
  3080. test ! -s conftest.err
  3081. } && test -s conftest.$ac_objext; then
  3082. :
  3083. else
  3084. $as_echo "$as_me: failed program was:" >&5
  3085. sed 's/^/| /' conftest.$ac_ext >&5
  3086. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3087. CXXFLAGS="-g"
  3088. cat >conftest.$ac_ext <<_ACEOF
  3089. /* confdefs.h. */
  3090. _ACEOF
  3091. cat confdefs.h >>conftest.$ac_ext
  3092. cat >>conftest.$ac_ext <<_ACEOF
  3093. /* end confdefs.h. */
  3094. int
  3095. main ()
  3096. {
  3097. ;
  3098. return 0;
  3099. }
  3100. _ACEOF
  3101. rm -f conftest.$ac_objext
  3102. if { (ac_try="$ac_compile"
  3103. case "(($ac_try" in
  3104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3105. *) ac_try_echo=$ac_try;;
  3106. esac
  3107. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3108. $as_echo "$ac_try_echo") >&5
  3109. (eval "$ac_compile") 2>conftest.er1
  3110. ac_status=$?
  3111. grep -v '^ *+' conftest.er1 >conftest.err
  3112. rm -f conftest.er1
  3113. cat conftest.err >&5
  3114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3115. (exit $ac_status); } && {
  3116. test -z "$ac_cxx_werror_flag" ||
  3117. test ! -s conftest.err
  3118. } && test -s conftest.$ac_objext; then
  3119. ac_cv_prog_cxx_g=yes
  3120. else
  3121. $as_echo "$as_me: failed program was:" >&5
  3122. sed 's/^/| /' conftest.$ac_ext >&5
  3123. fi
  3124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3125. fi
  3126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3130. fi
  3131. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3132. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3133. if test "$ac_test_CXXFLAGS" = set; then
  3134. CXXFLAGS=$ac_save_CXXFLAGS
  3135. elif test $ac_cv_prog_cxx_g = yes; then
  3136. if test "$GXX" = yes; then
  3137. CXXFLAGS="-g -O2"
  3138. else
  3139. CXXFLAGS="-g"
  3140. fi
  3141. else
  3142. if test "$GXX" = yes; then
  3143. CXXFLAGS="-O2"
  3144. else
  3145. CXXFLAGS=
  3146. fi
  3147. fi
  3148. ac_ext=c
  3149. ac_cpp='$CPP $CPPFLAGS'
  3150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3153. DEPDIR="${am__leading_dot}deps"
  3154. ac_config_commands="$ac_config_commands depfiles"
  3155. am_make=${MAKE-make}
  3156. cat > confinc << 'END'
  3157. am__doit:
  3158. @echo done
  3159. .PHONY: am__doit
  3160. END
  3161. # If we don't find an include directive, just comment out the code.
  3162. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3163. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3164. am__include="#"
  3165. am__quote=
  3166. _am_result=none
  3167. # First try GNU make style include.
  3168. echo "include confinc" > confmf
  3169. # We grep out `Entering directory' and `Leaving directory'
  3170. # messages which can occur if `w' ends up in MAKEFLAGS.
  3171. # In particular we don't look at `^make:' because GNU make might
  3172. # be invoked under some other name (usually "gmake"), in which
  3173. # case it prints its new name instead of `make'.
  3174. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3175. am__include=include
  3176. am__quote=
  3177. _am_result=GNU
  3178. fi
  3179. # Now try BSD make style include.
  3180. if test "$am__include" = "#"; then
  3181. echo '.include "confinc"' > confmf
  3182. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3183. am__include=.include
  3184. am__quote="\""
  3185. _am_result=BSD
  3186. fi
  3187. fi
  3188. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3189. $as_echo "$_am_result" >&6; }
  3190. rm -f confinc confmf
  3191. # Check whether --enable-dependency-tracking was given.
  3192. if test "${enable_dependency_tracking+set}" = set; then
  3193. enableval=$enable_dependency_tracking;
  3194. fi
  3195. if test "x$enable_dependency_tracking" != xno; then
  3196. am_depcomp="$ac_aux_dir/depcomp"
  3197. AMDEPBACKSLASH='\'
  3198. fi
  3199. if test "x$enable_dependency_tracking" != xno; then
  3200. AMDEP_TRUE=
  3201. AMDEP_FALSE='#'
  3202. else
  3203. AMDEP_TRUE='#'
  3204. AMDEP_FALSE=
  3205. fi
  3206. depcc="$CXX" am_compiler_list=
  3207. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3208. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3209. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3213. # We make a subdir and do the tests there. Otherwise we can end up
  3214. # making bogus files that we don't know about and never remove. For
  3215. # instance it was reported that on HP-UX the gcc test will end up
  3216. # making a dummy file named `D' -- because `-MD' means `put the output
  3217. # in D'.
  3218. mkdir conftest.dir
  3219. # Copy depcomp to subdir because otherwise we won't find it if we're
  3220. # using a relative directory.
  3221. cp "$am_depcomp" conftest.dir
  3222. cd conftest.dir
  3223. # We will build objects and dependencies in a subdirectory because
  3224. # it helps to detect inapplicable dependency modes. For instance
  3225. # both Tru64's cc and ICC support -MD to output dependencies as a
  3226. # side effect of compilation, but ICC will put the dependencies in
  3227. # the current directory while Tru64 will put them in the object
  3228. # directory.
  3229. mkdir sub
  3230. am_cv_CXX_dependencies_compiler_type=none
  3231. if test "$am_compiler_list" = ""; then
  3232. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3233. fi
  3234. for depmode in $am_compiler_list; do
  3235. # Setup a source with many dependencies, because some compilers
  3236. # like to wrap large dependency lists on column 80 (with \), and
  3237. # we should not choose a depcomp mode which is confused by this.
  3238. #
  3239. # We need to recreate these files for each test, as the compiler may
  3240. # overwrite some of them when testing with obscure command lines.
  3241. # This happens at least with the AIX C compiler.
  3242. : > sub/conftest.c
  3243. for i in 1 2 3 4 5 6; do
  3244. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3245. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3246. # Solaris 8's {/usr,}/bin/sh.
  3247. touch sub/conftst$i.h
  3248. done
  3249. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3250. case $depmode in
  3251. nosideeffect)
  3252. # after this tag, mechanisms are not by side-effect, so they'll
  3253. # only be used when explicitly requested
  3254. if test "x$enable_dependency_tracking" = xyes; then
  3255. continue
  3256. else
  3257. break
  3258. fi
  3259. ;;
  3260. none) break ;;
  3261. esac
  3262. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3263. # mode. It turns out that the SunPro C++ compiler does not properly
  3264. # handle `-M -o', and we need to detect this.
  3265. if depmode=$depmode \
  3266. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3267. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3268. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3269. >/dev/null 2>conftest.err &&
  3270. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3271. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3272. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3273. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3274. # icc doesn't choke on unknown options, it will just issue warnings
  3275. # or remarks (even with -Werror). So we grep stderr for any message
  3276. # that says an option was ignored or not supported.
  3277. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3278. # icc: Command line warning: ignoring option '-M'; no argument required
  3279. # The diagnosis changed in icc 8.0:
  3280. # icc: Command line remark: option '-MP' not supported
  3281. if (grep 'ignoring option' conftest.err ||
  3282. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3283. am_cv_CXX_dependencies_compiler_type=$depmode
  3284. break
  3285. fi
  3286. fi
  3287. done
  3288. cd ..
  3289. rm -rf conftest.dir
  3290. else
  3291. am_cv_CXX_dependencies_compiler_type=none
  3292. fi
  3293. fi
  3294. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3295. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3296. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3297. if
  3298. test "x$enable_dependency_tracking" != xno \
  3299. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3300. am__fastdepCXX_TRUE=
  3301. am__fastdepCXX_FALSE='#'
  3302. else
  3303. am__fastdepCXX_TRUE='#'
  3304. am__fastdepCXX_FALSE=
  3305. fi
  3306. ac_ext=c
  3307. ac_cpp='$CPP $CPPFLAGS'
  3308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3311. if test -n "$ac_tool_prefix"; then
  3312. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3313. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3314. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3315. $as_echo_n "checking for $ac_word... " >&6; }
  3316. if test "${ac_cv_prog_CC+set}" = set; then
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. if test -n "$CC"; then
  3320. ac_cv_prog_CC="$CC" # Let the user override the test.
  3321. else
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. test -z "$as_dir" && as_dir=.
  3327. for ac_exec_ext in '' $ac_executable_extensions; do
  3328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3329. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3330. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3331. break 2
  3332. fi
  3333. done
  3334. done
  3335. IFS=$as_save_IFS
  3336. fi
  3337. fi
  3338. CC=$ac_cv_prog_CC
  3339. if test -n "$CC"; then
  3340. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3341. $as_echo "$CC" >&6; }
  3342. else
  3343. { $as_echo "$as_me:$LINENO: result: no" >&5
  3344. $as_echo "no" >&6; }
  3345. fi
  3346. fi
  3347. if test -z "$ac_cv_prog_CC"; then
  3348. ac_ct_CC=$CC
  3349. # Extract the first word of "gcc", so it can be a program name with args.
  3350. set dummy gcc; ac_word=$2
  3351. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3352. $as_echo_n "checking for $ac_word... " >&6; }
  3353. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3354. $as_echo_n "(cached) " >&6
  3355. else
  3356. if test -n "$ac_ct_CC"; then
  3357. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3358. else
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. test -z "$as_dir" && as_dir=.
  3364. for ac_exec_ext in '' $ac_executable_extensions; do
  3365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3366. ac_cv_prog_ac_ct_CC="gcc"
  3367. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3368. break 2
  3369. fi
  3370. done
  3371. done
  3372. IFS=$as_save_IFS
  3373. fi
  3374. fi
  3375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3376. if test -n "$ac_ct_CC"; then
  3377. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3378. $as_echo "$ac_ct_CC" >&6; }
  3379. else
  3380. { $as_echo "$as_me:$LINENO: result: no" >&5
  3381. $as_echo "no" >&6; }
  3382. fi
  3383. if test "x$ac_ct_CC" = x; then
  3384. CC=""
  3385. else
  3386. case $cross_compiling:$ac_tool_warned in
  3387. yes:)
  3388. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3390. ac_tool_warned=yes ;;
  3391. esac
  3392. CC=$ac_ct_CC
  3393. fi
  3394. else
  3395. CC="$ac_cv_prog_CC"
  3396. fi
  3397. if test -z "$CC"; then
  3398. if test -n "$ac_tool_prefix"; then
  3399. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3400. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3401. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3402. $as_echo_n "checking for $ac_word... " >&6; }
  3403. if test "${ac_cv_prog_CC+set}" = set; then
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. if test -n "$CC"; then
  3407. ac_cv_prog_CC="$CC" # Let the user override the test.
  3408. else
  3409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3410. for as_dir in $PATH
  3411. do
  3412. IFS=$as_save_IFS
  3413. test -z "$as_dir" && as_dir=.
  3414. for ac_exec_ext in '' $ac_executable_extensions; do
  3415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3416. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3417. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3418. break 2
  3419. fi
  3420. done
  3421. done
  3422. IFS=$as_save_IFS
  3423. fi
  3424. fi
  3425. CC=$ac_cv_prog_CC
  3426. if test -n "$CC"; then
  3427. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3428. $as_echo "$CC" >&6; }
  3429. else
  3430. { $as_echo "$as_me:$LINENO: result: no" >&5
  3431. $as_echo "no" >&6; }
  3432. fi
  3433. fi
  3434. fi
  3435. if test -z "$CC"; then
  3436. # Extract the first word of "cc", so it can be a program name with args.
  3437. set dummy cc; ac_word=$2
  3438. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3439. $as_echo_n "checking for $ac_word... " >&6; }
  3440. if test "${ac_cv_prog_CC+set}" = set; then
  3441. $as_echo_n "(cached) " >&6
  3442. else
  3443. if test -n "$CC"; then
  3444. ac_cv_prog_CC="$CC" # Let the user override the test.
  3445. else
  3446. ac_prog_rejected=no
  3447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3448. for as_dir in $PATH
  3449. do
  3450. IFS=$as_save_IFS
  3451. test -z "$as_dir" && as_dir=.
  3452. for ac_exec_ext in '' $ac_executable_extensions; do
  3453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3454. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3455. ac_prog_rejected=yes
  3456. continue
  3457. fi
  3458. ac_cv_prog_CC="cc"
  3459. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3460. break 2
  3461. fi
  3462. done
  3463. done
  3464. IFS=$as_save_IFS
  3465. if test $ac_prog_rejected = yes; then
  3466. # We found a bogon in the path, so make sure we never use it.
  3467. set dummy $ac_cv_prog_CC
  3468. shift
  3469. if test $# != 0; then
  3470. # We chose a different compiler from the bogus one.
  3471. # However, it has the same basename, so the bogon will be chosen
  3472. # first if we set CC to just the basename; use the full file name.
  3473. shift
  3474. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3475. fi
  3476. fi
  3477. fi
  3478. fi
  3479. CC=$ac_cv_prog_CC
  3480. if test -n "$CC"; then
  3481. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3482. $as_echo "$CC" >&6; }
  3483. else
  3484. { $as_echo "$as_me:$LINENO: result: no" >&5
  3485. $as_echo "no" >&6; }
  3486. fi
  3487. fi
  3488. if test -z "$CC"; then
  3489. if test -n "$ac_tool_prefix"; then
  3490. for ac_prog in cl.exe
  3491. do
  3492. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3493. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3494. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3495. $as_echo_n "checking for $ac_word... " >&6; }
  3496. if test "${ac_cv_prog_CC+set}" = set; then
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. if test -n "$CC"; then
  3500. ac_cv_prog_CC="$CC" # Let the user override the test.
  3501. else
  3502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503. for as_dir in $PATH
  3504. do
  3505. IFS=$as_save_IFS
  3506. test -z "$as_dir" && as_dir=.
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3509. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3510. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3511. break 2
  3512. fi
  3513. done
  3514. done
  3515. IFS=$as_save_IFS
  3516. fi
  3517. fi
  3518. CC=$ac_cv_prog_CC
  3519. if test -n "$CC"; then
  3520. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3521. $as_echo "$CC" >&6; }
  3522. else
  3523. { $as_echo "$as_me:$LINENO: result: no" >&5
  3524. $as_echo "no" >&6; }
  3525. fi
  3526. test -n "$CC" && break
  3527. done
  3528. fi
  3529. if test -z "$CC"; then
  3530. ac_ct_CC=$CC
  3531. for ac_prog in cl.exe
  3532. do
  3533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3534. set dummy $ac_prog; ac_word=$2
  3535. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3536. $as_echo_n "checking for $ac_word... " >&6; }
  3537. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if test -n "$ac_ct_CC"; then
  3541. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3542. else
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH
  3545. do
  3546. IFS=$as_save_IFS
  3547. test -z "$as_dir" && as_dir=.
  3548. for ac_exec_ext in '' $ac_executable_extensions; do
  3549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3550. ac_cv_prog_ac_ct_CC="$ac_prog"
  3551. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3552. break 2
  3553. fi
  3554. done
  3555. done
  3556. IFS=$as_save_IFS
  3557. fi
  3558. fi
  3559. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3560. if test -n "$ac_ct_CC"; then
  3561. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3562. $as_echo "$ac_ct_CC" >&6; }
  3563. else
  3564. { $as_echo "$as_me:$LINENO: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. test -n "$ac_ct_CC" && break
  3568. done
  3569. if test "x$ac_ct_CC" = x; then
  3570. CC=""
  3571. else
  3572. case $cross_compiling:$ac_tool_warned in
  3573. yes:)
  3574. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3576. ac_tool_warned=yes ;;
  3577. esac
  3578. CC=$ac_ct_CC
  3579. fi
  3580. fi
  3581. fi
  3582. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3584. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3585. See \`config.log' for more details." >&5
  3586. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3587. See \`config.log' for more details." >&2;}
  3588. { (exit 1); exit 1; }; }; }
  3589. # Provide some information about the compiler.
  3590. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3591. set X $ac_compile
  3592. ac_compiler=$2
  3593. { (ac_try="$ac_compiler --version >&5"
  3594. case "(($ac_try" in
  3595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3596. *) ac_try_echo=$ac_try;;
  3597. esac
  3598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3599. $as_echo "$ac_try_echo") >&5
  3600. (eval "$ac_compiler --version >&5") 2>&5
  3601. ac_status=$?
  3602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. (exit $ac_status); }
  3604. { (ac_try="$ac_compiler -v >&5"
  3605. case "(($ac_try" in
  3606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3607. *) ac_try_echo=$ac_try;;
  3608. esac
  3609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3610. $as_echo "$ac_try_echo") >&5
  3611. (eval "$ac_compiler -v >&5") 2>&5
  3612. ac_status=$?
  3613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3614. (exit $ac_status); }
  3615. { (ac_try="$ac_compiler -V >&5"
  3616. case "(($ac_try" in
  3617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3618. *) ac_try_echo=$ac_try;;
  3619. esac
  3620. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3621. $as_echo "$ac_try_echo") >&5
  3622. (eval "$ac_compiler -V >&5") 2>&5
  3623. ac_status=$?
  3624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3625. (exit $ac_status); }
  3626. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3627. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3628. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. cat >conftest.$ac_ext <<_ACEOF
  3632. /* confdefs.h. */
  3633. _ACEOF
  3634. cat confdefs.h >>conftest.$ac_ext
  3635. cat >>conftest.$ac_ext <<_ACEOF
  3636. /* end confdefs.h. */
  3637. int
  3638. main ()
  3639. {
  3640. #ifndef __GNUC__
  3641. choke me
  3642. #endif
  3643. ;
  3644. return 0;
  3645. }
  3646. _ACEOF
  3647. rm -f conftest.$ac_objext
  3648. if { (ac_try="$ac_compile"
  3649. case "(($ac_try" in
  3650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3651. *) ac_try_echo=$ac_try;;
  3652. esac
  3653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3654. $as_echo "$ac_try_echo") >&5
  3655. (eval "$ac_compile") 2>conftest.er1
  3656. ac_status=$?
  3657. grep -v '^ *+' conftest.er1 >conftest.err
  3658. rm -f conftest.er1
  3659. cat conftest.err >&5
  3660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3661. (exit $ac_status); } && {
  3662. test -z "$ac_c_werror_flag" ||
  3663. test ! -s conftest.err
  3664. } && test -s conftest.$ac_objext; then
  3665. ac_compiler_gnu=yes
  3666. else
  3667. $as_echo "$as_me: failed program was:" >&5
  3668. sed 's/^/| /' conftest.$ac_ext >&5
  3669. ac_compiler_gnu=no
  3670. fi
  3671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3672. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3673. fi
  3674. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3675. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3676. if test $ac_compiler_gnu = yes; then
  3677. GCC=yes
  3678. else
  3679. GCC=
  3680. fi
  3681. ac_test_CFLAGS=${CFLAGS+set}
  3682. ac_save_CFLAGS=$CFLAGS
  3683. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3684. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3685. if test "${ac_cv_prog_cc_g+set}" = set; then
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. ac_save_c_werror_flag=$ac_c_werror_flag
  3689. ac_c_werror_flag=yes
  3690. ac_cv_prog_cc_g=no
  3691. CFLAGS="-g"
  3692. cat >conftest.$ac_ext <<_ACEOF
  3693. /* confdefs.h. */
  3694. _ACEOF
  3695. cat confdefs.h >>conftest.$ac_ext
  3696. cat >>conftest.$ac_ext <<_ACEOF
  3697. /* end confdefs.h. */
  3698. int
  3699. main ()
  3700. {
  3701. ;
  3702. return 0;
  3703. }
  3704. _ACEOF
  3705. rm -f conftest.$ac_objext
  3706. if { (ac_try="$ac_compile"
  3707. case "(($ac_try" in
  3708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3709. *) ac_try_echo=$ac_try;;
  3710. esac
  3711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3712. $as_echo "$ac_try_echo") >&5
  3713. (eval "$ac_compile") 2>conftest.er1
  3714. ac_status=$?
  3715. grep -v '^ *+' conftest.er1 >conftest.err
  3716. rm -f conftest.er1
  3717. cat conftest.err >&5
  3718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3719. (exit $ac_status); } && {
  3720. test -z "$ac_c_werror_flag" ||
  3721. test ! -s conftest.err
  3722. } && test -s conftest.$ac_objext; then
  3723. ac_cv_prog_cc_g=yes
  3724. else
  3725. $as_echo "$as_me: failed program was:" >&5
  3726. sed 's/^/| /' conftest.$ac_ext >&5
  3727. CFLAGS=""
  3728. cat >conftest.$ac_ext <<_ACEOF
  3729. /* confdefs.h. */
  3730. _ACEOF
  3731. cat confdefs.h >>conftest.$ac_ext
  3732. cat >>conftest.$ac_ext <<_ACEOF
  3733. /* end confdefs.h. */
  3734. int
  3735. main ()
  3736. {
  3737. ;
  3738. return 0;
  3739. }
  3740. _ACEOF
  3741. rm -f conftest.$ac_objext
  3742. if { (ac_try="$ac_compile"
  3743. case "(($ac_try" in
  3744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3745. *) ac_try_echo=$ac_try;;
  3746. esac
  3747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3748. $as_echo "$ac_try_echo") >&5
  3749. (eval "$ac_compile") 2>conftest.er1
  3750. ac_status=$?
  3751. grep -v '^ *+' conftest.er1 >conftest.err
  3752. rm -f conftest.er1
  3753. cat conftest.err >&5
  3754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3755. (exit $ac_status); } && {
  3756. test -z "$ac_c_werror_flag" ||
  3757. test ! -s conftest.err
  3758. } && test -s conftest.$ac_objext; then
  3759. :
  3760. else
  3761. $as_echo "$as_me: failed program was:" >&5
  3762. sed 's/^/| /' conftest.$ac_ext >&5
  3763. ac_c_werror_flag=$ac_save_c_werror_flag
  3764. CFLAGS="-g"
  3765. cat >conftest.$ac_ext <<_ACEOF
  3766. /* confdefs.h. */
  3767. _ACEOF
  3768. cat confdefs.h >>conftest.$ac_ext
  3769. cat >>conftest.$ac_ext <<_ACEOF
  3770. /* end confdefs.h. */
  3771. int
  3772. main ()
  3773. {
  3774. ;
  3775. return 0;
  3776. }
  3777. _ACEOF
  3778. rm -f conftest.$ac_objext
  3779. if { (ac_try="$ac_compile"
  3780. case "(($ac_try" in
  3781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3782. *) ac_try_echo=$ac_try;;
  3783. esac
  3784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3785. $as_echo "$ac_try_echo") >&5
  3786. (eval "$ac_compile") 2>conftest.er1
  3787. ac_status=$?
  3788. grep -v '^ *+' conftest.er1 >conftest.err
  3789. rm -f conftest.er1
  3790. cat conftest.err >&5
  3791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3792. (exit $ac_status); } && {
  3793. test -z "$ac_c_werror_flag" ||
  3794. test ! -s conftest.err
  3795. } && test -s conftest.$ac_objext; then
  3796. ac_cv_prog_cc_g=yes
  3797. else
  3798. $as_echo "$as_me: failed program was:" >&5
  3799. sed 's/^/| /' conftest.$ac_ext >&5
  3800. fi
  3801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3802. fi
  3803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3804. fi
  3805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3806. ac_c_werror_flag=$ac_save_c_werror_flag
  3807. fi
  3808. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3809. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3810. if test "$ac_test_CFLAGS" = set; then
  3811. CFLAGS=$ac_save_CFLAGS
  3812. elif test $ac_cv_prog_cc_g = yes; then
  3813. if test "$GCC" = yes; then
  3814. CFLAGS="-g -O2"
  3815. else
  3816. CFLAGS="-g"
  3817. fi
  3818. else
  3819. if test "$GCC" = yes; then
  3820. CFLAGS="-O2"
  3821. else
  3822. CFLAGS=
  3823. fi
  3824. fi
  3825. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3826. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3827. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3828. $as_echo_n "(cached) " >&6
  3829. else
  3830. ac_cv_prog_cc_c89=no
  3831. ac_save_CC=$CC
  3832. cat >conftest.$ac_ext <<_ACEOF
  3833. /* confdefs.h. */
  3834. _ACEOF
  3835. cat confdefs.h >>conftest.$ac_ext
  3836. cat >>conftest.$ac_ext <<_ACEOF
  3837. /* end confdefs.h. */
  3838. #include <stdarg.h>
  3839. #include <stdio.h>
  3840. #include <sys/types.h>
  3841. #include <sys/stat.h>
  3842. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3843. struct buf { int x; };
  3844. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3845. static char *e (p, i)
  3846. char **p;
  3847. int i;
  3848. {
  3849. return p[i];
  3850. }
  3851. static char *f (char * (*g) (char **, int), char **p, ...)
  3852. {
  3853. char *s;
  3854. va_list v;
  3855. va_start (v,p);
  3856. s = g (p, va_arg (v,int));
  3857. va_end (v);
  3858. return s;
  3859. }
  3860. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3861. function prototypes and stuff, but not '\xHH' hex character constants.
  3862. These don't provoke an error unfortunately, instead are silently treated
  3863. as 'x'. The following induces an error, until -std is added to get
  3864. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3865. array size at least. It's necessary to write '\x00'==0 to get something
  3866. that's true only with -std. */
  3867. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3868. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3869. inside strings and character constants. */
  3870. #define FOO(x) 'x'
  3871. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3872. int test (int i, double x);
  3873. struct s1 {int (*f) (int a);};
  3874. struct s2 {int (*f) (double a);};
  3875. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3876. int argc;
  3877. char **argv;
  3878. int
  3879. main ()
  3880. {
  3881. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3882. ;
  3883. return 0;
  3884. }
  3885. _ACEOF
  3886. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3887. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3888. do
  3889. CC="$ac_save_CC $ac_arg"
  3890. rm -f conftest.$ac_objext
  3891. if { (ac_try="$ac_compile"
  3892. case "(($ac_try" in
  3893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3894. *) ac_try_echo=$ac_try;;
  3895. esac
  3896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3897. $as_echo "$ac_try_echo") >&5
  3898. (eval "$ac_compile") 2>conftest.er1
  3899. ac_status=$?
  3900. grep -v '^ *+' conftest.er1 >conftest.err
  3901. rm -f conftest.er1
  3902. cat conftest.err >&5
  3903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3904. (exit $ac_status); } && {
  3905. test -z "$ac_c_werror_flag" ||
  3906. test ! -s conftest.err
  3907. } && test -s conftest.$ac_objext; then
  3908. ac_cv_prog_cc_c89=$ac_arg
  3909. else
  3910. $as_echo "$as_me: failed program was:" >&5
  3911. sed 's/^/| /' conftest.$ac_ext >&5
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext
  3914. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3915. done
  3916. rm -f conftest.$ac_ext
  3917. CC=$ac_save_CC
  3918. fi
  3919. # AC_CACHE_VAL
  3920. case "x$ac_cv_prog_cc_c89" in
  3921. x)
  3922. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3923. $as_echo "none needed" >&6; } ;;
  3924. xno)
  3925. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3926. $as_echo "unsupported" >&6; } ;;
  3927. *)
  3928. CC="$CC $ac_cv_prog_cc_c89"
  3929. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3930. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3931. esac
  3932. ac_ext=c
  3933. ac_cpp='$CPP $CPPFLAGS'
  3934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3937. depcc="$CC" am_compiler_list=
  3938. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3939. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3940. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3941. $as_echo_n "(cached) " >&6
  3942. else
  3943. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3944. # We make a subdir and do the tests there. Otherwise we can end up
  3945. # making bogus files that we don't know about and never remove. For
  3946. # instance it was reported that on HP-UX the gcc test will end up
  3947. # making a dummy file named `D' -- because `-MD' means `put the output
  3948. # in D'.
  3949. mkdir conftest.dir
  3950. # Copy depcomp to subdir because otherwise we won't find it if we're
  3951. # using a relative directory.
  3952. cp "$am_depcomp" conftest.dir
  3953. cd conftest.dir
  3954. # We will build objects and dependencies in a subdirectory because
  3955. # it helps to detect inapplicable dependency modes. For instance
  3956. # both Tru64's cc and ICC support -MD to output dependencies as a
  3957. # side effect of compilation, but ICC will put the dependencies in
  3958. # the current directory while Tru64 will put them in the object
  3959. # directory.
  3960. mkdir sub
  3961. am_cv_CC_dependencies_compiler_type=none
  3962. if test "$am_compiler_list" = ""; then
  3963. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3964. fi
  3965. for depmode in $am_compiler_list; do
  3966. # Setup a source with many dependencies, because some compilers
  3967. # like to wrap large dependency lists on column 80 (with \), and
  3968. # we should not choose a depcomp mode which is confused by this.
  3969. #
  3970. # We need to recreate these files for each test, as the compiler may
  3971. # overwrite some of them when testing with obscure command lines.
  3972. # This happens at least with the AIX C compiler.
  3973. : > sub/conftest.c
  3974. for i in 1 2 3 4 5 6; do
  3975. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3976. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3977. # Solaris 8's {/usr,}/bin/sh.
  3978. touch sub/conftst$i.h
  3979. done
  3980. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3981. case $depmode in
  3982. nosideeffect)
  3983. # after this tag, mechanisms are not by side-effect, so they'll
  3984. # only be used when explicitly requested
  3985. if test "x$enable_dependency_tracking" = xyes; then
  3986. continue
  3987. else
  3988. break
  3989. fi
  3990. ;;
  3991. none) break ;;
  3992. esac
  3993. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3994. # mode. It turns out that the SunPro C++ compiler does not properly
  3995. # handle `-M -o', and we need to detect this.
  3996. if depmode=$depmode \
  3997. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3998. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3999. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4000. >/dev/null 2>conftest.err &&
  4001. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4002. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4003. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4004. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4005. # icc doesn't choke on unknown options, it will just issue warnings
  4006. # or remarks (even with -Werror). So we grep stderr for any message
  4007. # that says an option was ignored or not supported.
  4008. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4009. # icc: Command line warning: ignoring option '-M'; no argument required
  4010. # The diagnosis changed in icc 8.0:
  4011. # icc: Command line remark: option '-MP' not supported
  4012. if (grep 'ignoring option' conftest.err ||
  4013. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4014. am_cv_CC_dependencies_compiler_type=$depmode
  4015. break
  4016. fi
  4017. fi
  4018. done
  4019. cd ..
  4020. rm -rf conftest.dir
  4021. else
  4022. am_cv_CC_dependencies_compiler_type=none
  4023. fi
  4024. fi
  4025. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4026. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4027. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4028. if
  4029. test "x$enable_dependency_tracking" != xno \
  4030. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4031. am__fastdepCC_TRUE=
  4032. am__fastdepCC_FALSE='#'
  4033. else
  4034. am__fastdepCC_TRUE='#'
  4035. am__fastdepCC_FALSE=
  4036. fi
  4037. # Find a good install program. We prefer a C program (faster),
  4038. # so one script is as good as another. But avoid the broken or
  4039. # incompatible versions:
  4040. # SysV /etc/install, /usr/sbin/install
  4041. # SunOS /usr/etc/install
  4042. # IRIX /sbin/install
  4043. # AIX /bin/install
  4044. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4045. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4046. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4047. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4048. # OS/2's system install, which has a completely different semantic
  4049. # ./install, which can be erroneously created by make from ./install.sh.
  4050. # Reject install programs that cannot install multiple files.
  4051. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4052. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4053. if test -z "$INSTALL"; then
  4054. if test "${ac_cv_path_install+set}" = set; then
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4058. for as_dir in $PATH
  4059. do
  4060. IFS=$as_save_IFS
  4061. test -z "$as_dir" && as_dir=.
  4062. # Account for people who put trailing slashes in PATH elements.
  4063. case $as_dir/ in
  4064. ./ | .// | /cC/* | \
  4065. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4066. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4067. /usr/ucb/* ) ;;
  4068. *)
  4069. # OSF1 and SCO ODT 3.0 have their own names for install.
  4070. # Don't use installbsd from OSF since it installs stuff as root
  4071. # by default.
  4072. for ac_prog in ginstall scoinst install; do
  4073. for ac_exec_ext in '' $ac_executable_extensions; do
  4074. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4075. if test $ac_prog = install &&
  4076. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4077. # AIX install. It has an incompatible calling convention.
  4078. :
  4079. elif test $ac_prog = install &&
  4080. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4081. # program-specific install script used by HP pwplus--don't use.
  4082. :
  4083. else
  4084. rm -rf conftest.one conftest.two conftest.dir
  4085. echo one > conftest.one
  4086. echo two > conftest.two
  4087. mkdir conftest.dir
  4088. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4089. test -s conftest.one && test -s conftest.two &&
  4090. test -s conftest.dir/conftest.one &&
  4091. test -s conftest.dir/conftest.two
  4092. then
  4093. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4094. break 3
  4095. fi
  4096. fi
  4097. fi
  4098. done
  4099. done
  4100. ;;
  4101. esac
  4102. done
  4103. IFS=$as_save_IFS
  4104. rm -rf conftest.one conftest.two conftest.dir
  4105. fi
  4106. if test "${ac_cv_path_install+set}" = set; then
  4107. INSTALL=$ac_cv_path_install
  4108. else
  4109. # As a last resort, use the slow shell script. Don't cache a
  4110. # value for INSTALL within a source directory, because that will
  4111. # break other packages using the cache if that directory is
  4112. # removed, or if the value is a relative name.
  4113. INSTALL=$ac_install_sh
  4114. fi
  4115. fi
  4116. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4117. $as_echo "$INSTALL" >&6; }
  4118. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4119. # It thinks the first close brace ends the variable substitution.
  4120. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4121. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4122. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4123. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  4124. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4125. if test -z "$MKDIR_P"; then
  4126. if test "${ac_cv_path_mkdir+set}" = set; then
  4127. $as_echo_n "(cached) " >&6
  4128. else
  4129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4130. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4131. do
  4132. IFS=$as_save_IFS
  4133. test -z "$as_dir" && as_dir=.
  4134. for ac_prog in mkdir gmkdir; do
  4135. for ac_exec_ext in '' $ac_executable_extensions; do
  4136. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4137. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4138. 'mkdir (GNU coreutils) '* | \
  4139. 'mkdir (coreutils) '* | \
  4140. 'mkdir (fileutils) '4.1*)
  4141. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4142. break 3;;
  4143. esac
  4144. done
  4145. done
  4146. done
  4147. IFS=$as_save_IFS
  4148. fi
  4149. if test "${ac_cv_path_mkdir+set}" = set; then
  4150. MKDIR_P="$ac_cv_path_mkdir -p"
  4151. else
  4152. # As a last resort, use the slow shell script. Don't cache a
  4153. # value for MKDIR_P within a source directory, because that will
  4154. # break other packages using the cache if that directory is
  4155. # removed, or if the value is a relative name.
  4156. test -d ./--version && rmdir ./--version
  4157. MKDIR_P="$ac_install_sh -d"
  4158. fi
  4159. fi
  4160. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  4161. $as_echo "$MKDIR_P" >&6; }
  4162. if test -n "$ac_tool_prefix"; then
  4163. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4164. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4165. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4166. $as_echo_n "checking for $ac_word... " >&6; }
  4167. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. if test -n "$RANLIB"; then
  4171. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4172. else
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4180. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4181. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4182. break 2
  4183. fi
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. fi
  4188. fi
  4189. RANLIB=$ac_cv_prog_RANLIB
  4190. if test -n "$RANLIB"; then
  4191. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4192. $as_echo "$RANLIB" >&6; }
  4193. else
  4194. { $as_echo "$as_me:$LINENO: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. fi
  4198. if test -z "$ac_cv_prog_RANLIB"; then
  4199. ac_ct_RANLIB=$RANLIB
  4200. # Extract the first word of "ranlib", so it can be a program name with args.
  4201. set dummy ranlib; ac_word=$2
  4202. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4203. $as_echo_n "checking for $ac_word... " >&6; }
  4204. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. if test -n "$ac_ct_RANLIB"; then
  4208. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4209. else
  4210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4211. for as_dir in $PATH
  4212. do
  4213. IFS=$as_save_IFS
  4214. test -z "$as_dir" && as_dir=.
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4217. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4218. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4219. break 2
  4220. fi
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. fi
  4225. fi
  4226. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4227. if test -n "$ac_ct_RANLIB"; then
  4228. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4229. $as_echo "$ac_ct_RANLIB" >&6; }
  4230. else
  4231. { $as_echo "$as_me:$LINENO: result: no" >&5
  4232. $as_echo "no" >&6; }
  4233. fi
  4234. if test "x$ac_ct_RANLIB" = x; then
  4235. RANLIB=":"
  4236. else
  4237. case $cross_compiling:$ac_tool_warned in
  4238. yes:)
  4239. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4241. ac_tool_warned=yes ;;
  4242. esac
  4243. RANLIB=$ac_ct_RANLIB
  4244. fi
  4245. else
  4246. RANLIB="$ac_cv_prog_RANLIB"
  4247. fi
  4248. for ac_prog in 'bison -y' byacc
  4249. do
  4250. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4251. set dummy $ac_prog; ac_word=$2
  4252. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4253. $as_echo_n "checking for $ac_word... " >&6; }
  4254. if test "${ac_cv_prog_YACC+set}" = set; then
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. if test -n "$YACC"; then
  4258. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4259. else
  4260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4261. for as_dir in $PATH
  4262. do
  4263. IFS=$as_save_IFS
  4264. test -z "$as_dir" && as_dir=.
  4265. for ac_exec_ext in '' $ac_executable_extensions; do
  4266. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4267. ac_cv_prog_YACC="$ac_prog"
  4268. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4269. break 2
  4270. fi
  4271. done
  4272. done
  4273. IFS=$as_save_IFS
  4274. fi
  4275. fi
  4276. YACC=$ac_cv_prog_YACC
  4277. if test -n "$YACC"; then
  4278. { $as_echo "$as_me:$LINENO: result: $YACC" >&5
  4279. $as_echo "$YACC" >&6; }
  4280. else
  4281. { $as_echo "$as_me:$LINENO: result: no" >&5
  4282. $as_echo "no" >&6; }
  4283. fi
  4284. test -n "$YACC" && break
  4285. done
  4286. test -n "$YACC" || YACC="yacc"
  4287. # Setting language choice
  4288. ac_ext=cpp
  4289. ac_cpp='$CXXCPP $CPPFLAGS'
  4290. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4291. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4292. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4293. # Enable system extensions
  4294. ac_ext=cpp
  4295. ac_cpp='$CXXCPP $CPPFLAGS'
  4296. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4297. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4298. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4299. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4300. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4301. if test -z "$CXXCPP"; then
  4302. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4303. $as_echo_n "(cached) " >&6
  4304. else
  4305. # Double quotes because CXXCPP needs to be expanded
  4306. for CXXCPP in "$CXX -E" "/lib/cpp"
  4307. do
  4308. ac_preproc_ok=false
  4309. for ac_cxx_preproc_warn_flag in '' yes
  4310. do
  4311. # Use a header file that comes with gcc, so configuring glibc
  4312. # with a fresh cross-compiler works.
  4313. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4314. # <limits.h> exists even on freestanding compilers.
  4315. # On the NeXT, cc -E runs the code through the compiler's parser,
  4316. # not just through cpp. "Syntax error" is here to catch this case.
  4317. cat >conftest.$ac_ext <<_ACEOF
  4318. /* confdefs.h. */
  4319. _ACEOF
  4320. cat confdefs.h >>conftest.$ac_ext
  4321. cat >>conftest.$ac_ext <<_ACEOF
  4322. /* end confdefs.h. */
  4323. #ifdef __STDC__
  4324. # include <limits.h>
  4325. #else
  4326. # include <assert.h>
  4327. #endif
  4328. Syntax error
  4329. _ACEOF
  4330. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4331. case "(($ac_try" in
  4332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4333. *) ac_try_echo=$ac_try;;
  4334. esac
  4335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4336. $as_echo "$ac_try_echo") >&5
  4337. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4338. ac_status=$?
  4339. grep -v '^ *+' conftest.er1 >conftest.err
  4340. rm -f conftest.er1
  4341. cat conftest.err >&5
  4342. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4343. (exit $ac_status); } >/dev/null && {
  4344. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4345. test ! -s conftest.err
  4346. }; then
  4347. :
  4348. else
  4349. $as_echo "$as_me: failed program was:" >&5
  4350. sed 's/^/| /' conftest.$ac_ext >&5
  4351. # Broken: fails on valid input.
  4352. continue
  4353. fi
  4354. rm -f conftest.err conftest.$ac_ext
  4355. # OK, works on sane cases. Now check whether nonexistent headers
  4356. # can be detected and how.
  4357. cat >conftest.$ac_ext <<_ACEOF
  4358. /* confdefs.h. */
  4359. _ACEOF
  4360. cat confdefs.h >>conftest.$ac_ext
  4361. cat >>conftest.$ac_ext <<_ACEOF
  4362. /* end confdefs.h. */
  4363. #include <ac_nonexistent.h>
  4364. _ACEOF
  4365. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4366. case "(($ac_try" in
  4367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4368. *) ac_try_echo=$ac_try;;
  4369. esac
  4370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4371. $as_echo "$ac_try_echo") >&5
  4372. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4373. ac_status=$?
  4374. grep -v '^ *+' conftest.er1 >conftest.err
  4375. rm -f conftest.er1
  4376. cat conftest.err >&5
  4377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4378. (exit $ac_status); } >/dev/null && {
  4379. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4380. test ! -s conftest.err
  4381. }; then
  4382. # Broken: success on invalid input.
  4383. continue
  4384. else
  4385. $as_echo "$as_me: failed program was:" >&5
  4386. sed 's/^/| /' conftest.$ac_ext >&5
  4387. # Passes both tests.
  4388. ac_preproc_ok=:
  4389. break
  4390. fi
  4391. rm -f conftest.err conftest.$ac_ext
  4392. done
  4393. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4394. rm -f conftest.err conftest.$ac_ext
  4395. if $ac_preproc_ok; then
  4396. break
  4397. fi
  4398. done
  4399. ac_cv_prog_CXXCPP=$CXXCPP
  4400. fi
  4401. CXXCPP=$ac_cv_prog_CXXCPP
  4402. else
  4403. ac_cv_prog_CXXCPP=$CXXCPP
  4404. fi
  4405. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4406. $as_echo "$CXXCPP" >&6; }
  4407. ac_preproc_ok=false
  4408. for ac_cxx_preproc_warn_flag in '' yes
  4409. do
  4410. # Use a header file that comes with gcc, so configuring glibc
  4411. # with a fresh cross-compiler works.
  4412. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4413. # <limits.h> exists even on freestanding compilers.
  4414. # On the NeXT, cc -E runs the code through the compiler's parser,
  4415. # not just through cpp. "Syntax error" is here to catch this case.
  4416. cat >conftest.$ac_ext <<_ACEOF
  4417. /* confdefs.h. */
  4418. _ACEOF
  4419. cat confdefs.h >>conftest.$ac_ext
  4420. cat >>conftest.$ac_ext <<_ACEOF
  4421. /* end confdefs.h. */
  4422. #ifdef __STDC__
  4423. # include <limits.h>
  4424. #else
  4425. # include <assert.h>
  4426. #endif
  4427. Syntax error
  4428. _ACEOF
  4429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4430. case "(($ac_try" in
  4431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4432. *) ac_try_echo=$ac_try;;
  4433. esac
  4434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4435. $as_echo "$ac_try_echo") >&5
  4436. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4437. ac_status=$?
  4438. grep -v '^ *+' conftest.er1 >conftest.err
  4439. rm -f conftest.er1
  4440. cat conftest.err >&5
  4441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4442. (exit $ac_status); } >/dev/null && {
  4443. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4444. test ! -s conftest.err
  4445. }; then
  4446. :
  4447. else
  4448. $as_echo "$as_me: failed program was:" >&5
  4449. sed 's/^/| /' conftest.$ac_ext >&5
  4450. # Broken: fails on valid input.
  4451. continue
  4452. fi
  4453. rm -f conftest.err conftest.$ac_ext
  4454. # OK, works on sane cases. Now check whether nonexistent headers
  4455. # can be detected and how.
  4456. cat >conftest.$ac_ext <<_ACEOF
  4457. /* confdefs.h. */
  4458. _ACEOF
  4459. cat confdefs.h >>conftest.$ac_ext
  4460. cat >>conftest.$ac_ext <<_ACEOF
  4461. /* end confdefs.h. */
  4462. #include <ac_nonexistent.h>
  4463. _ACEOF
  4464. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4465. case "(($ac_try" in
  4466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4467. *) ac_try_echo=$ac_try;;
  4468. esac
  4469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4470. $as_echo "$ac_try_echo") >&5
  4471. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } >/dev/null && {
  4478. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4479. test ! -s conftest.err
  4480. }; then
  4481. # Broken: success on invalid input.
  4482. continue
  4483. else
  4484. $as_echo "$as_me: failed program was:" >&5
  4485. sed 's/^/| /' conftest.$ac_ext >&5
  4486. # Passes both tests.
  4487. ac_preproc_ok=:
  4488. break
  4489. fi
  4490. rm -f conftest.err conftest.$ac_ext
  4491. done
  4492. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4493. rm -f conftest.err conftest.$ac_ext
  4494. if $ac_preproc_ok; then
  4495. :
  4496. else
  4497. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4498. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4499. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4500. See \`config.log' for more details." >&5
  4501. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4502. See \`config.log' for more details." >&2;}
  4503. { (exit 1); exit 1; }; }; }
  4504. fi
  4505. ac_ext=cpp
  4506. ac_cpp='$CXXCPP $CPPFLAGS'
  4507. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4508. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4509. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4510. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4511. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4512. if test "${ac_cv_path_GREP+set}" = set; then
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. if test -z "$GREP"; then
  4516. ac_path_GREP_found=false
  4517. # Loop through the user's path and test for each of PROGNAME-LIST
  4518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4519. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4520. do
  4521. IFS=$as_save_IFS
  4522. test -z "$as_dir" && as_dir=.
  4523. for ac_prog in grep ggrep; do
  4524. for ac_exec_ext in '' $ac_executable_extensions; do
  4525. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4526. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4527. # Check for GNU ac_path_GREP and select it if it is found.
  4528. # Check for GNU $ac_path_GREP
  4529. case `"$ac_path_GREP" --version 2>&1` in
  4530. *GNU*)
  4531. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4532. *)
  4533. ac_count=0
  4534. $as_echo_n 0123456789 >"conftest.in"
  4535. while :
  4536. do
  4537. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4538. mv "conftest.tmp" "conftest.in"
  4539. cp "conftest.in" "conftest.nl"
  4540. $as_echo 'GREP' >> "conftest.nl"
  4541. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4542. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4543. ac_count=`expr $ac_count + 1`
  4544. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4545. # Best one so far, save it but keep looking for a better one
  4546. ac_cv_path_GREP="$ac_path_GREP"
  4547. ac_path_GREP_max=$ac_count
  4548. fi
  4549. # 10*(2^10) chars as input seems more than enough
  4550. test $ac_count -gt 10 && break
  4551. done
  4552. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4553. esac
  4554. $ac_path_GREP_found && break 3
  4555. done
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. if test -z "$ac_cv_path_GREP"; then
  4560. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4561. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4562. { (exit 1); exit 1; }; }
  4563. fi
  4564. else
  4565. ac_cv_path_GREP=$GREP
  4566. fi
  4567. fi
  4568. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4569. $as_echo "$ac_cv_path_GREP" >&6; }
  4570. GREP="$ac_cv_path_GREP"
  4571. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4572. $as_echo_n "checking for egrep... " >&6; }
  4573. if test "${ac_cv_path_EGREP+set}" = set; then
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4577. then ac_cv_path_EGREP="$GREP -E"
  4578. else
  4579. if test -z "$EGREP"; then
  4580. ac_path_EGREP_found=false
  4581. # Loop through the user's path and test for each of PROGNAME-LIST
  4582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4584. do
  4585. IFS=$as_save_IFS
  4586. test -z "$as_dir" && as_dir=.
  4587. for ac_prog in egrep; do
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4590. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4591. # Check for GNU ac_path_EGREP and select it if it is found.
  4592. # Check for GNU $ac_path_EGREP
  4593. case `"$ac_path_EGREP" --version 2>&1` in
  4594. *GNU*)
  4595. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4596. *)
  4597. ac_count=0
  4598. $as_echo_n 0123456789 >"conftest.in"
  4599. while :
  4600. do
  4601. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4602. mv "conftest.tmp" "conftest.in"
  4603. cp "conftest.in" "conftest.nl"
  4604. $as_echo 'EGREP' >> "conftest.nl"
  4605. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4606. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4607. ac_count=`expr $ac_count + 1`
  4608. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4609. # Best one so far, save it but keep looking for a better one
  4610. ac_cv_path_EGREP="$ac_path_EGREP"
  4611. ac_path_EGREP_max=$ac_count
  4612. fi
  4613. # 10*(2^10) chars as input seems more than enough
  4614. test $ac_count -gt 10 && break
  4615. done
  4616. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4617. esac
  4618. $ac_path_EGREP_found && break 3
  4619. done
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. if test -z "$ac_cv_path_EGREP"; then
  4624. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4625. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4626. { (exit 1); exit 1; }; }
  4627. fi
  4628. else
  4629. ac_cv_path_EGREP=$EGREP
  4630. fi
  4631. fi
  4632. fi
  4633. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4634. $as_echo "$ac_cv_path_EGREP" >&6; }
  4635. EGREP="$ac_cv_path_EGREP"
  4636. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4637. $as_echo_n "checking for ANSI C header files... " >&6; }
  4638. if test "${ac_cv_header_stdc+set}" = set; then
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. cat >conftest.$ac_ext <<_ACEOF
  4642. /* confdefs.h. */
  4643. _ACEOF
  4644. cat confdefs.h >>conftest.$ac_ext
  4645. cat >>conftest.$ac_ext <<_ACEOF
  4646. /* end confdefs.h. */
  4647. #include <stdlib.h>
  4648. #include <stdarg.h>
  4649. #include <string.h>
  4650. #include <float.h>
  4651. int
  4652. main ()
  4653. {
  4654. ;
  4655. return 0;
  4656. }
  4657. _ACEOF
  4658. rm -f conftest.$ac_objext
  4659. if { (ac_try="$ac_compile"
  4660. case "(($ac_try" in
  4661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4662. *) ac_try_echo=$ac_try;;
  4663. esac
  4664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4665. $as_echo "$ac_try_echo") >&5
  4666. (eval "$ac_compile") 2>conftest.er1
  4667. ac_status=$?
  4668. grep -v '^ *+' conftest.er1 >conftest.err
  4669. rm -f conftest.er1
  4670. cat conftest.err >&5
  4671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672. (exit $ac_status); } && {
  4673. test -z "$ac_cxx_werror_flag" ||
  4674. test ! -s conftest.err
  4675. } && test -s conftest.$ac_objext; then
  4676. ac_cv_header_stdc=yes
  4677. else
  4678. $as_echo "$as_me: failed program was:" >&5
  4679. sed 's/^/| /' conftest.$ac_ext >&5
  4680. ac_cv_header_stdc=no
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. if test $ac_cv_header_stdc = yes; then
  4684. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4685. cat >conftest.$ac_ext <<_ACEOF
  4686. /* confdefs.h. */
  4687. _ACEOF
  4688. cat confdefs.h >>conftest.$ac_ext
  4689. cat >>conftest.$ac_ext <<_ACEOF
  4690. /* end confdefs.h. */
  4691. #include <string.h>
  4692. _ACEOF
  4693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4694. $EGREP "memchr" >/dev/null 2>&1; then
  4695. :
  4696. else
  4697. ac_cv_header_stdc=no
  4698. fi
  4699. rm -f conftest*
  4700. fi
  4701. if test $ac_cv_header_stdc = yes; then
  4702. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4703. cat >conftest.$ac_ext <<_ACEOF
  4704. /* confdefs.h. */
  4705. _ACEOF
  4706. cat confdefs.h >>conftest.$ac_ext
  4707. cat >>conftest.$ac_ext <<_ACEOF
  4708. /* end confdefs.h. */
  4709. #include <stdlib.h>
  4710. _ACEOF
  4711. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4712. $EGREP "free" >/dev/null 2>&1; then
  4713. :
  4714. else
  4715. ac_cv_header_stdc=no
  4716. fi
  4717. rm -f conftest*
  4718. fi
  4719. if test $ac_cv_header_stdc = yes; then
  4720. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4721. if test "$cross_compiling" = yes; then
  4722. :
  4723. else
  4724. cat >conftest.$ac_ext <<_ACEOF
  4725. /* confdefs.h. */
  4726. _ACEOF
  4727. cat confdefs.h >>conftest.$ac_ext
  4728. cat >>conftest.$ac_ext <<_ACEOF
  4729. /* end confdefs.h. */
  4730. #include <ctype.h>
  4731. #include <stdlib.h>
  4732. #if ((' ' & 0x0FF) == 0x020)
  4733. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4734. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4735. #else
  4736. # define ISLOWER(c) \
  4737. (('a' <= (c) && (c) <= 'i') \
  4738. || ('j' <= (c) && (c) <= 'r') \
  4739. || ('s' <= (c) && (c) <= 'z'))
  4740. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4741. #endif
  4742. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4743. int
  4744. main ()
  4745. {
  4746. int i;
  4747. for (i = 0; i < 256; i++)
  4748. if (XOR (islower (i), ISLOWER (i))
  4749. || toupper (i) != TOUPPER (i))
  4750. return 2;
  4751. return 0;
  4752. }
  4753. _ACEOF
  4754. rm -f conftest$ac_exeext
  4755. if { (ac_try="$ac_link"
  4756. case "(($ac_try" in
  4757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4758. *) ac_try_echo=$ac_try;;
  4759. esac
  4760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4761. $as_echo "$ac_try_echo") >&5
  4762. (eval "$ac_link") 2>&5
  4763. ac_status=$?
  4764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4766. { (case "(($ac_try" in
  4767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4768. *) ac_try_echo=$ac_try;;
  4769. esac
  4770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4771. $as_echo "$ac_try_echo") >&5
  4772. (eval "$ac_try") 2>&5
  4773. ac_status=$?
  4774. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4775. (exit $ac_status); }; }; then
  4776. :
  4777. else
  4778. $as_echo "$as_me: program exited with status $ac_status" >&5
  4779. $as_echo "$as_me: failed program was:" >&5
  4780. sed 's/^/| /' conftest.$ac_ext >&5
  4781. ( exit $ac_status )
  4782. ac_cv_header_stdc=no
  4783. fi
  4784. rm -rf conftest.dSYM
  4785. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4786. fi
  4787. fi
  4788. fi
  4789. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4790. $as_echo "$ac_cv_header_stdc" >&6; }
  4791. if test $ac_cv_header_stdc = yes; then
  4792. cat >>confdefs.h <<\_ACEOF
  4793. #define STDC_HEADERS 1
  4794. _ACEOF
  4795. fi
  4796. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4797. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4798. inttypes.h stdint.h unistd.h
  4799. do
  4800. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4801. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4802. $as_echo_n "checking for $ac_header... " >&6; }
  4803. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4804. $as_echo_n "(cached) " >&6
  4805. else
  4806. cat >conftest.$ac_ext <<_ACEOF
  4807. /* confdefs.h. */
  4808. _ACEOF
  4809. cat confdefs.h >>conftest.$ac_ext
  4810. cat >>conftest.$ac_ext <<_ACEOF
  4811. /* end confdefs.h. */
  4812. $ac_includes_default
  4813. #include <$ac_header>
  4814. _ACEOF
  4815. rm -f conftest.$ac_objext
  4816. if { (ac_try="$ac_compile"
  4817. case "(($ac_try" in
  4818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4819. *) ac_try_echo=$ac_try;;
  4820. esac
  4821. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4822. $as_echo "$ac_try_echo") >&5
  4823. (eval "$ac_compile") 2>conftest.er1
  4824. ac_status=$?
  4825. grep -v '^ *+' conftest.er1 >conftest.err
  4826. rm -f conftest.er1
  4827. cat conftest.err >&5
  4828. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4829. (exit $ac_status); } && {
  4830. test -z "$ac_cxx_werror_flag" ||
  4831. test ! -s conftest.err
  4832. } && test -s conftest.$ac_objext; then
  4833. eval "$as_ac_Header=yes"
  4834. else
  4835. $as_echo "$as_me: failed program was:" >&5
  4836. sed 's/^/| /' conftest.$ac_ext >&5
  4837. eval "$as_ac_Header=no"
  4838. fi
  4839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4840. fi
  4841. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4842. $as_echo "$as_val"'`
  4843. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4844. $as_echo "$ac_res" >&6; }
  4845. as_val=`eval 'as_val=${'$as_ac_Header'}
  4846. $as_echo "$as_val"'`
  4847. if test "x$as_val" = x""yes; then
  4848. cat >>confdefs.h <<_ACEOF
  4849. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4850. _ACEOF
  4851. fi
  4852. done
  4853. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4854. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4855. $as_echo_n "checking for minix/config.h... " >&6; }
  4856. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4857. $as_echo_n "(cached) " >&6
  4858. fi
  4859. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4860. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4861. else
  4862. # Is the header compilable?
  4863. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4864. $as_echo_n "checking minix/config.h usability... " >&6; }
  4865. cat >conftest.$ac_ext <<_ACEOF
  4866. /* confdefs.h. */
  4867. _ACEOF
  4868. cat confdefs.h >>conftest.$ac_ext
  4869. cat >>conftest.$ac_ext <<_ACEOF
  4870. /* end confdefs.h. */
  4871. $ac_includes_default
  4872. #include <minix/config.h>
  4873. _ACEOF
  4874. rm -f conftest.$ac_objext
  4875. if { (ac_try="$ac_compile"
  4876. case "(($ac_try" in
  4877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4878. *) ac_try_echo=$ac_try;;
  4879. esac
  4880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4881. $as_echo "$ac_try_echo") >&5
  4882. (eval "$ac_compile") 2>conftest.er1
  4883. ac_status=$?
  4884. grep -v '^ *+' conftest.er1 >conftest.err
  4885. rm -f conftest.er1
  4886. cat conftest.err >&5
  4887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4888. (exit $ac_status); } && {
  4889. test -z "$ac_cxx_werror_flag" ||
  4890. test ! -s conftest.err
  4891. } && test -s conftest.$ac_objext; then
  4892. ac_header_compiler=yes
  4893. else
  4894. $as_echo "$as_me: failed program was:" >&5
  4895. sed 's/^/| /' conftest.$ac_ext >&5
  4896. ac_header_compiler=no
  4897. fi
  4898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4899. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4900. $as_echo "$ac_header_compiler" >&6; }
  4901. # Is the header present?
  4902. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4903. $as_echo_n "checking minix/config.h presence... " >&6; }
  4904. cat >conftest.$ac_ext <<_ACEOF
  4905. /* confdefs.h. */
  4906. _ACEOF
  4907. cat confdefs.h >>conftest.$ac_ext
  4908. cat >>conftest.$ac_ext <<_ACEOF
  4909. /* end confdefs.h. */
  4910. #include <minix/config.h>
  4911. _ACEOF
  4912. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4913. case "(($ac_try" in
  4914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4915. *) ac_try_echo=$ac_try;;
  4916. esac
  4917. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4918. $as_echo "$ac_try_echo") >&5
  4919. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4920. ac_status=$?
  4921. grep -v '^ *+' conftest.er1 >conftest.err
  4922. rm -f conftest.er1
  4923. cat conftest.err >&5
  4924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4925. (exit $ac_status); } >/dev/null && {
  4926. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4927. test ! -s conftest.err
  4928. }; then
  4929. ac_header_preproc=yes
  4930. else
  4931. $as_echo "$as_me: failed program was:" >&5
  4932. sed 's/^/| /' conftest.$ac_ext >&5
  4933. ac_header_preproc=no
  4934. fi
  4935. rm -f conftest.err conftest.$ac_ext
  4936. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4937. $as_echo "$ac_header_preproc" >&6; }
  4938. # So? What about this header?
  4939. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4940. yes:no: )
  4941. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4942. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4943. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4944. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4945. ac_header_preproc=yes
  4946. ;;
  4947. no:yes:* )
  4948. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4949. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4950. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4951. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4952. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4953. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4954. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4955. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4956. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4957. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4958. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4959. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4960. ( cat <<\_ASBOX
  4961. ## ----------------------------------------------- ##
  4962. ## Report this to t-tujikawa@users.sourceforge.net ##
  4963. ## ----------------------------------------------- ##
  4964. _ASBOX
  4965. ) | sed "s/^/$as_me: WARNING: /" >&2
  4966. ;;
  4967. esac
  4968. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4969. $as_echo_n "checking for minix/config.h... " >&6; }
  4970. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. ac_cv_header_minix_config_h=$ac_header_preproc
  4974. fi
  4975. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4976. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4977. fi
  4978. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4979. MINIX=yes
  4980. else
  4981. MINIX=
  4982. fi
  4983. if test "$MINIX" = yes; then
  4984. cat >>confdefs.h <<\_ACEOF
  4985. #define _POSIX_SOURCE 1
  4986. _ACEOF
  4987. cat >>confdefs.h <<\_ACEOF
  4988. #define _POSIX_1_SOURCE 2
  4989. _ACEOF
  4990. cat >>confdefs.h <<\_ACEOF
  4991. #define _MINIX 1
  4992. _ACEOF
  4993. fi
  4994. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4995. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4996. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. cat >conftest.$ac_ext <<_ACEOF
  5000. /* confdefs.h. */
  5001. _ACEOF
  5002. cat confdefs.h >>conftest.$ac_ext
  5003. cat >>conftest.$ac_ext <<_ACEOF
  5004. /* end confdefs.h. */
  5005. # define __EXTENSIONS__ 1
  5006. $ac_includes_default
  5007. int
  5008. main ()
  5009. {
  5010. ;
  5011. return 0;
  5012. }
  5013. _ACEOF
  5014. rm -f conftest.$ac_objext
  5015. if { (ac_try="$ac_compile"
  5016. case "(($ac_try" in
  5017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5018. *) ac_try_echo=$ac_try;;
  5019. esac
  5020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5021. $as_echo "$ac_try_echo") >&5
  5022. (eval "$ac_compile") 2>conftest.er1
  5023. ac_status=$?
  5024. grep -v '^ *+' conftest.er1 >conftest.err
  5025. rm -f conftest.er1
  5026. cat conftest.err >&5
  5027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5028. (exit $ac_status); } && {
  5029. test -z "$ac_cxx_werror_flag" ||
  5030. test ! -s conftest.err
  5031. } && test -s conftest.$ac_objext; then
  5032. ac_cv_safe_to_define___extensions__=yes
  5033. else
  5034. $as_echo "$as_me: failed program was:" >&5
  5035. sed 's/^/| /' conftest.$ac_ext >&5
  5036. ac_cv_safe_to_define___extensions__=no
  5037. fi
  5038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5039. fi
  5040. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  5041. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5042. test $ac_cv_safe_to_define___extensions__ = yes &&
  5043. cat >>confdefs.h <<\_ACEOF
  5044. #define __EXTENSIONS__ 1
  5045. _ACEOF
  5046. cat >>confdefs.h <<\_ACEOF
  5047. #define _ALL_SOURCE 1
  5048. _ACEOF
  5049. cat >>confdefs.h <<\_ACEOF
  5050. #define _GNU_SOURCE 1
  5051. _ACEOF
  5052. cat >>confdefs.h <<\_ACEOF
  5053. #define _POSIX_PTHREAD_SEMANTICS 1
  5054. _ACEOF
  5055. cat >>confdefs.h <<\_ACEOF
  5056. #define _TANDEM_SOURCE 1
  5057. _ACEOF
  5058. # Checks for libraries.
  5059. if test "x$with_libxml2" = "xyes"; then
  5060. # Check whether --with-xml-prefix was given.
  5061. if test "${with_xml_prefix+set}" = set; then
  5062. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5063. else
  5064. xml_config_prefix=""
  5065. fi
  5066. # Check whether --with-xml-exec-prefix was given.
  5067. if test "${with_xml_exec_prefix+set}" = set; then
  5068. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5069. else
  5070. xml_config_exec_prefix=""
  5071. fi
  5072. # Check whether --enable-xmltest was given.
  5073. if test "${enable_xmltest+set}" = set; then
  5074. enableval=$enable_xmltest;
  5075. else
  5076. enable_xmltest=yes
  5077. fi
  5078. if test x$xml_config_exec_prefix != x ; then
  5079. xml_config_args="$xml_config_args"
  5080. if test x${XML2_CONFIG+set} != xset ; then
  5081. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5082. fi
  5083. fi
  5084. if test x$xml_config_prefix != x ; then
  5085. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5086. if test x${XML2_CONFIG+set} != xset ; then
  5087. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5088. fi
  5089. fi
  5090. # Extract the first word of "xml2-config", so it can be a program name with args.
  5091. set dummy xml2-config; ac_word=$2
  5092. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5093. $as_echo_n "checking for $ac_word... " >&6; }
  5094. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. case $XML2_CONFIG in
  5098. [\\/]* | ?:[\\/]*)
  5099. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5100. ;;
  5101. *)
  5102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5103. for as_dir in $PATH
  5104. do
  5105. IFS=$as_save_IFS
  5106. test -z "$as_dir" && as_dir=.
  5107. for ac_exec_ext in '' $ac_executable_extensions; do
  5108. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5109. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5110. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5111. break 2
  5112. fi
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5117. ;;
  5118. esac
  5119. fi
  5120. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5121. if test -n "$XML2_CONFIG"; then
  5122. { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  5123. $as_echo "$XML2_CONFIG" >&6; }
  5124. else
  5125. { $as_echo "$as_me:$LINENO: result: no" >&5
  5126. $as_echo "no" >&6; }
  5127. fi
  5128. min_xml_version=2.6.24
  5129. { $as_echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  5130. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5131. no_xml=""
  5132. if test "$XML2_CONFIG" = "no" ; then
  5133. no_xml=yes
  5134. else
  5135. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5136. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5137. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5138. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5139. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5140. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5141. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5142. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5143. if test "x$enable_xmltest" = "xyes" ; then
  5144. ac_save_CPPFLAGS="$CPPFLAGS"
  5145. ac_save_LIBS="$LIBS"
  5146. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5147. LIBS="$XML_LIBS $LIBS"
  5148. rm -f conf.xmltest
  5149. if test "$cross_compiling" = yes; then
  5150. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5151. else
  5152. cat >conftest.$ac_ext <<_ACEOF
  5153. /* confdefs.h. */
  5154. _ACEOF
  5155. cat confdefs.h >>conftest.$ac_ext
  5156. cat >>conftest.$ac_ext <<_ACEOF
  5157. /* end confdefs.h. */
  5158. #include <stdlib.h>
  5159. #include <stdio.h>
  5160. #include <string.h>
  5161. #include <libxml/xmlversion.h>
  5162. int
  5163. main()
  5164. {
  5165. int xml_major_version, xml_minor_version, xml_micro_version;
  5166. int major, minor, micro;
  5167. char *tmp_version;
  5168. system("touch conf.xmltest");
  5169. /* Capture xml2-config output via autoconf/configure variables */
  5170. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5171. tmp_version = (char *)strdup("$min_xml_version");
  5172. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5173. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5174. exit(1);
  5175. }
  5176. free(tmp_version);
  5177. /* Capture the version information from the header files */
  5178. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5179. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5180. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5181. exit(1);
  5182. }
  5183. free(tmp_version);
  5184. /* Compare xml2-config output to the libxml headers */
  5185. if ((xml_major_version != $xml_config_major_version) ||
  5186. (xml_minor_version != $xml_config_minor_version) ||
  5187. (xml_micro_version != $xml_config_micro_version))
  5188. {
  5189. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5190. xml_major_version, xml_minor_version, xml_micro_version);
  5191. printf("*** xml2-config (version %d.%d.%d)\n",
  5192. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5193. return 1;
  5194. }
  5195. /* Compare the headers to the library to make sure we match */
  5196. /* Less than ideal -- doesn't provide us with return value feedback,
  5197. * only exits if there's a serious mismatch between header and library.
  5198. */
  5199. LIBXML_TEST_VERSION;
  5200. /* Test that the library is greater than our minimum version */
  5201. if ((xml_major_version > major) ||
  5202. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5203. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5204. (xml_micro_version >= micro)))
  5205. {
  5206. return 0;
  5207. }
  5208. else
  5209. {
  5210. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5211. xml_major_version, xml_minor_version, xml_micro_version);
  5212. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5213. major, minor, micro);
  5214. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5215. printf("***\n");
  5216. printf("*** If you have already installed a sufficiently new version, this error\n");
  5217. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5218. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5219. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5220. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5221. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5222. printf("*** so that the correct libraries are found at run-time))\n");
  5223. }
  5224. return 1;
  5225. }
  5226. _ACEOF
  5227. rm -f conftest$ac_exeext
  5228. if { (ac_try="$ac_link"
  5229. case "(($ac_try" in
  5230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5231. *) ac_try_echo=$ac_try;;
  5232. esac
  5233. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5234. $as_echo "$ac_try_echo") >&5
  5235. (eval "$ac_link") 2>&5
  5236. ac_status=$?
  5237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5238. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5239. { (case "(($ac_try" in
  5240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5241. *) ac_try_echo=$ac_try;;
  5242. esac
  5243. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5244. $as_echo "$ac_try_echo") >&5
  5245. (eval "$ac_try") 2>&5
  5246. ac_status=$?
  5247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5248. (exit $ac_status); }; }; then
  5249. :
  5250. else
  5251. $as_echo "$as_me: program exited with status $ac_status" >&5
  5252. $as_echo "$as_me: failed program was:" >&5
  5253. sed 's/^/| /' conftest.$ac_ext >&5
  5254. ( exit $ac_status )
  5255. no_xml=yes
  5256. fi
  5257. rm -rf conftest.dSYM
  5258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5259. fi
  5260. CPPFLAGS="$ac_save_CPPFLAGS"
  5261. LIBS="$ac_save_LIBS"
  5262. fi
  5263. fi
  5264. if test "x$no_xml" = x ; then
  5265. { $as_echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5266. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5267. have_libxml2=yes
  5268. else
  5269. { $as_echo "$as_me:$LINENO: result: no" >&5
  5270. $as_echo "no" >&6; }
  5271. if test "$XML2_CONFIG" = "no" ; then
  5272. echo "*** The xml2-config script installed by LIBXML could not be found"
  5273. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5274. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5275. echo "*** full path to xml2-config."
  5276. else
  5277. if test -f conf.xmltest ; then
  5278. :
  5279. else
  5280. echo "*** Could not run libxml test program, checking why..."
  5281. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5282. LIBS="$LIBS $XML_LIBS"
  5283. cat >conftest.$ac_ext <<_ACEOF
  5284. /* confdefs.h. */
  5285. _ACEOF
  5286. cat confdefs.h >>conftest.$ac_ext
  5287. cat >>conftest.$ac_ext <<_ACEOF
  5288. /* end confdefs.h. */
  5289. #include <libxml/xmlversion.h>
  5290. #include <stdio.h>
  5291. int
  5292. main ()
  5293. {
  5294. LIBXML_TEST_VERSION; return 0;
  5295. ;
  5296. return 0;
  5297. }
  5298. _ACEOF
  5299. rm -f conftest.$ac_objext conftest$ac_exeext
  5300. if { (ac_try="$ac_link"
  5301. case "(($ac_try" in
  5302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5303. *) ac_try_echo=$ac_try;;
  5304. esac
  5305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5306. $as_echo "$ac_try_echo") >&5
  5307. (eval "$ac_link") 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } && {
  5314. test -z "$ac_cxx_werror_flag" ||
  5315. test ! -s conftest.err
  5316. } && test -s conftest$ac_exeext && {
  5317. test "$cross_compiling" = yes ||
  5318. $as_test_x conftest$ac_exeext
  5319. }; then
  5320. echo "*** The test program compiled, but did not run. This usually means"
  5321. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5322. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5323. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5324. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5325. echo "*** is required on your system"
  5326. echo "***"
  5327. echo "*** If you have an old version installed, it is best to remove it, although"
  5328. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5329. else
  5330. $as_echo "$as_me: failed program was:" >&5
  5331. sed 's/^/| /' conftest.$ac_ext >&5
  5332. echo "*** The test program failed to compile or link. See the file config.log for the"
  5333. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5334. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5335. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5336. fi
  5337. rm -rf conftest.dSYM
  5338. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5339. conftest$ac_exeext conftest.$ac_ext
  5340. CPPFLAGS="$ac_save_CPPFLAGS"
  5341. LIBS="$ac_save_LIBS"
  5342. fi
  5343. fi
  5344. XML_CPPFLAGS=""
  5345. XML_LIBS=""
  5346. :
  5347. fi
  5348. rm -f conf.xmltest
  5349. if test "x$have_libxml2" = "xyes"; then
  5350. cat >>confdefs.h <<\_ACEOF
  5351. #define HAVE_LIBXML2 1
  5352. _ACEOF
  5353. fi
  5354. fi
  5355. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5356. # Check whether --with-libexpat-prefix was given.
  5357. if test "${with_libexpat_prefix+set}" = set; then
  5358. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5359. else
  5360. libexpat_prefix=""
  5361. fi
  5362. if test "x$libexpat_prefix" = "x"; then
  5363. libexpat_prefix="/usr"
  5364. fi
  5365. libexpat_prefix_lib=$libexpat_prefix/lib
  5366. libexpat_prefix_include=$libexpat_prefix/include
  5367. LIBS_save=$LIBS
  5368. CPPFLAGS_save=$CPPFLAGS
  5369. LIBS="-L$libexpat_prefix_lib $LIBS"
  5370. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5371. { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5372. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5373. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5374. $as_echo_n "(cached) " >&6
  5375. else
  5376. ac_check_lib_save_LIBS=$LIBS
  5377. LIBS="-lexpat $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  5385. Use char because int might match the return type of a GCC
  5386. builtin and then its argument prototype would still apply. */
  5387. #ifdef __cplusplus
  5388. extern "C"
  5389. #endif
  5390. char XML_ParserCreate ();
  5391. int
  5392. main ()
  5393. {
  5394. return XML_ParserCreate ();
  5395. ;
  5396. return 0;
  5397. }
  5398. _ACEOF
  5399. rm -f conftest.$ac_objext conftest$ac_exeext
  5400. if { (ac_try="$ac_link"
  5401. case "(($ac_try" in
  5402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5403. *) ac_try_echo=$ac_try;;
  5404. esac
  5405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5406. $as_echo "$ac_try_echo") >&5
  5407. (eval "$ac_link") 2>conftest.er1
  5408. ac_status=$?
  5409. grep -v '^ *+' conftest.er1 >conftest.err
  5410. rm -f conftest.er1
  5411. cat conftest.err >&5
  5412. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5413. (exit $ac_status); } && {
  5414. test -z "$ac_cxx_werror_flag" ||
  5415. test ! -s conftest.err
  5416. } && test -s conftest$ac_exeext && {
  5417. test "$cross_compiling" = yes ||
  5418. $as_test_x conftest$ac_exeext
  5419. }; then
  5420. ac_cv_lib_expat_XML_ParserCreate=yes
  5421. else
  5422. $as_echo "$as_me: failed program was:" >&5
  5423. sed 's/^/| /' conftest.$ac_ext >&5
  5424. ac_cv_lib_expat_XML_ParserCreate=no
  5425. fi
  5426. rm -rf conftest.dSYM
  5427. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5428. conftest$ac_exeext conftest.$ac_ext
  5429. LIBS=$ac_check_lib_save_LIBS
  5430. fi
  5431. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5432. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5433. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
  5434. have_libexpat=yes
  5435. fi
  5436. if test "x$have_libexpat" = "xyes"; then
  5437. cat >>confdefs.h <<\_ACEOF
  5438. #define HAVE_LIBEXPAT 1
  5439. _ACEOF
  5440. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5441. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5442. fi
  5443. LIBS=$LIBS_save
  5444. CPPFLAGS=$CPPFLAGS_save
  5445. fi
  5446. if test "x$with_sqlite3" = "xyes"; then
  5447. # Check whether --with-sqlite3-prefix was given.
  5448. if test "${with_sqlite3_prefix+set}" = set; then
  5449. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5450. else
  5451. sqlite3_prefix=""
  5452. fi
  5453. if test "x$sqlite3_prefix" = "x"; then
  5454. sqlite3_prefix="/usr"
  5455. fi
  5456. LIBS_save=$LIBS
  5457. CPPFLAGS_save=$CPPFLAGS
  5458. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5459. if test -x $PKG_CONFIG; then
  5460. { $as_echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5461. $as_echo_n "checking checking availability of sqlite3 using pkg-config... " >&6; }
  5462. $PKG_CONFIG --exists sqlite3
  5463. if test "$?" = "0"; then
  5464. # Use pkg-config to detect LIBS and CFLAGS
  5465. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5466. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5467. LIBS="$SQLITE3_LIBS $LIBS"
  5468. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5469. have_sqlite3=yes
  5470. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5471. $as_echo "yes" >&6; }
  5472. else
  5473. { $as_echo "$as_me:$LINENO: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. fi
  5477. if test "x$have_sqlite3" != "xyes"; then
  5478. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5479. sqlite3_prefix_include=$sqlite3_prefix/include
  5480. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5481. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5482. { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5483. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5484. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. ac_check_lib_save_LIBS=$LIBS
  5488. LIBS="-lsqlite3 $LIBS"
  5489. cat >conftest.$ac_ext <<_ACEOF
  5490. /* confdefs.h. */
  5491. _ACEOF
  5492. cat confdefs.h >>conftest.$ac_ext
  5493. cat >>conftest.$ac_ext <<_ACEOF
  5494. /* end confdefs.h. */
  5495. /* Override any GCC internal prototype to avoid an error.
  5496. Use char because int might match the return type of a GCC
  5497. builtin and then its argument prototype would still apply. */
  5498. #ifdef __cplusplus
  5499. extern "C"
  5500. #endif
  5501. char sqlite3_open ();
  5502. int
  5503. main ()
  5504. {
  5505. return sqlite3_open ();
  5506. ;
  5507. return 0;
  5508. }
  5509. _ACEOF
  5510. rm -f conftest.$ac_objext conftest$ac_exeext
  5511. if { (ac_try="$ac_link"
  5512. case "(($ac_try" in
  5513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5514. *) ac_try_echo=$ac_try;;
  5515. esac
  5516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5517. $as_echo "$ac_try_echo") >&5
  5518. (eval "$ac_link") 2>conftest.er1
  5519. ac_status=$?
  5520. grep -v '^ *+' conftest.er1 >conftest.err
  5521. rm -f conftest.er1
  5522. cat conftest.err >&5
  5523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5524. (exit $ac_status); } && {
  5525. test -z "$ac_cxx_werror_flag" ||
  5526. test ! -s conftest.err
  5527. } && test -s conftest$ac_exeext && {
  5528. test "$cross_compiling" = yes ||
  5529. $as_test_x conftest$ac_exeext
  5530. }; then
  5531. ac_cv_lib_sqlite3_sqlite3_open=yes
  5532. else
  5533. $as_echo "$as_me: failed program was:" >&5
  5534. sed 's/^/| /' conftest.$ac_ext >&5
  5535. ac_cv_lib_sqlite3_sqlite3_open=no
  5536. fi
  5537. rm -rf conftest.dSYM
  5538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5539. conftest$ac_exeext conftest.$ac_ext
  5540. LIBS=$ac_check_lib_save_LIBS
  5541. fi
  5542. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5543. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5544. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
  5545. have_sqlite3=yes
  5546. fi
  5547. if test "x$have_sqlite3" = "xyes"; then
  5548. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5549. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5550. fi
  5551. fi
  5552. if test "x$have_sqlite3" = "xyes"; then
  5553. for ac_func in sqlite3_open_v2
  5554. do
  5555. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5556. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5557. $as_echo_n "checking for $ac_func... " >&6; }
  5558. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. cat >conftest.$ac_ext <<_ACEOF
  5562. /* confdefs.h. */
  5563. _ACEOF
  5564. cat confdefs.h >>conftest.$ac_ext
  5565. cat >>conftest.$ac_ext <<_ACEOF
  5566. /* end confdefs.h. */
  5567. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5568. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5569. #define $ac_func innocuous_$ac_func
  5570. /* System header to define __stub macros and hopefully few prototypes,
  5571. which can conflict with char $ac_func (); below.
  5572. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5573. <limits.h> exists even on freestanding compilers. */
  5574. #ifdef __STDC__
  5575. # include <limits.h>
  5576. #else
  5577. # include <assert.h>
  5578. #endif
  5579. #undef $ac_func
  5580. /* Override any GCC internal prototype to avoid an error.
  5581. Use char because int might match the return type of a GCC
  5582. builtin and then its argument prototype would still apply. */
  5583. #ifdef __cplusplus
  5584. extern "C"
  5585. #endif
  5586. char $ac_func ();
  5587. /* The GNU C library defines this for functions which it implements
  5588. to always fail with ENOSYS. Some functions are actually named
  5589. something starting with __ and the normal name is an alias. */
  5590. #if defined __stub_$ac_func || defined __stub___$ac_func
  5591. choke me
  5592. #endif
  5593. int
  5594. main ()
  5595. {
  5596. return $ac_func ();
  5597. ;
  5598. return 0;
  5599. }
  5600. _ACEOF
  5601. rm -f conftest.$ac_objext conftest$ac_exeext
  5602. if { (ac_try="$ac_link"
  5603. case "(($ac_try" in
  5604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5605. *) ac_try_echo=$ac_try;;
  5606. esac
  5607. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5608. $as_echo "$ac_try_echo") >&5
  5609. (eval "$ac_link") 2>conftest.er1
  5610. ac_status=$?
  5611. grep -v '^ *+' conftest.er1 >conftest.err
  5612. rm -f conftest.er1
  5613. cat conftest.err >&5
  5614. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); } && {
  5616. test -z "$ac_cxx_werror_flag" ||
  5617. test ! -s conftest.err
  5618. } && test -s conftest$ac_exeext && {
  5619. test "$cross_compiling" = yes ||
  5620. $as_test_x conftest$ac_exeext
  5621. }; then
  5622. eval "$as_ac_var=yes"
  5623. else
  5624. $as_echo "$as_me: failed program was:" >&5
  5625. sed 's/^/| /' conftest.$ac_ext >&5
  5626. eval "$as_ac_var=no"
  5627. fi
  5628. rm -rf conftest.dSYM
  5629. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5630. conftest$ac_exeext conftest.$ac_ext
  5631. fi
  5632. ac_res=`eval 'as_val=${'$as_ac_var'}
  5633. $as_echo "$as_val"'`
  5634. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5635. $as_echo "$ac_res" >&6; }
  5636. as_val=`eval 'as_val=${'$as_ac_var'}
  5637. $as_echo "$as_val"'`
  5638. if test "x$as_val" = x""yes; then
  5639. cat >>confdefs.h <<_ACEOF
  5640. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5641. _ACEOF
  5642. fi
  5643. done
  5644. cat >>confdefs.h <<\_ACEOF
  5645. #define HAVE_SQLITE3 1
  5646. _ACEOF
  5647. fi
  5648. LIBS=$LIBS_save
  5649. CPPFLAGS=$CPPFLAGS_save
  5650. fi
  5651. if test "x$with_gnutls" = "xyes"; then
  5652. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5653. # First check the presence of libgnutls using pkg-config.
  5654. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5655. if test -n "$ac_tool_prefix"; then
  5656. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5657. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5658. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. case $PKG_CONFIG in
  5664. [\\/]* | ?:[\\/]*)
  5665. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5666. ;;
  5667. *)
  5668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5669. for as_dir in $PATH
  5670. do
  5671. IFS=$as_save_IFS
  5672. test -z "$as_dir" && as_dir=.
  5673. for ac_exec_ext in '' $ac_executable_extensions; do
  5674. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5675. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5676. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5677. break 2
  5678. fi
  5679. done
  5680. done
  5681. IFS=$as_save_IFS
  5682. ;;
  5683. esac
  5684. fi
  5685. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5686. if test -n "$PKG_CONFIG"; then
  5687. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5688. $as_echo "$PKG_CONFIG" >&6; }
  5689. else
  5690. { $as_echo "$as_me:$LINENO: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. fi
  5694. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5695. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5696. # Extract the first word of "pkg-config", so it can be a program name with args.
  5697. set dummy pkg-config; ac_word=$2
  5698. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. case $ac_pt_PKG_CONFIG in
  5704. [\\/]* | ?:[\\/]*)
  5705. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5706. ;;
  5707. *)
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5715. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5716. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. ;;
  5723. esac
  5724. fi
  5725. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5726. if test -n "$ac_pt_PKG_CONFIG"; then
  5727. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5728. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5729. else
  5730. { $as_echo "$as_me:$LINENO: result: no" >&5
  5731. $as_echo "no" >&6; }
  5732. fi
  5733. if test "x$ac_pt_PKG_CONFIG" = x; then
  5734. PKG_CONFIG=""
  5735. else
  5736. case $cross_compiling:$ac_tool_warned in
  5737. yes:)
  5738. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5739. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5740. ac_tool_warned=yes ;;
  5741. esac
  5742. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5743. fi
  5744. else
  5745. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5746. fi
  5747. fi
  5748. if test -n "$PKG_CONFIG"; then
  5749. _pkg_min_version=0.9.0
  5750. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5751. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5752. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5753. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5754. $as_echo "yes" >&6; }
  5755. else
  5756. { $as_echo "$as_me:$LINENO: result: no" >&5
  5757. $as_echo "no" >&6; }
  5758. PKG_CONFIG=""
  5759. fi
  5760. fi
  5761. pkg_failed=no
  5762. { $as_echo "$as_me:$LINENO: checking for LIBGNUTLS" >&5
  5763. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5764. if test -n "$PKG_CONFIG"; then
  5765. if test -n "$LIBGNUTLS_CFLAGS"; then
  5766. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5767. else
  5768. if test -n "$PKG_CONFIG" && \
  5769. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5770. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5771. ac_status=$?
  5772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5773. (exit $ac_status); }; then
  5774. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5775. else
  5776. pkg_failed=yes
  5777. fi
  5778. fi
  5779. else
  5780. pkg_failed=untried
  5781. fi
  5782. if test -n "$PKG_CONFIG"; then
  5783. if test -n "$LIBGNUTLS_LIBS"; then
  5784. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5785. else
  5786. if test -n "$PKG_CONFIG" && \
  5787. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5788. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5789. ac_status=$?
  5790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5791. (exit $ac_status); }; then
  5792. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5793. else
  5794. pkg_failed=yes
  5795. fi
  5796. fi
  5797. else
  5798. pkg_failed=untried
  5799. fi
  5800. if test $pkg_failed = yes; then
  5801. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5802. _pkg_short_errors_supported=yes
  5803. else
  5804. _pkg_short_errors_supported=no
  5805. fi
  5806. if test $_pkg_short_errors_supported = yes; then
  5807. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5808. else
  5809. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5810. fi
  5811. # Put the nasty error message in config.log where it belongs
  5812. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5813. { $as_echo "$as_me:$LINENO: result: no" >&5
  5814. $as_echo "no" >&6; }
  5815. have_libgnutls=no
  5816. elif test $pkg_failed = untried; then
  5817. have_libgnutls=no
  5818. else
  5819. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5820. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5821. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5822. $as_echo "yes" >&6; }
  5823. have_libgnutls=yes
  5824. fi
  5825. # If no libgnutls found by pkg-config, fall back to old macro
  5826. if test "x$have_libgnutls" = "xno"; then
  5827. { $as_echo "$as_me:$LINENO: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5828. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5829. # Check whether --with-libgnutls-prefix was given.
  5830. if test "${with_libgnutls_prefix+set}" = set; then
  5831. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5832. else
  5833. libgnutls_config_prefix=""
  5834. fi
  5835. if test x$libgnutls_config_prefix != x ; then
  5836. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5837. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5838. fi
  5839. fi
  5840. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5841. set dummy libgnutls-config; ac_word=$2
  5842. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. case $LIBGNUTLS_CONFIG in
  5848. [\\/]* | ?:[\\/]*)
  5849. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5850. ;;
  5851. *)
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5859. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5860. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5867. ;;
  5868. esac
  5869. fi
  5870. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5871. if test -n "$LIBGNUTLS_CONFIG"; then
  5872. { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5873. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5874. else
  5875. { $as_echo "$as_me:$LINENO: result: no" >&5
  5876. $as_echo "no" >&6; }
  5877. fi
  5878. min_libgnutls_version=1.2.9
  5879. { $as_echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5880. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5881. no_libgnutls=""
  5882. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5883. no_libgnutls=yes
  5884. else
  5885. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5886. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5887. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5888. ac_save_CFLAGS="$CFLAGS"
  5889. ac_save_LIBS="$LIBS"
  5890. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5891. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5892. rm -f conf.libgnutlstest
  5893. if test "$cross_compiling" = yes; then
  5894. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5895. else
  5896. cat >conftest.$ac_ext <<_ACEOF
  5897. /* confdefs.h. */
  5898. _ACEOF
  5899. cat confdefs.h >>conftest.$ac_ext
  5900. cat >>conftest.$ac_ext <<_ACEOF
  5901. /* end confdefs.h. */
  5902. #include <stdio.h>
  5903. #include <stdlib.h>
  5904. #include <string.h>
  5905. #include <gnutls/gnutls.h>
  5906. int
  5907. main ()
  5908. {
  5909. system ("touch conf.libgnutlstest");
  5910. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5911. {
  5912. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5913. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5914. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5915. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5916. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5917. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5918. printf("*** required on your system.\n");
  5919. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5920. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5921. printf("*** before re-running configure\n");
  5922. }
  5923. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5924. {
  5925. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5926. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5927. }
  5928. else
  5929. {
  5930. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5931. {
  5932. return 0;
  5933. }
  5934. else
  5935. {
  5936. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5937. gnutls_check_version(NULL) );
  5938. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5939. "$min_libgnutls_version" );
  5940. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5941. printf("*** \n");
  5942. printf("*** If you have already installed a sufficiently new version, this error\n");
  5943. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5944. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5945. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5946. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5947. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5948. printf("*** so that the correct libraries are found at run-time))\n");
  5949. }
  5950. }
  5951. return 1;
  5952. }
  5953. _ACEOF
  5954. rm -f conftest$ac_exeext
  5955. if { (ac_try="$ac_link"
  5956. case "(($ac_try" in
  5957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5958. *) ac_try_echo=$ac_try;;
  5959. esac
  5960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5961. $as_echo "$ac_try_echo") >&5
  5962. (eval "$ac_link") 2>&5
  5963. ac_status=$?
  5964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5965. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5966. { (case "(($ac_try" in
  5967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5968. *) ac_try_echo=$ac_try;;
  5969. esac
  5970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5971. $as_echo "$ac_try_echo") >&5
  5972. (eval "$ac_try") 2>&5
  5973. ac_status=$?
  5974. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5975. (exit $ac_status); }; }; then
  5976. :
  5977. else
  5978. $as_echo "$as_me: program exited with status $ac_status" >&5
  5979. $as_echo "$as_me: failed program was:" >&5
  5980. sed 's/^/| /' conftest.$ac_ext >&5
  5981. ( exit $ac_status )
  5982. no_libgnutls=yes
  5983. fi
  5984. rm -rf conftest.dSYM
  5985. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5986. fi
  5987. CFLAGS="$ac_save_CFLAGS"
  5988. LIBS="$ac_save_LIBS"
  5989. fi
  5990. if test "x$no_libgnutls" = x ; then
  5991. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5992. $as_echo "yes" >&6; }
  5993. have_libgnutls=yes
  5994. else
  5995. if test -f conf.libgnutlstest ; then
  5996. :
  5997. else
  5998. { $as_echo "$as_me:$LINENO: result: no" >&5
  5999. $as_echo "no" >&6; }
  6000. fi
  6001. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  6002. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  6003. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  6004. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  6005. echo "*** full path to libgnutls-config."
  6006. else
  6007. if test -f conf.libgnutlstest ; then
  6008. :
  6009. else
  6010. echo "*** Could not run libgnutls test program, checking why..."
  6011. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  6012. LIBS="$LIBS $LIBGNUTLS_LIBS"
  6013. cat >conftest.$ac_ext <<_ACEOF
  6014. /* confdefs.h. */
  6015. _ACEOF
  6016. cat confdefs.h >>conftest.$ac_ext
  6017. cat >>conftest.$ac_ext <<_ACEOF
  6018. /* end confdefs.h. */
  6019. #include <stdio.h>
  6020. #include <stdlib.h>
  6021. #include <string.h>
  6022. #include <gnutls/gnutls.h>
  6023. int
  6024. main ()
  6025. {
  6026. return !!gnutls_check_version(NULL);
  6027. ;
  6028. return 0;
  6029. }
  6030. _ACEOF
  6031. rm -f conftest.$ac_objext conftest$ac_exeext
  6032. if { (ac_try="$ac_link"
  6033. case "(($ac_try" in
  6034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6035. *) ac_try_echo=$ac_try;;
  6036. esac
  6037. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6038. $as_echo "$ac_try_echo") >&5
  6039. (eval "$ac_link") 2>conftest.er1
  6040. ac_status=$?
  6041. grep -v '^ *+' conftest.er1 >conftest.err
  6042. rm -f conftest.er1
  6043. cat conftest.err >&5
  6044. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6045. (exit $ac_status); } && {
  6046. test -z "$ac_cxx_werror_flag" ||
  6047. test ! -s conftest.err
  6048. } && test -s conftest$ac_exeext && {
  6049. test "$cross_compiling" = yes ||
  6050. $as_test_x conftest$ac_exeext
  6051. }; then
  6052. echo "*** The test program compiled, but did not run. This usually means"
  6053. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  6054. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  6055. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  6056. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  6057. echo "*** is required on your system"
  6058. echo "***"
  6059. echo "*** If you have an old version installed, it is best to remove it, although"
  6060. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  6061. echo "***"
  6062. else
  6063. $as_echo "$as_me: failed program was:" >&5
  6064. sed 's/^/| /' conftest.$ac_ext >&5
  6065. echo "*** The test program failed to compile or link. See the file config.log for the"
  6066. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  6067. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  6068. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  6069. fi
  6070. rm -rf conftest.dSYM
  6071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6072. conftest$ac_exeext conftest.$ac_ext
  6073. CFLAGS="$ac_save_CFLAGS"
  6074. LIBS="$ac_save_LIBS"
  6075. fi
  6076. fi
  6077. LIBGNUTLS_CFLAGS=""
  6078. LIBGNUTLS_LIBS=""
  6079. :
  6080. fi
  6081. rm -f conf.libgnutlstest
  6082. fi
  6083. if test "x$have_libgnutls" = "xyes"; then
  6084. cat >>confdefs.h <<\_ACEOF
  6085. #define HAVE_LIBGNUTLS 1
  6086. _ACEOF
  6087. fi
  6088. fi
  6089. if test "x$have_libgnutls" = "xyes"; then
  6090. # Check whether --with-libgcrypt-prefix was given.
  6091. if test "${with_libgcrypt_prefix+set}" = set; then
  6092. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  6093. else
  6094. libgcrypt_config_prefix=""
  6095. fi
  6096. if test x$libgcrypt_config_prefix != x ; then
  6097. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  6098. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  6099. fi
  6100. fi
  6101. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  6102. set dummy libgcrypt-config; ac_word=$2
  6103. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6104. $as_echo_n "checking for $ac_word... " >&6; }
  6105. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. case $LIBGCRYPT_CONFIG in
  6109. [\\/]* | ?:[\\/]*)
  6110. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6111. ;;
  6112. *)
  6113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6114. for as_dir in $PATH
  6115. do
  6116. IFS=$as_save_IFS
  6117. test -z "$as_dir" && as_dir=.
  6118. for ac_exec_ext in '' $ac_executable_extensions; do
  6119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6120. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6121. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6122. break 2
  6123. fi
  6124. done
  6125. done
  6126. IFS=$as_save_IFS
  6127. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6128. ;;
  6129. esac
  6130. fi
  6131. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6132. if test -n "$LIBGCRYPT_CONFIG"; then
  6133. { $as_echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  6134. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6135. else
  6136. { $as_echo "$as_me:$LINENO: result: no" >&5
  6137. $as_echo "no" >&6; }
  6138. fi
  6139. tmp=1.2.2
  6140. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6141. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6142. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6143. else
  6144. req_libgcrypt_api=0
  6145. min_libgcrypt_version="$tmp"
  6146. fi
  6147. { $as_echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6148. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6149. ok=no
  6150. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6151. req_major=`echo $min_libgcrypt_version | \
  6152. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6153. req_minor=`echo $min_libgcrypt_version | \
  6154. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6155. req_micro=`echo $min_libgcrypt_version | \
  6156. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6157. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6158. major=`echo $libgcrypt_config_version | \
  6159. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6160. minor=`echo $libgcrypt_config_version | \
  6161. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6162. micro=`echo $libgcrypt_config_version | \
  6163. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6164. if test "$major" -gt "$req_major"; then
  6165. ok=yes
  6166. else
  6167. if test "$major" -eq "$req_major"; then
  6168. if test "$minor" -gt "$req_minor"; then
  6169. ok=yes
  6170. else
  6171. if test "$minor" -eq "$req_minor"; then
  6172. if test "$micro" -ge "$req_micro"; then
  6173. ok=yes
  6174. fi
  6175. fi
  6176. fi
  6177. fi
  6178. fi
  6179. fi
  6180. if test $ok = yes; then
  6181. { $as_echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  6182. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6183. else
  6184. { $as_echo "$as_me:$LINENO: result: no" >&5
  6185. $as_echo "no" >&6; }
  6186. fi
  6187. if test $ok = yes; then
  6188. # If we have a recent libgcrypt, we should also check that the
  6189. # API is compatible
  6190. if test "$req_libgcrypt_api" -gt 0 ; then
  6191. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6192. if test "$tmp" -gt 0 ; then
  6193. { $as_echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  6194. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6195. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6196. { $as_echo "$as_me:$LINENO: result: okay" >&5
  6197. $as_echo "okay" >&6; }
  6198. else
  6199. ok=no
  6200. { $as_echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6201. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6202. fi
  6203. fi
  6204. fi
  6205. fi
  6206. if test $ok = yes; then
  6207. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6208. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6209. have_libgcrypt=yes
  6210. else
  6211. LIBGCRYPT_CFLAGS=""
  6212. LIBGCRYPT_LIBS=""
  6213. :
  6214. fi
  6215. if test "x$have_libgcrypt" = "xyes"; then
  6216. cat >>confdefs.h <<\_ACEOF
  6217. #define HAVE_LIBGCRYPT 1
  6218. _ACEOF
  6219. fi
  6220. fi
  6221. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6222. # Check whether --with-openssl-prefix was given.
  6223. if test "${with_openssl_prefix+set}" = set; then
  6224. withval=$with_openssl_prefix; openssl_prefix=$withval
  6225. else
  6226. openssl_prefix=""
  6227. fi
  6228. if test "x$openssl_prefix" = "x"; then
  6229. openssl_prefix="/usr/local"
  6230. fi
  6231. LIBS_save=$LIBS
  6232. CPPFLAGS_save=$CPPFLAGS
  6233. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6234. if test -x $PKG_CONFIG; then
  6235. { $as_echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  6236. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6237. $PKG_CONFIG --exists openssl
  6238. if test "$?" = "0"; then
  6239. # Use pkg-config to detect LIBS and CFLAGS
  6240. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6241. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6242. LIBS="$OPENSSL_LIBS $LIBS"
  6243. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6244. have_openssl=yes
  6245. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6246. $as_echo "yes" >&6; }
  6247. else
  6248. { $as_echo "$as_me:$LINENO: result: no" >&5
  6249. $as_echo "no" >&6; }
  6250. fi
  6251. fi
  6252. if test "x$have_openssl" != "xyes"; then
  6253. openssl_prefix_lib=$openssl_prefix/lib
  6254. openssl_prefix_include=$openssl_prefix/include
  6255. LIBS="-L$openssl_prefix_lib $LIBS"
  6256. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6257. { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  6258. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6259. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. ac_check_lib_save_LIBS=$LIBS
  6263. LIBS="-lssl $LIBS"
  6264. cat >conftest.$ac_ext <<_ACEOF
  6265. /* confdefs.h. */
  6266. _ACEOF
  6267. cat confdefs.h >>conftest.$ac_ext
  6268. cat >>conftest.$ac_ext <<_ACEOF
  6269. /* end confdefs.h. */
  6270. /* Override any GCC internal prototype to avoid an error.
  6271. Use char because int might match the return type of a GCC
  6272. builtin and then its argument prototype would still apply. */
  6273. #ifdef __cplusplus
  6274. extern "C"
  6275. #endif
  6276. char SSL_library_init ();
  6277. int
  6278. main ()
  6279. {
  6280. return SSL_library_init ();
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. rm -f conftest.$ac_objext conftest$ac_exeext
  6286. if { (ac_try="$ac_link"
  6287. case "(($ac_try" in
  6288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6289. *) ac_try_echo=$ac_try;;
  6290. esac
  6291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6292. $as_echo "$ac_try_echo") >&5
  6293. (eval "$ac_link") 2>conftest.er1
  6294. ac_status=$?
  6295. grep -v '^ *+' conftest.er1 >conftest.err
  6296. rm -f conftest.er1
  6297. cat conftest.err >&5
  6298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6299. (exit $ac_status); } && {
  6300. test -z "$ac_cxx_werror_flag" ||
  6301. test ! -s conftest.err
  6302. } && test -s conftest$ac_exeext && {
  6303. test "$cross_compiling" = yes ||
  6304. $as_test_x conftest$ac_exeext
  6305. }; then
  6306. ac_cv_lib_ssl_SSL_library_init=yes
  6307. else
  6308. $as_echo "$as_me: failed program was:" >&5
  6309. sed 's/^/| /' conftest.$ac_ext >&5
  6310. ac_cv_lib_ssl_SSL_library_init=no
  6311. fi
  6312. rm -rf conftest.dSYM
  6313. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6314. conftest$ac_exeext conftest.$ac_ext
  6315. LIBS=$ac_check_lib_save_LIBS
  6316. fi
  6317. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6318. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6319. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
  6320. have_openssl=yes LIBS="-lssl $LIBS"
  6321. fi
  6322. if test "x$have_openssl" = "xyes"; then
  6323. have_openssl=no
  6324. { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  6325. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6326. if test "${ac_cv_lib_crypto_main+set}" = set; then
  6327. $as_echo_n "(cached) " >&6
  6328. else
  6329. ac_check_lib_save_LIBS=$LIBS
  6330. LIBS="-lcrypto $LIBS"
  6331. cat >conftest.$ac_ext <<_ACEOF
  6332. /* confdefs.h. */
  6333. _ACEOF
  6334. cat confdefs.h >>conftest.$ac_ext
  6335. cat >>conftest.$ac_ext <<_ACEOF
  6336. /* end confdefs.h. */
  6337. int
  6338. main ()
  6339. {
  6340. return main ();
  6341. ;
  6342. return 0;
  6343. }
  6344. _ACEOF
  6345. rm -f conftest.$ac_objext conftest$ac_exeext
  6346. if { (ac_try="$ac_link"
  6347. case "(($ac_try" in
  6348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6349. *) ac_try_echo=$ac_try;;
  6350. esac
  6351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6352. $as_echo "$ac_try_echo") >&5
  6353. (eval "$ac_link") 2>conftest.er1
  6354. ac_status=$?
  6355. grep -v '^ *+' conftest.er1 >conftest.err
  6356. rm -f conftest.er1
  6357. cat conftest.err >&5
  6358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6359. (exit $ac_status); } && {
  6360. test -z "$ac_cxx_werror_flag" ||
  6361. test ! -s conftest.err
  6362. } && test -s conftest$ac_exeext && {
  6363. test "$cross_compiling" = yes ||
  6364. $as_test_x conftest$ac_exeext
  6365. }; then
  6366. ac_cv_lib_crypto_main=yes
  6367. else
  6368. $as_echo "$as_me: failed program was:" >&5
  6369. sed 's/^/| /' conftest.$ac_ext >&5
  6370. ac_cv_lib_crypto_main=no
  6371. fi
  6372. rm -rf conftest.dSYM
  6373. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6374. conftest$ac_exeext conftest.$ac_ext
  6375. LIBS=$ac_check_lib_save_LIBS
  6376. fi
  6377. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6378. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6379. if test "x$ac_cv_lib_crypto_main" = x""yes; then
  6380. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6381. fi
  6382. if test "x$have_openssl" = "xyes"; then
  6383. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6384. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6385. fi
  6386. fi
  6387. fi
  6388. if test "x$have_openssl" = "xyes"; then
  6389. cat >>confdefs.h <<\_ACEOF
  6390. #define HAVE_LIBSSL 1
  6391. _ACEOF
  6392. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6393. for ac_func in EVP_DigestInit_ex
  6394. do
  6395. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6396. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6397. $as_echo_n "checking for $ac_func... " >&6; }
  6398. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. cat >conftest.$ac_ext <<_ACEOF
  6402. /* confdefs.h. */
  6403. _ACEOF
  6404. cat confdefs.h >>conftest.$ac_ext
  6405. cat >>conftest.$ac_ext <<_ACEOF
  6406. /* end confdefs.h. */
  6407. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6408. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6409. #define $ac_func innocuous_$ac_func
  6410. /* System header to define __stub macros and hopefully few prototypes,
  6411. which can conflict with char $ac_func (); below.
  6412. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6413. <limits.h> exists even on freestanding compilers. */
  6414. #ifdef __STDC__
  6415. # include <limits.h>
  6416. #else
  6417. # include <assert.h>
  6418. #endif
  6419. #undef $ac_func
  6420. /* Override any GCC internal prototype to avoid an error.
  6421. Use char because int might match the return type of a GCC
  6422. builtin and then its argument prototype would still apply. */
  6423. #ifdef __cplusplus
  6424. extern "C"
  6425. #endif
  6426. char $ac_func ();
  6427. /* The GNU C library defines this for functions which it implements
  6428. to always fail with ENOSYS. Some functions are actually named
  6429. something starting with __ and the normal name is an alias. */
  6430. #if defined __stub_$ac_func || defined __stub___$ac_func
  6431. choke me
  6432. #endif
  6433. int
  6434. main ()
  6435. {
  6436. return $ac_func ();
  6437. ;
  6438. return 0;
  6439. }
  6440. _ACEOF
  6441. rm -f conftest.$ac_objext conftest$ac_exeext
  6442. if { (ac_try="$ac_link"
  6443. case "(($ac_try" in
  6444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6445. *) ac_try_echo=$ac_try;;
  6446. esac
  6447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6448. $as_echo "$ac_try_echo") >&5
  6449. (eval "$ac_link") 2>conftest.er1
  6450. ac_status=$?
  6451. grep -v '^ *+' conftest.er1 >conftest.err
  6452. rm -f conftest.er1
  6453. cat conftest.err >&5
  6454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6455. (exit $ac_status); } && {
  6456. test -z "$ac_cxx_werror_flag" ||
  6457. test ! -s conftest.err
  6458. } && test -s conftest$ac_exeext && {
  6459. test "$cross_compiling" = yes ||
  6460. $as_test_x conftest$ac_exeext
  6461. }; then
  6462. eval "$as_ac_var=yes"
  6463. else
  6464. $as_echo "$as_me: failed program was:" >&5
  6465. sed 's/^/| /' conftest.$ac_ext >&5
  6466. eval "$as_ac_var=no"
  6467. fi
  6468. rm -rf conftest.dSYM
  6469. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6470. conftest$ac_exeext conftest.$ac_ext
  6471. fi
  6472. ac_res=`eval 'as_val=${'$as_ac_var'}
  6473. $as_echo "$as_val"'`
  6474. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6475. $as_echo "$ac_res" >&6; }
  6476. as_val=`eval 'as_val=${'$as_ac_var'}
  6477. $as_echo "$as_val"'`
  6478. if test "x$as_val" = x""yes; then
  6479. cat >>confdefs.h <<_ACEOF
  6480. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6481. _ACEOF
  6482. have_digestinit_ex=yes
  6483. fi
  6484. done
  6485. if test "x$have_digestinit_ex" = "x"; then
  6486. cat >>confdefs.h <<\_ACEOF
  6487. #define HAVE_OLD_LIBSSL 1
  6488. _ACEOF
  6489. fi
  6490. # search for sha256 support
  6491. for ac_func in EVP_sha256
  6492. do
  6493. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6494. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6495. $as_echo_n "checking for $ac_func... " >&6; }
  6496. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. cat >conftest.$ac_ext <<_ACEOF
  6500. /* confdefs.h. */
  6501. _ACEOF
  6502. cat confdefs.h >>conftest.$ac_ext
  6503. cat >>conftest.$ac_ext <<_ACEOF
  6504. /* end confdefs.h. */
  6505. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6506. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6507. #define $ac_func innocuous_$ac_func
  6508. /* System header to define __stub macros and hopefully few prototypes,
  6509. which can conflict with char $ac_func (); below.
  6510. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6511. <limits.h> exists even on freestanding compilers. */
  6512. #ifdef __STDC__
  6513. # include <limits.h>
  6514. #else
  6515. # include <assert.h>
  6516. #endif
  6517. #undef $ac_func
  6518. /* Override any GCC internal prototype to avoid an error.
  6519. Use char because int might match the return type of a GCC
  6520. builtin and then its argument prototype would still apply. */
  6521. #ifdef __cplusplus
  6522. extern "C"
  6523. #endif
  6524. char $ac_func ();
  6525. /* The GNU C library defines this for functions which it implements
  6526. to always fail with ENOSYS. Some functions are actually named
  6527. something starting with __ and the normal name is an alias. */
  6528. #if defined __stub_$ac_func || defined __stub___$ac_func
  6529. choke me
  6530. #endif
  6531. int
  6532. main ()
  6533. {
  6534. return $ac_func ();
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. rm -f conftest.$ac_objext conftest$ac_exeext
  6540. if { (ac_try="$ac_link"
  6541. case "(($ac_try" in
  6542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6543. *) ac_try_echo=$ac_try;;
  6544. esac
  6545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6546. $as_echo "$ac_try_echo") >&5
  6547. (eval "$ac_link") 2>conftest.er1
  6548. ac_status=$?
  6549. grep -v '^ *+' conftest.er1 >conftest.err
  6550. rm -f conftest.er1
  6551. cat conftest.err >&5
  6552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); } && {
  6554. test -z "$ac_cxx_werror_flag" ||
  6555. test ! -s conftest.err
  6556. } && test -s conftest$ac_exeext && {
  6557. test "$cross_compiling" = yes ||
  6558. $as_test_x conftest$ac_exeext
  6559. }; then
  6560. eval "$as_ac_var=yes"
  6561. else
  6562. $as_echo "$as_me: failed program was:" >&5
  6563. sed 's/^/| /' conftest.$ac_ext >&5
  6564. eval "$as_ac_var=no"
  6565. fi
  6566. rm -rf conftest.dSYM
  6567. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6568. conftest$ac_exeext conftest.$ac_ext
  6569. fi
  6570. ac_res=`eval 'as_val=${'$as_ac_var'}
  6571. $as_echo "$as_val"'`
  6572. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6573. $as_echo "$ac_res" >&6; }
  6574. as_val=`eval 'as_val=${'$as_ac_var'}
  6575. $as_echo "$as_val"'`
  6576. if test "x$as_val" = x""yes; then
  6577. cat >>confdefs.h <<_ACEOF
  6578. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6579. _ACEOF
  6580. fi
  6581. done
  6582. fi
  6583. LIBS=$LIBS_save
  6584. CPPFLAGS=$CPPFLAGS_save
  6585. fi
  6586. if test "x$with_libcares" = "xyes"; then
  6587. # Check whether --with-libcares-prefix was given.
  6588. if test "${with_libcares_prefix+set}" = set; then
  6589. withval=$with_libcares_prefix; libcares_prefix=$withval
  6590. else
  6591. libcares_prefix=""
  6592. fi
  6593. if test "x$libcares_prefix" = "x"; then
  6594. libcares_prefix="/usr"
  6595. fi
  6596. libcares_prefix_lib=$libcares_prefix/lib
  6597. libcares_prefix_include=$libcares_prefix/include
  6598. LIBS_save=$LIBS
  6599. CPPFLAGS_save=$CPPFLAGS
  6600. LIBS="-L$libcares_prefix_lib $LIBS"
  6601. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6602. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6603. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6604. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6605. $as_echo_n "(cached) " >&6
  6606. else
  6607. ac_check_lib_save_LIBS=$LIBS
  6608. LIBS="-lcares $LIBS"
  6609. cat >conftest.$ac_ext <<_ACEOF
  6610. /* confdefs.h. */
  6611. _ACEOF
  6612. cat confdefs.h >>conftest.$ac_ext
  6613. cat >>conftest.$ac_ext <<_ACEOF
  6614. /* end confdefs.h. */
  6615. /* Override any GCC internal prototype to avoid an error.
  6616. Use char because int might match the return type of a GCC
  6617. builtin and then its argument prototype would still apply. */
  6618. #ifdef __cplusplus
  6619. extern "C"
  6620. #endif
  6621. char ares_init ();
  6622. int
  6623. main ()
  6624. {
  6625. return ares_init ();
  6626. ;
  6627. return 0;
  6628. }
  6629. _ACEOF
  6630. rm -f conftest.$ac_objext conftest$ac_exeext
  6631. if { (ac_try="$ac_link"
  6632. case "(($ac_try" in
  6633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6634. *) ac_try_echo=$ac_try;;
  6635. esac
  6636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6637. $as_echo "$ac_try_echo") >&5
  6638. (eval "$ac_link") 2>conftest.er1
  6639. ac_status=$?
  6640. grep -v '^ *+' conftest.er1 >conftest.err
  6641. rm -f conftest.er1
  6642. cat conftest.err >&5
  6643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6644. (exit $ac_status); } && {
  6645. test -z "$ac_cxx_werror_flag" ||
  6646. test ! -s conftest.err
  6647. } && test -s conftest$ac_exeext && {
  6648. test "$cross_compiling" = yes ||
  6649. $as_test_x conftest$ac_exeext
  6650. }; then
  6651. ac_cv_lib_cares_ares_init=yes
  6652. else
  6653. $as_echo "$as_me: failed program was:" >&5
  6654. sed 's/^/| /' conftest.$ac_ext >&5
  6655. ac_cv_lib_cares_ares_init=no
  6656. fi
  6657. rm -rf conftest.dSYM
  6658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6659. conftest$ac_exeext conftest.$ac_ext
  6660. LIBS=$ac_check_lib_save_LIBS
  6661. fi
  6662. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6663. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6664. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6665. have_libcares=yes
  6666. fi
  6667. if test "x$have_libcares" != "xyes"; then
  6668. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6669. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6670. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. ac_check_lib_save_LIBS=$LIBS
  6674. LIBS="-lcares -lrt $LIBS"
  6675. cat >conftest.$ac_ext <<_ACEOF
  6676. /* confdefs.h. */
  6677. _ACEOF
  6678. cat confdefs.h >>conftest.$ac_ext
  6679. cat >>conftest.$ac_ext <<_ACEOF
  6680. /* end confdefs.h. */
  6681. /* Override any GCC internal prototype to avoid an error.
  6682. Use char because int might match the return type of a GCC
  6683. builtin and then its argument prototype would still apply. */
  6684. #ifdef __cplusplus
  6685. extern "C"
  6686. #endif
  6687. char ares_init ();
  6688. int
  6689. main ()
  6690. {
  6691. return ares_init ();
  6692. ;
  6693. return 0;
  6694. }
  6695. _ACEOF
  6696. rm -f conftest.$ac_objext conftest$ac_exeext
  6697. if { (ac_try="$ac_link"
  6698. case "(($ac_try" in
  6699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6700. *) ac_try_echo=$ac_try;;
  6701. esac
  6702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6703. $as_echo "$ac_try_echo") >&5
  6704. (eval "$ac_link") 2>conftest.er1
  6705. ac_status=$?
  6706. grep -v '^ *+' conftest.er1 >conftest.err
  6707. rm -f conftest.er1
  6708. cat conftest.err >&5
  6709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6710. (exit $ac_status); } && {
  6711. test -z "$ac_cxx_werror_flag" ||
  6712. test ! -s conftest.err
  6713. } && test -s conftest$ac_exeext && {
  6714. test "$cross_compiling" = yes ||
  6715. $as_test_x conftest$ac_exeext
  6716. }; then
  6717. ac_cv_lib_cares_ares_init=yes
  6718. else
  6719. $as_echo "$as_me: failed program was:" >&5
  6720. sed 's/^/| /' conftest.$ac_ext >&5
  6721. ac_cv_lib_cares_ares_init=no
  6722. fi
  6723. rm -rf conftest.dSYM
  6724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6725. conftest$ac_exeext conftest.$ac_ext
  6726. LIBS=$ac_check_lib_save_LIBS
  6727. fi
  6728. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6729. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6730. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6731. have_libcares=yes need_librt=yes
  6732. fi
  6733. fi
  6734. if test "x$have_libcares" = "xyes"; then
  6735. { $as_echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6736. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6737. cat >conftest.$ac_ext <<_ACEOF
  6738. /* confdefs.h. */
  6739. _ACEOF
  6740. cat confdefs.h >>conftest.$ac_ext
  6741. cat >>conftest.$ac_ext <<_ACEOF
  6742. /* end confdefs.h. */
  6743. #include <ares.h>
  6744. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6745. int
  6746. main ()
  6747. {
  6748. ares_channel channel;
  6749. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6750. ;
  6751. return 0;
  6752. }
  6753. _ACEOF
  6754. rm -f conftest.$ac_objext
  6755. if { (ac_try="$ac_compile"
  6756. case "(($ac_try" in
  6757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6758. *) ac_try_echo=$ac_try;;
  6759. esac
  6760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6761. $as_echo "$ac_try_echo") >&5
  6762. (eval "$ac_compile") 2>conftest.er1
  6763. ac_status=$?
  6764. grep -v '^ *+' conftest.er1 >conftest.err
  6765. rm -f conftest.er1
  6766. cat conftest.err >&5
  6767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6768. (exit $ac_status); } && {
  6769. test -z "$ac_cxx_werror_flag" ||
  6770. test ! -s conftest.err
  6771. } && test -s conftest.$ac_objext; then
  6772. have_libcares1_5=yes
  6773. else
  6774. $as_echo "$as_me: failed program was:" >&5
  6775. sed 's/^/| /' conftest.$ac_ext >&5
  6776. have_libcares1_5=no
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6779. { $as_echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6780. $as_echo "$have_libcares1_5" >&6; }
  6781. if test "x$have_libcares1_5" = "xyes"; then
  6782. cat >>confdefs.h <<\_ACEOF
  6783. #define HAVE_LIBCARES1_5 1
  6784. _ACEOF
  6785. fi
  6786. cat >>confdefs.h <<\_ACEOF
  6787. #define HAVE_LIBCARES 1
  6788. _ACEOF
  6789. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6790. if test "x$need_librt" = "xyes"; then
  6791. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6792. fi
  6793. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6794. fi
  6795. LIBS=$LIBS_save
  6796. CPPFLAGS=$CPPFLAGS_save
  6797. fi
  6798. # Check availability of libz
  6799. if test "x$with_libz" = "xyes"; then
  6800. # Check whether --with-libz-prefix was given.
  6801. if test "${with_libz_prefix+set}" = set; then
  6802. withval=$with_libz_prefix; libz_prefix=$withval
  6803. else
  6804. libz_prefix=""
  6805. fi
  6806. if test "x$libz_prefix" = "x"; then
  6807. libz_prefix="/usr"
  6808. fi
  6809. libz_prefix_lib=$libz_prefix/lib
  6810. libz_prefix_include=$libz_prefix/include
  6811. LIBS_save=$LIBS
  6812. CPPFLAGS_save=$CPPFLAGS
  6813. LIBS="-L$libz_prefix_lib $LIBS"
  6814. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6815. { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6816. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6817. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6818. $as_echo_n "(cached) " >&6
  6819. else
  6820. ac_check_lib_save_LIBS=$LIBS
  6821. LIBS="-lz $LIBS"
  6822. cat >conftest.$ac_ext <<_ACEOF
  6823. /* confdefs.h. */
  6824. _ACEOF
  6825. cat confdefs.h >>conftest.$ac_ext
  6826. cat >>conftest.$ac_ext <<_ACEOF
  6827. /* end confdefs.h. */
  6828. /* Override any GCC internal prototype to avoid an error.
  6829. Use char because int might match the return type of a GCC
  6830. builtin and then its argument prototype would still apply. */
  6831. #ifdef __cplusplus
  6832. extern "C"
  6833. #endif
  6834. char zlibVersion ();
  6835. int
  6836. main ()
  6837. {
  6838. return zlibVersion ();
  6839. ;
  6840. return 0;
  6841. }
  6842. _ACEOF
  6843. rm -f conftest.$ac_objext conftest$ac_exeext
  6844. if { (ac_try="$ac_link"
  6845. case "(($ac_try" in
  6846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6847. *) ac_try_echo=$ac_try;;
  6848. esac
  6849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6850. $as_echo "$ac_try_echo") >&5
  6851. (eval "$ac_link") 2>conftest.er1
  6852. ac_status=$?
  6853. grep -v '^ *+' conftest.er1 >conftest.err
  6854. rm -f conftest.er1
  6855. cat conftest.err >&5
  6856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); } && {
  6858. test -z "$ac_cxx_werror_flag" ||
  6859. test ! -s conftest.err
  6860. } && test -s conftest$ac_exeext && {
  6861. test "$cross_compiling" = yes ||
  6862. $as_test_x conftest$ac_exeext
  6863. }; then
  6864. ac_cv_lib_z_zlibVersion=yes
  6865. else
  6866. $as_echo "$as_me: failed program was:" >&5
  6867. sed 's/^/| /' conftest.$ac_ext >&5
  6868. ac_cv_lib_z_zlibVersion=no
  6869. fi
  6870. rm -rf conftest.dSYM
  6871. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6872. conftest$ac_exeext conftest.$ac_ext
  6873. LIBS=$ac_check_lib_save_LIBS
  6874. fi
  6875. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6876. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6877. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
  6878. have_libz=yes
  6879. fi
  6880. if test "x$have_libz" = "xyes"; then
  6881. cat >>confdefs.h <<\_ACEOF
  6882. #define HAVE_LIBZ 1
  6883. _ACEOF
  6884. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6885. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6886. fi
  6887. LIBS=$LIBS_save
  6888. CPPFLAGS=$CPPFLAGS_save
  6889. fi
  6890. # Define variables based on the result of the checks for libraries.
  6891. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6892. cat >>confdefs.h <<\_ACEOF
  6893. #define ENABLE_SSL 1
  6894. _ACEOF
  6895. if true; then
  6896. ENABLE_SSL_TRUE=
  6897. ENABLE_SSL_FALSE='#'
  6898. else
  6899. ENABLE_SSL_TRUE='#'
  6900. ENABLE_SSL_FALSE=
  6901. fi
  6902. else
  6903. if false; then
  6904. ENABLE_SSL_TRUE=
  6905. ENABLE_SSL_FALSE='#'
  6906. else
  6907. ENABLE_SSL_TRUE='#'
  6908. ENABLE_SSL_FALSE=
  6909. fi
  6910. fi
  6911. if test "x$have_libgnutls" = "xyes" ; then
  6912. HAVE_LIBGNUTLS_TRUE=
  6913. HAVE_LIBGNUTLS_FALSE='#'
  6914. else
  6915. HAVE_LIBGNUTLS_TRUE='#'
  6916. HAVE_LIBGNUTLS_FALSE=
  6917. fi
  6918. if test "x$have_openssl" = "xyes" ; then
  6919. HAVE_LIBSSL_TRUE=
  6920. HAVE_LIBSSL_FALSE='#'
  6921. else
  6922. HAVE_LIBSSL_TRUE='#'
  6923. HAVE_LIBSSL_FALSE=
  6924. fi
  6925. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6926. cat >>confdefs.h <<\_ACEOF
  6927. #define ENABLE_MESSAGE_DIGEST 1
  6928. _ACEOF
  6929. if true; then
  6930. ENABLE_MESSAGE_DIGEST_TRUE=
  6931. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6932. else
  6933. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6934. ENABLE_MESSAGE_DIGEST_FALSE=
  6935. fi
  6936. enable_message_digest=yes
  6937. else
  6938. if false; then
  6939. ENABLE_MESSAGE_DIGEST_TRUE=
  6940. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6941. else
  6942. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6943. ENABLE_MESSAGE_DIGEST_FALSE=
  6944. fi
  6945. fi
  6946. if test "x$enable_bittorrent" = "xyes" &&
  6947. test "x$enable_message_digest" = "xyes"; then
  6948. cat >>confdefs.h <<\_ACEOF
  6949. #define ENABLE_BITTORRENT 1
  6950. _ACEOF
  6951. if true; then
  6952. ENABLE_BITTORRENT_TRUE=
  6953. ENABLE_BITTORRENT_FALSE='#'
  6954. else
  6955. ENABLE_BITTORRENT_TRUE='#'
  6956. ENABLE_BITTORRENT_FALSE=
  6957. fi
  6958. else
  6959. enable_bittorrent=no
  6960. if false; then
  6961. ENABLE_BITTORRENT_TRUE=
  6962. ENABLE_BITTORRENT_FALSE='#'
  6963. else
  6964. ENABLE_BITTORRENT_TRUE='#'
  6965. ENABLE_BITTORRENT_FALSE=
  6966. fi
  6967. fi
  6968. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6969. test "x$enable_metalink" = "xyes"; then
  6970. cat >>confdefs.h <<\_ACEOF
  6971. #define ENABLE_METALINK 1
  6972. _ACEOF
  6973. if true; then
  6974. ENABLE_METALINK_TRUE=
  6975. ENABLE_METALINK_FALSE='#'
  6976. else
  6977. ENABLE_METALINK_TRUE='#'
  6978. ENABLE_METALINK_FALSE=
  6979. fi
  6980. else
  6981. enable_metalink=no
  6982. if false; then
  6983. ENABLE_METALINK_TRUE=
  6984. ENABLE_METALINK_FALSE='#'
  6985. else
  6986. ENABLE_METALINK_TRUE='#'
  6987. ENABLE_METALINK_FALSE=
  6988. fi
  6989. fi
  6990. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6991. ENABLE_METALINK_LIBXML2_TRUE=
  6992. ENABLE_METALINK_LIBXML2_FALSE='#'
  6993. else
  6994. ENABLE_METALINK_LIBXML2_TRUE='#'
  6995. ENABLE_METALINK_LIBXML2_FALSE=
  6996. fi
  6997. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6998. ENABLE_METALINK_LIBEXPAT_TRUE=
  6999. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  7000. else
  7001. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  7002. ENABLE_METALINK_LIBEXPAT_FALSE=
  7003. fi
  7004. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  7005. enable_xml_rpc=yes
  7006. fi
  7007. if test "x$enable_xml_rpc" = "xyes"; then
  7008. cat >>confdefs.h <<\_ACEOF
  7009. #define ENABLE_XML_RPC 1
  7010. _ACEOF
  7011. fi
  7012. if test "x$enable_xml_rpc" = "xyes"; then
  7013. ENABLE_XML_RPC_TRUE=
  7014. ENABLE_XML_RPC_FALSE='#'
  7015. else
  7016. ENABLE_XML_RPC_TRUE='#'
  7017. ENABLE_XML_RPC_FALSE=
  7018. fi
  7019. if test "x$have_libxml2" = "xyes"; then
  7020. HAVE_LIBXML2_TRUE=
  7021. HAVE_LIBXML2_FALSE='#'
  7022. else
  7023. HAVE_LIBXML2_TRUE='#'
  7024. HAVE_LIBXML2_FALSE=
  7025. fi
  7026. if test "x$have_libexpat" = "xyes"; then
  7027. HAVE_LIBEXPAT_TRUE=
  7028. HAVE_LIBEXPAT_FALSE='#'
  7029. else
  7030. HAVE_LIBEXPAT_TRUE='#'
  7031. HAVE_LIBEXPAT_FALSE=
  7032. fi
  7033. if test "x$have_libcares" = "xyes"; then
  7034. cat >>confdefs.h <<\_ACEOF
  7035. #define ENABLE_ASYNC_DNS 1
  7036. _ACEOF
  7037. if true; then
  7038. ENABLE_ASYNC_DNS_TRUE=
  7039. ENABLE_ASYNC_DNS_FALSE='#'
  7040. else
  7041. ENABLE_ASYNC_DNS_TRUE='#'
  7042. ENABLE_ASYNC_DNS_FALSE=
  7043. fi
  7044. else
  7045. if false; then
  7046. ENABLE_ASYNC_DNS_TRUE=
  7047. ENABLE_ASYNC_DNS_FALSE='#'
  7048. else
  7049. ENABLE_ASYNC_DNS_TRUE='#'
  7050. ENABLE_ASYNC_DNS_FALSE=
  7051. fi
  7052. fi
  7053. # Set conditional for libz
  7054. if test "x$have_libz" = "xyes"; then
  7055. HAVE_LIBZ_TRUE=
  7056. HAVE_LIBZ_FALSE='#'
  7057. else
  7058. HAVE_LIBZ_TRUE='#'
  7059. HAVE_LIBZ_FALSE=
  7060. fi
  7061. # Set conditional for sqlite3
  7062. if test "x$have_sqlite3" = "xyes"; then
  7063. HAVE_SQLITE3_TRUE=
  7064. HAVE_SQLITE3_FALSE='#'
  7065. else
  7066. HAVE_SQLITE3_TRUE='#'
  7067. HAVE_SQLITE3_FALSE=
  7068. fi
  7069. # Checks for header files.
  7070. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  7071. # for constant arguments. Useless!
  7072. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  7073. $as_echo_n "checking for working alloca.h... " >&6; }
  7074. if test "${ac_cv_working_alloca_h+set}" = set; then
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. cat >conftest.$ac_ext <<_ACEOF
  7078. /* confdefs.h. */
  7079. _ACEOF
  7080. cat confdefs.h >>conftest.$ac_ext
  7081. cat >>conftest.$ac_ext <<_ACEOF
  7082. /* end confdefs.h. */
  7083. #include <alloca.h>
  7084. int
  7085. main ()
  7086. {
  7087. char *p = (char *) alloca (2 * sizeof (int));
  7088. if (p) return 0;
  7089. ;
  7090. return 0;
  7091. }
  7092. _ACEOF
  7093. rm -f conftest.$ac_objext conftest$ac_exeext
  7094. if { (ac_try="$ac_link"
  7095. case "(($ac_try" in
  7096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7097. *) ac_try_echo=$ac_try;;
  7098. esac
  7099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7100. $as_echo "$ac_try_echo") >&5
  7101. (eval "$ac_link") 2>conftest.er1
  7102. ac_status=$?
  7103. grep -v '^ *+' conftest.er1 >conftest.err
  7104. rm -f conftest.er1
  7105. cat conftest.err >&5
  7106. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7107. (exit $ac_status); } && {
  7108. test -z "$ac_cxx_werror_flag" ||
  7109. test ! -s conftest.err
  7110. } && test -s conftest$ac_exeext && {
  7111. test "$cross_compiling" = yes ||
  7112. $as_test_x conftest$ac_exeext
  7113. }; then
  7114. ac_cv_working_alloca_h=yes
  7115. else
  7116. $as_echo "$as_me: failed program was:" >&5
  7117. sed 's/^/| /' conftest.$ac_ext >&5
  7118. ac_cv_working_alloca_h=no
  7119. fi
  7120. rm -rf conftest.dSYM
  7121. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7122. conftest$ac_exeext conftest.$ac_ext
  7123. fi
  7124. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  7125. $as_echo "$ac_cv_working_alloca_h" >&6; }
  7126. if test $ac_cv_working_alloca_h = yes; then
  7127. cat >>confdefs.h <<\_ACEOF
  7128. #define HAVE_ALLOCA_H 1
  7129. _ACEOF
  7130. fi
  7131. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  7132. $as_echo_n "checking for alloca... " >&6; }
  7133. if test "${ac_cv_func_alloca_works+set}" = set; then
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. cat >conftest.$ac_ext <<_ACEOF
  7137. /* confdefs.h. */
  7138. _ACEOF
  7139. cat confdefs.h >>conftest.$ac_ext
  7140. cat >>conftest.$ac_ext <<_ACEOF
  7141. /* end confdefs.h. */
  7142. #ifdef __GNUC__
  7143. # define alloca __builtin_alloca
  7144. #else
  7145. # ifdef _MSC_VER
  7146. # include <malloc.h>
  7147. # define alloca _alloca
  7148. # else
  7149. # ifdef HAVE_ALLOCA_H
  7150. # include <alloca.h>
  7151. # else
  7152. # ifdef _AIX
  7153. #pragma alloca
  7154. # else
  7155. # ifndef alloca /* predefined by HP cc +Olibcalls */
  7156. char *alloca ();
  7157. # endif
  7158. # endif
  7159. # endif
  7160. # endif
  7161. #endif
  7162. int
  7163. main ()
  7164. {
  7165. char *p = (char *) alloca (1);
  7166. if (p) return 0;
  7167. ;
  7168. return 0;
  7169. }
  7170. _ACEOF
  7171. rm -f conftest.$ac_objext conftest$ac_exeext
  7172. if { (ac_try="$ac_link"
  7173. case "(($ac_try" in
  7174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7175. *) ac_try_echo=$ac_try;;
  7176. esac
  7177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7178. $as_echo "$ac_try_echo") >&5
  7179. (eval "$ac_link") 2>conftest.er1
  7180. ac_status=$?
  7181. grep -v '^ *+' conftest.er1 >conftest.err
  7182. rm -f conftest.er1
  7183. cat conftest.err >&5
  7184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7185. (exit $ac_status); } && {
  7186. test -z "$ac_cxx_werror_flag" ||
  7187. test ! -s conftest.err
  7188. } && test -s conftest$ac_exeext && {
  7189. test "$cross_compiling" = yes ||
  7190. $as_test_x conftest$ac_exeext
  7191. }; then
  7192. ac_cv_func_alloca_works=yes
  7193. else
  7194. $as_echo "$as_me: failed program was:" >&5
  7195. sed 's/^/| /' conftest.$ac_ext >&5
  7196. ac_cv_func_alloca_works=no
  7197. fi
  7198. rm -rf conftest.dSYM
  7199. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7200. conftest$ac_exeext conftest.$ac_ext
  7201. fi
  7202. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7203. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7204. if test $ac_cv_func_alloca_works = yes; then
  7205. cat >>confdefs.h <<\_ACEOF
  7206. #define HAVE_ALLOCA 1
  7207. _ACEOF
  7208. else
  7209. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7210. # that cause trouble. Some versions do not even contain alloca or
  7211. # contain a buggy version. If you still want to use their alloca,
  7212. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7213. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7214. cat >>confdefs.h <<\_ACEOF
  7215. #define C_ALLOCA 1
  7216. _ACEOF
  7217. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7218. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7219. if test "${ac_cv_os_cray+set}" = set; then
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. cat >conftest.$ac_ext <<_ACEOF
  7223. /* confdefs.h. */
  7224. _ACEOF
  7225. cat confdefs.h >>conftest.$ac_ext
  7226. cat >>conftest.$ac_ext <<_ACEOF
  7227. /* end confdefs.h. */
  7228. #if defined CRAY && ! defined CRAY2
  7229. webecray
  7230. #else
  7231. wenotbecray
  7232. #endif
  7233. _ACEOF
  7234. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7235. $EGREP "webecray" >/dev/null 2>&1; then
  7236. ac_cv_os_cray=yes
  7237. else
  7238. ac_cv_os_cray=no
  7239. fi
  7240. rm -f conftest*
  7241. fi
  7242. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7243. $as_echo "$ac_cv_os_cray" >&6; }
  7244. if test $ac_cv_os_cray = yes; then
  7245. for ac_func in _getb67 GETB67 getb67; do
  7246. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7247. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7248. $as_echo_n "checking for $ac_func... " >&6; }
  7249. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. cat >conftest.$ac_ext <<_ACEOF
  7253. /* confdefs.h. */
  7254. _ACEOF
  7255. cat confdefs.h >>conftest.$ac_ext
  7256. cat >>conftest.$ac_ext <<_ACEOF
  7257. /* end confdefs.h. */
  7258. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7259. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7260. #define $ac_func innocuous_$ac_func
  7261. /* System header to define __stub macros and hopefully few prototypes,
  7262. which can conflict with char $ac_func (); below.
  7263. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7264. <limits.h> exists even on freestanding compilers. */
  7265. #ifdef __STDC__
  7266. # include <limits.h>
  7267. #else
  7268. # include <assert.h>
  7269. #endif
  7270. #undef $ac_func
  7271. /* Override any GCC internal prototype to avoid an error.
  7272. Use char because int might match the return type of a GCC
  7273. builtin and then its argument prototype would still apply. */
  7274. #ifdef __cplusplus
  7275. extern "C"
  7276. #endif
  7277. char $ac_func ();
  7278. /* The GNU C library defines this for functions which it implements
  7279. to always fail with ENOSYS. Some functions are actually named
  7280. something starting with __ and the normal name is an alias. */
  7281. #if defined __stub_$ac_func || defined __stub___$ac_func
  7282. choke me
  7283. #endif
  7284. int
  7285. main ()
  7286. {
  7287. return $ac_func ();
  7288. ;
  7289. return 0;
  7290. }
  7291. _ACEOF
  7292. rm -f conftest.$ac_objext conftest$ac_exeext
  7293. if { (ac_try="$ac_link"
  7294. case "(($ac_try" in
  7295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7296. *) ac_try_echo=$ac_try;;
  7297. esac
  7298. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7299. $as_echo "$ac_try_echo") >&5
  7300. (eval "$ac_link") 2>conftest.er1
  7301. ac_status=$?
  7302. grep -v '^ *+' conftest.er1 >conftest.err
  7303. rm -f conftest.er1
  7304. cat conftest.err >&5
  7305. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. (exit $ac_status); } && {
  7307. test -z "$ac_cxx_werror_flag" ||
  7308. test ! -s conftest.err
  7309. } && test -s conftest$ac_exeext && {
  7310. test "$cross_compiling" = yes ||
  7311. $as_test_x conftest$ac_exeext
  7312. }; then
  7313. eval "$as_ac_var=yes"
  7314. else
  7315. $as_echo "$as_me: failed program was:" >&5
  7316. sed 's/^/| /' conftest.$ac_ext >&5
  7317. eval "$as_ac_var=no"
  7318. fi
  7319. rm -rf conftest.dSYM
  7320. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7321. conftest$ac_exeext conftest.$ac_ext
  7322. fi
  7323. ac_res=`eval 'as_val=${'$as_ac_var'}
  7324. $as_echo "$as_val"'`
  7325. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7326. $as_echo "$ac_res" >&6; }
  7327. as_val=`eval 'as_val=${'$as_ac_var'}
  7328. $as_echo "$as_val"'`
  7329. if test "x$as_val" = x""yes; then
  7330. cat >>confdefs.h <<_ACEOF
  7331. #define CRAY_STACKSEG_END $ac_func
  7332. _ACEOF
  7333. break
  7334. fi
  7335. done
  7336. fi
  7337. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7338. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7339. if test "${ac_cv_c_stack_direction+set}" = set; then
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. if test "$cross_compiling" = yes; then
  7343. ac_cv_c_stack_direction=0
  7344. else
  7345. cat >conftest.$ac_ext <<_ACEOF
  7346. /* confdefs.h. */
  7347. _ACEOF
  7348. cat confdefs.h >>conftest.$ac_ext
  7349. cat >>conftest.$ac_ext <<_ACEOF
  7350. /* end confdefs.h. */
  7351. $ac_includes_default
  7352. int
  7353. find_stack_direction ()
  7354. {
  7355. static char *addr = 0;
  7356. auto char dummy;
  7357. if (addr == 0)
  7358. {
  7359. addr = &dummy;
  7360. return find_stack_direction ();
  7361. }
  7362. else
  7363. return (&dummy > addr) ? 1 : -1;
  7364. }
  7365. int
  7366. main ()
  7367. {
  7368. return find_stack_direction () < 0;
  7369. }
  7370. _ACEOF
  7371. rm -f conftest$ac_exeext
  7372. if { (ac_try="$ac_link"
  7373. case "(($ac_try" in
  7374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7375. *) ac_try_echo=$ac_try;;
  7376. esac
  7377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7378. $as_echo "$ac_try_echo") >&5
  7379. (eval "$ac_link") 2>&5
  7380. ac_status=$?
  7381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7382. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7383. { (case "(($ac_try" in
  7384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7385. *) ac_try_echo=$ac_try;;
  7386. esac
  7387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7388. $as_echo "$ac_try_echo") >&5
  7389. (eval "$ac_try") 2>&5
  7390. ac_status=$?
  7391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. (exit $ac_status); }; }; then
  7393. ac_cv_c_stack_direction=1
  7394. else
  7395. $as_echo "$as_me: program exited with status $ac_status" >&5
  7396. $as_echo "$as_me: failed program was:" >&5
  7397. sed 's/^/| /' conftest.$ac_ext >&5
  7398. ( exit $ac_status )
  7399. ac_cv_c_stack_direction=-1
  7400. fi
  7401. rm -rf conftest.dSYM
  7402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7403. fi
  7404. fi
  7405. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7406. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7407. cat >>confdefs.h <<_ACEOF
  7408. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7409. _ACEOF
  7410. fi
  7411. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7412. $as_echo_n "checking for ANSI C header files... " >&6; }
  7413. if test "${ac_cv_header_stdc+set}" = set; then
  7414. $as_echo_n "(cached) " >&6
  7415. else
  7416. cat >conftest.$ac_ext <<_ACEOF
  7417. /* confdefs.h. */
  7418. _ACEOF
  7419. cat confdefs.h >>conftest.$ac_ext
  7420. cat >>conftest.$ac_ext <<_ACEOF
  7421. /* end confdefs.h. */
  7422. #include <stdlib.h>
  7423. #include <stdarg.h>
  7424. #include <string.h>
  7425. #include <float.h>
  7426. int
  7427. main ()
  7428. {
  7429. ;
  7430. return 0;
  7431. }
  7432. _ACEOF
  7433. rm -f conftest.$ac_objext
  7434. if { (ac_try="$ac_compile"
  7435. case "(($ac_try" in
  7436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7437. *) ac_try_echo=$ac_try;;
  7438. esac
  7439. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7440. $as_echo "$ac_try_echo") >&5
  7441. (eval "$ac_compile") 2>conftest.er1
  7442. ac_status=$?
  7443. grep -v '^ *+' conftest.er1 >conftest.err
  7444. rm -f conftest.er1
  7445. cat conftest.err >&5
  7446. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. (exit $ac_status); } && {
  7448. test -z "$ac_cxx_werror_flag" ||
  7449. test ! -s conftest.err
  7450. } && test -s conftest.$ac_objext; then
  7451. ac_cv_header_stdc=yes
  7452. else
  7453. $as_echo "$as_me: failed program was:" >&5
  7454. sed 's/^/| /' conftest.$ac_ext >&5
  7455. ac_cv_header_stdc=no
  7456. fi
  7457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7458. if test $ac_cv_header_stdc = yes; then
  7459. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7460. cat >conftest.$ac_ext <<_ACEOF
  7461. /* confdefs.h. */
  7462. _ACEOF
  7463. cat confdefs.h >>conftest.$ac_ext
  7464. cat >>conftest.$ac_ext <<_ACEOF
  7465. /* end confdefs.h. */
  7466. #include <string.h>
  7467. _ACEOF
  7468. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7469. $EGREP "memchr" >/dev/null 2>&1; then
  7470. :
  7471. else
  7472. ac_cv_header_stdc=no
  7473. fi
  7474. rm -f conftest*
  7475. fi
  7476. if test $ac_cv_header_stdc = yes; then
  7477. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7478. cat >conftest.$ac_ext <<_ACEOF
  7479. /* confdefs.h. */
  7480. _ACEOF
  7481. cat confdefs.h >>conftest.$ac_ext
  7482. cat >>conftest.$ac_ext <<_ACEOF
  7483. /* end confdefs.h. */
  7484. #include <stdlib.h>
  7485. _ACEOF
  7486. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7487. $EGREP "free" >/dev/null 2>&1; then
  7488. :
  7489. else
  7490. ac_cv_header_stdc=no
  7491. fi
  7492. rm -f conftest*
  7493. fi
  7494. if test $ac_cv_header_stdc = yes; then
  7495. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7496. if test "$cross_compiling" = yes; then
  7497. :
  7498. else
  7499. cat >conftest.$ac_ext <<_ACEOF
  7500. /* confdefs.h. */
  7501. _ACEOF
  7502. cat confdefs.h >>conftest.$ac_ext
  7503. cat >>conftest.$ac_ext <<_ACEOF
  7504. /* end confdefs.h. */
  7505. #include <ctype.h>
  7506. #include <stdlib.h>
  7507. #if ((' ' & 0x0FF) == 0x020)
  7508. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7509. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7510. #else
  7511. # define ISLOWER(c) \
  7512. (('a' <= (c) && (c) <= 'i') \
  7513. || ('j' <= (c) && (c) <= 'r') \
  7514. || ('s' <= (c) && (c) <= 'z'))
  7515. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7516. #endif
  7517. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7518. int
  7519. main ()
  7520. {
  7521. int i;
  7522. for (i = 0; i < 256; i++)
  7523. if (XOR (islower (i), ISLOWER (i))
  7524. || toupper (i) != TOUPPER (i))
  7525. return 2;
  7526. return 0;
  7527. }
  7528. _ACEOF
  7529. rm -f conftest$ac_exeext
  7530. if { (ac_try="$ac_link"
  7531. case "(($ac_try" in
  7532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7533. *) ac_try_echo=$ac_try;;
  7534. esac
  7535. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7536. $as_echo "$ac_try_echo") >&5
  7537. (eval "$ac_link") 2>&5
  7538. ac_status=$?
  7539. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7540. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7541. { (case "(($ac_try" in
  7542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7543. *) ac_try_echo=$ac_try;;
  7544. esac
  7545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7546. $as_echo "$ac_try_echo") >&5
  7547. (eval "$ac_try") 2>&5
  7548. ac_status=$?
  7549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7550. (exit $ac_status); }; }; then
  7551. :
  7552. else
  7553. $as_echo "$as_me: program exited with status $ac_status" >&5
  7554. $as_echo "$as_me: failed program was:" >&5
  7555. sed 's/^/| /' conftest.$ac_ext >&5
  7556. ( exit $ac_status )
  7557. ac_cv_header_stdc=no
  7558. fi
  7559. rm -rf conftest.dSYM
  7560. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7561. fi
  7562. fi
  7563. fi
  7564. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7565. $as_echo "$ac_cv_header_stdc" >&6; }
  7566. if test $ac_cv_header_stdc = yes; then
  7567. cat >>confdefs.h <<\_ACEOF
  7568. #define STDC_HEADERS 1
  7569. _ACEOF
  7570. fi
  7571. case "$target" in
  7572. *mingw*)
  7573. for ac_header in winsock2.h \
  7574. ws2tcpip.h
  7575. do
  7576. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7577. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7578. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7579. $as_echo_n "checking for $ac_header... " >&6; }
  7580. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7581. $as_echo_n "(cached) " >&6
  7582. fi
  7583. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7584. $as_echo "$as_val"'`
  7585. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7586. $as_echo "$ac_res" >&6; }
  7587. else
  7588. # Is the header compilable?
  7589. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7590. $as_echo_n "checking $ac_header usability... " >&6; }
  7591. cat >conftest.$ac_ext <<_ACEOF
  7592. /* confdefs.h. */
  7593. _ACEOF
  7594. cat confdefs.h >>conftest.$ac_ext
  7595. cat >>conftest.$ac_ext <<_ACEOF
  7596. /* end confdefs.h. */
  7597. $ac_includes_default
  7598. #include <$ac_header>
  7599. _ACEOF
  7600. rm -f conftest.$ac_objext
  7601. if { (ac_try="$ac_compile"
  7602. case "(($ac_try" in
  7603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7604. *) ac_try_echo=$ac_try;;
  7605. esac
  7606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7607. $as_echo "$ac_try_echo") >&5
  7608. (eval "$ac_compile") 2>conftest.er1
  7609. ac_status=$?
  7610. grep -v '^ *+' conftest.er1 >conftest.err
  7611. rm -f conftest.er1
  7612. cat conftest.err >&5
  7613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7614. (exit $ac_status); } && {
  7615. test -z "$ac_cxx_werror_flag" ||
  7616. test ! -s conftest.err
  7617. } && test -s conftest.$ac_objext; then
  7618. ac_header_compiler=yes
  7619. else
  7620. $as_echo "$as_me: failed program was:" >&5
  7621. sed 's/^/| /' conftest.$ac_ext >&5
  7622. ac_header_compiler=no
  7623. fi
  7624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7625. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7626. $as_echo "$ac_header_compiler" >&6; }
  7627. # Is the header present?
  7628. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7629. $as_echo_n "checking $ac_header presence... " >&6; }
  7630. cat >conftest.$ac_ext <<_ACEOF
  7631. /* confdefs.h. */
  7632. _ACEOF
  7633. cat confdefs.h >>conftest.$ac_ext
  7634. cat >>conftest.$ac_ext <<_ACEOF
  7635. /* end confdefs.h. */
  7636. #include <$ac_header>
  7637. _ACEOF
  7638. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7639. case "(($ac_try" in
  7640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7641. *) ac_try_echo=$ac_try;;
  7642. esac
  7643. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7644. $as_echo "$ac_try_echo") >&5
  7645. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7646. ac_status=$?
  7647. grep -v '^ *+' conftest.er1 >conftest.err
  7648. rm -f conftest.er1
  7649. cat conftest.err >&5
  7650. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); } >/dev/null && {
  7652. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7653. test ! -s conftest.err
  7654. }; then
  7655. ac_header_preproc=yes
  7656. else
  7657. $as_echo "$as_me: failed program was:" >&5
  7658. sed 's/^/| /' conftest.$ac_ext >&5
  7659. ac_header_preproc=no
  7660. fi
  7661. rm -f conftest.err conftest.$ac_ext
  7662. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7663. $as_echo "$ac_header_preproc" >&6; }
  7664. # So? What about this header?
  7665. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7666. yes:no: )
  7667. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7668. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7669. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7670. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7671. ac_header_preproc=yes
  7672. ;;
  7673. no:yes:* )
  7674. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7675. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7676. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7677. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7678. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7679. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7680. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7681. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7682. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7683. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7684. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7685. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7686. ( cat <<\_ASBOX
  7687. ## ----------------------------------------------- ##
  7688. ## Report this to t-tujikawa@users.sourceforge.net ##
  7689. ## ----------------------------------------------- ##
  7690. _ASBOX
  7691. ) | sed "s/^/$as_me: WARNING: /" >&2
  7692. ;;
  7693. esac
  7694. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7695. $as_echo_n "checking for $ac_header... " >&6; }
  7696. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7697. $as_echo_n "(cached) " >&6
  7698. else
  7699. eval "$as_ac_Header=\$ac_header_preproc"
  7700. fi
  7701. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7702. $as_echo "$as_val"'`
  7703. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7704. $as_echo "$ac_res" >&6; }
  7705. fi
  7706. as_val=`eval 'as_val=${'$as_ac_Header'}
  7707. $as_echo "$as_val"'`
  7708. if test "x$as_val" = x""yes; then
  7709. cat >>confdefs.h <<_ACEOF
  7710. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7711. _ACEOF
  7712. fi
  7713. done
  7714. ;;
  7715. esac
  7716. for ac_header in argz.h \
  7717. arpa/inet.h \
  7718. fcntl.h \
  7719. float.h \
  7720. inttypes.h \
  7721. io.h \
  7722. langinfo.h \
  7723. libintl.h \
  7724. limits.h \
  7725. locale.h \
  7726. malloc.h \
  7727. netdb.h \
  7728. netinet/in.h \
  7729. stddef.h \
  7730. stdint.h \
  7731. stdio_ext.h \
  7732. stdlib.h \
  7733. string.h \
  7734. strings.h \
  7735. sys/ioctl.h \
  7736. sys/param.h \
  7737. sys/socket.h \
  7738. sys/time.h \
  7739. termios.h \
  7740. unistd.h \
  7741. wchar.h
  7742. do
  7743. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7744. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7745. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7746. $as_echo_n "checking for $ac_header... " >&6; }
  7747. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7748. $as_echo_n "(cached) " >&6
  7749. fi
  7750. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7751. $as_echo "$as_val"'`
  7752. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7753. $as_echo "$ac_res" >&6; }
  7754. else
  7755. # Is the header compilable?
  7756. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7757. $as_echo_n "checking $ac_header usability... " >&6; }
  7758. cat >conftest.$ac_ext <<_ACEOF
  7759. /* confdefs.h. */
  7760. _ACEOF
  7761. cat confdefs.h >>conftest.$ac_ext
  7762. cat >>conftest.$ac_ext <<_ACEOF
  7763. /* end confdefs.h. */
  7764. $ac_includes_default
  7765. #include <$ac_header>
  7766. _ACEOF
  7767. rm -f conftest.$ac_objext
  7768. if { (ac_try="$ac_compile"
  7769. case "(($ac_try" in
  7770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7771. *) ac_try_echo=$ac_try;;
  7772. esac
  7773. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7774. $as_echo "$ac_try_echo") >&5
  7775. (eval "$ac_compile") 2>conftest.er1
  7776. ac_status=$?
  7777. grep -v '^ *+' conftest.er1 >conftest.err
  7778. rm -f conftest.er1
  7779. cat conftest.err >&5
  7780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7781. (exit $ac_status); } && {
  7782. test -z "$ac_cxx_werror_flag" ||
  7783. test ! -s conftest.err
  7784. } && test -s conftest.$ac_objext; then
  7785. ac_header_compiler=yes
  7786. else
  7787. $as_echo "$as_me: failed program was:" >&5
  7788. sed 's/^/| /' conftest.$ac_ext >&5
  7789. ac_header_compiler=no
  7790. fi
  7791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7792. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7793. $as_echo "$ac_header_compiler" >&6; }
  7794. # Is the header present?
  7795. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7796. $as_echo_n "checking $ac_header presence... " >&6; }
  7797. cat >conftest.$ac_ext <<_ACEOF
  7798. /* confdefs.h. */
  7799. _ACEOF
  7800. cat confdefs.h >>conftest.$ac_ext
  7801. cat >>conftest.$ac_ext <<_ACEOF
  7802. /* end confdefs.h. */
  7803. #include <$ac_header>
  7804. _ACEOF
  7805. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7806. case "(($ac_try" in
  7807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7808. *) ac_try_echo=$ac_try;;
  7809. esac
  7810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7811. $as_echo "$ac_try_echo") >&5
  7812. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7813. ac_status=$?
  7814. grep -v '^ *+' conftest.er1 >conftest.err
  7815. rm -f conftest.er1
  7816. cat conftest.err >&5
  7817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. (exit $ac_status); } >/dev/null && {
  7819. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7820. test ! -s conftest.err
  7821. }; then
  7822. ac_header_preproc=yes
  7823. else
  7824. $as_echo "$as_me: failed program was:" >&5
  7825. sed 's/^/| /' conftest.$ac_ext >&5
  7826. ac_header_preproc=no
  7827. fi
  7828. rm -f conftest.err conftest.$ac_ext
  7829. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7830. $as_echo "$ac_header_preproc" >&6; }
  7831. # So? What about this header?
  7832. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7833. yes:no: )
  7834. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7835. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7836. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7837. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7838. ac_header_preproc=yes
  7839. ;;
  7840. no:yes:* )
  7841. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7842. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7843. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7844. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7845. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7846. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7847. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7848. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7849. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7850. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7851. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7852. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7853. ( cat <<\_ASBOX
  7854. ## ----------------------------------------------- ##
  7855. ## Report this to t-tujikawa@users.sourceforge.net ##
  7856. ## ----------------------------------------------- ##
  7857. _ASBOX
  7858. ) | sed "s/^/$as_me: WARNING: /" >&2
  7859. ;;
  7860. esac
  7861. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7862. $as_echo_n "checking for $ac_header... " >&6; }
  7863. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7864. $as_echo_n "(cached) " >&6
  7865. else
  7866. eval "$as_ac_Header=\$ac_header_preproc"
  7867. fi
  7868. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7869. $as_echo "$as_val"'`
  7870. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7871. $as_echo "$ac_res" >&6; }
  7872. fi
  7873. as_val=`eval 'as_val=${'$as_ac_Header'}
  7874. $as_echo "$as_val"'`
  7875. if test "x$as_val" = x""yes; then
  7876. cat >>confdefs.h <<_ACEOF
  7877. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7878. _ACEOF
  7879. fi
  7880. done
  7881. # Checks for typedefs, structures, and compiler characteristics.
  7882. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7883. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7884. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. cat >conftest.$ac_ext <<_ACEOF
  7888. /* confdefs.h. */
  7889. _ACEOF
  7890. cat confdefs.h >>conftest.$ac_ext
  7891. cat >>conftest.$ac_ext <<_ACEOF
  7892. /* end confdefs.h. */
  7893. #include <stdbool.h>
  7894. #ifndef bool
  7895. "error: bool is not defined"
  7896. #endif
  7897. #ifndef false
  7898. "error: false is not defined"
  7899. #endif
  7900. #if false
  7901. "error: false is not 0"
  7902. #endif
  7903. #ifndef true
  7904. "error: true is not defined"
  7905. #endif
  7906. #if true != 1
  7907. "error: true is not 1"
  7908. #endif
  7909. #ifndef __bool_true_false_are_defined
  7910. "error: __bool_true_false_are_defined is not defined"
  7911. #endif
  7912. struct s { _Bool s: 1; _Bool t; } s;
  7913. char a[true == 1 ? 1 : -1];
  7914. char b[false == 0 ? 1 : -1];
  7915. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7916. char d[(bool) 0.5 == true ? 1 : -1];
  7917. bool e = &s;
  7918. char f[(_Bool) 0.0 == false ? 1 : -1];
  7919. char g[true];
  7920. char h[sizeof (_Bool)];
  7921. char i[sizeof s.t];
  7922. enum { j = false, k = true, l = false * true, m = true * 256 };
  7923. /* The following fails for
  7924. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7925. _Bool n[m];
  7926. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7927. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7928. # if defined __xlc__ || defined __GNUC__
  7929. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7930. reported by James Lemley on 2005-10-05; see
  7931. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7932. This test is not quite right, since xlc is allowed to
  7933. reject this program, as the initializer for xlcbug is
  7934. not one of the forms that C requires support for.
  7935. However, doing the test right would require a runtime
  7936. test, and that would make cross-compilation harder.
  7937. Let us hope that IBM fixes the xlc bug, and also adds
  7938. support for this kind of constant expression. In the
  7939. meantime, this test will reject xlc, which is OK, since
  7940. our stdbool.h substitute should suffice. We also test
  7941. this with GCC, where it should work, to detect more
  7942. quickly whether someone messes up the test in the
  7943. future. */
  7944. char digs[] = "0123456789";
  7945. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7946. # endif
  7947. /* Catch a bug in an HP-UX C compiler. See
  7948. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7949. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7950. */
  7951. _Bool q = true;
  7952. _Bool *pq = &q;
  7953. int
  7954. main ()
  7955. {
  7956. *pq |= q;
  7957. *pq |= ! q;
  7958. /* Refer to every declared value, to avoid compiler optimizations. */
  7959. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7960. + !m + !n + !o + !p + !q + !pq);
  7961. ;
  7962. return 0;
  7963. }
  7964. _ACEOF
  7965. rm -f conftest.$ac_objext
  7966. if { (ac_try="$ac_compile"
  7967. case "(($ac_try" in
  7968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7969. *) ac_try_echo=$ac_try;;
  7970. esac
  7971. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7972. $as_echo "$ac_try_echo") >&5
  7973. (eval "$ac_compile") 2>conftest.er1
  7974. ac_status=$?
  7975. grep -v '^ *+' conftest.er1 >conftest.err
  7976. rm -f conftest.er1
  7977. cat conftest.err >&5
  7978. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7979. (exit $ac_status); } && {
  7980. test -z "$ac_cxx_werror_flag" ||
  7981. test ! -s conftest.err
  7982. } && test -s conftest.$ac_objext; then
  7983. ac_cv_header_stdbool_h=yes
  7984. else
  7985. $as_echo "$as_me: failed program was:" >&5
  7986. sed 's/^/| /' conftest.$ac_ext >&5
  7987. ac_cv_header_stdbool_h=no
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7990. fi
  7991. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7992. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7993. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  7994. $as_echo_n "checking for _Bool... " >&6; }
  7995. if test "${ac_cv_type__Bool+set}" = set; then
  7996. $as_echo_n "(cached) " >&6
  7997. else
  7998. ac_cv_type__Bool=no
  7999. cat >conftest.$ac_ext <<_ACEOF
  8000. /* confdefs.h. */
  8001. _ACEOF
  8002. cat confdefs.h >>conftest.$ac_ext
  8003. cat >>conftest.$ac_ext <<_ACEOF
  8004. /* end confdefs.h. */
  8005. $ac_includes_default
  8006. int
  8007. main ()
  8008. {
  8009. if (sizeof (_Bool))
  8010. return 0;
  8011. ;
  8012. return 0;
  8013. }
  8014. _ACEOF
  8015. rm -f conftest.$ac_objext
  8016. if { (ac_try="$ac_compile"
  8017. case "(($ac_try" in
  8018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8019. *) ac_try_echo=$ac_try;;
  8020. esac
  8021. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8022. $as_echo "$ac_try_echo") >&5
  8023. (eval "$ac_compile") 2>conftest.er1
  8024. ac_status=$?
  8025. grep -v '^ *+' conftest.er1 >conftest.err
  8026. rm -f conftest.er1
  8027. cat conftest.err >&5
  8028. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8029. (exit $ac_status); } && {
  8030. test -z "$ac_cxx_werror_flag" ||
  8031. test ! -s conftest.err
  8032. } && test -s conftest.$ac_objext; then
  8033. cat >conftest.$ac_ext <<_ACEOF
  8034. /* confdefs.h. */
  8035. _ACEOF
  8036. cat confdefs.h >>conftest.$ac_ext
  8037. cat >>conftest.$ac_ext <<_ACEOF
  8038. /* end confdefs.h. */
  8039. $ac_includes_default
  8040. int
  8041. main ()
  8042. {
  8043. if (sizeof ((_Bool)))
  8044. return 0;
  8045. ;
  8046. return 0;
  8047. }
  8048. _ACEOF
  8049. rm -f conftest.$ac_objext
  8050. if { (ac_try="$ac_compile"
  8051. case "(($ac_try" in
  8052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8053. *) ac_try_echo=$ac_try;;
  8054. esac
  8055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8056. $as_echo "$ac_try_echo") >&5
  8057. (eval "$ac_compile") 2>conftest.er1
  8058. ac_status=$?
  8059. grep -v '^ *+' conftest.er1 >conftest.err
  8060. rm -f conftest.er1
  8061. cat conftest.err >&5
  8062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8063. (exit $ac_status); } && {
  8064. test -z "$ac_cxx_werror_flag" ||
  8065. test ! -s conftest.err
  8066. } && test -s conftest.$ac_objext; then
  8067. :
  8068. else
  8069. $as_echo "$as_me: failed program was:" >&5
  8070. sed 's/^/| /' conftest.$ac_ext >&5
  8071. ac_cv_type__Bool=yes
  8072. fi
  8073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8074. else
  8075. $as_echo "$as_me: failed program was:" >&5
  8076. sed 's/^/| /' conftest.$ac_ext >&5
  8077. fi
  8078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8079. fi
  8080. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  8081. $as_echo "$ac_cv_type__Bool" >&6; }
  8082. if test "x$ac_cv_type__Bool" = x""yes; then
  8083. cat >>confdefs.h <<_ACEOF
  8084. #define HAVE__BOOL 1
  8085. _ACEOF
  8086. fi
  8087. if test $ac_cv_header_stdbool_h = yes; then
  8088. cat >>confdefs.h <<\_ACEOF
  8089. #define HAVE_STDBOOL_H 1
  8090. _ACEOF
  8091. fi
  8092. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8093. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  8094. if test "${ac_cv_c_const+set}" = set; then
  8095. $as_echo_n "(cached) " >&6
  8096. else
  8097. cat >conftest.$ac_ext <<_ACEOF
  8098. /* confdefs.h. */
  8099. _ACEOF
  8100. cat confdefs.h >>conftest.$ac_ext
  8101. cat >>conftest.$ac_ext <<_ACEOF
  8102. /* end confdefs.h. */
  8103. int
  8104. main ()
  8105. {
  8106. /* FIXME: Include the comments suggested by Paul. */
  8107. #ifndef __cplusplus
  8108. /* Ultrix mips cc rejects this. */
  8109. typedef int charset[2];
  8110. const charset cs;
  8111. /* SunOS 4.1.1 cc rejects this. */
  8112. char const *const *pcpcc;
  8113. char **ppc;
  8114. /* NEC SVR4.0.2 mips cc rejects this. */
  8115. struct point {int x, y;};
  8116. static struct point const zero = {0,0};
  8117. /* AIX XL C 1.02.0.0 rejects this.
  8118. It does not let you subtract one const X* pointer from another in
  8119. an arm of an if-expression whose if-part is not a constant
  8120. expression */
  8121. const char *g = "string";
  8122. pcpcc = &g + (g ? g-g : 0);
  8123. /* HPUX 7.0 cc rejects these. */
  8124. ++pcpcc;
  8125. ppc = (char**) pcpcc;
  8126. pcpcc = (char const *const *) ppc;
  8127. { /* SCO 3.2v4 cc rejects this. */
  8128. char *t;
  8129. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8130. *t++ = 0;
  8131. if (s) return 0;
  8132. }
  8133. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8134. int x[] = {25, 17};
  8135. const int *foo = &x[0];
  8136. ++foo;
  8137. }
  8138. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8139. typedef const int *iptr;
  8140. iptr p = 0;
  8141. ++p;
  8142. }
  8143. { /* AIX XL C 1.02.0.0 rejects this saying
  8144. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8145. struct s { int j; const int *ap[3]; };
  8146. struct s *b; b->j = 5;
  8147. }
  8148. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8149. const int foo = 10;
  8150. if (!foo) return 0;
  8151. }
  8152. return !cs[0] && !zero.x;
  8153. #endif
  8154. ;
  8155. return 0;
  8156. }
  8157. _ACEOF
  8158. rm -f conftest.$ac_objext
  8159. if { (ac_try="$ac_compile"
  8160. case "(($ac_try" in
  8161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8162. *) ac_try_echo=$ac_try;;
  8163. esac
  8164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8165. $as_echo "$ac_try_echo") >&5
  8166. (eval "$ac_compile") 2>conftest.er1
  8167. ac_status=$?
  8168. grep -v '^ *+' conftest.er1 >conftest.err
  8169. rm -f conftest.er1
  8170. cat conftest.err >&5
  8171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8172. (exit $ac_status); } && {
  8173. test -z "$ac_cxx_werror_flag" ||
  8174. test ! -s conftest.err
  8175. } && test -s conftest.$ac_objext; then
  8176. ac_cv_c_const=yes
  8177. else
  8178. $as_echo "$as_me: failed program was:" >&5
  8179. sed 's/^/| /' conftest.$ac_ext >&5
  8180. ac_cv_c_const=no
  8181. fi
  8182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8183. fi
  8184. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8185. $as_echo "$ac_cv_c_const" >&6; }
  8186. if test $ac_cv_c_const = no; then
  8187. cat >>confdefs.h <<\_ACEOF
  8188. #define const /**/
  8189. _ACEOF
  8190. fi
  8191. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  8192. $as_echo_n "checking for inline... " >&6; }
  8193. if test "${ac_cv_c_inline+set}" = set; then
  8194. $as_echo_n "(cached) " >&6
  8195. else
  8196. ac_cv_c_inline=no
  8197. for ac_kw in inline __inline__ __inline; do
  8198. cat >conftest.$ac_ext <<_ACEOF
  8199. /* confdefs.h. */
  8200. _ACEOF
  8201. cat confdefs.h >>conftest.$ac_ext
  8202. cat >>conftest.$ac_ext <<_ACEOF
  8203. /* end confdefs.h. */
  8204. #ifndef __cplusplus
  8205. typedef int foo_t;
  8206. static $ac_kw foo_t static_foo () {return 0; }
  8207. $ac_kw foo_t foo () {return 0; }
  8208. #endif
  8209. _ACEOF
  8210. rm -f conftest.$ac_objext
  8211. if { (ac_try="$ac_compile"
  8212. case "(($ac_try" in
  8213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8214. *) ac_try_echo=$ac_try;;
  8215. esac
  8216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8217. $as_echo "$ac_try_echo") >&5
  8218. (eval "$ac_compile") 2>conftest.er1
  8219. ac_status=$?
  8220. grep -v '^ *+' conftest.er1 >conftest.err
  8221. rm -f conftest.er1
  8222. cat conftest.err >&5
  8223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8224. (exit $ac_status); } && {
  8225. test -z "$ac_cxx_werror_flag" ||
  8226. test ! -s conftest.err
  8227. } && test -s conftest.$ac_objext; then
  8228. ac_cv_c_inline=$ac_kw
  8229. else
  8230. $as_echo "$as_me: failed program was:" >&5
  8231. sed 's/^/| /' conftest.$ac_ext >&5
  8232. fi
  8233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8234. test "$ac_cv_c_inline" != no && break
  8235. done
  8236. fi
  8237. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8238. $as_echo "$ac_cv_c_inline" >&6; }
  8239. case $ac_cv_c_inline in
  8240. inline | yes) ;;
  8241. *)
  8242. case $ac_cv_c_inline in
  8243. no) ac_val=;;
  8244. *) ac_val=$ac_cv_c_inline;;
  8245. esac
  8246. cat >>confdefs.h <<_ACEOF
  8247. #ifndef __cplusplus
  8248. #define inline $ac_val
  8249. #endif
  8250. _ACEOF
  8251. ;;
  8252. esac
  8253. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8254. $as_echo_n "checking for int16_t... " >&6; }
  8255. if test "${ac_cv_c_int16_t+set}" = set; then
  8256. $as_echo_n "(cached) " >&6
  8257. else
  8258. ac_cv_c_int16_t=no
  8259. for ac_type in 'int16_t' 'int' 'long int' \
  8260. 'long long int' 'short int' 'signed char'; do
  8261. cat >conftest.$ac_ext <<_ACEOF
  8262. /* confdefs.h. */
  8263. _ACEOF
  8264. cat confdefs.h >>conftest.$ac_ext
  8265. cat >>conftest.$ac_ext <<_ACEOF
  8266. /* end confdefs.h. */
  8267. $ac_includes_default
  8268. int
  8269. main ()
  8270. {
  8271. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8272. test_array [0] = 0
  8273. ;
  8274. return 0;
  8275. }
  8276. _ACEOF
  8277. rm -f conftest.$ac_objext
  8278. if { (ac_try="$ac_compile"
  8279. case "(($ac_try" in
  8280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8281. *) ac_try_echo=$ac_try;;
  8282. esac
  8283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8284. $as_echo "$ac_try_echo") >&5
  8285. (eval "$ac_compile") 2>conftest.er1
  8286. ac_status=$?
  8287. grep -v '^ *+' conftest.er1 >conftest.err
  8288. rm -f conftest.er1
  8289. cat conftest.err >&5
  8290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. (exit $ac_status); } && {
  8292. test -z "$ac_cxx_werror_flag" ||
  8293. test ! -s conftest.err
  8294. } && test -s conftest.$ac_objext; then
  8295. cat >conftest.$ac_ext <<_ACEOF
  8296. /* confdefs.h. */
  8297. _ACEOF
  8298. cat confdefs.h >>conftest.$ac_ext
  8299. cat >>conftest.$ac_ext <<_ACEOF
  8300. /* end confdefs.h. */
  8301. $ac_includes_default
  8302. int
  8303. main ()
  8304. {
  8305. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8306. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8307. test_array [0] = 0
  8308. ;
  8309. return 0;
  8310. }
  8311. _ACEOF
  8312. rm -f conftest.$ac_objext
  8313. if { (ac_try="$ac_compile"
  8314. case "(($ac_try" in
  8315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8316. *) ac_try_echo=$ac_try;;
  8317. esac
  8318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8319. $as_echo "$ac_try_echo") >&5
  8320. (eval "$ac_compile") 2>conftest.er1
  8321. ac_status=$?
  8322. grep -v '^ *+' conftest.er1 >conftest.err
  8323. rm -f conftest.er1
  8324. cat conftest.err >&5
  8325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8326. (exit $ac_status); } && {
  8327. test -z "$ac_cxx_werror_flag" ||
  8328. test ! -s conftest.err
  8329. } && test -s conftest.$ac_objext; then
  8330. :
  8331. else
  8332. $as_echo "$as_me: failed program was:" >&5
  8333. sed 's/^/| /' conftest.$ac_ext >&5
  8334. case $ac_type in
  8335. int16_t) ac_cv_c_int16_t=yes ;;
  8336. *) ac_cv_c_int16_t=$ac_type ;;
  8337. esac
  8338. fi
  8339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8340. else
  8341. $as_echo "$as_me: failed program was:" >&5
  8342. sed 's/^/| /' conftest.$ac_ext >&5
  8343. fi
  8344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8345. test "$ac_cv_c_int16_t" != no && break
  8346. done
  8347. fi
  8348. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8349. $as_echo "$ac_cv_c_int16_t" >&6; }
  8350. case $ac_cv_c_int16_t in #(
  8351. no|yes) ;; #(
  8352. *)
  8353. cat >>confdefs.h <<_ACEOF
  8354. #define int16_t $ac_cv_c_int16_t
  8355. _ACEOF
  8356. ;;
  8357. esac
  8358. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8359. $as_echo_n "checking for int32_t... " >&6; }
  8360. if test "${ac_cv_c_int32_t+set}" = set; then
  8361. $as_echo_n "(cached) " >&6
  8362. else
  8363. ac_cv_c_int32_t=no
  8364. for ac_type in 'int32_t' 'int' 'long int' \
  8365. 'long long int' 'short int' 'signed char'; do
  8366. cat >conftest.$ac_ext <<_ACEOF
  8367. /* confdefs.h. */
  8368. _ACEOF
  8369. cat confdefs.h >>conftest.$ac_ext
  8370. cat >>conftest.$ac_ext <<_ACEOF
  8371. /* end confdefs.h. */
  8372. $ac_includes_default
  8373. int
  8374. main ()
  8375. {
  8376. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8377. test_array [0] = 0
  8378. ;
  8379. return 0;
  8380. }
  8381. _ACEOF
  8382. rm -f conftest.$ac_objext
  8383. if { (ac_try="$ac_compile"
  8384. case "(($ac_try" in
  8385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8386. *) ac_try_echo=$ac_try;;
  8387. esac
  8388. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8389. $as_echo "$ac_try_echo") >&5
  8390. (eval "$ac_compile") 2>conftest.er1
  8391. ac_status=$?
  8392. grep -v '^ *+' conftest.er1 >conftest.err
  8393. rm -f conftest.er1
  8394. cat conftest.err >&5
  8395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8396. (exit $ac_status); } && {
  8397. test -z "$ac_cxx_werror_flag" ||
  8398. test ! -s conftest.err
  8399. } && test -s conftest.$ac_objext; then
  8400. cat >conftest.$ac_ext <<_ACEOF
  8401. /* confdefs.h. */
  8402. _ACEOF
  8403. cat confdefs.h >>conftest.$ac_ext
  8404. cat >>conftest.$ac_ext <<_ACEOF
  8405. /* end confdefs.h. */
  8406. $ac_includes_default
  8407. int
  8408. main ()
  8409. {
  8410. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8411. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8412. test_array [0] = 0
  8413. ;
  8414. return 0;
  8415. }
  8416. _ACEOF
  8417. rm -f conftest.$ac_objext
  8418. if { (ac_try="$ac_compile"
  8419. case "(($ac_try" in
  8420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8421. *) ac_try_echo=$ac_try;;
  8422. esac
  8423. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8424. $as_echo "$ac_try_echo") >&5
  8425. (eval "$ac_compile") 2>conftest.er1
  8426. ac_status=$?
  8427. grep -v '^ *+' conftest.er1 >conftest.err
  8428. rm -f conftest.er1
  8429. cat conftest.err >&5
  8430. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8431. (exit $ac_status); } && {
  8432. test -z "$ac_cxx_werror_flag" ||
  8433. test ! -s conftest.err
  8434. } && test -s conftest.$ac_objext; then
  8435. :
  8436. else
  8437. $as_echo "$as_me: failed program was:" >&5
  8438. sed 's/^/| /' conftest.$ac_ext >&5
  8439. case $ac_type in
  8440. int32_t) ac_cv_c_int32_t=yes ;;
  8441. *) ac_cv_c_int32_t=$ac_type ;;
  8442. esac
  8443. fi
  8444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8445. else
  8446. $as_echo "$as_me: failed program was:" >&5
  8447. sed 's/^/| /' conftest.$ac_ext >&5
  8448. fi
  8449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8450. test "$ac_cv_c_int32_t" != no && break
  8451. done
  8452. fi
  8453. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8454. $as_echo "$ac_cv_c_int32_t" >&6; }
  8455. case $ac_cv_c_int32_t in #(
  8456. no|yes) ;; #(
  8457. *)
  8458. cat >>confdefs.h <<_ACEOF
  8459. #define int32_t $ac_cv_c_int32_t
  8460. _ACEOF
  8461. ;;
  8462. esac
  8463. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8464. $as_echo_n "checking for int64_t... " >&6; }
  8465. if test "${ac_cv_c_int64_t+set}" = set; then
  8466. $as_echo_n "(cached) " >&6
  8467. else
  8468. ac_cv_c_int64_t=no
  8469. for ac_type in 'int64_t' 'int' 'long int' \
  8470. 'long long int' 'short int' 'signed char'; do
  8471. cat >conftest.$ac_ext <<_ACEOF
  8472. /* confdefs.h. */
  8473. _ACEOF
  8474. cat confdefs.h >>conftest.$ac_ext
  8475. cat >>conftest.$ac_ext <<_ACEOF
  8476. /* end confdefs.h. */
  8477. $ac_includes_default
  8478. int
  8479. main ()
  8480. {
  8481. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8482. test_array [0] = 0
  8483. ;
  8484. return 0;
  8485. }
  8486. _ACEOF
  8487. rm -f conftest.$ac_objext
  8488. if { (ac_try="$ac_compile"
  8489. case "(($ac_try" in
  8490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8491. *) ac_try_echo=$ac_try;;
  8492. esac
  8493. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8494. $as_echo "$ac_try_echo") >&5
  8495. (eval "$ac_compile") 2>conftest.er1
  8496. ac_status=$?
  8497. grep -v '^ *+' conftest.er1 >conftest.err
  8498. rm -f conftest.er1
  8499. cat conftest.err >&5
  8500. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); } && {
  8502. test -z "$ac_cxx_werror_flag" ||
  8503. test ! -s conftest.err
  8504. } && test -s conftest.$ac_objext; then
  8505. cat >conftest.$ac_ext <<_ACEOF
  8506. /* confdefs.h. */
  8507. _ACEOF
  8508. cat confdefs.h >>conftest.$ac_ext
  8509. cat >>conftest.$ac_ext <<_ACEOF
  8510. /* end confdefs.h. */
  8511. $ac_includes_default
  8512. int
  8513. main ()
  8514. {
  8515. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8516. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8517. test_array [0] = 0
  8518. ;
  8519. return 0;
  8520. }
  8521. _ACEOF
  8522. rm -f conftest.$ac_objext
  8523. if { (ac_try="$ac_compile"
  8524. case "(($ac_try" in
  8525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8526. *) ac_try_echo=$ac_try;;
  8527. esac
  8528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8529. $as_echo "$ac_try_echo") >&5
  8530. (eval "$ac_compile") 2>conftest.er1
  8531. ac_status=$?
  8532. grep -v '^ *+' conftest.er1 >conftest.err
  8533. rm -f conftest.er1
  8534. cat conftest.err >&5
  8535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. (exit $ac_status); } && {
  8537. test -z "$ac_cxx_werror_flag" ||
  8538. test ! -s conftest.err
  8539. } && test -s conftest.$ac_objext; then
  8540. :
  8541. else
  8542. $as_echo "$as_me: failed program was:" >&5
  8543. sed 's/^/| /' conftest.$ac_ext >&5
  8544. case $ac_type in
  8545. int64_t) ac_cv_c_int64_t=yes ;;
  8546. *) ac_cv_c_int64_t=$ac_type ;;
  8547. esac
  8548. fi
  8549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8550. else
  8551. $as_echo "$as_me: failed program was:" >&5
  8552. sed 's/^/| /' conftest.$ac_ext >&5
  8553. fi
  8554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8555. test "$ac_cv_c_int64_t" != no && break
  8556. done
  8557. fi
  8558. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8559. $as_echo "$ac_cv_c_int64_t" >&6; }
  8560. case $ac_cv_c_int64_t in #(
  8561. no|yes) ;; #(
  8562. *)
  8563. cat >>confdefs.h <<_ACEOF
  8564. #define int64_t $ac_cv_c_int64_t
  8565. _ACEOF
  8566. ;;
  8567. esac
  8568. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8569. $as_echo_n "checking for int8_t... " >&6; }
  8570. if test "${ac_cv_c_int8_t+set}" = set; then
  8571. $as_echo_n "(cached) " >&6
  8572. else
  8573. ac_cv_c_int8_t=no
  8574. for ac_type in 'int8_t' 'int' 'long int' \
  8575. 'long long int' 'short int' 'signed char'; do
  8576. cat >conftest.$ac_ext <<_ACEOF
  8577. /* confdefs.h. */
  8578. _ACEOF
  8579. cat confdefs.h >>conftest.$ac_ext
  8580. cat >>conftest.$ac_ext <<_ACEOF
  8581. /* end confdefs.h. */
  8582. $ac_includes_default
  8583. int
  8584. main ()
  8585. {
  8586. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8587. test_array [0] = 0
  8588. ;
  8589. return 0;
  8590. }
  8591. _ACEOF
  8592. rm -f conftest.$ac_objext
  8593. if { (ac_try="$ac_compile"
  8594. case "(($ac_try" in
  8595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8596. *) ac_try_echo=$ac_try;;
  8597. esac
  8598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8599. $as_echo "$ac_try_echo") >&5
  8600. (eval "$ac_compile") 2>conftest.er1
  8601. ac_status=$?
  8602. grep -v '^ *+' conftest.er1 >conftest.err
  8603. rm -f conftest.er1
  8604. cat conftest.err >&5
  8605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8606. (exit $ac_status); } && {
  8607. test -z "$ac_cxx_werror_flag" ||
  8608. test ! -s conftest.err
  8609. } && test -s conftest.$ac_objext; then
  8610. cat >conftest.$ac_ext <<_ACEOF
  8611. /* confdefs.h. */
  8612. _ACEOF
  8613. cat confdefs.h >>conftest.$ac_ext
  8614. cat >>conftest.$ac_ext <<_ACEOF
  8615. /* end confdefs.h. */
  8616. $ac_includes_default
  8617. int
  8618. main ()
  8619. {
  8620. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8621. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8622. test_array [0] = 0
  8623. ;
  8624. return 0;
  8625. }
  8626. _ACEOF
  8627. rm -f conftest.$ac_objext
  8628. if { (ac_try="$ac_compile"
  8629. case "(($ac_try" in
  8630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8631. *) ac_try_echo=$ac_try;;
  8632. esac
  8633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8634. $as_echo "$ac_try_echo") >&5
  8635. (eval "$ac_compile") 2>conftest.er1
  8636. ac_status=$?
  8637. grep -v '^ *+' conftest.er1 >conftest.err
  8638. rm -f conftest.er1
  8639. cat conftest.err >&5
  8640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8641. (exit $ac_status); } && {
  8642. test -z "$ac_cxx_werror_flag" ||
  8643. test ! -s conftest.err
  8644. } && test -s conftest.$ac_objext; then
  8645. :
  8646. else
  8647. $as_echo "$as_me: failed program was:" >&5
  8648. sed 's/^/| /' conftest.$ac_ext >&5
  8649. case $ac_type in
  8650. int8_t) ac_cv_c_int8_t=yes ;;
  8651. *) ac_cv_c_int8_t=$ac_type ;;
  8652. esac
  8653. fi
  8654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8655. else
  8656. $as_echo "$as_me: failed program was:" >&5
  8657. sed 's/^/| /' conftest.$ac_ext >&5
  8658. fi
  8659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8660. test "$ac_cv_c_int8_t" != no && break
  8661. done
  8662. fi
  8663. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8664. $as_echo "$ac_cv_c_int8_t" >&6; }
  8665. case $ac_cv_c_int8_t in #(
  8666. no|yes) ;; #(
  8667. *)
  8668. cat >>confdefs.h <<_ACEOF
  8669. #define int8_t $ac_cv_c_int8_t
  8670. _ACEOF
  8671. ;;
  8672. esac
  8673. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8674. $as_echo_n "checking for mode_t... " >&6; }
  8675. if test "${ac_cv_type_mode_t+set}" = set; then
  8676. $as_echo_n "(cached) " >&6
  8677. else
  8678. ac_cv_type_mode_t=no
  8679. cat >conftest.$ac_ext <<_ACEOF
  8680. /* confdefs.h. */
  8681. _ACEOF
  8682. cat confdefs.h >>conftest.$ac_ext
  8683. cat >>conftest.$ac_ext <<_ACEOF
  8684. /* end confdefs.h. */
  8685. $ac_includes_default
  8686. int
  8687. main ()
  8688. {
  8689. if (sizeof (mode_t))
  8690. return 0;
  8691. ;
  8692. return 0;
  8693. }
  8694. _ACEOF
  8695. rm -f conftest.$ac_objext
  8696. if { (ac_try="$ac_compile"
  8697. case "(($ac_try" in
  8698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8699. *) ac_try_echo=$ac_try;;
  8700. esac
  8701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8702. $as_echo "$ac_try_echo") >&5
  8703. (eval "$ac_compile") 2>conftest.er1
  8704. ac_status=$?
  8705. grep -v '^ *+' conftest.er1 >conftest.err
  8706. rm -f conftest.er1
  8707. cat conftest.err >&5
  8708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8709. (exit $ac_status); } && {
  8710. test -z "$ac_cxx_werror_flag" ||
  8711. test ! -s conftest.err
  8712. } && test -s conftest.$ac_objext; then
  8713. cat >conftest.$ac_ext <<_ACEOF
  8714. /* confdefs.h. */
  8715. _ACEOF
  8716. cat confdefs.h >>conftest.$ac_ext
  8717. cat >>conftest.$ac_ext <<_ACEOF
  8718. /* end confdefs.h. */
  8719. $ac_includes_default
  8720. int
  8721. main ()
  8722. {
  8723. if (sizeof ((mode_t)))
  8724. return 0;
  8725. ;
  8726. return 0;
  8727. }
  8728. _ACEOF
  8729. rm -f conftest.$ac_objext
  8730. if { (ac_try="$ac_compile"
  8731. case "(($ac_try" in
  8732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8733. *) ac_try_echo=$ac_try;;
  8734. esac
  8735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8736. $as_echo "$ac_try_echo") >&5
  8737. (eval "$ac_compile") 2>conftest.er1
  8738. ac_status=$?
  8739. grep -v '^ *+' conftest.er1 >conftest.err
  8740. rm -f conftest.er1
  8741. cat conftest.err >&5
  8742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8743. (exit $ac_status); } && {
  8744. test -z "$ac_cxx_werror_flag" ||
  8745. test ! -s conftest.err
  8746. } && test -s conftest.$ac_objext; then
  8747. :
  8748. else
  8749. $as_echo "$as_me: failed program was:" >&5
  8750. sed 's/^/| /' conftest.$ac_ext >&5
  8751. ac_cv_type_mode_t=yes
  8752. fi
  8753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8754. else
  8755. $as_echo "$as_me: failed program was:" >&5
  8756. sed 's/^/| /' conftest.$ac_ext >&5
  8757. fi
  8758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8759. fi
  8760. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8761. $as_echo "$ac_cv_type_mode_t" >&6; }
  8762. if test "x$ac_cv_type_mode_t" = x""yes; then
  8763. :
  8764. else
  8765. cat >>confdefs.h <<_ACEOF
  8766. #define mode_t int
  8767. _ACEOF
  8768. fi
  8769. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8770. $as_echo_n "checking for off_t... " >&6; }
  8771. if test "${ac_cv_type_off_t+set}" = set; then
  8772. $as_echo_n "(cached) " >&6
  8773. else
  8774. ac_cv_type_off_t=no
  8775. cat >conftest.$ac_ext <<_ACEOF
  8776. /* confdefs.h. */
  8777. _ACEOF
  8778. cat confdefs.h >>conftest.$ac_ext
  8779. cat >>conftest.$ac_ext <<_ACEOF
  8780. /* end confdefs.h. */
  8781. $ac_includes_default
  8782. int
  8783. main ()
  8784. {
  8785. if (sizeof (off_t))
  8786. return 0;
  8787. ;
  8788. return 0;
  8789. }
  8790. _ACEOF
  8791. rm -f conftest.$ac_objext
  8792. if { (ac_try="$ac_compile"
  8793. case "(($ac_try" in
  8794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8795. *) ac_try_echo=$ac_try;;
  8796. esac
  8797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8798. $as_echo "$ac_try_echo") >&5
  8799. (eval "$ac_compile") 2>conftest.er1
  8800. ac_status=$?
  8801. grep -v '^ *+' conftest.er1 >conftest.err
  8802. rm -f conftest.er1
  8803. cat conftest.err >&5
  8804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8805. (exit $ac_status); } && {
  8806. test -z "$ac_cxx_werror_flag" ||
  8807. test ! -s conftest.err
  8808. } && test -s conftest.$ac_objext; then
  8809. cat >conftest.$ac_ext <<_ACEOF
  8810. /* confdefs.h. */
  8811. _ACEOF
  8812. cat confdefs.h >>conftest.$ac_ext
  8813. cat >>conftest.$ac_ext <<_ACEOF
  8814. /* end confdefs.h. */
  8815. $ac_includes_default
  8816. int
  8817. main ()
  8818. {
  8819. if (sizeof ((off_t)))
  8820. return 0;
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. rm -f conftest.$ac_objext
  8826. if { (ac_try="$ac_compile"
  8827. case "(($ac_try" in
  8828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8829. *) ac_try_echo=$ac_try;;
  8830. esac
  8831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8832. $as_echo "$ac_try_echo") >&5
  8833. (eval "$ac_compile") 2>conftest.er1
  8834. ac_status=$?
  8835. grep -v '^ *+' conftest.er1 >conftest.err
  8836. rm -f conftest.er1
  8837. cat conftest.err >&5
  8838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. (exit $ac_status); } && {
  8840. test -z "$ac_cxx_werror_flag" ||
  8841. test ! -s conftest.err
  8842. } && test -s conftest.$ac_objext; then
  8843. :
  8844. else
  8845. $as_echo "$as_me: failed program was:" >&5
  8846. sed 's/^/| /' conftest.$ac_ext >&5
  8847. ac_cv_type_off_t=yes
  8848. fi
  8849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8850. else
  8851. $as_echo "$as_me: failed program was:" >&5
  8852. sed 's/^/| /' conftest.$ac_ext >&5
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8855. fi
  8856. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8857. $as_echo "$ac_cv_type_off_t" >&6; }
  8858. if test "x$ac_cv_type_off_t" = x""yes; then
  8859. :
  8860. else
  8861. cat >>confdefs.h <<_ACEOF
  8862. #define off_t long int
  8863. _ACEOF
  8864. fi
  8865. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8866. $as_echo_n "checking for size_t... " >&6; }
  8867. if test "${ac_cv_type_size_t+set}" = set; then
  8868. $as_echo_n "(cached) " >&6
  8869. else
  8870. ac_cv_type_size_t=no
  8871. cat >conftest.$ac_ext <<_ACEOF
  8872. /* confdefs.h. */
  8873. _ACEOF
  8874. cat confdefs.h >>conftest.$ac_ext
  8875. cat >>conftest.$ac_ext <<_ACEOF
  8876. /* end confdefs.h. */
  8877. $ac_includes_default
  8878. int
  8879. main ()
  8880. {
  8881. if (sizeof (size_t))
  8882. return 0;
  8883. ;
  8884. return 0;
  8885. }
  8886. _ACEOF
  8887. rm -f conftest.$ac_objext
  8888. if { (ac_try="$ac_compile"
  8889. case "(($ac_try" in
  8890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8891. *) ac_try_echo=$ac_try;;
  8892. esac
  8893. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8894. $as_echo "$ac_try_echo") >&5
  8895. (eval "$ac_compile") 2>conftest.er1
  8896. ac_status=$?
  8897. grep -v '^ *+' conftest.er1 >conftest.err
  8898. rm -f conftest.er1
  8899. cat conftest.err >&5
  8900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8901. (exit $ac_status); } && {
  8902. test -z "$ac_cxx_werror_flag" ||
  8903. test ! -s conftest.err
  8904. } && test -s conftest.$ac_objext; then
  8905. cat >conftest.$ac_ext <<_ACEOF
  8906. /* confdefs.h. */
  8907. _ACEOF
  8908. cat confdefs.h >>conftest.$ac_ext
  8909. cat >>conftest.$ac_ext <<_ACEOF
  8910. /* end confdefs.h. */
  8911. $ac_includes_default
  8912. int
  8913. main ()
  8914. {
  8915. if (sizeof ((size_t)))
  8916. return 0;
  8917. ;
  8918. return 0;
  8919. }
  8920. _ACEOF
  8921. rm -f conftest.$ac_objext
  8922. if { (ac_try="$ac_compile"
  8923. case "(($ac_try" in
  8924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8925. *) ac_try_echo=$ac_try;;
  8926. esac
  8927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8928. $as_echo "$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. $as_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. :
  8940. else
  8941. $as_echo "$as_me: failed program was:" >&5
  8942. sed 's/^/| /' conftest.$ac_ext >&5
  8943. ac_cv_type_size_t=yes
  8944. fi
  8945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8946. else
  8947. $as_echo "$as_me: failed program was:" >&5
  8948. sed 's/^/| /' conftest.$ac_ext >&5
  8949. fi
  8950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8951. fi
  8952. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8953. $as_echo "$ac_cv_type_size_t" >&6; }
  8954. if test "x$ac_cv_type_size_t" = x""yes; then
  8955. :
  8956. else
  8957. cat >>confdefs.h <<_ACEOF
  8958. #define size_t unsigned int
  8959. _ACEOF
  8960. fi
  8961. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  8962. $as_echo_n "checking for ssize_t... " >&6; }
  8963. if test "${ac_cv_type_ssize_t+set}" = set; then
  8964. $as_echo_n "(cached) " >&6
  8965. else
  8966. ac_cv_type_ssize_t=no
  8967. cat >conftest.$ac_ext <<_ACEOF
  8968. /* confdefs.h. */
  8969. _ACEOF
  8970. cat confdefs.h >>conftest.$ac_ext
  8971. cat >>conftest.$ac_ext <<_ACEOF
  8972. /* end confdefs.h. */
  8973. $ac_includes_default
  8974. int
  8975. main ()
  8976. {
  8977. if (sizeof (ssize_t))
  8978. return 0;
  8979. ;
  8980. return 0;
  8981. }
  8982. _ACEOF
  8983. rm -f conftest.$ac_objext
  8984. if { (ac_try="$ac_compile"
  8985. case "(($ac_try" in
  8986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8987. *) ac_try_echo=$ac_try;;
  8988. esac
  8989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8990. $as_echo "$ac_try_echo") >&5
  8991. (eval "$ac_compile") 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } && {
  8998. test -z "$ac_cxx_werror_flag" ||
  8999. test ! -s conftest.err
  9000. } && test -s conftest.$ac_objext; then
  9001. cat >conftest.$ac_ext <<_ACEOF
  9002. /* confdefs.h. */
  9003. _ACEOF
  9004. cat confdefs.h >>conftest.$ac_ext
  9005. cat >>conftest.$ac_ext <<_ACEOF
  9006. /* end confdefs.h. */
  9007. $ac_includes_default
  9008. int
  9009. main ()
  9010. {
  9011. if (sizeof ((ssize_t)))
  9012. return 0;
  9013. ;
  9014. return 0;
  9015. }
  9016. _ACEOF
  9017. rm -f conftest.$ac_objext
  9018. if { (ac_try="$ac_compile"
  9019. case "(($ac_try" in
  9020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9021. *) ac_try_echo=$ac_try;;
  9022. esac
  9023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9024. $as_echo "$ac_try_echo") >&5
  9025. (eval "$ac_compile") 2>conftest.er1
  9026. ac_status=$?
  9027. grep -v '^ *+' conftest.er1 >conftest.err
  9028. rm -f conftest.er1
  9029. cat conftest.err >&5
  9030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9031. (exit $ac_status); } && {
  9032. test -z "$ac_cxx_werror_flag" ||
  9033. test ! -s conftest.err
  9034. } && test -s conftest.$ac_objext; then
  9035. :
  9036. else
  9037. $as_echo "$as_me: failed program was:" >&5
  9038. sed 's/^/| /' conftest.$ac_ext >&5
  9039. ac_cv_type_ssize_t=yes
  9040. fi
  9041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9042. else
  9043. $as_echo "$as_me: failed program was:" >&5
  9044. sed 's/^/| /' conftest.$ac_ext >&5
  9045. fi
  9046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9047. fi
  9048. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  9049. $as_echo "$ac_cv_type_ssize_t" >&6; }
  9050. if test "x$ac_cv_type_ssize_t" = x""yes; then
  9051. :
  9052. else
  9053. cat >>confdefs.h <<_ACEOF
  9054. #define ssize_t int
  9055. _ACEOF
  9056. fi
  9057. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  9058. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  9059. if test "${ac_cv_header_time+set}" = set; then
  9060. $as_echo_n "(cached) " >&6
  9061. else
  9062. cat >conftest.$ac_ext <<_ACEOF
  9063. /* confdefs.h. */
  9064. _ACEOF
  9065. cat confdefs.h >>conftest.$ac_ext
  9066. cat >>conftest.$ac_ext <<_ACEOF
  9067. /* end confdefs.h. */
  9068. #include <sys/types.h>
  9069. #include <sys/time.h>
  9070. #include <time.h>
  9071. int
  9072. main ()
  9073. {
  9074. if ((struct tm *) 0)
  9075. return 0;
  9076. ;
  9077. return 0;
  9078. }
  9079. _ACEOF
  9080. rm -f conftest.$ac_objext
  9081. if { (ac_try="$ac_compile"
  9082. case "(($ac_try" in
  9083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9084. *) ac_try_echo=$ac_try;;
  9085. esac
  9086. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9087. $as_echo "$ac_try_echo") >&5
  9088. (eval "$ac_compile") 2>conftest.er1
  9089. ac_status=$?
  9090. grep -v '^ *+' conftest.er1 >conftest.err
  9091. rm -f conftest.er1
  9092. cat conftest.err >&5
  9093. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9094. (exit $ac_status); } && {
  9095. test -z "$ac_cxx_werror_flag" ||
  9096. test ! -s conftest.err
  9097. } && test -s conftest.$ac_objext; then
  9098. ac_cv_header_time=yes
  9099. else
  9100. $as_echo "$as_me: failed program was:" >&5
  9101. sed 's/^/| /' conftest.$ac_ext >&5
  9102. ac_cv_header_time=no
  9103. fi
  9104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9105. fi
  9106. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  9107. $as_echo "$ac_cv_header_time" >&6; }
  9108. if test $ac_cv_header_time = yes; then
  9109. cat >>confdefs.h <<\_ACEOF
  9110. #define TIME_WITH_SYS_TIME 1
  9111. _ACEOF
  9112. fi
  9113. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9114. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9115. if test "${ac_cv_struct_tm+set}" = set; then
  9116. $as_echo_n "(cached) " >&6
  9117. else
  9118. cat >conftest.$ac_ext <<_ACEOF
  9119. /* confdefs.h. */
  9120. _ACEOF
  9121. cat confdefs.h >>conftest.$ac_ext
  9122. cat >>conftest.$ac_ext <<_ACEOF
  9123. /* end confdefs.h. */
  9124. #include <sys/types.h>
  9125. #include <time.h>
  9126. int
  9127. main ()
  9128. {
  9129. struct tm tm;
  9130. int *p = &tm.tm_sec;
  9131. return !p;
  9132. ;
  9133. return 0;
  9134. }
  9135. _ACEOF
  9136. rm -f conftest.$ac_objext
  9137. if { (ac_try="$ac_compile"
  9138. case "(($ac_try" in
  9139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9140. *) ac_try_echo=$ac_try;;
  9141. esac
  9142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9143. $as_echo "$ac_try_echo") >&5
  9144. (eval "$ac_compile") 2>conftest.er1
  9145. ac_status=$?
  9146. grep -v '^ *+' conftest.er1 >conftest.err
  9147. rm -f conftest.er1
  9148. cat conftest.err >&5
  9149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9150. (exit $ac_status); } && {
  9151. test -z "$ac_cxx_werror_flag" ||
  9152. test ! -s conftest.err
  9153. } && test -s conftest.$ac_objext; then
  9154. ac_cv_struct_tm=time.h
  9155. else
  9156. $as_echo "$as_me: failed program was:" >&5
  9157. sed 's/^/| /' conftest.$ac_ext >&5
  9158. ac_cv_struct_tm=sys/time.h
  9159. fi
  9160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9161. fi
  9162. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9163. $as_echo "$ac_cv_struct_tm" >&6; }
  9164. if test $ac_cv_struct_tm = sys/time.h; then
  9165. cat >>confdefs.h <<\_ACEOF
  9166. #define TM_IN_SYS_TIME 1
  9167. _ACEOF
  9168. fi
  9169. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  9170. $as_echo_n "checking for uint16_t... " >&6; }
  9171. if test "${ac_cv_c_uint16_t+set}" = set; then
  9172. $as_echo_n "(cached) " >&6
  9173. else
  9174. ac_cv_c_uint16_t=no
  9175. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  9176. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9177. cat >conftest.$ac_ext <<_ACEOF
  9178. /* confdefs.h. */
  9179. _ACEOF
  9180. cat confdefs.h >>conftest.$ac_ext
  9181. cat >>conftest.$ac_ext <<_ACEOF
  9182. /* end confdefs.h. */
  9183. $ac_includes_default
  9184. int
  9185. main ()
  9186. {
  9187. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  9188. test_array [0] = 0
  9189. ;
  9190. return 0;
  9191. }
  9192. _ACEOF
  9193. rm -f conftest.$ac_objext
  9194. if { (ac_try="$ac_compile"
  9195. case "(($ac_try" in
  9196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9197. *) ac_try_echo=$ac_try;;
  9198. esac
  9199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9200. $as_echo "$ac_try_echo") >&5
  9201. (eval "$ac_compile") 2>conftest.er1
  9202. ac_status=$?
  9203. grep -v '^ *+' conftest.er1 >conftest.err
  9204. rm -f conftest.er1
  9205. cat conftest.err >&5
  9206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9207. (exit $ac_status); } && {
  9208. test -z "$ac_cxx_werror_flag" ||
  9209. test ! -s conftest.err
  9210. } && test -s conftest.$ac_objext; then
  9211. case $ac_type in
  9212. uint16_t) ac_cv_c_uint16_t=yes ;;
  9213. *) ac_cv_c_uint16_t=$ac_type ;;
  9214. esac
  9215. else
  9216. $as_echo "$as_me: failed program was:" >&5
  9217. sed 's/^/| /' conftest.$ac_ext >&5
  9218. fi
  9219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9220. test "$ac_cv_c_uint16_t" != no && break
  9221. done
  9222. fi
  9223. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9224. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9225. case $ac_cv_c_uint16_t in #(
  9226. no|yes) ;; #(
  9227. *)
  9228. cat >>confdefs.h <<_ACEOF
  9229. #define uint16_t $ac_cv_c_uint16_t
  9230. _ACEOF
  9231. ;;
  9232. esac
  9233. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9234. $as_echo_n "checking for uint32_t... " >&6; }
  9235. if test "${ac_cv_c_uint32_t+set}" = set; then
  9236. $as_echo_n "(cached) " >&6
  9237. else
  9238. ac_cv_c_uint32_t=no
  9239. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9240. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9241. cat >conftest.$ac_ext <<_ACEOF
  9242. /* confdefs.h. */
  9243. _ACEOF
  9244. cat confdefs.h >>conftest.$ac_ext
  9245. cat >>conftest.$ac_ext <<_ACEOF
  9246. /* end confdefs.h. */
  9247. $ac_includes_default
  9248. int
  9249. main ()
  9250. {
  9251. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9252. test_array [0] = 0
  9253. ;
  9254. return 0;
  9255. }
  9256. _ACEOF
  9257. rm -f conftest.$ac_objext
  9258. if { (ac_try="$ac_compile"
  9259. case "(($ac_try" in
  9260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9261. *) ac_try_echo=$ac_try;;
  9262. esac
  9263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9264. $as_echo "$ac_try_echo") >&5
  9265. (eval "$ac_compile") 2>conftest.er1
  9266. ac_status=$?
  9267. grep -v '^ *+' conftest.er1 >conftest.err
  9268. rm -f conftest.er1
  9269. cat conftest.err >&5
  9270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. (exit $ac_status); } && {
  9272. test -z "$ac_cxx_werror_flag" ||
  9273. test ! -s conftest.err
  9274. } && test -s conftest.$ac_objext; then
  9275. case $ac_type in
  9276. uint32_t) ac_cv_c_uint32_t=yes ;;
  9277. *) ac_cv_c_uint32_t=$ac_type ;;
  9278. esac
  9279. else
  9280. $as_echo "$as_me: failed program was:" >&5
  9281. sed 's/^/| /' conftest.$ac_ext >&5
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9284. test "$ac_cv_c_uint32_t" != no && break
  9285. done
  9286. fi
  9287. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9288. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9289. case $ac_cv_c_uint32_t in #(
  9290. no|yes) ;; #(
  9291. *)
  9292. cat >>confdefs.h <<\_ACEOF
  9293. #define _UINT32_T 1
  9294. _ACEOF
  9295. cat >>confdefs.h <<_ACEOF
  9296. #define uint32_t $ac_cv_c_uint32_t
  9297. _ACEOF
  9298. ;;
  9299. esac
  9300. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9301. $as_echo_n "checking for uint64_t... " >&6; }
  9302. if test "${ac_cv_c_uint64_t+set}" = set; then
  9303. $as_echo_n "(cached) " >&6
  9304. else
  9305. ac_cv_c_uint64_t=no
  9306. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9307. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9308. cat >conftest.$ac_ext <<_ACEOF
  9309. /* confdefs.h. */
  9310. _ACEOF
  9311. cat confdefs.h >>conftest.$ac_ext
  9312. cat >>conftest.$ac_ext <<_ACEOF
  9313. /* end confdefs.h. */
  9314. $ac_includes_default
  9315. int
  9316. main ()
  9317. {
  9318. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9319. test_array [0] = 0
  9320. ;
  9321. return 0;
  9322. }
  9323. _ACEOF
  9324. rm -f conftest.$ac_objext
  9325. if { (ac_try="$ac_compile"
  9326. case "(($ac_try" in
  9327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9328. *) ac_try_echo=$ac_try;;
  9329. esac
  9330. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9331. $as_echo "$ac_try_echo") >&5
  9332. (eval "$ac_compile") 2>conftest.er1
  9333. ac_status=$?
  9334. grep -v '^ *+' conftest.er1 >conftest.err
  9335. rm -f conftest.er1
  9336. cat conftest.err >&5
  9337. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9338. (exit $ac_status); } && {
  9339. test -z "$ac_cxx_werror_flag" ||
  9340. test ! -s conftest.err
  9341. } && test -s conftest.$ac_objext; then
  9342. case $ac_type in
  9343. uint64_t) ac_cv_c_uint64_t=yes ;;
  9344. *) ac_cv_c_uint64_t=$ac_type ;;
  9345. esac
  9346. else
  9347. $as_echo "$as_me: failed program was:" >&5
  9348. sed 's/^/| /' conftest.$ac_ext >&5
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9351. test "$ac_cv_c_uint64_t" != no && break
  9352. done
  9353. fi
  9354. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9355. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9356. case $ac_cv_c_uint64_t in #(
  9357. no|yes) ;; #(
  9358. *)
  9359. cat >>confdefs.h <<\_ACEOF
  9360. #define _UINT64_T 1
  9361. _ACEOF
  9362. cat >>confdefs.h <<_ACEOF
  9363. #define uint64_t $ac_cv_c_uint64_t
  9364. _ACEOF
  9365. ;;
  9366. esac
  9367. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9368. $as_echo_n "checking for uint8_t... " >&6; }
  9369. if test "${ac_cv_c_uint8_t+set}" = set; then
  9370. $as_echo_n "(cached) " >&6
  9371. else
  9372. ac_cv_c_uint8_t=no
  9373. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9374. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9375. cat >conftest.$ac_ext <<_ACEOF
  9376. /* confdefs.h. */
  9377. _ACEOF
  9378. cat confdefs.h >>conftest.$ac_ext
  9379. cat >>conftest.$ac_ext <<_ACEOF
  9380. /* end confdefs.h. */
  9381. $ac_includes_default
  9382. int
  9383. main ()
  9384. {
  9385. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9386. test_array [0] = 0
  9387. ;
  9388. return 0;
  9389. }
  9390. _ACEOF
  9391. rm -f conftest.$ac_objext
  9392. if { (ac_try="$ac_compile"
  9393. case "(($ac_try" in
  9394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9395. *) ac_try_echo=$ac_try;;
  9396. esac
  9397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9398. $as_echo "$ac_try_echo") >&5
  9399. (eval "$ac_compile") 2>conftest.er1
  9400. ac_status=$?
  9401. grep -v '^ *+' conftest.er1 >conftest.err
  9402. rm -f conftest.er1
  9403. cat conftest.err >&5
  9404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9405. (exit $ac_status); } && {
  9406. test -z "$ac_cxx_werror_flag" ||
  9407. test ! -s conftest.err
  9408. } && test -s conftest.$ac_objext; then
  9409. case $ac_type in
  9410. uint8_t) ac_cv_c_uint8_t=yes ;;
  9411. *) ac_cv_c_uint8_t=$ac_type ;;
  9412. esac
  9413. else
  9414. $as_echo "$as_me: failed program was:" >&5
  9415. sed 's/^/| /' conftest.$ac_ext >&5
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9418. test "$ac_cv_c_uint8_t" != no && break
  9419. done
  9420. fi
  9421. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9422. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9423. case $ac_cv_c_uint8_t in #(
  9424. no|yes) ;; #(
  9425. *)
  9426. cat >>confdefs.h <<\_ACEOF
  9427. #define _UINT8_T 1
  9428. _ACEOF
  9429. cat >>confdefs.h <<_ACEOF
  9430. #define uint8_t $ac_cv_c_uint8_t
  9431. _ACEOF
  9432. ;;
  9433. esac
  9434. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9435. $as_echo_n "checking for working volatile... " >&6; }
  9436. if test "${ac_cv_c_volatile+set}" = set; then
  9437. $as_echo_n "(cached) " >&6
  9438. else
  9439. cat >conftest.$ac_ext <<_ACEOF
  9440. /* confdefs.h. */
  9441. _ACEOF
  9442. cat confdefs.h >>conftest.$ac_ext
  9443. cat >>conftest.$ac_ext <<_ACEOF
  9444. /* end confdefs.h. */
  9445. int
  9446. main ()
  9447. {
  9448. volatile int x;
  9449. int * volatile y = (int *) 0;
  9450. return !x && !y;
  9451. ;
  9452. return 0;
  9453. }
  9454. _ACEOF
  9455. rm -f conftest.$ac_objext
  9456. if { (ac_try="$ac_compile"
  9457. case "(($ac_try" in
  9458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9459. *) ac_try_echo=$ac_try;;
  9460. esac
  9461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9462. $as_echo "$ac_try_echo") >&5
  9463. (eval "$ac_compile") 2>conftest.er1
  9464. ac_status=$?
  9465. grep -v '^ *+' conftest.er1 >conftest.err
  9466. rm -f conftest.er1
  9467. cat conftest.err >&5
  9468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9469. (exit $ac_status); } && {
  9470. test -z "$ac_cxx_werror_flag" ||
  9471. test ! -s conftest.err
  9472. } && test -s conftest.$ac_objext; then
  9473. ac_cv_c_volatile=yes
  9474. else
  9475. $as_echo "$as_me: failed program was:" >&5
  9476. sed 's/^/| /' conftest.$ac_ext >&5
  9477. ac_cv_c_volatile=no
  9478. fi
  9479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9480. fi
  9481. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9482. $as_echo "$ac_cv_c_volatile" >&6; }
  9483. if test $ac_cv_c_volatile = no; then
  9484. cat >>confdefs.h <<\_ACEOF
  9485. #define volatile /**/
  9486. _ACEOF
  9487. fi
  9488. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9489. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9490. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9491. $as_echo_n "(cached) " >&6
  9492. else
  9493. ac_cv_type_ptrdiff_t=no
  9494. cat >conftest.$ac_ext <<_ACEOF
  9495. /* confdefs.h. */
  9496. _ACEOF
  9497. cat confdefs.h >>conftest.$ac_ext
  9498. cat >>conftest.$ac_ext <<_ACEOF
  9499. /* end confdefs.h. */
  9500. $ac_includes_default
  9501. int
  9502. main ()
  9503. {
  9504. if (sizeof (ptrdiff_t))
  9505. return 0;
  9506. ;
  9507. return 0;
  9508. }
  9509. _ACEOF
  9510. rm -f conftest.$ac_objext
  9511. if { (ac_try="$ac_compile"
  9512. case "(($ac_try" in
  9513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9514. *) ac_try_echo=$ac_try;;
  9515. esac
  9516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9517. $as_echo "$ac_try_echo") >&5
  9518. (eval "$ac_compile") 2>conftest.er1
  9519. ac_status=$?
  9520. grep -v '^ *+' conftest.er1 >conftest.err
  9521. rm -f conftest.er1
  9522. cat conftest.err >&5
  9523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9524. (exit $ac_status); } && {
  9525. test -z "$ac_cxx_werror_flag" ||
  9526. test ! -s conftest.err
  9527. } && test -s conftest.$ac_objext; then
  9528. cat >conftest.$ac_ext <<_ACEOF
  9529. /* confdefs.h. */
  9530. _ACEOF
  9531. cat confdefs.h >>conftest.$ac_ext
  9532. cat >>conftest.$ac_ext <<_ACEOF
  9533. /* end confdefs.h. */
  9534. $ac_includes_default
  9535. int
  9536. main ()
  9537. {
  9538. if (sizeof ((ptrdiff_t)))
  9539. return 0;
  9540. ;
  9541. return 0;
  9542. }
  9543. _ACEOF
  9544. rm -f conftest.$ac_objext
  9545. if { (ac_try="$ac_compile"
  9546. case "(($ac_try" in
  9547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9548. *) ac_try_echo=$ac_try;;
  9549. esac
  9550. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9551. $as_echo "$ac_try_echo") >&5
  9552. (eval "$ac_compile") 2>conftest.er1
  9553. ac_status=$?
  9554. grep -v '^ *+' conftest.er1 >conftest.err
  9555. rm -f conftest.er1
  9556. cat conftest.err >&5
  9557. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9558. (exit $ac_status); } && {
  9559. test -z "$ac_cxx_werror_flag" ||
  9560. test ! -s conftest.err
  9561. } && test -s conftest.$ac_objext; then
  9562. :
  9563. else
  9564. $as_echo "$as_me: failed program was:" >&5
  9565. sed 's/^/| /' conftest.$ac_ext >&5
  9566. ac_cv_type_ptrdiff_t=yes
  9567. fi
  9568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9569. else
  9570. $as_echo "$as_me: failed program was:" >&5
  9571. sed 's/^/| /' conftest.$ac_ext >&5
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9574. fi
  9575. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9576. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9577. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9578. cat >>confdefs.h <<_ACEOF
  9579. #define HAVE_PTRDIFF_T 1
  9580. _ACEOF
  9581. fi
  9582. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9583. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9584. if test "${ac_cv_c_bigendian+set}" = set; then
  9585. $as_echo_n "(cached) " >&6
  9586. else
  9587. ac_cv_c_bigendian=unknown
  9588. # See if we're dealing with a universal compiler.
  9589. cat >conftest.$ac_ext <<_ACEOF
  9590. /* confdefs.h. */
  9591. _ACEOF
  9592. cat confdefs.h >>conftest.$ac_ext
  9593. cat >>conftest.$ac_ext <<_ACEOF
  9594. /* end confdefs.h. */
  9595. #ifndef __APPLE_CC__
  9596. not a universal capable compiler
  9597. #endif
  9598. typedef int dummy;
  9599. _ACEOF
  9600. rm -f conftest.$ac_objext
  9601. if { (ac_try="$ac_compile"
  9602. case "(($ac_try" in
  9603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9604. *) ac_try_echo=$ac_try;;
  9605. esac
  9606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9607. $as_echo "$ac_try_echo") >&5
  9608. (eval "$ac_compile") 2>conftest.er1
  9609. ac_status=$?
  9610. grep -v '^ *+' conftest.er1 >conftest.err
  9611. rm -f conftest.er1
  9612. cat conftest.err >&5
  9613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9614. (exit $ac_status); } && {
  9615. test -z "$ac_cxx_werror_flag" ||
  9616. test ! -s conftest.err
  9617. } && test -s conftest.$ac_objext; then
  9618. # Check for potential -arch flags. It is not universal unless
  9619. # there are some -arch flags. Note that *ppc* also matches
  9620. # ppc64. This check is also rather less than ideal.
  9621. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9622. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9623. esac
  9624. else
  9625. $as_echo "$as_me: failed program was:" >&5
  9626. sed 's/^/| /' conftest.$ac_ext >&5
  9627. fi
  9628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9629. if test $ac_cv_c_bigendian = unknown; then
  9630. # See if sys/param.h defines the BYTE_ORDER macro.
  9631. cat >conftest.$ac_ext <<_ACEOF
  9632. /* confdefs.h. */
  9633. _ACEOF
  9634. cat confdefs.h >>conftest.$ac_ext
  9635. cat >>conftest.$ac_ext <<_ACEOF
  9636. /* end confdefs.h. */
  9637. #include <sys/types.h>
  9638. #include <sys/param.h>
  9639. int
  9640. main ()
  9641. {
  9642. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9643. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9644. && LITTLE_ENDIAN)
  9645. bogus endian macros
  9646. #endif
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. rm -f conftest.$ac_objext
  9652. if { (ac_try="$ac_compile"
  9653. case "(($ac_try" in
  9654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9655. *) ac_try_echo=$ac_try;;
  9656. esac
  9657. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9658. $as_echo "$ac_try_echo") >&5
  9659. (eval "$ac_compile") 2>conftest.er1
  9660. ac_status=$?
  9661. grep -v '^ *+' conftest.er1 >conftest.err
  9662. rm -f conftest.er1
  9663. cat conftest.err >&5
  9664. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9665. (exit $ac_status); } && {
  9666. test -z "$ac_cxx_werror_flag" ||
  9667. test ! -s conftest.err
  9668. } && test -s conftest.$ac_objext; then
  9669. # It does; now see whether it defined to BIG_ENDIAN or not.
  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 <sys/types.h>
  9677. #include <sys/param.h>
  9678. int
  9679. main ()
  9680. {
  9681. #if BYTE_ORDER != BIG_ENDIAN
  9682. not big endian
  9683. #endif
  9684. ;
  9685. return 0;
  9686. }
  9687. _ACEOF
  9688. rm -f conftest.$ac_objext
  9689. if { (ac_try="$ac_compile"
  9690. case "(($ac_try" in
  9691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9692. *) ac_try_echo=$ac_try;;
  9693. esac
  9694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9695. $as_echo "$ac_try_echo") >&5
  9696. (eval "$ac_compile") 2>conftest.er1
  9697. ac_status=$?
  9698. grep -v '^ *+' conftest.er1 >conftest.err
  9699. rm -f conftest.er1
  9700. cat conftest.err >&5
  9701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9702. (exit $ac_status); } && {
  9703. test -z "$ac_cxx_werror_flag" ||
  9704. test ! -s conftest.err
  9705. } && test -s conftest.$ac_objext; then
  9706. ac_cv_c_bigendian=yes
  9707. else
  9708. $as_echo "$as_me: failed program was:" >&5
  9709. sed 's/^/| /' conftest.$ac_ext >&5
  9710. ac_cv_c_bigendian=no
  9711. fi
  9712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9713. else
  9714. $as_echo "$as_me: failed program was:" >&5
  9715. sed 's/^/| /' conftest.$ac_ext >&5
  9716. fi
  9717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9718. fi
  9719. if test $ac_cv_c_bigendian = unknown; then
  9720. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9721. cat >conftest.$ac_ext <<_ACEOF
  9722. /* confdefs.h. */
  9723. _ACEOF
  9724. cat confdefs.h >>conftest.$ac_ext
  9725. cat >>conftest.$ac_ext <<_ACEOF
  9726. /* end confdefs.h. */
  9727. #include <limits.h>
  9728. int
  9729. main ()
  9730. {
  9731. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9732. bogus endian macros
  9733. #endif
  9734. ;
  9735. return 0;
  9736. }
  9737. _ACEOF
  9738. rm -f conftest.$ac_objext
  9739. if { (ac_try="$ac_compile"
  9740. case "(($ac_try" in
  9741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9742. *) ac_try_echo=$ac_try;;
  9743. esac
  9744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9745. $as_echo "$ac_try_echo") >&5
  9746. (eval "$ac_compile") 2>conftest.er1
  9747. ac_status=$?
  9748. grep -v '^ *+' conftest.er1 >conftest.err
  9749. rm -f conftest.er1
  9750. cat conftest.err >&5
  9751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9752. (exit $ac_status); } && {
  9753. test -z "$ac_cxx_werror_flag" ||
  9754. test ! -s conftest.err
  9755. } && test -s conftest.$ac_objext; then
  9756. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9757. cat >conftest.$ac_ext <<_ACEOF
  9758. /* confdefs.h. */
  9759. _ACEOF
  9760. cat confdefs.h >>conftest.$ac_ext
  9761. cat >>conftest.$ac_ext <<_ACEOF
  9762. /* end confdefs.h. */
  9763. #include <limits.h>
  9764. int
  9765. main ()
  9766. {
  9767. #ifndef _BIG_ENDIAN
  9768. not big endian
  9769. #endif
  9770. ;
  9771. return 0;
  9772. }
  9773. _ACEOF
  9774. rm -f conftest.$ac_objext
  9775. if { (ac_try="$ac_compile"
  9776. case "(($ac_try" in
  9777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9778. *) ac_try_echo=$ac_try;;
  9779. esac
  9780. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9781. $as_echo "$ac_try_echo") >&5
  9782. (eval "$ac_compile") 2>conftest.er1
  9783. ac_status=$?
  9784. grep -v '^ *+' conftest.er1 >conftest.err
  9785. rm -f conftest.er1
  9786. cat conftest.err >&5
  9787. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9788. (exit $ac_status); } && {
  9789. test -z "$ac_cxx_werror_flag" ||
  9790. test ! -s conftest.err
  9791. } && test -s conftest.$ac_objext; then
  9792. ac_cv_c_bigendian=yes
  9793. else
  9794. $as_echo "$as_me: failed program was:" >&5
  9795. sed 's/^/| /' conftest.$ac_ext >&5
  9796. ac_cv_c_bigendian=no
  9797. fi
  9798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9799. else
  9800. $as_echo "$as_me: failed program was:" >&5
  9801. sed 's/^/| /' conftest.$ac_ext >&5
  9802. fi
  9803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9804. fi
  9805. if test $ac_cv_c_bigendian = unknown; then
  9806. # Compile a test program.
  9807. if test "$cross_compiling" = yes; then
  9808. # Try to guess by grepping values from an object file.
  9809. cat >conftest.$ac_ext <<_ACEOF
  9810. /* confdefs.h. */
  9811. _ACEOF
  9812. cat confdefs.h >>conftest.$ac_ext
  9813. cat >>conftest.$ac_ext <<_ACEOF
  9814. /* end confdefs.h. */
  9815. short int ascii_mm[] =
  9816. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9817. short int ascii_ii[] =
  9818. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9819. int use_ascii (int i) {
  9820. return ascii_mm[i] + ascii_ii[i];
  9821. }
  9822. short int ebcdic_ii[] =
  9823. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9824. short int ebcdic_mm[] =
  9825. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9826. int use_ebcdic (int i) {
  9827. return ebcdic_mm[i] + ebcdic_ii[i];
  9828. }
  9829. extern int foo;
  9830. int
  9831. main ()
  9832. {
  9833. return use_ascii (foo) == use_ebcdic (foo);
  9834. ;
  9835. return 0;
  9836. }
  9837. _ACEOF
  9838. rm -f conftest.$ac_objext
  9839. if { (ac_try="$ac_compile"
  9840. case "(($ac_try" in
  9841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9842. *) ac_try_echo=$ac_try;;
  9843. esac
  9844. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9845. $as_echo "$ac_try_echo") >&5
  9846. (eval "$ac_compile") 2>conftest.er1
  9847. ac_status=$?
  9848. grep -v '^ *+' conftest.er1 >conftest.err
  9849. rm -f conftest.er1
  9850. cat conftest.err >&5
  9851. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9852. (exit $ac_status); } && {
  9853. test -z "$ac_cxx_werror_flag" ||
  9854. test ! -s conftest.err
  9855. } && test -s conftest.$ac_objext; then
  9856. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9857. ac_cv_c_bigendian=yes
  9858. fi
  9859. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9860. if test "$ac_cv_c_bigendian" = unknown; then
  9861. ac_cv_c_bigendian=no
  9862. else
  9863. # finding both strings is unlikely to happen, but who knows?
  9864. ac_cv_c_bigendian=unknown
  9865. fi
  9866. fi
  9867. else
  9868. $as_echo "$as_me: failed program was:" >&5
  9869. sed 's/^/| /' conftest.$ac_ext >&5
  9870. fi
  9871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9872. else
  9873. cat >conftest.$ac_ext <<_ACEOF
  9874. /* confdefs.h. */
  9875. _ACEOF
  9876. cat confdefs.h >>conftest.$ac_ext
  9877. cat >>conftest.$ac_ext <<_ACEOF
  9878. /* end confdefs.h. */
  9879. $ac_includes_default
  9880. int
  9881. main ()
  9882. {
  9883. /* Are we little or big endian? From Harbison&Steele. */
  9884. union
  9885. {
  9886. long int l;
  9887. char c[sizeof (long int)];
  9888. } u;
  9889. u.l = 1;
  9890. return u.c[sizeof (long int) - 1] == 1;
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. rm -f conftest$ac_exeext
  9896. if { (ac_try="$ac_link"
  9897. case "(($ac_try" in
  9898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9899. *) ac_try_echo=$ac_try;;
  9900. esac
  9901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9902. $as_echo "$ac_try_echo") >&5
  9903. (eval "$ac_link") 2>&5
  9904. ac_status=$?
  9905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9906. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9907. { (case "(($ac_try" in
  9908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9909. *) ac_try_echo=$ac_try;;
  9910. esac
  9911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9912. $as_echo "$ac_try_echo") >&5
  9913. (eval "$ac_try") 2>&5
  9914. ac_status=$?
  9915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9916. (exit $ac_status); }; }; then
  9917. ac_cv_c_bigendian=no
  9918. else
  9919. $as_echo "$as_me: program exited with status $ac_status" >&5
  9920. $as_echo "$as_me: failed program was:" >&5
  9921. sed 's/^/| /' conftest.$ac_ext >&5
  9922. ( exit $ac_status )
  9923. ac_cv_c_bigendian=yes
  9924. fi
  9925. rm -rf conftest.dSYM
  9926. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9927. fi
  9928. fi
  9929. fi
  9930. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9931. $as_echo "$ac_cv_c_bigendian" >&6; }
  9932. case $ac_cv_c_bigendian in #(
  9933. yes)
  9934. cat >>confdefs.h <<\_ACEOF
  9935. #define WORDS_BIGENDIAN 1
  9936. _ACEOF
  9937. ;; #(
  9938. no)
  9939. ;; #(
  9940. universal)
  9941. cat >>confdefs.h <<\_ACEOF
  9942. #define AC_APPLE_UNIVERSAL_BUILD 1
  9943. _ACEOF
  9944. ;; #(
  9945. *)
  9946. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  9947. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9948. $as_echo "$as_me: error: unknown endianness
  9949. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9950. { (exit 1); exit 1; }; } ;;
  9951. esac
  9952. # Check whether --enable-largefile was given.
  9953. if test "${enable_largefile+set}" = set; then
  9954. enableval=$enable_largefile;
  9955. fi
  9956. if test "$enable_largefile" != no; then
  9957. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9958. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9959. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9960. $as_echo_n "(cached) " >&6
  9961. else
  9962. ac_cv_sys_largefile_CC=no
  9963. if test "$GCC" != yes; then
  9964. ac_save_CC=$CC
  9965. while :; do
  9966. # IRIX 6.2 and later do not support large files by default,
  9967. # so use the C compiler's -n32 option if that helps.
  9968. cat >conftest.$ac_ext <<_ACEOF
  9969. /* confdefs.h. */
  9970. _ACEOF
  9971. cat confdefs.h >>conftest.$ac_ext
  9972. cat >>conftest.$ac_ext <<_ACEOF
  9973. /* end confdefs.h. */
  9974. #include <sys/types.h>
  9975. /* Check that off_t can represent 2**63 - 1 correctly.
  9976. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9977. since some C++ compilers masquerading as C compilers
  9978. incorrectly reject 9223372036854775807. */
  9979. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9980. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9981. && LARGE_OFF_T % 2147483647 == 1)
  9982. ? 1 : -1];
  9983. int
  9984. main ()
  9985. {
  9986. ;
  9987. return 0;
  9988. }
  9989. _ACEOF
  9990. rm -f conftest.$ac_objext
  9991. if { (ac_try="$ac_compile"
  9992. case "(($ac_try" in
  9993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9994. *) ac_try_echo=$ac_try;;
  9995. esac
  9996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9997. $as_echo "$ac_try_echo") >&5
  9998. (eval "$ac_compile") 2>conftest.er1
  9999. ac_status=$?
  10000. grep -v '^ *+' conftest.er1 >conftest.err
  10001. rm -f conftest.er1
  10002. cat conftest.err >&5
  10003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10004. (exit $ac_status); } && {
  10005. test -z "$ac_cxx_werror_flag" ||
  10006. test ! -s conftest.err
  10007. } && test -s conftest.$ac_objext; then
  10008. break
  10009. else
  10010. $as_echo "$as_me: failed program was:" >&5
  10011. sed 's/^/| /' conftest.$ac_ext >&5
  10012. fi
  10013. rm -f core conftest.err conftest.$ac_objext
  10014. CC="$CC -n32"
  10015. rm -f conftest.$ac_objext
  10016. if { (ac_try="$ac_compile"
  10017. case "(($ac_try" in
  10018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10019. *) ac_try_echo=$ac_try;;
  10020. esac
  10021. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10022. $as_echo "$ac_try_echo") >&5
  10023. (eval "$ac_compile") 2>conftest.er1
  10024. ac_status=$?
  10025. grep -v '^ *+' conftest.er1 >conftest.err
  10026. rm -f conftest.er1
  10027. cat conftest.err >&5
  10028. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10029. (exit $ac_status); } && {
  10030. test -z "$ac_cxx_werror_flag" ||
  10031. test ! -s conftest.err
  10032. } && test -s conftest.$ac_objext; then
  10033. ac_cv_sys_largefile_CC=' -n32'; break
  10034. else
  10035. $as_echo "$as_me: failed program was:" >&5
  10036. sed 's/^/| /' conftest.$ac_ext >&5
  10037. fi
  10038. rm -f core conftest.err conftest.$ac_objext
  10039. break
  10040. done
  10041. CC=$ac_save_CC
  10042. rm -f conftest.$ac_ext
  10043. fi
  10044. fi
  10045. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10046. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10047. if test "$ac_cv_sys_largefile_CC" != no; then
  10048. CC=$CC$ac_cv_sys_largefile_CC
  10049. fi
  10050. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10051. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10052. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10053. $as_echo_n "(cached) " >&6
  10054. else
  10055. while :; do
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. #include <sys/types.h>
  10063. /* Check that off_t can represent 2**63 - 1 correctly.
  10064. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10065. since some C++ compilers masquerading as C compilers
  10066. incorrectly reject 9223372036854775807. */
  10067. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10068. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10069. && LARGE_OFF_T % 2147483647 == 1)
  10070. ? 1 : -1];
  10071. int
  10072. main ()
  10073. {
  10074. ;
  10075. return 0;
  10076. }
  10077. _ACEOF
  10078. rm -f conftest.$ac_objext
  10079. if { (ac_try="$ac_compile"
  10080. case "(($ac_try" in
  10081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10082. *) ac_try_echo=$ac_try;;
  10083. esac
  10084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10085. $as_echo "$ac_try_echo") >&5
  10086. (eval "$ac_compile") 2>conftest.er1
  10087. ac_status=$?
  10088. grep -v '^ *+' conftest.er1 >conftest.err
  10089. rm -f conftest.er1
  10090. cat conftest.err >&5
  10091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10092. (exit $ac_status); } && {
  10093. test -z "$ac_cxx_werror_flag" ||
  10094. test ! -s conftest.err
  10095. } && test -s conftest.$ac_objext; then
  10096. ac_cv_sys_file_offset_bits=no; break
  10097. else
  10098. $as_echo "$as_me: failed program was:" >&5
  10099. sed 's/^/| /' conftest.$ac_ext >&5
  10100. fi
  10101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10102. cat >conftest.$ac_ext <<_ACEOF
  10103. /* confdefs.h. */
  10104. _ACEOF
  10105. cat confdefs.h >>conftest.$ac_ext
  10106. cat >>conftest.$ac_ext <<_ACEOF
  10107. /* end confdefs.h. */
  10108. #define _FILE_OFFSET_BITS 64
  10109. #include <sys/types.h>
  10110. /* Check that off_t can represent 2**63 - 1 correctly.
  10111. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10112. since some C++ compilers masquerading as C compilers
  10113. incorrectly reject 9223372036854775807. */
  10114. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10115. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10116. && LARGE_OFF_T % 2147483647 == 1)
  10117. ? 1 : -1];
  10118. int
  10119. main ()
  10120. {
  10121. ;
  10122. return 0;
  10123. }
  10124. _ACEOF
  10125. rm -f conftest.$ac_objext
  10126. if { (ac_try="$ac_compile"
  10127. case "(($ac_try" in
  10128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10129. *) ac_try_echo=$ac_try;;
  10130. esac
  10131. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10132. $as_echo "$ac_try_echo") >&5
  10133. (eval "$ac_compile") 2>conftest.er1
  10134. ac_status=$?
  10135. grep -v '^ *+' conftest.er1 >conftest.err
  10136. rm -f conftest.er1
  10137. cat conftest.err >&5
  10138. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10139. (exit $ac_status); } && {
  10140. test -z "$ac_cxx_werror_flag" ||
  10141. test ! -s conftest.err
  10142. } && test -s conftest.$ac_objext; then
  10143. ac_cv_sys_file_offset_bits=64; break
  10144. else
  10145. $as_echo "$as_me: failed program was:" >&5
  10146. sed 's/^/| /' conftest.$ac_ext >&5
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10149. ac_cv_sys_file_offset_bits=unknown
  10150. break
  10151. done
  10152. fi
  10153. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10154. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10155. case $ac_cv_sys_file_offset_bits in #(
  10156. no | unknown) ;;
  10157. *)
  10158. cat >>confdefs.h <<_ACEOF
  10159. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10160. _ACEOF
  10161. ;;
  10162. esac
  10163. rm -rf conftest*
  10164. if test $ac_cv_sys_file_offset_bits = unknown; then
  10165. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10166. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10167. if test "${ac_cv_sys_large_files+set}" = set; then
  10168. $as_echo_n "(cached) " >&6
  10169. else
  10170. while :; do
  10171. cat >conftest.$ac_ext <<_ACEOF
  10172. /* confdefs.h. */
  10173. _ACEOF
  10174. cat confdefs.h >>conftest.$ac_ext
  10175. cat >>conftest.$ac_ext <<_ACEOF
  10176. /* end confdefs.h. */
  10177. #include <sys/types.h>
  10178. /* Check that off_t can represent 2**63 - 1 correctly.
  10179. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10180. since some C++ compilers masquerading as C compilers
  10181. incorrectly reject 9223372036854775807. */
  10182. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10183. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10184. && LARGE_OFF_T % 2147483647 == 1)
  10185. ? 1 : -1];
  10186. int
  10187. main ()
  10188. {
  10189. ;
  10190. return 0;
  10191. }
  10192. _ACEOF
  10193. rm -f conftest.$ac_objext
  10194. if { (ac_try="$ac_compile"
  10195. case "(($ac_try" in
  10196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10197. *) ac_try_echo=$ac_try;;
  10198. esac
  10199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10200. $as_echo "$ac_try_echo") >&5
  10201. (eval "$ac_compile") 2>conftest.er1
  10202. ac_status=$?
  10203. grep -v '^ *+' conftest.er1 >conftest.err
  10204. rm -f conftest.er1
  10205. cat conftest.err >&5
  10206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10207. (exit $ac_status); } && {
  10208. test -z "$ac_cxx_werror_flag" ||
  10209. test ! -s conftest.err
  10210. } && test -s conftest.$ac_objext; then
  10211. ac_cv_sys_large_files=no; break
  10212. else
  10213. $as_echo "$as_me: failed program was:" >&5
  10214. sed 's/^/| /' conftest.$ac_ext >&5
  10215. fi
  10216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10217. cat >conftest.$ac_ext <<_ACEOF
  10218. /* confdefs.h. */
  10219. _ACEOF
  10220. cat confdefs.h >>conftest.$ac_ext
  10221. cat >>conftest.$ac_ext <<_ACEOF
  10222. /* end confdefs.h. */
  10223. #define _LARGE_FILES 1
  10224. #include <sys/types.h>
  10225. /* Check that off_t can represent 2**63 - 1 correctly.
  10226. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10227. since some C++ compilers masquerading as C compilers
  10228. incorrectly reject 9223372036854775807. */
  10229. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10230. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10231. && LARGE_OFF_T % 2147483647 == 1)
  10232. ? 1 : -1];
  10233. int
  10234. main ()
  10235. {
  10236. ;
  10237. return 0;
  10238. }
  10239. _ACEOF
  10240. rm -f conftest.$ac_objext
  10241. if { (ac_try="$ac_compile"
  10242. case "(($ac_try" in
  10243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10244. *) ac_try_echo=$ac_try;;
  10245. esac
  10246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10247. $as_echo "$ac_try_echo") >&5
  10248. (eval "$ac_compile") 2>conftest.er1
  10249. ac_status=$?
  10250. grep -v '^ *+' conftest.er1 >conftest.err
  10251. rm -f conftest.er1
  10252. cat conftest.err >&5
  10253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10254. (exit $ac_status); } && {
  10255. test -z "$ac_cxx_werror_flag" ||
  10256. test ! -s conftest.err
  10257. } && test -s conftest.$ac_objext; then
  10258. ac_cv_sys_large_files=1; break
  10259. else
  10260. $as_echo "$as_me: failed program was:" >&5
  10261. sed 's/^/| /' conftest.$ac_ext >&5
  10262. fi
  10263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10264. ac_cv_sys_large_files=unknown
  10265. break
  10266. done
  10267. fi
  10268. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10269. $as_echo "$ac_cv_sys_large_files" >&6; }
  10270. case $ac_cv_sys_large_files in #(
  10271. no | unknown) ;;
  10272. *)
  10273. cat >>confdefs.h <<_ACEOF
  10274. #define _LARGE_FILES $ac_cv_sys_large_files
  10275. _ACEOF
  10276. ;;
  10277. esac
  10278. rm -rf conftest*
  10279. fi
  10280. fi
  10281. # Checks for library functions.
  10282. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10283. $as_echo_n "checking whether NLS is requested... " >&6; }
  10284. # Check whether --enable-nls was given.
  10285. if test "${enable_nls+set}" = set; then
  10286. enableval=$enable_nls; USE_NLS=$enableval
  10287. else
  10288. USE_NLS=yes
  10289. fi
  10290. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10291. $as_echo "$USE_NLS" >&6; }
  10292. GETTEXT_MACRO_VERSION=0.17
  10293. # Prepare PATH_SEPARATOR.
  10294. # The user is always right.
  10295. if test "${PATH_SEPARATOR+set}" != set; then
  10296. echo "#! /bin/sh" >conf$$.sh
  10297. echo "exit 0" >>conf$$.sh
  10298. chmod +x conf$$.sh
  10299. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10300. PATH_SEPARATOR=';'
  10301. else
  10302. PATH_SEPARATOR=:
  10303. fi
  10304. rm -f conf$$.sh
  10305. fi
  10306. # Find out how to test for executable files. Don't use a zero-byte file,
  10307. # as systems may use methods other than mode bits to determine executability.
  10308. cat >conf$$.file <<_ASEOF
  10309. #! /bin/sh
  10310. exit 0
  10311. _ASEOF
  10312. chmod +x conf$$.file
  10313. if test -x conf$$.file >/dev/null 2>&1; then
  10314. ac_executable_p="test -x"
  10315. else
  10316. ac_executable_p="test -f"
  10317. fi
  10318. rm -f conf$$.file
  10319. # Extract the first word of "msgfmt", so it can be a program name with args.
  10320. set dummy msgfmt; ac_word=$2
  10321. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10322. $as_echo_n "checking for $ac_word... " >&6; }
  10323. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. case "$MSGFMT" in
  10327. [\\/]* | ?:[\\/]*)
  10328. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10329. ;;
  10330. *)
  10331. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10332. for ac_dir in $PATH; do
  10333. IFS="$ac_save_IFS"
  10334. test -z "$ac_dir" && ac_dir=.
  10335. for ac_exec_ext in '' $ac_executable_extensions; do
  10336. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10337. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10338. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10339. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10340. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10341. break 2
  10342. fi
  10343. fi
  10344. done
  10345. done
  10346. IFS="$ac_save_IFS"
  10347. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10348. ;;
  10349. esac
  10350. fi
  10351. MSGFMT="$ac_cv_path_MSGFMT"
  10352. if test "$MSGFMT" != ":"; then
  10353. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10354. $as_echo "$MSGFMT" >&6; }
  10355. else
  10356. { $as_echo "$as_me:$LINENO: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10360. set dummy gmsgfmt; ac_word=$2
  10361. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10362. $as_echo_n "checking for $ac_word... " >&6; }
  10363. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. case $GMSGFMT in
  10367. [\\/]* | ?:[\\/]*)
  10368. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10369. ;;
  10370. *)
  10371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10372. for as_dir in $PATH
  10373. do
  10374. IFS=$as_save_IFS
  10375. test -z "$as_dir" && as_dir=.
  10376. for ac_exec_ext in '' $ac_executable_extensions; do
  10377. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10378. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10379. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10380. break 2
  10381. fi
  10382. done
  10383. done
  10384. IFS=$as_save_IFS
  10385. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10386. ;;
  10387. esac
  10388. fi
  10389. GMSGFMT=$ac_cv_path_GMSGFMT
  10390. if test -n "$GMSGFMT"; then
  10391. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10392. $as_echo "$GMSGFMT" >&6; }
  10393. else
  10394. { $as_echo "$as_me:$LINENO: result: no" >&5
  10395. $as_echo "no" >&6; }
  10396. fi
  10397. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10398. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10399. *) MSGFMT_015=$MSGFMT ;;
  10400. esac
  10401. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10402. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10403. *) GMSGFMT_015=$GMSGFMT ;;
  10404. esac
  10405. # Prepare PATH_SEPARATOR.
  10406. # The user is always right.
  10407. if test "${PATH_SEPARATOR+set}" != set; then
  10408. echo "#! /bin/sh" >conf$$.sh
  10409. echo "exit 0" >>conf$$.sh
  10410. chmod +x conf$$.sh
  10411. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10412. PATH_SEPARATOR=';'
  10413. else
  10414. PATH_SEPARATOR=:
  10415. fi
  10416. rm -f conf$$.sh
  10417. fi
  10418. # Find out how to test for executable files. Don't use a zero-byte file,
  10419. # as systems may use methods other than mode bits to determine executability.
  10420. cat >conf$$.file <<_ASEOF
  10421. #! /bin/sh
  10422. exit 0
  10423. _ASEOF
  10424. chmod +x conf$$.file
  10425. if test -x conf$$.file >/dev/null 2>&1; then
  10426. ac_executable_p="test -x"
  10427. else
  10428. ac_executable_p="test -f"
  10429. fi
  10430. rm -f conf$$.file
  10431. # Extract the first word of "xgettext", so it can be a program name with args.
  10432. set dummy xgettext; ac_word=$2
  10433. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10434. $as_echo_n "checking for $ac_word... " >&6; }
  10435. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10436. $as_echo_n "(cached) " >&6
  10437. else
  10438. case "$XGETTEXT" in
  10439. [\\/]* | ?:[\\/]*)
  10440. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10441. ;;
  10442. *)
  10443. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10444. for ac_dir in $PATH; do
  10445. IFS="$ac_save_IFS"
  10446. test -z "$ac_dir" && ac_dir=.
  10447. for ac_exec_ext in '' $ac_executable_extensions; do
  10448. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10449. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10450. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10451. (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
  10452. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10453. break 2
  10454. fi
  10455. fi
  10456. done
  10457. done
  10458. IFS="$ac_save_IFS"
  10459. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10460. ;;
  10461. esac
  10462. fi
  10463. XGETTEXT="$ac_cv_path_XGETTEXT"
  10464. if test "$XGETTEXT" != ":"; then
  10465. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10466. $as_echo "$XGETTEXT" >&6; }
  10467. else
  10468. { $as_echo "$as_me:$LINENO: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. rm -f messages.po
  10472. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10473. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10474. *) XGETTEXT_015=$XGETTEXT ;;
  10475. esac
  10476. # Prepare PATH_SEPARATOR.
  10477. # The user is always right.
  10478. if test "${PATH_SEPARATOR+set}" != set; then
  10479. echo "#! /bin/sh" >conf$$.sh
  10480. echo "exit 0" >>conf$$.sh
  10481. chmod +x conf$$.sh
  10482. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10483. PATH_SEPARATOR=';'
  10484. else
  10485. PATH_SEPARATOR=:
  10486. fi
  10487. rm -f conf$$.sh
  10488. fi
  10489. # Find out how to test for executable files. Don't use a zero-byte file,
  10490. # as systems may use methods other than mode bits to determine executability.
  10491. cat >conf$$.file <<_ASEOF
  10492. #! /bin/sh
  10493. exit 0
  10494. _ASEOF
  10495. chmod +x conf$$.file
  10496. if test -x conf$$.file >/dev/null 2>&1; then
  10497. ac_executable_p="test -x"
  10498. else
  10499. ac_executable_p="test -f"
  10500. fi
  10501. rm -f conf$$.file
  10502. # Extract the first word of "msgmerge", so it can be a program name with args.
  10503. set dummy msgmerge; ac_word=$2
  10504. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10505. $as_echo_n "checking for $ac_word... " >&6; }
  10506. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10507. $as_echo_n "(cached) " >&6
  10508. else
  10509. case "$MSGMERGE" in
  10510. [\\/]* | ?:[\\/]*)
  10511. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10512. ;;
  10513. *)
  10514. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10515. for ac_dir in $PATH; do
  10516. IFS="$ac_save_IFS"
  10517. test -z "$ac_dir" && ac_dir=.
  10518. for ac_exec_ext in '' $ac_executable_extensions; do
  10519. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10520. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10521. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10522. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10523. break 2
  10524. fi
  10525. fi
  10526. done
  10527. done
  10528. IFS="$ac_save_IFS"
  10529. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10530. ;;
  10531. esac
  10532. fi
  10533. MSGMERGE="$ac_cv_path_MSGMERGE"
  10534. if test "$MSGMERGE" != ":"; then
  10535. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10536. $as_echo "$MSGMERGE" >&6; }
  10537. else
  10538. { $as_echo "$as_me:$LINENO: result: no" >&5
  10539. $as_echo "no" >&6; }
  10540. fi
  10541. test -n "$localedir" || localedir='${datadir}/locale'
  10542. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10543. ac_config_commands="$ac_config_commands po-directories"
  10544. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10545. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10546. if test "${ac_cv_gnu_library_2+set}" = set; then
  10547. $as_echo_n "(cached) " >&6
  10548. else
  10549. cat >conftest.$ac_ext <<_ACEOF
  10550. /* confdefs.h. */
  10551. _ACEOF
  10552. cat confdefs.h >>conftest.$ac_ext
  10553. cat >>conftest.$ac_ext <<_ACEOF
  10554. /* end confdefs.h. */
  10555. #include <features.h>
  10556. #ifdef __GNU_LIBRARY__
  10557. #if (__GLIBC__ >= 2)
  10558. Lucky GNU user
  10559. #endif
  10560. #endif
  10561. _ACEOF
  10562. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10563. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10564. ac_cv_gnu_library_2=yes
  10565. else
  10566. ac_cv_gnu_library_2=no
  10567. fi
  10568. rm -f conftest*
  10569. fi
  10570. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10571. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10572. GLIBC2="$ac_cv_gnu_library_2"
  10573. CFLAG_VISIBILITY=
  10574. HAVE_VISIBILITY=0
  10575. if test -n "$GCC"; then
  10576. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10577. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10578. if test "${gl_cv_cc_visibility+set}" = set; then
  10579. $as_echo_n "(cached) " >&6
  10580. else
  10581. gl_save_CFLAGS="$CFLAGS"
  10582. CFLAGS="$CFLAGS -fvisibility=hidden"
  10583. cat >conftest.$ac_ext <<_ACEOF
  10584. /* confdefs.h. */
  10585. _ACEOF
  10586. cat confdefs.h >>conftest.$ac_ext
  10587. cat >>conftest.$ac_ext <<_ACEOF
  10588. /* end confdefs.h. */
  10589. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10590. extern __attribute__((__visibility__("default"))) int exportedvar;
  10591. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10592. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10593. int
  10594. main ()
  10595. {
  10596. ;
  10597. return 0;
  10598. }
  10599. _ACEOF
  10600. rm -f conftest.$ac_objext
  10601. if { (ac_try="$ac_compile"
  10602. case "(($ac_try" in
  10603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10604. *) ac_try_echo=$ac_try;;
  10605. esac
  10606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10607. $as_echo "$ac_try_echo") >&5
  10608. (eval "$ac_compile") 2>conftest.er1
  10609. ac_status=$?
  10610. grep -v '^ *+' conftest.er1 >conftest.err
  10611. rm -f conftest.er1
  10612. cat conftest.err >&5
  10613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10614. (exit $ac_status); } && {
  10615. test -z "$ac_cxx_werror_flag" ||
  10616. test ! -s conftest.err
  10617. } && test -s conftest.$ac_objext; then
  10618. gl_cv_cc_visibility=yes
  10619. else
  10620. $as_echo "$as_me: failed program was:" >&5
  10621. sed 's/^/| /' conftest.$ac_ext >&5
  10622. gl_cv_cc_visibility=no
  10623. fi
  10624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10625. CFLAGS="$gl_save_CFLAGS"
  10626. fi
  10627. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10628. $as_echo "$gl_cv_cc_visibility" >&6; }
  10629. if test $gl_cv_cc_visibility = yes; then
  10630. CFLAG_VISIBILITY="-fvisibility=hidden"
  10631. HAVE_VISIBILITY=1
  10632. fi
  10633. fi
  10634. cat >>confdefs.h <<_ACEOF
  10635. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10636. _ACEOF
  10637. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10638. $as_echo_n "checking for stdint.h... " >&6; }
  10639. if test "${gl_cv_header_stdint_h+set}" = set; then
  10640. $as_echo_n "(cached) " >&6
  10641. else
  10642. cat >conftest.$ac_ext <<_ACEOF
  10643. /* confdefs.h. */
  10644. _ACEOF
  10645. cat confdefs.h >>conftest.$ac_ext
  10646. cat >>conftest.$ac_ext <<_ACEOF
  10647. /* end confdefs.h. */
  10648. #include <sys/types.h>
  10649. #include <stdint.h>
  10650. int
  10651. main ()
  10652. {
  10653. uintmax_t i = (uintmax_t) -1; return !i;
  10654. ;
  10655. return 0;
  10656. }
  10657. _ACEOF
  10658. rm -f conftest.$ac_objext
  10659. if { (ac_try="$ac_compile"
  10660. case "(($ac_try" in
  10661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10662. *) ac_try_echo=$ac_try;;
  10663. esac
  10664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10665. $as_echo "$ac_try_echo") >&5
  10666. (eval "$ac_compile") 2>conftest.er1
  10667. ac_status=$?
  10668. grep -v '^ *+' conftest.er1 >conftest.err
  10669. rm -f conftest.er1
  10670. cat conftest.err >&5
  10671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10672. (exit $ac_status); } && {
  10673. test -z "$ac_cxx_werror_flag" ||
  10674. test ! -s conftest.err
  10675. } && test -s conftest.$ac_objext; then
  10676. gl_cv_header_stdint_h=yes
  10677. else
  10678. $as_echo "$as_me: failed program was:" >&5
  10679. sed 's/^/| /' conftest.$ac_ext >&5
  10680. gl_cv_header_stdint_h=no
  10681. fi
  10682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10683. fi
  10684. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10685. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10686. if test $gl_cv_header_stdint_h = yes; then
  10687. cat >>confdefs.h <<_ACEOF
  10688. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10689. _ACEOF
  10690. fi
  10691. for ac_header in stdlib.h unistd.h
  10692. do
  10693. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10694. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10695. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10696. $as_echo_n "checking for $ac_header... " >&6; }
  10697. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10698. $as_echo_n "(cached) " >&6
  10699. fi
  10700. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10701. $as_echo "$as_val"'`
  10702. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10703. $as_echo "$ac_res" >&6; }
  10704. else
  10705. # Is the header compilable?
  10706. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10707. $as_echo_n "checking $ac_header usability... " >&6; }
  10708. cat >conftest.$ac_ext <<_ACEOF
  10709. /* confdefs.h. */
  10710. _ACEOF
  10711. cat confdefs.h >>conftest.$ac_ext
  10712. cat >>conftest.$ac_ext <<_ACEOF
  10713. /* end confdefs.h. */
  10714. $ac_includes_default
  10715. #include <$ac_header>
  10716. _ACEOF
  10717. rm -f conftest.$ac_objext
  10718. if { (ac_try="$ac_compile"
  10719. case "(($ac_try" in
  10720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10721. *) ac_try_echo=$ac_try;;
  10722. esac
  10723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10724. $as_echo "$ac_try_echo") >&5
  10725. (eval "$ac_compile") 2>conftest.er1
  10726. ac_status=$?
  10727. grep -v '^ *+' conftest.er1 >conftest.err
  10728. rm -f conftest.er1
  10729. cat conftest.err >&5
  10730. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10731. (exit $ac_status); } && {
  10732. test -z "$ac_cxx_werror_flag" ||
  10733. test ! -s conftest.err
  10734. } && test -s conftest.$ac_objext; then
  10735. ac_header_compiler=yes
  10736. else
  10737. $as_echo "$as_me: failed program was:" >&5
  10738. sed 's/^/| /' conftest.$ac_ext >&5
  10739. ac_header_compiler=no
  10740. fi
  10741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10742. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10743. $as_echo "$ac_header_compiler" >&6; }
  10744. # Is the header present?
  10745. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10746. $as_echo_n "checking $ac_header presence... " >&6; }
  10747. cat >conftest.$ac_ext <<_ACEOF
  10748. /* confdefs.h. */
  10749. _ACEOF
  10750. cat confdefs.h >>conftest.$ac_ext
  10751. cat >>conftest.$ac_ext <<_ACEOF
  10752. /* end confdefs.h. */
  10753. #include <$ac_header>
  10754. _ACEOF
  10755. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10756. case "(($ac_try" in
  10757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10758. *) ac_try_echo=$ac_try;;
  10759. esac
  10760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10761. $as_echo "$ac_try_echo") >&5
  10762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10763. ac_status=$?
  10764. grep -v '^ *+' conftest.er1 >conftest.err
  10765. rm -f conftest.er1
  10766. cat conftest.err >&5
  10767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10768. (exit $ac_status); } >/dev/null && {
  10769. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10770. test ! -s conftest.err
  10771. }; then
  10772. ac_header_preproc=yes
  10773. else
  10774. $as_echo "$as_me: failed program was:" >&5
  10775. sed 's/^/| /' conftest.$ac_ext >&5
  10776. ac_header_preproc=no
  10777. fi
  10778. rm -f conftest.err conftest.$ac_ext
  10779. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10780. $as_echo "$ac_header_preproc" >&6; }
  10781. # So? What about this header?
  10782. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10783. yes:no: )
  10784. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10785. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10786. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10787. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10788. ac_header_preproc=yes
  10789. ;;
  10790. no:yes:* )
  10791. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10792. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10793. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10794. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10795. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10796. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10797. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10798. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10799. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10800. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10801. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10802. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10803. ( cat <<\_ASBOX
  10804. ## ----------------------------------------------- ##
  10805. ## Report this to t-tujikawa@users.sourceforge.net ##
  10806. ## ----------------------------------------------- ##
  10807. _ASBOX
  10808. ) | sed "s/^/$as_me: WARNING: /" >&2
  10809. ;;
  10810. esac
  10811. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10812. $as_echo_n "checking for $ac_header... " >&6; }
  10813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10814. $as_echo_n "(cached) " >&6
  10815. else
  10816. eval "$as_ac_Header=\$ac_header_preproc"
  10817. fi
  10818. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10819. $as_echo "$as_val"'`
  10820. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10821. $as_echo "$ac_res" >&6; }
  10822. fi
  10823. as_val=`eval 'as_val=${'$as_ac_Header'}
  10824. $as_echo "$as_val"'`
  10825. if test "x$as_val" = x""yes; then
  10826. cat >>confdefs.h <<_ACEOF
  10827. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10828. _ACEOF
  10829. fi
  10830. done
  10831. for ac_func in getpagesize
  10832. do
  10833. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10834. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10835. $as_echo_n "checking for $ac_func... " >&6; }
  10836. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10837. $as_echo_n "(cached) " >&6
  10838. else
  10839. cat >conftest.$ac_ext <<_ACEOF
  10840. /* confdefs.h. */
  10841. _ACEOF
  10842. cat confdefs.h >>conftest.$ac_ext
  10843. cat >>conftest.$ac_ext <<_ACEOF
  10844. /* end confdefs.h. */
  10845. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10847. #define $ac_func innocuous_$ac_func
  10848. /* System header to define __stub macros and hopefully few prototypes,
  10849. which can conflict with char $ac_func (); below.
  10850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10851. <limits.h> exists even on freestanding compilers. */
  10852. #ifdef __STDC__
  10853. # include <limits.h>
  10854. #else
  10855. # include <assert.h>
  10856. #endif
  10857. #undef $ac_func
  10858. /* Override any GCC internal prototype to avoid an error.
  10859. Use char because int might match the return type of a GCC
  10860. builtin and then its argument prototype would still apply. */
  10861. #ifdef __cplusplus
  10862. extern "C"
  10863. #endif
  10864. char $ac_func ();
  10865. /* The GNU C library defines this for functions which it implements
  10866. to always fail with ENOSYS. Some functions are actually named
  10867. something starting with __ and the normal name is an alias. */
  10868. #if defined __stub_$ac_func || defined __stub___$ac_func
  10869. choke me
  10870. #endif
  10871. int
  10872. main ()
  10873. {
  10874. return $ac_func ();
  10875. ;
  10876. return 0;
  10877. }
  10878. _ACEOF
  10879. rm -f conftest.$ac_objext conftest$ac_exeext
  10880. if { (ac_try="$ac_link"
  10881. case "(($ac_try" in
  10882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10883. *) ac_try_echo=$ac_try;;
  10884. esac
  10885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10886. $as_echo "$ac_try_echo") >&5
  10887. (eval "$ac_link") 2>conftest.er1
  10888. ac_status=$?
  10889. grep -v '^ *+' conftest.er1 >conftest.err
  10890. rm -f conftest.er1
  10891. cat conftest.err >&5
  10892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10893. (exit $ac_status); } && {
  10894. test -z "$ac_cxx_werror_flag" ||
  10895. test ! -s conftest.err
  10896. } && test -s conftest$ac_exeext && {
  10897. test "$cross_compiling" = yes ||
  10898. $as_test_x conftest$ac_exeext
  10899. }; then
  10900. eval "$as_ac_var=yes"
  10901. else
  10902. $as_echo "$as_me: failed program was:" >&5
  10903. sed 's/^/| /' conftest.$ac_ext >&5
  10904. eval "$as_ac_var=no"
  10905. fi
  10906. rm -rf conftest.dSYM
  10907. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10908. conftest$ac_exeext conftest.$ac_ext
  10909. fi
  10910. ac_res=`eval 'as_val=${'$as_ac_var'}
  10911. $as_echo "$as_val"'`
  10912. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10913. $as_echo "$ac_res" >&6; }
  10914. as_val=`eval 'as_val=${'$as_ac_var'}
  10915. $as_echo "$as_val"'`
  10916. if test "x$as_val" = x""yes; then
  10917. cat >>confdefs.h <<_ACEOF
  10918. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10919. _ACEOF
  10920. fi
  10921. done
  10922. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10923. $as_echo_n "checking for working mmap... " >&6; }
  10924. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10925. $as_echo_n "(cached) " >&6
  10926. else
  10927. if test "$cross_compiling" = yes; then
  10928. ac_cv_func_mmap_fixed_mapped=no
  10929. else
  10930. cat >conftest.$ac_ext <<_ACEOF
  10931. /* confdefs.h. */
  10932. _ACEOF
  10933. cat confdefs.h >>conftest.$ac_ext
  10934. cat >>conftest.$ac_ext <<_ACEOF
  10935. /* end confdefs.h. */
  10936. $ac_includes_default
  10937. /* malloc might have been renamed as rpl_malloc. */
  10938. #undef malloc
  10939. /* Thanks to Mike Haertel and Jim Avera for this test.
  10940. Here is a matrix of mmap possibilities:
  10941. mmap private not fixed
  10942. mmap private fixed at somewhere currently unmapped
  10943. mmap private fixed at somewhere already mapped
  10944. mmap shared not fixed
  10945. mmap shared fixed at somewhere currently unmapped
  10946. mmap shared fixed at somewhere already mapped
  10947. For private mappings, we should verify that changes cannot be read()
  10948. back from the file, nor mmap's back from the file at a different
  10949. address. (There have been systems where private was not correctly
  10950. implemented like the infamous i386 svr4.0, and systems where the
  10951. VM page cache was not coherent with the file system buffer cache
  10952. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10953. For shared mappings, we should conversely verify that changes get
  10954. propagated back to all the places they're supposed to be.
  10955. Grep wants private fixed already mapped.
  10956. The main things grep needs to know about mmap are:
  10957. * does it exist and is it safe to write into the mmap'd area
  10958. * how to use it (BSD variants) */
  10959. #include <fcntl.h>
  10960. #include <sys/mman.h>
  10961. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10962. char *malloc ();
  10963. #endif
  10964. /* This mess was copied from the GNU getpagesize.h. */
  10965. #ifndef HAVE_GETPAGESIZE
  10966. /* Assume that all systems that can run configure have sys/param.h. */
  10967. # ifndef HAVE_SYS_PARAM_H
  10968. # define HAVE_SYS_PARAM_H 1
  10969. # endif
  10970. # ifdef _SC_PAGESIZE
  10971. # define getpagesize() sysconf(_SC_PAGESIZE)
  10972. # else /* no _SC_PAGESIZE */
  10973. # ifdef HAVE_SYS_PARAM_H
  10974. # include <sys/param.h>
  10975. # ifdef EXEC_PAGESIZE
  10976. # define getpagesize() EXEC_PAGESIZE
  10977. # else /* no EXEC_PAGESIZE */
  10978. # ifdef NBPG
  10979. # define getpagesize() NBPG * CLSIZE
  10980. # ifndef CLSIZE
  10981. # define CLSIZE 1
  10982. # endif /* no CLSIZE */
  10983. # else /* no NBPG */
  10984. # ifdef NBPC
  10985. # define getpagesize() NBPC
  10986. # else /* no NBPC */
  10987. # ifdef PAGESIZE
  10988. # define getpagesize() PAGESIZE
  10989. # endif /* PAGESIZE */
  10990. # endif /* no NBPC */
  10991. # endif /* no NBPG */
  10992. # endif /* no EXEC_PAGESIZE */
  10993. # else /* no HAVE_SYS_PARAM_H */
  10994. # define getpagesize() 8192 /* punt totally */
  10995. # endif /* no HAVE_SYS_PARAM_H */
  10996. # endif /* no _SC_PAGESIZE */
  10997. #endif /* no HAVE_GETPAGESIZE */
  10998. int
  10999. main ()
  11000. {
  11001. char *data, *data2, *data3;
  11002. int i, pagesize;
  11003. int fd;
  11004. pagesize = getpagesize ();
  11005. /* First, make a file with some known garbage in it. */
  11006. data = (char *) malloc (pagesize);
  11007. if (!data)
  11008. return 1;
  11009. for (i = 0; i < pagesize; ++i)
  11010. *(data + i) = rand ();
  11011. umask (0);
  11012. fd = creat ("conftest.mmap", 0600);
  11013. if (fd < 0)
  11014. return 1;
  11015. if (write (fd, data, pagesize) != pagesize)
  11016. return 1;
  11017. close (fd);
  11018. /* Next, try to mmap the file at a fixed address which already has
  11019. something else allocated at it. If we can, also make sure that
  11020. we see the same garbage. */
  11021. fd = open ("conftest.mmap", O_RDWR);
  11022. if (fd < 0)
  11023. return 1;
  11024. data2 = (char *) malloc (2 * pagesize);
  11025. if (!data2)
  11026. return 1;
  11027. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  11028. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11029. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11030. return 1;
  11031. for (i = 0; i < pagesize; ++i)
  11032. if (*(data + i) != *(data2 + i))
  11033. return 1;
  11034. /* Finally, make sure that changes to the mapped area do not
  11035. percolate back to the file as seen by read(). (This is a bug on
  11036. some variants of i386 svr4.0.) */
  11037. for (i = 0; i < pagesize; ++i)
  11038. *(data2 + i) = *(data2 + i) + 1;
  11039. data3 = (char *) malloc (pagesize);
  11040. if (!data3)
  11041. return 1;
  11042. if (read (fd, data3, pagesize) != pagesize)
  11043. return 1;
  11044. for (i = 0; i < pagesize; ++i)
  11045. if (*(data + i) != *(data3 + i))
  11046. return 1;
  11047. close (fd);
  11048. return 0;
  11049. }
  11050. _ACEOF
  11051. rm -f conftest$ac_exeext
  11052. if { (ac_try="$ac_link"
  11053. case "(($ac_try" in
  11054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11055. *) ac_try_echo=$ac_try;;
  11056. esac
  11057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11058. $as_echo "$ac_try_echo") >&5
  11059. (eval "$ac_link") 2>&5
  11060. ac_status=$?
  11061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11062. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11063. { (case "(($ac_try" in
  11064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11065. *) ac_try_echo=$ac_try;;
  11066. esac
  11067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11068. $as_echo "$ac_try_echo") >&5
  11069. (eval "$ac_try") 2>&5
  11070. ac_status=$?
  11071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11072. (exit $ac_status); }; }; then
  11073. ac_cv_func_mmap_fixed_mapped=yes
  11074. else
  11075. $as_echo "$as_me: program exited with status $ac_status" >&5
  11076. $as_echo "$as_me: failed program was:" >&5
  11077. sed 's/^/| /' conftest.$ac_ext >&5
  11078. ( exit $ac_status )
  11079. ac_cv_func_mmap_fixed_mapped=no
  11080. fi
  11081. rm -rf conftest.dSYM
  11082. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11083. fi
  11084. fi
  11085. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11086. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11087. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11088. cat >>confdefs.h <<\_ACEOF
  11089. #define HAVE_MMAP 1
  11090. _ACEOF
  11091. fi
  11092. rm -f conftest.mmap
  11093. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  11094. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  11095. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  11096. $as_echo_n "(cached) " >&6
  11097. else
  11098. gt_cv_int_divbyzero_sigfpe=
  11099. case "$host_os" in
  11100. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  11101. # On MacOS X 10.2 or newer, just assume the same as when cross-
  11102. # compiling. If we were to perform the real test, 1 Crash Report
  11103. # dialog window would pop up.
  11104. case "$host_cpu" in
  11105. i[34567]86 | x86_64)
  11106. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  11107. esac
  11108. ;;
  11109. esac
  11110. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  11111. if test "$cross_compiling" = yes; then
  11112. # Guess based on the CPU.
  11113. case "$host_cpu" in
  11114. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  11115. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  11116. *)
  11117. gt_cv_int_divbyzero_sigfpe="guessing no";;
  11118. esac
  11119. else
  11120. cat >conftest.$ac_ext <<_ACEOF
  11121. /* confdefs.h. */
  11122. _ACEOF
  11123. cat confdefs.h >>conftest.$ac_ext
  11124. cat >>conftest.$ac_ext <<_ACEOF
  11125. /* end confdefs.h. */
  11126. #include <stdlib.h>
  11127. #include <signal.h>
  11128. static void
  11129. sigfpe_handler (int sig)
  11130. {
  11131. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  11132. exit (sig != SIGFPE);
  11133. }
  11134. int x = 1;
  11135. int y = 0;
  11136. int z;
  11137. int nan;
  11138. int main ()
  11139. {
  11140. signal (SIGFPE, sigfpe_handler);
  11141. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  11142. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  11143. signal (SIGTRAP, sigfpe_handler);
  11144. #endif
  11145. /* Linux/SPARC yields signal SIGILL. */
  11146. #if defined (__sparc__) && defined (__linux__)
  11147. signal (SIGILL, sigfpe_handler);
  11148. #endif
  11149. z = x / y;
  11150. nan = y / y;
  11151. exit (1);
  11152. }
  11153. _ACEOF
  11154. rm -f conftest$ac_exeext
  11155. if { (ac_try="$ac_link"
  11156. case "(($ac_try" in
  11157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11158. *) ac_try_echo=$ac_try;;
  11159. esac
  11160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11161. $as_echo "$ac_try_echo") >&5
  11162. (eval "$ac_link") 2>&5
  11163. ac_status=$?
  11164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11165. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11166. { (case "(($ac_try" in
  11167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11168. *) ac_try_echo=$ac_try;;
  11169. esac
  11170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11171. $as_echo "$ac_try_echo") >&5
  11172. (eval "$ac_try") 2>&5
  11173. ac_status=$?
  11174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11175. (exit $ac_status); }; }; then
  11176. gt_cv_int_divbyzero_sigfpe=yes
  11177. else
  11178. $as_echo "$as_me: program exited with status $ac_status" >&5
  11179. $as_echo "$as_me: failed program was:" >&5
  11180. sed 's/^/| /' conftest.$ac_ext >&5
  11181. ( exit $ac_status )
  11182. gt_cv_int_divbyzero_sigfpe=no
  11183. fi
  11184. rm -rf conftest.dSYM
  11185. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11186. fi
  11187. fi
  11188. fi
  11189. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  11190. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  11191. case "$gt_cv_int_divbyzero_sigfpe" in
  11192. *yes) value=1;;
  11193. *) value=0;;
  11194. esac
  11195. cat >>confdefs.h <<_ACEOF
  11196. #define INTDIV0_RAISES_SIGFPE $value
  11197. _ACEOF
  11198. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  11199. $as_echo_n "checking for inttypes.h... " >&6; }
  11200. if test "${gl_cv_header_inttypes_h+set}" = set; then
  11201. $as_echo_n "(cached) " >&6
  11202. else
  11203. cat >conftest.$ac_ext <<_ACEOF
  11204. /* confdefs.h. */
  11205. _ACEOF
  11206. cat confdefs.h >>conftest.$ac_ext
  11207. cat >>conftest.$ac_ext <<_ACEOF
  11208. /* end confdefs.h. */
  11209. #include <sys/types.h>
  11210. #include <inttypes.h>
  11211. int
  11212. main ()
  11213. {
  11214. uintmax_t i = (uintmax_t) -1; return !i;
  11215. ;
  11216. return 0;
  11217. }
  11218. _ACEOF
  11219. rm -f conftest.$ac_objext
  11220. if { (ac_try="$ac_compile"
  11221. case "(($ac_try" in
  11222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11223. *) ac_try_echo=$ac_try;;
  11224. esac
  11225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11226. $as_echo "$ac_try_echo") >&5
  11227. (eval "$ac_compile") 2>conftest.er1
  11228. ac_status=$?
  11229. grep -v '^ *+' conftest.er1 >conftest.err
  11230. rm -f conftest.er1
  11231. cat conftest.err >&5
  11232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11233. (exit $ac_status); } && {
  11234. test -z "$ac_cxx_werror_flag" ||
  11235. test ! -s conftest.err
  11236. } && test -s conftest.$ac_objext; then
  11237. gl_cv_header_inttypes_h=yes
  11238. else
  11239. $as_echo "$as_me: failed program was:" >&5
  11240. sed 's/^/| /' conftest.$ac_ext >&5
  11241. gl_cv_header_inttypes_h=no
  11242. fi
  11243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11244. fi
  11245. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11246. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11247. if test $gl_cv_header_inttypes_h = yes; then
  11248. cat >>confdefs.h <<_ACEOF
  11249. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11250. _ACEOF
  11251. fi
  11252. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11253. $as_echo_n "checking for unsigned long long int... " >&6; }
  11254. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11255. $as_echo_n "(cached) " >&6
  11256. else
  11257. cat >conftest.$ac_ext <<_ACEOF
  11258. /* confdefs.h. */
  11259. _ACEOF
  11260. cat confdefs.h >>conftest.$ac_ext
  11261. cat >>conftest.$ac_ext <<_ACEOF
  11262. /* end confdefs.h. */
  11263. /* Test preprocessor. */
  11264. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11265. error in preprocessor;
  11266. #endif
  11267. #if ! (18446744073709551615ULL <= -1ull)
  11268. error in preprocessor;
  11269. #endif
  11270. /* Test literals. */
  11271. long long int ll = 9223372036854775807ll;
  11272. long long int nll = -9223372036854775807LL;
  11273. unsigned long long int ull = 18446744073709551615ULL;
  11274. /* Test constant expressions. */
  11275. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11276. ? 1 : -1)];
  11277. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11278. ? 1 : -1)];
  11279. int i = 63;
  11280. int
  11281. main ()
  11282. {
  11283. /* Test availability of runtime routines for shift and division. */
  11284. long long int llmax = 9223372036854775807ll;
  11285. unsigned long long int ullmax = 18446744073709551615ull;
  11286. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11287. | (llmax / ll) | (llmax % ll)
  11288. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11289. | (ullmax / ull) | (ullmax % ull));
  11290. ;
  11291. return 0;
  11292. }
  11293. _ACEOF
  11294. rm -f conftest.$ac_objext conftest$ac_exeext
  11295. if { (ac_try="$ac_link"
  11296. case "(($ac_try" in
  11297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11298. *) ac_try_echo=$ac_try;;
  11299. esac
  11300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11301. $as_echo "$ac_try_echo") >&5
  11302. (eval "$ac_link") 2>conftest.er1
  11303. ac_status=$?
  11304. grep -v '^ *+' conftest.er1 >conftest.err
  11305. rm -f conftest.er1
  11306. cat conftest.err >&5
  11307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11308. (exit $ac_status); } && {
  11309. test -z "$ac_cxx_werror_flag" ||
  11310. test ! -s conftest.err
  11311. } && test -s conftest$ac_exeext && {
  11312. test "$cross_compiling" = yes ||
  11313. $as_test_x conftest$ac_exeext
  11314. }; then
  11315. ac_cv_type_unsigned_long_long_int=yes
  11316. else
  11317. $as_echo "$as_me: failed program was:" >&5
  11318. sed 's/^/| /' conftest.$ac_ext >&5
  11319. ac_cv_type_unsigned_long_long_int=no
  11320. fi
  11321. rm -rf conftest.dSYM
  11322. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11323. conftest$ac_exeext conftest.$ac_ext
  11324. fi
  11325. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11326. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11327. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11328. cat >>confdefs.h <<\_ACEOF
  11329. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11330. _ACEOF
  11331. fi
  11332. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11333. test $ac_cv_type_unsigned_long_long_int = yes \
  11334. && ac_type='unsigned long long' \
  11335. || ac_type='unsigned long'
  11336. cat >>confdefs.h <<_ACEOF
  11337. #define uintmax_t $ac_type
  11338. _ACEOF
  11339. else
  11340. cat >>confdefs.h <<\_ACEOF
  11341. #define HAVE_UINTMAX_T 1
  11342. _ACEOF
  11343. fi
  11344. for ac_header in inttypes.h
  11345. do
  11346. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11347. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11348. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11349. $as_echo_n "checking for $ac_header... " >&6; }
  11350. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11351. $as_echo_n "(cached) " >&6
  11352. fi
  11353. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11354. $as_echo "$as_val"'`
  11355. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11356. $as_echo "$ac_res" >&6; }
  11357. else
  11358. # Is the header compilable?
  11359. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11360. $as_echo_n "checking $ac_header usability... " >&6; }
  11361. cat >conftest.$ac_ext <<_ACEOF
  11362. /* confdefs.h. */
  11363. _ACEOF
  11364. cat confdefs.h >>conftest.$ac_ext
  11365. cat >>conftest.$ac_ext <<_ACEOF
  11366. /* end confdefs.h. */
  11367. $ac_includes_default
  11368. #include <$ac_header>
  11369. _ACEOF
  11370. rm -f conftest.$ac_objext
  11371. if { (ac_try="$ac_compile"
  11372. case "(($ac_try" in
  11373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11374. *) ac_try_echo=$ac_try;;
  11375. esac
  11376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11377. $as_echo "$ac_try_echo") >&5
  11378. (eval "$ac_compile") 2>conftest.er1
  11379. ac_status=$?
  11380. grep -v '^ *+' conftest.er1 >conftest.err
  11381. rm -f conftest.er1
  11382. cat conftest.err >&5
  11383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11384. (exit $ac_status); } && {
  11385. test -z "$ac_cxx_werror_flag" ||
  11386. test ! -s conftest.err
  11387. } && test -s conftest.$ac_objext; then
  11388. ac_header_compiler=yes
  11389. else
  11390. $as_echo "$as_me: failed program was:" >&5
  11391. sed 's/^/| /' conftest.$ac_ext >&5
  11392. ac_header_compiler=no
  11393. fi
  11394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11395. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11396. $as_echo "$ac_header_compiler" >&6; }
  11397. # Is the header present?
  11398. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11399. $as_echo_n "checking $ac_header presence... " >&6; }
  11400. cat >conftest.$ac_ext <<_ACEOF
  11401. /* confdefs.h. */
  11402. _ACEOF
  11403. cat confdefs.h >>conftest.$ac_ext
  11404. cat >>conftest.$ac_ext <<_ACEOF
  11405. /* end confdefs.h. */
  11406. #include <$ac_header>
  11407. _ACEOF
  11408. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11409. case "(($ac_try" in
  11410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11411. *) ac_try_echo=$ac_try;;
  11412. esac
  11413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11414. $as_echo "$ac_try_echo") >&5
  11415. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11416. ac_status=$?
  11417. grep -v '^ *+' conftest.er1 >conftest.err
  11418. rm -f conftest.er1
  11419. cat conftest.err >&5
  11420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11421. (exit $ac_status); } >/dev/null && {
  11422. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11423. test ! -s conftest.err
  11424. }; then
  11425. ac_header_preproc=yes
  11426. else
  11427. $as_echo "$as_me: failed program was:" >&5
  11428. sed 's/^/| /' conftest.$ac_ext >&5
  11429. ac_header_preproc=no
  11430. fi
  11431. rm -f conftest.err conftest.$ac_ext
  11432. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11433. $as_echo "$ac_header_preproc" >&6; }
  11434. # So? What about this header?
  11435. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11436. yes:no: )
  11437. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11438. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11439. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11440. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11441. ac_header_preproc=yes
  11442. ;;
  11443. no:yes:* )
  11444. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11445. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11446. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11447. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11448. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11449. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11450. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11451. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11452. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11453. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11454. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11455. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11456. ( cat <<\_ASBOX
  11457. ## ----------------------------------------------- ##
  11458. ## Report this to t-tujikawa@users.sourceforge.net ##
  11459. ## ----------------------------------------------- ##
  11460. _ASBOX
  11461. ) | sed "s/^/$as_me: WARNING: /" >&2
  11462. ;;
  11463. esac
  11464. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11465. $as_echo_n "checking for $ac_header... " >&6; }
  11466. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11467. $as_echo_n "(cached) " >&6
  11468. else
  11469. eval "$as_ac_Header=\$ac_header_preproc"
  11470. fi
  11471. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11472. $as_echo "$as_val"'`
  11473. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11474. $as_echo "$ac_res" >&6; }
  11475. fi
  11476. as_val=`eval 'as_val=${'$as_ac_Header'}
  11477. $as_echo "$as_val"'`
  11478. if test "x$as_val" = x""yes; then
  11479. cat >>confdefs.h <<_ACEOF
  11480. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11481. _ACEOF
  11482. fi
  11483. done
  11484. if test $ac_cv_header_inttypes_h = yes; then
  11485. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11486. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11487. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11488. $as_echo_n "(cached) " >&6
  11489. else
  11490. cat >conftest.$ac_ext <<_ACEOF
  11491. /* confdefs.h. */
  11492. _ACEOF
  11493. cat confdefs.h >>conftest.$ac_ext
  11494. cat >>conftest.$ac_ext <<_ACEOF
  11495. /* end confdefs.h. */
  11496. #include <inttypes.h>
  11497. #ifdef PRId32
  11498. char *p = PRId32;
  11499. #endif
  11500. int
  11501. main ()
  11502. {
  11503. ;
  11504. return 0;
  11505. }
  11506. _ACEOF
  11507. rm -f conftest.$ac_objext
  11508. if { (ac_try="$ac_compile"
  11509. case "(($ac_try" in
  11510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11511. *) ac_try_echo=$ac_try;;
  11512. esac
  11513. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11514. $as_echo "$ac_try_echo") >&5
  11515. (eval "$ac_compile") 2>conftest.er1
  11516. ac_status=$?
  11517. grep -v '^ *+' conftest.er1 >conftest.err
  11518. rm -f conftest.er1
  11519. cat conftest.err >&5
  11520. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11521. (exit $ac_status); } && {
  11522. test -z "$ac_cxx_werror_flag" ||
  11523. test ! -s conftest.err
  11524. } && test -s conftest.$ac_objext; then
  11525. gt_cv_inttypes_pri_broken=no
  11526. else
  11527. $as_echo "$as_me: failed program was:" >&5
  11528. sed 's/^/| /' conftest.$ac_ext >&5
  11529. gt_cv_inttypes_pri_broken=yes
  11530. fi
  11531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11532. fi
  11533. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11534. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11535. fi
  11536. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11537. cat >>confdefs.h <<_ACEOF
  11538. #define PRI_MACROS_BROKEN 1
  11539. _ACEOF
  11540. PRI_MACROS_BROKEN=1
  11541. else
  11542. PRI_MACROS_BROKEN=0
  11543. fi
  11544. # Check whether --enable-threads was given.
  11545. if test "${enable_threads+set}" = set; then
  11546. enableval=$enable_threads; gl_use_threads=$enableval
  11547. else
  11548. case "$host_os" in
  11549. osf*) gl_use_threads=no ;;
  11550. *) gl_use_threads=yes ;;
  11551. esac
  11552. fi
  11553. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11554. # For using <pthread.h>:
  11555. case "$host_os" in
  11556. osf*)
  11557. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11558. # groks <pthread.h>. cc also understands the flag -pthread, but
  11559. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11560. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11561. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11562. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11563. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11564. ;;
  11565. esac
  11566. # Some systems optimize for single-threaded programs by default, and
  11567. # need special flags to disable these optimizations. For example, the
  11568. # definition of 'errno' in <errno.h>.
  11569. case "$host_os" in
  11570. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11571. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11572. esac
  11573. fi
  11574. if test "X$prefix" = "XNONE"; then
  11575. acl_final_prefix="$ac_default_prefix"
  11576. else
  11577. acl_final_prefix="$prefix"
  11578. fi
  11579. if test "X$exec_prefix" = "XNONE"; then
  11580. acl_final_exec_prefix='${prefix}'
  11581. else
  11582. acl_final_exec_prefix="$exec_prefix"
  11583. fi
  11584. acl_save_prefix="$prefix"
  11585. prefix="$acl_final_prefix"
  11586. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11587. prefix="$acl_save_prefix"
  11588. # Check whether --with-gnu-ld was given.
  11589. if test "${with_gnu_ld+set}" = set; then
  11590. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11591. else
  11592. with_gnu_ld=no
  11593. fi
  11594. # Prepare PATH_SEPARATOR.
  11595. # The user is always right.
  11596. if test "${PATH_SEPARATOR+set}" != set; then
  11597. echo "#! /bin/sh" >conf$$.sh
  11598. echo "exit 0" >>conf$$.sh
  11599. chmod +x conf$$.sh
  11600. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11601. PATH_SEPARATOR=';'
  11602. else
  11603. PATH_SEPARATOR=:
  11604. fi
  11605. rm -f conf$$.sh
  11606. fi
  11607. ac_prog=ld
  11608. if test "$GCC" = yes; then
  11609. # Check if gcc -print-prog-name=ld gives a path.
  11610. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11611. $as_echo_n "checking for ld used by GCC... " >&6; }
  11612. case $host in
  11613. *-*-mingw*)
  11614. # gcc leaves a trailing carriage return which upsets mingw
  11615. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11616. *)
  11617. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11618. esac
  11619. case $ac_prog in
  11620. # Accept absolute paths.
  11621. [\\/]* | [A-Za-z]:[\\/]*)
  11622. re_direlt='/[^/][^/]*/\.\./'
  11623. # Canonicalize the path of ld
  11624. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11625. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11626. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11627. done
  11628. test -z "$LD" && LD="$ac_prog"
  11629. ;;
  11630. "")
  11631. # If it fails, then pretend we aren't using GCC.
  11632. ac_prog=ld
  11633. ;;
  11634. *)
  11635. # If it is relative, then search for the first ld in PATH.
  11636. with_gnu_ld=unknown
  11637. ;;
  11638. esac
  11639. elif test "$with_gnu_ld" = yes; then
  11640. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11641. $as_echo_n "checking for GNU ld... " >&6; }
  11642. else
  11643. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11644. $as_echo_n "checking for non-GNU ld... " >&6; }
  11645. fi
  11646. if test "${acl_cv_path_LD+set}" = set; then
  11647. $as_echo_n "(cached) " >&6
  11648. else
  11649. if test -z "$LD"; then
  11650. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11651. for ac_dir in $PATH; do
  11652. test -z "$ac_dir" && ac_dir=.
  11653. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11654. acl_cv_path_LD="$ac_dir/$ac_prog"
  11655. # Check to see if the program is GNU ld. I'd rather use --version,
  11656. # but apparently some GNU ld's only accept -v.
  11657. # Break only if it was the GNU/non-GNU ld that we prefer.
  11658. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11659. *GNU* | *'with BFD'*)
  11660. test "$with_gnu_ld" != no && break ;;
  11661. *)
  11662. test "$with_gnu_ld" != yes && break ;;
  11663. esac
  11664. fi
  11665. done
  11666. IFS="$ac_save_ifs"
  11667. else
  11668. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11669. fi
  11670. fi
  11671. LD="$acl_cv_path_LD"
  11672. if test -n "$LD"; then
  11673. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11674. $as_echo "$LD" >&6; }
  11675. else
  11676. { $as_echo "$as_me:$LINENO: result: no" >&5
  11677. $as_echo "no" >&6; }
  11678. fi
  11679. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11680. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11681. { (exit 1); exit 1; }; }
  11682. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11683. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11684. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11685. $as_echo_n "(cached) " >&6
  11686. else
  11687. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11688. case `$LD -v 2>&1 </dev/null` in
  11689. *GNU* | *'with BFD'*)
  11690. acl_cv_prog_gnu_ld=yes ;;
  11691. *)
  11692. acl_cv_prog_gnu_ld=no ;;
  11693. esac
  11694. fi
  11695. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11696. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11697. with_gnu_ld=$acl_cv_prog_gnu_ld
  11698. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11699. $as_echo_n "checking for shared library run path origin... " >&6; }
  11700. if test "${acl_cv_rpath+set}" = set; then
  11701. $as_echo_n "(cached) " >&6
  11702. else
  11703. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11704. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11705. . ./conftest.sh
  11706. rm -f ./conftest.sh
  11707. acl_cv_rpath=done
  11708. fi
  11709. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11710. $as_echo "$acl_cv_rpath" >&6; }
  11711. wl="$acl_cv_wl"
  11712. acl_libext="$acl_cv_libext"
  11713. acl_shlibext="$acl_cv_shlibext"
  11714. acl_libname_spec="$acl_cv_libname_spec"
  11715. acl_library_names_spec="$acl_cv_library_names_spec"
  11716. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11717. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11718. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11719. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11720. # Check whether --enable-rpath was given.
  11721. if test "${enable_rpath+set}" = set; then
  11722. enableval=$enable_rpath; :
  11723. else
  11724. enable_rpath=yes
  11725. fi
  11726. acl_libdirstem=lib
  11727. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11728. if test -n "$searchpath"; then
  11729. acl_save_IFS="${IFS= }"; IFS=":"
  11730. for searchdir in $searchpath; do
  11731. if test -d "$searchdir"; then
  11732. case "$searchdir" in
  11733. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11734. *) searchdir=`cd "$searchdir" && pwd`
  11735. case "$searchdir" in
  11736. */lib64 ) acl_libdirstem=lib64 ;;
  11737. esac ;;
  11738. esac
  11739. fi
  11740. done
  11741. IFS="$acl_save_IFS"
  11742. fi
  11743. gl_threads_api=none
  11744. LIBTHREAD=
  11745. LTLIBTHREAD=
  11746. LIBMULTITHREAD=
  11747. LTLIBMULTITHREAD=
  11748. if test "$gl_use_threads" != no; then
  11749. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11750. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11751. gl_have_weak=no
  11752. cat >conftest.$ac_ext <<_ACEOF
  11753. /* confdefs.h. */
  11754. _ACEOF
  11755. cat confdefs.h >>conftest.$ac_ext
  11756. cat >>conftest.$ac_ext <<_ACEOF
  11757. /* end confdefs.h. */
  11758. extern void xyzzy ();
  11759. #pragma weak xyzzy
  11760. int
  11761. main ()
  11762. {
  11763. xyzzy();
  11764. ;
  11765. return 0;
  11766. }
  11767. _ACEOF
  11768. rm -f conftest.$ac_objext conftest$ac_exeext
  11769. if { (ac_try="$ac_link"
  11770. case "(($ac_try" in
  11771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11772. *) ac_try_echo=$ac_try;;
  11773. esac
  11774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11775. $as_echo "$ac_try_echo") >&5
  11776. (eval "$ac_link") 2>conftest.er1
  11777. ac_status=$?
  11778. grep -v '^ *+' conftest.er1 >conftest.err
  11779. rm -f conftest.er1
  11780. cat conftest.err >&5
  11781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11782. (exit $ac_status); } && {
  11783. test -z "$ac_cxx_werror_flag" ||
  11784. test ! -s conftest.err
  11785. } && test -s conftest$ac_exeext && {
  11786. test "$cross_compiling" = yes ||
  11787. $as_test_x conftest$ac_exeext
  11788. }; then
  11789. gl_have_weak=yes
  11790. else
  11791. $as_echo "$as_me: failed program was:" >&5
  11792. sed 's/^/| /' conftest.$ac_ext >&5
  11793. fi
  11794. rm -rf conftest.dSYM
  11795. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11796. conftest$ac_exeext conftest.$ac_ext
  11797. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11798. $as_echo "$gl_have_weak" >&6; }
  11799. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11800. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11801. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11802. if test "${ac_cv_header_pthread_h+set}" = set; then
  11803. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11804. $as_echo_n "checking for pthread.h... " >&6; }
  11805. if test "${ac_cv_header_pthread_h+set}" = set; then
  11806. $as_echo_n "(cached) " >&6
  11807. fi
  11808. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11809. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11810. else
  11811. # Is the header compilable?
  11812. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11813. $as_echo_n "checking pthread.h usability... " >&6; }
  11814. cat >conftest.$ac_ext <<_ACEOF
  11815. /* confdefs.h. */
  11816. _ACEOF
  11817. cat confdefs.h >>conftest.$ac_ext
  11818. cat >>conftest.$ac_ext <<_ACEOF
  11819. /* end confdefs.h. */
  11820. $ac_includes_default
  11821. #include <pthread.h>
  11822. _ACEOF
  11823. rm -f conftest.$ac_objext
  11824. if { (ac_try="$ac_compile"
  11825. case "(($ac_try" in
  11826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11827. *) ac_try_echo=$ac_try;;
  11828. esac
  11829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11830. $as_echo "$ac_try_echo") >&5
  11831. (eval "$ac_compile") 2>conftest.er1
  11832. ac_status=$?
  11833. grep -v '^ *+' conftest.er1 >conftest.err
  11834. rm -f conftest.er1
  11835. cat conftest.err >&5
  11836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11837. (exit $ac_status); } && {
  11838. test -z "$ac_cxx_werror_flag" ||
  11839. test ! -s conftest.err
  11840. } && test -s conftest.$ac_objext; then
  11841. ac_header_compiler=yes
  11842. else
  11843. $as_echo "$as_me: failed program was:" >&5
  11844. sed 's/^/| /' conftest.$ac_ext >&5
  11845. ac_header_compiler=no
  11846. fi
  11847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11848. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11849. $as_echo "$ac_header_compiler" >&6; }
  11850. # Is the header present?
  11851. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11852. $as_echo_n "checking pthread.h presence... " >&6; }
  11853. cat >conftest.$ac_ext <<_ACEOF
  11854. /* confdefs.h. */
  11855. _ACEOF
  11856. cat confdefs.h >>conftest.$ac_ext
  11857. cat >>conftest.$ac_ext <<_ACEOF
  11858. /* end confdefs.h. */
  11859. #include <pthread.h>
  11860. _ACEOF
  11861. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11862. case "(($ac_try" in
  11863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11864. *) ac_try_echo=$ac_try;;
  11865. esac
  11866. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11867. $as_echo "$ac_try_echo") >&5
  11868. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11869. ac_status=$?
  11870. grep -v '^ *+' conftest.er1 >conftest.err
  11871. rm -f conftest.er1
  11872. cat conftest.err >&5
  11873. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11874. (exit $ac_status); } >/dev/null && {
  11875. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11876. test ! -s conftest.err
  11877. }; then
  11878. ac_header_preproc=yes
  11879. else
  11880. $as_echo "$as_me: failed program was:" >&5
  11881. sed 's/^/| /' conftest.$ac_ext >&5
  11882. ac_header_preproc=no
  11883. fi
  11884. rm -f conftest.err conftest.$ac_ext
  11885. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11886. $as_echo "$ac_header_preproc" >&6; }
  11887. # So? What about this header?
  11888. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11889. yes:no: )
  11890. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11891. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11892. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11893. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11894. ac_header_preproc=yes
  11895. ;;
  11896. no:yes:* )
  11897. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11898. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11899. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11900. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11901. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11902. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11903. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11904. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11905. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11906. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11907. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11908. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11909. ( cat <<\_ASBOX
  11910. ## ----------------------------------------------- ##
  11911. ## Report this to t-tujikawa@users.sourceforge.net ##
  11912. ## ----------------------------------------------- ##
  11913. _ASBOX
  11914. ) | sed "s/^/$as_me: WARNING: /" >&2
  11915. ;;
  11916. esac
  11917. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11918. $as_echo_n "checking for pthread.h... " >&6; }
  11919. if test "${ac_cv_header_pthread_h+set}" = set; then
  11920. $as_echo_n "(cached) " >&6
  11921. else
  11922. ac_cv_header_pthread_h=$ac_header_preproc
  11923. fi
  11924. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11925. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11926. fi
  11927. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11928. gl_have_pthread_h=yes
  11929. else
  11930. gl_have_pthread_h=no
  11931. fi
  11932. if test "$gl_have_pthread_h" = yes; then
  11933. # Other possible tests:
  11934. # -lpthreads (FSU threads, PCthreads)
  11935. # -lgthreads
  11936. gl_have_pthread=
  11937. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11938. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11939. # the second one only in libpthread, and lock.c needs it.
  11940. cat >conftest.$ac_ext <<_ACEOF
  11941. /* confdefs.h. */
  11942. _ACEOF
  11943. cat confdefs.h >>conftest.$ac_ext
  11944. cat >>conftest.$ac_ext <<_ACEOF
  11945. /* end confdefs.h. */
  11946. #include <pthread.h>
  11947. int
  11948. main ()
  11949. {
  11950. pthread_mutex_lock((pthread_mutex_t*)0);
  11951. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11952. ;
  11953. return 0;
  11954. }
  11955. _ACEOF
  11956. rm -f conftest.$ac_objext conftest$ac_exeext
  11957. if { (ac_try="$ac_link"
  11958. case "(($ac_try" in
  11959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11960. *) ac_try_echo=$ac_try;;
  11961. esac
  11962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11963. $as_echo "$ac_try_echo") >&5
  11964. (eval "$ac_link") 2>conftest.er1
  11965. ac_status=$?
  11966. grep -v '^ *+' conftest.er1 >conftest.err
  11967. rm -f conftest.er1
  11968. cat conftest.err >&5
  11969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11970. (exit $ac_status); } && {
  11971. test -z "$ac_cxx_werror_flag" ||
  11972. test ! -s conftest.err
  11973. } && test -s conftest$ac_exeext && {
  11974. test "$cross_compiling" = yes ||
  11975. $as_test_x conftest$ac_exeext
  11976. }; then
  11977. gl_have_pthread=yes
  11978. else
  11979. $as_echo "$as_me: failed program was:" >&5
  11980. sed 's/^/| /' conftest.$ac_ext >&5
  11981. fi
  11982. rm -rf conftest.dSYM
  11983. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11984. conftest$ac_exeext conftest.$ac_ext
  11985. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11986. # since it is defined as a macro on OSF/1.)
  11987. if test -n "$gl_have_pthread"; then
  11988. # The program links fine without libpthread. But it may actually
  11989. # need to link with libpthread in order to create multiple threads.
  11990. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11991. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11992. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11993. $as_echo_n "(cached) " >&6
  11994. else
  11995. ac_check_lib_save_LIBS=$LIBS
  11996. LIBS="-lpthread $LIBS"
  11997. cat >conftest.$ac_ext <<_ACEOF
  11998. /* confdefs.h. */
  11999. _ACEOF
  12000. cat confdefs.h >>conftest.$ac_ext
  12001. cat >>conftest.$ac_ext <<_ACEOF
  12002. /* end confdefs.h. */
  12003. /* Override any GCC internal prototype to avoid an error.
  12004. Use char because int might match the return type of a GCC
  12005. builtin and then its argument prototype would still apply. */
  12006. #ifdef __cplusplus
  12007. extern "C"
  12008. #endif
  12009. char pthread_kill ();
  12010. int
  12011. main ()
  12012. {
  12013. return pthread_kill ();
  12014. ;
  12015. return 0;
  12016. }
  12017. _ACEOF
  12018. rm -f conftest.$ac_objext conftest$ac_exeext
  12019. if { (ac_try="$ac_link"
  12020. case "(($ac_try" in
  12021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12022. *) ac_try_echo=$ac_try;;
  12023. esac
  12024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12025. $as_echo "$ac_try_echo") >&5
  12026. (eval "$ac_link") 2>conftest.er1
  12027. ac_status=$?
  12028. grep -v '^ *+' conftest.er1 >conftest.err
  12029. rm -f conftest.er1
  12030. cat conftest.err >&5
  12031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12032. (exit $ac_status); } && {
  12033. test -z "$ac_cxx_werror_flag" ||
  12034. test ! -s conftest.err
  12035. } && test -s conftest$ac_exeext && {
  12036. test "$cross_compiling" = yes ||
  12037. $as_test_x conftest$ac_exeext
  12038. }; then
  12039. ac_cv_lib_pthread_pthread_kill=yes
  12040. else
  12041. $as_echo "$as_me: failed program was:" >&5
  12042. sed 's/^/| /' conftest.$ac_ext >&5
  12043. ac_cv_lib_pthread_pthread_kill=no
  12044. fi
  12045. rm -rf conftest.dSYM
  12046. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12047. conftest$ac_exeext conftest.$ac_ext
  12048. LIBS=$ac_check_lib_save_LIBS
  12049. fi
  12050. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12051. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12052. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12053. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12054. # On Solaris and HP-UX, most pthread functions exist also in libc.
  12055. # Therefore pthread_in_use() needs to actually try to create a
  12056. # thread: pthread_create from libc will fail, whereas
  12057. # pthread_create will actually create a thread.
  12058. case "$host_os" in
  12059. solaris* | hpux*)
  12060. cat >>confdefs.h <<\_ACEOF
  12061. #define PTHREAD_IN_USE_DETECTION_HARD 1
  12062. _ACEOF
  12063. esac
  12064. fi
  12065. else
  12066. # Some library is needed. Try libpthread and libc_r.
  12067. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12068. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12069. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12070. $as_echo_n "(cached) " >&6
  12071. else
  12072. ac_check_lib_save_LIBS=$LIBS
  12073. LIBS="-lpthread $LIBS"
  12074. cat >conftest.$ac_ext <<_ACEOF
  12075. /* confdefs.h. */
  12076. _ACEOF
  12077. cat confdefs.h >>conftest.$ac_ext
  12078. cat >>conftest.$ac_ext <<_ACEOF
  12079. /* end confdefs.h. */
  12080. /* Override any GCC internal prototype to avoid an error.
  12081. Use char because int might match the return type of a GCC
  12082. builtin and then its argument prototype would still apply. */
  12083. #ifdef __cplusplus
  12084. extern "C"
  12085. #endif
  12086. char pthread_kill ();
  12087. int
  12088. main ()
  12089. {
  12090. return pthread_kill ();
  12091. ;
  12092. return 0;
  12093. }
  12094. _ACEOF
  12095. rm -f conftest.$ac_objext conftest$ac_exeext
  12096. if { (ac_try="$ac_link"
  12097. case "(($ac_try" in
  12098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12099. *) ac_try_echo=$ac_try;;
  12100. esac
  12101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12102. $as_echo "$ac_try_echo") >&5
  12103. (eval "$ac_link") 2>conftest.er1
  12104. ac_status=$?
  12105. grep -v '^ *+' conftest.er1 >conftest.err
  12106. rm -f conftest.er1
  12107. cat conftest.err >&5
  12108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12109. (exit $ac_status); } && {
  12110. test -z "$ac_cxx_werror_flag" ||
  12111. test ! -s conftest.err
  12112. } && test -s conftest$ac_exeext && {
  12113. test "$cross_compiling" = yes ||
  12114. $as_test_x conftest$ac_exeext
  12115. }; then
  12116. ac_cv_lib_pthread_pthread_kill=yes
  12117. else
  12118. $as_echo "$as_me: failed program was:" >&5
  12119. sed 's/^/| /' conftest.$ac_ext >&5
  12120. ac_cv_lib_pthread_pthread_kill=no
  12121. fi
  12122. rm -rf conftest.dSYM
  12123. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12124. conftest$ac_exeext conftest.$ac_ext
  12125. LIBS=$ac_check_lib_save_LIBS
  12126. fi
  12127. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12128. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12129. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12130. gl_have_pthread=yes
  12131. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  12132. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12133. fi
  12134. if test -z "$gl_have_pthread"; then
  12135. # For FreeBSD 4.
  12136. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  12137. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  12138. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  12139. $as_echo_n "(cached) " >&6
  12140. else
  12141. ac_check_lib_save_LIBS=$LIBS
  12142. LIBS="-lc_r $LIBS"
  12143. cat >conftest.$ac_ext <<_ACEOF
  12144. /* confdefs.h. */
  12145. _ACEOF
  12146. cat confdefs.h >>conftest.$ac_ext
  12147. cat >>conftest.$ac_ext <<_ACEOF
  12148. /* end confdefs.h. */
  12149. /* Override any GCC internal prototype to avoid an error.
  12150. Use char because int might match the return type of a GCC
  12151. builtin and then its argument prototype would still apply. */
  12152. #ifdef __cplusplus
  12153. extern "C"
  12154. #endif
  12155. char pthread_kill ();
  12156. int
  12157. main ()
  12158. {
  12159. return pthread_kill ();
  12160. ;
  12161. return 0;
  12162. }
  12163. _ACEOF
  12164. rm -f conftest.$ac_objext conftest$ac_exeext
  12165. if { (ac_try="$ac_link"
  12166. case "(($ac_try" in
  12167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12168. *) ac_try_echo=$ac_try;;
  12169. esac
  12170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12171. $as_echo "$ac_try_echo") >&5
  12172. (eval "$ac_link") 2>conftest.er1
  12173. ac_status=$?
  12174. grep -v '^ *+' conftest.er1 >conftest.err
  12175. rm -f conftest.er1
  12176. cat conftest.err >&5
  12177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12178. (exit $ac_status); } && {
  12179. test -z "$ac_cxx_werror_flag" ||
  12180. test ! -s conftest.err
  12181. } && test -s conftest$ac_exeext && {
  12182. test "$cross_compiling" = yes ||
  12183. $as_test_x conftest$ac_exeext
  12184. }; then
  12185. ac_cv_lib_c_r_pthread_kill=yes
  12186. else
  12187. $as_echo "$as_me: failed program was:" >&5
  12188. sed 's/^/| /' conftest.$ac_ext >&5
  12189. ac_cv_lib_c_r_pthread_kill=no
  12190. fi
  12191. rm -rf conftest.dSYM
  12192. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12193. conftest$ac_exeext conftest.$ac_ext
  12194. LIBS=$ac_check_lib_save_LIBS
  12195. fi
  12196. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  12197. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  12198. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  12199. gl_have_pthread=yes
  12200. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  12201. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  12202. fi
  12203. fi
  12204. fi
  12205. if test -n "$gl_have_pthread"; then
  12206. gl_threads_api=posix
  12207. cat >>confdefs.h <<\_ACEOF
  12208. #define USE_POSIX_THREADS 1
  12209. _ACEOF
  12210. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12211. if test $gl_have_weak = yes; then
  12212. cat >>confdefs.h <<\_ACEOF
  12213. #define USE_POSIX_THREADS_WEAK 1
  12214. _ACEOF
  12215. LIBTHREAD=
  12216. LTLIBTHREAD=
  12217. fi
  12218. fi
  12219. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  12220. # pthread_rwlock_* functions.
  12221. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12222. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12223. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12224. $as_echo_n "(cached) " >&6
  12225. else
  12226. ac_cv_type_pthread_rwlock_t=no
  12227. cat >conftest.$ac_ext <<_ACEOF
  12228. /* confdefs.h. */
  12229. _ACEOF
  12230. cat confdefs.h >>conftest.$ac_ext
  12231. cat >>conftest.$ac_ext <<_ACEOF
  12232. /* end confdefs.h. */
  12233. #include <pthread.h>
  12234. int
  12235. main ()
  12236. {
  12237. if (sizeof (pthread_rwlock_t))
  12238. return 0;
  12239. ;
  12240. return 0;
  12241. }
  12242. _ACEOF
  12243. rm -f conftest.$ac_objext
  12244. if { (ac_try="$ac_compile"
  12245. case "(($ac_try" in
  12246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12247. *) ac_try_echo=$ac_try;;
  12248. esac
  12249. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12250. $as_echo "$ac_try_echo") >&5
  12251. (eval "$ac_compile") 2>conftest.er1
  12252. ac_status=$?
  12253. grep -v '^ *+' conftest.er1 >conftest.err
  12254. rm -f conftest.er1
  12255. cat conftest.err >&5
  12256. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12257. (exit $ac_status); } && {
  12258. test -z "$ac_cxx_werror_flag" ||
  12259. test ! -s conftest.err
  12260. } && test -s conftest.$ac_objext; then
  12261. cat >conftest.$ac_ext <<_ACEOF
  12262. /* confdefs.h. */
  12263. _ACEOF
  12264. cat confdefs.h >>conftest.$ac_ext
  12265. cat >>conftest.$ac_ext <<_ACEOF
  12266. /* end confdefs.h. */
  12267. #include <pthread.h>
  12268. int
  12269. main ()
  12270. {
  12271. if (sizeof ((pthread_rwlock_t)))
  12272. return 0;
  12273. ;
  12274. return 0;
  12275. }
  12276. _ACEOF
  12277. rm -f conftest.$ac_objext
  12278. if { (ac_try="$ac_compile"
  12279. case "(($ac_try" in
  12280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12281. *) ac_try_echo=$ac_try;;
  12282. esac
  12283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12284. $as_echo "$ac_try_echo") >&5
  12285. (eval "$ac_compile") 2>conftest.er1
  12286. ac_status=$?
  12287. grep -v '^ *+' conftest.er1 >conftest.err
  12288. rm -f conftest.er1
  12289. cat conftest.err >&5
  12290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12291. (exit $ac_status); } && {
  12292. test -z "$ac_cxx_werror_flag" ||
  12293. test ! -s conftest.err
  12294. } && test -s conftest.$ac_objext; then
  12295. :
  12296. else
  12297. $as_echo "$as_me: failed program was:" >&5
  12298. sed 's/^/| /' conftest.$ac_ext >&5
  12299. ac_cv_type_pthread_rwlock_t=yes
  12300. fi
  12301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12302. else
  12303. $as_echo "$as_me: failed program was:" >&5
  12304. sed 's/^/| /' conftest.$ac_ext >&5
  12305. fi
  12306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12307. fi
  12308. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12309. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12310. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12311. cat >>confdefs.h <<\_ACEOF
  12312. #define HAVE_PTHREAD_RWLOCK 1
  12313. _ACEOF
  12314. fi
  12315. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12316. cat >conftest.$ac_ext <<_ACEOF
  12317. /* confdefs.h. */
  12318. _ACEOF
  12319. cat confdefs.h >>conftest.$ac_ext
  12320. cat >>conftest.$ac_ext <<_ACEOF
  12321. /* end confdefs.h. */
  12322. #include <pthread.h>
  12323. int
  12324. main ()
  12325. {
  12326. #if __FreeBSD__ == 4
  12327. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12328. #else
  12329. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12330. return !x;
  12331. #endif
  12332. ;
  12333. return 0;
  12334. }
  12335. _ACEOF
  12336. rm -f conftest.$ac_objext
  12337. if { (ac_try="$ac_compile"
  12338. case "(($ac_try" in
  12339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12340. *) ac_try_echo=$ac_try;;
  12341. esac
  12342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12343. $as_echo "$ac_try_echo") >&5
  12344. (eval "$ac_compile") 2>conftest.er1
  12345. ac_status=$?
  12346. grep -v '^ *+' conftest.er1 >conftest.err
  12347. rm -f conftest.er1
  12348. cat conftest.err >&5
  12349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12350. (exit $ac_status); } && {
  12351. test -z "$ac_cxx_werror_flag" ||
  12352. test ! -s conftest.err
  12353. } && test -s conftest.$ac_objext; then
  12354. cat >>confdefs.h <<\_ACEOF
  12355. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12356. _ACEOF
  12357. else
  12358. $as_echo "$as_me: failed program was:" >&5
  12359. sed 's/^/| /' conftest.$ac_ext >&5
  12360. fi
  12361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12362. fi
  12363. fi
  12364. fi
  12365. if test -z "$gl_have_pthread"; then
  12366. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12367. gl_have_solaristhread=
  12368. gl_save_LIBS="$LIBS"
  12369. LIBS="$LIBS -lthread"
  12370. cat >conftest.$ac_ext <<_ACEOF
  12371. /* confdefs.h. */
  12372. _ACEOF
  12373. cat confdefs.h >>conftest.$ac_ext
  12374. cat >>conftest.$ac_ext <<_ACEOF
  12375. /* end confdefs.h. */
  12376. #include <thread.h>
  12377. #include <synch.h>
  12378. int
  12379. main ()
  12380. {
  12381. thr_self();
  12382. ;
  12383. return 0;
  12384. }
  12385. _ACEOF
  12386. rm -f conftest.$ac_objext conftest$ac_exeext
  12387. if { (ac_try="$ac_link"
  12388. case "(($ac_try" in
  12389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12390. *) ac_try_echo=$ac_try;;
  12391. esac
  12392. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12393. $as_echo "$ac_try_echo") >&5
  12394. (eval "$ac_link") 2>conftest.er1
  12395. ac_status=$?
  12396. grep -v '^ *+' conftest.er1 >conftest.err
  12397. rm -f conftest.er1
  12398. cat conftest.err >&5
  12399. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12400. (exit $ac_status); } && {
  12401. test -z "$ac_cxx_werror_flag" ||
  12402. test ! -s conftest.err
  12403. } && test -s conftest$ac_exeext && {
  12404. test "$cross_compiling" = yes ||
  12405. $as_test_x conftest$ac_exeext
  12406. }; then
  12407. gl_have_solaristhread=yes
  12408. else
  12409. $as_echo "$as_me: failed program was:" >&5
  12410. sed 's/^/| /' conftest.$ac_ext >&5
  12411. fi
  12412. rm -rf conftest.dSYM
  12413. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12414. conftest$ac_exeext conftest.$ac_ext
  12415. LIBS="$gl_save_LIBS"
  12416. if test -n "$gl_have_solaristhread"; then
  12417. gl_threads_api=solaris
  12418. LIBTHREAD=-lthread
  12419. LTLIBTHREAD=-lthread
  12420. LIBMULTITHREAD="$LIBTHREAD"
  12421. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12422. cat >>confdefs.h <<\_ACEOF
  12423. #define USE_SOLARIS_THREADS 1
  12424. _ACEOF
  12425. if test $gl_have_weak = yes; then
  12426. cat >>confdefs.h <<\_ACEOF
  12427. #define USE_SOLARIS_THREADS_WEAK 1
  12428. _ACEOF
  12429. LIBTHREAD=
  12430. LTLIBTHREAD=
  12431. fi
  12432. fi
  12433. fi
  12434. fi
  12435. if test "$gl_use_threads" = pth; then
  12436. gl_save_CPPFLAGS="$CPPFLAGS"
  12437. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12438. $as_echo_n "checking how to link with libpth... " >&6; }
  12439. if test "${ac_cv_libpth_libs+set}" = set; then
  12440. $as_echo_n "(cached) " >&6
  12441. else
  12442. use_additional=yes
  12443. acl_save_prefix="$prefix"
  12444. prefix="$acl_final_prefix"
  12445. acl_save_exec_prefix="$exec_prefix"
  12446. exec_prefix="$acl_final_exec_prefix"
  12447. eval additional_includedir=\"$includedir\"
  12448. eval additional_libdir=\"$libdir\"
  12449. exec_prefix="$acl_save_exec_prefix"
  12450. prefix="$acl_save_prefix"
  12451. # Check whether --with-libpth-prefix was given.
  12452. if test "${with_libpth_prefix+set}" = set; then
  12453. withval=$with_libpth_prefix;
  12454. if test "X$withval" = "Xno"; then
  12455. use_additional=no
  12456. else
  12457. if test "X$withval" = "X"; then
  12458. acl_save_prefix="$prefix"
  12459. prefix="$acl_final_prefix"
  12460. acl_save_exec_prefix="$exec_prefix"
  12461. exec_prefix="$acl_final_exec_prefix"
  12462. eval additional_includedir=\"$includedir\"
  12463. eval additional_libdir=\"$libdir\"
  12464. exec_prefix="$acl_save_exec_prefix"
  12465. prefix="$acl_save_prefix"
  12466. else
  12467. additional_includedir="$withval/include"
  12468. additional_libdir="$withval/$acl_libdirstem"
  12469. fi
  12470. fi
  12471. fi
  12472. LIBPTH=
  12473. LTLIBPTH=
  12474. INCPTH=
  12475. LIBPTH_PREFIX=
  12476. rpathdirs=
  12477. ltrpathdirs=
  12478. names_already_handled=
  12479. names_next_round='pth '
  12480. while test -n "$names_next_round"; do
  12481. names_this_round="$names_next_round"
  12482. names_next_round=
  12483. for name in $names_this_round; do
  12484. already_handled=
  12485. for n in $names_already_handled; do
  12486. if test "$n" = "$name"; then
  12487. already_handled=yes
  12488. break
  12489. fi
  12490. done
  12491. if test -z "$already_handled"; then
  12492. names_already_handled="$names_already_handled $name"
  12493. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12494. eval value=\"\$HAVE_LIB$uppername\"
  12495. if test -n "$value"; then
  12496. if test "$value" = yes; then
  12497. eval value=\"\$LIB$uppername\"
  12498. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12499. eval value=\"\$LTLIB$uppername\"
  12500. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12501. else
  12502. :
  12503. fi
  12504. else
  12505. found_dir=
  12506. found_la=
  12507. found_so=
  12508. found_a=
  12509. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12510. if test -n "$acl_shlibext"; then
  12511. shrext=".$acl_shlibext" # typically: shrext=.so
  12512. else
  12513. shrext=
  12514. fi
  12515. if test $use_additional = yes; then
  12516. dir="$additional_libdir"
  12517. if test -n "$acl_shlibext"; then
  12518. if test -f "$dir/$libname$shrext"; then
  12519. found_dir="$dir"
  12520. found_so="$dir/$libname$shrext"
  12521. else
  12522. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12523. ver=`(cd "$dir" && \
  12524. for f in "$libname$shrext".*; do echo "$f"; done \
  12525. | sed -e "s,^$libname$shrext\\\\.,," \
  12526. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12527. | sed 1q ) 2>/dev/null`
  12528. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12529. found_dir="$dir"
  12530. found_so="$dir/$libname$shrext.$ver"
  12531. fi
  12532. else
  12533. eval library_names=\"$acl_library_names_spec\"
  12534. for f in $library_names; do
  12535. if test -f "$dir/$f"; then
  12536. found_dir="$dir"
  12537. found_so="$dir/$f"
  12538. break
  12539. fi
  12540. done
  12541. fi
  12542. fi
  12543. fi
  12544. if test "X$found_dir" = "X"; then
  12545. if test -f "$dir/$libname.$acl_libext"; then
  12546. found_dir="$dir"
  12547. found_a="$dir/$libname.$acl_libext"
  12548. fi
  12549. fi
  12550. if test "X$found_dir" != "X"; then
  12551. if test -f "$dir/$libname.la"; then
  12552. found_la="$dir/$libname.la"
  12553. fi
  12554. fi
  12555. fi
  12556. if test "X$found_dir" = "X"; then
  12557. for x in $LDFLAGS $LTLIBPTH; do
  12558. acl_save_prefix="$prefix"
  12559. prefix="$acl_final_prefix"
  12560. acl_save_exec_prefix="$exec_prefix"
  12561. exec_prefix="$acl_final_exec_prefix"
  12562. eval x=\"$x\"
  12563. exec_prefix="$acl_save_exec_prefix"
  12564. prefix="$acl_save_prefix"
  12565. case "$x" in
  12566. -L*)
  12567. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12568. if test -n "$acl_shlibext"; then
  12569. if test -f "$dir/$libname$shrext"; then
  12570. found_dir="$dir"
  12571. found_so="$dir/$libname$shrext"
  12572. else
  12573. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12574. ver=`(cd "$dir" && \
  12575. for f in "$libname$shrext".*; do echo "$f"; done \
  12576. | sed -e "s,^$libname$shrext\\\\.,," \
  12577. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12578. | sed 1q ) 2>/dev/null`
  12579. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12580. found_dir="$dir"
  12581. found_so="$dir/$libname$shrext.$ver"
  12582. fi
  12583. else
  12584. eval library_names=\"$acl_library_names_spec\"
  12585. for f in $library_names; do
  12586. if test -f "$dir/$f"; then
  12587. found_dir="$dir"
  12588. found_so="$dir/$f"
  12589. break
  12590. fi
  12591. done
  12592. fi
  12593. fi
  12594. fi
  12595. if test "X$found_dir" = "X"; then
  12596. if test -f "$dir/$libname.$acl_libext"; then
  12597. found_dir="$dir"
  12598. found_a="$dir/$libname.$acl_libext"
  12599. fi
  12600. fi
  12601. if test "X$found_dir" != "X"; then
  12602. if test -f "$dir/$libname.la"; then
  12603. found_la="$dir/$libname.la"
  12604. fi
  12605. fi
  12606. ;;
  12607. esac
  12608. if test "X$found_dir" != "X"; then
  12609. break
  12610. fi
  12611. done
  12612. fi
  12613. if test "X$found_dir" != "X"; then
  12614. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12615. if test "X$found_so" != "X"; then
  12616. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12617. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12618. else
  12619. haveit=
  12620. for x in $ltrpathdirs; do
  12621. if test "X$x" = "X$found_dir"; then
  12622. haveit=yes
  12623. break
  12624. fi
  12625. done
  12626. if test -z "$haveit"; then
  12627. ltrpathdirs="$ltrpathdirs $found_dir"
  12628. fi
  12629. if test "$acl_hardcode_direct" = yes; then
  12630. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12631. else
  12632. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12633. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12634. haveit=
  12635. for x in $rpathdirs; do
  12636. if test "X$x" = "X$found_dir"; then
  12637. haveit=yes
  12638. break
  12639. fi
  12640. done
  12641. if test -z "$haveit"; then
  12642. rpathdirs="$rpathdirs $found_dir"
  12643. fi
  12644. else
  12645. haveit=
  12646. for x in $LDFLAGS $LIBPTH; do
  12647. acl_save_prefix="$prefix"
  12648. prefix="$acl_final_prefix"
  12649. acl_save_exec_prefix="$exec_prefix"
  12650. exec_prefix="$acl_final_exec_prefix"
  12651. eval x=\"$x\"
  12652. exec_prefix="$acl_save_exec_prefix"
  12653. prefix="$acl_save_prefix"
  12654. if test "X$x" = "X-L$found_dir"; then
  12655. haveit=yes
  12656. break
  12657. fi
  12658. done
  12659. if test -z "$haveit"; then
  12660. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12661. fi
  12662. if test "$acl_hardcode_minus_L" != no; then
  12663. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12664. else
  12665. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12666. fi
  12667. fi
  12668. fi
  12669. fi
  12670. else
  12671. if test "X$found_a" != "X"; then
  12672. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12673. else
  12674. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12675. fi
  12676. fi
  12677. additional_includedir=
  12678. case "$found_dir" in
  12679. */$acl_libdirstem | */$acl_libdirstem/)
  12680. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12681. LIBPTH_PREFIX="$basedir"
  12682. additional_includedir="$basedir/include"
  12683. ;;
  12684. esac
  12685. if test "X$additional_includedir" != "X"; then
  12686. if test "X$additional_includedir" != "X/usr/include"; then
  12687. haveit=
  12688. if test "X$additional_includedir" = "X/usr/local/include"; then
  12689. if test -n "$GCC"; then
  12690. case $host_os in
  12691. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12692. esac
  12693. fi
  12694. fi
  12695. if test -z "$haveit"; then
  12696. for x in $CPPFLAGS $INCPTH; do
  12697. acl_save_prefix="$prefix"
  12698. prefix="$acl_final_prefix"
  12699. acl_save_exec_prefix="$exec_prefix"
  12700. exec_prefix="$acl_final_exec_prefix"
  12701. eval x=\"$x\"
  12702. exec_prefix="$acl_save_exec_prefix"
  12703. prefix="$acl_save_prefix"
  12704. if test "X$x" = "X-I$additional_includedir"; then
  12705. haveit=yes
  12706. break
  12707. fi
  12708. done
  12709. if test -z "$haveit"; then
  12710. if test -d "$additional_includedir"; then
  12711. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12712. fi
  12713. fi
  12714. fi
  12715. fi
  12716. fi
  12717. if test -n "$found_la"; then
  12718. save_libdir="$libdir"
  12719. case "$found_la" in
  12720. */* | *\\*) . "$found_la" ;;
  12721. *) . "./$found_la" ;;
  12722. esac
  12723. libdir="$save_libdir"
  12724. for dep in $dependency_libs; do
  12725. case "$dep" in
  12726. -L*)
  12727. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12728. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12729. haveit=
  12730. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12731. if test -n "$GCC"; then
  12732. case $host_os in
  12733. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12734. esac
  12735. fi
  12736. fi
  12737. if test -z "$haveit"; then
  12738. haveit=
  12739. for x in $LDFLAGS $LIBPTH; do
  12740. acl_save_prefix="$prefix"
  12741. prefix="$acl_final_prefix"
  12742. acl_save_exec_prefix="$exec_prefix"
  12743. exec_prefix="$acl_final_exec_prefix"
  12744. eval x=\"$x\"
  12745. exec_prefix="$acl_save_exec_prefix"
  12746. prefix="$acl_save_prefix"
  12747. if test "X$x" = "X-L$additional_libdir"; then
  12748. haveit=yes
  12749. break
  12750. fi
  12751. done
  12752. if test -z "$haveit"; then
  12753. if test -d "$additional_libdir"; then
  12754. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12755. fi
  12756. fi
  12757. haveit=
  12758. for x in $LDFLAGS $LTLIBPTH; do
  12759. acl_save_prefix="$prefix"
  12760. prefix="$acl_final_prefix"
  12761. acl_save_exec_prefix="$exec_prefix"
  12762. exec_prefix="$acl_final_exec_prefix"
  12763. eval x=\"$x\"
  12764. exec_prefix="$acl_save_exec_prefix"
  12765. prefix="$acl_save_prefix"
  12766. if test "X$x" = "X-L$additional_libdir"; then
  12767. haveit=yes
  12768. break
  12769. fi
  12770. done
  12771. if test -z "$haveit"; then
  12772. if test -d "$additional_libdir"; then
  12773. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12774. fi
  12775. fi
  12776. fi
  12777. fi
  12778. ;;
  12779. -R*)
  12780. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12781. if test "$enable_rpath" != no; then
  12782. haveit=
  12783. for x in $rpathdirs; do
  12784. if test "X$x" = "X$dir"; then
  12785. haveit=yes
  12786. break
  12787. fi
  12788. done
  12789. if test -z "$haveit"; then
  12790. rpathdirs="$rpathdirs $dir"
  12791. fi
  12792. haveit=
  12793. for x in $ltrpathdirs; do
  12794. if test "X$x" = "X$dir"; then
  12795. haveit=yes
  12796. break
  12797. fi
  12798. done
  12799. if test -z "$haveit"; then
  12800. ltrpathdirs="$ltrpathdirs $dir"
  12801. fi
  12802. fi
  12803. ;;
  12804. -l*)
  12805. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12806. ;;
  12807. *.la)
  12808. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12809. ;;
  12810. *)
  12811. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12812. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12813. ;;
  12814. esac
  12815. done
  12816. fi
  12817. else
  12818. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12819. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12820. fi
  12821. fi
  12822. fi
  12823. done
  12824. done
  12825. if test "X$rpathdirs" != "X"; then
  12826. if test -n "$acl_hardcode_libdir_separator"; then
  12827. alldirs=
  12828. for found_dir in $rpathdirs; do
  12829. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12830. done
  12831. acl_save_libdir="$libdir"
  12832. libdir="$alldirs"
  12833. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12834. libdir="$acl_save_libdir"
  12835. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12836. else
  12837. for found_dir in $rpathdirs; do
  12838. acl_save_libdir="$libdir"
  12839. libdir="$found_dir"
  12840. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12841. libdir="$acl_save_libdir"
  12842. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12843. done
  12844. fi
  12845. fi
  12846. if test "X$ltrpathdirs" != "X"; then
  12847. for found_dir in $ltrpathdirs; do
  12848. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12849. done
  12850. fi
  12851. ac_cv_libpth_libs="$LIBPTH"
  12852. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12853. ac_cv_libpth_cppflags="$INCPTH"
  12854. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12855. fi
  12856. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12857. $as_echo "$ac_cv_libpth_libs" >&6; }
  12858. LIBPTH="$ac_cv_libpth_libs"
  12859. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12860. INCPTH="$ac_cv_libpth_cppflags"
  12861. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12862. for element in $INCPTH; do
  12863. haveit=
  12864. for x in $CPPFLAGS; do
  12865. acl_save_prefix="$prefix"
  12866. prefix="$acl_final_prefix"
  12867. acl_save_exec_prefix="$exec_prefix"
  12868. exec_prefix="$acl_final_exec_prefix"
  12869. eval x=\"$x\"
  12870. exec_prefix="$acl_save_exec_prefix"
  12871. prefix="$acl_save_prefix"
  12872. if test "X$x" = "X$element"; then
  12873. haveit=yes
  12874. break
  12875. fi
  12876. done
  12877. if test -z "$haveit"; then
  12878. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12879. fi
  12880. done
  12881. HAVE_LIBPTH=yes
  12882. gl_have_pth=
  12883. gl_save_LIBS="$LIBS"
  12884. LIBS="$LIBS -lpth"
  12885. cat >conftest.$ac_ext <<_ACEOF
  12886. /* confdefs.h. */
  12887. _ACEOF
  12888. cat confdefs.h >>conftest.$ac_ext
  12889. cat >>conftest.$ac_ext <<_ACEOF
  12890. /* end confdefs.h. */
  12891. #include <pth.h>
  12892. int
  12893. main ()
  12894. {
  12895. pth_self();
  12896. ;
  12897. return 0;
  12898. }
  12899. _ACEOF
  12900. rm -f conftest.$ac_objext conftest$ac_exeext
  12901. if { (ac_try="$ac_link"
  12902. case "(($ac_try" in
  12903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12904. *) ac_try_echo=$ac_try;;
  12905. esac
  12906. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12907. $as_echo "$ac_try_echo") >&5
  12908. (eval "$ac_link") 2>conftest.er1
  12909. ac_status=$?
  12910. grep -v '^ *+' conftest.er1 >conftest.err
  12911. rm -f conftest.er1
  12912. cat conftest.err >&5
  12913. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12914. (exit $ac_status); } && {
  12915. test -z "$ac_cxx_werror_flag" ||
  12916. test ! -s conftest.err
  12917. } && test -s conftest$ac_exeext && {
  12918. test "$cross_compiling" = yes ||
  12919. $as_test_x conftest$ac_exeext
  12920. }; then
  12921. gl_have_pth=yes
  12922. else
  12923. $as_echo "$as_me: failed program was:" >&5
  12924. sed 's/^/| /' conftest.$ac_ext >&5
  12925. fi
  12926. rm -rf conftest.dSYM
  12927. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12928. conftest$ac_exeext conftest.$ac_ext
  12929. LIBS="$gl_save_LIBS"
  12930. if test -n "$gl_have_pth"; then
  12931. gl_threads_api=pth
  12932. LIBTHREAD="$LIBPTH"
  12933. LTLIBTHREAD="$LTLIBPTH"
  12934. LIBMULTITHREAD="$LIBTHREAD"
  12935. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12936. cat >>confdefs.h <<\_ACEOF
  12937. #define USE_PTH_THREADS 1
  12938. _ACEOF
  12939. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12940. if test $gl_have_weak = yes; then
  12941. cat >>confdefs.h <<\_ACEOF
  12942. #define USE_PTH_THREADS_WEAK 1
  12943. _ACEOF
  12944. LIBTHREAD=
  12945. LTLIBTHREAD=
  12946. fi
  12947. fi
  12948. else
  12949. CPPFLAGS="$gl_save_CPPFLAGS"
  12950. fi
  12951. fi
  12952. if test -z "$gl_have_pthread"; then
  12953. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12954. if { case "$host_os" in
  12955. mingw*) true;;
  12956. *) false;;
  12957. esac
  12958. }; then
  12959. gl_threads_api=win32
  12960. cat >>confdefs.h <<\_ACEOF
  12961. #define USE_WIN32_THREADS 1
  12962. _ACEOF
  12963. fi
  12964. fi
  12965. fi
  12966. fi
  12967. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12968. $as_echo_n "checking for multithread API to use... " >&6; }
  12969. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12970. $as_echo "$gl_threads_api" >&6; }
  12971. use_additional=yes
  12972. acl_save_prefix="$prefix"
  12973. prefix="$acl_final_prefix"
  12974. acl_save_exec_prefix="$exec_prefix"
  12975. exec_prefix="$acl_final_exec_prefix"
  12976. eval additional_includedir=\"$includedir\"
  12977. eval additional_libdir=\"$libdir\"
  12978. exec_prefix="$acl_save_exec_prefix"
  12979. prefix="$acl_save_prefix"
  12980. # Check whether --with-libiconv-prefix was given.
  12981. if test "${with_libiconv_prefix+set}" = set; then
  12982. withval=$with_libiconv_prefix;
  12983. if test "X$withval" = "Xno"; then
  12984. use_additional=no
  12985. else
  12986. if test "X$withval" = "X"; then
  12987. acl_save_prefix="$prefix"
  12988. prefix="$acl_final_prefix"
  12989. acl_save_exec_prefix="$exec_prefix"
  12990. exec_prefix="$acl_final_exec_prefix"
  12991. eval additional_includedir=\"$includedir\"
  12992. eval additional_libdir=\"$libdir\"
  12993. exec_prefix="$acl_save_exec_prefix"
  12994. prefix="$acl_save_prefix"
  12995. else
  12996. additional_includedir="$withval/include"
  12997. additional_libdir="$withval/$acl_libdirstem"
  12998. fi
  12999. fi
  13000. fi
  13001. LIBICONV=
  13002. LTLIBICONV=
  13003. INCICONV=
  13004. LIBICONV_PREFIX=
  13005. rpathdirs=
  13006. ltrpathdirs=
  13007. names_already_handled=
  13008. names_next_round='iconv '
  13009. while test -n "$names_next_round"; do
  13010. names_this_round="$names_next_round"
  13011. names_next_round=
  13012. for name in $names_this_round; do
  13013. already_handled=
  13014. for n in $names_already_handled; do
  13015. if test "$n" = "$name"; then
  13016. already_handled=yes
  13017. break
  13018. fi
  13019. done
  13020. if test -z "$already_handled"; then
  13021. names_already_handled="$names_already_handled $name"
  13022. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13023. eval value=\"\$HAVE_LIB$uppername\"
  13024. if test -n "$value"; then
  13025. if test "$value" = yes; then
  13026. eval value=\"\$LIB$uppername\"
  13027. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  13028. eval value=\"\$LTLIB$uppername\"
  13029. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  13030. else
  13031. :
  13032. fi
  13033. else
  13034. found_dir=
  13035. found_la=
  13036. found_so=
  13037. found_a=
  13038. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13039. if test -n "$acl_shlibext"; then
  13040. shrext=".$acl_shlibext" # typically: shrext=.so
  13041. else
  13042. shrext=
  13043. fi
  13044. if test $use_additional = yes; then
  13045. dir="$additional_libdir"
  13046. if test -n "$acl_shlibext"; then
  13047. if test -f "$dir/$libname$shrext"; then
  13048. found_dir="$dir"
  13049. found_so="$dir/$libname$shrext"
  13050. else
  13051. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13052. ver=`(cd "$dir" && \
  13053. for f in "$libname$shrext".*; do echo "$f"; done \
  13054. | sed -e "s,^$libname$shrext\\\\.,," \
  13055. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13056. | sed 1q ) 2>/dev/null`
  13057. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13058. found_dir="$dir"
  13059. found_so="$dir/$libname$shrext.$ver"
  13060. fi
  13061. else
  13062. eval library_names=\"$acl_library_names_spec\"
  13063. for f in $library_names; do
  13064. if test -f "$dir/$f"; then
  13065. found_dir="$dir"
  13066. found_so="$dir/$f"
  13067. break
  13068. fi
  13069. done
  13070. fi
  13071. fi
  13072. fi
  13073. if test "X$found_dir" = "X"; then
  13074. if test -f "$dir/$libname.$acl_libext"; then
  13075. found_dir="$dir"
  13076. found_a="$dir/$libname.$acl_libext"
  13077. fi
  13078. fi
  13079. if test "X$found_dir" != "X"; then
  13080. if test -f "$dir/$libname.la"; then
  13081. found_la="$dir/$libname.la"
  13082. fi
  13083. fi
  13084. fi
  13085. if test "X$found_dir" = "X"; then
  13086. for x in $LDFLAGS $LTLIBICONV; do
  13087. acl_save_prefix="$prefix"
  13088. prefix="$acl_final_prefix"
  13089. acl_save_exec_prefix="$exec_prefix"
  13090. exec_prefix="$acl_final_exec_prefix"
  13091. eval x=\"$x\"
  13092. exec_prefix="$acl_save_exec_prefix"
  13093. prefix="$acl_save_prefix"
  13094. case "$x" in
  13095. -L*)
  13096. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13097. if test -n "$acl_shlibext"; then
  13098. if test -f "$dir/$libname$shrext"; then
  13099. found_dir="$dir"
  13100. found_so="$dir/$libname$shrext"
  13101. else
  13102. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13103. ver=`(cd "$dir" && \
  13104. for f in "$libname$shrext".*; do echo "$f"; done \
  13105. | sed -e "s,^$libname$shrext\\\\.,," \
  13106. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13107. | sed 1q ) 2>/dev/null`
  13108. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13109. found_dir="$dir"
  13110. found_so="$dir/$libname$shrext.$ver"
  13111. fi
  13112. else
  13113. eval library_names=\"$acl_library_names_spec\"
  13114. for f in $library_names; do
  13115. if test -f "$dir/$f"; then
  13116. found_dir="$dir"
  13117. found_so="$dir/$f"
  13118. break
  13119. fi
  13120. done
  13121. fi
  13122. fi
  13123. fi
  13124. if test "X$found_dir" = "X"; then
  13125. if test -f "$dir/$libname.$acl_libext"; then
  13126. found_dir="$dir"
  13127. found_a="$dir/$libname.$acl_libext"
  13128. fi
  13129. fi
  13130. if test "X$found_dir" != "X"; then
  13131. if test -f "$dir/$libname.la"; then
  13132. found_la="$dir/$libname.la"
  13133. fi
  13134. fi
  13135. ;;
  13136. esac
  13137. if test "X$found_dir" != "X"; then
  13138. break
  13139. fi
  13140. done
  13141. fi
  13142. if test "X$found_dir" != "X"; then
  13143. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  13144. if test "X$found_so" != "X"; then
  13145. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13146. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13147. else
  13148. haveit=
  13149. for x in $ltrpathdirs; do
  13150. if test "X$x" = "X$found_dir"; then
  13151. haveit=yes
  13152. break
  13153. fi
  13154. done
  13155. if test -z "$haveit"; then
  13156. ltrpathdirs="$ltrpathdirs $found_dir"
  13157. fi
  13158. if test "$acl_hardcode_direct" = yes; then
  13159. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13160. else
  13161. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13162. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13163. haveit=
  13164. for x in $rpathdirs; do
  13165. if test "X$x" = "X$found_dir"; then
  13166. haveit=yes
  13167. break
  13168. fi
  13169. done
  13170. if test -z "$haveit"; then
  13171. rpathdirs="$rpathdirs $found_dir"
  13172. fi
  13173. else
  13174. haveit=
  13175. for x in $LDFLAGS $LIBICONV; do
  13176. acl_save_prefix="$prefix"
  13177. prefix="$acl_final_prefix"
  13178. acl_save_exec_prefix="$exec_prefix"
  13179. exec_prefix="$acl_final_exec_prefix"
  13180. eval x=\"$x\"
  13181. exec_prefix="$acl_save_exec_prefix"
  13182. prefix="$acl_save_prefix"
  13183. if test "X$x" = "X-L$found_dir"; then
  13184. haveit=yes
  13185. break
  13186. fi
  13187. done
  13188. if test -z "$haveit"; then
  13189. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13190. fi
  13191. if test "$acl_hardcode_minus_L" != no; then
  13192. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13193. else
  13194. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13195. fi
  13196. fi
  13197. fi
  13198. fi
  13199. else
  13200. if test "X$found_a" != "X"; then
  13201. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13202. else
  13203. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13204. fi
  13205. fi
  13206. additional_includedir=
  13207. case "$found_dir" in
  13208. */$acl_libdirstem | */$acl_libdirstem/)
  13209. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13210. LIBICONV_PREFIX="$basedir"
  13211. additional_includedir="$basedir/include"
  13212. ;;
  13213. esac
  13214. if test "X$additional_includedir" != "X"; then
  13215. if test "X$additional_includedir" != "X/usr/include"; then
  13216. haveit=
  13217. if test "X$additional_includedir" = "X/usr/local/include"; then
  13218. if test -n "$GCC"; then
  13219. case $host_os in
  13220. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13221. esac
  13222. fi
  13223. fi
  13224. if test -z "$haveit"; then
  13225. for x in $CPPFLAGS $INCICONV; do
  13226. acl_save_prefix="$prefix"
  13227. prefix="$acl_final_prefix"
  13228. acl_save_exec_prefix="$exec_prefix"
  13229. exec_prefix="$acl_final_exec_prefix"
  13230. eval x=\"$x\"
  13231. exec_prefix="$acl_save_exec_prefix"
  13232. prefix="$acl_save_prefix"
  13233. if test "X$x" = "X-I$additional_includedir"; then
  13234. haveit=yes
  13235. break
  13236. fi
  13237. done
  13238. if test -z "$haveit"; then
  13239. if test -d "$additional_includedir"; then
  13240. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13241. fi
  13242. fi
  13243. fi
  13244. fi
  13245. fi
  13246. if test -n "$found_la"; then
  13247. save_libdir="$libdir"
  13248. case "$found_la" in
  13249. */* | *\\*) . "$found_la" ;;
  13250. *) . "./$found_la" ;;
  13251. esac
  13252. libdir="$save_libdir"
  13253. for dep in $dependency_libs; do
  13254. case "$dep" in
  13255. -L*)
  13256. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13257. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13258. haveit=
  13259. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13260. if test -n "$GCC"; then
  13261. case $host_os in
  13262. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13263. esac
  13264. fi
  13265. fi
  13266. if test -z "$haveit"; then
  13267. haveit=
  13268. for x in $LDFLAGS $LIBICONV; do
  13269. acl_save_prefix="$prefix"
  13270. prefix="$acl_final_prefix"
  13271. acl_save_exec_prefix="$exec_prefix"
  13272. exec_prefix="$acl_final_exec_prefix"
  13273. eval x=\"$x\"
  13274. exec_prefix="$acl_save_exec_prefix"
  13275. prefix="$acl_save_prefix"
  13276. if test "X$x" = "X-L$additional_libdir"; then
  13277. haveit=yes
  13278. break
  13279. fi
  13280. done
  13281. if test -z "$haveit"; then
  13282. if test -d "$additional_libdir"; then
  13283. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13284. fi
  13285. fi
  13286. haveit=
  13287. for x in $LDFLAGS $LTLIBICONV; do
  13288. acl_save_prefix="$prefix"
  13289. prefix="$acl_final_prefix"
  13290. acl_save_exec_prefix="$exec_prefix"
  13291. exec_prefix="$acl_final_exec_prefix"
  13292. eval x=\"$x\"
  13293. exec_prefix="$acl_save_exec_prefix"
  13294. prefix="$acl_save_prefix"
  13295. if test "X$x" = "X-L$additional_libdir"; then
  13296. haveit=yes
  13297. break
  13298. fi
  13299. done
  13300. if test -z "$haveit"; then
  13301. if test -d "$additional_libdir"; then
  13302. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13303. fi
  13304. fi
  13305. fi
  13306. fi
  13307. ;;
  13308. -R*)
  13309. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13310. if test "$enable_rpath" != no; then
  13311. haveit=
  13312. for x in $rpathdirs; do
  13313. if test "X$x" = "X$dir"; then
  13314. haveit=yes
  13315. break
  13316. fi
  13317. done
  13318. if test -z "$haveit"; then
  13319. rpathdirs="$rpathdirs $dir"
  13320. fi
  13321. haveit=
  13322. for x in $ltrpathdirs; do
  13323. if test "X$x" = "X$dir"; then
  13324. haveit=yes
  13325. break
  13326. fi
  13327. done
  13328. if test -z "$haveit"; then
  13329. ltrpathdirs="$ltrpathdirs $dir"
  13330. fi
  13331. fi
  13332. ;;
  13333. -l*)
  13334. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13335. ;;
  13336. *.la)
  13337. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13338. ;;
  13339. *)
  13340. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13341. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13342. ;;
  13343. esac
  13344. done
  13345. fi
  13346. else
  13347. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13348. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13349. fi
  13350. fi
  13351. fi
  13352. done
  13353. done
  13354. if test "X$rpathdirs" != "X"; then
  13355. if test -n "$acl_hardcode_libdir_separator"; then
  13356. alldirs=
  13357. for found_dir in $rpathdirs; do
  13358. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13359. done
  13360. acl_save_libdir="$libdir"
  13361. libdir="$alldirs"
  13362. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13363. libdir="$acl_save_libdir"
  13364. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13365. else
  13366. for found_dir in $rpathdirs; do
  13367. acl_save_libdir="$libdir"
  13368. libdir="$found_dir"
  13369. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13370. libdir="$acl_save_libdir"
  13371. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13372. done
  13373. fi
  13374. fi
  13375. if test "X$ltrpathdirs" != "X"; then
  13376. for found_dir in $ltrpathdirs; do
  13377. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13378. done
  13379. fi
  13380. cat >conftest.$ac_ext <<_ACEOF
  13381. /* confdefs.h. */
  13382. _ACEOF
  13383. cat confdefs.h >>conftest.$ac_ext
  13384. cat >>conftest.$ac_ext <<_ACEOF
  13385. /* end confdefs.h. */
  13386. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13387. int
  13388. main ()
  13389. {
  13390. ;
  13391. return 0;
  13392. }
  13393. _ACEOF
  13394. rm -f conftest.$ac_objext conftest$ac_exeext
  13395. if { (ac_try="$ac_link"
  13396. case "(($ac_try" in
  13397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13398. *) ac_try_echo=$ac_try;;
  13399. esac
  13400. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13401. $as_echo "$ac_try_echo") >&5
  13402. (eval "$ac_link") 2>conftest.er1
  13403. ac_status=$?
  13404. grep -v '^ *+' conftest.er1 >conftest.err
  13405. rm -f conftest.er1
  13406. cat conftest.err >&5
  13407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13408. (exit $ac_status); } && {
  13409. test -z "$ac_cxx_werror_flag" ||
  13410. test ! -s conftest.err
  13411. } && test -s conftest$ac_exeext && {
  13412. test "$cross_compiling" = yes ||
  13413. $as_test_x conftest$ac_exeext
  13414. }; then
  13415. cat >>confdefs.h <<\_ACEOF
  13416. #define HAVE_BUILTIN_EXPECT 1
  13417. _ACEOF
  13418. else
  13419. $as_echo "$as_me: failed program was:" >&5
  13420. sed 's/^/| /' conftest.$ac_ext >&5
  13421. fi
  13422. rm -rf conftest.dSYM
  13423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13424. conftest$ac_exeext conftest.$ac_ext
  13425. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13426. do
  13427. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13428. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13429. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13430. $as_echo_n "checking for $ac_header... " >&6; }
  13431. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13432. $as_echo_n "(cached) " >&6
  13433. fi
  13434. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13435. $as_echo "$as_val"'`
  13436. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13437. $as_echo "$ac_res" >&6; }
  13438. else
  13439. # Is the header compilable?
  13440. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13441. $as_echo_n "checking $ac_header usability... " >&6; }
  13442. cat >conftest.$ac_ext <<_ACEOF
  13443. /* confdefs.h. */
  13444. _ACEOF
  13445. cat confdefs.h >>conftest.$ac_ext
  13446. cat >>conftest.$ac_ext <<_ACEOF
  13447. /* end confdefs.h. */
  13448. $ac_includes_default
  13449. #include <$ac_header>
  13450. _ACEOF
  13451. rm -f conftest.$ac_objext
  13452. if { (ac_try="$ac_compile"
  13453. case "(($ac_try" in
  13454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13455. *) ac_try_echo=$ac_try;;
  13456. esac
  13457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13458. $as_echo "$ac_try_echo") >&5
  13459. (eval "$ac_compile") 2>conftest.er1
  13460. ac_status=$?
  13461. grep -v '^ *+' conftest.er1 >conftest.err
  13462. rm -f conftest.er1
  13463. cat conftest.err >&5
  13464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13465. (exit $ac_status); } && {
  13466. test -z "$ac_cxx_werror_flag" ||
  13467. test ! -s conftest.err
  13468. } && test -s conftest.$ac_objext; then
  13469. ac_header_compiler=yes
  13470. else
  13471. $as_echo "$as_me: failed program was:" >&5
  13472. sed 's/^/| /' conftest.$ac_ext >&5
  13473. ac_header_compiler=no
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13476. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13477. $as_echo "$ac_header_compiler" >&6; }
  13478. # Is the header present?
  13479. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13480. $as_echo_n "checking $ac_header presence... " >&6; }
  13481. cat >conftest.$ac_ext <<_ACEOF
  13482. /* confdefs.h. */
  13483. _ACEOF
  13484. cat confdefs.h >>conftest.$ac_ext
  13485. cat >>conftest.$ac_ext <<_ACEOF
  13486. /* end confdefs.h. */
  13487. #include <$ac_header>
  13488. _ACEOF
  13489. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13490. case "(($ac_try" in
  13491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13492. *) ac_try_echo=$ac_try;;
  13493. esac
  13494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13495. $as_echo "$ac_try_echo") >&5
  13496. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13497. ac_status=$?
  13498. grep -v '^ *+' conftest.er1 >conftest.err
  13499. rm -f conftest.er1
  13500. cat conftest.err >&5
  13501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13502. (exit $ac_status); } >/dev/null && {
  13503. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13504. test ! -s conftest.err
  13505. }; then
  13506. ac_header_preproc=yes
  13507. else
  13508. $as_echo "$as_me: failed program was:" >&5
  13509. sed 's/^/| /' conftest.$ac_ext >&5
  13510. ac_header_preproc=no
  13511. fi
  13512. rm -f conftest.err conftest.$ac_ext
  13513. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13514. $as_echo "$ac_header_preproc" >&6; }
  13515. # So? What about this header?
  13516. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13517. yes:no: )
  13518. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13519. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13520. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13521. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13522. ac_header_preproc=yes
  13523. ;;
  13524. no:yes:* )
  13525. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13526. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13527. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13528. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13529. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13530. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13531. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13532. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13533. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13534. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13535. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13536. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13537. ( cat <<\_ASBOX
  13538. ## ----------------------------------------------- ##
  13539. ## Report this to t-tujikawa@users.sourceforge.net ##
  13540. ## ----------------------------------------------- ##
  13541. _ASBOX
  13542. ) | sed "s/^/$as_me: WARNING: /" >&2
  13543. ;;
  13544. esac
  13545. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13546. $as_echo_n "checking for $ac_header... " >&6; }
  13547. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13548. $as_echo_n "(cached) " >&6
  13549. else
  13550. eval "$as_ac_Header=\$ac_header_preproc"
  13551. fi
  13552. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13553. $as_echo "$as_val"'`
  13554. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13555. $as_echo "$ac_res" >&6; }
  13556. fi
  13557. as_val=`eval 'as_val=${'$as_ac_Header'}
  13558. $as_echo "$as_val"'`
  13559. if test "x$as_val" = x""yes; then
  13560. cat >>confdefs.h <<_ACEOF
  13561. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13562. _ACEOF
  13563. fi
  13564. done
  13565. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13566. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13567. argz_next __fsetlocking
  13568. do
  13569. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13570. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13571. $as_echo_n "checking for $ac_func... " >&6; }
  13572. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13573. $as_echo_n "(cached) " >&6
  13574. else
  13575. cat >conftest.$ac_ext <<_ACEOF
  13576. /* confdefs.h. */
  13577. _ACEOF
  13578. cat confdefs.h >>conftest.$ac_ext
  13579. cat >>conftest.$ac_ext <<_ACEOF
  13580. /* end confdefs.h. */
  13581. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13582. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13583. #define $ac_func innocuous_$ac_func
  13584. /* System header to define __stub macros and hopefully few prototypes,
  13585. which can conflict with char $ac_func (); below.
  13586. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13587. <limits.h> exists even on freestanding compilers. */
  13588. #ifdef __STDC__
  13589. # include <limits.h>
  13590. #else
  13591. # include <assert.h>
  13592. #endif
  13593. #undef $ac_func
  13594. /* Override any GCC internal prototype to avoid an error.
  13595. Use char because int might match the return type of a GCC
  13596. builtin and then its argument prototype would still apply. */
  13597. #ifdef __cplusplus
  13598. extern "C"
  13599. #endif
  13600. char $ac_func ();
  13601. /* The GNU C library defines this for functions which it implements
  13602. to always fail with ENOSYS. Some functions are actually named
  13603. something starting with __ and the normal name is an alias. */
  13604. #if defined __stub_$ac_func || defined __stub___$ac_func
  13605. choke me
  13606. #endif
  13607. int
  13608. main ()
  13609. {
  13610. return $ac_func ();
  13611. ;
  13612. return 0;
  13613. }
  13614. _ACEOF
  13615. rm -f conftest.$ac_objext conftest$ac_exeext
  13616. if { (ac_try="$ac_link"
  13617. case "(($ac_try" in
  13618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13619. *) ac_try_echo=$ac_try;;
  13620. esac
  13621. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13622. $as_echo "$ac_try_echo") >&5
  13623. (eval "$ac_link") 2>conftest.er1
  13624. ac_status=$?
  13625. grep -v '^ *+' conftest.er1 >conftest.err
  13626. rm -f conftest.er1
  13627. cat conftest.err >&5
  13628. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13629. (exit $ac_status); } && {
  13630. test -z "$ac_cxx_werror_flag" ||
  13631. test ! -s conftest.err
  13632. } && test -s conftest$ac_exeext && {
  13633. test "$cross_compiling" = yes ||
  13634. $as_test_x conftest$ac_exeext
  13635. }; then
  13636. eval "$as_ac_var=yes"
  13637. else
  13638. $as_echo "$as_me: failed program was:" >&5
  13639. sed 's/^/| /' conftest.$ac_ext >&5
  13640. eval "$as_ac_var=no"
  13641. fi
  13642. rm -rf conftest.dSYM
  13643. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13644. conftest$ac_exeext conftest.$ac_ext
  13645. fi
  13646. ac_res=`eval 'as_val=${'$as_ac_var'}
  13647. $as_echo "$as_val"'`
  13648. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13649. $as_echo "$ac_res" >&6; }
  13650. as_val=`eval 'as_val=${'$as_ac_var'}
  13651. $as_echo "$as_val"'`
  13652. if test "x$as_val" = x""yes; then
  13653. cat >>confdefs.h <<_ACEOF
  13654. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13655. _ACEOF
  13656. fi
  13657. done
  13658. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13659. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13660. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13661. $as_echo_n "(cached) " >&6
  13662. else
  13663. cat >conftest.$ac_ext <<_ACEOF
  13664. /* confdefs.h. */
  13665. _ACEOF
  13666. cat confdefs.h >>conftest.$ac_ext
  13667. cat >>conftest.$ac_ext <<_ACEOF
  13668. /* end confdefs.h. */
  13669. #include <stdio.h>
  13670. int
  13671. main ()
  13672. {
  13673. #ifndef feof_unlocked
  13674. char *p = (char *) feof_unlocked;
  13675. #endif
  13676. ;
  13677. return 0;
  13678. }
  13679. _ACEOF
  13680. rm -f conftest.$ac_objext
  13681. if { (ac_try="$ac_compile"
  13682. case "(($ac_try" in
  13683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13684. *) ac_try_echo=$ac_try;;
  13685. esac
  13686. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13687. $as_echo "$ac_try_echo") >&5
  13688. (eval "$ac_compile") 2>conftest.er1
  13689. ac_status=$?
  13690. grep -v '^ *+' conftest.er1 >conftest.err
  13691. rm -f conftest.er1
  13692. cat conftest.err >&5
  13693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13694. (exit $ac_status); } && {
  13695. test -z "$ac_cxx_werror_flag" ||
  13696. test ! -s conftest.err
  13697. } && test -s conftest.$ac_objext; then
  13698. ac_cv_have_decl_feof_unlocked=yes
  13699. else
  13700. $as_echo "$as_me: failed program was:" >&5
  13701. sed 's/^/| /' conftest.$ac_ext >&5
  13702. ac_cv_have_decl_feof_unlocked=no
  13703. fi
  13704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13705. fi
  13706. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13707. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13708. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13709. gt_value=1
  13710. else
  13711. gt_value=0
  13712. fi
  13713. cat >>confdefs.h <<_ACEOF
  13714. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13715. _ACEOF
  13716. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13717. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13718. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13719. $as_echo_n "(cached) " >&6
  13720. else
  13721. cat >conftest.$ac_ext <<_ACEOF
  13722. /* confdefs.h. */
  13723. _ACEOF
  13724. cat confdefs.h >>conftest.$ac_ext
  13725. cat >>conftest.$ac_ext <<_ACEOF
  13726. /* end confdefs.h. */
  13727. #include <stdio.h>
  13728. int
  13729. main ()
  13730. {
  13731. #ifndef fgets_unlocked
  13732. char *p = (char *) fgets_unlocked;
  13733. #endif
  13734. ;
  13735. return 0;
  13736. }
  13737. _ACEOF
  13738. rm -f conftest.$ac_objext
  13739. if { (ac_try="$ac_compile"
  13740. case "(($ac_try" in
  13741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13742. *) ac_try_echo=$ac_try;;
  13743. esac
  13744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13745. $as_echo "$ac_try_echo") >&5
  13746. (eval "$ac_compile") 2>conftest.er1
  13747. ac_status=$?
  13748. grep -v '^ *+' conftest.er1 >conftest.err
  13749. rm -f conftest.er1
  13750. cat conftest.err >&5
  13751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13752. (exit $ac_status); } && {
  13753. test -z "$ac_cxx_werror_flag" ||
  13754. test ! -s conftest.err
  13755. } && test -s conftest.$ac_objext; then
  13756. ac_cv_have_decl_fgets_unlocked=yes
  13757. else
  13758. $as_echo "$as_me: failed program was:" >&5
  13759. sed 's/^/| /' conftest.$ac_ext >&5
  13760. ac_cv_have_decl_fgets_unlocked=no
  13761. fi
  13762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13763. fi
  13764. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13765. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13766. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13767. gt_value=1
  13768. else
  13769. gt_value=0
  13770. fi
  13771. cat >>confdefs.h <<_ACEOF
  13772. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13773. _ACEOF
  13774. am_save_CPPFLAGS="$CPPFLAGS"
  13775. for element in $INCICONV; do
  13776. haveit=
  13777. for x in $CPPFLAGS; do
  13778. acl_save_prefix="$prefix"
  13779. prefix="$acl_final_prefix"
  13780. acl_save_exec_prefix="$exec_prefix"
  13781. exec_prefix="$acl_final_exec_prefix"
  13782. eval x=\"$x\"
  13783. exec_prefix="$acl_save_exec_prefix"
  13784. prefix="$acl_save_prefix"
  13785. if test "X$x" = "X$element"; then
  13786. haveit=yes
  13787. break
  13788. fi
  13789. done
  13790. if test -z "$haveit"; then
  13791. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13792. fi
  13793. done
  13794. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13795. $as_echo_n "checking for iconv... " >&6; }
  13796. if test "${am_cv_func_iconv+set}" = set; then
  13797. $as_echo_n "(cached) " >&6
  13798. else
  13799. am_cv_func_iconv="no, consider installing GNU libiconv"
  13800. am_cv_lib_iconv=no
  13801. cat >conftest.$ac_ext <<_ACEOF
  13802. /* confdefs.h. */
  13803. _ACEOF
  13804. cat confdefs.h >>conftest.$ac_ext
  13805. cat >>conftest.$ac_ext <<_ACEOF
  13806. /* end confdefs.h. */
  13807. #include <stdlib.h>
  13808. #include <iconv.h>
  13809. int
  13810. main ()
  13811. {
  13812. iconv_t cd = iconv_open("","");
  13813. iconv(cd,NULL,NULL,NULL,NULL);
  13814. iconv_close(cd);
  13815. ;
  13816. return 0;
  13817. }
  13818. _ACEOF
  13819. rm -f conftest.$ac_objext conftest$ac_exeext
  13820. if { (ac_try="$ac_link"
  13821. case "(($ac_try" in
  13822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13823. *) ac_try_echo=$ac_try;;
  13824. esac
  13825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13826. $as_echo "$ac_try_echo") >&5
  13827. (eval "$ac_link") 2>conftest.er1
  13828. ac_status=$?
  13829. grep -v '^ *+' conftest.er1 >conftest.err
  13830. rm -f conftest.er1
  13831. cat conftest.err >&5
  13832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13833. (exit $ac_status); } && {
  13834. test -z "$ac_cxx_werror_flag" ||
  13835. test ! -s conftest.err
  13836. } && test -s conftest$ac_exeext && {
  13837. test "$cross_compiling" = yes ||
  13838. $as_test_x conftest$ac_exeext
  13839. }; then
  13840. am_cv_func_iconv=yes
  13841. else
  13842. $as_echo "$as_me: failed program was:" >&5
  13843. sed 's/^/| /' conftest.$ac_ext >&5
  13844. fi
  13845. rm -rf conftest.dSYM
  13846. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13847. conftest$ac_exeext conftest.$ac_ext
  13848. if test "$am_cv_func_iconv" != yes; then
  13849. am_save_LIBS="$LIBS"
  13850. LIBS="$LIBS $LIBICONV"
  13851. cat >conftest.$ac_ext <<_ACEOF
  13852. /* confdefs.h. */
  13853. _ACEOF
  13854. cat confdefs.h >>conftest.$ac_ext
  13855. cat >>conftest.$ac_ext <<_ACEOF
  13856. /* end confdefs.h. */
  13857. #include <stdlib.h>
  13858. #include <iconv.h>
  13859. int
  13860. main ()
  13861. {
  13862. iconv_t cd = iconv_open("","");
  13863. iconv(cd,NULL,NULL,NULL,NULL);
  13864. iconv_close(cd);
  13865. ;
  13866. return 0;
  13867. }
  13868. _ACEOF
  13869. rm -f conftest.$ac_objext conftest$ac_exeext
  13870. if { (ac_try="$ac_link"
  13871. case "(($ac_try" in
  13872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13873. *) ac_try_echo=$ac_try;;
  13874. esac
  13875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13876. $as_echo "$ac_try_echo") >&5
  13877. (eval "$ac_link") 2>conftest.er1
  13878. ac_status=$?
  13879. grep -v '^ *+' conftest.er1 >conftest.err
  13880. rm -f conftest.er1
  13881. cat conftest.err >&5
  13882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13883. (exit $ac_status); } && {
  13884. test -z "$ac_cxx_werror_flag" ||
  13885. test ! -s conftest.err
  13886. } && test -s conftest$ac_exeext && {
  13887. test "$cross_compiling" = yes ||
  13888. $as_test_x conftest$ac_exeext
  13889. }; then
  13890. am_cv_lib_iconv=yes
  13891. am_cv_func_iconv=yes
  13892. else
  13893. $as_echo "$as_me: failed program was:" >&5
  13894. sed 's/^/| /' conftest.$ac_ext >&5
  13895. fi
  13896. rm -rf conftest.dSYM
  13897. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13898. conftest$ac_exeext conftest.$ac_ext
  13899. LIBS="$am_save_LIBS"
  13900. fi
  13901. fi
  13902. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13903. $as_echo "$am_cv_func_iconv" >&6; }
  13904. if test "$am_cv_func_iconv" = yes; then
  13905. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13906. $as_echo_n "checking for working iconv... " >&6; }
  13907. if test "${am_cv_func_iconv_works+set}" = set; then
  13908. $as_echo_n "(cached) " >&6
  13909. else
  13910. am_save_LIBS="$LIBS"
  13911. if test $am_cv_lib_iconv = yes; then
  13912. LIBS="$LIBS $LIBICONV"
  13913. fi
  13914. if test "$cross_compiling" = yes; then
  13915. case "$host_os" in
  13916. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13917. *) am_cv_func_iconv_works="guessing yes" ;;
  13918. esac
  13919. else
  13920. cat >conftest.$ac_ext <<_ACEOF
  13921. /* confdefs.h. */
  13922. _ACEOF
  13923. cat confdefs.h >>conftest.$ac_ext
  13924. cat >>conftest.$ac_ext <<_ACEOF
  13925. /* end confdefs.h. */
  13926. #include <iconv.h>
  13927. #include <string.h>
  13928. int main ()
  13929. {
  13930. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13931. returns. */
  13932. {
  13933. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13934. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13935. {
  13936. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13937. char buf[10];
  13938. const char *inptr = input;
  13939. size_t inbytesleft = strlen (input);
  13940. char *outptr = buf;
  13941. size_t outbytesleft = sizeof (buf);
  13942. size_t res = iconv (cd_utf8_to_88591,
  13943. (char **) &inptr, &inbytesleft,
  13944. &outptr, &outbytesleft);
  13945. if (res == 0)
  13946. return 1;
  13947. }
  13948. }
  13949. #if 0 /* This bug could be worked around by the caller. */
  13950. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13951. {
  13952. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13953. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13954. {
  13955. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13956. char buf[50];
  13957. const char *inptr = input;
  13958. size_t inbytesleft = strlen (input);
  13959. char *outptr = buf;
  13960. size_t outbytesleft = sizeof (buf);
  13961. size_t res = iconv (cd_88591_to_utf8,
  13962. (char **) &inptr, &inbytesleft,
  13963. &outptr, &outbytesleft);
  13964. if ((int)res > 0)
  13965. return 1;
  13966. }
  13967. }
  13968. #endif
  13969. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13970. provided. */
  13971. if (/* Try standardized names. */
  13972. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13973. /* Try IRIX, OSF/1 names. */
  13974. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13975. /* Try AIX names. */
  13976. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13977. /* Try HP-UX names. */
  13978. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13979. return 1;
  13980. return 0;
  13981. }
  13982. _ACEOF
  13983. rm -f conftest$ac_exeext
  13984. if { (ac_try="$ac_link"
  13985. case "(($ac_try" in
  13986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13987. *) ac_try_echo=$ac_try;;
  13988. esac
  13989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13990. $as_echo "$ac_try_echo") >&5
  13991. (eval "$ac_link") 2>&5
  13992. ac_status=$?
  13993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13994. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13995. { (case "(($ac_try" in
  13996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13997. *) ac_try_echo=$ac_try;;
  13998. esac
  13999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14000. $as_echo "$ac_try_echo") >&5
  14001. (eval "$ac_try") 2>&5
  14002. ac_status=$?
  14003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14004. (exit $ac_status); }; }; then
  14005. am_cv_func_iconv_works=yes
  14006. else
  14007. $as_echo "$as_me: program exited with status $ac_status" >&5
  14008. $as_echo "$as_me: failed program was:" >&5
  14009. sed 's/^/| /' conftest.$ac_ext >&5
  14010. ( exit $ac_status )
  14011. am_cv_func_iconv_works=no
  14012. fi
  14013. rm -rf conftest.dSYM
  14014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14015. fi
  14016. LIBS="$am_save_LIBS"
  14017. fi
  14018. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  14019. $as_echo "$am_cv_func_iconv_works" >&6; }
  14020. case "$am_cv_func_iconv_works" in
  14021. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  14022. *) am_func_iconv=yes ;;
  14023. esac
  14024. else
  14025. am_func_iconv=no am_cv_lib_iconv=no
  14026. fi
  14027. if test "$am_func_iconv" = yes; then
  14028. cat >>confdefs.h <<\_ACEOF
  14029. #define HAVE_ICONV 1
  14030. _ACEOF
  14031. fi
  14032. if test "$am_cv_lib_iconv" = yes; then
  14033. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  14034. $as_echo_n "checking how to link with libiconv... " >&6; }
  14035. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  14036. $as_echo "$LIBICONV" >&6; }
  14037. else
  14038. CPPFLAGS="$am_save_CPPFLAGS"
  14039. LIBICONV=
  14040. LTLIBICONV=
  14041. fi
  14042. if test "$am_cv_func_iconv" = yes; then
  14043. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  14044. $as_echo_n "checking for iconv declaration... " >&6; }
  14045. if test "${am_cv_proto_iconv+set}" = set; then
  14046. $as_echo_n "(cached) " >&6
  14047. else
  14048. cat >conftest.$ac_ext <<_ACEOF
  14049. /* confdefs.h. */
  14050. _ACEOF
  14051. cat confdefs.h >>conftest.$ac_ext
  14052. cat >>conftest.$ac_ext <<_ACEOF
  14053. /* end confdefs.h. */
  14054. #include <stdlib.h>
  14055. #include <iconv.h>
  14056. extern
  14057. #ifdef __cplusplus
  14058. "C"
  14059. #endif
  14060. #if defined(__STDC__) || defined(__cplusplus)
  14061. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  14062. #else
  14063. size_t iconv();
  14064. #endif
  14065. int
  14066. main ()
  14067. {
  14068. ;
  14069. return 0;
  14070. }
  14071. _ACEOF
  14072. rm -f conftest.$ac_objext
  14073. if { (ac_try="$ac_compile"
  14074. case "(($ac_try" in
  14075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14076. *) ac_try_echo=$ac_try;;
  14077. esac
  14078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14079. $as_echo "$ac_try_echo") >&5
  14080. (eval "$ac_compile") 2>conftest.er1
  14081. ac_status=$?
  14082. grep -v '^ *+' conftest.er1 >conftest.err
  14083. rm -f conftest.er1
  14084. cat conftest.err >&5
  14085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14086. (exit $ac_status); } && {
  14087. test -z "$ac_cxx_werror_flag" ||
  14088. test ! -s conftest.err
  14089. } && test -s conftest.$ac_objext; then
  14090. am_cv_proto_iconv_arg1=""
  14091. else
  14092. $as_echo "$as_me: failed program was:" >&5
  14093. sed 's/^/| /' conftest.$ac_ext >&5
  14094. am_cv_proto_iconv_arg1="const"
  14095. fi
  14096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14097. 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);"
  14098. fi
  14099. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  14100. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  14101. }$am_cv_proto_iconv" >&5
  14102. $as_echo "${ac_t:-
  14103. }$am_cv_proto_iconv" >&6; }
  14104. cat >>confdefs.h <<_ACEOF
  14105. #define ICONV_CONST $am_cv_proto_iconv_arg1
  14106. _ACEOF
  14107. fi
  14108. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  14109. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  14110. if test "${gt_cv_nl_locale_name+set}" = set; then
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. cat >conftest.$ac_ext <<_ACEOF
  14114. /* confdefs.h. */
  14115. _ACEOF
  14116. cat confdefs.h >>conftest.$ac_ext
  14117. cat >>conftest.$ac_ext <<_ACEOF
  14118. /* end confdefs.h. */
  14119. #include <langinfo.h>
  14120. #include <locale.h>
  14121. int
  14122. main ()
  14123. {
  14124. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  14125. return !cs;
  14126. ;
  14127. return 0;
  14128. }
  14129. _ACEOF
  14130. rm -f conftest.$ac_objext conftest$ac_exeext
  14131. if { (ac_try="$ac_link"
  14132. case "(($ac_try" in
  14133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14134. *) ac_try_echo=$ac_try;;
  14135. esac
  14136. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14137. $as_echo "$ac_try_echo") >&5
  14138. (eval "$ac_link") 2>conftest.er1
  14139. ac_status=$?
  14140. grep -v '^ *+' conftest.er1 >conftest.err
  14141. rm -f conftest.er1
  14142. cat conftest.err >&5
  14143. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14144. (exit $ac_status); } && {
  14145. test -z "$ac_cxx_werror_flag" ||
  14146. test ! -s conftest.err
  14147. } && test -s conftest$ac_exeext && {
  14148. test "$cross_compiling" = yes ||
  14149. $as_test_x conftest$ac_exeext
  14150. }; then
  14151. gt_cv_nl_locale_name=yes
  14152. else
  14153. $as_echo "$as_me: failed program was:" >&5
  14154. sed 's/^/| /' conftest.$ac_ext >&5
  14155. gt_cv_nl_locale_name=no
  14156. fi
  14157. rm -rf conftest.dSYM
  14158. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14159. conftest$ac_exeext conftest.$ac_ext
  14160. fi
  14161. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  14162. $as_echo "$gt_cv_nl_locale_name" >&6; }
  14163. if test $gt_cv_nl_locale_name = yes; then
  14164. cat >>confdefs.h <<\_ACEOF
  14165. #define HAVE_NL_LOCALE_NAME 1
  14166. _ACEOF
  14167. fi
  14168. for ac_prog in bison
  14169. do
  14170. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14171. set dummy $ac_prog; ac_word=$2
  14172. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14173. $as_echo_n "checking for $ac_word... " >&6; }
  14174. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  14175. $as_echo_n "(cached) " >&6
  14176. else
  14177. if test -n "$INTLBISON"; then
  14178. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  14179. else
  14180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14181. for as_dir in $PATH
  14182. do
  14183. IFS=$as_save_IFS
  14184. test -z "$as_dir" && as_dir=.
  14185. for ac_exec_ext in '' $ac_executable_extensions; do
  14186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14187. ac_cv_prog_INTLBISON="$ac_prog"
  14188. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14189. break 2
  14190. fi
  14191. done
  14192. done
  14193. IFS=$as_save_IFS
  14194. fi
  14195. fi
  14196. INTLBISON=$ac_cv_prog_INTLBISON
  14197. if test -n "$INTLBISON"; then
  14198. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  14199. $as_echo "$INTLBISON" >&6; }
  14200. else
  14201. { $as_echo "$as_me:$LINENO: result: no" >&5
  14202. $as_echo "no" >&6; }
  14203. fi
  14204. test -n "$INTLBISON" && break
  14205. done
  14206. if test -z "$INTLBISON"; then
  14207. ac_verc_fail=yes
  14208. else
  14209. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  14210. $as_echo_n "checking version of bison... " >&6; }
  14211. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  14212. case $ac_prog_version in
  14213. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  14214. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  14215. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  14216. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  14217. esac
  14218. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  14219. $as_echo "$ac_prog_version" >&6; }
  14220. fi
  14221. if test $ac_verc_fail = yes; then
  14222. INTLBISON=:
  14223. fi
  14224. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14225. $as_echo_n "checking for long long int... " >&6; }
  14226. if test "${ac_cv_type_long_long_int+set}" = set; then
  14227. $as_echo_n "(cached) " >&6
  14228. else
  14229. cat >conftest.$ac_ext <<_ACEOF
  14230. /* confdefs.h. */
  14231. _ACEOF
  14232. cat confdefs.h >>conftest.$ac_ext
  14233. cat >>conftest.$ac_ext <<_ACEOF
  14234. /* end confdefs.h. */
  14235. /* Test preprocessor. */
  14236. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14237. error in preprocessor;
  14238. #endif
  14239. #if ! (18446744073709551615ULL <= -1ull)
  14240. error in preprocessor;
  14241. #endif
  14242. /* Test literals. */
  14243. long long int ll = 9223372036854775807ll;
  14244. long long int nll = -9223372036854775807LL;
  14245. unsigned long long int ull = 18446744073709551615ULL;
  14246. /* Test constant expressions. */
  14247. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14248. ? 1 : -1)];
  14249. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14250. ? 1 : -1)];
  14251. int i = 63;
  14252. int
  14253. main ()
  14254. {
  14255. /* Test availability of runtime routines for shift and division. */
  14256. long long int llmax = 9223372036854775807ll;
  14257. unsigned long long int ullmax = 18446744073709551615ull;
  14258. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14259. | (llmax / ll) | (llmax % ll)
  14260. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14261. | (ullmax / ull) | (ullmax % ull));
  14262. ;
  14263. return 0;
  14264. }
  14265. _ACEOF
  14266. rm -f conftest.$ac_objext conftest$ac_exeext
  14267. if { (ac_try="$ac_link"
  14268. case "(($ac_try" in
  14269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14270. *) ac_try_echo=$ac_try;;
  14271. esac
  14272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14273. $as_echo "$ac_try_echo") >&5
  14274. (eval "$ac_link") 2>conftest.er1
  14275. ac_status=$?
  14276. grep -v '^ *+' conftest.er1 >conftest.err
  14277. rm -f conftest.er1
  14278. cat conftest.err >&5
  14279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14280. (exit $ac_status); } && {
  14281. test -z "$ac_cxx_werror_flag" ||
  14282. test ! -s conftest.err
  14283. } && test -s conftest$ac_exeext && {
  14284. test "$cross_compiling" = yes ||
  14285. $as_test_x conftest$ac_exeext
  14286. }; then
  14287. if test "$cross_compiling" = yes; then
  14288. ac_cv_type_long_long_int=yes
  14289. else
  14290. cat >conftest.$ac_ext <<_ACEOF
  14291. /* confdefs.h. */
  14292. _ACEOF
  14293. cat confdefs.h >>conftest.$ac_ext
  14294. cat >>conftest.$ac_ext <<_ACEOF
  14295. /* end confdefs.h. */
  14296. #include <limits.h>
  14297. #ifndef LLONG_MAX
  14298. # define HALF \
  14299. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14300. # define LLONG_MAX (HALF - 1 + HALF)
  14301. #endif
  14302. int
  14303. main ()
  14304. {
  14305. long long int n = 1;
  14306. int i;
  14307. for (i = 0; ; i++)
  14308. {
  14309. long long int m = n << i;
  14310. if (m >> i != n)
  14311. return 1;
  14312. if (LLONG_MAX / 2 < m)
  14313. break;
  14314. }
  14315. return 0;
  14316. ;
  14317. return 0;
  14318. }
  14319. _ACEOF
  14320. rm -f conftest$ac_exeext
  14321. if { (ac_try="$ac_link"
  14322. case "(($ac_try" in
  14323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14324. *) ac_try_echo=$ac_try;;
  14325. esac
  14326. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14327. $as_echo "$ac_try_echo") >&5
  14328. (eval "$ac_link") 2>&5
  14329. ac_status=$?
  14330. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14331. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14332. { (case "(($ac_try" in
  14333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14334. *) ac_try_echo=$ac_try;;
  14335. esac
  14336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14337. $as_echo "$ac_try_echo") >&5
  14338. (eval "$ac_try") 2>&5
  14339. ac_status=$?
  14340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14341. (exit $ac_status); }; }; then
  14342. ac_cv_type_long_long_int=yes
  14343. else
  14344. $as_echo "$as_me: program exited with status $ac_status" >&5
  14345. $as_echo "$as_me: failed program was:" >&5
  14346. sed 's/^/| /' conftest.$ac_ext >&5
  14347. ( exit $ac_status )
  14348. ac_cv_type_long_long_int=no
  14349. fi
  14350. rm -rf conftest.dSYM
  14351. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14352. fi
  14353. else
  14354. $as_echo "$as_me: failed program was:" >&5
  14355. sed 's/^/| /' conftest.$ac_ext >&5
  14356. ac_cv_type_long_long_int=no
  14357. fi
  14358. rm -rf conftest.dSYM
  14359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14360. conftest$ac_exeext conftest.$ac_ext
  14361. fi
  14362. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14363. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14364. if test $ac_cv_type_long_long_int = yes; then
  14365. cat >>confdefs.h <<\_ACEOF
  14366. #define HAVE_LONG_LONG_INT 1
  14367. _ACEOF
  14368. fi
  14369. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14370. $as_echo_n "checking for wchar_t... " >&6; }
  14371. if test "${gt_cv_c_wchar_t+set}" = set; then
  14372. $as_echo_n "(cached) " >&6
  14373. else
  14374. cat >conftest.$ac_ext <<_ACEOF
  14375. /* confdefs.h. */
  14376. _ACEOF
  14377. cat confdefs.h >>conftest.$ac_ext
  14378. cat >>conftest.$ac_ext <<_ACEOF
  14379. /* end confdefs.h. */
  14380. #include <stddef.h>
  14381. wchar_t foo = (wchar_t)'\0';
  14382. int
  14383. main ()
  14384. {
  14385. ;
  14386. return 0;
  14387. }
  14388. _ACEOF
  14389. rm -f conftest.$ac_objext
  14390. if { (ac_try="$ac_compile"
  14391. case "(($ac_try" in
  14392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14393. *) ac_try_echo=$ac_try;;
  14394. esac
  14395. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14396. $as_echo "$ac_try_echo") >&5
  14397. (eval "$ac_compile") 2>conftest.er1
  14398. ac_status=$?
  14399. grep -v '^ *+' conftest.er1 >conftest.err
  14400. rm -f conftest.er1
  14401. cat conftest.err >&5
  14402. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14403. (exit $ac_status); } && {
  14404. test -z "$ac_cxx_werror_flag" ||
  14405. test ! -s conftest.err
  14406. } && test -s conftest.$ac_objext; then
  14407. gt_cv_c_wchar_t=yes
  14408. else
  14409. $as_echo "$as_me: failed program was:" >&5
  14410. sed 's/^/| /' conftest.$ac_ext >&5
  14411. gt_cv_c_wchar_t=no
  14412. fi
  14413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14414. fi
  14415. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14416. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14417. if test $gt_cv_c_wchar_t = yes; then
  14418. cat >>confdefs.h <<\_ACEOF
  14419. #define HAVE_WCHAR_T 1
  14420. _ACEOF
  14421. fi
  14422. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14423. $as_echo_n "checking for wint_t... " >&6; }
  14424. if test "${gt_cv_c_wint_t+set}" = set; then
  14425. $as_echo_n "(cached) " >&6
  14426. else
  14427. cat >conftest.$ac_ext <<_ACEOF
  14428. /* confdefs.h. */
  14429. _ACEOF
  14430. cat confdefs.h >>conftest.$ac_ext
  14431. cat >>conftest.$ac_ext <<_ACEOF
  14432. /* end confdefs.h. */
  14433. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14434. <wchar.h>.
  14435. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14436. before <wchar.h>. */
  14437. #include <stddef.h>
  14438. #include <stdio.h>
  14439. #include <time.h>
  14440. #include <wchar.h>
  14441. wint_t foo = (wchar_t)'\0';
  14442. int
  14443. main ()
  14444. {
  14445. ;
  14446. return 0;
  14447. }
  14448. _ACEOF
  14449. rm -f conftest.$ac_objext
  14450. if { (ac_try="$ac_compile"
  14451. case "(($ac_try" in
  14452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14453. *) ac_try_echo=$ac_try;;
  14454. esac
  14455. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14456. $as_echo "$ac_try_echo") >&5
  14457. (eval "$ac_compile") 2>conftest.er1
  14458. ac_status=$?
  14459. grep -v '^ *+' conftest.er1 >conftest.err
  14460. rm -f conftest.er1
  14461. cat conftest.err >&5
  14462. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14463. (exit $ac_status); } && {
  14464. test -z "$ac_cxx_werror_flag" ||
  14465. test ! -s conftest.err
  14466. } && test -s conftest.$ac_objext; then
  14467. gt_cv_c_wint_t=yes
  14468. else
  14469. $as_echo "$as_me: failed program was:" >&5
  14470. sed 's/^/| /' conftest.$ac_ext >&5
  14471. gt_cv_c_wint_t=no
  14472. fi
  14473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14474. fi
  14475. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14476. $as_echo "$gt_cv_c_wint_t" >&6; }
  14477. if test $gt_cv_c_wint_t = yes; then
  14478. cat >>confdefs.h <<\_ACEOF
  14479. #define HAVE_WINT_T 1
  14480. _ACEOF
  14481. fi
  14482. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14483. $as_echo_n "checking for intmax_t... " >&6; }
  14484. if test "${gt_cv_c_intmax_t+set}" = set; then
  14485. $as_echo_n "(cached) " >&6
  14486. else
  14487. cat >conftest.$ac_ext <<_ACEOF
  14488. /* confdefs.h. */
  14489. _ACEOF
  14490. cat confdefs.h >>conftest.$ac_ext
  14491. cat >>conftest.$ac_ext <<_ACEOF
  14492. /* end confdefs.h. */
  14493. #include <stddef.h>
  14494. #include <stdlib.h>
  14495. #if HAVE_STDINT_H_WITH_UINTMAX
  14496. #include <stdint.h>
  14497. #endif
  14498. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14499. #include <inttypes.h>
  14500. #endif
  14501. int
  14502. main ()
  14503. {
  14504. intmax_t x = -1;
  14505. return !x;
  14506. ;
  14507. return 0;
  14508. }
  14509. _ACEOF
  14510. rm -f conftest.$ac_objext
  14511. if { (ac_try="$ac_compile"
  14512. case "(($ac_try" in
  14513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14514. *) ac_try_echo=$ac_try;;
  14515. esac
  14516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14517. $as_echo "$ac_try_echo") >&5
  14518. (eval "$ac_compile") 2>conftest.er1
  14519. ac_status=$?
  14520. grep -v '^ *+' conftest.er1 >conftest.err
  14521. rm -f conftest.er1
  14522. cat conftest.err >&5
  14523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14524. (exit $ac_status); } && {
  14525. test -z "$ac_cxx_werror_flag" ||
  14526. test ! -s conftest.err
  14527. } && test -s conftest.$ac_objext; then
  14528. gt_cv_c_intmax_t=yes
  14529. else
  14530. $as_echo "$as_me: failed program was:" >&5
  14531. sed 's/^/| /' conftest.$ac_ext >&5
  14532. gt_cv_c_intmax_t=no
  14533. fi
  14534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14535. fi
  14536. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14537. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14538. if test $gt_cv_c_intmax_t = yes; then
  14539. cat >>confdefs.h <<\_ACEOF
  14540. #define HAVE_INTMAX_T 1
  14541. _ACEOF
  14542. fi
  14543. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14544. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14545. if test "${gt_cv_func_printf_posix+set}" = set; then
  14546. $as_echo_n "(cached) " >&6
  14547. else
  14548. if test "$cross_compiling" = yes; then
  14549. cat >conftest.$ac_ext <<_ACEOF
  14550. /* confdefs.h. */
  14551. _ACEOF
  14552. cat confdefs.h >>conftest.$ac_ext
  14553. cat >>conftest.$ac_ext <<_ACEOF
  14554. /* end confdefs.h. */
  14555. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14556. notposix
  14557. #endif
  14558. _ACEOF
  14559. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14560. $EGREP "notposix" >/dev/null 2>&1; then
  14561. gt_cv_func_printf_posix="guessing no"
  14562. else
  14563. gt_cv_func_printf_posix="guessing yes"
  14564. fi
  14565. rm -f conftest*
  14566. else
  14567. cat >conftest.$ac_ext <<_ACEOF
  14568. /* confdefs.h. */
  14569. _ACEOF
  14570. cat confdefs.h >>conftest.$ac_ext
  14571. cat >>conftest.$ac_ext <<_ACEOF
  14572. /* end confdefs.h. */
  14573. #include <stdio.h>
  14574. #include <string.h>
  14575. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14576. dollar expansion (possibly an autoconf bug). */
  14577. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14578. static char buf[100];
  14579. int main ()
  14580. {
  14581. sprintf (buf, format, 33, 55);
  14582. return (strcmp (buf, "55 33") != 0);
  14583. }
  14584. _ACEOF
  14585. rm -f conftest$ac_exeext
  14586. if { (ac_try="$ac_link"
  14587. case "(($ac_try" in
  14588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14589. *) ac_try_echo=$ac_try;;
  14590. esac
  14591. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14592. $as_echo "$ac_try_echo") >&5
  14593. (eval "$ac_link") 2>&5
  14594. ac_status=$?
  14595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14596. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14597. { (case "(($ac_try" in
  14598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14599. *) ac_try_echo=$ac_try;;
  14600. esac
  14601. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14602. $as_echo "$ac_try_echo") >&5
  14603. (eval "$ac_try") 2>&5
  14604. ac_status=$?
  14605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14606. (exit $ac_status); }; }; then
  14607. gt_cv_func_printf_posix=yes
  14608. else
  14609. $as_echo "$as_me: program exited with status $ac_status" >&5
  14610. $as_echo "$as_me: failed program was:" >&5
  14611. sed 's/^/| /' conftest.$ac_ext >&5
  14612. ( exit $ac_status )
  14613. gt_cv_func_printf_posix=no
  14614. fi
  14615. rm -rf conftest.dSYM
  14616. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14617. fi
  14618. fi
  14619. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14620. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14621. case $gt_cv_func_printf_posix in
  14622. *yes)
  14623. cat >>confdefs.h <<\_ACEOF
  14624. #define HAVE_POSIX_PRINTF 1
  14625. _ACEOF
  14626. ;;
  14627. esac
  14628. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14629. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14630. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14631. $as_echo_n "(cached) " >&6
  14632. else
  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 <features.h>
  14640. #ifdef __GNU_LIBRARY__
  14641. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14642. Lucky GNU user
  14643. #endif
  14644. #endif
  14645. _ACEOF
  14646. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14647. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14648. ac_cv_gnu_library_2_1=yes
  14649. else
  14650. ac_cv_gnu_library_2_1=no
  14651. fi
  14652. rm -f conftest*
  14653. fi
  14654. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14655. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14656. GLIBC21="$ac_cv_gnu_library_2_1"
  14657. for ac_header in stdint.h
  14658. do
  14659. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14660. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14661. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14662. $as_echo_n "checking for $ac_header... " >&6; }
  14663. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14664. $as_echo_n "(cached) " >&6
  14665. fi
  14666. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14667. $as_echo "$as_val"'`
  14668. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14669. $as_echo "$ac_res" >&6; }
  14670. else
  14671. # Is the header compilable?
  14672. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14673. $as_echo_n "checking $ac_header usability... " >&6; }
  14674. cat >conftest.$ac_ext <<_ACEOF
  14675. /* confdefs.h. */
  14676. _ACEOF
  14677. cat confdefs.h >>conftest.$ac_ext
  14678. cat >>conftest.$ac_ext <<_ACEOF
  14679. /* end confdefs.h. */
  14680. $ac_includes_default
  14681. #include <$ac_header>
  14682. _ACEOF
  14683. rm -f conftest.$ac_objext
  14684. if { (ac_try="$ac_compile"
  14685. case "(($ac_try" in
  14686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14687. *) ac_try_echo=$ac_try;;
  14688. esac
  14689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14690. $as_echo "$ac_try_echo") >&5
  14691. (eval "$ac_compile") 2>conftest.er1
  14692. ac_status=$?
  14693. grep -v '^ *+' conftest.er1 >conftest.err
  14694. rm -f conftest.er1
  14695. cat conftest.err >&5
  14696. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14697. (exit $ac_status); } && {
  14698. test -z "$ac_cxx_werror_flag" ||
  14699. test ! -s conftest.err
  14700. } && test -s conftest.$ac_objext; then
  14701. ac_header_compiler=yes
  14702. else
  14703. $as_echo "$as_me: failed program was:" >&5
  14704. sed 's/^/| /' conftest.$ac_ext >&5
  14705. ac_header_compiler=no
  14706. fi
  14707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14708. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14709. $as_echo "$ac_header_compiler" >&6; }
  14710. # Is the header present?
  14711. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14712. $as_echo_n "checking $ac_header presence... " >&6; }
  14713. cat >conftest.$ac_ext <<_ACEOF
  14714. /* confdefs.h. */
  14715. _ACEOF
  14716. cat confdefs.h >>conftest.$ac_ext
  14717. cat >>conftest.$ac_ext <<_ACEOF
  14718. /* end confdefs.h. */
  14719. #include <$ac_header>
  14720. _ACEOF
  14721. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14722. case "(($ac_try" in
  14723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14724. *) ac_try_echo=$ac_try;;
  14725. esac
  14726. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14727. $as_echo "$ac_try_echo") >&5
  14728. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14729. ac_status=$?
  14730. grep -v '^ *+' conftest.er1 >conftest.err
  14731. rm -f conftest.er1
  14732. cat conftest.err >&5
  14733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14734. (exit $ac_status); } >/dev/null && {
  14735. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14736. test ! -s conftest.err
  14737. }; then
  14738. ac_header_preproc=yes
  14739. else
  14740. $as_echo "$as_me: failed program was:" >&5
  14741. sed 's/^/| /' conftest.$ac_ext >&5
  14742. ac_header_preproc=no
  14743. fi
  14744. rm -f conftest.err conftest.$ac_ext
  14745. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14746. $as_echo "$ac_header_preproc" >&6; }
  14747. # So? What about this header?
  14748. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14749. yes:no: )
  14750. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14751. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14752. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14753. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14754. ac_header_preproc=yes
  14755. ;;
  14756. no:yes:* )
  14757. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14758. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14759. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14760. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14761. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14762. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14763. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14764. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14765. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14766. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14767. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14768. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14769. ( cat <<\_ASBOX
  14770. ## ----------------------------------------------- ##
  14771. ## Report this to t-tujikawa@users.sourceforge.net ##
  14772. ## ----------------------------------------------- ##
  14773. _ASBOX
  14774. ) | sed "s/^/$as_me: WARNING: /" >&2
  14775. ;;
  14776. esac
  14777. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14778. $as_echo_n "checking for $ac_header... " >&6; }
  14779. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14780. $as_echo_n "(cached) " >&6
  14781. else
  14782. eval "$as_ac_Header=\$ac_header_preproc"
  14783. fi
  14784. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14785. $as_echo "$as_val"'`
  14786. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14787. $as_echo "$ac_res" >&6; }
  14788. fi
  14789. as_val=`eval 'as_val=${'$as_ac_Header'}
  14790. $as_echo "$as_val"'`
  14791. if test "x$as_val" = x""yes; then
  14792. cat >>confdefs.h <<_ACEOF
  14793. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14794. _ACEOF
  14795. fi
  14796. done
  14797. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14798. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14799. if test "${gl_cv_size_max+set}" = set; then
  14800. $as_echo_n "(cached) " >&6
  14801. else
  14802. gl_cv_size_max=
  14803. cat >conftest.$ac_ext <<_ACEOF
  14804. /* confdefs.h. */
  14805. _ACEOF
  14806. cat confdefs.h >>conftest.$ac_ext
  14807. cat >>conftest.$ac_ext <<_ACEOF
  14808. /* end confdefs.h. */
  14809. #include <limits.h>
  14810. #if HAVE_STDINT_H
  14811. #include <stdint.h>
  14812. #endif
  14813. #ifdef SIZE_MAX
  14814. Found it
  14815. #endif
  14816. _ACEOF
  14817. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14818. $EGREP "Found it" >/dev/null 2>&1; then
  14819. gl_cv_size_max=yes
  14820. fi
  14821. rm -f conftest*
  14822. if test -z "$gl_cv_size_max"; then
  14823. if test "$cross_compiling" = yes; then
  14824. # Depending upon the size, compute the lo and hi bounds.
  14825. cat >conftest.$ac_ext <<_ACEOF
  14826. /* confdefs.h. */
  14827. _ACEOF
  14828. cat confdefs.h >>conftest.$ac_ext
  14829. cat >>conftest.$ac_ext <<_ACEOF
  14830. /* end confdefs.h. */
  14831. #include <stddef.h>
  14832. #include <limits.h>
  14833. int
  14834. main ()
  14835. {
  14836. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14837. test_array [0] = 0
  14838. ;
  14839. return 0;
  14840. }
  14841. _ACEOF
  14842. rm -f conftest.$ac_objext
  14843. if { (ac_try="$ac_compile"
  14844. case "(($ac_try" in
  14845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14846. *) ac_try_echo=$ac_try;;
  14847. esac
  14848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14849. $as_echo "$ac_try_echo") >&5
  14850. (eval "$ac_compile") 2>conftest.er1
  14851. ac_status=$?
  14852. grep -v '^ *+' conftest.er1 >conftest.err
  14853. rm -f conftest.er1
  14854. cat conftest.err >&5
  14855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14856. (exit $ac_status); } && {
  14857. test -z "$ac_cxx_werror_flag" ||
  14858. test ! -s conftest.err
  14859. } && test -s conftest.$ac_objext; then
  14860. ac_lo=0 ac_mid=0
  14861. while :; do
  14862. cat >conftest.$ac_ext <<_ACEOF
  14863. /* confdefs.h. */
  14864. _ACEOF
  14865. cat confdefs.h >>conftest.$ac_ext
  14866. cat >>conftest.$ac_ext <<_ACEOF
  14867. /* end confdefs.h. */
  14868. #include <stddef.h>
  14869. #include <limits.h>
  14870. int
  14871. main ()
  14872. {
  14873. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14874. test_array [0] = 0
  14875. ;
  14876. return 0;
  14877. }
  14878. _ACEOF
  14879. rm -f conftest.$ac_objext
  14880. if { (ac_try="$ac_compile"
  14881. case "(($ac_try" in
  14882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14883. *) ac_try_echo=$ac_try;;
  14884. esac
  14885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14886. $as_echo "$ac_try_echo") >&5
  14887. (eval "$ac_compile") 2>conftest.er1
  14888. ac_status=$?
  14889. grep -v '^ *+' conftest.er1 >conftest.err
  14890. rm -f conftest.er1
  14891. cat conftest.err >&5
  14892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14893. (exit $ac_status); } && {
  14894. test -z "$ac_cxx_werror_flag" ||
  14895. test ! -s conftest.err
  14896. } && test -s conftest.$ac_objext; then
  14897. ac_hi=$ac_mid; break
  14898. else
  14899. $as_echo "$as_me: failed program was:" >&5
  14900. sed 's/^/| /' conftest.$ac_ext >&5
  14901. ac_lo=`expr $ac_mid + 1`
  14902. if test $ac_lo -le $ac_mid; then
  14903. ac_lo= ac_hi=
  14904. break
  14905. fi
  14906. ac_mid=`expr 2 '*' $ac_mid + 1`
  14907. fi
  14908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14909. done
  14910. else
  14911. $as_echo "$as_me: failed program was:" >&5
  14912. sed 's/^/| /' conftest.$ac_ext >&5
  14913. cat >conftest.$ac_ext <<_ACEOF
  14914. /* confdefs.h. */
  14915. _ACEOF
  14916. cat confdefs.h >>conftest.$ac_ext
  14917. cat >>conftest.$ac_ext <<_ACEOF
  14918. /* end confdefs.h. */
  14919. #include <stddef.h>
  14920. #include <limits.h>
  14921. int
  14922. main ()
  14923. {
  14924. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14925. test_array [0] = 0
  14926. ;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. rm -f conftest.$ac_objext
  14931. if { (ac_try="$ac_compile"
  14932. case "(($ac_try" in
  14933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14934. *) ac_try_echo=$ac_try;;
  14935. esac
  14936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14937. $as_echo "$ac_try_echo") >&5
  14938. (eval "$ac_compile") 2>conftest.er1
  14939. ac_status=$?
  14940. grep -v '^ *+' conftest.er1 >conftest.err
  14941. rm -f conftest.er1
  14942. cat conftest.err >&5
  14943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14944. (exit $ac_status); } && {
  14945. test -z "$ac_cxx_werror_flag" ||
  14946. test ! -s conftest.err
  14947. } && test -s conftest.$ac_objext; then
  14948. ac_hi=-1 ac_mid=-1
  14949. while :; do
  14950. cat >conftest.$ac_ext <<_ACEOF
  14951. /* confdefs.h. */
  14952. _ACEOF
  14953. cat confdefs.h >>conftest.$ac_ext
  14954. cat >>conftest.$ac_ext <<_ACEOF
  14955. /* end confdefs.h. */
  14956. #include <stddef.h>
  14957. #include <limits.h>
  14958. int
  14959. main ()
  14960. {
  14961. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  14962. test_array [0] = 0
  14963. ;
  14964. return 0;
  14965. }
  14966. _ACEOF
  14967. rm -f conftest.$ac_objext
  14968. if { (ac_try="$ac_compile"
  14969. case "(($ac_try" in
  14970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14971. *) ac_try_echo=$ac_try;;
  14972. esac
  14973. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14974. $as_echo "$ac_try_echo") >&5
  14975. (eval "$ac_compile") 2>conftest.er1
  14976. ac_status=$?
  14977. grep -v '^ *+' conftest.er1 >conftest.err
  14978. rm -f conftest.er1
  14979. cat conftest.err >&5
  14980. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14981. (exit $ac_status); } && {
  14982. test -z "$ac_cxx_werror_flag" ||
  14983. test ! -s conftest.err
  14984. } && test -s conftest.$ac_objext; then
  14985. ac_lo=$ac_mid; break
  14986. else
  14987. $as_echo "$as_me: failed program was:" >&5
  14988. sed 's/^/| /' conftest.$ac_ext >&5
  14989. ac_hi=`expr '(' $ac_mid ')' - 1`
  14990. if test $ac_mid -le $ac_hi; then
  14991. ac_lo= ac_hi=
  14992. break
  14993. fi
  14994. ac_mid=`expr 2 '*' $ac_mid`
  14995. fi
  14996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14997. done
  14998. else
  14999. $as_echo "$as_me: failed program was:" >&5
  15000. sed 's/^/| /' conftest.$ac_ext >&5
  15001. ac_lo= ac_hi=
  15002. fi
  15003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15004. fi
  15005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15006. # Binary search between lo and hi bounds.
  15007. while test "x$ac_lo" != "x$ac_hi"; do
  15008. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15009. cat >conftest.$ac_ext <<_ACEOF
  15010. /* confdefs.h. */
  15011. _ACEOF
  15012. cat confdefs.h >>conftest.$ac_ext
  15013. cat >>conftest.$ac_ext <<_ACEOF
  15014. /* end confdefs.h. */
  15015. #include <stddef.h>
  15016. #include <limits.h>
  15017. int
  15018. main ()
  15019. {
  15020. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  15021. test_array [0] = 0
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. rm -f conftest.$ac_objext
  15027. if { (ac_try="$ac_compile"
  15028. case "(($ac_try" in
  15029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15030. *) ac_try_echo=$ac_try;;
  15031. esac
  15032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15033. $as_echo "$ac_try_echo") >&5
  15034. (eval "$ac_compile") 2>conftest.er1
  15035. ac_status=$?
  15036. grep -v '^ *+' conftest.er1 >conftest.err
  15037. rm -f conftest.er1
  15038. cat conftest.err >&5
  15039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15040. (exit $ac_status); } && {
  15041. test -z "$ac_cxx_werror_flag" ||
  15042. test ! -s conftest.err
  15043. } && test -s conftest.$ac_objext; then
  15044. ac_hi=$ac_mid
  15045. else
  15046. $as_echo "$as_me: failed program was:" >&5
  15047. sed 's/^/| /' conftest.$ac_ext >&5
  15048. ac_lo=`expr '(' $ac_mid ')' + 1`
  15049. fi
  15050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15051. done
  15052. case $ac_lo in
  15053. ?*) size_t_bits_minus_1=$ac_lo;;
  15054. '') size_t_bits_minus_1= ;;
  15055. esac
  15056. else
  15057. cat >conftest.$ac_ext <<_ACEOF
  15058. /* confdefs.h. */
  15059. _ACEOF
  15060. cat confdefs.h >>conftest.$ac_ext
  15061. cat >>conftest.$ac_ext <<_ACEOF
  15062. /* end confdefs.h. */
  15063. #include <stddef.h>
  15064. #include <limits.h>
  15065. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15066. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15067. #include <stdio.h>
  15068. #include <stdlib.h>
  15069. int
  15070. main ()
  15071. {
  15072. FILE *f = fopen ("conftest.val", "w");
  15073. if (! f)
  15074. return 1;
  15075. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  15076. {
  15077. long int i = longval ();
  15078. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15079. return 1;
  15080. fprintf (f, "%ld", i);
  15081. }
  15082. else
  15083. {
  15084. unsigned long int i = ulongval ();
  15085. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15086. return 1;
  15087. fprintf (f, "%lu", i);
  15088. }
  15089. /* Do not output a trailing newline, as this causes \r\n confusion
  15090. on some platforms. */
  15091. return ferror (f) || fclose (f) != 0;
  15092. ;
  15093. return 0;
  15094. }
  15095. _ACEOF
  15096. rm -f conftest$ac_exeext
  15097. if { (ac_try="$ac_link"
  15098. case "(($ac_try" in
  15099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15100. *) ac_try_echo=$ac_try;;
  15101. esac
  15102. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15103. $as_echo "$ac_try_echo") >&5
  15104. (eval "$ac_link") 2>&5
  15105. ac_status=$?
  15106. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15107. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15108. { (case "(($ac_try" in
  15109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15110. *) ac_try_echo=$ac_try;;
  15111. esac
  15112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15113. $as_echo "$ac_try_echo") >&5
  15114. (eval "$ac_try") 2>&5
  15115. ac_status=$?
  15116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15117. (exit $ac_status); }; }; then
  15118. size_t_bits_minus_1=`cat conftest.val`
  15119. else
  15120. $as_echo "$as_me: program exited with status $ac_status" >&5
  15121. $as_echo "$as_me: failed program was:" >&5
  15122. sed 's/^/| /' conftest.$ac_ext >&5
  15123. ( exit $ac_status )
  15124. size_t_bits_minus_1=
  15125. fi
  15126. rm -rf conftest.dSYM
  15127. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15128. fi
  15129. rm -f conftest.val
  15130. if test "$cross_compiling" = yes; then
  15131. # Depending upon the size, compute the lo and hi bounds.
  15132. cat >conftest.$ac_ext <<_ACEOF
  15133. /* confdefs.h. */
  15134. _ACEOF
  15135. cat confdefs.h >>conftest.$ac_ext
  15136. cat >>conftest.$ac_ext <<_ACEOF
  15137. /* end confdefs.h. */
  15138. #include <stddef.h>
  15139. int
  15140. main ()
  15141. {
  15142. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  15143. test_array [0] = 0
  15144. ;
  15145. return 0;
  15146. }
  15147. _ACEOF
  15148. rm -f conftest.$ac_objext
  15149. if { (ac_try="$ac_compile"
  15150. case "(($ac_try" in
  15151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15152. *) ac_try_echo=$ac_try;;
  15153. esac
  15154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15155. $as_echo "$ac_try_echo") >&5
  15156. (eval "$ac_compile") 2>conftest.er1
  15157. ac_status=$?
  15158. grep -v '^ *+' conftest.er1 >conftest.err
  15159. rm -f conftest.er1
  15160. cat conftest.err >&5
  15161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15162. (exit $ac_status); } && {
  15163. test -z "$ac_cxx_werror_flag" ||
  15164. test ! -s conftest.err
  15165. } && test -s conftest.$ac_objext; then
  15166. ac_lo=0 ac_mid=0
  15167. while :; do
  15168. cat >conftest.$ac_ext <<_ACEOF
  15169. /* confdefs.h. */
  15170. _ACEOF
  15171. cat confdefs.h >>conftest.$ac_ext
  15172. cat >>conftest.$ac_ext <<_ACEOF
  15173. /* end confdefs.h. */
  15174. #include <stddef.h>
  15175. int
  15176. main ()
  15177. {
  15178. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15179. test_array [0] = 0
  15180. ;
  15181. return 0;
  15182. }
  15183. _ACEOF
  15184. rm -f conftest.$ac_objext
  15185. if { (ac_try="$ac_compile"
  15186. case "(($ac_try" in
  15187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15188. *) ac_try_echo=$ac_try;;
  15189. esac
  15190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15191. $as_echo "$ac_try_echo") >&5
  15192. (eval "$ac_compile") 2>conftest.er1
  15193. ac_status=$?
  15194. grep -v '^ *+' conftest.er1 >conftest.err
  15195. rm -f conftest.er1
  15196. cat conftest.err >&5
  15197. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15198. (exit $ac_status); } && {
  15199. test -z "$ac_cxx_werror_flag" ||
  15200. test ! -s conftest.err
  15201. } && test -s conftest.$ac_objext; then
  15202. ac_hi=$ac_mid; break
  15203. else
  15204. $as_echo "$as_me: failed program was:" >&5
  15205. sed 's/^/| /' conftest.$ac_ext >&5
  15206. ac_lo=`expr $ac_mid + 1`
  15207. if test $ac_lo -le $ac_mid; then
  15208. ac_lo= ac_hi=
  15209. break
  15210. fi
  15211. ac_mid=`expr 2 '*' $ac_mid + 1`
  15212. fi
  15213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15214. done
  15215. else
  15216. $as_echo "$as_me: failed program was:" >&5
  15217. sed 's/^/| /' conftest.$ac_ext >&5
  15218. cat >conftest.$ac_ext <<_ACEOF
  15219. /* confdefs.h. */
  15220. _ACEOF
  15221. cat confdefs.h >>conftest.$ac_ext
  15222. cat >>conftest.$ac_ext <<_ACEOF
  15223. /* end confdefs.h. */
  15224. #include <stddef.h>
  15225. int
  15226. main ()
  15227. {
  15228. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15229. test_array [0] = 0
  15230. ;
  15231. return 0;
  15232. }
  15233. _ACEOF
  15234. rm -f conftest.$ac_objext
  15235. if { (ac_try="$ac_compile"
  15236. case "(($ac_try" in
  15237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15238. *) ac_try_echo=$ac_try;;
  15239. esac
  15240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15241. $as_echo "$ac_try_echo") >&5
  15242. (eval "$ac_compile") 2>conftest.er1
  15243. ac_status=$?
  15244. grep -v '^ *+' conftest.er1 >conftest.err
  15245. rm -f conftest.er1
  15246. cat conftest.err >&5
  15247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15248. (exit $ac_status); } && {
  15249. test -z "$ac_cxx_werror_flag" ||
  15250. test ! -s conftest.err
  15251. } && test -s conftest.$ac_objext; then
  15252. ac_hi=-1 ac_mid=-1
  15253. while :; do
  15254. cat >conftest.$ac_ext <<_ACEOF
  15255. /* confdefs.h. */
  15256. _ACEOF
  15257. cat confdefs.h >>conftest.$ac_ext
  15258. cat >>conftest.$ac_ext <<_ACEOF
  15259. /* end confdefs.h. */
  15260. #include <stddef.h>
  15261. int
  15262. main ()
  15263. {
  15264. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15265. test_array [0] = 0
  15266. ;
  15267. return 0;
  15268. }
  15269. _ACEOF
  15270. rm -f conftest.$ac_objext
  15271. if { (ac_try="$ac_compile"
  15272. case "(($ac_try" in
  15273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15274. *) ac_try_echo=$ac_try;;
  15275. esac
  15276. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15277. $as_echo "$ac_try_echo") >&5
  15278. (eval "$ac_compile") 2>conftest.er1
  15279. ac_status=$?
  15280. grep -v '^ *+' conftest.er1 >conftest.err
  15281. rm -f conftest.er1
  15282. cat conftest.err >&5
  15283. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15284. (exit $ac_status); } && {
  15285. test -z "$ac_cxx_werror_flag" ||
  15286. test ! -s conftest.err
  15287. } && test -s conftest.$ac_objext; then
  15288. ac_lo=$ac_mid; break
  15289. else
  15290. $as_echo "$as_me: failed program was:" >&5
  15291. sed 's/^/| /' conftest.$ac_ext >&5
  15292. ac_hi=`expr '(' $ac_mid ')' - 1`
  15293. if test $ac_mid -le $ac_hi; then
  15294. ac_lo= ac_hi=
  15295. break
  15296. fi
  15297. ac_mid=`expr 2 '*' $ac_mid`
  15298. fi
  15299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15300. done
  15301. else
  15302. $as_echo "$as_me: failed program was:" >&5
  15303. sed 's/^/| /' conftest.$ac_ext >&5
  15304. ac_lo= ac_hi=
  15305. fi
  15306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15307. fi
  15308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15309. # Binary search between lo and hi bounds.
  15310. while test "x$ac_lo" != "x$ac_hi"; do
  15311. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15312. cat >conftest.$ac_ext <<_ACEOF
  15313. /* confdefs.h. */
  15314. _ACEOF
  15315. cat confdefs.h >>conftest.$ac_ext
  15316. cat >>conftest.$ac_ext <<_ACEOF
  15317. /* end confdefs.h. */
  15318. #include <stddef.h>
  15319. int
  15320. main ()
  15321. {
  15322. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15323. test_array [0] = 0
  15324. ;
  15325. return 0;
  15326. }
  15327. _ACEOF
  15328. rm -f conftest.$ac_objext
  15329. if { (ac_try="$ac_compile"
  15330. case "(($ac_try" in
  15331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15332. *) ac_try_echo=$ac_try;;
  15333. esac
  15334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15335. $as_echo "$ac_try_echo") >&5
  15336. (eval "$ac_compile") 2>conftest.er1
  15337. ac_status=$?
  15338. grep -v '^ *+' conftest.er1 >conftest.err
  15339. rm -f conftest.er1
  15340. cat conftest.err >&5
  15341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15342. (exit $ac_status); } && {
  15343. test -z "$ac_cxx_werror_flag" ||
  15344. test ! -s conftest.err
  15345. } && test -s conftest.$ac_objext; then
  15346. ac_hi=$ac_mid
  15347. else
  15348. $as_echo "$as_me: failed program was:" >&5
  15349. sed 's/^/| /' conftest.$ac_ext >&5
  15350. ac_lo=`expr '(' $ac_mid ')' + 1`
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15353. done
  15354. case $ac_lo in
  15355. ?*) fits_in_uint=$ac_lo;;
  15356. '') fits_in_uint= ;;
  15357. esac
  15358. else
  15359. cat >conftest.$ac_ext <<_ACEOF
  15360. /* confdefs.h. */
  15361. _ACEOF
  15362. cat confdefs.h >>conftest.$ac_ext
  15363. cat >>conftest.$ac_ext <<_ACEOF
  15364. /* end confdefs.h. */
  15365. #include <stddef.h>
  15366. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15367. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15368. #include <stdio.h>
  15369. #include <stdlib.h>
  15370. int
  15371. main ()
  15372. {
  15373. FILE *f = fopen ("conftest.val", "w");
  15374. if (! f)
  15375. return 1;
  15376. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15377. {
  15378. long int i = longval ();
  15379. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15380. return 1;
  15381. fprintf (f, "%ld", i);
  15382. }
  15383. else
  15384. {
  15385. unsigned long int i = ulongval ();
  15386. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15387. return 1;
  15388. fprintf (f, "%lu", i);
  15389. }
  15390. /* Do not output a trailing newline, as this causes \r\n confusion
  15391. on some platforms. */
  15392. return ferror (f) || fclose (f) != 0;
  15393. ;
  15394. return 0;
  15395. }
  15396. _ACEOF
  15397. rm -f conftest$ac_exeext
  15398. if { (ac_try="$ac_link"
  15399. case "(($ac_try" in
  15400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15401. *) ac_try_echo=$ac_try;;
  15402. esac
  15403. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15404. $as_echo "$ac_try_echo") >&5
  15405. (eval "$ac_link") 2>&5
  15406. ac_status=$?
  15407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15408. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15409. { (case "(($ac_try" in
  15410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15411. *) ac_try_echo=$ac_try;;
  15412. esac
  15413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15414. $as_echo "$ac_try_echo") >&5
  15415. (eval "$ac_try") 2>&5
  15416. ac_status=$?
  15417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15418. (exit $ac_status); }; }; then
  15419. fits_in_uint=`cat conftest.val`
  15420. else
  15421. $as_echo "$as_me: program exited with status $ac_status" >&5
  15422. $as_echo "$as_me: failed program was:" >&5
  15423. sed 's/^/| /' conftest.$ac_ext >&5
  15424. ( exit $ac_status )
  15425. fits_in_uint=
  15426. fi
  15427. rm -rf conftest.dSYM
  15428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15429. fi
  15430. rm -f conftest.val
  15431. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15432. if test $fits_in_uint = 1; then
  15433. cat >conftest.$ac_ext <<_ACEOF
  15434. /* confdefs.h. */
  15435. _ACEOF
  15436. cat confdefs.h >>conftest.$ac_ext
  15437. cat >>conftest.$ac_ext <<_ACEOF
  15438. /* end confdefs.h. */
  15439. #include <stddef.h>
  15440. extern size_t foo;
  15441. extern unsigned long foo;
  15442. int
  15443. main ()
  15444. {
  15445. ;
  15446. return 0;
  15447. }
  15448. _ACEOF
  15449. rm -f conftest.$ac_objext
  15450. if { (ac_try="$ac_compile"
  15451. case "(($ac_try" in
  15452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15453. *) ac_try_echo=$ac_try;;
  15454. esac
  15455. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15456. $as_echo "$ac_try_echo") >&5
  15457. (eval "$ac_compile") 2>conftest.er1
  15458. ac_status=$?
  15459. grep -v '^ *+' conftest.er1 >conftest.err
  15460. rm -f conftest.er1
  15461. cat conftest.err >&5
  15462. $as_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_objext; then
  15467. fits_in_uint=0
  15468. else
  15469. $as_echo "$as_me: failed program was:" >&5
  15470. sed 's/^/| /' conftest.$ac_ext >&5
  15471. fi
  15472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15473. fi
  15474. if test $fits_in_uint = 1; then
  15475. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15476. else
  15477. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15478. fi
  15479. else
  15480. gl_cv_size_max='((size_t)~(size_t)0)'
  15481. fi
  15482. fi
  15483. fi
  15484. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15485. $as_echo "$gl_cv_size_max" >&6; }
  15486. if test "$gl_cv_size_max" != yes; then
  15487. cat >>confdefs.h <<_ACEOF
  15488. #define SIZE_MAX $gl_cv_size_max
  15489. _ACEOF
  15490. fi
  15491. for ac_header in stdint.h
  15492. do
  15493. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15494. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15495. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15496. $as_echo_n "checking for $ac_header... " >&6; }
  15497. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15498. $as_echo_n "(cached) " >&6
  15499. fi
  15500. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15501. $as_echo "$as_val"'`
  15502. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15503. $as_echo "$ac_res" >&6; }
  15504. else
  15505. # Is the header compilable?
  15506. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15507. $as_echo_n "checking $ac_header usability... " >&6; }
  15508. cat >conftest.$ac_ext <<_ACEOF
  15509. /* confdefs.h. */
  15510. _ACEOF
  15511. cat confdefs.h >>conftest.$ac_ext
  15512. cat >>conftest.$ac_ext <<_ACEOF
  15513. /* end confdefs.h. */
  15514. $ac_includes_default
  15515. #include <$ac_header>
  15516. _ACEOF
  15517. rm -f conftest.$ac_objext
  15518. if { (ac_try="$ac_compile"
  15519. case "(($ac_try" in
  15520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15521. *) ac_try_echo=$ac_try;;
  15522. esac
  15523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15524. $as_echo "$ac_try_echo") >&5
  15525. (eval "$ac_compile") 2>conftest.er1
  15526. ac_status=$?
  15527. grep -v '^ *+' conftest.er1 >conftest.err
  15528. rm -f conftest.er1
  15529. cat conftest.err >&5
  15530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15531. (exit $ac_status); } && {
  15532. test -z "$ac_cxx_werror_flag" ||
  15533. test ! -s conftest.err
  15534. } && test -s conftest.$ac_objext; then
  15535. ac_header_compiler=yes
  15536. else
  15537. $as_echo "$as_me: failed program was:" >&5
  15538. sed 's/^/| /' conftest.$ac_ext >&5
  15539. ac_header_compiler=no
  15540. fi
  15541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15542. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15543. $as_echo "$ac_header_compiler" >&6; }
  15544. # Is the header present?
  15545. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15546. $as_echo_n "checking $ac_header presence... " >&6; }
  15547. cat >conftest.$ac_ext <<_ACEOF
  15548. /* confdefs.h. */
  15549. _ACEOF
  15550. cat confdefs.h >>conftest.$ac_ext
  15551. cat >>conftest.$ac_ext <<_ACEOF
  15552. /* end confdefs.h. */
  15553. #include <$ac_header>
  15554. _ACEOF
  15555. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15556. case "(($ac_try" in
  15557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15558. *) ac_try_echo=$ac_try;;
  15559. esac
  15560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15561. $as_echo "$ac_try_echo") >&5
  15562. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15563. ac_status=$?
  15564. grep -v '^ *+' conftest.er1 >conftest.err
  15565. rm -f conftest.er1
  15566. cat conftest.err >&5
  15567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15568. (exit $ac_status); } >/dev/null && {
  15569. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15570. test ! -s conftest.err
  15571. }; then
  15572. ac_header_preproc=yes
  15573. else
  15574. $as_echo "$as_me: failed program was:" >&5
  15575. sed 's/^/| /' conftest.$ac_ext >&5
  15576. ac_header_preproc=no
  15577. fi
  15578. rm -f conftest.err conftest.$ac_ext
  15579. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15580. $as_echo "$ac_header_preproc" >&6; }
  15581. # So? What about this header?
  15582. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15583. yes:no: )
  15584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15585. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15587. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15588. ac_header_preproc=yes
  15589. ;;
  15590. no:yes:* )
  15591. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15592. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15593. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15594. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15595. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15596. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15597. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15598. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15599. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15600. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15601. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15602. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15603. ( cat <<\_ASBOX
  15604. ## ----------------------------------------------- ##
  15605. ## Report this to t-tujikawa@users.sourceforge.net ##
  15606. ## ----------------------------------------------- ##
  15607. _ASBOX
  15608. ) | sed "s/^/$as_me: WARNING: /" >&2
  15609. ;;
  15610. esac
  15611. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15612. $as_echo_n "checking for $ac_header... " >&6; }
  15613. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15614. $as_echo_n "(cached) " >&6
  15615. else
  15616. eval "$as_ac_Header=\$ac_header_preproc"
  15617. fi
  15618. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15619. $as_echo "$as_val"'`
  15620. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15621. $as_echo "$ac_res" >&6; }
  15622. fi
  15623. as_val=`eval 'as_val=${'$as_ac_Header'}
  15624. $as_echo "$as_val"'`
  15625. if test "x$as_val" = x""yes; then
  15626. cat >>confdefs.h <<_ACEOF
  15627. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15628. _ACEOF
  15629. fi
  15630. done
  15631. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15632. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15633. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15634. $as_echo_n "(cached) " >&6
  15635. else
  15636. gt_save_LIBS="$LIBS"
  15637. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15638. cat >conftest.$ac_ext <<_ACEOF
  15639. /* confdefs.h. */
  15640. _ACEOF
  15641. cat confdefs.h >>conftest.$ac_ext
  15642. cat >>conftest.$ac_ext <<_ACEOF
  15643. /* end confdefs.h. */
  15644. #include <CoreFoundation/CFPreferences.h>
  15645. int
  15646. main ()
  15647. {
  15648. CFPreferencesCopyAppValue(NULL, NULL)
  15649. ;
  15650. return 0;
  15651. }
  15652. _ACEOF
  15653. rm -f conftest.$ac_objext conftest$ac_exeext
  15654. if { (ac_try="$ac_link"
  15655. case "(($ac_try" in
  15656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15657. *) ac_try_echo=$ac_try;;
  15658. esac
  15659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15660. $as_echo "$ac_try_echo") >&5
  15661. (eval "$ac_link") 2>conftest.er1
  15662. ac_status=$?
  15663. grep -v '^ *+' conftest.er1 >conftest.err
  15664. rm -f conftest.er1
  15665. cat conftest.err >&5
  15666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15667. (exit $ac_status); } && {
  15668. test -z "$ac_cxx_werror_flag" ||
  15669. test ! -s conftest.err
  15670. } && test -s conftest$ac_exeext && {
  15671. test "$cross_compiling" = yes ||
  15672. $as_test_x conftest$ac_exeext
  15673. }; then
  15674. gt_cv_func_CFPreferencesCopyAppValue=yes
  15675. else
  15676. $as_echo "$as_me: failed program was:" >&5
  15677. sed 's/^/| /' conftest.$ac_ext >&5
  15678. gt_cv_func_CFPreferencesCopyAppValue=no
  15679. fi
  15680. rm -rf conftest.dSYM
  15681. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15682. conftest$ac_exeext conftest.$ac_ext
  15683. LIBS="$gt_save_LIBS"
  15684. fi
  15685. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15686. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15687. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15688. cat >>confdefs.h <<\_ACEOF
  15689. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15690. _ACEOF
  15691. fi
  15692. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15693. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15694. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15695. $as_echo_n "(cached) " >&6
  15696. else
  15697. gt_save_LIBS="$LIBS"
  15698. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15699. cat >conftest.$ac_ext <<_ACEOF
  15700. /* confdefs.h. */
  15701. _ACEOF
  15702. cat confdefs.h >>conftest.$ac_ext
  15703. cat >>conftest.$ac_ext <<_ACEOF
  15704. /* end confdefs.h. */
  15705. #include <CoreFoundation/CFLocale.h>
  15706. int
  15707. main ()
  15708. {
  15709. CFLocaleCopyCurrent();
  15710. ;
  15711. return 0;
  15712. }
  15713. _ACEOF
  15714. rm -f conftest.$ac_objext conftest$ac_exeext
  15715. if { (ac_try="$ac_link"
  15716. case "(($ac_try" in
  15717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15718. *) ac_try_echo=$ac_try;;
  15719. esac
  15720. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15721. $as_echo "$ac_try_echo") >&5
  15722. (eval "$ac_link") 2>conftest.er1
  15723. ac_status=$?
  15724. grep -v '^ *+' conftest.er1 >conftest.err
  15725. rm -f conftest.er1
  15726. cat conftest.err >&5
  15727. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15728. (exit $ac_status); } && {
  15729. test -z "$ac_cxx_werror_flag" ||
  15730. test ! -s conftest.err
  15731. } && test -s conftest$ac_exeext && {
  15732. test "$cross_compiling" = yes ||
  15733. $as_test_x conftest$ac_exeext
  15734. }; then
  15735. gt_cv_func_CFLocaleCopyCurrent=yes
  15736. else
  15737. $as_echo "$as_me: failed program was:" >&5
  15738. sed 's/^/| /' conftest.$ac_ext >&5
  15739. gt_cv_func_CFLocaleCopyCurrent=no
  15740. fi
  15741. rm -rf conftest.dSYM
  15742. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15743. conftest$ac_exeext conftest.$ac_ext
  15744. LIBS="$gt_save_LIBS"
  15745. fi
  15746. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15747. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15748. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15749. cat >>confdefs.h <<\_ACEOF
  15750. #define HAVE_CFLOCALECOPYCURRENT 1
  15751. _ACEOF
  15752. fi
  15753. INTL_MACOSX_LIBS=
  15754. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15755. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15756. fi
  15757. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15758. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15759. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15760. $as_echo_n "(cached) " >&6
  15761. else
  15762. ac_cv_type_ptrdiff_t=no
  15763. cat >conftest.$ac_ext <<_ACEOF
  15764. /* confdefs.h. */
  15765. _ACEOF
  15766. cat confdefs.h >>conftest.$ac_ext
  15767. cat >>conftest.$ac_ext <<_ACEOF
  15768. /* end confdefs.h. */
  15769. $ac_includes_default
  15770. int
  15771. main ()
  15772. {
  15773. if (sizeof (ptrdiff_t))
  15774. return 0;
  15775. ;
  15776. return 0;
  15777. }
  15778. _ACEOF
  15779. rm -f conftest.$ac_objext
  15780. if { (ac_try="$ac_compile"
  15781. case "(($ac_try" in
  15782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15783. *) ac_try_echo=$ac_try;;
  15784. esac
  15785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15786. $as_echo "$ac_try_echo") >&5
  15787. (eval "$ac_compile") 2>conftest.er1
  15788. ac_status=$?
  15789. grep -v '^ *+' conftest.er1 >conftest.err
  15790. rm -f conftest.er1
  15791. cat conftest.err >&5
  15792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15793. (exit $ac_status); } && {
  15794. test -z "$ac_cxx_werror_flag" ||
  15795. test ! -s conftest.err
  15796. } && test -s conftest.$ac_objext; then
  15797. cat >conftest.$ac_ext <<_ACEOF
  15798. /* confdefs.h. */
  15799. _ACEOF
  15800. cat confdefs.h >>conftest.$ac_ext
  15801. cat >>conftest.$ac_ext <<_ACEOF
  15802. /* end confdefs.h. */
  15803. $ac_includes_default
  15804. int
  15805. main ()
  15806. {
  15807. if (sizeof ((ptrdiff_t)))
  15808. return 0;
  15809. ;
  15810. return 0;
  15811. }
  15812. _ACEOF
  15813. rm -f conftest.$ac_objext
  15814. if { (ac_try="$ac_compile"
  15815. case "(($ac_try" in
  15816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15817. *) ac_try_echo=$ac_try;;
  15818. esac
  15819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15820. $as_echo "$ac_try_echo") >&5
  15821. (eval "$ac_compile") 2>conftest.er1
  15822. ac_status=$?
  15823. grep -v '^ *+' conftest.er1 >conftest.err
  15824. rm -f conftest.er1
  15825. cat conftest.err >&5
  15826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15827. (exit $ac_status); } && {
  15828. test -z "$ac_cxx_werror_flag" ||
  15829. test ! -s conftest.err
  15830. } && test -s conftest.$ac_objext; then
  15831. :
  15832. else
  15833. $as_echo "$as_me: failed program was:" >&5
  15834. sed 's/^/| /' conftest.$ac_ext >&5
  15835. ac_cv_type_ptrdiff_t=yes
  15836. fi
  15837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15838. else
  15839. $as_echo "$as_me: failed program was:" >&5
  15840. sed 's/^/| /' conftest.$ac_ext >&5
  15841. fi
  15842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15843. fi
  15844. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15845. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15846. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15847. :
  15848. else
  15849. cat >>confdefs.h <<\_ACEOF
  15850. #define ptrdiff_t long
  15851. _ACEOF
  15852. fi
  15853. for ac_header in stddef.h stdlib.h string.h
  15854. do
  15855. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15856. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15857. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15858. $as_echo_n "checking for $ac_header... " >&6; }
  15859. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15860. $as_echo_n "(cached) " >&6
  15861. fi
  15862. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15863. $as_echo "$as_val"'`
  15864. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15865. $as_echo "$ac_res" >&6; }
  15866. else
  15867. # Is the header compilable?
  15868. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15869. $as_echo_n "checking $ac_header usability... " >&6; }
  15870. cat >conftest.$ac_ext <<_ACEOF
  15871. /* confdefs.h. */
  15872. _ACEOF
  15873. cat confdefs.h >>conftest.$ac_ext
  15874. cat >>conftest.$ac_ext <<_ACEOF
  15875. /* end confdefs.h. */
  15876. $ac_includes_default
  15877. #include <$ac_header>
  15878. _ACEOF
  15879. rm -f conftest.$ac_objext
  15880. if { (ac_try="$ac_compile"
  15881. case "(($ac_try" in
  15882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15883. *) ac_try_echo=$ac_try;;
  15884. esac
  15885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15886. $as_echo "$ac_try_echo") >&5
  15887. (eval "$ac_compile") 2>conftest.er1
  15888. ac_status=$?
  15889. grep -v '^ *+' conftest.er1 >conftest.err
  15890. rm -f conftest.er1
  15891. cat conftest.err >&5
  15892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15893. (exit $ac_status); } && {
  15894. test -z "$ac_cxx_werror_flag" ||
  15895. test ! -s conftest.err
  15896. } && test -s conftest.$ac_objext; then
  15897. ac_header_compiler=yes
  15898. else
  15899. $as_echo "$as_me: failed program was:" >&5
  15900. sed 's/^/| /' conftest.$ac_ext >&5
  15901. ac_header_compiler=no
  15902. fi
  15903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15904. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15905. $as_echo "$ac_header_compiler" >&6; }
  15906. # Is the header present?
  15907. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15908. $as_echo_n "checking $ac_header presence... " >&6; }
  15909. cat >conftest.$ac_ext <<_ACEOF
  15910. /* confdefs.h. */
  15911. _ACEOF
  15912. cat confdefs.h >>conftest.$ac_ext
  15913. cat >>conftest.$ac_ext <<_ACEOF
  15914. /* end confdefs.h. */
  15915. #include <$ac_header>
  15916. _ACEOF
  15917. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15918. case "(($ac_try" in
  15919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15920. *) ac_try_echo=$ac_try;;
  15921. esac
  15922. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15923. $as_echo "$ac_try_echo") >&5
  15924. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15925. ac_status=$?
  15926. grep -v '^ *+' conftest.er1 >conftest.err
  15927. rm -f conftest.er1
  15928. cat conftest.err >&5
  15929. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15930. (exit $ac_status); } >/dev/null && {
  15931. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15932. test ! -s conftest.err
  15933. }; then
  15934. ac_header_preproc=yes
  15935. else
  15936. $as_echo "$as_me: failed program was:" >&5
  15937. sed 's/^/| /' conftest.$ac_ext >&5
  15938. ac_header_preproc=no
  15939. fi
  15940. rm -f conftest.err conftest.$ac_ext
  15941. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15942. $as_echo "$ac_header_preproc" >&6; }
  15943. # So? What about this header?
  15944. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15945. yes:no: )
  15946. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15947. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15948. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15949. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15950. ac_header_preproc=yes
  15951. ;;
  15952. no:yes:* )
  15953. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15954. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15955. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15956. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15957. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15958. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15959. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15960. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15961. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15962. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15963. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15964. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15965. ( cat <<\_ASBOX
  15966. ## ----------------------------------------------- ##
  15967. ## Report this to t-tujikawa@users.sourceforge.net ##
  15968. ## ----------------------------------------------- ##
  15969. _ASBOX
  15970. ) | sed "s/^/$as_me: WARNING: /" >&2
  15971. ;;
  15972. esac
  15973. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15974. $as_echo_n "checking for $ac_header... " >&6; }
  15975. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15976. $as_echo_n "(cached) " >&6
  15977. else
  15978. eval "$as_ac_Header=\$ac_header_preproc"
  15979. fi
  15980. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15981. $as_echo "$as_val"'`
  15982. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15983. $as_echo "$ac_res" >&6; }
  15984. fi
  15985. as_val=`eval 'as_val=${'$as_ac_Header'}
  15986. $as_echo "$as_val"'`
  15987. if test "x$as_val" = x""yes; then
  15988. cat >>confdefs.h <<_ACEOF
  15989. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15990. _ACEOF
  15991. fi
  15992. done
  15993. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  15994. do
  15995. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15996. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15997. $as_echo_n "checking for $ac_func... " >&6; }
  15998. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15999. $as_echo_n "(cached) " >&6
  16000. else
  16001. cat >conftest.$ac_ext <<_ACEOF
  16002. /* confdefs.h. */
  16003. _ACEOF
  16004. cat confdefs.h >>conftest.$ac_ext
  16005. cat >>conftest.$ac_ext <<_ACEOF
  16006. /* end confdefs.h. */
  16007. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16008. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16009. #define $ac_func innocuous_$ac_func
  16010. /* System header to define __stub macros and hopefully few prototypes,
  16011. which can conflict with char $ac_func (); below.
  16012. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16013. <limits.h> exists even on freestanding compilers. */
  16014. #ifdef __STDC__
  16015. # include <limits.h>
  16016. #else
  16017. # include <assert.h>
  16018. #endif
  16019. #undef $ac_func
  16020. /* Override any GCC internal prototype to avoid an error.
  16021. Use char because int might match the return type of a GCC
  16022. builtin and then its argument prototype would still apply. */
  16023. #ifdef __cplusplus
  16024. extern "C"
  16025. #endif
  16026. char $ac_func ();
  16027. /* The GNU C library defines this for functions which it implements
  16028. to always fail with ENOSYS. Some functions are actually named
  16029. something starting with __ and the normal name is an alias. */
  16030. #if defined __stub_$ac_func || defined __stub___$ac_func
  16031. choke me
  16032. #endif
  16033. int
  16034. main ()
  16035. {
  16036. return $ac_func ();
  16037. ;
  16038. return 0;
  16039. }
  16040. _ACEOF
  16041. rm -f conftest.$ac_objext conftest$ac_exeext
  16042. if { (ac_try="$ac_link"
  16043. case "(($ac_try" in
  16044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16045. *) ac_try_echo=$ac_try;;
  16046. esac
  16047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16048. $as_echo "$ac_try_echo") >&5
  16049. (eval "$ac_link") 2>conftest.er1
  16050. ac_status=$?
  16051. grep -v '^ *+' conftest.er1 >conftest.err
  16052. rm -f conftest.er1
  16053. cat conftest.err >&5
  16054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16055. (exit $ac_status); } && {
  16056. test -z "$ac_cxx_werror_flag" ||
  16057. test ! -s conftest.err
  16058. } && test -s conftest$ac_exeext && {
  16059. test "$cross_compiling" = yes ||
  16060. $as_test_x conftest$ac_exeext
  16061. }; then
  16062. eval "$as_ac_var=yes"
  16063. else
  16064. $as_echo "$as_me: failed program was:" >&5
  16065. sed 's/^/| /' conftest.$ac_ext >&5
  16066. eval "$as_ac_var=no"
  16067. fi
  16068. rm -rf conftest.dSYM
  16069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16070. conftest$ac_exeext conftest.$ac_ext
  16071. fi
  16072. ac_res=`eval 'as_val=${'$as_ac_var'}
  16073. $as_echo "$as_val"'`
  16074. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16075. $as_echo "$ac_res" >&6; }
  16076. as_val=`eval 'as_val=${'$as_ac_var'}
  16077. $as_echo "$as_val"'`
  16078. if test "x$as_val" = x""yes; then
  16079. cat >>confdefs.h <<_ACEOF
  16080. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16081. _ACEOF
  16082. fi
  16083. done
  16084. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  16085. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  16086. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  16087. $as_echo_n "(cached) " >&6
  16088. else
  16089. cat >conftest.$ac_ext <<_ACEOF
  16090. /* confdefs.h. */
  16091. _ACEOF
  16092. cat confdefs.h >>conftest.$ac_ext
  16093. cat >>conftest.$ac_ext <<_ACEOF
  16094. /* end confdefs.h. */
  16095. #include <stdio.h>
  16096. int
  16097. main ()
  16098. {
  16099. #ifndef _snprintf
  16100. char *p = (char *) _snprintf;
  16101. #endif
  16102. ;
  16103. return 0;
  16104. }
  16105. _ACEOF
  16106. rm -f conftest.$ac_objext
  16107. if { (ac_try="$ac_compile"
  16108. case "(($ac_try" in
  16109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16110. *) ac_try_echo=$ac_try;;
  16111. esac
  16112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16113. $as_echo "$ac_try_echo") >&5
  16114. (eval "$ac_compile") 2>conftest.er1
  16115. ac_status=$?
  16116. grep -v '^ *+' conftest.er1 >conftest.err
  16117. rm -f conftest.er1
  16118. cat conftest.err >&5
  16119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16120. (exit $ac_status); } && {
  16121. test -z "$ac_cxx_werror_flag" ||
  16122. test ! -s conftest.err
  16123. } && test -s conftest.$ac_objext; then
  16124. ac_cv_have_decl__snprintf=yes
  16125. else
  16126. $as_echo "$as_me: failed program was:" >&5
  16127. sed 's/^/| /' conftest.$ac_ext >&5
  16128. ac_cv_have_decl__snprintf=no
  16129. fi
  16130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16131. fi
  16132. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  16133. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  16134. if test $ac_cv_have_decl__snprintf = yes; then
  16135. gt_value=1
  16136. else
  16137. gt_value=0
  16138. fi
  16139. cat >>confdefs.h <<_ACEOF
  16140. #define HAVE_DECL__SNPRINTF $gt_value
  16141. _ACEOF
  16142. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  16143. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  16144. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  16145. $as_echo_n "(cached) " >&6
  16146. else
  16147. cat >conftest.$ac_ext <<_ACEOF
  16148. /* confdefs.h. */
  16149. _ACEOF
  16150. cat confdefs.h >>conftest.$ac_ext
  16151. cat >>conftest.$ac_ext <<_ACEOF
  16152. /* end confdefs.h. */
  16153. #include <stdio.h>
  16154. int
  16155. main ()
  16156. {
  16157. #ifndef _snwprintf
  16158. char *p = (char *) _snwprintf;
  16159. #endif
  16160. ;
  16161. return 0;
  16162. }
  16163. _ACEOF
  16164. rm -f conftest.$ac_objext
  16165. if { (ac_try="$ac_compile"
  16166. case "(($ac_try" in
  16167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16168. *) ac_try_echo=$ac_try;;
  16169. esac
  16170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16171. $as_echo "$ac_try_echo") >&5
  16172. (eval "$ac_compile") 2>conftest.er1
  16173. ac_status=$?
  16174. grep -v '^ *+' conftest.er1 >conftest.err
  16175. rm -f conftest.er1
  16176. cat conftest.err >&5
  16177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16178. (exit $ac_status); } && {
  16179. test -z "$ac_cxx_werror_flag" ||
  16180. test ! -s conftest.err
  16181. } && test -s conftest.$ac_objext; then
  16182. ac_cv_have_decl__snwprintf=yes
  16183. else
  16184. $as_echo "$as_me: failed program was:" >&5
  16185. sed 's/^/| /' conftest.$ac_ext >&5
  16186. ac_cv_have_decl__snwprintf=no
  16187. fi
  16188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16189. fi
  16190. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  16191. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16192. if test $ac_cv_have_decl__snwprintf = yes; then
  16193. gt_value=1
  16194. else
  16195. gt_value=0
  16196. fi
  16197. cat >>confdefs.h <<_ACEOF
  16198. #define HAVE_DECL__SNWPRINTF $gt_value
  16199. _ACEOF
  16200. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  16201. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16202. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  16203. $as_echo_n "(cached) " >&6
  16204. else
  16205. cat >conftest.$ac_ext <<_ACEOF
  16206. /* confdefs.h. */
  16207. _ACEOF
  16208. cat confdefs.h >>conftest.$ac_ext
  16209. cat >>conftest.$ac_ext <<_ACEOF
  16210. /* end confdefs.h. */
  16211. #include <stdio.h>
  16212. int
  16213. main ()
  16214. {
  16215. #ifndef getc_unlocked
  16216. char *p = (char *) getc_unlocked;
  16217. #endif
  16218. ;
  16219. return 0;
  16220. }
  16221. _ACEOF
  16222. rm -f conftest.$ac_objext
  16223. if { (ac_try="$ac_compile"
  16224. case "(($ac_try" in
  16225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16226. *) ac_try_echo=$ac_try;;
  16227. esac
  16228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16229. $as_echo "$ac_try_echo") >&5
  16230. (eval "$ac_compile") 2>conftest.er1
  16231. ac_status=$?
  16232. grep -v '^ *+' conftest.er1 >conftest.err
  16233. rm -f conftest.er1
  16234. cat conftest.err >&5
  16235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16236. (exit $ac_status); } && {
  16237. test -z "$ac_cxx_werror_flag" ||
  16238. test ! -s conftest.err
  16239. } && test -s conftest.$ac_objext; then
  16240. ac_cv_have_decl_getc_unlocked=yes
  16241. else
  16242. $as_echo "$as_me: failed program was:" >&5
  16243. sed 's/^/| /' conftest.$ac_ext >&5
  16244. ac_cv_have_decl_getc_unlocked=no
  16245. fi
  16246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16247. fi
  16248. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16249. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16250. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16251. gt_value=1
  16252. else
  16253. gt_value=0
  16254. fi
  16255. cat >>confdefs.h <<_ACEOF
  16256. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16257. _ACEOF
  16258. case $gt_cv_func_printf_posix in
  16259. *yes) HAVE_POSIX_PRINTF=1 ;;
  16260. *) HAVE_POSIX_PRINTF=0 ;;
  16261. esac
  16262. if test "$ac_cv_func_asprintf" = yes; then
  16263. HAVE_ASPRINTF=1
  16264. else
  16265. HAVE_ASPRINTF=0
  16266. fi
  16267. if test "$ac_cv_func_snprintf" = yes; then
  16268. HAVE_SNPRINTF=1
  16269. else
  16270. HAVE_SNPRINTF=0
  16271. fi
  16272. if test "$ac_cv_func_wprintf" = yes; then
  16273. HAVE_WPRINTF=1
  16274. else
  16275. HAVE_WPRINTF=0
  16276. fi
  16277. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16278. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16279. if test "${am_cv_langinfo_codeset+set}" = set; then
  16280. $as_echo_n "(cached) " >&6
  16281. else
  16282. cat >conftest.$ac_ext <<_ACEOF
  16283. /* confdefs.h. */
  16284. _ACEOF
  16285. cat confdefs.h >>conftest.$ac_ext
  16286. cat >>conftest.$ac_ext <<_ACEOF
  16287. /* end confdefs.h. */
  16288. #include <langinfo.h>
  16289. int
  16290. main ()
  16291. {
  16292. char* cs = nl_langinfo(CODESET); return !cs;
  16293. ;
  16294. return 0;
  16295. }
  16296. _ACEOF
  16297. rm -f conftest.$ac_objext conftest$ac_exeext
  16298. if { (ac_try="$ac_link"
  16299. case "(($ac_try" in
  16300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16301. *) ac_try_echo=$ac_try;;
  16302. esac
  16303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16304. $as_echo "$ac_try_echo") >&5
  16305. (eval "$ac_link") 2>conftest.er1
  16306. ac_status=$?
  16307. grep -v '^ *+' conftest.er1 >conftest.err
  16308. rm -f conftest.er1
  16309. cat conftest.err >&5
  16310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16311. (exit $ac_status); } && {
  16312. test -z "$ac_cxx_werror_flag" ||
  16313. test ! -s conftest.err
  16314. } && test -s conftest$ac_exeext && {
  16315. test "$cross_compiling" = yes ||
  16316. $as_test_x conftest$ac_exeext
  16317. }; then
  16318. am_cv_langinfo_codeset=yes
  16319. else
  16320. $as_echo "$as_me: failed program was:" >&5
  16321. sed 's/^/| /' conftest.$ac_ext >&5
  16322. am_cv_langinfo_codeset=no
  16323. fi
  16324. rm -rf conftest.dSYM
  16325. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16326. conftest$ac_exeext conftest.$ac_ext
  16327. fi
  16328. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16329. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16330. if test $am_cv_langinfo_codeset = yes; then
  16331. cat >>confdefs.h <<\_ACEOF
  16332. #define HAVE_LANGINFO_CODESET 1
  16333. _ACEOF
  16334. fi
  16335. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16336. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16337. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16338. $as_echo_n "(cached) " >&6
  16339. else
  16340. cat >conftest.$ac_ext <<_ACEOF
  16341. /* confdefs.h. */
  16342. _ACEOF
  16343. cat confdefs.h >>conftest.$ac_ext
  16344. cat >>conftest.$ac_ext <<_ACEOF
  16345. /* end confdefs.h. */
  16346. #include <locale.h>
  16347. int
  16348. main ()
  16349. {
  16350. return LC_MESSAGES
  16351. ;
  16352. return 0;
  16353. }
  16354. _ACEOF
  16355. rm -f conftest.$ac_objext conftest$ac_exeext
  16356. if { (ac_try="$ac_link"
  16357. case "(($ac_try" in
  16358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16359. *) ac_try_echo=$ac_try;;
  16360. esac
  16361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16362. $as_echo "$ac_try_echo") >&5
  16363. (eval "$ac_link") 2>conftest.er1
  16364. ac_status=$?
  16365. grep -v '^ *+' conftest.er1 >conftest.err
  16366. rm -f conftest.er1
  16367. cat conftest.err >&5
  16368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16369. (exit $ac_status); } && {
  16370. test -z "$ac_cxx_werror_flag" ||
  16371. test ! -s conftest.err
  16372. } && test -s conftest$ac_exeext && {
  16373. test "$cross_compiling" = yes ||
  16374. $as_test_x conftest$ac_exeext
  16375. }; then
  16376. gt_cv_val_LC_MESSAGES=yes
  16377. else
  16378. $as_echo "$as_me: failed program was:" >&5
  16379. sed 's/^/| /' conftest.$ac_ext >&5
  16380. gt_cv_val_LC_MESSAGES=no
  16381. fi
  16382. rm -rf conftest.dSYM
  16383. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16384. conftest$ac_exeext conftest.$ac_ext
  16385. fi
  16386. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16387. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16388. if test $gt_cv_val_LC_MESSAGES = yes; then
  16389. cat >>confdefs.h <<\_ACEOF
  16390. #define HAVE_LC_MESSAGES 1
  16391. _ACEOF
  16392. fi
  16393. if test "$enable_shared" = yes; then
  16394. case "$host_os" in
  16395. mingw* | cygwin*) is_woe32dll=yes ;;
  16396. *) is_woe32dll=no ;;
  16397. esac
  16398. else
  16399. is_woe32dll=no
  16400. fi
  16401. WOE32DLL=$is_woe32dll
  16402. case "$host_os" in
  16403. mingw* | cygwin*) is_woe32=yes ;;
  16404. *) is_woe32=no ;;
  16405. esac
  16406. WOE32=$is_woe32
  16407. if test $WOE32 = yes; then
  16408. if test -n "$ac_tool_prefix"; then
  16409. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16410. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16411. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16412. $as_echo_n "checking for $ac_word... " >&6; }
  16413. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16414. $as_echo_n "(cached) " >&6
  16415. else
  16416. if test -n "$WINDRES"; then
  16417. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16418. else
  16419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16420. for as_dir in $PATH
  16421. do
  16422. IFS=$as_save_IFS
  16423. test -z "$as_dir" && as_dir=.
  16424. for ac_exec_ext in '' $ac_executable_extensions; do
  16425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16426. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16427. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16428. break 2
  16429. fi
  16430. done
  16431. done
  16432. IFS=$as_save_IFS
  16433. fi
  16434. fi
  16435. WINDRES=$ac_cv_prog_WINDRES
  16436. if test -n "$WINDRES"; then
  16437. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16438. $as_echo "$WINDRES" >&6; }
  16439. else
  16440. { $as_echo "$as_me:$LINENO: result: no" >&5
  16441. $as_echo "no" >&6; }
  16442. fi
  16443. fi
  16444. if test -z "$ac_cv_prog_WINDRES"; then
  16445. ac_ct_WINDRES=$WINDRES
  16446. # Extract the first word of "windres", so it can be a program name with args.
  16447. set dummy windres; ac_word=$2
  16448. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16449. $as_echo_n "checking for $ac_word... " >&6; }
  16450. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16451. $as_echo_n "(cached) " >&6
  16452. else
  16453. if test -n "$ac_ct_WINDRES"; then
  16454. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16455. else
  16456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16457. for as_dir in $PATH
  16458. do
  16459. IFS=$as_save_IFS
  16460. test -z "$as_dir" && as_dir=.
  16461. for ac_exec_ext in '' $ac_executable_extensions; do
  16462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16463. ac_cv_prog_ac_ct_WINDRES="windres"
  16464. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16465. break 2
  16466. fi
  16467. done
  16468. done
  16469. IFS=$as_save_IFS
  16470. fi
  16471. fi
  16472. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16473. if test -n "$ac_ct_WINDRES"; then
  16474. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16475. $as_echo "$ac_ct_WINDRES" >&6; }
  16476. else
  16477. { $as_echo "$as_me:$LINENO: result: no" >&5
  16478. $as_echo "no" >&6; }
  16479. fi
  16480. if test "x$ac_ct_WINDRES" = x; then
  16481. WINDRES=""
  16482. else
  16483. case $cross_compiling:$ac_tool_warned in
  16484. yes:)
  16485. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16487. ac_tool_warned=yes ;;
  16488. esac
  16489. WINDRES=$ac_ct_WINDRES
  16490. fi
  16491. else
  16492. WINDRES="$ac_cv_prog_WINDRES"
  16493. fi
  16494. fi
  16495. case "$host_os" in
  16496. hpux*) LTLIBC="" ;;
  16497. *) LTLIBC="-lc" ;;
  16498. esac
  16499. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16500. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16501. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16502. $as_echo_n "(cached) " >&6
  16503. else
  16504. gt_save_LIBS="$LIBS"
  16505. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16506. cat >conftest.$ac_ext <<_ACEOF
  16507. /* confdefs.h. */
  16508. _ACEOF
  16509. cat confdefs.h >>conftest.$ac_ext
  16510. cat >>conftest.$ac_ext <<_ACEOF
  16511. /* end confdefs.h. */
  16512. #include <CoreFoundation/CFPreferences.h>
  16513. int
  16514. main ()
  16515. {
  16516. CFPreferencesCopyAppValue(NULL, NULL)
  16517. ;
  16518. return 0;
  16519. }
  16520. _ACEOF
  16521. rm -f conftest.$ac_objext conftest$ac_exeext
  16522. if { (ac_try="$ac_link"
  16523. case "(($ac_try" in
  16524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16525. *) ac_try_echo=$ac_try;;
  16526. esac
  16527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16528. $as_echo "$ac_try_echo") >&5
  16529. (eval "$ac_link") 2>conftest.er1
  16530. ac_status=$?
  16531. grep -v '^ *+' conftest.er1 >conftest.err
  16532. rm -f conftest.er1
  16533. cat conftest.err >&5
  16534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16535. (exit $ac_status); } && {
  16536. test -z "$ac_cxx_werror_flag" ||
  16537. test ! -s conftest.err
  16538. } && test -s conftest$ac_exeext && {
  16539. test "$cross_compiling" = yes ||
  16540. $as_test_x conftest$ac_exeext
  16541. }; then
  16542. gt_cv_func_CFPreferencesCopyAppValue=yes
  16543. else
  16544. $as_echo "$as_me: failed program was:" >&5
  16545. sed 's/^/| /' conftest.$ac_ext >&5
  16546. gt_cv_func_CFPreferencesCopyAppValue=no
  16547. fi
  16548. rm -rf conftest.dSYM
  16549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16550. conftest$ac_exeext conftest.$ac_ext
  16551. LIBS="$gt_save_LIBS"
  16552. fi
  16553. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16554. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16555. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16556. cat >>confdefs.h <<\_ACEOF
  16557. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16558. _ACEOF
  16559. fi
  16560. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16561. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16562. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16563. $as_echo_n "(cached) " >&6
  16564. else
  16565. gt_save_LIBS="$LIBS"
  16566. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16567. cat >conftest.$ac_ext <<_ACEOF
  16568. /* confdefs.h. */
  16569. _ACEOF
  16570. cat confdefs.h >>conftest.$ac_ext
  16571. cat >>conftest.$ac_ext <<_ACEOF
  16572. /* end confdefs.h. */
  16573. #include <CoreFoundation/CFLocale.h>
  16574. int
  16575. main ()
  16576. {
  16577. CFLocaleCopyCurrent();
  16578. ;
  16579. return 0;
  16580. }
  16581. _ACEOF
  16582. rm -f conftest.$ac_objext conftest$ac_exeext
  16583. if { (ac_try="$ac_link"
  16584. case "(($ac_try" in
  16585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16586. *) ac_try_echo=$ac_try;;
  16587. esac
  16588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16589. $as_echo "$ac_try_echo") >&5
  16590. (eval "$ac_link") 2>conftest.er1
  16591. ac_status=$?
  16592. grep -v '^ *+' conftest.er1 >conftest.err
  16593. rm -f conftest.er1
  16594. cat conftest.err >&5
  16595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16596. (exit $ac_status); } && {
  16597. test -z "$ac_cxx_werror_flag" ||
  16598. test ! -s conftest.err
  16599. } && test -s conftest$ac_exeext && {
  16600. test "$cross_compiling" = yes ||
  16601. $as_test_x conftest$ac_exeext
  16602. }; then
  16603. gt_cv_func_CFLocaleCopyCurrent=yes
  16604. else
  16605. $as_echo "$as_me: failed program was:" >&5
  16606. sed 's/^/| /' conftest.$ac_ext >&5
  16607. gt_cv_func_CFLocaleCopyCurrent=no
  16608. fi
  16609. rm -rf conftest.dSYM
  16610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16611. conftest$ac_exeext conftest.$ac_ext
  16612. LIBS="$gt_save_LIBS"
  16613. fi
  16614. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16615. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16616. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16617. cat >>confdefs.h <<\_ACEOF
  16618. #define HAVE_CFLOCALECOPYCURRENT 1
  16619. _ACEOF
  16620. fi
  16621. INTL_MACOSX_LIBS=
  16622. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16623. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16624. fi
  16625. BUILD_INCLUDED_LIBINTL=no
  16626. USE_INCLUDED_LIBINTL=no
  16627. LIBINTL=
  16628. LTLIBINTL=
  16629. POSUB=
  16630. case " $gt_needs " in
  16631. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16632. *" need-ngettext "*) gt_api_version=2 ;;
  16633. *) gt_api_version=1 ;;
  16634. esac
  16635. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16636. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16637. if test "$USE_NLS" = "yes"; then
  16638. gt_use_preinstalled_gnugettext=no
  16639. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16640. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16641. # Check whether --with-included-gettext was given.
  16642. if test "${with_included_gettext+set}" = set; then
  16643. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16644. else
  16645. nls_cv_force_use_gnu_gettext=no
  16646. fi
  16647. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16648. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16649. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16650. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16651. if test $gt_api_version -ge 3; then
  16652. gt_revision_test_code='
  16653. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16654. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16655. #endif
  16656. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16657. '
  16658. else
  16659. gt_revision_test_code=
  16660. fi
  16661. if test $gt_api_version -ge 2; then
  16662. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16663. else
  16664. gt_expression_test_code=
  16665. fi
  16666. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16667. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16668. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16669. $as_echo_n "(cached) " >&6
  16670. else
  16671. cat >conftest.$ac_ext <<_ACEOF
  16672. /* confdefs.h. */
  16673. _ACEOF
  16674. cat confdefs.h >>conftest.$ac_ext
  16675. cat >>conftest.$ac_ext <<_ACEOF
  16676. /* end confdefs.h. */
  16677. #include <libintl.h>
  16678. $gt_revision_test_code
  16679. extern int _nl_msg_cat_cntr;
  16680. extern int *_nl_domain_bindings;
  16681. int
  16682. main ()
  16683. {
  16684. bindtextdomain ("", "");
  16685. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16686. ;
  16687. return 0;
  16688. }
  16689. _ACEOF
  16690. rm -f conftest.$ac_objext conftest$ac_exeext
  16691. if { (ac_try="$ac_link"
  16692. case "(($ac_try" in
  16693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16694. *) ac_try_echo=$ac_try;;
  16695. esac
  16696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16697. $as_echo "$ac_try_echo") >&5
  16698. (eval "$ac_link") 2>conftest.er1
  16699. ac_status=$?
  16700. grep -v '^ *+' conftest.er1 >conftest.err
  16701. rm -f conftest.er1
  16702. cat conftest.err >&5
  16703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16704. (exit $ac_status); } && {
  16705. test -z "$ac_cxx_werror_flag" ||
  16706. test ! -s conftest.err
  16707. } && test -s conftest$ac_exeext && {
  16708. test "$cross_compiling" = yes ||
  16709. $as_test_x conftest$ac_exeext
  16710. }; then
  16711. eval "$gt_func_gnugettext_libc=yes"
  16712. else
  16713. $as_echo "$as_me: failed program was:" >&5
  16714. sed 's/^/| /' conftest.$ac_ext >&5
  16715. eval "$gt_func_gnugettext_libc=no"
  16716. fi
  16717. rm -rf conftest.dSYM
  16718. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16719. conftest$ac_exeext conftest.$ac_ext
  16720. fi
  16721. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16722. $as_echo "$as_val"'`
  16723. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16724. $as_echo "$ac_res" >&6; }
  16725. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16726. use_additional=yes
  16727. acl_save_prefix="$prefix"
  16728. prefix="$acl_final_prefix"
  16729. acl_save_exec_prefix="$exec_prefix"
  16730. exec_prefix="$acl_final_exec_prefix"
  16731. eval additional_includedir=\"$includedir\"
  16732. eval additional_libdir=\"$libdir\"
  16733. exec_prefix="$acl_save_exec_prefix"
  16734. prefix="$acl_save_prefix"
  16735. # Check whether --with-libintl-prefix was given.
  16736. if test "${with_libintl_prefix+set}" = set; then
  16737. withval=$with_libintl_prefix;
  16738. if test "X$withval" = "Xno"; then
  16739. use_additional=no
  16740. else
  16741. if test "X$withval" = "X"; then
  16742. acl_save_prefix="$prefix"
  16743. prefix="$acl_final_prefix"
  16744. acl_save_exec_prefix="$exec_prefix"
  16745. exec_prefix="$acl_final_exec_prefix"
  16746. eval additional_includedir=\"$includedir\"
  16747. eval additional_libdir=\"$libdir\"
  16748. exec_prefix="$acl_save_exec_prefix"
  16749. prefix="$acl_save_prefix"
  16750. else
  16751. additional_includedir="$withval/include"
  16752. additional_libdir="$withval/$acl_libdirstem"
  16753. fi
  16754. fi
  16755. fi
  16756. LIBINTL=
  16757. LTLIBINTL=
  16758. INCINTL=
  16759. LIBINTL_PREFIX=
  16760. rpathdirs=
  16761. ltrpathdirs=
  16762. names_already_handled=
  16763. names_next_round='intl '
  16764. while test -n "$names_next_round"; do
  16765. names_this_round="$names_next_round"
  16766. names_next_round=
  16767. for name in $names_this_round; do
  16768. already_handled=
  16769. for n in $names_already_handled; do
  16770. if test "$n" = "$name"; then
  16771. already_handled=yes
  16772. break
  16773. fi
  16774. done
  16775. if test -z "$already_handled"; then
  16776. names_already_handled="$names_already_handled $name"
  16777. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16778. eval value=\"\$HAVE_LIB$uppername\"
  16779. if test -n "$value"; then
  16780. if test "$value" = yes; then
  16781. eval value=\"\$LIB$uppername\"
  16782. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16783. eval value=\"\$LTLIB$uppername\"
  16784. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16785. else
  16786. :
  16787. fi
  16788. else
  16789. found_dir=
  16790. found_la=
  16791. found_so=
  16792. found_a=
  16793. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16794. if test -n "$acl_shlibext"; then
  16795. shrext=".$acl_shlibext" # typically: shrext=.so
  16796. else
  16797. shrext=
  16798. fi
  16799. if test $use_additional = yes; then
  16800. dir="$additional_libdir"
  16801. if test -n "$acl_shlibext"; then
  16802. if test -f "$dir/$libname$shrext"; then
  16803. found_dir="$dir"
  16804. found_so="$dir/$libname$shrext"
  16805. else
  16806. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16807. ver=`(cd "$dir" && \
  16808. for f in "$libname$shrext".*; do echo "$f"; done \
  16809. | sed -e "s,^$libname$shrext\\\\.,," \
  16810. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16811. | sed 1q ) 2>/dev/null`
  16812. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16813. found_dir="$dir"
  16814. found_so="$dir/$libname$shrext.$ver"
  16815. fi
  16816. else
  16817. eval library_names=\"$acl_library_names_spec\"
  16818. for f in $library_names; do
  16819. if test -f "$dir/$f"; then
  16820. found_dir="$dir"
  16821. found_so="$dir/$f"
  16822. break
  16823. fi
  16824. done
  16825. fi
  16826. fi
  16827. fi
  16828. if test "X$found_dir" = "X"; then
  16829. if test -f "$dir/$libname.$acl_libext"; then
  16830. found_dir="$dir"
  16831. found_a="$dir/$libname.$acl_libext"
  16832. fi
  16833. fi
  16834. if test "X$found_dir" != "X"; then
  16835. if test -f "$dir/$libname.la"; then
  16836. found_la="$dir/$libname.la"
  16837. fi
  16838. fi
  16839. fi
  16840. if test "X$found_dir" = "X"; then
  16841. for x in $LDFLAGS $LTLIBINTL; do
  16842. acl_save_prefix="$prefix"
  16843. prefix="$acl_final_prefix"
  16844. acl_save_exec_prefix="$exec_prefix"
  16845. exec_prefix="$acl_final_exec_prefix"
  16846. eval x=\"$x\"
  16847. exec_prefix="$acl_save_exec_prefix"
  16848. prefix="$acl_save_prefix"
  16849. case "$x" in
  16850. -L*)
  16851. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16852. if test -n "$acl_shlibext"; then
  16853. if test -f "$dir/$libname$shrext"; then
  16854. found_dir="$dir"
  16855. found_so="$dir/$libname$shrext"
  16856. else
  16857. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16858. ver=`(cd "$dir" && \
  16859. for f in "$libname$shrext".*; do echo "$f"; done \
  16860. | sed -e "s,^$libname$shrext\\\\.,," \
  16861. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16862. | sed 1q ) 2>/dev/null`
  16863. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16864. found_dir="$dir"
  16865. found_so="$dir/$libname$shrext.$ver"
  16866. fi
  16867. else
  16868. eval library_names=\"$acl_library_names_spec\"
  16869. for f in $library_names; do
  16870. if test -f "$dir/$f"; then
  16871. found_dir="$dir"
  16872. found_so="$dir/$f"
  16873. break
  16874. fi
  16875. done
  16876. fi
  16877. fi
  16878. fi
  16879. if test "X$found_dir" = "X"; then
  16880. if test -f "$dir/$libname.$acl_libext"; then
  16881. found_dir="$dir"
  16882. found_a="$dir/$libname.$acl_libext"
  16883. fi
  16884. fi
  16885. if test "X$found_dir" != "X"; then
  16886. if test -f "$dir/$libname.la"; then
  16887. found_la="$dir/$libname.la"
  16888. fi
  16889. fi
  16890. ;;
  16891. esac
  16892. if test "X$found_dir" != "X"; then
  16893. break
  16894. fi
  16895. done
  16896. fi
  16897. if test "X$found_dir" != "X"; then
  16898. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16899. if test "X$found_so" != "X"; then
  16900. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16901. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16902. else
  16903. haveit=
  16904. for x in $ltrpathdirs; do
  16905. if test "X$x" = "X$found_dir"; then
  16906. haveit=yes
  16907. break
  16908. fi
  16909. done
  16910. if test -z "$haveit"; then
  16911. ltrpathdirs="$ltrpathdirs $found_dir"
  16912. fi
  16913. if test "$acl_hardcode_direct" = yes; then
  16914. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16915. else
  16916. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16917. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16918. haveit=
  16919. for x in $rpathdirs; do
  16920. if test "X$x" = "X$found_dir"; then
  16921. haveit=yes
  16922. break
  16923. fi
  16924. done
  16925. if test -z "$haveit"; then
  16926. rpathdirs="$rpathdirs $found_dir"
  16927. fi
  16928. else
  16929. haveit=
  16930. for x in $LDFLAGS $LIBINTL; do
  16931. acl_save_prefix="$prefix"
  16932. prefix="$acl_final_prefix"
  16933. acl_save_exec_prefix="$exec_prefix"
  16934. exec_prefix="$acl_final_exec_prefix"
  16935. eval x=\"$x\"
  16936. exec_prefix="$acl_save_exec_prefix"
  16937. prefix="$acl_save_prefix"
  16938. if test "X$x" = "X-L$found_dir"; then
  16939. haveit=yes
  16940. break
  16941. fi
  16942. done
  16943. if test -z "$haveit"; then
  16944. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  16945. fi
  16946. if test "$acl_hardcode_minus_L" != no; then
  16947. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16948. else
  16949. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16950. fi
  16951. fi
  16952. fi
  16953. fi
  16954. else
  16955. if test "X$found_a" != "X"; then
  16956. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  16957. else
  16958. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  16959. fi
  16960. fi
  16961. additional_includedir=
  16962. case "$found_dir" in
  16963. */$acl_libdirstem | */$acl_libdirstem/)
  16964. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  16965. LIBINTL_PREFIX="$basedir"
  16966. additional_includedir="$basedir/include"
  16967. ;;
  16968. esac
  16969. if test "X$additional_includedir" != "X"; then
  16970. if test "X$additional_includedir" != "X/usr/include"; then
  16971. haveit=
  16972. if test "X$additional_includedir" = "X/usr/local/include"; then
  16973. if test -n "$GCC"; then
  16974. case $host_os in
  16975. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16976. esac
  16977. fi
  16978. fi
  16979. if test -z "$haveit"; then
  16980. for x in $CPPFLAGS $INCINTL; do
  16981. acl_save_prefix="$prefix"
  16982. prefix="$acl_final_prefix"
  16983. acl_save_exec_prefix="$exec_prefix"
  16984. exec_prefix="$acl_final_exec_prefix"
  16985. eval x=\"$x\"
  16986. exec_prefix="$acl_save_exec_prefix"
  16987. prefix="$acl_save_prefix"
  16988. if test "X$x" = "X-I$additional_includedir"; then
  16989. haveit=yes
  16990. break
  16991. fi
  16992. done
  16993. if test -z "$haveit"; then
  16994. if test -d "$additional_includedir"; then
  16995. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  16996. fi
  16997. fi
  16998. fi
  16999. fi
  17000. fi
  17001. if test -n "$found_la"; then
  17002. save_libdir="$libdir"
  17003. case "$found_la" in
  17004. */* | *\\*) . "$found_la" ;;
  17005. *) . "./$found_la" ;;
  17006. esac
  17007. libdir="$save_libdir"
  17008. for dep in $dependency_libs; do
  17009. case "$dep" in
  17010. -L*)
  17011. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17012. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  17013. haveit=
  17014. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  17015. if test -n "$GCC"; then
  17016. case $host_os in
  17017. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17018. esac
  17019. fi
  17020. fi
  17021. if test -z "$haveit"; then
  17022. haveit=
  17023. for x in $LDFLAGS $LIBINTL; do
  17024. acl_save_prefix="$prefix"
  17025. prefix="$acl_final_prefix"
  17026. acl_save_exec_prefix="$exec_prefix"
  17027. exec_prefix="$acl_final_exec_prefix"
  17028. eval x=\"$x\"
  17029. exec_prefix="$acl_save_exec_prefix"
  17030. prefix="$acl_save_prefix"
  17031. if test "X$x" = "X-L$additional_libdir"; then
  17032. haveit=yes
  17033. break
  17034. fi
  17035. done
  17036. if test -z "$haveit"; then
  17037. if test -d "$additional_libdir"; then
  17038. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  17039. fi
  17040. fi
  17041. haveit=
  17042. for x in $LDFLAGS $LTLIBINTL; do
  17043. acl_save_prefix="$prefix"
  17044. prefix="$acl_final_prefix"
  17045. acl_save_exec_prefix="$exec_prefix"
  17046. exec_prefix="$acl_final_exec_prefix"
  17047. eval x=\"$x\"
  17048. exec_prefix="$acl_save_exec_prefix"
  17049. prefix="$acl_save_prefix"
  17050. if test "X$x" = "X-L$additional_libdir"; then
  17051. haveit=yes
  17052. break
  17053. fi
  17054. done
  17055. if test -z "$haveit"; then
  17056. if test -d "$additional_libdir"; then
  17057. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  17058. fi
  17059. fi
  17060. fi
  17061. fi
  17062. ;;
  17063. -R*)
  17064. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17065. if test "$enable_rpath" != no; then
  17066. haveit=
  17067. for x in $rpathdirs; do
  17068. if test "X$x" = "X$dir"; then
  17069. haveit=yes
  17070. break
  17071. fi
  17072. done
  17073. if test -z "$haveit"; then
  17074. rpathdirs="$rpathdirs $dir"
  17075. fi
  17076. haveit=
  17077. for x in $ltrpathdirs; do
  17078. if test "X$x" = "X$dir"; then
  17079. haveit=yes
  17080. break
  17081. fi
  17082. done
  17083. if test -z "$haveit"; then
  17084. ltrpathdirs="$ltrpathdirs $dir"
  17085. fi
  17086. fi
  17087. ;;
  17088. -l*)
  17089. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17090. ;;
  17091. *.la)
  17092. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17093. ;;
  17094. *)
  17095. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  17096. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  17097. ;;
  17098. esac
  17099. done
  17100. fi
  17101. else
  17102. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17103. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  17104. fi
  17105. fi
  17106. fi
  17107. done
  17108. done
  17109. if test "X$rpathdirs" != "X"; then
  17110. if test -n "$acl_hardcode_libdir_separator"; then
  17111. alldirs=
  17112. for found_dir in $rpathdirs; do
  17113. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17114. done
  17115. acl_save_libdir="$libdir"
  17116. libdir="$alldirs"
  17117. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17118. libdir="$acl_save_libdir"
  17119. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17120. else
  17121. for found_dir in $rpathdirs; do
  17122. acl_save_libdir="$libdir"
  17123. libdir="$found_dir"
  17124. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17125. libdir="$acl_save_libdir"
  17126. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17127. done
  17128. fi
  17129. fi
  17130. if test "X$ltrpathdirs" != "X"; then
  17131. for found_dir in $ltrpathdirs; do
  17132. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  17133. done
  17134. fi
  17135. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  17136. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  17137. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. gt_save_CPPFLAGS="$CPPFLAGS"
  17141. CPPFLAGS="$CPPFLAGS $INCINTL"
  17142. gt_save_LIBS="$LIBS"
  17143. LIBS="$LIBS $LIBINTL"
  17144. cat >conftest.$ac_ext <<_ACEOF
  17145. /* confdefs.h. */
  17146. _ACEOF
  17147. cat confdefs.h >>conftest.$ac_ext
  17148. cat >>conftest.$ac_ext <<_ACEOF
  17149. /* end confdefs.h. */
  17150. #include <libintl.h>
  17151. $gt_revision_test_code
  17152. extern int _nl_msg_cat_cntr;
  17153. extern
  17154. #ifdef __cplusplus
  17155. "C"
  17156. #endif
  17157. const char *_nl_expand_alias (const char *);
  17158. int
  17159. main ()
  17160. {
  17161. bindtextdomain ("", "");
  17162. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. rm -f conftest.$ac_objext conftest$ac_exeext
  17168. if { (ac_try="$ac_link"
  17169. case "(($ac_try" in
  17170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17171. *) ac_try_echo=$ac_try;;
  17172. esac
  17173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17174. $as_echo "$ac_try_echo") >&5
  17175. (eval "$ac_link") 2>conftest.er1
  17176. ac_status=$?
  17177. grep -v '^ *+' conftest.er1 >conftest.err
  17178. rm -f conftest.er1
  17179. cat conftest.err >&5
  17180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17181. (exit $ac_status); } && {
  17182. test -z "$ac_cxx_werror_flag" ||
  17183. test ! -s conftest.err
  17184. } && test -s conftest$ac_exeext && {
  17185. test "$cross_compiling" = yes ||
  17186. $as_test_x conftest$ac_exeext
  17187. }; then
  17188. eval "$gt_func_gnugettext_libintl=yes"
  17189. else
  17190. $as_echo "$as_me: failed program was:" >&5
  17191. sed 's/^/| /' conftest.$ac_ext >&5
  17192. eval "$gt_func_gnugettext_libintl=no"
  17193. fi
  17194. rm -rf conftest.dSYM
  17195. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17196. conftest$ac_exeext conftest.$ac_ext
  17197. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  17198. LIBS="$LIBS $LIBICONV"
  17199. cat >conftest.$ac_ext <<_ACEOF
  17200. /* confdefs.h. */
  17201. _ACEOF
  17202. cat confdefs.h >>conftest.$ac_ext
  17203. cat >>conftest.$ac_ext <<_ACEOF
  17204. /* end confdefs.h. */
  17205. #include <libintl.h>
  17206. $gt_revision_test_code
  17207. extern int _nl_msg_cat_cntr;
  17208. extern
  17209. #ifdef __cplusplus
  17210. "C"
  17211. #endif
  17212. const char *_nl_expand_alias (const char *);
  17213. int
  17214. main ()
  17215. {
  17216. bindtextdomain ("", "");
  17217. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17218. ;
  17219. return 0;
  17220. }
  17221. _ACEOF
  17222. rm -f conftest.$ac_objext conftest$ac_exeext
  17223. if { (ac_try="$ac_link"
  17224. case "(($ac_try" in
  17225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17226. *) ac_try_echo=$ac_try;;
  17227. esac
  17228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17229. $as_echo "$ac_try_echo") >&5
  17230. (eval "$ac_link") 2>conftest.er1
  17231. ac_status=$?
  17232. grep -v '^ *+' conftest.er1 >conftest.err
  17233. rm -f conftest.er1
  17234. cat conftest.err >&5
  17235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17236. (exit $ac_status); } && {
  17237. test -z "$ac_cxx_werror_flag" ||
  17238. test ! -s conftest.err
  17239. } && test -s conftest$ac_exeext && {
  17240. test "$cross_compiling" = yes ||
  17241. $as_test_x conftest$ac_exeext
  17242. }; then
  17243. LIBINTL="$LIBINTL $LIBICONV"
  17244. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17245. eval "$gt_func_gnugettext_libintl=yes"
  17246. else
  17247. $as_echo "$as_me: failed program was:" >&5
  17248. sed 's/^/| /' conftest.$ac_ext >&5
  17249. fi
  17250. rm -rf conftest.dSYM
  17251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17252. conftest$ac_exeext conftest.$ac_ext
  17253. fi
  17254. CPPFLAGS="$gt_save_CPPFLAGS"
  17255. LIBS="$gt_save_LIBS"
  17256. fi
  17257. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17258. $as_echo "$as_val"'`
  17259. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17260. $as_echo "$ac_res" >&6; }
  17261. fi
  17262. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17263. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17264. && test "$PACKAGE" != gettext-runtime \
  17265. && test "$PACKAGE" != gettext-tools; }; then
  17266. gt_use_preinstalled_gnugettext=yes
  17267. else
  17268. LIBINTL=
  17269. LTLIBINTL=
  17270. INCINTL=
  17271. fi
  17272. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17273. nls_cv_use_gnu_gettext=yes
  17274. fi
  17275. fi
  17276. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17277. BUILD_INCLUDED_LIBINTL=yes
  17278. USE_INCLUDED_LIBINTL=yes
  17279. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17280. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17281. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17282. fi
  17283. CATOBJEXT=
  17284. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17285. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17286. CATOBJEXT=.gmo
  17287. fi
  17288. if test -n "$INTL_MACOSX_LIBS"; then
  17289. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17290. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17291. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17292. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17293. fi
  17294. fi
  17295. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17296. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17297. cat >>confdefs.h <<\_ACEOF
  17298. #define ENABLE_NLS 1
  17299. _ACEOF
  17300. else
  17301. USE_NLS=no
  17302. fi
  17303. fi
  17304. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17305. $as_echo_n "checking whether to use NLS... " >&6; }
  17306. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17307. $as_echo "$USE_NLS" >&6; }
  17308. if test "$USE_NLS" = "yes"; then
  17309. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17310. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17311. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17312. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17313. gt_source="external libintl"
  17314. else
  17315. gt_source="libc"
  17316. fi
  17317. else
  17318. gt_source="included intl directory"
  17319. fi
  17320. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17321. $as_echo "$gt_source" >&6; }
  17322. fi
  17323. if test "$USE_NLS" = "yes"; then
  17324. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17325. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17326. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17327. $as_echo_n "checking how to link with libintl... " >&6; }
  17328. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17329. $as_echo "$LIBINTL" >&6; }
  17330. for element in $INCINTL; do
  17331. haveit=
  17332. for x in $CPPFLAGS; do
  17333. acl_save_prefix="$prefix"
  17334. prefix="$acl_final_prefix"
  17335. acl_save_exec_prefix="$exec_prefix"
  17336. exec_prefix="$acl_final_exec_prefix"
  17337. eval x=\"$x\"
  17338. exec_prefix="$acl_save_exec_prefix"
  17339. prefix="$acl_save_prefix"
  17340. if test "X$x" = "X$element"; then
  17341. haveit=yes
  17342. break
  17343. fi
  17344. done
  17345. if test -z "$haveit"; then
  17346. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17347. fi
  17348. done
  17349. fi
  17350. cat >>confdefs.h <<\_ACEOF
  17351. #define HAVE_GETTEXT 1
  17352. _ACEOF
  17353. cat >>confdefs.h <<\_ACEOF
  17354. #define HAVE_DCGETTEXT 1
  17355. _ACEOF
  17356. fi
  17357. POSUB=po
  17358. fi
  17359. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17360. BUILD_INCLUDED_LIBINTL=yes
  17361. fi
  17362. nls_cv_header_intl=
  17363. nls_cv_header_libgt=
  17364. DATADIRNAME=share
  17365. INSTOBJEXT=.mo
  17366. GENCAT=gencat
  17367. INTLOBJS=
  17368. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17369. INTLOBJS="\$(GETTOBJS)"
  17370. fi
  17371. INTL_LIBTOOL_SUFFIX_PREFIX=
  17372. INTLLIBS="$LIBINTL"
  17373. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17374. $as_echo_n "checking for error_at_line... " >&6; }
  17375. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17376. $as_echo_n "(cached) " >&6
  17377. else
  17378. cat >conftest.$ac_ext <<_ACEOF
  17379. /* confdefs.h. */
  17380. _ACEOF
  17381. cat confdefs.h >>conftest.$ac_ext
  17382. cat >>conftest.$ac_ext <<_ACEOF
  17383. /* end confdefs.h. */
  17384. #include <error.h>
  17385. int
  17386. main ()
  17387. {
  17388. error_at_line (0, 0, "", 0, "an error occurred");
  17389. ;
  17390. return 0;
  17391. }
  17392. _ACEOF
  17393. rm -f conftest.$ac_objext conftest$ac_exeext
  17394. if { (ac_try="$ac_link"
  17395. case "(($ac_try" in
  17396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17397. *) ac_try_echo=$ac_try;;
  17398. esac
  17399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17400. $as_echo "$ac_try_echo") >&5
  17401. (eval "$ac_link") 2>conftest.er1
  17402. ac_status=$?
  17403. grep -v '^ *+' conftest.er1 >conftest.err
  17404. rm -f conftest.er1
  17405. cat conftest.err >&5
  17406. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17407. (exit $ac_status); } && {
  17408. test -z "$ac_cxx_werror_flag" ||
  17409. test ! -s conftest.err
  17410. } && test -s conftest$ac_exeext && {
  17411. test "$cross_compiling" = yes ||
  17412. $as_test_x conftest$ac_exeext
  17413. }; then
  17414. ac_cv_lib_error_at_line=yes
  17415. else
  17416. $as_echo "$as_me: failed program was:" >&5
  17417. sed 's/^/| /' conftest.$ac_ext >&5
  17418. ac_cv_lib_error_at_line=no
  17419. fi
  17420. rm -rf conftest.dSYM
  17421. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17422. conftest$ac_exeext conftest.$ac_ext
  17423. fi
  17424. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17425. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17426. if test $ac_cv_lib_error_at_line = no; then
  17427. case " $LIBOBJS " in
  17428. *" error.$ac_objext "* ) ;;
  17429. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17430. ;;
  17431. esac
  17432. fi
  17433. if test $ac_cv_c_compiler_gnu = yes; then
  17434. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17435. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17436. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17437. $as_echo_n "(cached) " >&6
  17438. else
  17439. ac_pattern="Autoconf.*'x'"
  17440. cat >conftest.$ac_ext <<_ACEOF
  17441. /* confdefs.h. */
  17442. _ACEOF
  17443. cat confdefs.h >>conftest.$ac_ext
  17444. cat >>conftest.$ac_ext <<_ACEOF
  17445. /* end confdefs.h. */
  17446. #include <sgtty.h>
  17447. Autoconf TIOCGETP
  17448. _ACEOF
  17449. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17450. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17451. ac_cv_prog_gcc_traditional=yes
  17452. else
  17453. ac_cv_prog_gcc_traditional=no
  17454. fi
  17455. rm -f conftest*
  17456. if test $ac_cv_prog_gcc_traditional = no; then
  17457. cat >conftest.$ac_ext <<_ACEOF
  17458. /* confdefs.h. */
  17459. _ACEOF
  17460. cat confdefs.h >>conftest.$ac_ext
  17461. cat >>conftest.$ac_ext <<_ACEOF
  17462. /* end confdefs.h. */
  17463. #include <termio.h>
  17464. Autoconf TCGETA
  17465. _ACEOF
  17466. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17467. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17468. ac_cv_prog_gcc_traditional=yes
  17469. fi
  17470. rm -f conftest*
  17471. fi
  17472. fi
  17473. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17474. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17475. if test $ac_cv_prog_gcc_traditional = yes; then
  17476. CC="$CC -traditional"
  17477. fi
  17478. fi
  17479. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17480. $as_echo_n "checking for working memcmp... " >&6; }
  17481. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17482. $as_echo_n "(cached) " >&6
  17483. else
  17484. if test "$cross_compiling" = yes; then
  17485. ac_cv_func_memcmp_working=no
  17486. else
  17487. cat >conftest.$ac_ext <<_ACEOF
  17488. /* confdefs.h. */
  17489. _ACEOF
  17490. cat confdefs.h >>conftest.$ac_ext
  17491. cat >>conftest.$ac_ext <<_ACEOF
  17492. /* end confdefs.h. */
  17493. $ac_includes_default
  17494. int
  17495. main ()
  17496. {
  17497. /* Some versions of memcmp are not 8-bit clean. */
  17498. char c0 = '\100', c1 = '\200', c2 = '\201';
  17499. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17500. return 1;
  17501. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17502. or more and with at least one buffer not starting on a 4-byte boundary.
  17503. William Lewis provided this test program. */
  17504. {
  17505. char foo[21];
  17506. char bar[21];
  17507. int i;
  17508. for (i = 0; i < 4; i++)
  17509. {
  17510. char *a = foo + i;
  17511. char *b = bar + i;
  17512. strcpy (a, "--------01111111");
  17513. strcpy (b, "--------10000000");
  17514. if (memcmp (a, b, 16) >= 0)
  17515. return 1;
  17516. }
  17517. return 0;
  17518. }
  17519. ;
  17520. return 0;
  17521. }
  17522. _ACEOF
  17523. rm -f conftest$ac_exeext
  17524. if { (ac_try="$ac_link"
  17525. case "(($ac_try" in
  17526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17527. *) ac_try_echo=$ac_try;;
  17528. esac
  17529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17530. $as_echo "$ac_try_echo") >&5
  17531. (eval "$ac_link") 2>&5
  17532. ac_status=$?
  17533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17534. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17535. { (case "(($ac_try" in
  17536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17537. *) ac_try_echo=$ac_try;;
  17538. esac
  17539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17540. $as_echo "$ac_try_echo") >&5
  17541. (eval "$ac_try") 2>&5
  17542. ac_status=$?
  17543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17544. (exit $ac_status); }; }; then
  17545. ac_cv_func_memcmp_working=yes
  17546. else
  17547. $as_echo "$as_me: program exited with status $ac_status" >&5
  17548. $as_echo "$as_me: failed program was:" >&5
  17549. sed 's/^/| /' conftest.$ac_ext >&5
  17550. ( exit $ac_status )
  17551. ac_cv_func_memcmp_working=no
  17552. fi
  17553. rm -rf conftest.dSYM
  17554. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17555. fi
  17556. fi
  17557. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17558. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17559. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17560. *" memcmp.$ac_objext "* ) ;;
  17561. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17562. ;;
  17563. esac
  17564. for ac_header in $ac_header_list
  17565. do
  17566. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17567. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17568. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17569. $as_echo_n "checking for $ac_header... " >&6; }
  17570. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17571. $as_echo_n "(cached) " >&6
  17572. fi
  17573. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17574. $as_echo "$as_val"'`
  17575. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17576. $as_echo "$ac_res" >&6; }
  17577. else
  17578. # Is the header compilable?
  17579. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17580. $as_echo_n "checking $ac_header usability... " >&6; }
  17581. cat >conftest.$ac_ext <<_ACEOF
  17582. /* confdefs.h. */
  17583. _ACEOF
  17584. cat confdefs.h >>conftest.$ac_ext
  17585. cat >>conftest.$ac_ext <<_ACEOF
  17586. /* end confdefs.h. */
  17587. $ac_includes_default
  17588. #include <$ac_header>
  17589. _ACEOF
  17590. rm -f conftest.$ac_objext
  17591. if { (ac_try="$ac_compile"
  17592. case "(($ac_try" in
  17593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17594. *) ac_try_echo=$ac_try;;
  17595. esac
  17596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17597. $as_echo "$ac_try_echo") >&5
  17598. (eval "$ac_compile") 2>conftest.er1
  17599. ac_status=$?
  17600. grep -v '^ *+' conftest.er1 >conftest.err
  17601. rm -f conftest.er1
  17602. cat conftest.err >&5
  17603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17604. (exit $ac_status); } && {
  17605. test -z "$ac_cxx_werror_flag" ||
  17606. test ! -s conftest.err
  17607. } && test -s conftest.$ac_objext; then
  17608. ac_header_compiler=yes
  17609. else
  17610. $as_echo "$as_me: failed program was:" >&5
  17611. sed 's/^/| /' conftest.$ac_ext >&5
  17612. ac_header_compiler=no
  17613. fi
  17614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17615. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17616. $as_echo "$ac_header_compiler" >&6; }
  17617. # Is the header present?
  17618. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17619. $as_echo_n "checking $ac_header presence... " >&6; }
  17620. cat >conftest.$ac_ext <<_ACEOF
  17621. /* confdefs.h. */
  17622. _ACEOF
  17623. cat confdefs.h >>conftest.$ac_ext
  17624. cat >>conftest.$ac_ext <<_ACEOF
  17625. /* end confdefs.h. */
  17626. #include <$ac_header>
  17627. _ACEOF
  17628. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17629. case "(($ac_try" in
  17630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17631. *) ac_try_echo=$ac_try;;
  17632. esac
  17633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17634. $as_echo "$ac_try_echo") >&5
  17635. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17636. ac_status=$?
  17637. grep -v '^ *+' conftest.er1 >conftest.err
  17638. rm -f conftest.er1
  17639. cat conftest.err >&5
  17640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17641. (exit $ac_status); } >/dev/null && {
  17642. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17643. test ! -s conftest.err
  17644. }; then
  17645. ac_header_preproc=yes
  17646. else
  17647. $as_echo "$as_me: failed program was:" >&5
  17648. sed 's/^/| /' conftest.$ac_ext >&5
  17649. ac_header_preproc=no
  17650. fi
  17651. rm -f conftest.err conftest.$ac_ext
  17652. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17653. $as_echo "$ac_header_preproc" >&6; }
  17654. # So? What about this header?
  17655. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17656. yes:no: )
  17657. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17658. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17659. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17660. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17661. ac_header_preproc=yes
  17662. ;;
  17663. no:yes:* )
  17664. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17665. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17666. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17667. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17668. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17669. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17670. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17671. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17672. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17673. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17674. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17675. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17676. ( cat <<\_ASBOX
  17677. ## ----------------------------------------------- ##
  17678. ## Report this to t-tujikawa@users.sourceforge.net ##
  17679. ## ----------------------------------------------- ##
  17680. _ASBOX
  17681. ) | sed "s/^/$as_me: WARNING: /" >&2
  17682. ;;
  17683. esac
  17684. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17685. $as_echo_n "checking for $ac_header... " >&6; }
  17686. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17687. $as_echo_n "(cached) " >&6
  17688. else
  17689. eval "$as_ac_Header=\$ac_header_preproc"
  17690. fi
  17691. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17692. $as_echo "$as_val"'`
  17693. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17694. $as_echo "$ac_res" >&6; }
  17695. fi
  17696. as_val=`eval 'as_val=${'$as_ac_Header'}
  17697. $as_echo "$as_val"'`
  17698. if test "x$as_val" = x""yes; then
  17699. cat >>confdefs.h <<_ACEOF
  17700. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17701. _ACEOF
  17702. fi
  17703. done
  17704. for ac_func in $ac_func_list
  17705. do
  17706. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17707. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17708. $as_echo_n "checking for $ac_func... " >&6; }
  17709. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17710. $as_echo_n "(cached) " >&6
  17711. else
  17712. cat >conftest.$ac_ext <<_ACEOF
  17713. /* confdefs.h. */
  17714. _ACEOF
  17715. cat confdefs.h >>conftest.$ac_ext
  17716. cat >>conftest.$ac_ext <<_ACEOF
  17717. /* end confdefs.h. */
  17718. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17719. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17720. #define $ac_func innocuous_$ac_func
  17721. /* System header to define __stub macros and hopefully few prototypes,
  17722. which can conflict with char $ac_func (); below.
  17723. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17724. <limits.h> exists even on freestanding compilers. */
  17725. #ifdef __STDC__
  17726. # include <limits.h>
  17727. #else
  17728. # include <assert.h>
  17729. #endif
  17730. #undef $ac_func
  17731. /* Override any GCC internal prototype to avoid an error.
  17732. Use char because int might match the return type of a GCC
  17733. builtin and then its argument prototype would still apply. */
  17734. #ifdef __cplusplus
  17735. extern "C"
  17736. #endif
  17737. char $ac_func ();
  17738. /* The GNU C library defines this for functions which it implements
  17739. to always fail with ENOSYS. Some functions are actually named
  17740. something starting with __ and the normal name is an alias. */
  17741. #if defined __stub_$ac_func || defined __stub___$ac_func
  17742. choke me
  17743. #endif
  17744. int
  17745. main ()
  17746. {
  17747. return $ac_func ();
  17748. ;
  17749. return 0;
  17750. }
  17751. _ACEOF
  17752. rm -f conftest.$ac_objext conftest$ac_exeext
  17753. if { (ac_try="$ac_link"
  17754. case "(($ac_try" in
  17755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17756. *) ac_try_echo=$ac_try;;
  17757. esac
  17758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17759. $as_echo "$ac_try_echo") >&5
  17760. (eval "$ac_link") 2>conftest.er1
  17761. ac_status=$?
  17762. grep -v '^ *+' conftest.er1 >conftest.err
  17763. rm -f conftest.er1
  17764. cat conftest.err >&5
  17765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17766. (exit $ac_status); } && {
  17767. test -z "$ac_cxx_werror_flag" ||
  17768. test ! -s conftest.err
  17769. } && test -s conftest$ac_exeext && {
  17770. test "$cross_compiling" = yes ||
  17771. $as_test_x conftest$ac_exeext
  17772. }; then
  17773. eval "$as_ac_var=yes"
  17774. else
  17775. $as_echo "$as_me: failed program was:" >&5
  17776. sed 's/^/| /' conftest.$ac_ext >&5
  17777. eval "$as_ac_var=no"
  17778. fi
  17779. rm -rf conftest.dSYM
  17780. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17781. conftest$ac_exeext conftest.$ac_ext
  17782. fi
  17783. ac_res=`eval 'as_val=${'$as_ac_var'}
  17784. $as_echo "$as_val"'`
  17785. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17786. $as_echo "$ac_res" >&6; }
  17787. as_val=`eval 'as_val=${'$as_ac_var'}
  17788. $as_echo "$as_val"'`
  17789. if test "x$as_val" = x""yes; then
  17790. cat >>confdefs.h <<_ACEOF
  17791. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17792. _ACEOF
  17793. fi
  17794. done
  17795. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17796. $as_echo_n "checking for working mktime... " >&6; }
  17797. if test "${ac_cv_func_working_mktime+set}" = set; then
  17798. $as_echo_n "(cached) " >&6
  17799. else
  17800. if test "$cross_compiling" = yes; then
  17801. ac_cv_func_working_mktime=no
  17802. else
  17803. cat >conftest.$ac_ext <<_ACEOF
  17804. /* confdefs.h. */
  17805. _ACEOF
  17806. cat confdefs.h >>conftest.$ac_ext
  17807. cat >>conftest.$ac_ext <<_ACEOF
  17808. /* end confdefs.h. */
  17809. /* Test program from Paul Eggert and Tony Leneis. */
  17810. #ifdef TIME_WITH_SYS_TIME
  17811. # include <sys/time.h>
  17812. # include <time.h>
  17813. #else
  17814. # ifdef HAVE_SYS_TIME_H
  17815. # include <sys/time.h>
  17816. # else
  17817. # include <time.h>
  17818. # endif
  17819. #endif
  17820. #include <limits.h>
  17821. #include <stdlib.h>
  17822. #ifdef HAVE_UNISTD_H
  17823. # include <unistd.h>
  17824. #endif
  17825. #ifndef HAVE_ALARM
  17826. # define alarm(X) /* empty */
  17827. #endif
  17828. /* Work around redefinition to rpl_putenv by other config tests. */
  17829. #undef putenv
  17830. static time_t time_t_max;
  17831. static time_t time_t_min;
  17832. /* Values we'll use to set the TZ environment variable. */
  17833. static char *tz_strings[] = {
  17834. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17835. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17836. };
  17837. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17838. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17839. Based on a problem report from Andreas Jaeger. */
  17840. static int
  17841. spring_forward_gap ()
  17842. {
  17843. /* glibc (up to about 1998-10-07) failed this test. */
  17844. struct tm tm;
  17845. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17846. instead of "TZ=America/Vancouver" in order to detect the bug even
  17847. on systems that don't support the Olson extension, or don't have the
  17848. full zoneinfo tables installed. */
  17849. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17850. tm.tm_year = 98;
  17851. tm.tm_mon = 3;
  17852. tm.tm_mday = 5;
  17853. tm.tm_hour = 2;
  17854. tm.tm_min = 0;
  17855. tm.tm_sec = 0;
  17856. tm.tm_isdst = -1;
  17857. return mktime (&tm) != (time_t) -1;
  17858. }
  17859. static int
  17860. mktime_test1 (now)
  17861. time_t now;
  17862. {
  17863. struct tm *lt;
  17864. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17865. }
  17866. static int
  17867. mktime_test (now)
  17868. time_t now;
  17869. {
  17870. return (mktime_test1 (now)
  17871. && mktime_test1 ((time_t) (time_t_max - now))
  17872. && mktime_test1 ((time_t) (time_t_min + now)));
  17873. }
  17874. static int
  17875. irix_6_4_bug ()
  17876. {
  17877. /* Based on code from Ariel Faigon. */
  17878. struct tm tm;
  17879. tm.tm_year = 96;
  17880. tm.tm_mon = 3;
  17881. tm.tm_mday = 0;
  17882. tm.tm_hour = 0;
  17883. tm.tm_min = 0;
  17884. tm.tm_sec = 0;
  17885. tm.tm_isdst = -1;
  17886. mktime (&tm);
  17887. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17888. }
  17889. static int
  17890. bigtime_test (j)
  17891. int j;
  17892. {
  17893. struct tm tm;
  17894. time_t now;
  17895. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17896. now = mktime (&tm);
  17897. if (now != (time_t) -1)
  17898. {
  17899. struct tm *lt = localtime (&now);
  17900. if (! (lt
  17901. && lt->tm_year == tm.tm_year
  17902. && lt->tm_mon == tm.tm_mon
  17903. && lt->tm_mday == tm.tm_mday
  17904. && lt->tm_hour == tm.tm_hour
  17905. && lt->tm_min == tm.tm_min
  17906. && lt->tm_sec == tm.tm_sec
  17907. && lt->tm_yday == tm.tm_yday
  17908. && lt->tm_wday == tm.tm_wday
  17909. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17910. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17911. return 0;
  17912. }
  17913. return 1;
  17914. }
  17915. static int
  17916. year_2050_test ()
  17917. {
  17918. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17919. ignoring leap seconds. */
  17920. unsigned long int answer = 2527315200UL;
  17921. struct tm tm;
  17922. time_t t;
  17923. tm.tm_year = 2050 - 1900;
  17924. tm.tm_mon = 2 - 1;
  17925. tm.tm_mday = 1;
  17926. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17927. tm.tm_isdst = -1;
  17928. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17929. instead of "TZ=America/Vancouver" in order to detect the bug even
  17930. on systems that don't support the Olson extension, or don't have the
  17931. full zoneinfo tables installed. */
  17932. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17933. t = mktime (&tm);
  17934. /* Check that the result is either a failure, or close enough
  17935. to the correct answer that we can assume the discrepancy is
  17936. due to leap seconds. */
  17937. return (t == (time_t) -1
  17938. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17939. }
  17940. int
  17941. main ()
  17942. {
  17943. time_t t, delta;
  17944. int i, j;
  17945. /* This test makes some buggy mktime implementations loop.
  17946. Give up after 60 seconds; a mktime slower than that
  17947. isn't worth using anyway. */
  17948. alarm (60);
  17949. for (;;)
  17950. {
  17951. t = (time_t_max << 1) + 1;
  17952. if (t <= time_t_max)
  17953. break;
  17954. time_t_max = t;
  17955. }
  17956. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17957. delta = time_t_max / 997; /* a suitable prime number */
  17958. for (i = 0; i < N_STRINGS; i++)
  17959. {
  17960. if (tz_strings[i])
  17961. putenv (tz_strings[i]);
  17962. for (t = 0; t <= time_t_max - delta; t += delta)
  17963. if (! mktime_test (t))
  17964. return 1;
  17965. if (! (mktime_test ((time_t) 1)
  17966. && mktime_test ((time_t) (60 * 60))
  17967. && mktime_test ((time_t) (60 * 60 * 24))))
  17968. return 1;
  17969. for (j = 1; ; j <<= 1)
  17970. if (! bigtime_test (j))
  17971. return 1;
  17972. else if (INT_MAX / 2 < j)
  17973. break;
  17974. if (! bigtime_test (INT_MAX))
  17975. return 1;
  17976. }
  17977. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17978. }
  17979. _ACEOF
  17980. rm -f conftest$ac_exeext
  17981. if { (ac_try="$ac_link"
  17982. case "(($ac_try" in
  17983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17984. *) ac_try_echo=$ac_try;;
  17985. esac
  17986. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17987. $as_echo "$ac_try_echo") >&5
  17988. (eval "$ac_link") 2>&5
  17989. ac_status=$?
  17990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17991. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17992. { (case "(($ac_try" in
  17993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17994. *) ac_try_echo=$ac_try;;
  17995. esac
  17996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17997. $as_echo "$ac_try_echo") >&5
  17998. (eval "$ac_try") 2>&5
  17999. ac_status=$?
  18000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18001. (exit $ac_status); }; }; then
  18002. ac_cv_func_working_mktime=yes
  18003. else
  18004. $as_echo "$as_me: program exited with status $ac_status" >&5
  18005. $as_echo "$as_me: failed program was:" >&5
  18006. sed 's/^/| /' conftest.$ac_ext >&5
  18007. ( exit $ac_status )
  18008. ac_cv_func_working_mktime=no
  18009. fi
  18010. rm -rf conftest.dSYM
  18011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18012. fi
  18013. fi
  18014. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  18015. $as_echo "$ac_cv_func_working_mktime" >&6; }
  18016. if test $ac_cv_func_working_mktime = no; then
  18017. case " $LIBOBJS " in
  18018. *" mktime.$ac_objext "* ) ;;
  18019. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  18020. ;;
  18021. esac
  18022. fi
  18023. for ac_header in stdlib.h unistd.h
  18024. do
  18025. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18026. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18027. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18028. $as_echo_n "checking for $ac_header... " >&6; }
  18029. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18030. $as_echo_n "(cached) " >&6
  18031. fi
  18032. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18033. $as_echo "$as_val"'`
  18034. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18035. $as_echo "$ac_res" >&6; }
  18036. else
  18037. # Is the header compilable?
  18038. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18039. $as_echo_n "checking $ac_header usability... " >&6; }
  18040. cat >conftest.$ac_ext <<_ACEOF
  18041. /* confdefs.h. */
  18042. _ACEOF
  18043. cat confdefs.h >>conftest.$ac_ext
  18044. cat >>conftest.$ac_ext <<_ACEOF
  18045. /* end confdefs.h. */
  18046. $ac_includes_default
  18047. #include <$ac_header>
  18048. _ACEOF
  18049. rm -f conftest.$ac_objext
  18050. if { (ac_try="$ac_compile"
  18051. case "(($ac_try" in
  18052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18053. *) ac_try_echo=$ac_try;;
  18054. esac
  18055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18056. $as_echo "$ac_try_echo") >&5
  18057. (eval "$ac_compile") 2>conftest.er1
  18058. ac_status=$?
  18059. grep -v '^ *+' conftest.er1 >conftest.err
  18060. rm -f conftest.er1
  18061. cat conftest.err >&5
  18062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18063. (exit $ac_status); } && {
  18064. test -z "$ac_cxx_werror_flag" ||
  18065. test ! -s conftest.err
  18066. } && test -s conftest.$ac_objext; then
  18067. ac_header_compiler=yes
  18068. else
  18069. $as_echo "$as_me: failed program was:" >&5
  18070. sed 's/^/| /' conftest.$ac_ext >&5
  18071. ac_header_compiler=no
  18072. fi
  18073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18074. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18075. $as_echo "$ac_header_compiler" >&6; }
  18076. # Is the header present?
  18077. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18078. $as_echo_n "checking $ac_header presence... " >&6; }
  18079. cat >conftest.$ac_ext <<_ACEOF
  18080. /* confdefs.h. */
  18081. _ACEOF
  18082. cat confdefs.h >>conftest.$ac_ext
  18083. cat >>conftest.$ac_ext <<_ACEOF
  18084. /* end confdefs.h. */
  18085. #include <$ac_header>
  18086. _ACEOF
  18087. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18088. case "(($ac_try" in
  18089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18090. *) ac_try_echo=$ac_try;;
  18091. esac
  18092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18093. $as_echo "$ac_try_echo") >&5
  18094. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18095. ac_status=$?
  18096. grep -v '^ *+' conftest.er1 >conftest.err
  18097. rm -f conftest.er1
  18098. cat conftest.err >&5
  18099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18100. (exit $ac_status); } >/dev/null && {
  18101. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18102. test ! -s conftest.err
  18103. }; then
  18104. ac_header_preproc=yes
  18105. else
  18106. $as_echo "$as_me: failed program was:" >&5
  18107. sed 's/^/| /' conftest.$ac_ext >&5
  18108. ac_header_preproc=no
  18109. fi
  18110. rm -f conftest.err conftest.$ac_ext
  18111. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18112. $as_echo "$ac_header_preproc" >&6; }
  18113. # So? What about this header?
  18114. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18115. yes:no: )
  18116. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18117. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18118. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18119. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18120. ac_header_preproc=yes
  18121. ;;
  18122. no:yes:* )
  18123. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18124. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18125. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18126. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18127. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18128. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18129. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18130. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18131. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18132. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18133. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18134. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18135. ( cat <<\_ASBOX
  18136. ## ----------------------------------------------- ##
  18137. ## Report this to t-tujikawa@users.sourceforge.net ##
  18138. ## ----------------------------------------------- ##
  18139. _ASBOX
  18140. ) | sed "s/^/$as_me: WARNING: /" >&2
  18141. ;;
  18142. esac
  18143. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18144. $as_echo_n "checking for $ac_header... " >&6; }
  18145. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18146. $as_echo_n "(cached) " >&6
  18147. else
  18148. eval "$as_ac_Header=\$ac_header_preproc"
  18149. fi
  18150. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18151. $as_echo "$as_val"'`
  18152. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18153. $as_echo "$ac_res" >&6; }
  18154. fi
  18155. as_val=`eval 'as_val=${'$as_ac_Header'}
  18156. $as_echo "$as_val"'`
  18157. if test "x$as_val" = x""yes; then
  18158. cat >>confdefs.h <<_ACEOF
  18159. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18160. _ACEOF
  18161. fi
  18162. done
  18163. for ac_func in getpagesize
  18164. do
  18165. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18166. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18167. $as_echo_n "checking for $ac_func... " >&6; }
  18168. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18169. $as_echo_n "(cached) " >&6
  18170. else
  18171. cat >conftest.$ac_ext <<_ACEOF
  18172. /* confdefs.h. */
  18173. _ACEOF
  18174. cat confdefs.h >>conftest.$ac_ext
  18175. cat >>conftest.$ac_ext <<_ACEOF
  18176. /* end confdefs.h. */
  18177. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18178. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18179. #define $ac_func innocuous_$ac_func
  18180. /* System header to define __stub macros and hopefully few prototypes,
  18181. which can conflict with char $ac_func (); below.
  18182. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18183. <limits.h> exists even on freestanding compilers. */
  18184. #ifdef __STDC__
  18185. # include <limits.h>
  18186. #else
  18187. # include <assert.h>
  18188. #endif
  18189. #undef $ac_func
  18190. /* Override any GCC internal prototype to avoid an error.
  18191. Use char because int might match the return type of a GCC
  18192. builtin and then its argument prototype would still apply. */
  18193. #ifdef __cplusplus
  18194. extern "C"
  18195. #endif
  18196. char $ac_func ();
  18197. /* The GNU C library defines this for functions which it implements
  18198. to always fail with ENOSYS. Some functions are actually named
  18199. something starting with __ and the normal name is an alias. */
  18200. #if defined __stub_$ac_func || defined __stub___$ac_func
  18201. choke me
  18202. #endif
  18203. int
  18204. main ()
  18205. {
  18206. return $ac_func ();
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. rm -f conftest.$ac_objext conftest$ac_exeext
  18212. if { (ac_try="$ac_link"
  18213. case "(($ac_try" in
  18214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18215. *) ac_try_echo=$ac_try;;
  18216. esac
  18217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18218. $as_echo "$ac_try_echo") >&5
  18219. (eval "$ac_link") 2>conftest.er1
  18220. ac_status=$?
  18221. grep -v '^ *+' conftest.er1 >conftest.err
  18222. rm -f conftest.er1
  18223. cat conftest.err >&5
  18224. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18225. (exit $ac_status); } && {
  18226. test -z "$ac_cxx_werror_flag" ||
  18227. test ! -s conftest.err
  18228. } && test -s conftest$ac_exeext && {
  18229. test "$cross_compiling" = yes ||
  18230. $as_test_x conftest$ac_exeext
  18231. }; then
  18232. eval "$as_ac_var=yes"
  18233. else
  18234. $as_echo "$as_me: failed program was:" >&5
  18235. sed 's/^/| /' conftest.$ac_ext >&5
  18236. eval "$as_ac_var=no"
  18237. fi
  18238. rm -rf conftest.dSYM
  18239. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18240. conftest$ac_exeext conftest.$ac_ext
  18241. fi
  18242. ac_res=`eval 'as_val=${'$as_ac_var'}
  18243. $as_echo "$as_val"'`
  18244. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18245. $as_echo "$ac_res" >&6; }
  18246. as_val=`eval 'as_val=${'$as_ac_var'}
  18247. $as_echo "$as_val"'`
  18248. if test "x$as_val" = x""yes; then
  18249. cat >>confdefs.h <<_ACEOF
  18250. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18251. _ACEOF
  18252. fi
  18253. done
  18254. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18255. $as_echo_n "checking for working mmap... " >&6; }
  18256. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18257. $as_echo_n "(cached) " >&6
  18258. else
  18259. if test "$cross_compiling" = yes; then
  18260. ac_cv_func_mmap_fixed_mapped=no
  18261. else
  18262. cat >conftest.$ac_ext <<_ACEOF
  18263. /* confdefs.h. */
  18264. _ACEOF
  18265. cat confdefs.h >>conftest.$ac_ext
  18266. cat >>conftest.$ac_ext <<_ACEOF
  18267. /* end confdefs.h. */
  18268. $ac_includes_default
  18269. /* malloc might have been renamed as rpl_malloc. */
  18270. #undef malloc
  18271. /* Thanks to Mike Haertel and Jim Avera for this test.
  18272. Here is a matrix of mmap possibilities:
  18273. mmap private not fixed
  18274. mmap private fixed at somewhere currently unmapped
  18275. mmap private fixed at somewhere already mapped
  18276. mmap shared not fixed
  18277. mmap shared fixed at somewhere currently unmapped
  18278. mmap shared fixed at somewhere already mapped
  18279. For private mappings, we should verify that changes cannot be read()
  18280. back from the file, nor mmap's back from the file at a different
  18281. address. (There have been systems where private was not correctly
  18282. implemented like the infamous i386 svr4.0, and systems where the
  18283. VM page cache was not coherent with the file system buffer cache
  18284. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18285. For shared mappings, we should conversely verify that changes get
  18286. propagated back to all the places they're supposed to be.
  18287. Grep wants private fixed already mapped.
  18288. The main things grep needs to know about mmap are:
  18289. * does it exist and is it safe to write into the mmap'd area
  18290. * how to use it (BSD variants) */
  18291. #include <fcntl.h>
  18292. #include <sys/mman.h>
  18293. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18294. char *malloc ();
  18295. #endif
  18296. /* This mess was copied from the GNU getpagesize.h. */
  18297. #ifndef HAVE_GETPAGESIZE
  18298. /* Assume that all systems that can run configure have sys/param.h. */
  18299. # ifndef HAVE_SYS_PARAM_H
  18300. # define HAVE_SYS_PARAM_H 1
  18301. # endif
  18302. # ifdef _SC_PAGESIZE
  18303. # define getpagesize() sysconf(_SC_PAGESIZE)
  18304. # else /* no _SC_PAGESIZE */
  18305. # ifdef HAVE_SYS_PARAM_H
  18306. # include <sys/param.h>
  18307. # ifdef EXEC_PAGESIZE
  18308. # define getpagesize() EXEC_PAGESIZE
  18309. # else /* no EXEC_PAGESIZE */
  18310. # ifdef NBPG
  18311. # define getpagesize() NBPG * CLSIZE
  18312. # ifndef CLSIZE
  18313. # define CLSIZE 1
  18314. # endif /* no CLSIZE */
  18315. # else /* no NBPG */
  18316. # ifdef NBPC
  18317. # define getpagesize() NBPC
  18318. # else /* no NBPC */
  18319. # ifdef PAGESIZE
  18320. # define getpagesize() PAGESIZE
  18321. # endif /* PAGESIZE */
  18322. # endif /* no NBPC */
  18323. # endif /* no NBPG */
  18324. # endif /* no EXEC_PAGESIZE */
  18325. # else /* no HAVE_SYS_PARAM_H */
  18326. # define getpagesize() 8192 /* punt totally */
  18327. # endif /* no HAVE_SYS_PARAM_H */
  18328. # endif /* no _SC_PAGESIZE */
  18329. #endif /* no HAVE_GETPAGESIZE */
  18330. int
  18331. main ()
  18332. {
  18333. char *data, *data2, *data3;
  18334. int i, pagesize;
  18335. int fd;
  18336. pagesize = getpagesize ();
  18337. /* First, make a file with some known garbage in it. */
  18338. data = (char *) malloc (pagesize);
  18339. if (!data)
  18340. return 1;
  18341. for (i = 0; i < pagesize; ++i)
  18342. *(data + i) = rand ();
  18343. umask (0);
  18344. fd = creat ("conftest.mmap", 0600);
  18345. if (fd < 0)
  18346. return 1;
  18347. if (write (fd, data, pagesize) != pagesize)
  18348. return 1;
  18349. close (fd);
  18350. /* Next, try to mmap the file at a fixed address which already has
  18351. something else allocated at it. If we can, also make sure that
  18352. we see the same garbage. */
  18353. fd = open ("conftest.mmap", O_RDWR);
  18354. if (fd < 0)
  18355. return 1;
  18356. data2 = (char *) malloc (2 * pagesize);
  18357. if (!data2)
  18358. return 1;
  18359. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18360. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18361. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18362. return 1;
  18363. for (i = 0; i < pagesize; ++i)
  18364. if (*(data + i) != *(data2 + i))
  18365. return 1;
  18366. /* Finally, make sure that changes to the mapped area do not
  18367. percolate back to the file as seen by read(). (This is a bug on
  18368. some variants of i386 svr4.0.) */
  18369. for (i = 0; i < pagesize; ++i)
  18370. *(data2 + i) = *(data2 + i) + 1;
  18371. data3 = (char *) malloc (pagesize);
  18372. if (!data3)
  18373. return 1;
  18374. if (read (fd, data3, pagesize) != pagesize)
  18375. return 1;
  18376. for (i = 0; i < pagesize; ++i)
  18377. if (*(data + i) != *(data3 + i))
  18378. return 1;
  18379. close (fd);
  18380. return 0;
  18381. }
  18382. _ACEOF
  18383. rm -f conftest$ac_exeext
  18384. if { (ac_try="$ac_link"
  18385. case "(($ac_try" in
  18386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18387. *) ac_try_echo=$ac_try;;
  18388. esac
  18389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18390. $as_echo "$ac_try_echo") >&5
  18391. (eval "$ac_link") 2>&5
  18392. ac_status=$?
  18393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18394. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18395. { (case "(($ac_try" in
  18396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18397. *) ac_try_echo=$ac_try;;
  18398. esac
  18399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18400. $as_echo "$ac_try_echo") >&5
  18401. (eval "$ac_try") 2>&5
  18402. ac_status=$?
  18403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18404. (exit $ac_status); }; }; then
  18405. ac_cv_func_mmap_fixed_mapped=yes
  18406. else
  18407. $as_echo "$as_me: program exited with status $ac_status" >&5
  18408. $as_echo "$as_me: failed program was:" >&5
  18409. sed 's/^/| /' conftest.$ac_ext >&5
  18410. ( exit $ac_status )
  18411. ac_cv_func_mmap_fixed_mapped=no
  18412. fi
  18413. rm -rf conftest.dSYM
  18414. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18415. fi
  18416. fi
  18417. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18418. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18419. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18420. cat >>confdefs.h <<\_ACEOF
  18421. #define HAVE_MMAP 1
  18422. _ACEOF
  18423. fi
  18424. rm -f conftest.mmap
  18425. for ac_header in sys/select.h sys/socket.h
  18426. do
  18427. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18428. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18429. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18430. $as_echo_n "checking for $ac_header... " >&6; }
  18431. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18432. $as_echo_n "(cached) " >&6
  18433. fi
  18434. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18435. $as_echo "$as_val"'`
  18436. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18437. $as_echo "$ac_res" >&6; }
  18438. else
  18439. # Is the header compilable?
  18440. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18441. $as_echo_n "checking $ac_header usability... " >&6; }
  18442. cat >conftest.$ac_ext <<_ACEOF
  18443. /* confdefs.h. */
  18444. _ACEOF
  18445. cat confdefs.h >>conftest.$ac_ext
  18446. cat >>conftest.$ac_ext <<_ACEOF
  18447. /* end confdefs.h. */
  18448. $ac_includes_default
  18449. #include <$ac_header>
  18450. _ACEOF
  18451. rm -f conftest.$ac_objext
  18452. if { (ac_try="$ac_compile"
  18453. case "(($ac_try" in
  18454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18455. *) ac_try_echo=$ac_try;;
  18456. esac
  18457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18458. $as_echo "$ac_try_echo") >&5
  18459. (eval "$ac_compile") 2>conftest.er1
  18460. ac_status=$?
  18461. grep -v '^ *+' conftest.er1 >conftest.err
  18462. rm -f conftest.er1
  18463. cat conftest.err >&5
  18464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18465. (exit $ac_status); } && {
  18466. test -z "$ac_cxx_werror_flag" ||
  18467. test ! -s conftest.err
  18468. } && test -s conftest.$ac_objext; then
  18469. ac_header_compiler=yes
  18470. else
  18471. $as_echo "$as_me: failed program was:" >&5
  18472. sed 's/^/| /' conftest.$ac_ext >&5
  18473. ac_header_compiler=no
  18474. fi
  18475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18476. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18477. $as_echo "$ac_header_compiler" >&6; }
  18478. # Is the header present?
  18479. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18480. $as_echo_n "checking $ac_header presence... " >&6; }
  18481. cat >conftest.$ac_ext <<_ACEOF
  18482. /* confdefs.h. */
  18483. _ACEOF
  18484. cat confdefs.h >>conftest.$ac_ext
  18485. cat >>conftest.$ac_ext <<_ACEOF
  18486. /* end confdefs.h. */
  18487. #include <$ac_header>
  18488. _ACEOF
  18489. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18490. case "(($ac_try" in
  18491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18492. *) ac_try_echo=$ac_try;;
  18493. esac
  18494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18495. $as_echo "$ac_try_echo") >&5
  18496. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18497. ac_status=$?
  18498. grep -v '^ *+' conftest.er1 >conftest.err
  18499. rm -f conftest.er1
  18500. cat conftest.err >&5
  18501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18502. (exit $ac_status); } >/dev/null && {
  18503. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18504. test ! -s conftest.err
  18505. }; then
  18506. ac_header_preproc=yes
  18507. else
  18508. $as_echo "$as_me: failed program was:" >&5
  18509. sed 's/^/| /' conftest.$ac_ext >&5
  18510. ac_header_preproc=no
  18511. fi
  18512. rm -f conftest.err conftest.$ac_ext
  18513. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18514. $as_echo "$ac_header_preproc" >&6; }
  18515. # So? What about this header?
  18516. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18517. yes:no: )
  18518. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18519. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18520. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18521. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18522. ac_header_preproc=yes
  18523. ;;
  18524. no:yes:* )
  18525. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18526. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18527. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18528. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18529. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18530. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18531. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18532. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18533. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18534. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18535. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18536. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18537. ( cat <<\_ASBOX
  18538. ## ----------------------------------------------- ##
  18539. ## Report this to t-tujikawa@users.sourceforge.net ##
  18540. ## ----------------------------------------------- ##
  18541. _ASBOX
  18542. ) | sed "s/^/$as_me: WARNING: /" >&2
  18543. ;;
  18544. esac
  18545. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18546. $as_echo_n "checking for $ac_header... " >&6; }
  18547. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18548. $as_echo_n "(cached) " >&6
  18549. else
  18550. eval "$as_ac_Header=\$ac_header_preproc"
  18551. fi
  18552. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18553. $as_echo "$as_val"'`
  18554. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18555. $as_echo "$ac_res" >&6; }
  18556. fi
  18557. as_val=`eval 'as_val=${'$as_ac_Header'}
  18558. $as_echo "$as_val"'`
  18559. if test "x$as_val" = x""yes; then
  18560. cat >>confdefs.h <<_ACEOF
  18561. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18562. _ACEOF
  18563. fi
  18564. done
  18565. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18566. $as_echo_n "checking types of arguments for select... " >&6; }
  18567. if test "${ac_cv_func_select_args+set}" = set; then
  18568. $as_echo_n "(cached) " >&6
  18569. else
  18570. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18571. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18572. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18573. cat >conftest.$ac_ext <<_ACEOF
  18574. /* confdefs.h. */
  18575. _ACEOF
  18576. cat confdefs.h >>conftest.$ac_ext
  18577. cat >>conftest.$ac_ext <<_ACEOF
  18578. /* end confdefs.h. */
  18579. $ac_includes_default
  18580. #ifdef HAVE_SYS_SELECT_H
  18581. # include <sys/select.h>
  18582. #endif
  18583. #ifdef HAVE_SYS_SOCKET_H
  18584. # include <sys/socket.h>
  18585. #endif
  18586. int
  18587. main ()
  18588. {
  18589. extern int select ($ac_arg1,
  18590. $ac_arg234, $ac_arg234, $ac_arg234,
  18591. $ac_arg5);
  18592. ;
  18593. return 0;
  18594. }
  18595. _ACEOF
  18596. rm -f conftest.$ac_objext
  18597. if { (ac_try="$ac_compile"
  18598. case "(($ac_try" in
  18599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18600. *) ac_try_echo=$ac_try;;
  18601. esac
  18602. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18603. $as_echo "$ac_try_echo") >&5
  18604. (eval "$ac_compile") 2>conftest.er1
  18605. ac_status=$?
  18606. grep -v '^ *+' conftest.er1 >conftest.err
  18607. rm -f conftest.er1
  18608. cat conftest.err >&5
  18609. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18610. (exit $ac_status); } && {
  18611. test -z "$ac_cxx_werror_flag" ||
  18612. test ! -s conftest.err
  18613. } && test -s conftest.$ac_objext; then
  18614. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18615. else
  18616. $as_echo "$as_me: failed program was:" >&5
  18617. sed 's/^/| /' conftest.$ac_ext >&5
  18618. fi
  18619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18620. done
  18621. done
  18622. done
  18623. # Provide a safe default value.
  18624. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18625. fi
  18626. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18627. $as_echo "$ac_cv_func_select_args" >&6; }
  18628. ac_save_IFS=$IFS; IFS=','
  18629. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18630. IFS=$ac_save_IFS
  18631. shift
  18632. cat >>confdefs.h <<_ACEOF
  18633. #define SELECT_TYPE_ARG1 $1
  18634. _ACEOF
  18635. cat >>confdefs.h <<_ACEOF
  18636. #define SELECT_TYPE_ARG234 ($2)
  18637. _ACEOF
  18638. cat >>confdefs.h <<_ACEOF
  18639. #define SELECT_TYPE_ARG5 ($3)
  18640. _ACEOF
  18641. rm -f conftest*
  18642. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18643. $as_echo_n "checking return type of signal handlers... " >&6; }
  18644. if test "${ac_cv_type_signal+set}" = set; then
  18645. $as_echo_n "(cached) " >&6
  18646. else
  18647. cat >conftest.$ac_ext <<_ACEOF
  18648. /* confdefs.h. */
  18649. _ACEOF
  18650. cat confdefs.h >>conftest.$ac_ext
  18651. cat >>conftest.$ac_ext <<_ACEOF
  18652. /* end confdefs.h. */
  18653. #include <sys/types.h>
  18654. #include <signal.h>
  18655. int
  18656. main ()
  18657. {
  18658. return *(signal (0, 0)) (0) == 1;
  18659. ;
  18660. return 0;
  18661. }
  18662. _ACEOF
  18663. rm -f conftest.$ac_objext
  18664. if { (ac_try="$ac_compile"
  18665. case "(($ac_try" in
  18666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18667. *) ac_try_echo=$ac_try;;
  18668. esac
  18669. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18670. $as_echo "$ac_try_echo") >&5
  18671. (eval "$ac_compile") 2>conftest.er1
  18672. ac_status=$?
  18673. grep -v '^ *+' conftest.er1 >conftest.err
  18674. rm -f conftest.er1
  18675. cat conftest.err >&5
  18676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18677. (exit $ac_status); } && {
  18678. test -z "$ac_cxx_werror_flag" ||
  18679. test ! -s conftest.err
  18680. } && test -s conftest.$ac_objext; then
  18681. ac_cv_type_signal=int
  18682. else
  18683. $as_echo "$as_me: failed program was:" >&5
  18684. sed 's/^/| /' conftest.$ac_ext >&5
  18685. ac_cv_type_signal=void
  18686. fi
  18687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18688. fi
  18689. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18690. $as_echo "$ac_cv_type_signal" >&6; }
  18691. cat >>confdefs.h <<_ACEOF
  18692. #define RETSIGTYPE $ac_cv_type_signal
  18693. _ACEOF
  18694. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18695. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18696. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18697. $as_echo_n "(cached) " >&6
  18698. else
  18699. rm -f conftest.sym conftest.file
  18700. echo >conftest.file
  18701. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18702. if test "$cross_compiling" = yes; then
  18703. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18704. else
  18705. cat >conftest.$ac_ext <<_ACEOF
  18706. /* confdefs.h. */
  18707. _ACEOF
  18708. cat confdefs.h >>conftest.$ac_ext
  18709. cat >>conftest.$ac_ext <<_ACEOF
  18710. /* end confdefs.h. */
  18711. $ac_includes_default
  18712. int
  18713. main ()
  18714. {
  18715. struct stat sbuf;
  18716. /* Linux will dereference the symlink and fail.
  18717. That is better in the sense that it means we will not
  18718. have to compile and use the lstat wrapper. */
  18719. return lstat ("conftest.sym/", &sbuf) == 0;
  18720. ;
  18721. return 0;
  18722. }
  18723. _ACEOF
  18724. rm -f conftest$ac_exeext
  18725. if { (ac_try="$ac_link"
  18726. case "(($ac_try" in
  18727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18728. *) ac_try_echo=$ac_try;;
  18729. esac
  18730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18731. $as_echo "$ac_try_echo") >&5
  18732. (eval "$ac_link") 2>&5
  18733. ac_status=$?
  18734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18735. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18736. { (case "(($ac_try" in
  18737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18738. *) ac_try_echo=$ac_try;;
  18739. esac
  18740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18741. $as_echo "$ac_try_echo") >&5
  18742. (eval "$ac_try") 2>&5
  18743. ac_status=$?
  18744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18745. (exit $ac_status); }; }; then
  18746. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18747. else
  18748. $as_echo "$as_me: program exited with status $ac_status" >&5
  18749. $as_echo "$as_me: failed program was:" >&5
  18750. sed 's/^/| /' conftest.$ac_ext >&5
  18751. ( exit $ac_status )
  18752. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18753. fi
  18754. rm -rf conftest.dSYM
  18755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18756. fi
  18757. else
  18758. # If the `ln -s' command failed, then we probably don't even
  18759. # have an lstat function.
  18760. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18761. fi
  18762. rm -f conftest.sym conftest.file
  18763. fi
  18764. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18765. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18766. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18767. cat >>confdefs.h <<_ACEOF
  18768. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18769. _ACEOF
  18770. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18771. case " $LIBOBJS " in
  18772. *" lstat.$ac_objext "* ) ;;
  18773. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18774. ;;
  18775. esac
  18776. fi
  18777. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18778. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18779. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18780. $as_echo_n "(cached) " >&6
  18781. else
  18782. if test "$cross_compiling" = yes; then
  18783. ac_cv_func_stat_empty_string_bug=yes
  18784. else
  18785. cat >conftest.$ac_ext <<_ACEOF
  18786. /* confdefs.h. */
  18787. _ACEOF
  18788. cat confdefs.h >>conftest.$ac_ext
  18789. cat >>conftest.$ac_ext <<_ACEOF
  18790. /* end confdefs.h. */
  18791. $ac_includes_default
  18792. int
  18793. main ()
  18794. {
  18795. struct stat sbuf;
  18796. return stat ("", &sbuf) == 0;
  18797. ;
  18798. return 0;
  18799. }
  18800. _ACEOF
  18801. rm -f conftest$ac_exeext
  18802. if { (ac_try="$ac_link"
  18803. case "(($ac_try" in
  18804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18805. *) ac_try_echo=$ac_try;;
  18806. esac
  18807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18808. $as_echo "$ac_try_echo") >&5
  18809. (eval "$ac_link") 2>&5
  18810. ac_status=$?
  18811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18812. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18813. { (case "(($ac_try" in
  18814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18815. *) ac_try_echo=$ac_try;;
  18816. esac
  18817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18818. $as_echo "$ac_try_echo") >&5
  18819. (eval "$ac_try") 2>&5
  18820. ac_status=$?
  18821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18822. (exit $ac_status); }; }; then
  18823. ac_cv_func_stat_empty_string_bug=no
  18824. else
  18825. $as_echo "$as_me: program exited with status $ac_status" >&5
  18826. $as_echo "$as_me: failed program was:" >&5
  18827. sed 's/^/| /' conftest.$ac_ext >&5
  18828. ( exit $ac_status )
  18829. ac_cv_func_stat_empty_string_bug=yes
  18830. fi
  18831. rm -rf conftest.dSYM
  18832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18833. fi
  18834. fi
  18835. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18836. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18837. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18838. case " $LIBOBJS " in
  18839. *" stat.$ac_objext "* ) ;;
  18840. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18841. ;;
  18842. esac
  18843. cat >>confdefs.h <<_ACEOF
  18844. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18845. _ACEOF
  18846. fi
  18847. for ac_func in strftime
  18848. do
  18849. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18850. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18851. $as_echo_n "checking for $ac_func... " >&6; }
  18852. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18853. $as_echo_n "(cached) " >&6
  18854. else
  18855. cat >conftest.$ac_ext <<_ACEOF
  18856. /* confdefs.h. */
  18857. _ACEOF
  18858. cat confdefs.h >>conftest.$ac_ext
  18859. cat >>conftest.$ac_ext <<_ACEOF
  18860. /* end confdefs.h. */
  18861. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18862. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18863. #define $ac_func innocuous_$ac_func
  18864. /* System header to define __stub macros and hopefully few prototypes,
  18865. which can conflict with char $ac_func (); below.
  18866. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18867. <limits.h> exists even on freestanding compilers. */
  18868. #ifdef __STDC__
  18869. # include <limits.h>
  18870. #else
  18871. # include <assert.h>
  18872. #endif
  18873. #undef $ac_func
  18874. /* Override any GCC internal prototype to avoid an error.
  18875. Use char because int might match the return type of a GCC
  18876. builtin and then its argument prototype would still apply. */
  18877. #ifdef __cplusplus
  18878. extern "C"
  18879. #endif
  18880. char $ac_func ();
  18881. /* The GNU C library defines this for functions which it implements
  18882. to always fail with ENOSYS. Some functions are actually named
  18883. something starting with __ and the normal name is an alias. */
  18884. #if defined __stub_$ac_func || defined __stub___$ac_func
  18885. choke me
  18886. #endif
  18887. int
  18888. main ()
  18889. {
  18890. return $ac_func ();
  18891. ;
  18892. return 0;
  18893. }
  18894. _ACEOF
  18895. rm -f conftest.$ac_objext conftest$ac_exeext
  18896. if { (ac_try="$ac_link"
  18897. case "(($ac_try" in
  18898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18899. *) ac_try_echo=$ac_try;;
  18900. esac
  18901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18902. $as_echo "$ac_try_echo") >&5
  18903. (eval "$ac_link") 2>conftest.er1
  18904. ac_status=$?
  18905. grep -v '^ *+' conftest.er1 >conftest.err
  18906. rm -f conftest.er1
  18907. cat conftest.err >&5
  18908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18909. (exit $ac_status); } && {
  18910. test -z "$ac_cxx_werror_flag" ||
  18911. test ! -s conftest.err
  18912. } && test -s conftest$ac_exeext && {
  18913. test "$cross_compiling" = yes ||
  18914. $as_test_x conftest$ac_exeext
  18915. }; then
  18916. eval "$as_ac_var=yes"
  18917. else
  18918. $as_echo "$as_me: failed program was:" >&5
  18919. sed 's/^/| /' conftest.$ac_ext >&5
  18920. eval "$as_ac_var=no"
  18921. fi
  18922. rm -rf conftest.dSYM
  18923. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18924. conftest$ac_exeext conftest.$ac_ext
  18925. fi
  18926. ac_res=`eval 'as_val=${'$as_ac_var'}
  18927. $as_echo "$as_val"'`
  18928. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18929. $as_echo "$ac_res" >&6; }
  18930. as_val=`eval 'as_val=${'$as_ac_var'}
  18931. $as_echo "$as_val"'`
  18932. if test "x$as_val" = x""yes; then
  18933. cat >>confdefs.h <<_ACEOF
  18934. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18935. _ACEOF
  18936. else
  18937. # strftime is in -lintl on SCO UNIX.
  18938. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18939. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18940. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18941. $as_echo_n "(cached) " >&6
  18942. else
  18943. ac_check_lib_save_LIBS=$LIBS
  18944. LIBS="-lintl $LIBS"
  18945. cat >conftest.$ac_ext <<_ACEOF
  18946. /* confdefs.h. */
  18947. _ACEOF
  18948. cat confdefs.h >>conftest.$ac_ext
  18949. cat >>conftest.$ac_ext <<_ACEOF
  18950. /* end confdefs.h. */
  18951. /* Override any GCC internal prototype to avoid an error.
  18952. Use char because int might match the return type of a GCC
  18953. builtin and then its argument prototype would still apply. */
  18954. #ifdef __cplusplus
  18955. extern "C"
  18956. #endif
  18957. char strftime ();
  18958. int
  18959. main ()
  18960. {
  18961. return strftime ();
  18962. ;
  18963. return 0;
  18964. }
  18965. _ACEOF
  18966. rm -f conftest.$ac_objext conftest$ac_exeext
  18967. if { (ac_try="$ac_link"
  18968. case "(($ac_try" in
  18969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18970. *) ac_try_echo=$ac_try;;
  18971. esac
  18972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18973. $as_echo "$ac_try_echo") >&5
  18974. (eval "$ac_link") 2>conftest.er1
  18975. ac_status=$?
  18976. grep -v '^ *+' conftest.er1 >conftest.err
  18977. rm -f conftest.er1
  18978. cat conftest.err >&5
  18979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18980. (exit $ac_status); } && {
  18981. test -z "$ac_cxx_werror_flag" ||
  18982. test ! -s conftest.err
  18983. } && test -s conftest$ac_exeext && {
  18984. test "$cross_compiling" = yes ||
  18985. $as_test_x conftest$ac_exeext
  18986. }; then
  18987. ac_cv_lib_intl_strftime=yes
  18988. else
  18989. $as_echo "$as_me: failed program was:" >&5
  18990. sed 's/^/| /' conftest.$ac_ext >&5
  18991. ac_cv_lib_intl_strftime=no
  18992. fi
  18993. rm -rf conftest.dSYM
  18994. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18995. conftest$ac_exeext conftest.$ac_ext
  18996. LIBS=$ac_check_lib_save_LIBS
  18997. fi
  18998. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18999. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  19000. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  19001. cat >>confdefs.h <<\_ACEOF
  19002. #define HAVE_STRFTIME 1
  19003. _ACEOF
  19004. LIBS="-lintl $LIBS"
  19005. fi
  19006. fi
  19007. done
  19008. for ac_func in vprintf
  19009. do
  19010. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19011. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19012. $as_echo_n "checking for $ac_func... " >&6; }
  19013. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19014. $as_echo_n "(cached) " >&6
  19015. else
  19016. cat >conftest.$ac_ext <<_ACEOF
  19017. /* confdefs.h. */
  19018. _ACEOF
  19019. cat confdefs.h >>conftest.$ac_ext
  19020. cat >>conftest.$ac_ext <<_ACEOF
  19021. /* end confdefs.h. */
  19022. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19023. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19024. #define $ac_func innocuous_$ac_func
  19025. /* System header to define __stub macros and hopefully few prototypes,
  19026. which can conflict with char $ac_func (); below.
  19027. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19028. <limits.h> exists even on freestanding compilers. */
  19029. #ifdef __STDC__
  19030. # include <limits.h>
  19031. #else
  19032. # include <assert.h>
  19033. #endif
  19034. #undef $ac_func
  19035. /* Override any GCC internal prototype to avoid an error.
  19036. Use char because int might match the return type of a GCC
  19037. builtin and then its argument prototype would still apply. */
  19038. #ifdef __cplusplus
  19039. extern "C"
  19040. #endif
  19041. char $ac_func ();
  19042. /* The GNU C library defines this for functions which it implements
  19043. to always fail with ENOSYS. Some functions are actually named
  19044. something starting with __ and the normal name is an alias. */
  19045. #if defined __stub_$ac_func || defined __stub___$ac_func
  19046. choke me
  19047. #endif
  19048. int
  19049. main ()
  19050. {
  19051. return $ac_func ();
  19052. ;
  19053. return 0;
  19054. }
  19055. _ACEOF
  19056. rm -f conftest.$ac_objext conftest$ac_exeext
  19057. if { (ac_try="$ac_link"
  19058. case "(($ac_try" in
  19059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19060. *) ac_try_echo=$ac_try;;
  19061. esac
  19062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19063. $as_echo "$ac_try_echo") >&5
  19064. (eval "$ac_link") 2>conftest.er1
  19065. ac_status=$?
  19066. grep -v '^ *+' conftest.er1 >conftest.err
  19067. rm -f conftest.er1
  19068. cat conftest.err >&5
  19069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19070. (exit $ac_status); } && {
  19071. test -z "$ac_cxx_werror_flag" ||
  19072. test ! -s conftest.err
  19073. } && test -s conftest$ac_exeext && {
  19074. test "$cross_compiling" = yes ||
  19075. $as_test_x conftest$ac_exeext
  19076. }; then
  19077. eval "$as_ac_var=yes"
  19078. else
  19079. $as_echo "$as_me: failed program was:" >&5
  19080. sed 's/^/| /' conftest.$ac_ext >&5
  19081. eval "$as_ac_var=no"
  19082. fi
  19083. rm -rf conftest.dSYM
  19084. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19085. conftest$ac_exeext conftest.$ac_ext
  19086. fi
  19087. ac_res=`eval 'as_val=${'$as_ac_var'}
  19088. $as_echo "$as_val"'`
  19089. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19090. $as_echo "$ac_res" >&6; }
  19091. as_val=`eval 'as_val=${'$as_ac_var'}
  19092. $as_echo "$as_val"'`
  19093. if test "x$as_val" = x""yes; then
  19094. cat >>confdefs.h <<_ACEOF
  19095. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19096. _ACEOF
  19097. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  19098. $as_echo_n "checking for _doprnt... " >&6; }
  19099. if test "${ac_cv_func__doprnt+set}" = set; then
  19100. $as_echo_n "(cached) " >&6
  19101. else
  19102. cat >conftest.$ac_ext <<_ACEOF
  19103. /* confdefs.h. */
  19104. _ACEOF
  19105. cat confdefs.h >>conftest.$ac_ext
  19106. cat >>conftest.$ac_ext <<_ACEOF
  19107. /* end confdefs.h. */
  19108. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  19109. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19110. #define _doprnt innocuous__doprnt
  19111. /* System header to define __stub macros and hopefully few prototypes,
  19112. which can conflict with char _doprnt (); below.
  19113. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19114. <limits.h> exists even on freestanding compilers. */
  19115. #ifdef __STDC__
  19116. # include <limits.h>
  19117. #else
  19118. # include <assert.h>
  19119. #endif
  19120. #undef _doprnt
  19121. /* Override any GCC internal prototype to avoid an error.
  19122. Use char because int might match the return type of a GCC
  19123. builtin and then its argument prototype would still apply. */
  19124. #ifdef __cplusplus
  19125. extern "C"
  19126. #endif
  19127. char _doprnt ();
  19128. /* The GNU C library defines this for functions which it implements
  19129. to always fail with ENOSYS. Some functions are actually named
  19130. something starting with __ and the normal name is an alias. */
  19131. #if defined __stub__doprnt || defined __stub____doprnt
  19132. choke me
  19133. #endif
  19134. int
  19135. main ()
  19136. {
  19137. return _doprnt ();
  19138. ;
  19139. return 0;
  19140. }
  19141. _ACEOF
  19142. rm -f conftest.$ac_objext conftest$ac_exeext
  19143. if { (ac_try="$ac_link"
  19144. case "(($ac_try" in
  19145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19146. *) ac_try_echo=$ac_try;;
  19147. esac
  19148. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19149. $as_echo "$ac_try_echo") >&5
  19150. (eval "$ac_link") 2>conftest.er1
  19151. ac_status=$?
  19152. grep -v '^ *+' conftest.er1 >conftest.err
  19153. rm -f conftest.er1
  19154. cat conftest.err >&5
  19155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19156. (exit $ac_status); } && {
  19157. test -z "$ac_cxx_werror_flag" ||
  19158. test ! -s conftest.err
  19159. } && test -s conftest$ac_exeext && {
  19160. test "$cross_compiling" = yes ||
  19161. $as_test_x conftest$ac_exeext
  19162. }; then
  19163. ac_cv_func__doprnt=yes
  19164. else
  19165. $as_echo "$as_me: failed program was:" >&5
  19166. sed 's/^/| /' conftest.$ac_ext >&5
  19167. ac_cv_func__doprnt=no
  19168. fi
  19169. rm -rf conftest.dSYM
  19170. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19171. conftest$ac_exeext conftest.$ac_ext
  19172. fi
  19173. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  19174. $as_echo "$ac_cv_func__doprnt" >&6; }
  19175. if test "x$ac_cv_func__doprnt" = x""yes; then
  19176. cat >>confdefs.h <<\_ACEOF
  19177. #define HAVE_DOPRNT 1
  19178. _ACEOF
  19179. fi
  19180. fi
  19181. done
  19182. for ac_func in __argz_count \
  19183. __argz_next \
  19184. __argz_stringify \
  19185. atexit \
  19186. daemon \
  19187. ftruncate \
  19188. getcwd \
  19189. gethostbyaddr \
  19190. gethostbyname \
  19191. getpagesize \
  19192. inet_ntoa \
  19193. memchr \
  19194. memmove \
  19195. mempcpy \
  19196. memset \
  19197. mkdir \
  19198. munmap \
  19199. nl_langinfo \
  19200. posix_memalign \
  19201. putenv \
  19202. rmdir \
  19203. select \
  19204. setlocale \
  19205. sleep \
  19206. socket \
  19207. stpcpy \
  19208. strcasecmp \
  19209. strchr \
  19210. strcspn \
  19211. strdup \
  19212. strerror \
  19213. strncasecmp \
  19214. strstr \
  19215. strtol \
  19216. strtoul \
  19217. strtoull \
  19218. tzset \
  19219. unsetenv \
  19220. usleep
  19221. do
  19222. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19223. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19224. $as_echo_n "checking for $ac_func... " >&6; }
  19225. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19226. $as_echo_n "(cached) " >&6
  19227. else
  19228. cat >conftest.$ac_ext <<_ACEOF
  19229. /* confdefs.h. */
  19230. _ACEOF
  19231. cat confdefs.h >>conftest.$ac_ext
  19232. cat >>conftest.$ac_ext <<_ACEOF
  19233. /* end confdefs.h. */
  19234. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19235. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19236. #define $ac_func innocuous_$ac_func
  19237. /* System header to define __stub macros and hopefully few prototypes,
  19238. which can conflict with char $ac_func (); below.
  19239. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19240. <limits.h> exists even on freestanding compilers. */
  19241. #ifdef __STDC__
  19242. # include <limits.h>
  19243. #else
  19244. # include <assert.h>
  19245. #endif
  19246. #undef $ac_func
  19247. /* Override any GCC internal prototype to avoid an error.
  19248. Use char because int might match the return type of a GCC
  19249. builtin and then its argument prototype would still apply. */
  19250. #ifdef __cplusplus
  19251. extern "C"
  19252. #endif
  19253. char $ac_func ();
  19254. /* The GNU C library defines this for functions which it implements
  19255. to always fail with ENOSYS. Some functions are actually named
  19256. something starting with __ and the normal name is an alias. */
  19257. #if defined __stub_$ac_func || defined __stub___$ac_func
  19258. choke me
  19259. #endif
  19260. int
  19261. main ()
  19262. {
  19263. return $ac_func ();
  19264. ;
  19265. return 0;
  19266. }
  19267. _ACEOF
  19268. rm -f conftest.$ac_objext conftest$ac_exeext
  19269. if { (ac_try="$ac_link"
  19270. case "(($ac_try" in
  19271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19272. *) ac_try_echo=$ac_try;;
  19273. esac
  19274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19275. $as_echo "$ac_try_echo") >&5
  19276. (eval "$ac_link") 2>conftest.er1
  19277. ac_status=$?
  19278. grep -v '^ *+' conftest.er1 >conftest.err
  19279. rm -f conftest.er1
  19280. cat conftest.err >&5
  19281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19282. (exit $ac_status); } && {
  19283. test -z "$ac_cxx_werror_flag" ||
  19284. test ! -s conftest.err
  19285. } && test -s conftest$ac_exeext && {
  19286. test "$cross_compiling" = yes ||
  19287. $as_test_x conftest$ac_exeext
  19288. }; then
  19289. eval "$as_ac_var=yes"
  19290. else
  19291. $as_echo "$as_me: failed program was:" >&5
  19292. sed 's/^/| /' conftest.$ac_ext >&5
  19293. eval "$as_ac_var=no"
  19294. fi
  19295. rm -rf conftest.dSYM
  19296. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19297. conftest$ac_exeext conftest.$ac_ext
  19298. fi
  19299. ac_res=`eval 'as_val=${'$as_ac_var'}
  19300. $as_echo "$as_val"'`
  19301. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19302. $as_echo "$ac_res" >&6; }
  19303. as_val=`eval 'as_val=${'$as_ac_var'}
  19304. $as_echo "$as_val"'`
  19305. if test "x$as_val" = x""yes; then
  19306. cat >>confdefs.h <<_ACEOF
  19307. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19308. _ACEOF
  19309. fi
  19310. done
  19311. if test "x$enable_epoll" = "xyes"; then
  19312. for ac_func in epoll_create
  19313. do
  19314. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19315. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19316. $as_echo_n "checking for $ac_func... " >&6; }
  19317. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19318. $as_echo_n "(cached) " >&6
  19319. else
  19320. cat >conftest.$ac_ext <<_ACEOF
  19321. /* confdefs.h. */
  19322. _ACEOF
  19323. cat confdefs.h >>conftest.$ac_ext
  19324. cat >>conftest.$ac_ext <<_ACEOF
  19325. /* end confdefs.h. */
  19326. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19327. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19328. #define $ac_func innocuous_$ac_func
  19329. /* System header to define __stub macros and hopefully few prototypes,
  19330. which can conflict with char $ac_func (); below.
  19331. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19332. <limits.h> exists even on freestanding compilers. */
  19333. #ifdef __STDC__
  19334. # include <limits.h>
  19335. #else
  19336. # include <assert.h>
  19337. #endif
  19338. #undef $ac_func
  19339. /* Override any GCC internal prototype to avoid an error.
  19340. Use char because int might match the return type of a GCC
  19341. builtin and then its argument prototype would still apply. */
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. #endif
  19345. char $ac_func ();
  19346. /* The GNU C library defines this for functions which it implements
  19347. to always fail with ENOSYS. Some functions are actually named
  19348. something starting with __ and the normal name is an alias. */
  19349. #if defined __stub_$ac_func || defined __stub___$ac_func
  19350. choke me
  19351. #endif
  19352. int
  19353. main ()
  19354. {
  19355. return $ac_func ();
  19356. ;
  19357. return 0;
  19358. }
  19359. _ACEOF
  19360. rm -f conftest.$ac_objext conftest$ac_exeext
  19361. if { (ac_try="$ac_link"
  19362. case "(($ac_try" in
  19363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19364. *) ac_try_echo=$ac_try;;
  19365. esac
  19366. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19367. $as_echo "$ac_try_echo") >&5
  19368. (eval "$ac_link") 2>conftest.er1
  19369. ac_status=$?
  19370. grep -v '^ *+' conftest.er1 >conftest.err
  19371. rm -f conftest.er1
  19372. cat conftest.err >&5
  19373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19374. (exit $ac_status); } && {
  19375. test -z "$ac_cxx_werror_flag" ||
  19376. test ! -s conftest.err
  19377. } && test -s conftest$ac_exeext && {
  19378. test "$cross_compiling" = yes ||
  19379. $as_test_x conftest$ac_exeext
  19380. }; then
  19381. eval "$as_ac_var=yes"
  19382. else
  19383. $as_echo "$as_me: failed program was:" >&5
  19384. sed 's/^/| /' conftest.$ac_ext >&5
  19385. eval "$as_ac_var=no"
  19386. fi
  19387. rm -rf conftest.dSYM
  19388. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19389. conftest$ac_exeext conftest.$ac_ext
  19390. fi
  19391. ac_res=`eval 'as_val=${'$as_ac_var'}
  19392. $as_echo "$as_val"'`
  19393. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19394. $as_echo "$ac_res" >&6; }
  19395. as_val=`eval 'as_val=${'$as_ac_var'}
  19396. $as_echo "$as_val"'`
  19397. if test "x$as_val" = x""yes; then
  19398. cat >>confdefs.h <<_ACEOF
  19399. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19400. _ACEOF
  19401. have_epoll=yes
  19402. fi
  19403. done
  19404. if test "x$have_epoll" = "xyes"; then
  19405. cat >>confdefs.h <<\_ACEOF
  19406. #define HAVE_EPOLL 1
  19407. _ACEOF
  19408. fi
  19409. fi
  19410. if test "x$have_epoll" = "xyes"; then
  19411. HAVE_EPOLL_TRUE=
  19412. HAVE_EPOLL_FALSE='#'
  19413. else
  19414. HAVE_EPOLL_TRUE='#'
  19415. HAVE_EPOLL_FALSE=
  19416. fi
  19417. for ac_func in posix_fallocate
  19418. do
  19419. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19420. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19421. $as_echo_n "checking for $ac_func... " >&6; }
  19422. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19423. $as_echo_n "(cached) " >&6
  19424. else
  19425. cat >conftest.$ac_ext <<_ACEOF
  19426. /* confdefs.h. */
  19427. _ACEOF
  19428. cat confdefs.h >>conftest.$ac_ext
  19429. cat >>conftest.$ac_ext <<_ACEOF
  19430. /* end confdefs.h. */
  19431. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19432. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19433. #define $ac_func innocuous_$ac_func
  19434. /* System header to define __stub macros and hopefully few prototypes,
  19435. which can conflict with char $ac_func (); below.
  19436. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19437. <limits.h> exists even on freestanding compilers. */
  19438. #ifdef __STDC__
  19439. # include <limits.h>
  19440. #else
  19441. # include <assert.h>
  19442. #endif
  19443. #undef $ac_func
  19444. /* Override any GCC internal prototype to avoid an error.
  19445. Use char because int might match the return type of a GCC
  19446. builtin and then its argument prototype would still apply. */
  19447. #ifdef __cplusplus
  19448. extern "C"
  19449. #endif
  19450. char $ac_func ();
  19451. /* The GNU C library defines this for functions which it implements
  19452. to always fail with ENOSYS. Some functions are actually named
  19453. something starting with __ and the normal name is an alias. */
  19454. #if defined __stub_$ac_func || defined __stub___$ac_func
  19455. choke me
  19456. #endif
  19457. int
  19458. main ()
  19459. {
  19460. return $ac_func ();
  19461. ;
  19462. return 0;
  19463. }
  19464. _ACEOF
  19465. rm -f conftest.$ac_objext conftest$ac_exeext
  19466. if { (ac_try="$ac_link"
  19467. case "(($ac_try" in
  19468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19469. *) ac_try_echo=$ac_try;;
  19470. esac
  19471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19472. $as_echo "$ac_try_echo") >&5
  19473. (eval "$ac_link") 2>conftest.er1
  19474. ac_status=$?
  19475. grep -v '^ *+' conftest.er1 >conftest.err
  19476. rm -f conftest.er1
  19477. cat conftest.err >&5
  19478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19479. (exit $ac_status); } && {
  19480. test -z "$ac_cxx_werror_flag" ||
  19481. test ! -s conftest.err
  19482. } && test -s conftest$ac_exeext && {
  19483. test "$cross_compiling" = yes ||
  19484. $as_test_x conftest$ac_exeext
  19485. }; then
  19486. eval "$as_ac_var=yes"
  19487. else
  19488. $as_echo "$as_me: failed program was:" >&5
  19489. sed 's/^/| /' conftest.$ac_ext >&5
  19490. eval "$as_ac_var=no"
  19491. fi
  19492. rm -rf conftest.dSYM
  19493. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19494. conftest$ac_exeext conftest.$ac_ext
  19495. fi
  19496. ac_res=`eval 'as_val=${'$as_ac_var'}
  19497. $as_echo "$as_val"'`
  19498. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19499. $as_echo "$ac_res" >&6; }
  19500. as_val=`eval 'as_val=${'$as_ac_var'}
  19501. $as_echo "$as_val"'`
  19502. if test "x$as_val" = x""yes; then
  19503. cat >>confdefs.h <<_ACEOF
  19504. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19505. _ACEOF
  19506. have_posix_fallocate=yes
  19507. fi
  19508. done
  19509. if test "x$have_posix_fallocate" = "xyes"; then
  19510. HAVE_POSIX_FALLOCATE_TRUE=
  19511. HAVE_POSIX_FALLOCATE_FALSE='#'
  19512. else
  19513. HAVE_POSIX_FALLOCATE_TRUE='#'
  19514. HAVE_POSIX_FALLOCATE_FALSE=
  19515. fi
  19516. for ac_func in asctime_r
  19517. do
  19518. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19519. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19520. $as_echo_n "checking for $ac_func... " >&6; }
  19521. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19522. $as_echo_n "(cached) " >&6
  19523. else
  19524. cat >conftest.$ac_ext <<_ACEOF
  19525. /* confdefs.h. */
  19526. _ACEOF
  19527. cat confdefs.h >>conftest.$ac_ext
  19528. cat >>conftest.$ac_ext <<_ACEOF
  19529. /* end confdefs.h. */
  19530. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19531. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19532. #define $ac_func innocuous_$ac_func
  19533. /* System header to define __stub macros and hopefully few prototypes,
  19534. which can conflict with char $ac_func (); below.
  19535. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19536. <limits.h> exists even on freestanding compilers. */
  19537. #ifdef __STDC__
  19538. # include <limits.h>
  19539. #else
  19540. # include <assert.h>
  19541. #endif
  19542. #undef $ac_func
  19543. /* Override any GCC internal prototype to avoid an error.
  19544. Use char because int might match the return type of a GCC
  19545. builtin and then its argument prototype would still apply. */
  19546. #ifdef __cplusplus
  19547. extern "C"
  19548. #endif
  19549. char $ac_func ();
  19550. /* The GNU C library defines this for functions which it implements
  19551. to always fail with ENOSYS. Some functions are actually named
  19552. something starting with __ and the normal name is an alias. */
  19553. #if defined __stub_$ac_func || defined __stub___$ac_func
  19554. choke me
  19555. #endif
  19556. int
  19557. main ()
  19558. {
  19559. return $ac_func ();
  19560. ;
  19561. return 0;
  19562. }
  19563. _ACEOF
  19564. rm -f conftest.$ac_objext conftest$ac_exeext
  19565. if { (ac_try="$ac_link"
  19566. case "(($ac_try" in
  19567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19568. *) ac_try_echo=$ac_try;;
  19569. esac
  19570. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19571. $as_echo "$ac_try_echo") >&5
  19572. (eval "$ac_link") 2>conftest.er1
  19573. ac_status=$?
  19574. grep -v '^ *+' conftest.er1 >conftest.err
  19575. rm -f conftest.er1
  19576. cat conftest.err >&5
  19577. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19578. (exit $ac_status); } && {
  19579. test -z "$ac_cxx_werror_flag" ||
  19580. test ! -s conftest.err
  19581. } && test -s conftest$ac_exeext && {
  19582. test "$cross_compiling" = yes ||
  19583. $as_test_x conftest$ac_exeext
  19584. }; then
  19585. eval "$as_ac_var=yes"
  19586. else
  19587. $as_echo "$as_me: failed program was:" >&5
  19588. sed 's/^/| /' conftest.$ac_ext >&5
  19589. eval "$as_ac_var=no"
  19590. fi
  19591. rm -rf conftest.dSYM
  19592. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19593. conftest$ac_exeext conftest.$ac_ext
  19594. fi
  19595. ac_res=`eval 'as_val=${'$as_ac_var'}
  19596. $as_echo "$as_val"'`
  19597. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19598. $as_echo "$ac_res" >&6; }
  19599. as_val=`eval 'as_val=${'$as_ac_var'}
  19600. $as_echo "$as_val"'`
  19601. if test "x$as_val" = x""yes; then
  19602. cat >>confdefs.h <<_ACEOF
  19603. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19604. _ACEOF
  19605. if true; then
  19606. HAVE_ASCTIME_R_TRUE=
  19607. HAVE_ASCTIME_R_FALSE='#'
  19608. else
  19609. HAVE_ASCTIME_R_TRUE='#'
  19610. HAVE_ASCTIME_R_FALSE=
  19611. fi
  19612. else
  19613. if false; then
  19614. HAVE_ASCTIME_R_TRUE=
  19615. HAVE_ASCTIME_R_FALSE='#'
  19616. else
  19617. HAVE_ASCTIME_R_TRUE='#'
  19618. HAVE_ASCTIME_R_FALSE=
  19619. fi
  19620. fi
  19621. done
  19622. for ac_func in basename
  19623. do
  19624. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19625. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19626. $as_echo_n "checking for $ac_func... " >&6; }
  19627. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19628. $as_echo_n "(cached) " >&6
  19629. else
  19630. cat >conftest.$ac_ext <<_ACEOF
  19631. /* confdefs.h. */
  19632. _ACEOF
  19633. cat confdefs.h >>conftest.$ac_ext
  19634. cat >>conftest.$ac_ext <<_ACEOF
  19635. /* end confdefs.h. */
  19636. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19638. #define $ac_func innocuous_$ac_func
  19639. /* System header to define __stub macros and hopefully few prototypes,
  19640. which can conflict with char $ac_func (); below.
  19641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19642. <limits.h> exists even on freestanding compilers. */
  19643. #ifdef __STDC__
  19644. # include <limits.h>
  19645. #else
  19646. # include <assert.h>
  19647. #endif
  19648. #undef $ac_func
  19649. /* Override any GCC internal prototype to avoid an error.
  19650. Use char because int might match the return type of a GCC
  19651. builtin and then its argument prototype would still apply. */
  19652. #ifdef __cplusplus
  19653. extern "C"
  19654. #endif
  19655. char $ac_func ();
  19656. /* The GNU C library defines this for functions which it implements
  19657. to always fail with ENOSYS. Some functions are actually named
  19658. something starting with __ and the normal name is an alias. */
  19659. #if defined __stub_$ac_func || defined __stub___$ac_func
  19660. choke me
  19661. #endif
  19662. int
  19663. main ()
  19664. {
  19665. return $ac_func ();
  19666. ;
  19667. return 0;
  19668. }
  19669. _ACEOF
  19670. rm -f conftest.$ac_objext conftest$ac_exeext
  19671. if { (ac_try="$ac_link"
  19672. case "(($ac_try" in
  19673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19674. *) ac_try_echo=$ac_try;;
  19675. esac
  19676. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19677. $as_echo "$ac_try_echo") >&5
  19678. (eval "$ac_link") 2>conftest.er1
  19679. ac_status=$?
  19680. grep -v '^ *+' conftest.er1 >conftest.err
  19681. rm -f conftest.er1
  19682. cat conftest.err >&5
  19683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19684. (exit $ac_status); } && {
  19685. test -z "$ac_cxx_werror_flag" ||
  19686. test ! -s conftest.err
  19687. } && test -s conftest$ac_exeext && {
  19688. test "$cross_compiling" = yes ||
  19689. $as_test_x conftest$ac_exeext
  19690. }; then
  19691. eval "$as_ac_var=yes"
  19692. else
  19693. $as_echo "$as_me: failed program was:" >&5
  19694. sed 's/^/| /' conftest.$ac_ext >&5
  19695. eval "$as_ac_var=no"
  19696. fi
  19697. rm -rf conftest.dSYM
  19698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19699. conftest$ac_exeext conftest.$ac_ext
  19700. fi
  19701. ac_res=`eval 'as_val=${'$as_ac_var'}
  19702. $as_echo "$as_val"'`
  19703. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19704. $as_echo "$ac_res" >&6; }
  19705. as_val=`eval 'as_val=${'$as_ac_var'}
  19706. $as_echo "$as_val"'`
  19707. if test "x$as_val" = x""yes; then
  19708. cat >>confdefs.h <<_ACEOF
  19709. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19710. _ACEOF
  19711. if true; then
  19712. HAVE_BASENAME_TRUE=
  19713. HAVE_BASENAME_FALSE='#'
  19714. else
  19715. HAVE_BASENAME_TRUE='#'
  19716. HAVE_BASENAME_FALSE=
  19717. fi
  19718. else
  19719. if false; then
  19720. HAVE_BASENAME_TRUE=
  19721. HAVE_BASENAME_FALSE='#'
  19722. else
  19723. HAVE_BASENAME_TRUE='#'
  19724. HAVE_BASENAME_FALSE=
  19725. fi
  19726. fi
  19727. done
  19728. for ac_func in gai_strerror
  19729. do
  19730. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19731. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19732. $as_echo_n "checking for $ac_func... " >&6; }
  19733. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19734. $as_echo_n "(cached) " >&6
  19735. else
  19736. cat >conftest.$ac_ext <<_ACEOF
  19737. /* confdefs.h. */
  19738. _ACEOF
  19739. cat confdefs.h >>conftest.$ac_ext
  19740. cat >>conftest.$ac_ext <<_ACEOF
  19741. /* end confdefs.h. */
  19742. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19743. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19744. #define $ac_func innocuous_$ac_func
  19745. /* System header to define __stub macros and hopefully few prototypes,
  19746. which can conflict with char $ac_func (); below.
  19747. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19748. <limits.h> exists even on freestanding compilers. */
  19749. #ifdef __STDC__
  19750. # include <limits.h>
  19751. #else
  19752. # include <assert.h>
  19753. #endif
  19754. #undef $ac_func
  19755. /* Override any GCC internal prototype to avoid an error.
  19756. Use char because int might match the return type of a GCC
  19757. builtin and then its argument prototype would still apply. */
  19758. #ifdef __cplusplus
  19759. extern "C"
  19760. #endif
  19761. char $ac_func ();
  19762. /* The GNU C library defines this for functions which it implements
  19763. to always fail with ENOSYS. Some functions are actually named
  19764. something starting with __ and the normal name is an alias. */
  19765. #if defined __stub_$ac_func || defined __stub___$ac_func
  19766. choke me
  19767. #endif
  19768. int
  19769. main ()
  19770. {
  19771. return $ac_func ();
  19772. ;
  19773. return 0;
  19774. }
  19775. _ACEOF
  19776. rm -f conftest.$ac_objext conftest$ac_exeext
  19777. if { (ac_try="$ac_link"
  19778. case "(($ac_try" in
  19779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19780. *) ac_try_echo=$ac_try;;
  19781. esac
  19782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19783. $as_echo "$ac_try_echo") >&5
  19784. (eval "$ac_link") 2>conftest.er1
  19785. ac_status=$?
  19786. grep -v '^ *+' conftest.er1 >conftest.err
  19787. rm -f conftest.er1
  19788. cat conftest.err >&5
  19789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19790. (exit $ac_status); } && {
  19791. test -z "$ac_cxx_werror_flag" ||
  19792. test ! -s conftest.err
  19793. } && test -s conftest$ac_exeext && {
  19794. test "$cross_compiling" = yes ||
  19795. $as_test_x conftest$ac_exeext
  19796. }; then
  19797. eval "$as_ac_var=yes"
  19798. else
  19799. $as_echo "$as_me: failed program was:" >&5
  19800. sed 's/^/| /' conftest.$ac_ext >&5
  19801. eval "$as_ac_var=no"
  19802. fi
  19803. rm -rf conftest.dSYM
  19804. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19805. conftest$ac_exeext conftest.$ac_ext
  19806. fi
  19807. ac_res=`eval 'as_val=${'$as_ac_var'}
  19808. $as_echo "$as_val"'`
  19809. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19810. $as_echo "$ac_res" >&6; }
  19811. as_val=`eval 'as_val=${'$as_ac_var'}
  19812. $as_echo "$as_val"'`
  19813. if test "x$as_val" = x""yes; then
  19814. cat >>confdefs.h <<_ACEOF
  19815. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19816. _ACEOF
  19817. if true; then
  19818. HAVE_GAI_STRERROR_TRUE=
  19819. HAVE_GAI_STRERROR_FALSE='#'
  19820. else
  19821. HAVE_GAI_STRERROR_TRUE='#'
  19822. HAVE_GAI_STRERROR_FALSE=
  19823. fi
  19824. else
  19825. if false; then
  19826. HAVE_GAI_STRERROR_TRUE=
  19827. HAVE_GAI_STRERROR_FALSE='#'
  19828. else
  19829. HAVE_GAI_STRERROR_TRUE='#'
  19830. HAVE_GAI_STRERROR_FALSE=
  19831. fi
  19832. fi
  19833. done
  19834. for ac_func in getaddrinfo
  19835. do
  19836. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19837. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19838. $as_echo_n "checking for $ac_func... " >&6; }
  19839. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19840. $as_echo_n "(cached) " >&6
  19841. else
  19842. cat >conftest.$ac_ext <<_ACEOF
  19843. /* confdefs.h. */
  19844. _ACEOF
  19845. cat confdefs.h >>conftest.$ac_ext
  19846. cat >>conftest.$ac_ext <<_ACEOF
  19847. /* end confdefs.h. */
  19848. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19849. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19850. #define $ac_func innocuous_$ac_func
  19851. /* System header to define __stub macros and hopefully few prototypes,
  19852. which can conflict with char $ac_func (); below.
  19853. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19854. <limits.h> exists even on freestanding compilers. */
  19855. #ifdef __STDC__
  19856. # include <limits.h>
  19857. #else
  19858. # include <assert.h>
  19859. #endif
  19860. #undef $ac_func
  19861. /* Override any GCC internal prototype to avoid an error.
  19862. Use char because int might match the return type of a GCC
  19863. builtin and then its argument prototype would still apply. */
  19864. #ifdef __cplusplus
  19865. extern "C"
  19866. #endif
  19867. char $ac_func ();
  19868. /* The GNU C library defines this for functions which it implements
  19869. to always fail with ENOSYS. Some functions are actually named
  19870. something starting with __ and the normal name is an alias. */
  19871. #if defined __stub_$ac_func || defined __stub___$ac_func
  19872. choke me
  19873. #endif
  19874. int
  19875. main ()
  19876. {
  19877. return $ac_func ();
  19878. ;
  19879. return 0;
  19880. }
  19881. _ACEOF
  19882. rm -f conftest.$ac_objext conftest$ac_exeext
  19883. if { (ac_try="$ac_link"
  19884. case "(($ac_try" in
  19885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19886. *) ac_try_echo=$ac_try;;
  19887. esac
  19888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19889. $as_echo "$ac_try_echo") >&5
  19890. (eval "$ac_link") 2>conftest.er1
  19891. ac_status=$?
  19892. grep -v '^ *+' conftest.er1 >conftest.err
  19893. rm -f conftest.er1
  19894. cat conftest.err >&5
  19895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19896. (exit $ac_status); } && {
  19897. test -z "$ac_cxx_werror_flag" ||
  19898. test ! -s conftest.err
  19899. } && test -s conftest$ac_exeext && {
  19900. test "$cross_compiling" = yes ||
  19901. $as_test_x conftest$ac_exeext
  19902. }; then
  19903. eval "$as_ac_var=yes"
  19904. else
  19905. $as_echo "$as_me: failed program was:" >&5
  19906. sed 's/^/| /' conftest.$ac_ext >&5
  19907. eval "$as_ac_var=no"
  19908. fi
  19909. rm -rf conftest.dSYM
  19910. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19911. conftest$ac_exeext conftest.$ac_ext
  19912. fi
  19913. ac_res=`eval 'as_val=${'$as_ac_var'}
  19914. $as_echo "$as_val"'`
  19915. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19916. $as_echo "$ac_res" >&6; }
  19917. as_val=`eval 'as_val=${'$as_ac_var'}
  19918. $as_echo "$as_val"'`
  19919. if test "x$as_val" = x""yes; then
  19920. cat >>confdefs.h <<_ACEOF
  19921. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19922. _ACEOF
  19923. if true; then
  19924. HAVE_GETADDRINFO_TRUE=
  19925. HAVE_GETADDRINFO_FALSE='#'
  19926. else
  19927. HAVE_GETADDRINFO_TRUE='#'
  19928. HAVE_GETADDRINFO_FALSE=
  19929. fi
  19930. else
  19931. if false; then
  19932. HAVE_GETADDRINFO_TRUE=
  19933. HAVE_GETADDRINFO_FALSE='#'
  19934. else
  19935. HAVE_GETADDRINFO_TRUE='#'
  19936. HAVE_GETADDRINFO_FALSE=
  19937. fi
  19938. fi
  19939. done
  19940. for ac_func in gettimeofday
  19941. do
  19942. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19943. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19944. $as_echo_n "checking for $ac_func... " >&6; }
  19945. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19946. $as_echo_n "(cached) " >&6
  19947. else
  19948. cat >conftest.$ac_ext <<_ACEOF
  19949. /* confdefs.h. */
  19950. _ACEOF
  19951. cat confdefs.h >>conftest.$ac_ext
  19952. cat >>conftest.$ac_ext <<_ACEOF
  19953. /* end confdefs.h. */
  19954. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19955. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19956. #define $ac_func innocuous_$ac_func
  19957. /* System header to define __stub macros and hopefully few prototypes,
  19958. which can conflict with char $ac_func (); below.
  19959. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19960. <limits.h> exists even on freestanding compilers. */
  19961. #ifdef __STDC__
  19962. # include <limits.h>
  19963. #else
  19964. # include <assert.h>
  19965. #endif
  19966. #undef $ac_func
  19967. /* Override any GCC internal prototype to avoid an error.
  19968. Use char because int might match the return type of a GCC
  19969. builtin and then its argument prototype would still apply. */
  19970. #ifdef __cplusplus
  19971. extern "C"
  19972. #endif
  19973. char $ac_func ();
  19974. /* The GNU C library defines this for functions which it implements
  19975. to always fail with ENOSYS. Some functions are actually named
  19976. something starting with __ and the normal name is an alias. */
  19977. #if defined __stub_$ac_func || defined __stub___$ac_func
  19978. choke me
  19979. #endif
  19980. int
  19981. main ()
  19982. {
  19983. return $ac_func ();
  19984. ;
  19985. return 0;
  19986. }
  19987. _ACEOF
  19988. rm -f conftest.$ac_objext conftest$ac_exeext
  19989. if { (ac_try="$ac_link"
  19990. case "(($ac_try" in
  19991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19992. *) ac_try_echo=$ac_try;;
  19993. esac
  19994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19995. $as_echo "$ac_try_echo") >&5
  19996. (eval "$ac_link") 2>conftest.er1
  19997. ac_status=$?
  19998. grep -v '^ *+' conftest.er1 >conftest.err
  19999. rm -f conftest.er1
  20000. cat conftest.err >&5
  20001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20002. (exit $ac_status); } && {
  20003. test -z "$ac_cxx_werror_flag" ||
  20004. test ! -s conftest.err
  20005. } && test -s conftest$ac_exeext && {
  20006. test "$cross_compiling" = yes ||
  20007. $as_test_x conftest$ac_exeext
  20008. }; then
  20009. eval "$as_ac_var=yes"
  20010. else
  20011. $as_echo "$as_me: failed program was:" >&5
  20012. sed 's/^/| /' conftest.$ac_ext >&5
  20013. eval "$as_ac_var=no"
  20014. fi
  20015. rm -rf conftest.dSYM
  20016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20017. conftest$ac_exeext conftest.$ac_ext
  20018. fi
  20019. ac_res=`eval 'as_val=${'$as_ac_var'}
  20020. $as_echo "$as_val"'`
  20021. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20022. $as_echo "$ac_res" >&6; }
  20023. as_val=`eval 'as_val=${'$as_ac_var'}
  20024. $as_echo "$as_val"'`
  20025. if test "x$as_val" = x""yes; then
  20026. cat >>confdefs.h <<_ACEOF
  20027. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20028. _ACEOF
  20029. if true; then
  20030. HAVE_GETTIMEOFDAY_TRUE=
  20031. HAVE_GETTIMEOFDAY_FALSE='#'
  20032. else
  20033. HAVE_GETTIMEOFDAY_TRUE='#'
  20034. HAVE_GETTIMEOFDAY_FALSE=
  20035. fi
  20036. else
  20037. if false; then
  20038. HAVE_GETTIMEOFDAY_TRUE=
  20039. HAVE_GETTIMEOFDAY_FALSE='#'
  20040. else
  20041. HAVE_GETTIMEOFDAY_TRUE='#'
  20042. HAVE_GETTIMEOFDAY_FALSE=
  20043. fi
  20044. fi
  20045. done
  20046. for ac_func in inet_aton
  20047. do
  20048. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20049. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20050. $as_echo_n "checking for $ac_func... " >&6; }
  20051. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20052. $as_echo_n "(cached) " >&6
  20053. else
  20054. cat >conftest.$ac_ext <<_ACEOF
  20055. /* confdefs.h. */
  20056. _ACEOF
  20057. cat confdefs.h >>conftest.$ac_ext
  20058. cat >>conftest.$ac_ext <<_ACEOF
  20059. /* end confdefs.h. */
  20060. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20061. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20062. #define $ac_func innocuous_$ac_func
  20063. /* System header to define __stub macros and hopefully few prototypes,
  20064. which can conflict with char $ac_func (); below.
  20065. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20066. <limits.h> exists even on freestanding compilers. */
  20067. #ifdef __STDC__
  20068. # include <limits.h>
  20069. #else
  20070. # include <assert.h>
  20071. #endif
  20072. #undef $ac_func
  20073. /* Override any GCC internal prototype to avoid an error.
  20074. Use char because int might match the return type of a GCC
  20075. builtin and then its argument prototype would still apply. */
  20076. #ifdef __cplusplus
  20077. extern "C"
  20078. #endif
  20079. char $ac_func ();
  20080. /* The GNU C library defines this for functions which it implements
  20081. to always fail with ENOSYS. Some functions are actually named
  20082. something starting with __ and the normal name is an alias. */
  20083. #if defined __stub_$ac_func || defined __stub___$ac_func
  20084. choke me
  20085. #endif
  20086. int
  20087. main ()
  20088. {
  20089. return $ac_func ();
  20090. ;
  20091. return 0;
  20092. }
  20093. _ACEOF
  20094. rm -f conftest.$ac_objext conftest$ac_exeext
  20095. if { (ac_try="$ac_link"
  20096. case "(($ac_try" in
  20097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20098. *) ac_try_echo=$ac_try;;
  20099. esac
  20100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20101. $as_echo "$ac_try_echo") >&5
  20102. (eval "$ac_link") 2>conftest.er1
  20103. ac_status=$?
  20104. grep -v '^ *+' conftest.er1 >conftest.err
  20105. rm -f conftest.er1
  20106. cat conftest.err >&5
  20107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20108. (exit $ac_status); } && {
  20109. test -z "$ac_cxx_werror_flag" ||
  20110. test ! -s conftest.err
  20111. } && test -s conftest$ac_exeext && {
  20112. test "$cross_compiling" = yes ||
  20113. $as_test_x conftest$ac_exeext
  20114. }; then
  20115. eval "$as_ac_var=yes"
  20116. else
  20117. $as_echo "$as_me: failed program was:" >&5
  20118. sed 's/^/| /' conftest.$ac_ext >&5
  20119. eval "$as_ac_var=no"
  20120. fi
  20121. rm -rf conftest.dSYM
  20122. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20123. conftest$ac_exeext conftest.$ac_ext
  20124. fi
  20125. ac_res=`eval 'as_val=${'$as_ac_var'}
  20126. $as_echo "$as_val"'`
  20127. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20128. $as_echo "$ac_res" >&6; }
  20129. as_val=`eval 'as_val=${'$as_ac_var'}
  20130. $as_echo "$as_val"'`
  20131. if test "x$as_val" = x""yes; then
  20132. cat >>confdefs.h <<_ACEOF
  20133. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20134. _ACEOF
  20135. if true; then
  20136. HAVE_INET_ATON_TRUE=
  20137. HAVE_INET_ATON_FALSE='#'
  20138. else
  20139. HAVE_INET_ATON_TRUE='#'
  20140. HAVE_INET_ATON_FALSE=
  20141. fi
  20142. else
  20143. if false; then
  20144. HAVE_INET_ATON_TRUE=
  20145. HAVE_INET_ATON_FALSE='#'
  20146. else
  20147. HAVE_INET_ATON_TRUE='#'
  20148. HAVE_INET_ATON_FALSE=
  20149. fi
  20150. fi
  20151. done
  20152. for ac_func in localtime_r
  20153. do
  20154. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20155. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20156. $as_echo_n "checking for $ac_func... " >&6; }
  20157. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20158. $as_echo_n "(cached) " >&6
  20159. else
  20160. cat >conftest.$ac_ext <<_ACEOF
  20161. /* confdefs.h. */
  20162. _ACEOF
  20163. cat confdefs.h >>conftest.$ac_ext
  20164. cat >>conftest.$ac_ext <<_ACEOF
  20165. /* end confdefs.h. */
  20166. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20168. #define $ac_func innocuous_$ac_func
  20169. /* System header to define __stub macros and hopefully few prototypes,
  20170. which can conflict with char $ac_func (); below.
  20171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20172. <limits.h> exists even on freestanding compilers. */
  20173. #ifdef __STDC__
  20174. # include <limits.h>
  20175. #else
  20176. # include <assert.h>
  20177. #endif
  20178. #undef $ac_func
  20179. /* Override any GCC internal prototype to avoid an error.
  20180. Use char because int might match the return type of a GCC
  20181. builtin and then its argument prototype would still apply. */
  20182. #ifdef __cplusplus
  20183. extern "C"
  20184. #endif
  20185. char $ac_func ();
  20186. /* The GNU C library defines this for functions which it implements
  20187. to always fail with ENOSYS. Some functions are actually named
  20188. something starting with __ and the normal name is an alias. */
  20189. #if defined __stub_$ac_func || defined __stub___$ac_func
  20190. choke me
  20191. #endif
  20192. int
  20193. main ()
  20194. {
  20195. return $ac_func ();
  20196. ;
  20197. return 0;
  20198. }
  20199. _ACEOF
  20200. rm -f conftest.$ac_objext conftest$ac_exeext
  20201. if { (ac_try="$ac_link"
  20202. case "(($ac_try" in
  20203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20204. *) ac_try_echo=$ac_try;;
  20205. esac
  20206. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20207. $as_echo "$ac_try_echo") >&5
  20208. (eval "$ac_link") 2>conftest.er1
  20209. ac_status=$?
  20210. grep -v '^ *+' conftest.er1 >conftest.err
  20211. rm -f conftest.er1
  20212. cat conftest.err >&5
  20213. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20214. (exit $ac_status); } && {
  20215. test -z "$ac_cxx_werror_flag" ||
  20216. test ! -s conftest.err
  20217. } && test -s conftest$ac_exeext && {
  20218. test "$cross_compiling" = yes ||
  20219. $as_test_x conftest$ac_exeext
  20220. }; then
  20221. eval "$as_ac_var=yes"
  20222. else
  20223. $as_echo "$as_me: failed program was:" >&5
  20224. sed 's/^/| /' conftest.$ac_ext >&5
  20225. eval "$as_ac_var=no"
  20226. fi
  20227. rm -rf conftest.dSYM
  20228. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20229. conftest$ac_exeext conftest.$ac_ext
  20230. fi
  20231. ac_res=`eval 'as_val=${'$as_ac_var'}
  20232. $as_echo "$as_val"'`
  20233. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20234. $as_echo "$ac_res" >&6; }
  20235. as_val=`eval 'as_val=${'$as_ac_var'}
  20236. $as_echo "$as_val"'`
  20237. if test "x$as_val" = x""yes; then
  20238. cat >>confdefs.h <<_ACEOF
  20239. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20240. _ACEOF
  20241. if true; then
  20242. HAVE_LOCALTIME_R_TRUE=
  20243. HAVE_LOCALTIME_R_FALSE='#'
  20244. else
  20245. HAVE_LOCALTIME_R_TRUE='#'
  20246. HAVE_LOCALTIME_R_FALSE=
  20247. fi
  20248. else
  20249. if false; then
  20250. HAVE_LOCALTIME_R_TRUE=
  20251. HAVE_LOCALTIME_R_FALSE='#'
  20252. else
  20253. HAVE_LOCALTIME_R_TRUE='#'
  20254. HAVE_LOCALTIME_R_FALSE=
  20255. fi
  20256. fi
  20257. done
  20258. for ac_func in strptime
  20259. do
  20260. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20261. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20262. $as_echo_n "checking for $ac_func... " >&6; }
  20263. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20264. $as_echo_n "(cached) " >&6
  20265. else
  20266. cat >conftest.$ac_ext <<_ACEOF
  20267. /* confdefs.h. */
  20268. _ACEOF
  20269. cat confdefs.h >>conftest.$ac_ext
  20270. cat >>conftest.$ac_ext <<_ACEOF
  20271. /* end confdefs.h. */
  20272. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20273. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20274. #define $ac_func innocuous_$ac_func
  20275. /* System header to define __stub macros and hopefully few prototypes,
  20276. which can conflict with char $ac_func (); below.
  20277. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20278. <limits.h> exists even on freestanding compilers. */
  20279. #ifdef __STDC__
  20280. # include <limits.h>
  20281. #else
  20282. # include <assert.h>
  20283. #endif
  20284. #undef $ac_func
  20285. /* Override any GCC internal prototype to avoid an error.
  20286. Use char because int might match the return type of a GCC
  20287. builtin and then its argument prototype would still apply. */
  20288. #ifdef __cplusplus
  20289. extern "C"
  20290. #endif
  20291. char $ac_func ();
  20292. /* The GNU C library defines this for functions which it implements
  20293. to always fail with ENOSYS. Some functions are actually named
  20294. something starting with __ and the normal name is an alias. */
  20295. #if defined __stub_$ac_func || defined __stub___$ac_func
  20296. choke me
  20297. #endif
  20298. int
  20299. main ()
  20300. {
  20301. return $ac_func ();
  20302. ;
  20303. return 0;
  20304. }
  20305. _ACEOF
  20306. rm -f conftest.$ac_objext conftest$ac_exeext
  20307. if { (ac_try="$ac_link"
  20308. case "(($ac_try" in
  20309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20310. *) ac_try_echo=$ac_try;;
  20311. esac
  20312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20313. $as_echo "$ac_try_echo") >&5
  20314. (eval "$ac_link") 2>conftest.er1
  20315. ac_status=$?
  20316. grep -v '^ *+' conftest.er1 >conftest.err
  20317. rm -f conftest.er1
  20318. cat conftest.err >&5
  20319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20320. (exit $ac_status); } && {
  20321. test -z "$ac_cxx_werror_flag" ||
  20322. test ! -s conftest.err
  20323. } && test -s conftest$ac_exeext && {
  20324. test "$cross_compiling" = yes ||
  20325. $as_test_x conftest$ac_exeext
  20326. }; then
  20327. eval "$as_ac_var=yes"
  20328. else
  20329. $as_echo "$as_me: failed program was:" >&5
  20330. sed 's/^/| /' conftest.$ac_ext >&5
  20331. eval "$as_ac_var=no"
  20332. fi
  20333. rm -rf conftest.dSYM
  20334. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20335. conftest$ac_exeext conftest.$ac_ext
  20336. fi
  20337. ac_res=`eval 'as_val=${'$as_ac_var'}
  20338. $as_echo "$as_val"'`
  20339. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20340. $as_echo "$ac_res" >&6; }
  20341. as_val=`eval 'as_val=${'$as_ac_var'}
  20342. $as_echo "$as_val"'`
  20343. if test "x$as_val" = x""yes; then
  20344. cat >>confdefs.h <<_ACEOF
  20345. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20346. _ACEOF
  20347. if true; then
  20348. HAVE_STRPTIME_TRUE=
  20349. HAVE_STRPTIME_FALSE='#'
  20350. else
  20351. HAVE_STRPTIME_TRUE='#'
  20352. HAVE_STRPTIME_FALSE=
  20353. fi
  20354. else
  20355. if false; then
  20356. HAVE_STRPTIME_TRUE=
  20357. HAVE_STRPTIME_FALSE='#'
  20358. else
  20359. HAVE_STRPTIME_TRUE='#'
  20360. HAVE_STRPTIME_FALSE=
  20361. fi
  20362. fi
  20363. done
  20364. for ac_func in timegm
  20365. do
  20366. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20367. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20368. $as_echo_n "checking for $ac_func... " >&6; }
  20369. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20370. $as_echo_n "(cached) " >&6
  20371. else
  20372. cat >conftest.$ac_ext <<_ACEOF
  20373. /* confdefs.h. */
  20374. _ACEOF
  20375. cat confdefs.h >>conftest.$ac_ext
  20376. cat >>conftest.$ac_ext <<_ACEOF
  20377. /* end confdefs.h. */
  20378. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20379. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20380. #define $ac_func innocuous_$ac_func
  20381. /* System header to define __stub macros and hopefully few prototypes,
  20382. which can conflict with char $ac_func (); below.
  20383. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20384. <limits.h> exists even on freestanding compilers. */
  20385. #ifdef __STDC__
  20386. # include <limits.h>
  20387. #else
  20388. # include <assert.h>
  20389. #endif
  20390. #undef $ac_func
  20391. /* Override any GCC internal prototype to avoid an error.
  20392. Use char because int might match the return type of a GCC
  20393. builtin and then its argument prototype would still apply. */
  20394. #ifdef __cplusplus
  20395. extern "C"
  20396. #endif
  20397. char $ac_func ();
  20398. /* The GNU C library defines this for functions which it implements
  20399. to always fail with ENOSYS. Some functions are actually named
  20400. something starting with __ and the normal name is an alias. */
  20401. #if defined __stub_$ac_func || defined __stub___$ac_func
  20402. choke me
  20403. #endif
  20404. int
  20405. main ()
  20406. {
  20407. return $ac_func ();
  20408. ;
  20409. return 0;
  20410. }
  20411. _ACEOF
  20412. rm -f conftest.$ac_objext conftest$ac_exeext
  20413. if { (ac_try="$ac_link"
  20414. case "(($ac_try" in
  20415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20416. *) ac_try_echo=$ac_try;;
  20417. esac
  20418. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20419. $as_echo "$ac_try_echo") >&5
  20420. (eval "$ac_link") 2>conftest.er1
  20421. ac_status=$?
  20422. grep -v '^ *+' conftest.er1 >conftest.err
  20423. rm -f conftest.er1
  20424. cat conftest.err >&5
  20425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20426. (exit $ac_status); } && {
  20427. test -z "$ac_cxx_werror_flag" ||
  20428. test ! -s conftest.err
  20429. } && test -s conftest$ac_exeext && {
  20430. test "$cross_compiling" = yes ||
  20431. $as_test_x conftest$ac_exeext
  20432. }; then
  20433. eval "$as_ac_var=yes"
  20434. else
  20435. $as_echo "$as_me: failed program was:" >&5
  20436. sed 's/^/| /' conftest.$ac_ext >&5
  20437. eval "$as_ac_var=no"
  20438. fi
  20439. rm -rf conftest.dSYM
  20440. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20441. conftest$ac_exeext conftest.$ac_ext
  20442. fi
  20443. ac_res=`eval 'as_val=${'$as_ac_var'}
  20444. $as_echo "$as_val"'`
  20445. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20446. $as_echo "$ac_res" >&6; }
  20447. as_val=`eval 'as_val=${'$as_ac_var'}
  20448. $as_echo "$as_val"'`
  20449. if test "x$as_val" = x""yes; then
  20450. cat >>confdefs.h <<_ACEOF
  20451. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20452. _ACEOF
  20453. if true; then
  20454. HAVE_TIMEGM_TRUE=
  20455. HAVE_TIMEGM_FALSE='#'
  20456. else
  20457. HAVE_TIMEGM_TRUE='#'
  20458. HAVE_TIMEGM_FALSE=
  20459. fi
  20460. else
  20461. if false; then
  20462. HAVE_TIMEGM_TRUE=
  20463. HAVE_TIMEGM_FALSE='#'
  20464. else
  20465. HAVE_TIMEGM_TRUE='#'
  20466. HAVE_TIMEGM_FALSE=
  20467. fi
  20468. fi
  20469. done
  20470. case "$target" in
  20471. *mingw*)
  20472. if true; then
  20473. HAVE_GETADDRINFO_TRUE=
  20474. HAVE_GETADDRINFO_FALSE='#'
  20475. else
  20476. HAVE_GETADDRINFO_TRUE='#'
  20477. HAVE_GETADDRINFO_FALSE=
  20478. fi
  20479. if false; then
  20480. HAVE_GAI_STRERROR_TRUE=
  20481. HAVE_GAI_STRERROR_FALSE='#'
  20482. else
  20483. HAVE_GAI_STRERROR_TRUE='#'
  20484. HAVE_GAI_STRERROR_FALSE=
  20485. fi
  20486. ;;
  20487. esac
  20488. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20489. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20490. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20491. $as_echo_n "(cached) " >&6
  20492. else
  20493. cat >conftest.$ac_ext <<_ACEOF
  20494. /* confdefs.h. */
  20495. _ACEOF
  20496. cat confdefs.h >>conftest.$ac_ext
  20497. cat >>conftest.$ac_ext <<_ACEOF
  20498. /* end confdefs.h. */
  20499. #include <netinet/in.h>
  20500. int
  20501. main ()
  20502. {
  20503. static struct sockaddr_in ac_aggr;
  20504. if (ac_aggr.sin_len)
  20505. return 0;
  20506. ;
  20507. return 0;
  20508. }
  20509. _ACEOF
  20510. rm -f conftest.$ac_objext
  20511. if { (ac_try="$ac_compile"
  20512. case "(($ac_try" in
  20513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20514. *) ac_try_echo=$ac_try;;
  20515. esac
  20516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20517. $as_echo "$ac_try_echo") >&5
  20518. (eval "$ac_compile") 2>conftest.er1
  20519. ac_status=$?
  20520. grep -v '^ *+' conftest.er1 >conftest.err
  20521. rm -f conftest.er1
  20522. cat conftest.err >&5
  20523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20524. (exit $ac_status); } && {
  20525. test -z "$ac_cxx_werror_flag" ||
  20526. test ! -s conftest.err
  20527. } && test -s conftest.$ac_objext; then
  20528. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20529. else
  20530. $as_echo "$as_me: failed program was:" >&5
  20531. sed 's/^/| /' conftest.$ac_ext >&5
  20532. cat >conftest.$ac_ext <<_ACEOF
  20533. /* confdefs.h. */
  20534. _ACEOF
  20535. cat confdefs.h >>conftest.$ac_ext
  20536. cat >>conftest.$ac_ext <<_ACEOF
  20537. /* end confdefs.h. */
  20538. #include <netinet/in.h>
  20539. int
  20540. main ()
  20541. {
  20542. static struct sockaddr_in ac_aggr;
  20543. if (sizeof ac_aggr.sin_len)
  20544. return 0;
  20545. ;
  20546. return 0;
  20547. }
  20548. _ACEOF
  20549. rm -f conftest.$ac_objext
  20550. if { (ac_try="$ac_compile"
  20551. case "(($ac_try" in
  20552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20553. *) ac_try_echo=$ac_try;;
  20554. esac
  20555. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20556. $as_echo "$ac_try_echo") >&5
  20557. (eval "$ac_compile") 2>conftest.er1
  20558. ac_status=$?
  20559. grep -v '^ *+' conftest.er1 >conftest.err
  20560. rm -f conftest.er1
  20561. cat conftest.err >&5
  20562. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20563. (exit $ac_status); } && {
  20564. test -z "$ac_cxx_werror_flag" ||
  20565. test ! -s conftest.err
  20566. } && test -s conftest.$ac_objext; then
  20567. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20568. else
  20569. $as_echo "$as_me: failed program was:" >&5
  20570. sed 's/^/| /' conftest.$ac_ext >&5
  20571. ac_cv_member_struct_sockaddr_in_sin_len=no
  20572. fi
  20573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20574. fi
  20575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20576. fi
  20577. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20578. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20579. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20580. cat >>confdefs.h <<\_ACEOF
  20581. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20582. _ACEOF
  20583. fi
  20584. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20585. cat >confcache <<\_ACEOF
  20586. # This file is a shell script that caches the results of configure
  20587. # tests run on this system so they can be shared between configure
  20588. # scripts and configure runs, see configure's option --config-cache.
  20589. # It is not useful on other systems. If it contains results you don't
  20590. # want to keep, you may remove or edit it.
  20591. #
  20592. # config.status only pays attention to the cache file if you give it
  20593. # the --recheck option to rerun configure.
  20594. #
  20595. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20596. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20597. # following values.
  20598. _ACEOF
  20599. # The following way of writing the cache mishandles newlines in values,
  20600. # but we know of no workaround that is simple, portable, and efficient.
  20601. # So, we kill variables containing newlines.
  20602. # Ultrix sh set writes to stderr and can't be redirected directly,
  20603. # and sets the high bit in the cache file unless we assign to the vars.
  20604. (
  20605. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20606. eval ac_val=\$$ac_var
  20607. case $ac_val in #(
  20608. *${as_nl}*)
  20609. case $ac_var in #(
  20610. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20611. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20612. esac
  20613. case $ac_var in #(
  20614. _ | IFS | as_nl) ;; #(
  20615. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20616. *) $as_unset $ac_var ;;
  20617. esac ;;
  20618. esac
  20619. done
  20620. (set) 2>&1 |
  20621. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20622. *${as_nl}ac_space=\ *)
  20623. # `set' does not quote correctly, so add quotes (double-quote
  20624. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20625. sed -n \
  20626. "s/'/'\\\\''/g;
  20627. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20628. ;; #(
  20629. *)
  20630. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20631. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20632. ;;
  20633. esac |
  20634. sort
  20635. ) |
  20636. sed '
  20637. /^ac_cv_env_/b end
  20638. t clear
  20639. :clear
  20640. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20641. t end
  20642. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20643. :end' >>confcache
  20644. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20645. if test -w "$cache_file"; then
  20646. test "x$cache_file" != "x/dev/null" &&
  20647. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20648. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20649. cat confcache >$cache_file
  20650. else
  20651. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20652. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20653. fi
  20654. fi
  20655. rm -f confcache
  20656. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20657. # Let make expand exec_prefix.
  20658. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20659. DEFS=-DHAVE_CONFIG_H
  20660. ac_libobjs=
  20661. ac_ltlibobjs=
  20662. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20663. # 1. Remove the extension, and $U if already installed.
  20664. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20665. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20666. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20667. # will be set to the directory where LIBOBJS objects are built.
  20668. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20669. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20670. done
  20671. LIBOBJS=$ac_libobjs
  20672. LTLIBOBJS=$ac_ltlibobjs
  20673. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20674. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20675. Usually this means the macro was only invoked conditionally." >&5
  20676. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20677. Usually this means the macro was only invoked conditionally." >&2;}
  20678. { (exit 1); exit 1; }; }
  20679. fi
  20680. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20681. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20682. Usually this means the macro was only invoked conditionally." >&5
  20683. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20684. Usually this means the macro was only invoked conditionally." >&2;}
  20685. { (exit 1); exit 1; }; }
  20686. fi
  20687. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20688. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20689. Usually this means the macro was only invoked conditionally." >&5
  20690. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20691. Usually this means the macro was only invoked conditionally." >&2;}
  20692. { (exit 1); exit 1; }; }
  20693. fi
  20694. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20695. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20696. Usually this means the macro was only invoked conditionally." >&5
  20697. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20698. Usually this means the macro was only invoked conditionally." >&2;}
  20699. { (exit 1); exit 1; }; }
  20700. fi
  20701. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20702. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20703. Usually this means the macro was only invoked conditionally." >&5
  20704. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20705. Usually this means the macro was only invoked conditionally." >&2;}
  20706. { (exit 1); exit 1; }; }
  20707. fi
  20708. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20709. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20710. Usually this means the macro was only invoked conditionally." >&5
  20711. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20712. Usually this means the macro was only invoked conditionally." >&2;}
  20713. { (exit 1); exit 1; }; }
  20714. fi
  20715. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20716. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20717. Usually this means the macro was only invoked conditionally." >&5
  20718. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20719. Usually this means the macro was only invoked conditionally." >&2;}
  20720. { (exit 1); exit 1; }; }
  20721. fi
  20722. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20723. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20724. Usually this means the macro was only invoked conditionally." >&5
  20725. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20726. Usually this means the macro was only invoked conditionally." >&2;}
  20727. { (exit 1); exit 1; }; }
  20728. fi
  20729. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20730. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20731. Usually this means the macro was only invoked conditionally." >&5
  20732. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20733. Usually this means the macro was only invoked conditionally." >&2;}
  20734. { (exit 1); exit 1; }; }
  20735. fi
  20736. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20737. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20738. Usually this means the macro was only invoked conditionally." >&5
  20739. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20740. Usually this means the macro was only invoked conditionally." >&2;}
  20741. { (exit 1); exit 1; }; }
  20742. fi
  20743. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20744. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20745. Usually this means the macro was only invoked conditionally." >&5
  20746. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20747. Usually this means the macro was only invoked conditionally." >&2;}
  20748. { (exit 1); exit 1; }; }
  20749. fi
  20750. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20751. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20752. Usually this means the macro was only invoked conditionally." >&5
  20753. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20754. Usually this means the macro was only invoked conditionally." >&2;}
  20755. { (exit 1); exit 1; }; }
  20756. fi
  20757. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20758. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20759. Usually this means the macro was only invoked conditionally." >&5
  20760. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20761. Usually this means the macro was only invoked conditionally." >&2;}
  20762. { (exit 1); exit 1; }; }
  20763. fi
  20764. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  20765. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20766. Usually this means the macro was only invoked conditionally." >&5
  20767. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20768. Usually this means the macro was only invoked conditionally." >&2;}
  20769. { (exit 1); exit 1; }; }
  20770. fi
  20771. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  20772. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20773. Usually this means the macro was only invoked conditionally." >&5
  20774. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20775. Usually this means the macro was only invoked conditionally." >&2;}
  20776. { (exit 1); exit 1; }; }
  20777. fi
  20778. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  20779. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20780. Usually this means the macro was only invoked conditionally." >&5
  20781. $as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20782. Usually this means the macro was only invoked conditionally." >&2;}
  20783. { (exit 1); exit 1; }; }
  20784. fi
  20785. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  20786. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
  20787. Usually this means the macro was only invoked conditionally." >&5
  20788. $as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
  20789. Usually this means the macro was only invoked conditionally." >&2;}
  20790. { (exit 1); exit 1; }; }
  20791. fi
  20792. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  20793. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20794. Usually this means the macro was only invoked conditionally." >&5
  20795. $as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20796. Usually this means the macro was only invoked conditionally." >&2;}
  20797. { (exit 1); exit 1; }; }
  20798. fi
  20799. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20800. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20801. Usually this means the macro was only invoked conditionally." >&5
  20802. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20803. Usually this means the macro was only invoked conditionally." >&2;}
  20804. { (exit 1); exit 1; }; }
  20805. fi
  20806. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20807. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20808. Usually this means the macro was only invoked conditionally." >&5
  20809. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20810. Usually this means the macro was only invoked conditionally." >&2;}
  20811. { (exit 1); exit 1; }; }
  20812. fi
  20813. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  20814. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  20815. Usually this means the macro was only invoked conditionally." >&5
  20816. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  20817. Usually this means the macro was only invoked conditionally." >&2;}
  20818. { (exit 1); exit 1; }; }
  20819. fi
  20820. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  20821. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  20822. Usually this means the macro was only invoked conditionally." >&5
  20823. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  20824. Usually this means the macro was only invoked conditionally." >&2;}
  20825. { (exit 1); exit 1; }; }
  20826. fi
  20827. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  20828. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  20829. Usually this means the macro was only invoked conditionally." >&5
  20830. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  20831. Usually this means the macro was only invoked conditionally." >&2;}
  20832. { (exit 1); exit 1; }; }
  20833. fi
  20834. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  20835. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20836. Usually this means the macro was only invoked conditionally." >&5
  20837. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20838. Usually this means the macro was only invoked conditionally." >&2;}
  20839. { (exit 1); exit 1; }; }
  20840. fi
  20841. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20842. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20843. Usually this means the macro was only invoked conditionally." >&5
  20844. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20845. Usually this means the macro was only invoked conditionally." >&2;}
  20846. { (exit 1); exit 1; }; }
  20847. fi
  20848. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20849. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20850. Usually this means the macro was only invoked conditionally." >&5
  20851. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20852. Usually this means the macro was only invoked conditionally." >&2;}
  20853. { (exit 1); exit 1; }; }
  20854. fi
  20855. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20856. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20857. Usually this means the macro was only invoked conditionally." >&5
  20858. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20859. Usually this means the macro was only invoked conditionally." >&2;}
  20860. { (exit 1); exit 1; }; }
  20861. fi
  20862. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20863. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20864. Usually this means the macro was only invoked conditionally." >&5
  20865. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20866. Usually this means the macro was only invoked conditionally." >&2;}
  20867. { (exit 1); exit 1; }; }
  20868. fi
  20869. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20870. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20871. Usually this means the macro was only invoked conditionally." >&5
  20872. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20873. Usually this means the macro was only invoked conditionally." >&2;}
  20874. { (exit 1); exit 1; }; }
  20875. fi
  20876. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20877. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20878. Usually this means the macro was only invoked conditionally." >&5
  20879. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20880. Usually this means the macro was only invoked conditionally." >&2;}
  20881. { (exit 1); exit 1; }; }
  20882. fi
  20883. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20884. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20885. Usually this means the macro was only invoked conditionally." >&5
  20886. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20887. Usually this means the macro was only invoked conditionally." >&2;}
  20888. { (exit 1); exit 1; }; }
  20889. fi
  20890. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20891. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20892. Usually this means the macro was only invoked conditionally." >&5
  20893. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20894. Usually this means the macro was only invoked conditionally." >&2;}
  20895. { (exit 1); exit 1; }; }
  20896. fi
  20897. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20898. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20899. Usually this means the macro was only invoked conditionally." >&5
  20900. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20901. Usually this means the macro was only invoked conditionally." >&2;}
  20902. { (exit 1); exit 1; }; }
  20903. fi
  20904. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20905. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20906. Usually this means the macro was only invoked conditionally." >&5
  20907. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20908. Usually this means the macro was only invoked conditionally." >&2;}
  20909. { (exit 1); exit 1; }; }
  20910. fi
  20911. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20912. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20913. Usually this means the macro was only invoked conditionally." >&5
  20914. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20915. Usually this means the macro was only invoked conditionally." >&2;}
  20916. { (exit 1); exit 1; }; }
  20917. fi
  20918. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20919. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20920. Usually this means the macro was only invoked conditionally." >&5
  20921. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20922. Usually this means the macro was only invoked conditionally." >&2;}
  20923. { (exit 1); exit 1; }; }
  20924. fi
  20925. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20926. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20927. Usually this means the macro was only invoked conditionally." >&5
  20928. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20929. Usually this means the macro was only invoked conditionally." >&2;}
  20930. { (exit 1); exit 1; }; }
  20931. fi
  20932. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20933. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20934. Usually this means the macro was only invoked conditionally." >&5
  20935. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20936. Usually this means the macro was only invoked conditionally." >&2;}
  20937. { (exit 1); exit 1; }; }
  20938. fi
  20939. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20940. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20941. Usually this means the macro was only invoked conditionally." >&5
  20942. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20943. Usually this means the macro was only invoked conditionally." >&2;}
  20944. { (exit 1); exit 1; }; }
  20945. fi
  20946. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20947. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20948. Usually this means the macro was only invoked conditionally." >&5
  20949. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20950. Usually this means the macro was only invoked conditionally." >&2;}
  20951. { (exit 1); exit 1; }; }
  20952. fi
  20953. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20954. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20955. Usually this means the macro was only invoked conditionally." >&5
  20956. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20957. Usually this means the macro was only invoked conditionally." >&2;}
  20958. { (exit 1); exit 1; }; }
  20959. fi
  20960. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20961. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20962. Usually this means the macro was only invoked conditionally." >&5
  20963. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20964. Usually this means the macro was only invoked conditionally." >&2;}
  20965. { (exit 1); exit 1; }; }
  20966. fi
  20967. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20968. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20969. Usually this means the macro was only invoked conditionally." >&5
  20970. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20971. Usually this means the macro was only invoked conditionally." >&2;}
  20972. { (exit 1); exit 1; }; }
  20973. fi
  20974. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20975. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20976. Usually this means the macro was only invoked conditionally." >&5
  20977. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20978. Usually this means the macro was only invoked conditionally." >&2;}
  20979. { (exit 1); exit 1; }; }
  20980. fi
  20981. : ${CONFIG_STATUS=./config.status}
  20982. ac_write_fail=0
  20983. ac_clean_files_save=$ac_clean_files
  20984. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20985. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20986. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20987. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20988. #! $SHELL
  20989. # Generated by $as_me.
  20990. # Run this file to recreate the current configuration.
  20991. # Compiler output produced by configure, useful for debugging
  20992. # configure, is in config.log if it exists.
  20993. debug=false
  20994. ac_cs_recheck=false
  20995. ac_cs_silent=false
  20996. SHELL=\${CONFIG_SHELL-$SHELL}
  20997. _ACEOF
  20998. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20999. ## --------------------- ##
  21000. ## M4sh Initialization. ##
  21001. ## --------------------- ##
  21002. # Be more Bourne compatible
  21003. DUALCASE=1; export DUALCASE # for MKS sh
  21004. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21005. emulate sh
  21006. NULLCMD=:
  21007. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21008. # is contrary to our usage. Disable this feature.
  21009. alias -g '${1+"$@"}'='"$@"'
  21010. setopt NO_GLOB_SUBST
  21011. else
  21012. case `(set -o) 2>/dev/null` in
  21013. *posix*) set -o posix ;;
  21014. esac
  21015. fi
  21016. # PATH needs CR
  21017. # Avoid depending upon Character Ranges.
  21018. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21019. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21020. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21021. as_cr_digits='0123456789'
  21022. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21023. as_nl='
  21024. '
  21025. export as_nl
  21026. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21027. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21028. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21029. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21030. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21031. as_echo='printf %s\n'
  21032. as_echo_n='printf %s'
  21033. else
  21034. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21035. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21036. as_echo_n='/usr/ucb/echo -n'
  21037. else
  21038. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21039. as_echo_n_body='eval
  21040. arg=$1;
  21041. case $arg in
  21042. *"$as_nl"*)
  21043. expr "X$arg" : "X\\(.*\\)$as_nl";
  21044. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21045. esac;
  21046. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21047. '
  21048. export as_echo_n_body
  21049. as_echo_n='sh -c $as_echo_n_body as_echo'
  21050. fi
  21051. export as_echo_body
  21052. as_echo='sh -c $as_echo_body as_echo'
  21053. fi
  21054. # The user is always right.
  21055. if test "${PATH_SEPARATOR+set}" != set; then
  21056. PATH_SEPARATOR=:
  21057. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21058. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21059. PATH_SEPARATOR=';'
  21060. }
  21061. fi
  21062. # Support unset when possible.
  21063. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21064. as_unset=unset
  21065. else
  21066. as_unset=false
  21067. fi
  21068. # IFS
  21069. # We need space, tab and new line, in precisely that order. Quoting is
  21070. # there to prevent editors from complaining about space-tab.
  21071. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21072. # splitting by setting IFS to empty value.)
  21073. IFS=" "" $as_nl"
  21074. # Find who we are. Look in the path if we contain no directory separator.
  21075. case $0 in
  21076. *[\\/]* ) as_myself=$0 ;;
  21077. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21078. for as_dir in $PATH
  21079. do
  21080. IFS=$as_save_IFS
  21081. test -z "$as_dir" && as_dir=.
  21082. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21083. done
  21084. IFS=$as_save_IFS
  21085. ;;
  21086. esac
  21087. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21088. # in which case we are not to be found in the path.
  21089. if test "x$as_myself" = x; then
  21090. as_myself=$0
  21091. fi
  21092. if test ! -f "$as_myself"; then
  21093. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21094. { (exit 1); exit 1; }
  21095. fi
  21096. # Work around bugs in pre-3.0 UWIN ksh.
  21097. for as_var in ENV MAIL MAILPATH
  21098. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21099. done
  21100. PS1='$ '
  21101. PS2='> '
  21102. PS4='+ '
  21103. # NLS nuisances.
  21104. LC_ALL=C
  21105. export LC_ALL
  21106. LANGUAGE=C
  21107. export LANGUAGE
  21108. # Required to use basename.
  21109. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21110. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21111. as_expr=expr
  21112. else
  21113. as_expr=false
  21114. fi
  21115. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21116. as_basename=basename
  21117. else
  21118. as_basename=false
  21119. fi
  21120. # Name of the executable.
  21121. as_me=`$as_basename -- "$0" ||
  21122. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21123. X"$0" : 'X\(//\)$' \| \
  21124. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21125. $as_echo X/"$0" |
  21126. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21127. s//\1/
  21128. q
  21129. }
  21130. /^X\/\(\/\/\)$/{
  21131. s//\1/
  21132. q
  21133. }
  21134. /^X\/\(\/\).*/{
  21135. s//\1/
  21136. q
  21137. }
  21138. s/.*/./; q'`
  21139. # CDPATH.
  21140. $as_unset CDPATH
  21141. as_lineno_1=$LINENO
  21142. as_lineno_2=$LINENO
  21143. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21144. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21145. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21146. # uniformly replaced by the line number. The first 'sed' inserts a
  21147. # line-number line after each line using $LINENO; the second 'sed'
  21148. # does the real work. The second script uses 'N' to pair each
  21149. # line-number line with the line containing $LINENO, and appends
  21150. # trailing '-' during substitution so that $LINENO is not a special
  21151. # case at line end.
  21152. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21153. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21154. # E. McMahon (1931-1989) for sed's syntax. :-)
  21155. sed -n '
  21156. p
  21157. /[$]LINENO/=
  21158. ' <$as_myself |
  21159. sed '
  21160. s/[$]LINENO.*/&-/
  21161. t lineno
  21162. b
  21163. :lineno
  21164. N
  21165. :loop
  21166. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21167. t loop
  21168. s/-\n.*//
  21169. ' >$as_me.lineno &&
  21170. chmod +x "$as_me.lineno" ||
  21171. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21172. { (exit 1); exit 1; }; }
  21173. # Don't try to exec as it changes $[0], causing all sort of problems
  21174. # (the dirname of $[0] is not the place where we might find the
  21175. # original and so on. Autoconf is especially sensitive to this).
  21176. . "./$as_me.lineno"
  21177. # Exit status is that of the last command.
  21178. exit
  21179. }
  21180. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21181. as_dirname=dirname
  21182. else
  21183. as_dirname=false
  21184. fi
  21185. ECHO_C= ECHO_N= ECHO_T=
  21186. case `echo -n x` in
  21187. -n*)
  21188. case `echo 'x\c'` in
  21189. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21190. *) ECHO_C='\c';;
  21191. esac;;
  21192. *)
  21193. ECHO_N='-n';;
  21194. esac
  21195. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21196. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21197. as_expr=expr
  21198. else
  21199. as_expr=false
  21200. fi
  21201. rm -f conf$$ conf$$.exe conf$$.file
  21202. if test -d conf$$.dir; then
  21203. rm -f conf$$.dir/conf$$.file
  21204. else
  21205. rm -f conf$$.dir
  21206. mkdir conf$$.dir 2>/dev/null
  21207. fi
  21208. if (echo >conf$$.file) 2>/dev/null; then
  21209. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21210. as_ln_s='ln -s'
  21211. # ... but there are two gotchas:
  21212. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21213. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21214. # In both cases, we have to default to `cp -p'.
  21215. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21216. as_ln_s='cp -p'
  21217. elif ln conf$$.file conf$$ 2>/dev/null; then
  21218. as_ln_s=ln
  21219. else
  21220. as_ln_s='cp -p'
  21221. fi
  21222. else
  21223. as_ln_s='cp -p'
  21224. fi
  21225. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21226. rmdir conf$$.dir 2>/dev/null
  21227. if mkdir -p . 2>/dev/null; then
  21228. as_mkdir_p=:
  21229. else
  21230. test -d ./-p && rmdir ./-p
  21231. as_mkdir_p=false
  21232. fi
  21233. if test -x / >/dev/null 2>&1; then
  21234. as_test_x='test -x'
  21235. else
  21236. if ls -dL / >/dev/null 2>&1; then
  21237. as_ls_L_option=L
  21238. else
  21239. as_ls_L_option=
  21240. fi
  21241. as_test_x='
  21242. eval sh -c '\''
  21243. if test -d "$1"; then
  21244. test -d "$1/.";
  21245. else
  21246. case $1 in
  21247. -*)set "./$1";;
  21248. esac;
  21249. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21250. ???[sx]*):;;*)false;;esac;fi
  21251. '\'' sh
  21252. '
  21253. fi
  21254. as_executable_p=$as_test_x
  21255. # Sed expression to map a string onto a valid CPP name.
  21256. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21257. # Sed expression to map a string onto a valid variable name.
  21258. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21259. exec 6>&1
  21260. # Save the log message, to keep $[0] and so on meaningful, and to
  21261. # report actual input values of CONFIG_FILES etc. instead of their
  21262. # values after options handling.
  21263. ac_log="
  21264. This file was extended by aria2 $as_me 1.4.0, which was
  21265. generated by GNU Autoconf 2.63. Invocation command line was
  21266. CONFIG_FILES = $CONFIG_FILES
  21267. CONFIG_HEADERS = $CONFIG_HEADERS
  21268. CONFIG_LINKS = $CONFIG_LINKS
  21269. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21270. $ $0 $@
  21271. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21272. "
  21273. _ACEOF
  21274. case $ac_config_files in *"
  21275. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21276. esac
  21277. case $ac_config_headers in *"
  21278. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21279. esac
  21280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21281. # Files that config.status was made for.
  21282. config_files="$ac_config_files"
  21283. config_headers="$ac_config_headers"
  21284. config_commands="$ac_config_commands"
  21285. _ACEOF
  21286. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21287. ac_cs_usage="\
  21288. \`$as_me' instantiates files from templates according to the
  21289. current configuration.
  21290. Usage: $0 [OPTION]... [FILE]...
  21291. -h, --help print this help, then exit
  21292. -V, --version print version number and configuration settings, then exit
  21293. -q, --quiet, --silent
  21294. do not print progress messages
  21295. -d, --debug don't remove temporary files
  21296. --recheck update $as_me by reconfiguring in the same conditions
  21297. --file=FILE[:TEMPLATE]
  21298. instantiate the configuration file FILE
  21299. --header=FILE[:TEMPLATE]
  21300. instantiate the configuration header FILE
  21301. Configuration files:
  21302. $config_files
  21303. Configuration headers:
  21304. $config_headers
  21305. Configuration commands:
  21306. $config_commands
  21307. Report bugs to <bug-autoconf@gnu.org>."
  21308. _ACEOF
  21309. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21310. ac_cs_version="\\
  21311. aria2 config.status 1.4.0
  21312. configured by $0, generated by GNU Autoconf 2.63,
  21313. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21314. Copyright (C) 2008 Free Software Foundation, Inc.
  21315. This config.status script is free software; the Free Software Foundation
  21316. gives unlimited permission to copy, distribute and modify it."
  21317. ac_pwd='$ac_pwd'
  21318. srcdir='$srcdir'
  21319. INSTALL='$INSTALL'
  21320. MKDIR_P='$MKDIR_P'
  21321. AWK='$AWK'
  21322. test -n "\$AWK" || AWK=awk
  21323. _ACEOF
  21324. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21325. # The default lists apply if the user does not specify any file.
  21326. ac_need_defaults=:
  21327. while test $# != 0
  21328. do
  21329. case $1 in
  21330. --*=*)
  21331. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21332. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21333. ac_shift=:
  21334. ;;
  21335. *)
  21336. ac_option=$1
  21337. ac_optarg=$2
  21338. ac_shift=shift
  21339. ;;
  21340. esac
  21341. case $ac_option in
  21342. # Handling of the options.
  21343. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21344. ac_cs_recheck=: ;;
  21345. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21346. $as_echo "$ac_cs_version"; exit ;;
  21347. --debug | --debu | --deb | --de | --d | -d )
  21348. debug=: ;;
  21349. --file | --fil | --fi | --f )
  21350. $ac_shift
  21351. case $ac_optarg in
  21352. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21353. esac
  21354. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21355. ac_need_defaults=false;;
  21356. --header | --heade | --head | --hea )
  21357. $ac_shift
  21358. case $ac_optarg in
  21359. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21360. esac
  21361. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21362. ac_need_defaults=false;;
  21363. --he | --h)
  21364. # Conflict between --help and --header
  21365. { $as_echo "$as_me: error: ambiguous option: $1
  21366. Try \`$0 --help' for more information." >&2
  21367. { (exit 1); exit 1; }; };;
  21368. --help | --hel | -h )
  21369. $as_echo "$ac_cs_usage"; exit ;;
  21370. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21371. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21372. ac_cs_silent=: ;;
  21373. # This is an error.
  21374. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21375. Try \`$0 --help' for more information." >&2
  21376. { (exit 1); exit 1; }; } ;;
  21377. *) ac_config_targets="$ac_config_targets $1"
  21378. ac_need_defaults=false ;;
  21379. esac
  21380. shift
  21381. done
  21382. ac_configure_extra_args=
  21383. if $ac_cs_silent; then
  21384. exec 6>/dev/null
  21385. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21386. fi
  21387. _ACEOF
  21388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21389. if \$ac_cs_recheck; then
  21390. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21391. shift
  21392. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21393. CONFIG_SHELL='$SHELL'
  21394. export CONFIG_SHELL
  21395. exec "\$@"
  21396. fi
  21397. _ACEOF
  21398. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21399. exec 5>>config.log
  21400. {
  21401. echo
  21402. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21403. ## Running $as_me. ##
  21404. _ASBOX
  21405. $as_echo "$ac_log"
  21406. } >&5
  21407. _ACEOF
  21408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21409. #
  21410. # INIT-COMMANDS
  21411. #
  21412. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21413. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21414. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21415. # from automake < 1.5.
  21416. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21417. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21418. LINGUAS="${LINGUAS-%UNSET%}"
  21419. _ACEOF
  21420. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21421. # Handling of arguments.
  21422. for ac_config_target in $ac_config_targets
  21423. do
  21424. case $ac_config_target in
  21425. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21426. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21427. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21428. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21429. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21430. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21431. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21432. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21433. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21434. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21435. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21436. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21437. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21438. { (exit 1); exit 1; }; };;
  21439. esac
  21440. done
  21441. # If the user did not use the arguments to specify the items to instantiate,
  21442. # then the envvar interface is used. Set only those that are not.
  21443. # We use the long form for the default assignment because of an extremely
  21444. # bizarre bug on SunOS 4.1.3.
  21445. if $ac_need_defaults; then
  21446. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21447. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21448. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21449. fi
  21450. # Have a temporary directory for convenience. Make it in the build tree
  21451. # simply because there is no reason against having it here, and in addition,
  21452. # creating and moving files from /tmp can sometimes cause problems.
  21453. # Hook for its removal unless debugging.
  21454. # Note that there is a small window in which the directory will not be cleaned:
  21455. # after its creation but before its name has been assigned to `$tmp'.
  21456. $debug ||
  21457. {
  21458. tmp=
  21459. trap 'exit_status=$?
  21460. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21461. ' 0
  21462. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21463. }
  21464. # Create a (secure) tmp directory for tmp files.
  21465. {
  21466. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21467. test -n "$tmp" && test -d "$tmp"
  21468. } ||
  21469. {
  21470. tmp=./conf$$-$RANDOM
  21471. (umask 077 && mkdir "$tmp")
  21472. } ||
  21473. {
  21474. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21475. { (exit 1); exit 1; }
  21476. }
  21477. # Set up the scripts for CONFIG_FILES section.
  21478. # No need to generate them if there are no CONFIG_FILES.
  21479. # This happens for instance with `./config.status config.h'.
  21480. if test -n "$CONFIG_FILES"; then
  21481. ac_cr=' '
  21482. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21483. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21484. ac_cs_awk_cr='\\r'
  21485. else
  21486. ac_cs_awk_cr=$ac_cr
  21487. fi
  21488. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21489. _ACEOF
  21490. {
  21491. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21492. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21493. echo "_ACEOF"
  21494. } >conf$$subs.sh ||
  21495. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21496. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21497. { (exit 1); exit 1; }; }
  21498. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21499. ac_delim='%!_!# '
  21500. for ac_last_try in false false false false false :; do
  21501. . ./conf$$subs.sh ||
  21502. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21503. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21504. { (exit 1); exit 1; }; }
  21505. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21506. if test $ac_delim_n = $ac_delim_num; then
  21507. break
  21508. elif $ac_last_try; then
  21509. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21510. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21511. { (exit 1); exit 1; }; }
  21512. else
  21513. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21514. fi
  21515. done
  21516. rm -f conf$$subs.sh
  21517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21518. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21519. _ACEOF
  21520. sed -n '
  21521. h
  21522. s/^/S["/; s/!.*/"]=/
  21523. p
  21524. g
  21525. s/^[^!]*!//
  21526. :repl
  21527. t repl
  21528. s/'"$ac_delim"'$//
  21529. t delim
  21530. :nl
  21531. h
  21532. s/\(.\{148\}\).*/\1/
  21533. t more1
  21534. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21535. p
  21536. n
  21537. b repl
  21538. :more1
  21539. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21540. p
  21541. g
  21542. s/.\{148\}//
  21543. t nl
  21544. :delim
  21545. h
  21546. s/\(.\{148\}\).*/\1/
  21547. t more2
  21548. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21549. p
  21550. b
  21551. :more2
  21552. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21553. p
  21554. g
  21555. s/.\{148\}//
  21556. t delim
  21557. ' <conf$$subs.awk | sed '
  21558. /^[^""]/{
  21559. N
  21560. s/\n//
  21561. }
  21562. ' >>$CONFIG_STATUS || ac_write_fail=1
  21563. rm -f conf$$subs.awk
  21564. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21565. _ACAWK
  21566. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21567. for (key in S) S_is_set[key] = 1
  21568. FS = ""
  21569. }
  21570. {
  21571. line = $ 0
  21572. nfields = split(line, field, "@")
  21573. substed = 0
  21574. len = length(field[1])
  21575. for (i = 2; i < nfields; i++) {
  21576. key = field[i]
  21577. keylen = length(key)
  21578. if (S_is_set[key]) {
  21579. value = S[key]
  21580. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21581. len += length(value) + length(field[++i])
  21582. substed = 1
  21583. } else
  21584. len += 1 + keylen
  21585. }
  21586. print line
  21587. }
  21588. _ACAWK
  21589. _ACEOF
  21590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21591. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21592. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21593. else
  21594. cat
  21595. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21596. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21597. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21598. { (exit 1); exit 1; }; }
  21599. _ACEOF
  21600. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21601. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21602. # trailing colons and then remove the whole line if VPATH becomes empty
  21603. # (actually we leave an empty line to preserve line numbers).
  21604. if test "x$srcdir" = x.; then
  21605. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21606. s/:*\$(srcdir):*/:/
  21607. s/:*\${srcdir}:*/:/
  21608. s/:*@srcdir@:*/:/
  21609. s/^\([^=]*=[ ]*\):*/\1/
  21610. s/:*$//
  21611. s/^[^=]*=[ ]*$//
  21612. }'
  21613. fi
  21614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21615. fi # test -n "$CONFIG_FILES"
  21616. # Set up the scripts for CONFIG_HEADERS section.
  21617. # No need to generate them if there are no CONFIG_HEADERS.
  21618. # This happens for instance with `./config.status Makefile'.
  21619. if test -n "$CONFIG_HEADERS"; then
  21620. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21621. BEGIN {
  21622. _ACEOF
  21623. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21624. # here-document in config.status, that substitutes the proper values into
  21625. # config.h.in to produce config.h.
  21626. # Create a delimiter string that does not exist in confdefs.h, to ease
  21627. # handling of long lines.
  21628. ac_delim='%!_!# '
  21629. for ac_last_try in false false :; do
  21630. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21631. if test -z "$ac_t"; then
  21632. break
  21633. elif $ac_last_try; then
  21634. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21635. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21636. { (exit 1); exit 1; }; }
  21637. else
  21638. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21639. fi
  21640. done
  21641. # For the awk script, D is an array of macro values keyed by name,
  21642. # likewise P contains macro parameters if any. Preserve backslash
  21643. # newline sequences.
  21644. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21645. sed -n '
  21646. s/.\{148\}/&'"$ac_delim"'/g
  21647. t rset
  21648. :rset
  21649. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21650. t def
  21651. d
  21652. :def
  21653. s/\\$//
  21654. t bsnl
  21655. s/["\\]/\\&/g
  21656. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21657. D["\1"]=" \3"/p
  21658. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21659. d
  21660. :bsnl
  21661. s/["\\]/\\&/g
  21662. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21663. D["\1"]=" \3\\\\\\n"\\/p
  21664. t cont
  21665. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21666. t cont
  21667. d
  21668. :cont
  21669. n
  21670. s/.\{148\}/&'"$ac_delim"'/g
  21671. t clear
  21672. :clear
  21673. s/\\$//
  21674. t bsnlc
  21675. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21676. d
  21677. :bsnlc
  21678. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21679. b cont
  21680. ' <confdefs.h | sed '
  21681. s/'"$ac_delim"'/"\\\
  21682. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21683. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21684. for (key in D) D_is_set[key] = 1
  21685. FS = ""
  21686. }
  21687. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21688. line = \$ 0
  21689. split(line, arg, " ")
  21690. if (arg[1] == "#") {
  21691. defundef = arg[2]
  21692. mac1 = arg[3]
  21693. } else {
  21694. defundef = substr(arg[1], 2)
  21695. mac1 = arg[2]
  21696. }
  21697. split(mac1, mac2, "(") #)
  21698. macro = mac2[1]
  21699. prefix = substr(line, 1, index(line, defundef) - 1)
  21700. if (D_is_set[macro]) {
  21701. # Preserve the white space surrounding the "#".
  21702. print prefix "define", macro P[macro] D[macro]
  21703. next
  21704. } else {
  21705. # Replace #undef with comments. This is necessary, for example,
  21706. # in the case of _POSIX_SOURCE, which is predefined and required
  21707. # on some systems where configure will not decide to define it.
  21708. if (defundef == "undef") {
  21709. print "/*", prefix defundef, macro, "*/"
  21710. next
  21711. }
  21712. }
  21713. }
  21714. { print }
  21715. _ACAWK
  21716. _ACEOF
  21717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21718. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21719. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21720. { (exit 1); exit 1; }; }
  21721. fi # test -n "$CONFIG_HEADERS"
  21722. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21723. shift
  21724. for ac_tag
  21725. do
  21726. case $ac_tag in
  21727. :[FHLC]) ac_mode=$ac_tag; continue;;
  21728. esac
  21729. case $ac_mode$ac_tag in
  21730. :[FHL]*:*);;
  21731. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21732. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21733. { (exit 1); exit 1; }; };;
  21734. :[FH]-) ac_tag=-:-;;
  21735. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21736. esac
  21737. ac_save_IFS=$IFS
  21738. IFS=:
  21739. set x $ac_tag
  21740. IFS=$ac_save_IFS
  21741. shift
  21742. ac_file=$1
  21743. shift
  21744. case $ac_mode in
  21745. :L) ac_source=$1;;
  21746. :[FH])
  21747. ac_file_inputs=
  21748. for ac_f
  21749. do
  21750. case $ac_f in
  21751. -) ac_f="$tmp/stdin";;
  21752. *) # Look for the file first in the build tree, then in the source tree
  21753. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21754. # because $ac_f cannot contain `:'.
  21755. test -f "$ac_f" ||
  21756. case $ac_f in
  21757. [\\/$]*) false;;
  21758. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21759. esac ||
  21760. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21761. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21762. { (exit 1); exit 1; }; };;
  21763. esac
  21764. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21765. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21766. done
  21767. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21768. # use $as_me), people would be surprised to read:
  21769. # /* config.h. Generated by config.status. */
  21770. configure_input='Generated from '`
  21771. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21772. `' by configure.'
  21773. if test x"$ac_file" != x-; then
  21774. configure_input="$ac_file. $configure_input"
  21775. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21776. $as_echo "$as_me: creating $ac_file" >&6;}
  21777. fi
  21778. # Neutralize special characters interpreted by sed in replacement strings.
  21779. case $configure_input in #(
  21780. *\&* | *\|* | *\\* )
  21781. ac_sed_conf_input=`$as_echo "$configure_input" |
  21782. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21783. *) ac_sed_conf_input=$configure_input;;
  21784. esac
  21785. case $ac_tag in
  21786. *:-:* | *:-) cat >"$tmp/stdin" \
  21787. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21788. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21789. { (exit 1); exit 1; }; } ;;
  21790. esac
  21791. ;;
  21792. esac
  21793. ac_dir=`$as_dirname -- "$ac_file" ||
  21794. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21795. X"$ac_file" : 'X\(//\)[^/]' \| \
  21796. X"$ac_file" : 'X\(//\)$' \| \
  21797. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21798. $as_echo X"$ac_file" |
  21799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21800. s//\1/
  21801. q
  21802. }
  21803. /^X\(\/\/\)[^/].*/{
  21804. s//\1/
  21805. q
  21806. }
  21807. /^X\(\/\/\)$/{
  21808. s//\1/
  21809. q
  21810. }
  21811. /^X\(\/\).*/{
  21812. s//\1/
  21813. q
  21814. }
  21815. s/.*/./; q'`
  21816. { as_dir="$ac_dir"
  21817. case $as_dir in #(
  21818. -*) as_dir=./$as_dir;;
  21819. esac
  21820. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21821. as_dirs=
  21822. while :; do
  21823. case $as_dir in #(
  21824. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21825. *) as_qdir=$as_dir;;
  21826. esac
  21827. as_dirs="'$as_qdir' $as_dirs"
  21828. as_dir=`$as_dirname -- "$as_dir" ||
  21829. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21830. X"$as_dir" : 'X\(//\)[^/]' \| \
  21831. X"$as_dir" : 'X\(//\)$' \| \
  21832. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21833. $as_echo X"$as_dir" |
  21834. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21835. s//\1/
  21836. q
  21837. }
  21838. /^X\(\/\/\)[^/].*/{
  21839. s//\1/
  21840. q
  21841. }
  21842. /^X\(\/\/\)$/{
  21843. s//\1/
  21844. q
  21845. }
  21846. /^X\(\/\).*/{
  21847. s//\1/
  21848. q
  21849. }
  21850. s/.*/./; q'`
  21851. test -d "$as_dir" && break
  21852. done
  21853. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21854. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21855. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21856. { (exit 1); exit 1; }; }; }
  21857. ac_builddir=.
  21858. case "$ac_dir" in
  21859. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21860. *)
  21861. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21862. # A ".." for each directory in $ac_dir_suffix.
  21863. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21864. case $ac_top_builddir_sub in
  21865. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21866. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21867. esac ;;
  21868. esac
  21869. ac_abs_top_builddir=$ac_pwd
  21870. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21871. # for backward compatibility:
  21872. ac_top_builddir=$ac_top_build_prefix
  21873. case $srcdir in
  21874. .) # We are building in place.
  21875. ac_srcdir=.
  21876. ac_top_srcdir=$ac_top_builddir_sub
  21877. ac_abs_top_srcdir=$ac_pwd ;;
  21878. [\\/]* | ?:[\\/]* ) # Absolute name.
  21879. ac_srcdir=$srcdir$ac_dir_suffix;
  21880. ac_top_srcdir=$srcdir
  21881. ac_abs_top_srcdir=$srcdir ;;
  21882. *) # Relative name.
  21883. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21884. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21885. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21886. esac
  21887. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21888. case $ac_mode in
  21889. :F)
  21890. #
  21891. # CONFIG_FILE
  21892. #
  21893. case $INSTALL in
  21894. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21895. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21896. esac
  21897. ac_MKDIR_P=$MKDIR_P
  21898. case $MKDIR_P in
  21899. [\\/$]* | ?:[\\/]* ) ;;
  21900. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21901. esac
  21902. _ACEOF
  21903. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21904. # If the template does not know about datarootdir, expand it.
  21905. # FIXME: This hack should be removed a few years after 2.60.
  21906. ac_datarootdir_hack=; ac_datarootdir_seen=
  21907. ac_sed_dataroot='
  21908. /datarootdir/ {
  21909. p
  21910. q
  21911. }
  21912. /@datadir@/p
  21913. /@docdir@/p
  21914. /@infodir@/p
  21915. /@localedir@/p
  21916. /@mandir@/p
  21917. '
  21918. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21919. *datarootdir*) ac_datarootdir_seen=yes;;
  21920. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21921. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21922. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21923. _ACEOF
  21924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21925. ac_datarootdir_hack='
  21926. s&@datadir@&$datadir&g
  21927. s&@docdir@&$docdir&g
  21928. s&@infodir@&$infodir&g
  21929. s&@localedir@&$localedir&g
  21930. s&@mandir@&$mandir&g
  21931. s&\\\${datarootdir}&$datarootdir&g' ;;
  21932. esac
  21933. _ACEOF
  21934. # Neutralize VPATH when `$srcdir' = `.'.
  21935. # Shell code in configure.ac might set extrasub.
  21936. # FIXME: do we really want to maintain this feature?
  21937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21938. ac_sed_extra="$ac_vpsub
  21939. $extrasub
  21940. _ACEOF
  21941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21942. :t
  21943. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21944. s|@configure_input@|$ac_sed_conf_input|;t t
  21945. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21946. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21947. s&@srcdir@&$ac_srcdir&;t t
  21948. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21949. s&@top_srcdir@&$ac_top_srcdir&;t t
  21950. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21951. s&@builddir@&$ac_builddir&;t t
  21952. s&@abs_builddir@&$ac_abs_builddir&;t t
  21953. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21954. s&@INSTALL@&$ac_INSTALL&;t t
  21955. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21956. $ac_datarootdir_hack
  21957. "
  21958. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  21959. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21960. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21961. { (exit 1); exit 1; }; }
  21962. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21963. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21964. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21965. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21966. which seems to be undefined. Please make sure it is defined." >&5
  21967. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21968. which seems to be undefined. Please make sure it is defined." >&2;}
  21969. rm -f "$tmp/stdin"
  21970. case $ac_file in
  21971. -) cat "$tmp/out" && rm -f "$tmp/out";;
  21972. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  21973. esac \
  21974. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21975. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21976. { (exit 1); exit 1; }; }
  21977. ;;
  21978. :H)
  21979. #
  21980. # CONFIG_HEADER
  21981. #
  21982. if test x"$ac_file" != x-; then
  21983. {
  21984. $as_echo "/* $configure_input */" \
  21985. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  21986. } >"$tmp/config.h" \
  21987. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21988. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21989. { (exit 1); exit 1; }; }
  21990. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  21991. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21992. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21993. else
  21994. rm -f "$ac_file"
  21995. mv "$tmp/config.h" "$ac_file" \
  21996. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21997. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21998. { (exit 1); exit 1; }; }
  21999. fi
  22000. else
  22001. $as_echo "/* $configure_input */" \
  22002. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  22003. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  22004. $as_echo "$as_me: error: could not create -" >&2;}
  22005. { (exit 1); exit 1; }; }
  22006. fi
  22007. # Compute "$ac_file"'s index in $config_headers.
  22008. _am_arg="$ac_file"
  22009. _am_stamp_count=1
  22010. for _am_header in $config_headers :; do
  22011. case $_am_header in
  22012. $_am_arg | $_am_arg:* )
  22013. break ;;
  22014. * )
  22015. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22016. esac
  22017. done
  22018. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22019. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22020. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22021. X"$_am_arg" : 'X\(//\)$' \| \
  22022. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22023. $as_echo X"$_am_arg" |
  22024. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22025. s//\1/
  22026. q
  22027. }
  22028. /^X\(\/\/\)[^/].*/{
  22029. s//\1/
  22030. q
  22031. }
  22032. /^X\(\/\/\)$/{
  22033. s//\1/
  22034. q
  22035. }
  22036. /^X\(\/\).*/{
  22037. s//\1/
  22038. q
  22039. }
  22040. s/.*/./; q'`/stamp-h$_am_stamp_count
  22041. ;;
  22042. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22043. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22044. ;;
  22045. esac
  22046. case $ac_file$ac_mode in
  22047. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  22048. # are listed without --file. Let's play safe and only enable the eval
  22049. # if we detect the quoting.
  22050. case $CONFIG_FILES in
  22051. *\'*) eval set x "$CONFIG_FILES" ;;
  22052. *) set x $CONFIG_FILES ;;
  22053. esac
  22054. shift
  22055. for mf
  22056. do
  22057. # Strip MF so we end up with the name of the file.
  22058. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22059. # Check whether this is an Automake generated Makefile or not.
  22060. # We used to match only the files named `Makefile.in', but
  22061. # some people rename them; so instead we look at the file content.
  22062. # Grep'ing the first line is not enough: some people post-process
  22063. # each Makefile.in and add a new line on top of each file to say so.
  22064. # Grep'ing the whole file is not good either: AIX grep has a line
  22065. # limit of 2048, but all sed's we know have understand at least 4000.
  22066. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22067. dirpart=`$as_dirname -- "$mf" ||
  22068. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22069. X"$mf" : 'X\(//\)[^/]' \| \
  22070. X"$mf" : 'X\(//\)$' \| \
  22071. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22072. $as_echo X"$mf" |
  22073. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22074. s//\1/
  22075. q
  22076. }
  22077. /^X\(\/\/\)[^/].*/{
  22078. s//\1/
  22079. q
  22080. }
  22081. /^X\(\/\/\)$/{
  22082. s//\1/
  22083. q
  22084. }
  22085. /^X\(\/\).*/{
  22086. s//\1/
  22087. q
  22088. }
  22089. s/.*/./; q'`
  22090. else
  22091. continue
  22092. fi
  22093. # Extract the definition of DEPDIR, am__include, and am__quote
  22094. # from the Makefile without running `make'.
  22095. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22096. test -z "$DEPDIR" && continue
  22097. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22098. test -z "am__include" && continue
  22099. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22100. # When using ansi2knr, U may be empty or an underscore; expand it
  22101. U=`sed -n 's/^U = //p' < "$mf"`
  22102. # Find all dependency output files, they are included files with
  22103. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22104. # simplest approach to changing $(DEPDIR) to its actual value in the
  22105. # expansion.
  22106. for file in `sed -n "
  22107. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22108. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22109. # Make sure the directory exists.
  22110. test -f "$dirpart/$file" && continue
  22111. fdir=`$as_dirname -- "$file" ||
  22112. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22113. X"$file" : 'X\(//\)[^/]' \| \
  22114. X"$file" : 'X\(//\)$' \| \
  22115. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22116. $as_echo X"$file" |
  22117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22118. s//\1/
  22119. q
  22120. }
  22121. /^X\(\/\/\)[^/].*/{
  22122. s//\1/
  22123. q
  22124. }
  22125. /^X\(\/\/\)$/{
  22126. s//\1/
  22127. q
  22128. }
  22129. /^X\(\/\).*/{
  22130. s//\1/
  22131. q
  22132. }
  22133. s/.*/./; q'`
  22134. { as_dir=$dirpart/$fdir
  22135. case $as_dir in #(
  22136. -*) as_dir=./$as_dir;;
  22137. esac
  22138. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22139. as_dirs=
  22140. while :; do
  22141. case $as_dir in #(
  22142. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22143. *) as_qdir=$as_dir;;
  22144. esac
  22145. as_dirs="'$as_qdir' $as_dirs"
  22146. as_dir=`$as_dirname -- "$as_dir" ||
  22147. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22148. X"$as_dir" : 'X\(//\)[^/]' \| \
  22149. X"$as_dir" : 'X\(//\)$' \| \
  22150. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22151. $as_echo X"$as_dir" |
  22152. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22153. s//\1/
  22154. q
  22155. }
  22156. /^X\(\/\/\)[^/].*/{
  22157. s//\1/
  22158. q
  22159. }
  22160. /^X\(\/\/\)$/{
  22161. s//\1/
  22162. q
  22163. }
  22164. /^X\(\/\).*/{
  22165. s//\1/
  22166. q
  22167. }
  22168. s/.*/./; q'`
  22169. test -d "$as_dir" && break
  22170. done
  22171. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22172. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22173. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22174. { (exit 1); exit 1; }; }; }
  22175. # echo "creating $dirpart/$file"
  22176. echo '# dummy' > "$dirpart/$file"
  22177. done
  22178. done
  22179. ;;
  22180. "po-directories":C)
  22181. for ac_file in $CONFIG_FILES; do
  22182. # Support "outfile[:infile[:infile...]]"
  22183. case "$ac_file" in
  22184. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  22185. esac
  22186. # PO directories have a Makefile.in generated from Makefile.in.in.
  22187. case "$ac_file" in */Makefile.in)
  22188. # Adjust a relative srcdir.
  22189. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  22190. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  22191. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  22192. # In autoconf-2.13 it is called $ac_given_srcdir.
  22193. # In autoconf-2.50 it is called $srcdir.
  22194. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  22195. case "$ac_given_srcdir" in
  22196. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  22197. /*) top_srcdir="$ac_given_srcdir" ;;
  22198. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22199. esac
  22200. # Treat a directory as a PO directory if and only if it has a
  22201. # POTFILES.in file. This allows packages to have multiple PO
  22202. # directories under different names or in different locations.
  22203. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  22204. rm -f "$ac_dir/POTFILES"
  22205. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  22206. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  22207. POMAKEFILEDEPS="POTFILES.in"
  22208. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  22209. # on $ac_dir but don't depend on user-specified configuration
  22210. # parameters.
  22211. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  22212. # The LINGUAS file contains the set of available languages.
  22213. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  22214. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  22215. fi
  22216. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  22217. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22218. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  22219. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  22220. else
  22221. # The set of available languages was given in configure.in.
  22222. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22223. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  22224. fi
  22225. # Compute POFILES
  22226. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  22227. # Compute UPDATEPOFILES
  22228. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  22229. # Compute DUMMYPOFILES
  22230. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  22231. # Compute GMOFILES
  22232. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  22233. case "$ac_given_srcdir" in
  22234. .) srcdirpre= ;;
  22235. *) srcdirpre='$(srcdir)/' ;;
  22236. esac
  22237. POFILES=
  22238. UPDATEPOFILES=
  22239. DUMMYPOFILES=
  22240. GMOFILES=
  22241. for lang in $ALL_LINGUAS; do
  22242. POFILES="$POFILES $srcdirpre$lang.po"
  22243. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22244. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22245. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22246. done
  22247. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22248. # environment variable.
  22249. INST_LINGUAS=
  22250. if test -n "$ALL_LINGUAS"; then
  22251. for presentlang in $ALL_LINGUAS; do
  22252. useit=no
  22253. if test "%UNSET%" != "$LINGUAS"; then
  22254. desiredlanguages="$LINGUAS"
  22255. else
  22256. desiredlanguages="$ALL_LINGUAS"
  22257. fi
  22258. for desiredlang in $desiredlanguages; do
  22259. # Use the presentlang catalog if desiredlang is
  22260. # a. equal to presentlang, or
  22261. # b. a variant of presentlang (because in this case,
  22262. # presentlang can be used as a fallback for messages
  22263. # which are not translated in the desiredlang catalog).
  22264. case "$desiredlang" in
  22265. "$presentlang"*) useit=yes;;
  22266. esac
  22267. done
  22268. if test $useit = yes; then
  22269. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22270. fi
  22271. done
  22272. fi
  22273. CATALOGS=
  22274. if test -n "$INST_LINGUAS"; then
  22275. for lang in $INST_LINGUAS; do
  22276. CATALOGS="$CATALOGS $lang.gmo"
  22277. done
  22278. fi
  22279. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22280. 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"
  22281. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22282. if test -f "$f"; then
  22283. case "$f" in
  22284. *.orig | *.bak | *~) ;;
  22285. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22286. esac
  22287. fi
  22288. done
  22289. fi
  22290. ;;
  22291. esac
  22292. done ;;
  22293. esac
  22294. done # for ac_tag
  22295. { (exit 0); exit 0; }
  22296. _ACEOF
  22297. chmod +x $CONFIG_STATUS
  22298. ac_clean_files=$ac_clean_files_save
  22299. test $ac_write_fail = 0 ||
  22300. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22301. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22302. { (exit 1); exit 1; }; }
  22303. # configure is writing to config.log, and then calls config.status.
  22304. # config.status does its own redirection, appending to config.log.
  22305. # Unfortunately, on DOS this fails, as config.log is still kept open
  22306. # by configure, so config.status won't be able to write to it; its
  22307. # output is simply discarded. So we exec the FD to /dev/null,
  22308. # effectively closing config.log, so it can be properly (re)opened and
  22309. # appended to by config.status. When coming back to configure, we
  22310. # need to make the FD available again.
  22311. if test "$no_create" != yes; then
  22312. ac_cs_success=:
  22313. ac_config_status_args=
  22314. test "$silent" = yes &&
  22315. ac_config_status_args="$ac_config_status_args --quiet"
  22316. exec 5>/dev/null
  22317. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22318. exec 5>>config.log
  22319. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22320. # would make configure fail if this is the last instruction.
  22321. $ac_cs_success || { (exit 1); exit 1; }
  22322. fi
  22323. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22324. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22325. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22326. fi
  22327. echo " "
  22328. echo "Build: $build"
  22329. echo "Target: $target"
  22330. echo "Install prefix: $prefix"
  22331. echo "CFLAGS: $CFLAGS"
  22332. echo "CPPFLAGS: $CPPFLAGS"
  22333. echo "LDFLAGS: $LDFLAGS"
  22334. echo "LIBS: $LIBS"
  22335. echo "SQLite3: $have_sqlite3"
  22336. echo "GnuTLS: $have_libgnutls"
  22337. echo "OpenSSL: $have_openssl"
  22338. echo "CA Bundle: $ca_bundle"
  22339. echo "LibXML2: $have_libxml2"
  22340. echo "LibExpat: $have_libexpat"
  22341. echo "LibCares: $have_libcares"
  22342. echo "Libz: $have_libz"
  22343. echo "Epoll: $have_epoll"
  22344. echo "Bittorrent: $enable_bittorrent"
  22345. echo "Metalink: $enable_metalink"
  22346. echo "XML-RPC: $enable_xml_rpc"