configure 446 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.12.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 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.12.0'
  496. PACKAGE_STRING='aria2c 0.12.0'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. build
  572. build_cpu
  573. build_vendor
  574. build_os
  575. host
  576. host_cpu
  577. host_vendor
  578. host_os
  579. target
  580. target_cpu
  581. target_vendor
  582. target_os
  583. INSTALL_PROGRAM
  584. INSTALL_SCRIPT
  585. INSTALL_DATA
  586. CYGPATH_W
  587. PACKAGE
  588. VERSION
  589. ACLOCAL
  590. AUTOCONF
  591. AUTOMAKE
  592. AUTOHEADER
  593. MAKEINFO
  594. install_sh
  595. STRIP
  596. INSTALL_STRIP_PROGRAM
  597. mkdir_p
  598. AWK
  599. SET_MAKE
  600. am__leading_dot
  601. AMTAR
  602. am__tar
  603. am__untar
  604. CPPUNIT_CONFIG
  605. CPPUNIT_CFLAGS
  606. CPPUNIT_LIBS
  607. WINSOCK_LIBS
  608. CXX
  609. CXXFLAGS
  610. LDFLAGS
  611. CPPFLAGS
  612. ac_ct_CXX
  613. EXEEXT
  614. OBJEXT
  615. DEPDIR
  616. am__include
  617. am__quote
  618. AMDEP_TRUE
  619. AMDEP_FALSE
  620. AMDEPBACKSLASH
  621. CXXDEPMODE
  622. am__fastdepCXX_TRUE
  623. am__fastdepCXX_FALSE
  624. CC
  625. CFLAGS
  626. ac_ct_CC
  627. CCDEPMODE
  628. am__fastdepCC_TRUE
  629. am__fastdepCC_FALSE
  630. RANLIB
  631. YACC
  632. YFLAGS
  633. XML2_CONFIG
  634. XML_CPPFLAGS
  635. XML_LIBS
  636. LIBEXPAT_LIBS
  637. LIBEXPAT_CPPFLAGS
  638. LIBGNUTLS_CONFIG
  639. LIBGNUTLS_CFLAGS
  640. LIBGNUTLS_LIBS
  641. LIBGCRYPT_CONFIG
  642. LIBGCRYPT_CFLAGS
  643. LIBGCRYPT_LIBS
  644. OPENSSL_LIBS
  645. OPENSSL_CFLAGS
  646. LIBCARES_LIBS
  647. LIBCARES_CPPFLAGS
  648. LIBARES_LIBS
  649. LIBARES_CPPFLAGS
  650. ENABLE_MESSAGE_DIGEST_TRUE
  651. ENABLE_MESSAGE_DIGEST_FALSE
  652. ENABLE_BITTORRENT_TRUE
  653. ENABLE_BITTORRENT_FALSE
  654. ENABLE_METALINK_TRUE
  655. ENABLE_METALINK_FALSE
  656. ENABLE_LIBXML2_TRUE
  657. ENABLE_LIBXML2_FALSE
  658. ENABLE_LIBEXPAT_TRUE
  659. ENABLE_LIBEXPAT_FALSE
  660. ENABLE_ASYNC_DNS_TRUE
  661. ENABLE_ASYNC_DNS_FALSE
  662. ALLOCA
  663. CXXCPP
  664. GREP
  665. EGREP
  666. MKINSTALLDIRS
  667. USE_NLS
  668. MSGFMT
  669. GMSGFMT
  670. XGETTEXT
  671. MSGMERGE
  672. GLIBC21
  673. LIBICONV
  674. LTLIBICONV
  675. INTLBISON
  676. BUILD_INCLUDED_LIBINTL
  677. USE_INCLUDED_LIBINTL
  678. CATOBJEXT
  679. DATADIRNAME
  680. INSTOBJEXT
  681. GENCAT
  682. INTLOBJS
  683. INTL_LIBTOOL_SUFFIX_PREFIX
  684. INTLLIBS
  685. LIBINTL
  686. LTLIBINTL
  687. POSUB
  688. LIBOBJS
  689. HAVE_BASENAME_TRUE
  690. HAVE_BASENAME_FALSE
  691. HAVE_GAI_STRERROR_TRUE
  692. HAVE_GAI_STRERROR_FALSE
  693. HAVE_GETADDRINFO_TRUE
  694. HAVE_GETADDRINFO_FALSE
  695. HAVE_GETTIMEOFDAY_TRUE
  696. HAVE_GETTIMEOFDAY_FALSE
  697. HAVE_INET_ATON_TRUE
  698. HAVE_INET_ATON_FALSE
  699. HAVE_LOCALTIME_R_TRUE
  700. HAVE_LOCALTIME_R_FALSE
  701. HAVE_STRPTIME_TRUE
  702. HAVE_STRPTIME_FALSE
  703. HAVE_TIMEGM_TRUE
  704. HAVE_TIMEGM_FALSE
  705. LTLIBOBJS'
  706. ac_subst_files=''
  707. ac_precious_vars='build_alias
  708. host_alias
  709. target_alias
  710. CXX
  711. CXXFLAGS
  712. LDFLAGS
  713. LIBS
  714. CPPFLAGS
  715. CCC
  716. CC
  717. CFLAGS
  718. YACC
  719. YFLAGS
  720. CXXCPP'
  721. # Initialize some variables set by options.
  722. ac_init_help=
  723. ac_init_version=false
  724. # The variables have the same names as the options, with
  725. # dashes changed to underlines.
  726. cache_file=/dev/null
  727. exec_prefix=NONE
  728. no_create=
  729. no_recursion=
  730. prefix=NONE
  731. program_prefix=NONE
  732. program_suffix=NONE
  733. program_transform_name=s,x,x,
  734. silent=
  735. site=
  736. srcdir=
  737. verbose=
  738. x_includes=NONE
  739. x_libraries=NONE
  740. # Installation directory options.
  741. # These are left unexpanded so users can "make install exec_prefix=/foo"
  742. # and all the variables that are supposed to be based on exec_prefix
  743. # by default will actually change.
  744. # Use braces instead of parens because sh, perl, etc. also accept them.
  745. # (The list follows the same order as the GNU Coding Standards.)
  746. bindir='${exec_prefix}/bin'
  747. sbindir='${exec_prefix}/sbin'
  748. libexecdir='${exec_prefix}/libexec'
  749. datarootdir='${prefix}/share'
  750. datadir='${datarootdir}'
  751. sysconfdir='${prefix}/etc'
  752. sharedstatedir='${prefix}/com'
  753. localstatedir='${prefix}/var'
  754. includedir='${prefix}/include'
  755. oldincludedir='/usr/include'
  756. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  757. infodir='${datarootdir}/info'
  758. htmldir='${docdir}'
  759. dvidir='${docdir}'
  760. pdfdir='${docdir}'
  761. psdir='${docdir}'
  762. libdir='${exec_prefix}/lib'
  763. localedir='${datarootdir}/locale'
  764. mandir='${datarootdir}/man'
  765. ac_prev=
  766. ac_dashdash=
  767. for ac_option
  768. do
  769. # If the previous option needs an argument, assign it.
  770. if test -n "$ac_prev"; then
  771. eval $ac_prev=\$ac_option
  772. ac_prev=
  773. continue
  774. fi
  775. case $ac_option in
  776. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  777. *) ac_optarg=yes ;;
  778. esac
  779. # Accept the important Cygnus configure options, so we can diagnose typos.
  780. case $ac_dashdash$ac_option in
  781. --)
  782. ac_dashdash=yes ;;
  783. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  784. ac_prev=bindir ;;
  785. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  786. bindir=$ac_optarg ;;
  787. -build | --build | --buil | --bui | --bu)
  788. ac_prev=build_alias ;;
  789. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  790. build_alias=$ac_optarg ;;
  791. -cache-file | --cache-file | --cache-fil | --cache-fi \
  792. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  793. ac_prev=cache_file ;;
  794. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  795. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  796. cache_file=$ac_optarg ;;
  797. --config-cache | -C)
  798. cache_file=config.cache ;;
  799. -datadir | --datadir | --datadi | --datad)
  800. ac_prev=datadir ;;
  801. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  802. datadir=$ac_optarg ;;
  803. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  804. | --dataroo | --dataro | --datar)
  805. ac_prev=datarootdir ;;
  806. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  807. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  808. datarootdir=$ac_optarg ;;
  809. -disable-* | --disable-*)
  810. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  811. # Reject names that are not valid shell variable names.
  812. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  813. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  814. { (exit 1); exit 1; }; }
  815. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  816. eval enable_$ac_feature=no ;;
  817. -docdir | --docdir | --docdi | --doc | --do)
  818. ac_prev=docdir ;;
  819. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  820. docdir=$ac_optarg ;;
  821. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  822. ac_prev=dvidir ;;
  823. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  824. dvidir=$ac_optarg ;;
  825. -enable-* | --enable-*)
  826. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  827. # Reject names that are not valid shell variable names.
  828. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  829. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  830. { (exit 1); exit 1; }; }
  831. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  832. eval enable_$ac_feature=\$ac_optarg ;;
  833. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  834. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  835. | --exec | --exe | --ex)
  836. ac_prev=exec_prefix ;;
  837. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  838. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  839. | --exec=* | --exe=* | --ex=*)
  840. exec_prefix=$ac_optarg ;;
  841. -gas | --gas | --ga | --g)
  842. # Obsolete; use --with-gas.
  843. with_gas=yes ;;
  844. -help | --help | --hel | --he | -h)
  845. ac_init_help=long ;;
  846. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  847. ac_init_help=recursive ;;
  848. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  849. ac_init_help=short ;;
  850. -host | --host | --hos | --ho)
  851. ac_prev=host_alias ;;
  852. -host=* | --host=* | --hos=* | --ho=*)
  853. host_alias=$ac_optarg ;;
  854. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  855. ac_prev=htmldir ;;
  856. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  857. | --ht=*)
  858. htmldir=$ac_optarg ;;
  859. -includedir | --includedir | --includedi | --included | --include \
  860. | --includ | --inclu | --incl | --inc)
  861. ac_prev=includedir ;;
  862. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  863. | --includ=* | --inclu=* | --incl=* | --inc=*)
  864. includedir=$ac_optarg ;;
  865. -infodir | --infodir | --infodi | --infod | --info | --inf)
  866. ac_prev=infodir ;;
  867. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  868. infodir=$ac_optarg ;;
  869. -libdir | --libdir | --libdi | --libd)
  870. ac_prev=libdir ;;
  871. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  872. libdir=$ac_optarg ;;
  873. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  874. | --libexe | --libex | --libe)
  875. ac_prev=libexecdir ;;
  876. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  877. | --libexe=* | --libex=* | --libe=*)
  878. libexecdir=$ac_optarg ;;
  879. -localedir | --localedir | --localedi | --localed | --locale)
  880. ac_prev=localedir ;;
  881. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  882. localedir=$ac_optarg ;;
  883. -localstatedir | --localstatedir | --localstatedi | --localstated \
  884. | --localstate | --localstat | --localsta | --localst | --locals)
  885. ac_prev=localstatedir ;;
  886. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  887. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  888. localstatedir=$ac_optarg ;;
  889. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  890. ac_prev=mandir ;;
  891. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  892. mandir=$ac_optarg ;;
  893. -nfp | --nfp | --nf)
  894. # Obsolete; use --without-fp.
  895. with_fp=no ;;
  896. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  897. | --no-cr | --no-c | -n)
  898. no_create=yes ;;
  899. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  900. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  901. no_recursion=yes ;;
  902. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  903. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  904. | --oldin | --oldi | --old | --ol | --o)
  905. ac_prev=oldincludedir ;;
  906. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  907. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  908. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  909. oldincludedir=$ac_optarg ;;
  910. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  911. ac_prev=prefix ;;
  912. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  913. prefix=$ac_optarg ;;
  914. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  915. | --program-pre | --program-pr | --program-p)
  916. ac_prev=program_prefix ;;
  917. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  918. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  919. program_prefix=$ac_optarg ;;
  920. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  921. | --program-suf | --program-su | --program-s)
  922. ac_prev=program_suffix ;;
  923. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  924. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  925. program_suffix=$ac_optarg ;;
  926. -program-transform-name | --program-transform-name \
  927. | --program-transform-nam | --program-transform-na \
  928. | --program-transform-n | --program-transform- \
  929. | --program-transform | --program-transfor \
  930. | --program-transfo | --program-transf \
  931. | --program-trans | --program-tran \
  932. | --progr-tra | --program-tr | --program-t)
  933. ac_prev=program_transform_name ;;
  934. -program-transform-name=* | --program-transform-name=* \
  935. | --program-transform-nam=* | --program-transform-na=* \
  936. | --program-transform-n=* | --program-transform-=* \
  937. | --program-transform=* | --program-transfor=* \
  938. | --program-transfo=* | --program-transf=* \
  939. | --program-trans=* | --program-tran=* \
  940. | --progr-tra=* | --program-tr=* | --program-t=*)
  941. program_transform_name=$ac_optarg ;;
  942. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  943. ac_prev=pdfdir ;;
  944. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  945. pdfdir=$ac_optarg ;;
  946. -psdir | --psdir | --psdi | --psd | --ps)
  947. ac_prev=psdir ;;
  948. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  949. psdir=$ac_optarg ;;
  950. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  951. | -silent | --silent | --silen | --sile | --sil)
  952. silent=yes ;;
  953. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  954. ac_prev=sbindir ;;
  955. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  956. | --sbi=* | --sb=*)
  957. sbindir=$ac_optarg ;;
  958. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  959. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  960. | --sharedst | --shareds | --shared | --share | --shar \
  961. | --sha | --sh)
  962. ac_prev=sharedstatedir ;;
  963. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  964. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  965. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  966. | --sha=* | --sh=*)
  967. sharedstatedir=$ac_optarg ;;
  968. -site | --site | --sit)
  969. ac_prev=site ;;
  970. -site=* | --site=* | --sit=*)
  971. site=$ac_optarg ;;
  972. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  973. ac_prev=srcdir ;;
  974. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  975. srcdir=$ac_optarg ;;
  976. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  977. | --syscon | --sysco | --sysc | --sys | --sy)
  978. ac_prev=sysconfdir ;;
  979. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  980. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  981. sysconfdir=$ac_optarg ;;
  982. -target | --target | --targe | --targ | --tar | --ta | --t)
  983. ac_prev=target_alias ;;
  984. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  985. target_alias=$ac_optarg ;;
  986. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  987. verbose=yes ;;
  988. -version | --version | --versio | --versi | --vers | -V)
  989. ac_init_version=: ;;
  990. -with-* | --with-*)
  991. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  994. { echo "$as_me: error: invalid package name: $ac_package" >&2
  995. { (exit 1); exit 1; }; }
  996. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  997. eval with_$ac_package=\$ac_optarg ;;
  998. -without-* | --without-*)
  999. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1000. # Reject names that are not valid shell variable names.
  1001. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1002. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1003. { (exit 1); exit 1; }; }
  1004. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1005. eval with_$ac_package=no ;;
  1006. --x)
  1007. # Obsolete; use --with-x.
  1008. with_x=yes ;;
  1009. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1010. | --x-incl | --x-inc | --x-in | --x-i)
  1011. ac_prev=x_includes ;;
  1012. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1013. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1014. x_includes=$ac_optarg ;;
  1015. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1016. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1017. ac_prev=x_libraries ;;
  1018. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1019. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1020. x_libraries=$ac_optarg ;;
  1021. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1022. Try \`$0 --help' for more information." >&2
  1023. { (exit 1); exit 1; }; }
  1024. ;;
  1025. *=*)
  1026. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1029. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1030. { (exit 1); exit 1; }; }
  1031. eval $ac_envvar=\$ac_optarg
  1032. export $ac_envvar ;;
  1033. *)
  1034. # FIXME: should be removed in autoconf 3.0.
  1035. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1036. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1037. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1038. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1039. ;;
  1040. esac
  1041. done
  1042. if test -n "$ac_prev"; then
  1043. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1044. { echo "$as_me: error: missing argument to $ac_option" >&2
  1045. { (exit 1); exit 1; }; }
  1046. fi
  1047. # Be sure to have absolute directory names.
  1048. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1049. datadir sysconfdir sharedstatedir localstatedir includedir \
  1050. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1051. libdir localedir mandir
  1052. do
  1053. eval ac_val=\$$ac_var
  1054. case $ac_val in
  1055. [\\/$]* | ?:[\\/]* ) continue;;
  1056. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1057. esac
  1058. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1059. { (exit 1); exit 1; }; }
  1060. done
  1061. # There might be people who depend on the old broken behavior: `$host'
  1062. # used to hold the argument of --host etc.
  1063. # FIXME: To remove some day.
  1064. build=$build_alias
  1065. host=$host_alias
  1066. target=$target_alias
  1067. # FIXME: To remove some day.
  1068. if test "x$host_alias" != x; then
  1069. if test "x$build_alias" = x; then
  1070. cross_compiling=maybe
  1071. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1072. If a cross compiler is detected then cross compile mode will be used." >&2
  1073. elif test "x$build_alias" != "x$host_alias"; then
  1074. cross_compiling=yes
  1075. fi
  1076. fi
  1077. ac_tool_prefix=
  1078. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1079. test "$silent" = yes && exec 6>/dev/null
  1080. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1081. ac_ls_di=`ls -di .` &&
  1082. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1083. { echo "$as_me: error: Working directory cannot be determined" >&2
  1084. { (exit 1); exit 1; }; }
  1085. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1086. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1087. { (exit 1); exit 1; }; }
  1088. # Find the source files, if location was not specified.
  1089. if test -z "$srcdir"; then
  1090. ac_srcdir_defaulted=yes
  1091. # Try the directory containing this script, then the parent directory.
  1092. ac_confdir=`$as_dirname -- "$0" ||
  1093. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1094. X"$0" : 'X\(//\)[^/]' \| \
  1095. X"$0" : 'X\(//\)$' \| \
  1096. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1097. echo X"$0" |
  1098. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\/\)[^/].*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\/\)$/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\).*/{
  1111. s//\1/
  1112. q
  1113. }
  1114. s/.*/./; q'`
  1115. srcdir=$ac_confdir
  1116. if test ! -r "$srcdir/$ac_unique_file"; then
  1117. srcdir=..
  1118. fi
  1119. else
  1120. ac_srcdir_defaulted=no
  1121. fi
  1122. if test ! -r "$srcdir/$ac_unique_file"; then
  1123. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1124. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1125. { (exit 1); exit 1; }; }
  1126. fi
  1127. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1128. ac_abs_confdir=`(
  1129. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1130. { (exit 1); exit 1; }; }
  1131. pwd)`
  1132. # When building in place, set srcdir=.
  1133. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1134. srcdir=.
  1135. fi
  1136. # Remove unnecessary trailing slashes from srcdir.
  1137. # Double slashes in file names in object file debugging info
  1138. # mess up M-x gdb in Emacs.
  1139. case $srcdir in
  1140. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1141. esac
  1142. for ac_var in $ac_precious_vars; do
  1143. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_env_${ac_var}_value=\$${ac_var}
  1145. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1147. done
  1148. #
  1149. # Report the --help message.
  1150. #
  1151. if test "$ac_init_help" = "long"; then
  1152. # Omit some internal or obsolete options to make the list less imposing.
  1153. # This message is too long to be a string in the A/UX 3.1 sh.
  1154. cat <<_ACEOF
  1155. \`configure' configures aria2c 0.12.0 to adapt to many kinds of systems.
  1156. Usage: $0 [OPTION]... [VAR=VALUE]...
  1157. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1158. VAR=VALUE. See below for descriptions of some of the useful variables.
  1159. Defaults for the options are specified in brackets.
  1160. Configuration:
  1161. -h, --help display this help and exit
  1162. --help=short display options specific to this package
  1163. --help=recursive display the short help of all the included packages
  1164. -V, --version display version information and exit
  1165. -q, --quiet, --silent do not print \`checking...' messages
  1166. --cache-file=FILE cache test results in FILE [disabled]
  1167. -C, --config-cache alias for \`--cache-file=config.cache'
  1168. -n, --no-create do not create output files
  1169. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1170. Installation directories:
  1171. --prefix=PREFIX install architecture-independent files in PREFIX
  1172. [$ac_default_prefix]
  1173. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1174. [PREFIX]
  1175. By default, \`make install' will install all the files in
  1176. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1177. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1178. for instance \`--prefix=\$HOME'.
  1179. For better control, use the options below.
  1180. Fine tuning of the installation directories:
  1181. --bindir=DIR user executables [EPREFIX/bin]
  1182. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1183. --libexecdir=DIR program executables [EPREFIX/libexec]
  1184. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1185. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1186. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1187. --libdir=DIR object code libraries [EPREFIX/lib]
  1188. --includedir=DIR C header files [PREFIX/include]
  1189. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1190. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1191. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1192. --infodir=DIR info documentation [DATAROOTDIR/info]
  1193. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1194. --mandir=DIR man documentation [DATAROOTDIR/man]
  1195. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1196. --htmldir=DIR html documentation [DOCDIR]
  1197. --dvidir=DIR dvi documentation [DOCDIR]
  1198. --pdfdir=DIR pdf documentation [DOCDIR]
  1199. --psdir=DIR ps documentation [DOCDIR]
  1200. _ACEOF
  1201. cat <<\_ACEOF
  1202. Program names:
  1203. --program-prefix=PREFIX prepend PREFIX to installed program names
  1204. --program-suffix=SUFFIX append SUFFIX to installed program names
  1205. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1206. System types:
  1207. --build=BUILD configure for building on BUILD [guessed]
  1208. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1209. --target=TARGET configure for building compilers for TARGET [HOST]
  1210. _ACEOF
  1211. fi
  1212. if test -n "$ac_init_help"; then
  1213. case $ac_init_help in
  1214. short | recursive ) echo "Configuration of aria2c 0.12.0:";;
  1215. esac
  1216. cat <<\_ACEOF
  1217. Optional Features:
  1218. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1219. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1220. --enable-bittorrent enable BitTorrent support. Default: yes
  1221. --enable-metalink enable Metalink support. Default: yes
  1222. --disable-dependency-tracking speeds up one-time build
  1223. --enable-dependency-tracking do not reject slow dependency extractors
  1224. --disable-xmltest Do not try to compile and run a test LIBXML program
  1225. --disable-nls do not use Native Language Support
  1226. --disable-rpath do not hardcode runtime library paths
  1227. Optional Packages:
  1228. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1229. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1230. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1231. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1232. --with-gnutls use gnutls library if installed. Default: yes
  1233. --with-openssl use openssl library if installed. Default: yes
  1234. --with-libxml2 use libxml2 library if installed. Default: yes
  1235. --with-libexpat use libexpat library if installed. Default: yes
  1236. --with-libares use ares library if installed. Default: yes
  1237. --with-libcares use c-ares library if installed. Default: yes
  1238. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1239. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1240. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1241. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1242. --with-libgcrypt-prefix=PFX
  1243. prefix where LIBGCRYPT is installed (optional)
  1244. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1245. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1246. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1247. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1248. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1249. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1250. --with-included-gettext use the GNU gettext library included here
  1251. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1252. --without-libintl-prefix don't search for libintl in includedir and libdir
  1253. Some influential environment variables:
  1254. CXX C++ compiler command
  1255. CXXFLAGS C++ compiler flags
  1256. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1257. nonstandard directory <lib dir>
  1258. LIBS libraries to pass to the linker, e.g. -l<library>
  1259. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1260. you have headers in a nonstandard directory <include dir>
  1261. CC C compiler command
  1262. CFLAGS C compiler flags
  1263. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1264. the first program found out of: `bison -y', `byacc', `yacc'.
  1265. YFLAGS The list of arguments that will be passed by default to $YACC.
  1266. This script will default YFLAGS to the empty string to avoid a
  1267. default value of `-d' given by some make applications.
  1268. CXXCPP C++ preprocessor
  1269. Use these variables to override the choices made by `configure' or to help
  1270. it to find libraries and programs with nonstandard names/locations.
  1271. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1272. _ACEOF
  1273. ac_status=$?
  1274. fi
  1275. if test "$ac_init_help" = "recursive"; then
  1276. # If there are subdirs, report their specific --help.
  1277. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1278. test -d "$ac_dir" || continue
  1279. ac_builddir=.
  1280. case "$ac_dir" in
  1281. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1282. *)
  1283. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1284. # A ".." for each directory in $ac_dir_suffix.
  1285. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1286. case $ac_top_builddir_sub in
  1287. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1288. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1289. esac ;;
  1290. esac
  1291. ac_abs_top_builddir=$ac_pwd
  1292. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1293. # for backward compatibility:
  1294. ac_top_builddir=$ac_top_build_prefix
  1295. case $srcdir in
  1296. .) # We are building in place.
  1297. ac_srcdir=.
  1298. ac_top_srcdir=$ac_top_builddir_sub
  1299. ac_abs_top_srcdir=$ac_pwd ;;
  1300. [\\/]* | ?:[\\/]* ) # Absolute name.
  1301. ac_srcdir=$srcdir$ac_dir_suffix;
  1302. ac_top_srcdir=$srcdir
  1303. ac_abs_top_srcdir=$srcdir ;;
  1304. *) # Relative name.
  1305. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1306. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1307. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1308. esac
  1309. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1310. cd "$ac_dir" || { ac_status=$?; continue; }
  1311. # Check for guested configure.
  1312. if test -f "$ac_srcdir/configure.gnu"; then
  1313. echo &&
  1314. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1315. elif test -f "$ac_srcdir/configure"; then
  1316. echo &&
  1317. $SHELL "$ac_srcdir/configure" --help=recursive
  1318. else
  1319. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1320. fi || ac_status=$?
  1321. cd "$ac_pwd" || { ac_status=$?; break; }
  1322. done
  1323. fi
  1324. test -n "$ac_init_help" && exit $ac_status
  1325. if $ac_init_version; then
  1326. cat <<\_ACEOF
  1327. aria2c configure 0.12.0
  1328. generated by GNU Autoconf 2.61
  1329. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1330. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1331. This configure script is free software; the Free Software Foundation
  1332. gives unlimited permission to copy, distribute and modify it.
  1333. _ACEOF
  1334. exit
  1335. fi
  1336. cat >config.log <<_ACEOF
  1337. This file contains any messages produced by compilers while
  1338. running configure, to aid debugging if configure makes a mistake.
  1339. It was created by aria2c $as_me 0.12.0, which was
  1340. generated by GNU Autoconf 2.61. Invocation command line was
  1341. $ $0 $@
  1342. _ACEOF
  1343. exec 5>>config.log
  1344. {
  1345. cat <<_ASUNAME
  1346. ## --------- ##
  1347. ## Platform. ##
  1348. ## --------- ##
  1349. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1350. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1351. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1352. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1353. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1354. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1355. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1356. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1357. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1358. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1359. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1360. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1361. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1362. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1363. _ASUNAME
  1364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1365. for as_dir in $PATH
  1366. do
  1367. IFS=$as_save_IFS
  1368. test -z "$as_dir" && as_dir=.
  1369. echo "PATH: $as_dir"
  1370. done
  1371. IFS=$as_save_IFS
  1372. } >&5
  1373. cat >&5 <<_ACEOF
  1374. ## ----------- ##
  1375. ## Core tests. ##
  1376. ## ----------- ##
  1377. _ACEOF
  1378. # Keep a trace of the command line.
  1379. # Strip out --no-create and --no-recursion so they do not pile up.
  1380. # Strip out --silent because we don't want to record it for future runs.
  1381. # Also quote any args containing shell meta-characters.
  1382. # Make two passes to allow for proper duplicate-argument suppression.
  1383. ac_configure_args=
  1384. ac_configure_args0=
  1385. ac_configure_args1=
  1386. ac_must_keep_next=false
  1387. for ac_pass in 1 2
  1388. do
  1389. for ac_arg
  1390. do
  1391. case $ac_arg in
  1392. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1393. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1394. | -silent | --silent | --silen | --sile | --sil)
  1395. continue ;;
  1396. *\'*)
  1397. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1398. esac
  1399. case $ac_pass in
  1400. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1401. 2)
  1402. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1403. if test $ac_must_keep_next = true; then
  1404. ac_must_keep_next=false # Got value, back to normal.
  1405. else
  1406. case $ac_arg in
  1407. *=* | --config-cache | -C | -disable-* | --disable-* \
  1408. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1409. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1410. | -with-* | --with-* | -without-* | --without-* | --x)
  1411. case "$ac_configure_args0 " in
  1412. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1413. esac
  1414. ;;
  1415. -* ) ac_must_keep_next=true ;;
  1416. esac
  1417. fi
  1418. ac_configure_args="$ac_configure_args '$ac_arg'"
  1419. ;;
  1420. esac
  1421. done
  1422. done
  1423. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1424. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1425. # When interrupted or exit'd, cleanup temporary files, and complete
  1426. # config.log. We remove comments because anyway the quotes in there
  1427. # would cause problems or look ugly.
  1428. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1429. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1430. trap 'exit_status=$?
  1431. # Save into config.log some information that might help in debugging.
  1432. {
  1433. echo
  1434. cat <<\_ASBOX
  1435. ## ---------------- ##
  1436. ## Cache variables. ##
  1437. ## ---------------- ##
  1438. _ASBOX
  1439. echo
  1440. # The following way of writing the cache mishandles newlines in values,
  1441. (
  1442. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1443. eval ac_val=\$$ac_var
  1444. case $ac_val in #(
  1445. *${as_nl}*)
  1446. case $ac_var in #(
  1447. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1448. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1449. esac
  1450. case $ac_var in #(
  1451. _ | IFS | as_nl) ;; #(
  1452. *) $as_unset $ac_var ;;
  1453. esac ;;
  1454. esac
  1455. done
  1456. (set) 2>&1 |
  1457. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1458. *${as_nl}ac_space=\ *)
  1459. sed -n \
  1460. "s/'\''/'\''\\\\'\'''\''/g;
  1461. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1462. ;; #(
  1463. *)
  1464. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1465. ;;
  1466. esac |
  1467. sort
  1468. )
  1469. echo
  1470. cat <<\_ASBOX
  1471. ## ----------------- ##
  1472. ## Output variables. ##
  1473. ## ----------------- ##
  1474. _ASBOX
  1475. echo
  1476. for ac_var in $ac_subst_vars
  1477. do
  1478. eval ac_val=\$$ac_var
  1479. case $ac_val in
  1480. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1481. esac
  1482. echo "$ac_var='\''$ac_val'\''"
  1483. done | sort
  1484. echo
  1485. if test -n "$ac_subst_files"; then
  1486. cat <<\_ASBOX
  1487. ## ------------------- ##
  1488. ## File substitutions. ##
  1489. ## ------------------- ##
  1490. _ASBOX
  1491. echo
  1492. for ac_var in $ac_subst_files
  1493. do
  1494. eval ac_val=\$$ac_var
  1495. case $ac_val in
  1496. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1497. esac
  1498. echo "$ac_var='\''$ac_val'\''"
  1499. done | sort
  1500. echo
  1501. fi
  1502. if test -s confdefs.h; then
  1503. cat <<\_ASBOX
  1504. ## ----------- ##
  1505. ## confdefs.h. ##
  1506. ## ----------- ##
  1507. _ASBOX
  1508. echo
  1509. cat confdefs.h
  1510. echo
  1511. fi
  1512. test "$ac_signal" != 0 &&
  1513. echo "$as_me: caught signal $ac_signal"
  1514. echo "$as_me: exit $exit_status"
  1515. } >&5
  1516. rm -f core *.core core.conftest.* &&
  1517. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1518. exit $exit_status
  1519. ' 0
  1520. for ac_signal in 1 2 13 15; do
  1521. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1522. done
  1523. ac_signal=0
  1524. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1525. rm -f -r conftest* confdefs.h
  1526. # Predefined preprocessor variables.
  1527. cat >>confdefs.h <<_ACEOF
  1528. #define PACKAGE_NAME "$PACKAGE_NAME"
  1529. _ACEOF
  1530. cat >>confdefs.h <<_ACEOF
  1531. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1532. _ACEOF
  1533. cat >>confdefs.h <<_ACEOF
  1534. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1535. _ACEOF
  1536. cat >>confdefs.h <<_ACEOF
  1537. #define PACKAGE_STRING "$PACKAGE_STRING"
  1538. _ACEOF
  1539. cat >>confdefs.h <<_ACEOF
  1540. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1541. _ACEOF
  1542. # Let the site file select an alternate cache file if it wants to.
  1543. # Prefer explicitly selected file to automatically selected ones.
  1544. if test -n "$CONFIG_SITE"; then
  1545. set x "$CONFIG_SITE"
  1546. elif test "x$prefix" != xNONE; then
  1547. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1548. else
  1549. set x "$ac_default_prefix/share/config.site" \
  1550. "$ac_default_prefix/etc/config.site"
  1551. fi
  1552. shift
  1553. for ac_site_file
  1554. do
  1555. if test -r "$ac_site_file"; then
  1556. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1557. echo "$as_me: loading site script $ac_site_file" >&6;}
  1558. sed 's/^/| /' "$ac_site_file" >&5
  1559. . "$ac_site_file"
  1560. fi
  1561. done
  1562. if test -r "$cache_file"; then
  1563. # Some versions of bash will fail to source /dev/null (special
  1564. # files actually), so we avoid doing that.
  1565. if test -f "$cache_file"; then
  1566. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1567. echo "$as_me: loading cache $cache_file" >&6;}
  1568. case $cache_file in
  1569. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1570. *) . "./$cache_file";;
  1571. esac
  1572. fi
  1573. else
  1574. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1575. echo "$as_me: creating cache $cache_file" >&6;}
  1576. >$cache_file
  1577. fi
  1578. # Check that the precious variables saved in the cache have kept the same
  1579. # value.
  1580. ac_cache_corrupted=false
  1581. for ac_var in $ac_precious_vars; do
  1582. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1583. eval ac_new_set=\$ac_env_${ac_var}_set
  1584. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1585. eval ac_new_val=\$ac_env_${ac_var}_value
  1586. case $ac_old_set,$ac_new_set in
  1587. set,)
  1588. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1589. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1590. ac_cache_corrupted=: ;;
  1591. ,set)
  1592. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1593. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1594. ac_cache_corrupted=: ;;
  1595. ,);;
  1596. *)
  1597. if test "x$ac_old_val" != "x$ac_new_val"; then
  1598. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1599. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1600. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1601. echo "$as_me: former value: $ac_old_val" >&2;}
  1602. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1603. echo "$as_me: current value: $ac_new_val" >&2;}
  1604. ac_cache_corrupted=:
  1605. fi;;
  1606. esac
  1607. # Pass precious variables to config.status.
  1608. if test "$ac_new_set" = set; then
  1609. case $ac_new_val in
  1610. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1611. *) ac_arg=$ac_var=$ac_new_val ;;
  1612. esac
  1613. case " $ac_configure_args " in
  1614. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1615. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1616. esac
  1617. fi
  1618. done
  1619. if $ac_cache_corrupted; then
  1620. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1621. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1622. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1623. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1624. { (exit 1); exit 1; }; }
  1625. fi
  1626. ac_ext=c
  1627. ac_cpp='$CPP $CPPFLAGS'
  1628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1631. ac_aux_dir=
  1632. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1633. if test -f "$ac_dir/install-sh"; then
  1634. ac_aux_dir=$ac_dir
  1635. ac_install_sh="$ac_aux_dir/install-sh -c"
  1636. break
  1637. elif test -f "$ac_dir/install.sh"; then
  1638. ac_aux_dir=$ac_dir
  1639. ac_install_sh="$ac_aux_dir/install.sh -c"
  1640. break
  1641. elif test -f "$ac_dir/shtool"; then
  1642. ac_aux_dir=$ac_dir
  1643. ac_install_sh="$ac_aux_dir/shtool install -c"
  1644. break
  1645. fi
  1646. done
  1647. if test -z "$ac_aux_dir"; then
  1648. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1649. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1650. { (exit 1); exit 1; }; }
  1651. fi
  1652. # These three variables are undocumented and unsupported,
  1653. # and are intended to be withdrawn in a future Autoconf release.
  1654. # They can cause serious problems if a builder's source tree is in a directory
  1655. # whose full name contains unusual characters.
  1656. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1657. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1658. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1659. # Make sure we can run config.sub.
  1660. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1661. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1662. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1663. { (exit 1); exit 1; }; }
  1664. { echo "$as_me:$LINENO: checking build system type" >&5
  1665. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1666. if test "${ac_cv_build+set}" = set; then
  1667. echo $ECHO_N "(cached) $ECHO_C" >&6
  1668. else
  1669. ac_build_alias=$build_alias
  1670. test "x$ac_build_alias" = x &&
  1671. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1672. test "x$ac_build_alias" = x &&
  1673. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1674. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1675. { (exit 1); exit 1; }; }
  1676. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1677. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1678. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1679. { (exit 1); exit 1; }; }
  1680. fi
  1681. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1682. echo "${ECHO_T}$ac_cv_build" >&6; }
  1683. case $ac_cv_build in
  1684. *-*-*) ;;
  1685. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1686. echo "$as_me: error: invalid value of canonical build" >&2;}
  1687. { (exit 1); exit 1; }; };;
  1688. esac
  1689. build=$ac_cv_build
  1690. ac_save_IFS=$IFS; IFS='-'
  1691. set x $ac_cv_build
  1692. shift
  1693. build_cpu=$1
  1694. build_vendor=$2
  1695. shift; shift
  1696. # Remember, the first character of IFS is used to create $*,
  1697. # except with old shells:
  1698. build_os=$*
  1699. IFS=$ac_save_IFS
  1700. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1701. { echo "$as_me:$LINENO: checking host system type" >&5
  1702. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1703. if test "${ac_cv_host+set}" = set; then
  1704. echo $ECHO_N "(cached) $ECHO_C" >&6
  1705. else
  1706. if test "x$host_alias" = x; then
  1707. ac_cv_host=$ac_cv_build
  1708. else
  1709. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1710. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1711. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1712. { (exit 1); exit 1; }; }
  1713. fi
  1714. fi
  1715. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1716. echo "${ECHO_T}$ac_cv_host" >&6; }
  1717. case $ac_cv_host in
  1718. *-*-*) ;;
  1719. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1720. echo "$as_me: error: invalid value of canonical host" >&2;}
  1721. { (exit 1); exit 1; }; };;
  1722. esac
  1723. host=$ac_cv_host
  1724. ac_save_IFS=$IFS; IFS='-'
  1725. set x $ac_cv_host
  1726. shift
  1727. host_cpu=$1
  1728. host_vendor=$2
  1729. shift; shift
  1730. # Remember, the first character of IFS is used to create $*,
  1731. # except with old shells:
  1732. host_os=$*
  1733. IFS=$ac_save_IFS
  1734. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1735. { echo "$as_me:$LINENO: checking target system type" >&5
  1736. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1737. if test "${ac_cv_target+set}" = set; then
  1738. echo $ECHO_N "(cached) $ECHO_C" >&6
  1739. else
  1740. if test "x$target_alias" = x; then
  1741. ac_cv_target=$ac_cv_host
  1742. else
  1743. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1744. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1745. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1746. { (exit 1); exit 1; }; }
  1747. fi
  1748. fi
  1749. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1750. echo "${ECHO_T}$ac_cv_target" >&6; }
  1751. case $ac_cv_target in
  1752. *-*-*) ;;
  1753. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1754. echo "$as_me: error: invalid value of canonical target" >&2;}
  1755. { (exit 1); exit 1; }; };;
  1756. esac
  1757. target=$ac_cv_target
  1758. ac_save_IFS=$IFS; IFS='-'
  1759. set x $ac_cv_target
  1760. shift
  1761. target_cpu=$1
  1762. target_vendor=$2
  1763. shift; shift
  1764. # Remember, the first character of IFS is used to create $*,
  1765. # except with old shells:
  1766. target_os=$*
  1767. IFS=$ac_save_IFS
  1768. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1769. # The aliases save the names the user supplied, while $host etc.
  1770. # will get canonicalized.
  1771. test -n "$target_alias" &&
  1772. test "$program_prefix$program_suffix$program_transform_name" = \
  1773. NONENONEs,x,x, &&
  1774. program_prefix=${target_alias}-
  1775. am__api_version="1.9"
  1776. # Find a good install program. We prefer a C program (faster),
  1777. # so one script is as good as another. But avoid the broken or
  1778. # incompatible versions:
  1779. # SysV /etc/install, /usr/sbin/install
  1780. # SunOS /usr/etc/install
  1781. # IRIX /sbin/install
  1782. # AIX /bin/install
  1783. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1784. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1785. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1786. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1787. # OS/2's system install, which has a completely different semantic
  1788. # ./install, which can be erroneously created by make from ./install.sh.
  1789. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1790. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1791. if test -z "$INSTALL"; then
  1792. if test "${ac_cv_path_install+set}" = set; then
  1793. echo $ECHO_N "(cached) $ECHO_C" >&6
  1794. else
  1795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1796. for as_dir in $PATH
  1797. do
  1798. IFS=$as_save_IFS
  1799. test -z "$as_dir" && as_dir=.
  1800. # Account for people who put trailing slashes in PATH elements.
  1801. case $as_dir/ in
  1802. ./ | .// | /cC/* | \
  1803. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1804. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1805. /usr/ucb/* ) ;;
  1806. *)
  1807. # OSF1 and SCO ODT 3.0 have their own names for install.
  1808. # Don't use installbsd from OSF since it installs stuff as root
  1809. # by default.
  1810. for ac_prog in ginstall scoinst install; do
  1811. for ac_exec_ext in '' $ac_executable_extensions; do
  1812. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1813. if test $ac_prog = install &&
  1814. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1815. # AIX install. It has an incompatible calling convention.
  1816. :
  1817. elif test $ac_prog = install &&
  1818. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1819. # program-specific install script used by HP pwplus--don't use.
  1820. :
  1821. else
  1822. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1823. break 3
  1824. fi
  1825. fi
  1826. done
  1827. done
  1828. ;;
  1829. esac
  1830. done
  1831. IFS=$as_save_IFS
  1832. fi
  1833. if test "${ac_cv_path_install+set}" = set; then
  1834. INSTALL=$ac_cv_path_install
  1835. else
  1836. # As a last resort, use the slow shell script. Don't cache a
  1837. # value for INSTALL within a source directory, because that will
  1838. # break other packages using the cache if that directory is
  1839. # removed, or if the value is a relative name.
  1840. INSTALL=$ac_install_sh
  1841. fi
  1842. fi
  1843. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1844. echo "${ECHO_T}$INSTALL" >&6; }
  1845. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1846. # It thinks the first close brace ends the variable substitution.
  1847. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1848. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1849. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1850. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1851. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1852. # Just in case
  1853. sleep 1
  1854. echo timestamp > conftest.file
  1855. # Do `set' in a subshell so we don't clobber the current shell's
  1856. # arguments. Must try -L first in case configure is actually a
  1857. # symlink; some systems play weird games with the mod time of symlinks
  1858. # (eg FreeBSD returns the mod time of the symlink's containing
  1859. # directory).
  1860. if (
  1861. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1862. if test "$*" = "X"; then
  1863. # -L didn't work.
  1864. set X `ls -t $srcdir/configure conftest.file`
  1865. fi
  1866. rm -f conftest.file
  1867. if test "$*" != "X $srcdir/configure conftest.file" \
  1868. && test "$*" != "X conftest.file $srcdir/configure"; then
  1869. # If neither matched, then we have a broken ls. This can happen
  1870. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1871. # broken ls alias from the environment. This has actually
  1872. # happened. Such a system could not be considered "sane".
  1873. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1874. alias in your environment" >&5
  1875. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1876. alias in your environment" >&2;}
  1877. { (exit 1); exit 1; }; }
  1878. fi
  1879. test "$2" = conftest.file
  1880. )
  1881. then
  1882. # Ok.
  1883. :
  1884. else
  1885. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1886. Check your system clock" >&5
  1887. echo "$as_me: error: newly created file is older than distributed files!
  1888. Check your system clock" >&2;}
  1889. { (exit 1); exit 1; }; }
  1890. fi
  1891. { echo "$as_me:$LINENO: result: yes" >&5
  1892. echo "${ECHO_T}yes" >&6; }
  1893. test "$program_prefix" != NONE &&
  1894. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1895. # Use a double $ so make ignores it.
  1896. test "$program_suffix" != NONE &&
  1897. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1898. # Double any \ or $. echo might interpret backslashes.
  1899. # By default was `s,x,x', remove it if useless.
  1900. cat <<\_ACEOF >conftest.sed
  1901. s/[\\$]/&&/g;s/;s,x,x,$//
  1902. _ACEOF
  1903. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1904. rm -f conftest.sed
  1905. # expand $ac_aux_dir to an absolute path
  1906. am_aux_dir=`cd $ac_aux_dir && pwd`
  1907. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1908. # Use eval to expand $SHELL
  1909. if eval "$MISSING --run true"; then
  1910. am_missing_run="$MISSING --run "
  1911. else
  1912. am_missing_run=
  1913. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1914. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1915. fi
  1916. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1917. # We used to keeping the `.' as first argument, in order to
  1918. # allow $(mkdir_p) to be used without argument. As in
  1919. # $(mkdir_p) $(somedir)
  1920. # where $(somedir) is conditionally defined. However this is wrong
  1921. # for two reasons:
  1922. # 1. if the package is installed by a user who cannot write `.'
  1923. # make install will fail,
  1924. # 2. the above comment should most certainly read
  1925. # $(mkdir_p) $(DESTDIR)$(somedir)
  1926. # so it does not work when $(somedir) is undefined and
  1927. # $(DESTDIR) is not.
  1928. # To support the latter case, we have to write
  1929. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1930. # so the `.' trick is pointless.
  1931. mkdir_p='mkdir -p --'
  1932. else
  1933. # On NextStep and OpenStep, the `mkdir' command does not
  1934. # recognize any option. It will interpret all options as
  1935. # directories to create, and then abort because `.' already
  1936. # exists.
  1937. for d in ./-p ./--version;
  1938. do
  1939. test -d $d && rmdir $d
  1940. done
  1941. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1942. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1943. mkdir_p='$(mkinstalldirs)'
  1944. else
  1945. mkdir_p='$(install_sh) -d'
  1946. fi
  1947. fi
  1948. for ac_prog in gawk mawk nawk awk
  1949. do
  1950. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1951. set dummy $ac_prog; ac_word=$2
  1952. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1953. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1954. if test "${ac_cv_prog_AWK+set}" = set; then
  1955. echo $ECHO_N "(cached) $ECHO_C" >&6
  1956. else
  1957. if test -n "$AWK"; then
  1958. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1959. else
  1960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1961. for as_dir in $PATH
  1962. do
  1963. IFS=$as_save_IFS
  1964. test -z "$as_dir" && as_dir=.
  1965. for ac_exec_ext in '' $ac_executable_extensions; do
  1966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1967. ac_cv_prog_AWK="$ac_prog"
  1968. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1969. break 2
  1970. fi
  1971. done
  1972. done
  1973. IFS=$as_save_IFS
  1974. fi
  1975. fi
  1976. AWK=$ac_cv_prog_AWK
  1977. if test -n "$AWK"; then
  1978. { echo "$as_me:$LINENO: result: $AWK" >&5
  1979. echo "${ECHO_T}$AWK" >&6; }
  1980. else
  1981. { echo "$as_me:$LINENO: result: no" >&5
  1982. echo "${ECHO_T}no" >&6; }
  1983. fi
  1984. test -n "$AWK" && break
  1985. done
  1986. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1987. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1988. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1989. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1990. echo $ECHO_N "(cached) $ECHO_C" >&6
  1991. else
  1992. cat >conftest.make <<\_ACEOF
  1993. SHELL = /bin/sh
  1994. all:
  1995. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1996. _ACEOF
  1997. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1998. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1999. *@@@%%%=?*=@@@%%%*)
  2000. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2001. *)
  2002. eval ac_cv_prog_make_${ac_make}_set=no;;
  2003. esac
  2004. rm -f conftest.make
  2005. fi
  2006. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2007. { echo "$as_me:$LINENO: result: yes" >&5
  2008. echo "${ECHO_T}yes" >&6; }
  2009. SET_MAKE=
  2010. else
  2011. { echo "$as_me:$LINENO: result: no" >&5
  2012. echo "${ECHO_T}no" >&6; }
  2013. SET_MAKE="MAKE=${MAKE-make}"
  2014. fi
  2015. rm -rf .tst 2>/dev/null
  2016. mkdir .tst 2>/dev/null
  2017. if test -d .tst; then
  2018. am__leading_dot=.
  2019. else
  2020. am__leading_dot=_
  2021. fi
  2022. rmdir .tst 2>/dev/null
  2023. # test to see if srcdir already configured
  2024. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2025. test -f $srcdir/config.status; then
  2026. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2027. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2028. { (exit 1); exit 1; }; }
  2029. fi
  2030. # test whether we have cygpath
  2031. if test -z "$CYGPATH_W"; then
  2032. if (cygpath --version) >/dev/null 2>/dev/null; then
  2033. CYGPATH_W='cygpath -w'
  2034. else
  2035. CYGPATH_W=echo
  2036. fi
  2037. fi
  2038. # Define the identity of the package.
  2039. PACKAGE='aria2c'
  2040. VERSION='0.12.0'
  2041. cat >>confdefs.h <<_ACEOF
  2042. #define PACKAGE "$PACKAGE"
  2043. _ACEOF
  2044. cat >>confdefs.h <<_ACEOF
  2045. #define VERSION "$VERSION"
  2046. _ACEOF
  2047. # Some tools Automake needs.
  2048. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2049. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2050. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2051. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2052. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2053. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2054. # Installed binaries are usually stripped using `strip' when the user
  2055. # run `make install-strip'. However `strip' might not be the right
  2056. # tool to use in cross-compilation environments, therefore Automake
  2057. # will honor the `STRIP' environment variable to overrule this program.
  2058. if test "$cross_compiling" != no; then
  2059. if test -n "$ac_tool_prefix"; then
  2060. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2061. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2062. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2063. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2064. if test "${ac_cv_prog_STRIP+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. if test -n "$STRIP"; then
  2068. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2069. else
  2070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2071. for as_dir in $PATH
  2072. do
  2073. IFS=$as_save_IFS
  2074. test -z "$as_dir" && as_dir=.
  2075. for ac_exec_ext in '' $ac_executable_extensions; do
  2076. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2077. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2078. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2079. break 2
  2080. fi
  2081. done
  2082. done
  2083. IFS=$as_save_IFS
  2084. fi
  2085. fi
  2086. STRIP=$ac_cv_prog_STRIP
  2087. if test -n "$STRIP"; then
  2088. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2089. echo "${ECHO_T}$STRIP" >&6; }
  2090. else
  2091. { echo "$as_me:$LINENO: result: no" >&5
  2092. echo "${ECHO_T}no" >&6; }
  2093. fi
  2094. fi
  2095. if test -z "$ac_cv_prog_STRIP"; then
  2096. ac_ct_STRIP=$STRIP
  2097. # Extract the first word of "strip", so it can be a program name with args.
  2098. set dummy strip; ac_word=$2
  2099. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2100. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2101. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2102. echo $ECHO_N "(cached) $ECHO_C" >&6
  2103. else
  2104. if test -n "$ac_ct_STRIP"; then
  2105. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2106. else
  2107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2108. for as_dir in $PATH
  2109. do
  2110. IFS=$as_save_IFS
  2111. test -z "$as_dir" && as_dir=.
  2112. for ac_exec_ext in '' $ac_executable_extensions; do
  2113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2114. ac_cv_prog_ac_ct_STRIP="strip"
  2115. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2116. break 2
  2117. fi
  2118. done
  2119. done
  2120. IFS=$as_save_IFS
  2121. fi
  2122. fi
  2123. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2124. if test -n "$ac_ct_STRIP"; then
  2125. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2126. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2127. else
  2128. { echo "$as_me:$LINENO: result: no" >&5
  2129. echo "${ECHO_T}no" >&6; }
  2130. fi
  2131. if test "x$ac_ct_STRIP" = x; then
  2132. STRIP=":"
  2133. else
  2134. case $cross_compiling:$ac_tool_warned in
  2135. yes:)
  2136. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2137. whose name does not start with the host triplet. If you think this
  2138. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2139. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2140. whose name does not start with the host triplet. If you think this
  2141. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2142. ac_tool_warned=yes ;;
  2143. esac
  2144. STRIP=$ac_ct_STRIP
  2145. fi
  2146. else
  2147. STRIP="$ac_cv_prog_STRIP"
  2148. fi
  2149. fi
  2150. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2151. # We need awk for the "check" target. The system "awk" is bad on
  2152. # some platforms.
  2153. # Always define AMTAR for backward compatibility.
  2154. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2155. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2156. # Check whether --with-cppunit-prefix was given.
  2157. if test "${with_cppunit_prefix+set}" = set; then
  2158. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2159. else
  2160. cppunit_config_prefix=""
  2161. fi
  2162. # Check whether --with-cppunit-exec-prefix was given.
  2163. if test "${with_cppunit_exec_prefix+set}" = set; then
  2164. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2165. else
  2166. cppunit_config_exec_prefix=""
  2167. fi
  2168. if test x$cppunit_config_exec_prefix != x ; then
  2169. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2170. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2171. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2172. fi
  2173. fi
  2174. if test x$cppunit_config_prefix != x ; then
  2175. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2176. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2177. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2178. fi
  2179. fi
  2180. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2181. set dummy cppunit-config; ac_word=$2
  2182. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2183. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2184. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2185. echo $ECHO_N "(cached) $ECHO_C" >&6
  2186. else
  2187. case $CPPUNIT_CONFIG in
  2188. [\\/]* | ?:[\\/]*)
  2189. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2190. ;;
  2191. *)
  2192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2193. for as_dir in $PATH
  2194. do
  2195. IFS=$as_save_IFS
  2196. test -z "$as_dir" && as_dir=.
  2197. for ac_exec_ext in '' $ac_executable_extensions; do
  2198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2199. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2200. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2201. break 2
  2202. fi
  2203. done
  2204. done
  2205. IFS=$as_save_IFS
  2206. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2207. ;;
  2208. esac
  2209. fi
  2210. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2211. if test -n "$CPPUNIT_CONFIG"; then
  2212. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2213. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2214. else
  2215. { echo "$as_me:$LINENO: result: no" >&5
  2216. echo "${ECHO_T}no" >&6; }
  2217. fi
  2218. cppunit_version_min=1.10.2
  2219. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2220. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2221. no_cppunit=""
  2222. if test "$CPPUNIT_CONFIG" = "no" ; then
  2223. { echo "$as_me:$LINENO: result: no" >&5
  2224. echo "${ECHO_T}no" >&6; }
  2225. no_cppunit=yes
  2226. else
  2227. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2228. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2229. cppunit_version=`$CPPUNIT_CONFIG --version`
  2230. cppunit_major_version=`echo $cppunit_version | \
  2231. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2232. cppunit_minor_version=`echo $cppunit_version | \
  2233. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2234. cppunit_micro_version=`echo $cppunit_version | \
  2235. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2236. cppunit_major_min=`echo $cppunit_version_min | \
  2237. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2238. if test "x${cppunit_major_min}" = "x" ; then
  2239. cppunit_major_min=0
  2240. fi
  2241. cppunit_minor_min=`echo $cppunit_version_min | \
  2242. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2243. if test "x${cppunit_minor_min}" = "x" ; then
  2244. cppunit_minor_min=0
  2245. fi
  2246. cppunit_micro_min=`echo $cppunit_version_min | \
  2247. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2248. if test "x${cppunit_micro_min}" = "x" ; then
  2249. cppunit_micro_min=0
  2250. fi
  2251. cppunit_version_proper=`expr \
  2252. $cppunit_major_version \> $cppunit_major_min \| \
  2253. $cppunit_major_version \= $cppunit_major_min \& \
  2254. $cppunit_minor_version \> $cppunit_minor_min \| \
  2255. $cppunit_major_version \= $cppunit_major_min \& \
  2256. $cppunit_minor_version \= $cppunit_minor_min \& \
  2257. $cppunit_micro_version \>= $cppunit_micro_min `
  2258. if test "$cppunit_version_proper" = "1" ; then
  2259. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2260. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2261. else
  2262. { echo "$as_me:$LINENO: result: no" >&5
  2263. echo "${ECHO_T}no" >&6; }
  2264. no_cppunit=yes
  2265. fi
  2266. fi
  2267. if test "x$no_cppunit" = x ; then
  2268. :
  2269. else
  2270. CPPUNIT_CFLAGS=""
  2271. CPPUNIT_LIBS=""
  2272. :
  2273. fi
  2274. ac_config_headers="$ac_config_headers config.h"
  2275. case "$target" in
  2276. *mingw*|*cygwin*)
  2277. WINSOCK_LIBS="-lws2_32"
  2278. ;;
  2279. esac
  2280. cat >>confdefs.h <<_ACEOF
  2281. #define TARGET "$target"
  2282. _ACEOF
  2283. # Set localedir
  2284. localedir=${datadir}/locale
  2285. # Checks for arguments.
  2286. # Check whether --with-gnutls was given.
  2287. if test "${with_gnutls+set}" = set; then
  2288. withval=$with_gnutls; with_gnutls=$withval
  2289. else
  2290. with_gnutls=yes
  2291. fi
  2292. # Check whether --with-openssl was given.
  2293. if test "${with_openssl+set}" = set; then
  2294. withval=$with_openssl; with_openssl=$withval
  2295. else
  2296. with_openssl=yes
  2297. fi
  2298. # Check whether --with-libxml2 was given.
  2299. if test "${with_libxml2+set}" = set; then
  2300. withval=$with_libxml2; with_libxml2=$withval
  2301. else
  2302. with_libxml2=yes
  2303. fi
  2304. # Check whether --with-libexpat was given.
  2305. if test "${with_libexpat+set}" = set; then
  2306. withval=$with_libexpat; with_libexpat=$withval
  2307. else
  2308. with_libexpat=yes
  2309. fi
  2310. # Check whether --with-libares was given.
  2311. if test "${with_libares+set}" = set; then
  2312. withval=$with_libares; with_libares=$withval
  2313. else
  2314. with_libares=yes
  2315. fi
  2316. # Check whether --with-libcares was given.
  2317. if test "${with_libcares+set}" = set; then
  2318. withval=$with_libcares; with_libcares=$withval
  2319. else
  2320. with_libcares=yes
  2321. fi
  2322. # Check whether --enable-bittorrent was given.
  2323. if test "${enable_bittorrent+set}" = set; then
  2324. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2325. else
  2326. enable_bittorrent=yes
  2327. fi
  2328. # Check whether --enable-metalink was given.
  2329. if test "${enable_metalink+set}" = set; then
  2330. enableval=$enable_metalink; enable_metalink=$enableval
  2331. else
  2332. enable_metalink=yes
  2333. fi
  2334. # Checks for programs.
  2335. ac_ext=cpp
  2336. ac_cpp='$CXXCPP $CPPFLAGS'
  2337. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2338. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2339. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2340. if test -z "$CXX"; then
  2341. if test -n "$CCC"; then
  2342. CXX=$CCC
  2343. else
  2344. if test -n "$ac_tool_prefix"; then
  2345. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2346. do
  2347. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2348. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2349. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2350. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2351. if test "${ac_cv_prog_CXX+set}" = set; then
  2352. echo $ECHO_N "(cached) $ECHO_C" >&6
  2353. else
  2354. if test -n "$CXX"; then
  2355. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_exec_ext in '' $ac_executable_extensions; do
  2363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2364. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2365. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366. break 2
  2367. fi
  2368. done
  2369. done
  2370. IFS=$as_save_IFS
  2371. fi
  2372. fi
  2373. CXX=$ac_cv_prog_CXX
  2374. if test -n "$CXX"; then
  2375. { echo "$as_me:$LINENO: result: $CXX" >&5
  2376. echo "${ECHO_T}$CXX" >&6; }
  2377. else
  2378. { echo "$as_me:$LINENO: result: no" >&5
  2379. echo "${ECHO_T}no" >&6; }
  2380. fi
  2381. test -n "$CXX" && break
  2382. done
  2383. fi
  2384. if test -z "$CXX"; then
  2385. ac_ct_CXX=$CXX
  2386. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2387. do
  2388. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2389. set dummy $ac_prog; ac_word=$2
  2390. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2391. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2392. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2393. echo $ECHO_N "(cached) $ECHO_C" >&6
  2394. else
  2395. if test -n "$ac_ct_CXX"; then
  2396. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2397. else
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. for ac_exec_ext in '' $ac_executable_extensions; do
  2404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2405. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2406. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2407. break 2
  2408. fi
  2409. done
  2410. done
  2411. IFS=$as_save_IFS
  2412. fi
  2413. fi
  2414. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2415. if test -n "$ac_ct_CXX"; then
  2416. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2417. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2418. else
  2419. { echo "$as_me:$LINENO: result: no" >&5
  2420. echo "${ECHO_T}no" >&6; }
  2421. fi
  2422. test -n "$ac_ct_CXX" && break
  2423. done
  2424. if test "x$ac_ct_CXX" = x; then
  2425. CXX="g++"
  2426. else
  2427. case $cross_compiling:$ac_tool_warned in
  2428. yes:)
  2429. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2430. whose name does not start with the host triplet. If you think this
  2431. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2432. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2433. whose name does not start with the host triplet. If you think this
  2434. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2435. ac_tool_warned=yes ;;
  2436. esac
  2437. CXX=$ac_ct_CXX
  2438. fi
  2439. fi
  2440. fi
  2441. fi
  2442. # Provide some information about the compiler.
  2443. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2444. ac_compiler=`set X $ac_compile; echo $2`
  2445. { (ac_try="$ac_compiler --version >&5"
  2446. case "(($ac_try" in
  2447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2448. *) ac_try_echo=$ac_try;;
  2449. esac
  2450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2451. (eval "$ac_compiler --version >&5") 2>&5
  2452. ac_status=$?
  2453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2454. (exit $ac_status); }
  2455. { (ac_try="$ac_compiler -v >&5"
  2456. case "(($ac_try" in
  2457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2458. *) ac_try_echo=$ac_try;;
  2459. esac
  2460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2461. (eval "$ac_compiler -v >&5") 2>&5
  2462. ac_status=$?
  2463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2464. (exit $ac_status); }
  2465. { (ac_try="$ac_compiler -V >&5"
  2466. case "(($ac_try" in
  2467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2468. *) ac_try_echo=$ac_try;;
  2469. esac
  2470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2471. (eval "$ac_compiler -V >&5") 2>&5
  2472. ac_status=$?
  2473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2474. (exit $ac_status); }
  2475. cat >conftest.$ac_ext <<_ACEOF
  2476. /* confdefs.h. */
  2477. _ACEOF
  2478. cat confdefs.h >>conftest.$ac_ext
  2479. cat >>conftest.$ac_ext <<_ACEOF
  2480. /* end confdefs.h. */
  2481. int
  2482. main ()
  2483. {
  2484. ;
  2485. return 0;
  2486. }
  2487. _ACEOF
  2488. ac_clean_files_save=$ac_clean_files
  2489. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2490. # Try to create an executable without -o first, disregard a.out.
  2491. # It will help us diagnose broken compilers, and finding out an intuition
  2492. # of exeext.
  2493. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2494. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2495. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2496. #
  2497. # List of possible output files, starting from the most likely.
  2498. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2499. # only as a last resort. b.out is created by i960 compilers.
  2500. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2501. #
  2502. # The IRIX 6 linker writes into existing files which may not be
  2503. # executable, retaining their permissions. Remove them first so a
  2504. # subsequent execution test works.
  2505. ac_rmfiles=
  2506. for ac_file in $ac_files
  2507. do
  2508. case $ac_file in
  2509. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2510. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2511. esac
  2512. done
  2513. rm -f $ac_rmfiles
  2514. if { (ac_try="$ac_link_default"
  2515. case "(($ac_try" in
  2516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2517. *) ac_try_echo=$ac_try;;
  2518. esac
  2519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2520. (eval "$ac_link_default") 2>&5
  2521. ac_status=$?
  2522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2523. (exit $ac_status); }; then
  2524. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2525. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2526. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2527. # so that the user can short-circuit this test for compilers unknown to
  2528. # Autoconf.
  2529. for ac_file in $ac_files ''
  2530. do
  2531. test -f "$ac_file" || continue
  2532. case $ac_file in
  2533. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2534. ;;
  2535. [ab].out )
  2536. # We found the default executable, but exeext='' is most
  2537. # certainly right.
  2538. break;;
  2539. *.* )
  2540. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2541. then :; else
  2542. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2543. fi
  2544. # We set ac_cv_exeext here because the later test for it is not
  2545. # safe: cross compilers may not add the suffix if given an `-o'
  2546. # argument, so we may need to know it at that point already.
  2547. # Even if this section looks crufty: it has the advantage of
  2548. # actually working.
  2549. break;;
  2550. * )
  2551. break;;
  2552. esac
  2553. done
  2554. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2555. else
  2556. ac_file=''
  2557. fi
  2558. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2559. echo "${ECHO_T}$ac_file" >&6; }
  2560. if test -z "$ac_file"; then
  2561. echo "$as_me: failed program was:" >&5
  2562. sed 's/^/| /' conftest.$ac_ext >&5
  2563. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2564. See \`config.log' for more details." >&5
  2565. echo "$as_me: error: C++ compiler cannot create executables
  2566. See \`config.log' for more details." >&2;}
  2567. { (exit 77); exit 77; }; }
  2568. fi
  2569. ac_exeext=$ac_cv_exeext
  2570. # Check that the compiler produces executables we can run. If not, either
  2571. # the compiler is broken, or we cross compile.
  2572. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2573. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2574. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2575. # If not cross compiling, check that we can run a simple program.
  2576. if test "$cross_compiling" != yes; then
  2577. if { ac_try='./$ac_file'
  2578. { (case "(($ac_try" in
  2579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2580. *) ac_try_echo=$ac_try;;
  2581. esac
  2582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2583. (eval "$ac_try") 2>&5
  2584. ac_status=$?
  2585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2586. (exit $ac_status); }; }; then
  2587. cross_compiling=no
  2588. else
  2589. if test "$cross_compiling" = maybe; then
  2590. cross_compiling=yes
  2591. else
  2592. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2593. If you meant to cross compile, use \`--host'.
  2594. See \`config.log' for more details." >&5
  2595. echo "$as_me: error: cannot run C++ compiled programs.
  2596. If you meant to cross compile, use \`--host'.
  2597. See \`config.log' for more details." >&2;}
  2598. { (exit 1); exit 1; }; }
  2599. fi
  2600. fi
  2601. fi
  2602. { echo "$as_me:$LINENO: result: yes" >&5
  2603. echo "${ECHO_T}yes" >&6; }
  2604. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2605. ac_clean_files=$ac_clean_files_save
  2606. # Check that the compiler produces executables we can run. If not, either
  2607. # the compiler is broken, or we cross compile.
  2608. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2609. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2610. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2611. echo "${ECHO_T}$cross_compiling" >&6; }
  2612. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2613. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2614. if { (ac_try="$ac_link"
  2615. case "(($ac_try" in
  2616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2617. *) ac_try_echo=$ac_try;;
  2618. esac
  2619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2620. (eval "$ac_link") 2>&5
  2621. ac_status=$?
  2622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2623. (exit $ac_status); }; then
  2624. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2625. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2626. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2627. # `rm'.
  2628. for ac_file in conftest.exe conftest conftest.*; do
  2629. test -f "$ac_file" || continue
  2630. case $ac_file in
  2631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2632. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2633. break;;
  2634. * ) break;;
  2635. esac
  2636. done
  2637. else
  2638. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2639. See \`config.log' for more details." >&5
  2640. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2641. See \`config.log' for more details." >&2;}
  2642. { (exit 1); exit 1; }; }
  2643. fi
  2644. rm -f conftest$ac_cv_exeext
  2645. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2646. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2647. rm -f conftest.$ac_ext
  2648. EXEEXT=$ac_cv_exeext
  2649. ac_exeext=$EXEEXT
  2650. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2651. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2652. if test "${ac_cv_objext+set}" = set; then
  2653. echo $ECHO_N "(cached) $ECHO_C" >&6
  2654. else
  2655. cat >conftest.$ac_ext <<_ACEOF
  2656. /* confdefs.h. */
  2657. _ACEOF
  2658. cat confdefs.h >>conftest.$ac_ext
  2659. cat >>conftest.$ac_ext <<_ACEOF
  2660. /* end confdefs.h. */
  2661. int
  2662. main ()
  2663. {
  2664. ;
  2665. return 0;
  2666. }
  2667. _ACEOF
  2668. rm -f conftest.o conftest.obj
  2669. if { (ac_try="$ac_compile"
  2670. case "(($ac_try" in
  2671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2672. *) ac_try_echo=$ac_try;;
  2673. esac
  2674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2675. (eval "$ac_compile") 2>&5
  2676. ac_status=$?
  2677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2678. (exit $ac_status); }; then
  2679. for ac_file in conftest.o conftest.obj conftest.*; do
  2680. test -f "$ac_file" || continue;
  2681. case $ac_file in
  2682. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2683. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2684. break;;
  2685. esac
  2686. done
  2687. else
  2688. echo "$as_me: failed program was:" >&5
  2689. sed 's/^/| /' conftest.$ac_ext >&5
  2690. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2691. See \`config.log' for more details." >&5
  2692. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2693. See \`config.log' for more details." >&2;}
  2694. { (exit 1); exit 1; }; }
  2695. fi
  2696. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2697. fi
  2698. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2699. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2700. OBJEXT=$ac_cv_objext
  2701. ac_objext=$OBJEXT
  2702. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2703. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2704. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2705. echo $ECHO_N "(cached) $ECHO_C" >&6
  2706. else
  2707. cat >conftest.$ac_ext <<_ACEOF
  2708. /* confdefs.h. */
  2709. _ACEOF
  2710. cat confdefs.h >>conftest.$ac_ext
  2711. cat >>conftest.$ac_ext <<_ACEOF
  2712. /* end confdefs.h. */
  2713. int
  2714. main ()
  2715. {
  2716. #ifndef __GNUC__
  2717. choke me
  2718. #endif
  2719. ;
  2720. return 0;
  2721. }
  2722. _ACEOF
  2723. rm -f conftest.$ac_objext
  2724. if { (ac_try="$ac_compile"
  2725. case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2730. (eval "$ac_compile") 2>conftest.er1
  2731. ac_status=$?
  2732. grep -v '^ *+' conftest.er1 >conftest.err
  2733. rm -f conftest.er1
  2734. cat conftest.err >&5
  2735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2736. (exit $ac_status); } && {
  2737. test -z "$ac_cxx_werror_flag" ||
  2738. test ! -s conftest.err
  2739. } && test -s conftest.$ac_objext; then
  2740. ac_compiler_gnu=yes
  2741. else
  2742. echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. ac_compiler_gnu=no
  2745. fi
  2746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2747. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2748. fi
  2749. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2750. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2751. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2752. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2753. ac_save_CXXFLAGS=$CXXFLAGS
  2754. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2755. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2756. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2757. echo $ECHO_N "(cached) $ECHO_C" >&6
  2758. else
  2759. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2760. ac_cxx_werror_flag=yes
  2761. ac_cv_prog_cxx_g=no
  2762. CXXFLAGS="-g"
  2763. cat >conftest.$ac_ext <<_ACEOF
  2764. /* confdefs.h. */
  2765. _ACEOF
  2766. cat confdefs.h >>conftest.$ac_ext
  2767. cat >>conftest.$ac_ext <<_ACEOF
  2768. /* end confdefs.h. */
  2769. int
  2770. main ()
  2771. {
  2772. ;
  2773. return 0;
  2774. }
  2775. _ACEOF
  2776. rm -f conftest.$ac_objext
  2777. if { (ac_try="$ac_compile"
  2778. case "(($ac_try" in
  2779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2780. *) ac_try_echo=$ac_try;;
  2781. esac
  2782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2783. (eval "$ac_compile") 2>conftest.er1
  2784. ac_status=$?
  2785. grep -v '^ *+' conftest.er1 >conftest.err
  2786. rm -f conftest.er1
  2787. cat conftest.err >&5
  2788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2789. (exit $ac_status); } && {
  2790. test -z "$ac_cxx_werror_flag" ||
  2791. test ! -s conftest.err
  2792. } && test -s conftest.$ac_objext; then
  2793. ac_cv_prog_cxx_g=yes
  2794. else
  2795. echo "$as_me: failed program was:" >&5
  2796. sed 's/^/| /' conftest.$ac_ext >&5
  2797. CXXFLAGS=""
  2798. cat >conftest.$ac_ext <<_ACEOF
  2799. /* confdefs.h. */
  2800. _ACEOF
  2801. cat confdefs.h >>conftest.$ac_ext
  2802. cat >>conftest.$ac_ext <<_ACEOF
  2803. /* end confdefs.h. */
  2804. int
  2805. main ()
  2806. {
  2807. ;
  2808. return 0;
  2809. }
  2810. _ACEOF
  2811. rm -f conftest.$ac_objext
  2812. if { (ac_try="$ac_compile"
  2813. case "(($ac_try" in
  2814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2815. *) ac_try_echo=$ac_try;;
  2816. esac
  2817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2818. (eval "$ac_compile") 2>conftest.er1
  2819. ac_status=$?
  2820. grep -v '^ *+' conftest.er1 >conftest.err
  2821. rm -f conftest.er1
  2822. cat conftest.err >&5
  2823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2824. (exit $ac_status); } && {
  2825. test -z "$ac_cxx_werror_flag" ||
  2826. test ! -s conftest.err
  2827. } && test -s conftest.$ac_objext; then
  2828. :
  2829. else
  2830. echo "$as_me: failed program was:" >&5
  2831. sed 's/^/| /' conftest.$ac_ext >&5
  2832. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2833. CXXFLAGS="-g"
  2834. cat >conftest.$ac_ext <<_ACEOF
  2835. /* confdefs.h. */
  2836. _ACEOF
  2837. cat confdefs.h >>conftest.$ac_ext
  2838. cat >>conftest.$ac_ext <<_ACEOF
  2839. /* end confdefs.h. */
  2840. int
  2841. main ()
  2842. {
  2843. ;
  2844. return 0;
  2845. }
  2846. _ACEOF
  2847. rm -f conftest.$ac_objext
  2848. if { (ac_try="$ac_compile"
  2849. case "(($ac_try" in
  2850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2851. *) ac_try_echo=$ac_try;;
  2852. esac
  2853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2854. (eval "$ac_compile") 2>conftest.er1
  2855. ac_status=$?
  2856. grep -v '^ *+' conftest.er1 >conftest.err
  2857. rm -f conftest.er1
  2858. cat conftest.err >&5
  2859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2860. (exit $ac_status); } && {
  2861. test -z "$ac_cxx_werror_flag" ||
  2862. test ! -s conftest.err
  2863. } && test -s conftest.$ac_objext; then
  2864. ac_cv_prog_cxx_g=yes
  2865. else
  2866. echo "$as_me: failed program was:" >&5
  2867. sed 's/^/| /' conftest.$ac_ext >&5
  2868. fi
  2869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2870. fi
  2871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2872. fi
  2873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2874. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2875. fi
  2876. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2877. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2878. if test "$ac_test_CXXFLAGS" = set; then
  2879. CXXFLAGS=$ac_save_CXXFLAGS
  2880. elif test $ac_cv_prog_cxx_g = yes; then
  2881. if test "$GXX" = yes; then
  2882. CXXFLAGS="-g -O2"
  2883. else
  2884. CXXFLAGS="-g"
  2885. fi
  2886. else
  2887. if test "$GXX" = yes; then
  2888. CXXFLAGS="-O2"
  2889. else
  2890. CXXFLAGS=
  2891. fi
  2892. fi
  2893. ac_ext=c
  2894. ac_cpp='$CPP $CPPFLAGS'
  2895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2898. DEPDIR="${am__leading_dot}deps"
  2899. ac_config_commands="$ac_config_commands depfiles"
  2900. am_make=${MAKE-make}
  2901. cat > confinc << 'END'
  2902. am__doit:
  2903. @echo done
  2904. .PHONY: am__doit
  2905. END
  2906. # If we don't find an include directive, just comment out the code.
  2907. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2908. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2909. am__include="#"
  2910. am__quote=
  2911. _am_result=none
  2912. # First try GNU make style include.
  2913. echo "include confinc" > confmf
  2914. # We grep out `Entering directory' and `Leaving directory'
  2915. # messages which can occur if `w' ends up in MAKEFLAGS.
  2916. # In particular we don't look at `^make:' because GNU make might
  2917. # be invoked under some other name (usually "gmake"), in which
  2918. # case it prints its new name instead of `make'.
  2919. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2920. am__include=include
  2921. am__quote=
  2922. _am_result=GNU
  2923. fi
  2924. # Now try BSD make style include.
  2925. if test "$am__include" = "#"; then
  2926. echo '.include "confinc"' > confmf
  2927. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2928. am__include=.include
  2929. am__quote="\""
  2930. _am_result=BSD
  2931. fi
  2932. fi
  2933. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2934. echo "${ECHO_T}$_am_result" >&6; }
  2935. rm -f confinc confmf
  2936. # Check whether --enable-dependency-tracking was given.
  2937. if test "${enable_dependency_tracking+set}" = set; then
  2938. enableval=$enable_dependency_tracking;
  2939. fi
  2940. if test "x$enable_dependency_tracking" != xno; then
  2941. am_depcomp="$ac_aux_dir/depcomp"
  2942. AMDEPBACKSLASH='\'
  2943. fi
  2944. if test "x$enable_dependency_tracking" != xno; then
  2945. AMDEP_TRUE=
  2946. AMDEP_FALSE='#'
  2947. else
  2948. AMDEP_TRUE='#'
  2949. AMDEP_FALSE=
  2950. fi
  2951. depcc="$CXX" am_compiler_list=
  2952. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2953. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2954. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2955. echo $ECHO_N "(cached) $ECHO_C" >&6
  2956. else
  2957. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2958. # We make a subdir and do the tests there. Otherwise we can end up
  2959. # making bogus files that we don't know about and never remove. For
  2960. # instance it was reported that on HP-UX the gcc test will end up
  2961. # making a dummy file named `D' -- because `-MD' means `put the output
  2962. # in D'.
  2963. mkdir conftest.dir
  2964. # Copy depcomp to subdir because otherwise we won't find it if we're
  2965. # using a relative directory.
  2966. cp "$am_depcomp" conftest.dir
  2967. cd conftest.dir
  2968. # We will build objects and dependencies in a subdirectory because
  2969. # it helps to detect inapplicable dependency modes. For instance
  2970. # both Tru64's cc and ICC support -MD to output dependencies as a
  2971. # side effect of compilation, but ICC will put the dependencies in
  2972. # the current directory while Tru64 will put them in the object
  2973. # directory.
  2974. mkdir sub
  2975. am_cv_CXX_dependencies_compiler_type=none
  2976. if test "$am_compiler_list" = ""; then
  2977. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2978. fi
  2979. for depmode in $am_compiler_list; do
  2980. # Setup a source with many dependencies, because some compilers
  2981. # like to wrap large dependency lists on column 80 (with \), and
  2982. # we should not choose a depcomp mode which is confused by this.
  2983. #
  2984. # We need to recreate these files for each test, as the compiler may
  2985. # overwrite some of them when testing with obscure command lines.
  2986. # This happens at least with the AIX C compiler.
  2987. : > sub/conftest.c
  2988. for i in 1 2 3 4 5 6; do
  2989. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2990. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2991. # Solaris 8's {/usr,}/bin/sh.
  2992. touch sub/conftst$i.h
  2993. done
  2994. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2995. case $depmode in
  2996. nosideeffect)
  2997. # after this tag, mechanisms are not by side-effect, so they'll
  2998. # only be used when explicitly requested
  2999. if test "x$enable_dependency_tracking" = xyes; then
  3000. continue
  3001. else
  3002. break
  3003. fi
  3004. ;;
  3005. none) break ;;
  3006. esac
  3007. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3008. # mode. It turns out that the SunPro C++ compiler does not properly
  3009. # handle `-M -o', and we need to detect this.
  3010. if depmode=$depmode \
  3011. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3012. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3013. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3014. >/dev/null 2>conftest.err &&
  3015. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3016. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3017. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3018. # icc doesn't choke on unknown options, it will just issue warnings
  3019. # or remarks (even with -Werror). So we grep stderr for any message
  3020. # that says an option was ignored or not supported.
  3021. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3022. # icc: Command line warning: ignoring option '-M'; no argument required
  3023. # The diagnosis changed in icc 8.0:
  3024. # icc: Command line remark: option '-MP' not supported
  3025. if (grep 'ignoring option' conftest.err ||
  3026. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3027. am_cv_CXX_dependencies_compiler_type=$depmode
  3028. break
  3029. fi
  3030. fi
  3031. done
  3032. cd ..
  3033. rm -rf conftest.dir
  3034. else
  3035. am_cv_CXX_dependencies_compiler_type=none
  3036. fi
  3037. fi
  3038. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3039. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3040. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3041. if
  3042. test "x$enable_dependency_tracking" != xno \
  3043. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3044. am__fastdepCXX_TRUE=
  3045. am__fastdepCXX_FALSE='#'
  3046. else
  3047. am__fastdepCXX_TRUE='#'
  3048. am__fastdepCXX_FALSE=
  3049. fi
  3050. ac_ext=c
  3051. ac_cpp='$CPP $CPPFLAGS'
  3052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3055. if test -n "$ac_tool_prefix"; then
  3056. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3057. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3058. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3059. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3060. if test "${ac_cv_prog_CC+set}" = set; then
  3061. echo $ECHO_N "(cached) $ECHO_C" >&6
  3062. else
  3063. if test -n "$CC"; then
  3064. ac_cv_prog_CC="$CC" # Let the user override the test.
  3065. else
  3066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3067. for as_dir in $PATH
  3068. do
  3069. IFS=$as_save_IFS
  3070. test -z "$as_dir" && as_dir=.
  3071. for ac_exec_ext in '' $ac_executable_extensions; do
  3072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3073. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3074. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3075. break 2
  3076. fi
  3077. done
  3078. done
  3079. IFS=$as_save_IFS
  3080. fi
  3081. fi
  3082. CC=$ac_cv_prog_CC
  3083. if test -n "$CC"; then
  3084. { echo "$as_me:$LINENO: result: $CC" >&5
  3085. echo "${ECHO_T}$CC" >&6; }
  3086. else
  3087. { echo "$as_me:$LINENO: result: no" >&5
  3088. echo "${ECHO_T}no" >&6; }
  3089. fi
  3090. fi
  3091. if test -z "$ac_cv_prog_CC"; then
  3092. ac_ct_CC=$CC
  3093. # Extract the first word of "gcc", so it can be a program name with args.
  3094. set dummy gcc; ac_word=$2
  3095. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3096. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3097. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3098. echo $ECHO_N "(cached) $ECHO_C" >&6
  3099. else
  3100. if test -n "$ac_ct_CC"; then
  3101. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3102. else
  3103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3104. for as_dir in $PATH
  3105. do
  3106. IFS=$as_save_IFS
  3107. test -z "$as_dir" && as_dir=.
  3108. for ac_exec_ext in '' $ac_executable_extensions; do
  3109. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3110. ac_cv_prog_ac_ct_CC="gcc"
  3111. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3112. break 2
  3113. fi
  3114. done
  3115. done
  3116. IFS=$as_save_IFS
  3117. fi
  3118. fi
  3119. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3120. if test -n "$ac_ct_CC"; then
  3121. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3122. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3123. else
  3124. { echo "$as_me:$LINENO: result: no" >&5
  3125. echo "${ECHO_T}no" >&6; }
  3126. fi
  3127. if test "x$ac_ct_CC" = x; then
  3128. CC=""
  3129. else
  3130. case $cross_compiling:$ac_tool_warned in
  3131. yes:)
  3132. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3133. whose name does not start with the host triplet. If you think this
  3134. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3135. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3136. whose name does not start with the host triplet. If you think this
  3137. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3138. ac_tool_warned=yes ;;
  3139. esac
  3140. CC=$ac_ct_CC
  3141. fi
  3142. else
  3143. CC="$ac_cv_prog_CC"
  3144. fi
  3145. if test -z "$CC"; then
  3146. if test -n "$ac_tool_prefix"; then
  3147. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3148. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3149. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3150. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3151. if test "${ac_cv_prog_CC+set}" = set; then
  3152. echo $ECHO_N "(cached) $ECHO_C" >&6
  3153. else
  3154. if test -n "$CC"; then
  3155. ac_cv_prog_CC="$CC" # Let the user override the test.
  3156. else
  3157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3158. for as_dir in $PATH
  3159. do
  3160. IFS=$as_save_IFS
  3161. test -z "$as_dir" && as_dir=.
  3162. for ac_exec_ext in '' $ac_executable_extensions; do
  3163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3164. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3165. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3166. break 2
  3167. fi
  3168. done
  3169. done
  3170. IFS=$as_save_IFS
  3171. fi
  3172. fi
  3173. CC=$ac_cv_prog_CC
  3174. if test -n "$CC"; then
  3175. { echo "$as_me:$LINENO: result: $CC" >&5
  3176. echo "${ECHO_T}$CC" >&6; }
  3177. else
  3178. { echo "$as_me:$LINENO: result: no" >&5
  3179. echo "${ECHO_T}no" >&6; }
  3180. fi
  3181. fi
  3182. fi
  3183. if test -z "$CC"; then
  3184. # Extract the first word of "cc", so it can be a program name with args.
  3185. set dummy cc; ac_word=$2
  3186. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3187. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3188. if test "${ac_cv_prog_CC+set}" = set; then
  3189. echo $ECHO_N "(cached) $ECHO_C" >&6
  3190. else
  3191. if test -n "$CC"; then
  3192. ac_cv_prog_CC="$CC" # Let the user override the test.
  3193. else
  3194. ac_prog_rejected=no
  3195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3196. for as_dir in $PATH
  3197. do
  3198. IFS=$as_save_IFS
  3199. test -z "$as_dir" && as_dir=.
  3200. for ac_exec_ext in '' $ac_executable_extensions; do
  3201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3202. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3203. ac_prog_rejected=yes
  3204. continue
  3205. fi
  3206. ac_cv_prog_CC="cc"
  3207. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3208. break 2
  3209. fi
  3210. done
  3211. done
  3212. IFS=$as_save_IFS
  3213. if test $ac_prog_rejected = yes; then
  3214. # We found a bogon in the path, so make sure we never use it.
  3215. set dummy $ac_cv_prog_CC
  3216. shift
  3217. if test $# != 0; then
  3218. # We chose a different compiler from the bogus one.
  3219. # However, it has the same basename, so the bogon will be chosen
  3220. # first if we set CC to just the basename; use the full file name.
  3221. shift
  3222. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3223. fi
  3224. fi
  3225. fi
  3226. fi
  3227. CC=$ac_cv_prog_CC
  3228. if test -n "$CC"; then
  3229. { echo "$as_me:$LINENO: result: $CC" >&5
  3230. echo "${ECHO_T}$CC" >&6; }
  3231. else
  3232. { echo "$as_me:$LINENO: result: no" >&5
  3233. echo "${ECHO_T}no" >&6; }
  3234. fi
  3235. fi
  3236. if test -z "$CC"; then
  3237. if test -n "$ac_tool_prefix"; then
  3238. for ac_prog in cl.exe
  3239. do
  3240. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3241. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3242. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3243. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3244. if test "${ac_cv_prog_CC+set}" = set; then
  3245. echo $ECHO_N "(cached) $ECHO_C" >&6
  3246. else
  3247. if test -n "$CC"; then
  3248. ac_cv_prog_CC="$CC" # Let the user override the test.
  3249. else
  3250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3251. for as_dir in $PATH
  3252. do
  3253. IFS=$as_save_IFS
  3254. test -z "$as_dir" && as_dir=.
  3255. for ac_exec_ext in '' $ac_executable_extensions; do
  3256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3257. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3258. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3259. break 2
  3260. fi
  3261. done
  3262. done
  3263. IFS=$as_save_IFS
  3264. fi
  3265. fi
  3266. CC=$ac_cv_prog_CC
  3267. if test -n "$CC"; then
  3268. { echo "$as_me:$LINENO: result: $CC" >&5
  3269. echo "${ECHO_T}$CC" >&6; }
  3270. else
  3271. { echo "$as_me:$LINENO: result: no" >&5
  3272. echo "${ECHO_T}no" >&6; }
  3273. fi
  3274. test -n "$CC" && break
  3275. done
  3276. fi
  3277. if test -z "$CC"; then
  3278. ac_ct_CC=$CC
  3279. for ac_prog in cl.exe
  3280. do
  3281. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3282. set dummy $ac_prog; ac_word=$2
  3283. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3285. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3286. echo $ECHO_N "(cached) $ECHO_C" >&6
  3287. else
  3288. if test -n "$ac_ct_CC"; then
  3289. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3290. else
  3291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3292. for as_dir in $PATH
  3293. do
  3294. IFS=$as_save_IFS
  3295. test -z "$as_dir" && as_dir=.
  3296. for ac_exec_ext in '' $ac_executable_extensions; do
  3297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3298. ac_cv_prog_ac_ct_CC="$ac_prog"
  3299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3300. break 2
  3301. fi
  3302. done
  3303. done
  3304. IFS=$as_save_IFS
  3305. fi
  3306. fi
  3307. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3308. if test -n "$ac_ct_CC"; then
  3309. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3310. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3311. else
  3312. { echo "$as_me:$LINENO: result: no" >&5
  3313. echo "${ECHO_T}no" >&6; }
  3314. fi
  3315. test -n "$ac_ct_CC" && break
  3316. done
  3317. if test "x$ac_ct_CC" = x; then
  3318. CC=""
  3319. else
  3320. case $cross_compiling:$ac_tool_warned in
  3321. yes:)
  3322. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3323. whose name does not start with the host triplet. If you think this
  3324. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3325. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3326. whose name does not start with the host triplet. If you think this
  3327. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3328. ac_tool_warned=yes ;;
  3329. esac
  3330. CC=$ac_ct_CC
  3331. fi
  3332. fi
  3333. fi
  3334. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3335. See \`config.log' for more details." >&5
  3336. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3337. See \`config.log' for more details." >&2;}
  3338. { (exit 1); exit 1; }; }
  3339. # Provide some information about the compiler.
  3340. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3341. ac_compiler=`set X $ac_compile; echo $2`
  3342. { (ac_try="$ac_compiler --version >&5"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3348. (eval "$ac_compiler --version >&5") 2>&5
  3349. ac_status=$?
  3350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3351. (exit $ac_status); }
  3352. { (ac_try="$ac_compiler -v >&5"
  3353. case "(($ac_try" in
  3354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3355. *) ac_try_echo=$ac_try;;
  3356. esac
  3357. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3358. (eval "$ac_compiler -v >&5") 2>&5
  3359. ac_status=$?
  3360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3361. (exit $ac_status); }
  3362. { (ac_try="$ac_compiler -V >&5"
  3363. case "(($ac_try" in
  3364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. *) ac_try_echo=$ac_try;;
  3366. esac
  3367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3368. (eval "$ac_compiler -V >&5") 2>&5
  3369. ac_status=$?
  3370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3371. (exit $ac_status); }
  3372. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3373. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3374. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3375. echo $ECHO_N "(cached) $ECHO_C" >&6
  3376. else
  3377. cat >conftest.$ac_ext <<_ACEOF
  3378. /* confdefs.h. */
  3379. _ACEOF
  3380. cat confdefs.h >>conftest.$ac_ext
  3381. cat >>conftest.$ac_ext <<_ACEOF
  3382. /* end confdefs.h. */
  3383. int
  3384. main ()
  3385. {
  3386. #ifndef __GNUC__
  3387. choke me
  3388. #endif
  3389. ;
  3390. return 0;
  3391. }
  3392. _ACEOF
  3393. rm -f conftest.$ac_objext
  3394. if { (ac_try="$ac_compile"
  3395. case "(($ac_try" in
  3396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3397. *) ac_try_echo=$ac_try;;
  3398. esac
  3399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3400. (eval "$ac_compile") 2>conftest.er1
  3401. ac_status=$?
  3402. grep -v '^ *+' conftest.er1 >conftest.err
  3403. rm -f conftest.er1
  3404. cat conftest.err >&5
  3405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3406. (exit $ac_status); } && {
  3407. test -z "$ac_c_werror_flag" ||
  3408. test ! -s conftest.err
  3409. } && test -s conftest.$ac_objext; then
  3410. ac_compiler_gnu=yes
  3411. else
  3412. echo "$as_me: failed program was:" >&5
  3413. sed 's/^/| /' conftest.$ac_ext >&5
  3414. ac_compiler_gnu=no
  3415. fi
  3416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3417. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3418. fi
  3419. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3420. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3421. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3422. ac_test_CFLAGS=${CFLAGS+set}
  3423. ac_save_CFLAGS=$CFLAGS
  3424. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3425. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3426. if test "${ac_cv_prog_cc_g+set}" = set; then
  3427. echo $ECHO_N "(cached) $ECHO_C" >&6
  3428. else
  3429. ac_save_c_werror_flag=$ac_c_werror_flag
  3430. ac_c_werror_flag=yes
  3431. ac_cv_prog_cc_g=no
  3432. CFLAGS="-g"
  3433. cat >conftest.$ac_ext <<_ACEOF
  3434. /* confdefs.h. */
  3435. _ACEOF
  3436. cat confdefs.h >>conftest.$ac_ext
  3437. cat >>conftest.$ac_ext <<_ACEOF
  3438. /* end confdefs.h. */
  3439. int
  3440. main ()
  3441. {
  3442. ;
  3443. return 0;
  3444. }
  3445. _ACEOF
  3446. rm -f conftest.$ac_objext
  3447. if { (ac_try="$ac_compile"
  3448. case "(($ac_try" in
  3449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3450. *) ac_try_echo=$ac_try;;
  3451. esac
  3452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3453. (eval "$ac_compile") 2>conftest.er1
  3454. ac_status=$?
  3455. grep -v '^ *+' conftest.er1 >conftest.err
  3456. rm -f conftest.er1
  3457. cat conftest.err >&5
  3458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459. (exit $ac_status); } && {
  3460. test -z "$ac_c_werror_flag" ||
  3461. test ! -s conftest.err
  3462. } && test -s conftest.$ac_objext; then
  3463. ac_cv_prog_cc_g=yes
  3464. else
  3465. echo "$as_me: failed program was:" >&5
  3466. sed 's/^/| /' conftest.$ac_ext >&5
  3467. CFLAGS=""
  3468. cat >conftest.$ac_ext <<_ACEOF
  3469. /* confdefs.h. */
  3470. _ACEOF
  3471. cat confdefs.h >>conftest.$ac_ext
  3472. cat >>conftest.$ac_ext <<_ACEOF
  3473. /* end confdefs.h. */
  3474. int
  3475. main ()
  3476. {
  3477. ;
  3478. return 0;
  3479. }
  3480. _ACEOF
  3481. rm -f conftest.$ac_objext
  3482. if { (ac_try="$ac_compile"
  3483. case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3488. (eval "$ac_compile") 2>conftest.er1
  3489. ac_status=$?
  3490. grep -v '^ *+' conftest.er1 >conftest.err
  3491. rm -f conftest.er1
  3492. cat conftest.err >&5
  3493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3494. (exit $ac_status); } && {
  3495. test -z "$ac_c_werror_flag" ||
  3496. test ! -s conftest.err
  3497. } && test -s conftest.$ac_objext; then
  3498. :
  3499. else
  3500. echo "$as_me: failed program was:" >&5
  3501. sed 's/^/| /' conftest.$ac_ext >&5
  3502. ac_c_werror_flag=$ac_save_c_werror_flag
  3503. CFLAGS="-g"
  3504. cat >conftest.$ac_ext <<_ACEOF
  3505. /* confdefs.h. */
  3506. _ACEOF
  3507. cat confdefs.h >>conftest.$ac_ext
  3508. cat >>conftest.$ac_ext <<_ACEOF
  3509. /* end confdefs.h. */
  3510. int
  3511. main ()
  3512. {
  3513. ;
  3514. return 0;
  3515. }
  3516. _ACEOF
  3517. rm -f conftest.$ac_objext
  3518. if { (ac_try="$ac_compile"
  3519. case "(($ac_try" in
  3520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3521. *) ac_try_echo=$ac_try;;
  3522. esac
  3523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3524. (eval "$ac_compile") 2>conftest.er1
  3525. ac_status=$?
  3526. grep -v '^ *+' conftest.er1 >conftest.err
  3527. rm -f conftest.er1
  3528. cat conftest.err >&5
  3529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3530. (exit $ac_status); } && {
  3531. test -z "$ac_c_werror_flag" ||
  3532. test ! -s conftest.err
  3533. } && test -s conftest.$ac_objext; then
  3534. ac_cv_prog_cc_g=yes
  3535. else
  3536. echo "$as_me: failed program was:" >&5
  3537. sed 's/^/| /' conftest.$ac_ext >&5
  3538. fi
  3539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3540. fi
  3541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3542. fi
  3543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3544. ac_c_werror_flag=$ac_save_c_werror_flag
  3545. fi
  3546. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3547. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3548. if test "$ac_test_CFLAGS" = set; then
  3549. CFLAGS=$ac_save_CFLAGS
  3550. elif test $ac_cv_prog_cc_g = yes; then
  3551. if test "$GCC" = yes; then
  3552. CFLAGS="-g -O2"
  3553. else
  3554. CFLAGS="-g"
  3555. fi
  3556. else
  3557. if test "$GCC" = yes; then
  3558. CFLAGS="-O2"
  3559. else
  3560. CFLAGS=
  3561. fi
  3562. fi
  3563. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3564. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3565. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3566. echo $ECHO_N "(cached) $ECHO_C" >&6
  3567. else
  3568. ac_cv_prog_cc_c89=no
  3569. ac_save_CC=$CC
  3570. cat >conftest.$ac_ext <<_ACEOF
  3571. /* confdefs.h. */
  3572. _ACEOF
  3573. cat confdefs.h >>conftest.$ac_ext
  3574. cat >>conftest.$ac_ext <<_ACEOF
  3575. /* end confdefs.h. */
  3576. #include <stdarg.h>
  3577. #include <stdio.h>
  3578. #include <sys/types.h>
  3579. #include <sys/stat.h>
  3580. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3581. struct buf { int x; };
  3582. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3583. static char *e (p, i)
  3584. char **p;
  3585. int i;
  3586. {
  3587. return p[i];
  3588. }
  3589. static char *f (char * (*g) (char **, int), char **p, ...)
  3590. {
  3591. char *s;
  3592. va_list v;
  3593. va_start (v,p);
  3594. s = g (p, va_arg (v,int));
  3595. va_end (v);
  3596. return s;
  3597. }
  3598. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3599. function prototypes and stuff, but not '\xHH' hex character constants.
  3600. These don't provoke an error unfortunately, instead are silently treated
  3601. as 'x'. The following induces an error, until -std is added to get
  3602. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3603. array size at least. It's necessary to write '\x00'==0 to get something
  3604. that's true only with -std. */
  3605. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3606. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3607. inside strings and character constants. */
  3608. #define FOO(x) 'x'
  3609. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3610. int test (int i, double x);
  3611. struct s1 {int (*f) (int a);};
  3612. struct s2 {int (*f) (double a);};
  3613. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3614. int argc;
  3615. char **argv;
  3616. int
  3617. main ()
  3618. {
  3619. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3620. ;
  3621. return 0;
  3622. }
  3623. _ACEOF
  3624. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3625. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3626. do
  3627. CC="$ac_save_CC $ac_arg"
  3628. rm -f conftest.$ac_objext
  3629. if { (ac_try="$ac_compile"
  3630. case "(($ac_try" in
  3631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3632. *) ac_try_echo=$ac_try;;
  3633. esac
  3634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3635. (eval "$ac_compile") 2>conftest.er1
  3636. ac_status=$?
  3637. grep -v '^ *+' conftest.er1 >conftest.err
  3638. rm -f conftest.er1
  3639. cat conftest.err >&5
  3640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. (exit $ac_status); } && {
  3642. test -z "$ac_c_werror_flag" ||
  3643. test ! -s conftest.err
  3644. } && test -s conftest.$ac_objext; then
  3645. ac_cv_prog_cc_c89=$ac_arg
  3646. else
  3647. echo "$as_me: failed program was:" >&5
  3648. sed 's/^/| /' conftest.$ac_ext >&5
  3649. fi
  3650. rm -f core conftest.err conftest.$ac_objext
  3651. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3652. done
  3653. rm -f conftest.$ac_ext
  3654. CC=$ac_save_CC
  3655. fi
  3656. # AC_CACHE_VAL
  3657. case "x$ac_cv_prog_cc_c89" in
  3658. x)
  3659. { echo "$as_me:$LINENO: result: none needed" >&5
  3660. echo "${ECHO_T}none needed" >&6; } ;;
  3661. xno)
  3662. { echo "$as_me:$LINENO: result: unsupported" >&5
  3663. echo "${ECHO_T}unsupported" >&6; } ;;
  3664. *)
  3665. CC="$CC $ac_cv_prog_cc_c89"
  3666. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3667. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3668. esac
  3669. ac_ext=c
  3670. ac_cpp='$CPP $CPPFLAGS'
  3671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3674. depcc="$CC" am_compiler_list=
  3675. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3676. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3677. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3678. echo $ECHO_N "(cached) $ECHO_C" >&6
  3679. else
  3680. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3681. # We make a subdir and do the tests there. Otherwise we can end up
  3682. # making bogus files that we don't know about and never remove. For
  3683. # instance it was reported that on HP-UX the gcc test will end up
  3684. # making a dummy file named `D' -- because `-MD' means `put the output
  3685. # in D'.
  3686. mkdir conftest.dir
  3687. # Copy depcomp to subdir because otherwise we won't find it if we're
  3688. # using a relative directory.
  3689. cp "$am_depcomp" conftest.dir
  3690. cd conftest.dir
  3691. # We will build objects and dependencies in a subdirectory because
  3692. # it helps to detect inapplicable dependency modes. For instance
  3693. # both Tru64's cc and ICC support -MD to output dependencies as a
  3694. # side effect of compilation, but ICC will put the dependencies in
  3695. # the current directory while Tru64 will put them in the object
  3696. # directory.
  3697. mkdir sub
  3698. am_cv_CC_dependencies_compiler_type=none
  3699. if test "$am_compiler_list" = ""; then
  3700. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3701. fi
  3702. for depmode in $am_compiler_list; do
  3703. # Setup a source with many dependencies, because some compilers
  3704. # like to wrap large dependency lists on column 80 (with \), and
  3705. # we should not choose a depcomp mode which is confused by this.
  3706. #
  3707. # We need to recreate these files for each test, as the compiler may
  3708. # overwrite some of them when testing with obscure command lines.
  3709. # This happens at least with the AIX C compiler.
  3710. : > sub/conftest.c
  3711. for i in 1 2 3 4 5 6; do
  3712. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3713. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3714. # Solaris 8's {/usr,}/bin/sh.
  3715. touch sub/conftst$i.h
  3716. done
  3717. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3718. case $depmode in
  3719. nosideeffect)
  3720. # after this tag, mechanisms are not by side-effect, so they'll
  3721. # only be used when explicitly requested
  3722. if test "x$enable_dependency_tracking" = xyes; then
  3723. continue
  3724. else
  3725. break
  3726. fi
  3727. ;;
  3728. none) break ;;
  3729. esac
  3730. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3731. # mode. It turns out that the SunPro C++ compiler does not properly
  3732. # handle `-M -o', and we need to detect this.
  3733. if depmode=$depmode \
  3734. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3735. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3736. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3737. >/dev/null 2>conftest.err &&
  3738. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3739. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3740. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3741. # icc doesn't choke on unknown options, it will just issue warnings
  3742. # or remarks (even with -Werror). So we grep stderr for any message
  3743. # that says an option was ignored or not supported.
  3744. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3745. # icc: Command line warning: ignoring option '-M'; no argument required
  3746. # The diagnosis changed in icc 8.0:
  3747. # icc: Command line remark: option '-MP' not supported
  3748. if (grep 'ignoring option' conftest.err ||
  3749. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3750. am_cv_CC_dependencies_compiler_type=$depmode
  3751. break
  3752. fi
  3753. fi
  3754. done
  3755. cd ..
  3756. rm -rf conftest.dir
  3757. else
  3758. am_cv_CC_dependencies_compiler_type=none
  3759. fi
  3760. fi
  3761. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3762. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3763. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3764. if
  3765. test "x$enable_dependency_tracking" != xno \
  3766. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3767. am__fastdepCC_TRUE=
  3768. am__fastdepCC_FALSE='#'
  3769. else
  3770. am__fastdepCC_TRUE='#'
  3771. am__fastdepCC_FALSE=
  3772. fi
  3773. # Find a good install program. We prefer a C program (faster),
  3774. # so one script is as good as another. But avoid the broken or
  3775. # incompatible versions:
  3776. # SysV /etc/install, /usr/sbin/install
  3777. # SunOS /usr/etc/install
  3778. # IRIX /sbin/install
  3779. # AIX /bin/install
  3780. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3781. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3782. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3783. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3784. # OS/2's system install, which has a completely different semantic
  3785. # ./install, which can be erroneously created by make from ./install.sh.
  3786. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3787. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3788. if test -z "$INSTALL"; then
  3789. if test "${ac_cv_path_install+set}" = set; then
  3790. echo $ECHO_N "(cached) $ECHO_C" >&6
  3791. else
  3792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3793. for as_dir in $PATH
  3794. do
  3795. IFS=$as_save_IFS
  3796. test -z "$as_dir" && as_dir=.
  3797. # Account for people who put trailing slashes in PATH elements.
  3798. case $as_dir/ in
  3799. ./ | .// | /cC/* | \
  3800. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3801. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3802. /usr/ucb/* ) ;;
  3803. *)
  3804. # OSF1 and SCO ODT 3.0 have their own names for install.
  3805. # Don't use installbsd from OSF since it installs stuff as root
  3806. # by default.
  3807. for ac_prog in ginstall scoinst install; do
  3808. for ac_exec_ext in '' $ac_executable_extensions; do
  3809. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3810. if test $ac_prog = install &&
  3811. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3812. # AIX install. It has an incompatible calling convention.
  3813. :
  3814. elif test $ac_prog = install &&
  3815. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3816. # program-specific install script used by HP pwplus--don't use.
  3817. :
  3818. else
  3819. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3820. break 3
  3821. fi
  3822. fi
  3823. done
  3824. done
  3825. ;;
  3826. esac
  3827. done
  3828. IFS=$as_save_IFS
  3829. fi
  3830. if test "${ac_cv_path_install+set}" = set; then
  3831. INSTALL=$ac_cv_path_install
  3832. else
  3833. # As a last resort, use the slow shell script. Don't cache a
  3834. # value for INSTALL within a source directory, because that will
  3835. # break other packages using the cache if that directory is
  3836. # removed, or if the value is a relative name.
  3837. INSTALL=$ac_install_sh
  3838. fi
  3839. fi
  3840. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3841. echo "${ECHO_T}$INSTALL" >&6; }
  3842. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3843. # It thinks the first close brace ends the variable substitution.
  3844. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3845. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3846. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3847. if test -n "$ac_tool_prefix"; then
  3848. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3849. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3850. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3851. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3852. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3853. echo $ECHO_N "(cached) $ECHO_C" >&6
  3854. else
  3855. if test -n "$RANLIB"; then
  3856. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3857. else
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_exec_ext in '' $ac_executable_extensions; do
  3864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3865. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3866. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3867. break 2
  3868. fi
  3869. done
  3870. done
  3871. IFS=$as_save_IFS
  3872. fi
  3873. fi
  3874. RANLIB=$ac_cv_prog_RANLIB
  3875. if test -n "$RANLIB"; then
  3876. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3877. echo "${ECHO_T}$RANLIB" >&6; }
  3878. else
  3879. { echo "$as_me:$LINENO: result: no" >&5
  3880. echo "${ECHO_T}no" >&6; }
  3881. fi
  3882. fi
  3883. if test -z "$ac_cv_prog_RANLIB"; then
  3884. ac_ct_RANLIB=$RANLIB
  3885. # Extract the first word of "ranlib", so it can be a program name with args.
  3886. set dummy ranlib; ac_word=$2
  3887. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3888. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3889. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3890. echo $ECHO_N "(cached) $ECHO_C" >&6
  3891. else
  3892. if test -n "$ac_ct_RANLIB"; then
  3893. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3894. else
  3895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3896. for as_dir in $PATH
  3897. do
  3898. IFS=$as_save_IFS
  3899. test -z "$as_dir" && as_dir=.
  3900. for ac_exec_ext in '' $ac_executable_extensions; do
  3901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3902. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3903. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3904. break 2
  3905. fi
  3906. done
  3907. done
  3908. IFS=$as_save_IFS
  3909. fi
  3910. fi
  3911. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3912. if test -n "$ac_ct_RANLIB"; then
  3913. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3914. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3915. else
  3916. { echo "$as_me:$LINENO: result: no" >&5
  3917. echo "${ECHO_T}no" >&6; }
  3918. fi
  3919. if test "x$ac_ct_RANLIB" = x; then
  3920. RANLIB=":"
  3921. else
  3922. case $cross_compiling:$ac_tool_warned in
  3923. yes:)
  3924. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3925. whose name does not start with the host triplet. If you think this
  3926. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3927. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3928. whose name does not start with the host triplet. If you think this
  3929. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3930. ac_tool_warned=yes ;;
  3931. esac
  3932. RANLIB=$ac_ct_RANLIB
  3933. fi
  3934. else
  3935. RANLIB="$ac_cv_prog_RANLIB"
  3936. fi
  3937. for ac_prog in 'bison -y' byacc
  3938. do
  3939. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3940. set dummy $ac_prog; ac_word=$2
  3941. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3942. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3943. if test "${ac_cv_prog_YACC+set}" = set; then
  3944. echo $ECHO_N "(cached) $ECHO_C" >&6
  3945. else
  3946. if test -n "$YACC"; then
  3947. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3948. else
  3949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3950. for as_dir in $PATH
  3951. do
  3952. IFS=$as_save_IFS
  3953. test -z "$as_dir" && as_dir=.
  3954. for ac_exec_ext in '' $ac_executable_extensions; do
  3955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3956. ac_cv_prog_YACC="$ac_prog"
  3957. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3958. break 2
  3959. fi
  3960. done
  3961. done
  3962. IFS=$as_save_IFS
  3963. fi
  3964. fi
  3965. YACC=$ac_cv_prog_YACC
  3966. if test -n "$YACC"; then
  3967. { echo "$as_me:$LINENO: result: $YACC" >&5
  3968. echo "${ECHO_T}$YACC" >&6; }
  3969. else
  3970. { echo "$as_me:$LINENO: result: no" >&5
  3971. echo "${ECHO_T}no" >&6; }
  3972. fi
  3973. test -n "$YACC" && break
  3974. done
  3975. test -n "$YACC" || YACC="yacc"
  3976. # Setting language choice
  3977. ac_ext=cpp
  3978. ac_cpp='$CXXCPP $CPPFLAGS'
  3979. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3980. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3981. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3982. # Check for GNU library
  3983. cat >>confdefs.h <<\_ACEOF
  3984. #define _GNU_SOURCE 1
  3985. _ACEOF
  3986. # Checks for libraries.
  3987. if test "x$with_libxml2" = "xyes"; then
  3988. # Check whether --with-xml-prefix was given.
  3989. if test "${with_xml_prefix+set}" = set; then
  3990. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3991. else
  3992. xml_config_prefix=""
  3993. fi
  3994. # Check whether --with-xml-exec-prefix was given.
  3995. if test "${with_xml_exec_prefix+set}" = set; then
  3996. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3997. else
  3998. xml_config_exec_prefix=""
  3999. fi
  4000. # Check whether --enable-xmltest was given.
  4001. if test "${enable_xmltest+set}" = set; then
  4002. enableval=$enable_xmltest;
  4003. else
  4004. enable_xmltest=yes
  4005. fi
  4006. if test x$xml_config_exec_prefix != x ; then
  4007. xml_config_args="$xml_config_args"
  4008. if test x${XML2_CONFIG+set} != xset ; then
  4009. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4010. fi
  4011. fi
  4012. if test x$xml_config_prefix != x ; then
  4013. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4014. if test x${XML2_CONFIG+set} != xset ; then
  4015. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4016. fi
  4017. fi
  4018. # Extract the first word of "xml2-config", so it can be a program name with args.
  4019. set dummy xml2-config; ac_word=$2
  4020. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4021. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4022. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4023. echo $ECHO_N "(cached) $ECHO_C" >&6
  4024. else
  4025. case $XML2_CONFIG in
  4026. [\\/]* | ?:[\\/]*)
  4027. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4028. ;;
  4029. *)
  4030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4031. for as_dir in $PATH
  4032. do
  4033. IFS=$as_save_IFS
  4034. test -z "$as_dir" && as_dir=.
  4035. for ac_exec_ext in '' $ac_executable_extensions; do
  4036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4037. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4038. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4039. break 2
  4040. fi
  4041. done
  4042. done
  4043. IFS=$as_save_IFS
  4044. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4045. ;;
  4046. esac
  4047. fi
  4048. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4049. if test -n "$XML2_CONFIG"; then
  4050. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4051. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4052. else
  4053. { echo "$as_me:$LINENO: result: no" >&5
  4054. echo "${ECHO_T}no" >&6; }
  4055. fi
  4056. min_xml_version=2.6.24
  4057. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4058. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4059. no_xml=""
  4060. if test "$XML2_CONFIG" = "no" ; then
  4061. no_xml=yes
  4062. else
  4063. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4064. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4065. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4066. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4067. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4068. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4069. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4070. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4071. if test "x$enable_xmltest" = "xyes" ; then
  4072. ac_save_CPPFLAGS="$CPPFLAGS"
  4073. ac_save_LIBS="$LIBS"
  4074. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4075. LIBS="$XML_LIBS $LIBS"
  4076. rm -f conf.xmltest
  4077. if test "$cross_compiling" = yes; then
  4078. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4079. else
  4080. cat >conftest.$ac_ext <<_ACEOF
  4081. /* confdefs.h. */
  4082. _ACEOF
  4083. cat confdefs.h >>conftest.$ac_ext
  4084. cat >>conftest.$ac_ext <<_ACEOF
  4085. /* end confdefs.h. */
  4086. #include <stdlib.h>
  4087. #include <stdio.h>
  4088. #include <string.h>
  4089. #include <libxml/xmlversion.h>
  4090. int
  4091. main()
  4092. {
  4093. int xml_major_version, xml_minor_version, xml_micro_version;
  4094. int major, minor, micro;
  4095. char *tmp_version;
  4096. system("touch conf.xmltest");
  4097. /* Capture xml2-config output via autoconf/configure variables */
  4098. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4099. tmp_version = (char *)strdup("$min_xml_version");
  4100. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4101. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4102. exit(1);
  4103. }
  4104. free(tmp_version);
  4105. /* Capture the version information from the header files */
  4106. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4107. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4108. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4109. exit(1);
  4110. }
  4111. free(tmp_version);
  4112. /* Compare xml2-config output to the libxml headers */
  4113. if ((xml_major_version != $xml_config_major_version) ||
  4114. (xml_minor_version != $xml_config_minor_version) ||
  4115. (xml_micro_version != $xml_config_micro_version))
  4116. {
  4117. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4118. xml_major_version, xml_minor_version, xml_micro_version);
  4119. printf("*** xml2-config (version %d.%d.%d)\n",
  4120. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4121. return 1;
  4122. }
  4123. /* Compare the headers to the library to make sure we match */
  4124. /* Less than ideal -- doesn't provide us with return value feedback,
  4125. * only exits if there's a serious mismatch between header and library.
  4126. */
  4127. LIBXML_TEST_VERSION;
  4128. /* Test that the library is greater than our minimum version */
  4129. if ((xml_major_version > major) ||
  4130. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4131. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4132. (xml_micro_version >= micro)))
  4133. {
  4134. return 0;
  4135. }
  4136. else
  4137. {
  4138. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4139. xml_major_version, xml_minor_version, xml_micro_version);
  4140. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4141. major, minor, micro);
  4142. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4143. printf("***\n");
  4144. printf("*** If you have already installed a sufficiently new version, this error\n");
  4145. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4146. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4147. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4148. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4149. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4150. printf("*** so that the correct libraries are found at run-time))\n");
  4151. }
  4152. return 1;
  4153. }
  4154. _ACEOF
  4155. rm -f conftest$ac_exeext
  4156. if { (ac_try="$ac_link"
  4157. case "(($ac_try" in
  4158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4159. *) ac_try_echo=$ac_try;;
  4160. esac
  4161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4162. (eval "$ac_link") 2>&5
  4163. ac_status=$?
  4164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4165. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4166. { (case "(($ac_try" in
  4167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4168. *) ac_try_echo=$ac_try;;
  4169. esac
  4170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4171. (eval "$ac_try") 2>&5
  4172. ac_status=$?
  4173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); }; }; then
  4175. :
  4176. else
  4177. echo "$as_me: program exited with status $ac_status" >&5
  4178. echo "$as_me: failed program was:" >&5
  4179. sed 's/^/| /' conftest.$ac_ext >&5
  4180. ( exit $ac_status )
  4181. no_xml=yes
  4182. fi
  4183. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4184. fi
  4185. CPPFLAGS="$ac_save_CPPFLAGS"
  4186. LIBS="$ac_save_LIBS"
  4187. fi
  4188. fi
  4189. if test "x$no_xml" = x ; then
  4190. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4191. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4192. have_libxml2=yes
  4193. else
  4194. { echo "$as_me:$LINENO: result: no" >&5
  4195. echo "${ECHO_T}no" >&6; }
  4196. if test "$XML2_CONFIG" = "no" ; then
  4197. echo "*** The xml2-config script installed by LIBXML could not be found"
  4198. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4199. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4200. echo "*** full path to xml2-config."
  4201. else
  4202. if test -f conf.xmltest ; then
  4203. :
  4204. else
  4205. echo "*** Could not run libxml test program, checking why..."
  4206. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4207. LIBS="$LIBS $XML_LIBS"
  4208. cat >conftest.$ac_ext <<_ACEOF
  4209. /* confdefs.h. */
  4210. _ACEOF
  4211. cat confdefs.h >>conftest.$ac_ext
  4212. cat >>conftest.$ac_ext <<_ACEOF
  4213. /* end confdefs.h. */
  4214. #include <libxml/xmlversion.h>
  4215. #include <stdio.h>
  4216. int
  4217. main ()
  4218. {
  4219. LIBXML_TEST_VERSION; return 0;
  4220. ;
  4221. return 0;
  4222. }
  4223. _ACEOF
  4224. rm -f conftest.$ac_objext conftest$ac_exeext
  4225. if { (ac_try="$ac_link"
  4226. case "(($ac_try" in
  4227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4228. *) ac_try_echo=$ac_try;;
  4229. esac
  4230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4231. (eval "$ac_link") 2>conftest.er1
  4232. ac_status=$?
  4233. grep -v '^ *+' conftest.er1 >conftest.err
  4234. rm -f conftest.er1
  4235. cat conftest.err >&5
  4236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4237. (exit $ac_status); } && {
  4238. test -z "$ac_cxx_werror_flag" ||
  4239. test ! -s conftest.err
  4240. } && test -s conftest$ac_exeext &&
  4241. $as_test_x conftest$ac_exeext; then
  4242. echo "*** The test program compiled, but did not run. This usually means"
  4243. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4244. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4245. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4246. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4247. echo "*** is required on your system"
  4248. echo "***"
  4249. echo "*** If you have an old version installed, it is best to remove it, although"
  4250. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4251. else
  4252. echo "$as_me: failed program was:" >&5
  4253. sed 's/^/| /' conftest.$ac_ext >&5
  4254. echo "*** The test program failed to compile or link. See the file config.log for the"
  4255. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4256. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4257. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4258. fi
  4259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4260. conftest$ac_exeext conftest.$ac_ext
  4261. CPPFLAGS="$ac_save_CPPFLAGS"
  4262. LIBS="$ac_save_LIBS"
  4263. fi
  4264. fi
  4265. XML_CPPFLAGS=""
  4266. XML_LIBS=""
  4267. :
  4268. fi
  4269. rm -f conf.xmltest
  4270. if test "x$have_libxml2" = "xyes"; then
  4271. cat >>confdefs.h <<\_ACEOF
  4272. #define HAVE_LIBXML2 1
  4273. _ACEOF
  4274. fi
  4275. fi
  4276. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  4277. # Check whether --with-libexpat-prefix was given.
  4278. if test "${with_libexpat_prefix+set}" = set; then
  4279. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  4280. else
  4281. libexpat_prefix=""
  4282. fi
  4283. if test "x$libexpat_prefix" = "x"; then
  4284. libexpat_prefix="/usr"
  4285. fi
  4286. libexpat_prefix_lib=$libexpat_prefix/lib
  4287. libexpat_prefix_include=$libexpat_prefix/include
  4288. LIBS_save=$LIBS
  4289. CPPFLAGS_save=$CPPFLAGS
  4290. LIBS="-L$libexpat_prefix_lib $LIBS"
  4291. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  4292. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  4293. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  4294. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  4295. echo $ECHO_N "(cached) $ECHO_C" >&6
  4296. else
  4297. ac_check_lib_save_LIBS=$LIBS
  4298. LIBS="-lexpat $LIBS"
  4299. cat >conftest.$ac_ext <<_ACEOF
  4300. /* confdefs.h. */
  4301. _ACEOF
  4302. cat confdefs.h >>conftest.$ac_ext
  4303. cat >>conftest.$ac_ext <<_ACEOF
  4304. /* end confdefs.h. */
  4305. /* Override any GCC internal prototype to avoid an error.
  4306. Use char because int might match the return type of a GCC
  4307. builtin and then its argument prototype would still apply. */
  4308. #ifdef __cplusplus
  4309. extern "C"
  4310. #endif
  4311. char XML_ParserCreate ();
  4312. int
  4313. main ()
  4314. {
  4315. return XML_ParserCreate ();
  4316. ;
  4317. return 0;
  4318. }
  4319. _ACEOF
  4320. rm -f conftest.$ac_objext conftest$ac_exeext
  4321. if { (ac_try="$ac_link"
  4322. case "(($ac_try" in
  4323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4324. *) ac_try_echo=$ac_try;;
  4325. esac
  4326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4327. (eval "$ac_link") 2>conftest.er1
  4328. ac_status=$?
  4329. grep -v '^ *+' conftest.er1 >conftest.err
  4330. rm -f conftest.er1
  4331. cat conftest.err >&5
  4332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333. (exit $ac_status); } && {
  4334. test -z "$ac_cxx_werror_flag" ||
  4335. test ! -s conftest.err
  4336. } && test -s conftest$ac_exeext &&
  4337. $as_test_x conftest$ac_exeext; then
  4338. ac_cv_lib_expat_XML_ParserCreate=yes
  4339. else
  4340. echo "$as_me: failed program was:" >&5
  4341. sed 's/^/| /' conftest.$ac_ext >&5
  4342. ac_cv_lib_expat_XML_ParserCreate=no
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4345. conftest$ac_exeext conftest.$ac_ext
  4346. LIBS=$ac_check_lib_save_LIBS
  4347. fi
  4348. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  4349. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  4350. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  4351. have_libexpat=yes
  4352. fi
  4353. if test "x$have_libexpat" = "xyes"; then
  4354. cat >>confdefs.h <<\_ACEOF
  4355. #define HAVE_LIBEXPAT 1
  4356. _ACEOF
  4357. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  4358. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  4359. fi
  4360. LIBS=$LIBS_save
  4361. CPPFLAGS=$CPPFLAGS_save
  4362. fi
  4363. if test "x$with_gnutls" = "xyes"; then
  4364. # Check whether --with-libgnutls-prefix was given.
  4365. if test "${with_libgnutls_prefix+set}" = set; then
  4366. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4367. else
  4368. libgnutls_config_prefix=""
  4369. fi
  4370. if test x$libgnutls_config_prefix != x ; then
  4371. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4372. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4373. fi
  4374. fi
  4375. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4376. set dummy libgnutls-config; ac_word=$2
  4377. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4379. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4380. echo $ECHO_N "(cached) $ECHO_C" >&6
  4381. else
  4382. case $LIBGNUTLS_CONFIG in
  4383. [\\/]* | ?:[\\/]*)
  4384. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4385. ;;
  4386. *)
  4387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4388. for as_dir in $PATH
  4389. do
  4390. IFS=$as_save_IFS
  4391. test -z "$as_dir" && as_dir=.
  4392. for ac_exec_ext in '' $ac_executable_extensions; do
  4393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4394. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4395. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4396. break 2
  4397. fi
  4398. done
  4399. done
  4400. IFS=$as_save_IFS
  4401. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4402. ;;
  4403. esac
  4404. fi
  4405. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4406. if test -n "$LIBGNUTLS_CONFIG"; then
  4407. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4408. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4409. else
  4410. { echo "$as_me:$LINENO: result: no" >&5
  4411. echo "${ECHO_T}no" >&6; }
  4412. fi
  4413. min_libgnutls_version=1.2.9
  4414. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4415. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4416. no_libgnutls=""
  4417. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4418. no_libgnutls=yes
  4419. else
  4420. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4421. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4422. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4423. ac_save_CFLAGS="$CFLAGS"
  4424. ac_save_LIBS="$LIBS"
  4425. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4426. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4427. rm -f conf.libgnutlstest
  4428. if test "$cross_compiling" = yes; then
  4429. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4430. else
  4431. cat >conftest.$ac_ext <<_ACEOF
  4432. /* confdefs.h. */
  4433. _ACEOF
  4434. cat confdefs.h >>conftest.$ac_ext
  4435. cat >>conftest.$ac_ext <<_ACEOF
  4436. /* end confdefs.h. */
  4437. #include <stdio.h>
  4438. #include <stdlib.h>
  4439. #include <string.h>
  4440. #include <gnutls/gnutls.h>
  4441. int
  4442. main ()
  4443. {
  4444. system ("touch conf.libgnutlstest");
  4445. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4446. {
  4447. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4448. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4449. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4450. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4451. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4452. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4453. printf("*** required on your system.\n");
  4454. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4455. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4456. printf("*** before re-running configure\n");
  4457. }
  4458. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4459. {
  4460. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4461. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4462. }
  4463. else
  4464. {
  4465. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4466. {
  4467. return 0;
  4468. }
  4469. else
  4470. {
  4471. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4472. gnutls_check_version(NULL) );
  4473. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4474. "$min_libgnutls_version" );
  4475. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4476. printf("*** \n");
  4477. printf("*** If you have already installed a sufficiently new version, this error\n");
  4478. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4479. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4480. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4481. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4482. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4483. printf("*** so that the correct libraries are found at run-time))\n");
  4484. }
  4485. }
  4486. return 1;
  4487. }
  4488. _ACEOF
  4489. rm -f conftest$ac_exeext
  4490. if { (ac_try="$ac_link"
  4491. case "(($ac_try" in
  4492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4493. *) ac_try_echo=$ac_try;;
  4494. esac
  4495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4496. (eval "$ac_link") 2>&5
  4497. ac_status=$?
  4498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4499. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4500. { (case "(($ac_try" in
  4501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4502. *) ac_try_echo=$ac_try;;
  4503. esac
  4504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4505. (eval "$ac_try") 2>&5
  4506. ac_status=$?
  4507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508. (exit $ac_status); }; }; then
  4509. :
  4510. else
  4511. echo "$as_me: program exited with status $ac_status" >&5
  4512. echo "$as_me: failed program was:" >&5
  4513. sed 's/^/| /' conftest.$ac_ext >&5
  4514. ( exit $ac_status )
  4515. no_libgnutls=yes
  4516. fi
  4517. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4518. fi
  4519. CFLAGS="$ac_save_CFLAGS"
  4520. LIBS="$ac_save_LIBS"
  4521. fi
  4522. if test "x$no_libgnutls" = x ; then
  4523. { echo "$as_me:$LINENO: result: yes" >&5
  4524. echo "${ECHO_T}yes" >&6; }
  4525. have_libgnutls=yes
  4526. else
  4527. if test -f conf.libgnutlstest ; then
  4528. :
  4529. else
  4530. { echo "$as_me:$LINENO: result: no" >&5
  4531. echo "${ECHO_T}no" >&6; }
  4532. fi
  4533. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4534. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4535. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4536. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4537. echo "*** full path to libgnutls-config."
  4538. else
  4539. if test -f conf.libgnutlstest ; then
  4540. :
  4541. else
  4542. echo "*** Could not run libgnutls test program, checking why..."
  4543. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4544. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4545. cat >conftest.$ac_ext <<_ACEOF
  4546. /* confdefs.h. */
  4547. _ACEOF
  4548. cat confdefs.h >>conftest.$ac_ext
  4549. cat >>conftest.$ac_ext <<_ACEOF
  4550. /* end confdefs.h. */
  4551. #include <stdio.h>
  4552. #include <stdlib.h>
  4553. #include <string.h>
  4554. #include <gnutls/gnutls.h>
  4555. int
  4556. main ()
  4557. {
  4558. return !!gnutls_check_version(NULL);
  4559. ;
  4560. return 0;
  4561. }
  4562. _ACEOF
  4563. rm -f conftest.$ac_objext conftest$ac_exeext
  4564. if { (ac_try="$ac_link"
  4565. case "(($ac_try" in
  4566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4567. *) ac_try_echo=$ac_try;;
  4568. esac
  4569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4570. (eval "$ac_link") 2>conftest.er1
  4571. ac_status=$?
  4572. grep -v '^ *+' conftest.er1 >conftest.err
  4573. rm -f conftest.er1
  4574. cat conftest.err >&5
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); } && {
  4577. test -z "$ac_cxx_werror_flag" ||
  4578. test ! -s conftest.err
  4579. } && test -s conftest$ac_exeext &&
  4580. $as_test_x conftest$ac_exeext; then
  4581. echo "*** The test program compiled, but did not run. This usually means"
  4582. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4583. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4584. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4585. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4586. echo "*** is required on your system"
  4587. echo "***"
  4588. echo "*** If you have an old version installed, it is best to remove it, although"
  4589. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4590. echo "***"
  4591. else
  4592. echo "$as_me: failed program was:" >&5
  4593. sed 's/^/| /' conftest.$ac_ext >&5
  4594. echo "*** The test program failed to compile or link. See the file config.log for the"
  4595. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4596. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4597. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4598. fi
  4599. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4600. conftest$ac_exeext conftest.$ac_ext
  4601. CFLAGS="$ac_save_CFLAGS"
  4602. LIBS="$ac_save_LIBS"
  4603. fi
  4604. fi
  4605. LIBGNUTLS_CFLAGS=""
  4606. LIBGNUTLS_LIBS=""
  4607. :
  4608. fi
  4609. rm -f conf.libgnutlstest
  4610. if test "x$have_libgnutls" = "xyes"; then
  4611. cat >>confdefs.h <<\_ACEOF
  4612. #define HAVE_LIBGNUTLS 1
  4613. _ACEOF
  4614. fi
  4615. fi
  4616. if test "x$have_libgnutls" = "xyes"; then
  4617. # Check whether --with-libgcrypt-prefix was given.
  4618. if test "${with_libgcrypt_prefix+set}" = set; then
  4619. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4620. else
  4621. libgcrypt_config_prefix=""
  4622. fi
  4623. if test x$libgcrypt_config_prefix != x ; then
  4624. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4625. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4626. fi
  4627. fi
  4628. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4629. set dummy libgcrypt-config; ac_word=$2
  4630. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4631. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4632. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4633. echo $ECHO_N "(cached) $ECHO_C" >&6
  4634. else
  4635. case $LIBGCRYPT_CONFIG in
  4636. [\\/]* | ?:[\\/]*)
  4637. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4638. ;;
  4639. *)
  4640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4641. for as_dir in $PATH
  4642. do
  4643. IFS=$as_save_IFS
  4644. test -z "$as_dir" && as_dir=.
  4645. for ac_exec_ext in '' $ac_executable_extensions; do
  4646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4647. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4648. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4649. break 2
  4650. fi
  4651. done
  4652. done
  4653. IFS=$as_save_IFS
  4654. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4655. ;;
  4656. esac
  4657. fi
  4658. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4659. if test -n "$LIBGCRYPT_CONFIG"; then
  4660. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4661. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4662. else
  4663. { echo "$as_me:$LINENO: result: no" >&5
  4664. echo "${ECHO_T}no" >&6; }
  4665. fi
  4666. tmp=1.2.2
  4667. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4668. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4669. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4670. else
  4671. req_libgcrypt_api=0
  4672. min_libgcrypt_version="$tmp"
  4673. fi
  4674. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4675. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4676. ok=no
  4677. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4678. req_major=`echo $min_libgcrypt_version | \
  4679. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4680. req_minor=`echo $min_libgcrypt_version | \
  4681. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4682. req_micro=`echo $min_libgcrypt_version | \
  4683. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4684. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4685. major=`echo $libgcrypt_config_version | \
  4686. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4687. minor=`echo $libgcrypt_config_version | \
  4688. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4689. micro=`echo $libgcrypt_config_version | \
  4690. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4691. if test "$major" -gt "$req_major"; then
  4692. ok=yes
  4693. else
  4694. if test "$major" -eq "$req_major"; then
  4695. if test "$minor" -gt "$req_minor"; then
  4696. ok=yes
  4697. else
  4698. if test "$minor" -eq "$req_minor"; then
  4699. if test "$micro" -ge "$req_micro"; then
  4700. ok=yes
  4701. fi
  4702. fi
  4703. fi
  4704. fi
  4705. fi
  4706. fi
  4707. if test $ok = yes; then
  4708. { echo "$as_me:$LINENO: result: yes" >&5
  4709. echo "${ECHO_T}yes" >&6; }
  4710. else
  4711. { echo "$as_me:$LINENO: result: no" >&5
  4712. echo "${ECHO_T}no" >&6; }
  4713. fi
  4714. if test $ok = yes; then
  4715. # If we have a recent libgcrypt, we should also check that the
  4716. # API is compatible
  4717. if test "$req_libgcrypt_api" -gt 0 ; then
  4718. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4719. if test "$tmp" -gt 0 ; then
  4720. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4721. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4722. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4723. { echo "$as_me:$LINENO: result: okay" >&5
  4724. echo "${ECHO_T}okay" >&6; }
  4725. else
  4726. ok=no
  4727. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4728. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4729. fi
  4730. fi
  4731. fi
  4732. fi
  4733. if test $ok = yes; then
  4734. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4735. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4736. have_libgcrypt=yes
  4737. else
  4738. LIBGCRYPT_CFLAGS=""
  4739. LIBGCRYPT_LIBS=""
  4740. :
  4741. fi
  4742. if test "x$have_libgcrypt" = "xyes"; then
  4743. cat >>confdefs.h <<\_ACEOF
  4744. #define HAVE_LIBGCRYPT 1
  4745. _ACEOF
  4746. fi
  4747. fi
  4748. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4749. # Check whether --with-openssl-prefix was given.
  4750. if test "${with_openssl_prefix+set}" = set; then
  4751. withval=$with_openssl_prefix; openssl_prefix=$withval
  4752. else
  4753. openssl_prefix=""
  4754. fi
  4755. if test "x$openssl_prefix" = "x"; then
  4756. openssl_prefix="/usr/local"
  4757. fi
  4758. openssl_prefix_lib=$openssl_prefix/lib
  4759. openssl_prefix_include=$openssl_prefix/include
  4760. LIBS_save=$LIBS
  4761. CPPFLAGS_save=$CPPFLAGS
  4762. LIBS="-L$openssl_prefix_lib $LIBS"
  4763. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4764. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4765. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4766. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4767. echo $ECHO_N "(cached) $ECHO_C" >&6
  4768. else
  4769. ac_check_lib_save_LIBS=$LIBS
  4770. LIBS="-lssl $LIBS"
  4771. cat >conftest.$ac_ext <<_ACEOF
  4772. /* confdefs.h. */
  4773. _ACEOF
  4774. cat confdefs.h >>conftest.$ac_ext
  4775. cat >>conftest.$ac_ext <<_ACEOF
  4776. /* end confdefs.h. */
  4777. /* Override any GCC internal prototype to avoid an error.
  4778. Use char because int might match the return type of a GCC
  4779. builtin and then its argument prototype would still apply. */
  4780. #ifdef __cplusplus
  4781. extern "C"
  4782. #endif
  4783. char SSL_library_init ();
  4784. int
  4785. main ()
  4786. {
  4787. return SSL_library_init ();
  4788. ;
  4789. return 0;
  4790. }
  4791. _ACEOF
  4792. rm -f conftest.$ac_objext conftest$ac_exeext
  4793. if { (ac_try="$ac_link"
  4794. case "(($ac_try" in
  4795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4796. *) ac_try_echo=$ac_try;;
  4797. esac
  4798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4799. (eval "$ac_link") 2>conftest.er1
  4800. ac_status=$?
  4801. grep -v '^ *+' conftest.er1 >conftest.err
  4802. rm -f conftest.er1
  4803. cat conftest.err >&5
  4804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); } && {
  4806. test -z "$ac_cxx_werror_flag" ||
  4807. test ! -s conftest.err
  4808. } && test -s conftest$ac_exeext &&
  4809. $as_test_x conftest$ac_exeext; then
  4810. ac_cv_lib_ssl_SSL_library_init=yes
  4811. else
  4812. echo "$as_me: failed program was:" >&5
  4813. sed 's/^/| /' conftest.$ac_ext >&5
  4814. ac_cv_lib_ssl_SSL_library_init=no
  4815. fi
  4816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4817. conftest$ac_exeext conftest.$ac_ext
  4818. LIBS=$ac_check_lib_save_LIBS
  4819. fi
  4820. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4821. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4822. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4823. have_openssl=yes; LIBS="-lssl $LIBS"
  4824. fi
  4825. if test "x$have_openssl" = "xyes"; then
  4826. have_openssl=no
  4827. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4828. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4829. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4830. echo $ECHO_N "(cached) $ECHO_C" >&6
  4831. else
  4832. ac_check_lib_save_LIBS=$LIBS
  4833. LIBS="-lcrypto $LIBS"
  4834. cat >conftest.$ac_ext <<_ACEOF
  4835. /* confdefs.h. */
  4836. _ACEOF
  4837. cat confdefs.h >>conftest.$ac_ext
  4838. cat >>conftest.$ac_ext <<_ACEOF
  4839. /* end confdefs.h. */
  4840. int
  4841. main ()
  4842. {
  4843. return main ();
  4844. ;
  4845. return 0;
  4846. }
  4847. _ACEOF
  4848. rm -f conftest.$ac_objext conftest$ac_exeext
  4849. if { (ac_try="$ac_link"
  4850. case "(($ac_try" in
  4851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4852. *) ac_try_echo=$ac_try;;
  4853. esac
  4854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4855. (eval "$ac_link") 2>conftest.er1
  4856. ac_status=$?
  4857. grep -v '^ *+' conftest.er1 >conftest.err
  4858. rm -f conftest.er1
  4859. cat conftest.err >&5
  4860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4861. (exit $ac_status); } && {
  4862. test -z "$ac_cxx_werror_flag" ||
  4863. test ! -s conftest.err
  4864. } && test -s conftest$ac_exeext &&
  4865. $as_test_x conftest$ac_exeext; then
  4866. ac_cv_lib_crypto_main=yes
  4867. else
  4868. echo "$as_me: failed program was:" >&5
  4869. sed 's/^/| /' conftest.$ac_ext >&5
  4870. ac_cv_lib_crypto_main=no
  4871. fi
  4872. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4873. conftest$ac_exeext conftest.$ac_ext
  4874. LIBS=$ac_check_lib_save_LIBS
  4875. fi
  4876. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4877. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4878. if test $ac_cv_lib_crypto_main = yes; then
  4879. have_openssl=yes; LIBS="-lcrypto $LIBS"
  4880. fi
  4881. if test "x$have_openssl" = "xyes"; then
  4882. cat >>confdefs.h <<\_ACEOF
  4883. #define HAVE_LIBSSL 1
  4884. _ACEOF
  4885. for ac_func in EVP_DigestInit_ex
  4886. do
  4887. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4888. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4889. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4890. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4891. echo $ECHO_N "(cached) $ECHO_C" >&6
  4892. else
  4893. cat >conftest.$ac_ext <<_ACEOF
  4894. /* confdefs.h. */
  4895. _ACEOF
  4896. cat confdefs.h >>conftest.$ac_ext
  4897. cat >>conftest.$ac_ext <<_ACEOF
  4898. /* end confdefs.h. */
  4899. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4901. #define $ac_func innocuous_$ac_func
  4902. /* System header to define __stub macros and hopefully few prototypes,
  4903. which can conflict with char $ac_func (); below.
  4904. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4905. <limits.h> exists even on freestanding compilers. */
  4906. #ifdef __STDC__
  4907. # include <limits.h>
  4908. #else
  4909. # include <assert.h>
  4910. #endif
  4911. #undef $ac_func
  4912. /* Override any GCC internal prototype to avoid an error.
  4913. Use char because int might match the return type of a GCC
  4914. builtin and then its argument prototype would still apply. */
  4915. #ifdef __cplusplus
  4916. extern "C"
  4917. #endif
  4918. char $ac_func ();
  4919. /* The GNU C library defines this for functions which it implements
  4920. to always fail with ENOSYS. Some functions are actually named
  4921. something starting with __ and the normal name is an alias. */
  4922. #if defined __stub_$ac_func || defined __stub___$ac_func
  4923. choke me
  4924. #endif
  4925. int
  4926. main ()
  4927. {
  4928. return $ac_func ();
  4929. ;
  4930. return 0;
  4931. }
  4932. _ACEOF
  4933. rm -f conftest.$ac_objext conftest$ac_exeext
  4934. if { (ac_try="$ac_link"
  4935. case "(($ac_try" in
  4936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4937. *) ac_try_echo=$ac_try;;
  4938. esac
  4939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4940. (eval "$ac_link") 2>conftest.er1
  4941. ac_status=$?
  4942. grep -v '^ *+' conftest.er1 >conftest.err
  4943. rm -f conftest.er1
  4944. cat conftest.err >&5
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); } && {
  4947. test -z "$ac_cxx_werror_flag" ||
  4948. test ! -s conftest.err
  4949. } && test -s conftest$ac_exeext &&
  4950. $as_test_x conftest$ac_exeext; then
  4951. eval "$as_ac_var=yes"
  4952. else
  4953. echo "$as_me: failed program was:" >&5
  4954. sed 's/^/| /' conftest.$ac_ext >&5
  4955. eval "$as_ac_var=no"
  4956. fi
  4957. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4958. conftest$ac_exeext conftest.$ac_ext
  4959. fi
  4960. ac_res=`eval echo '${'$as_ac_var'}'`
  4961. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4962. echo "${ECHO_T}$ac_res" >&6; }
  4963. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4964. cat >>confdefs.h <<_ACEOF
  4965. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4966. _ACEOF
  4967. have_digestinit_ex=yes
  4968. fi
  4969. done
  4970. if test "x$have_digestinit_ex" = "x"; then
  4971. cat >>confdefs.h <<\_ACEOF
  4972. #define HAVE_OLD_LIBSSL 1
  4973. _ACEOF
  4974. fi
  4975. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4976. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4977. for ac_func in EVP_sha256
  4978. do
  4979. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4980. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4981. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4982. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4983. echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985. cat >conftest.$ac_ext <<_ACEOF
  4986. /* confdefs.h. */
  4987. _ACEOF
  4988. cat confdefs.h >>conftest.$ac_ext
  4989. cat >>conftest.$ac_ext <<_ACEOF
  4990. /* end confdefs.h. */
  4991. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4992. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4993. #define $ac_func innocuous_$ac_func
  4994. /* System header to define __stub macros and hopefully few prototypes,
  4995. which can conflict with char $ac_func (); below.
  4996. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4997. <limits.h> exists even on freestanding compilers. */
  4998. #ifdef __STDC__
  4999. # include <limits.h>
  5000. #else
  5001. # include <assert.h>
  5002. #endif
  5003. #undef $ac_func
  5004. /* Override any GCC internal prototype to avoid an error.
  5005. Use char because int might match the return type of a GCC
  5006. builtin and then its argument prototype would still apply. */
  5007. #ifdef __cplusplus
  5008. extern "C"
  5009. #endif
  5010. char $ac_func ();
  5011. /* The GNU C library defines this for functions which it implements
  5012. to always fail with ENOSYS. Some functions are actually named
  5013. something starting with __ and the normal name is an alias. */
  5014. #if defined __stub_$ac_func || defined __stub___$ac_func
  5015. choke me
  5016. #endif
  5017. int
  5018. main ()
  5019. {
  5020. return $ac_func ();
  5021. ;
  5022. return 0;
  5023. }
  5024. _ACEOF
  5025. rm -f conftest.$ac_objext conftest$ac_exeext
  5026. if { (ac_try="$ac_link"
  5027. case "(($ac_try" in
  5028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5029. *) ac_try_echo=$ac_try;;
  5030. esac
  5031. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5032. (eval "$ac_link") 2>conftest.er1
  5033. ac_status=$?
  5034. grep -v '^ *+' conftest.er1 >conftest.err
  5035. rm -f conftest.er1
  5036. cat conftest.err >&5
  5037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5038. (exit $ac_status); } && {
  5039. test -z "$ac_cxx_werror_flag" ||
  5040. test ! -s conftest.err
  5041. } && test -s conftest$ac_exeext &&
  5042. $as_test_x conftest$ac_exeext; then
  5043. eval "$as_ac_var=yes"
  5044. else
  5045. echo "$as_me: failed program was:" >&5
  5046. sed 's/^/| /' conftest.$ac_ext >&5
  5047. eval "$as_ac_var=no"
  5048. fi
  5049. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5050. conftest$ac_exeext conftest.$ac_ext
  5051. fi
  5052. ac_res=`eval echo '${'$as_ac_var'}'`
  5053. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5054. echo "${ECHO_T}$ac_res" >&6; }
  5055. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5056. cat >>confdefs.h <<_ACEOF
  5057. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5058. _ACEOF
  5059. fi
  5060. done
  5061. fi
  5062. fi
  5063. LIBS=$LIBS_save
  5064. CPPFLAGS=$CPPFLAGS_save
  5065. fi
  5066. if test "x$with_libcares" = "xyes"; then
  5067. # Check whether --with-libcares-prefix was given.
  5068. if test "${with_libcares_prefix+set}" = set; then
  5069. withval=$with_libcares_prefix; libcares_prefix=$withval
  5070. else
  5071. libcares_prefix=""
  5072. fi
  5073. if test "x$libcares_prefix" = "x"; then
  5074. libcares_prefix="/usr"
  5075. fi
  5076. libcares_prefix_lib=$libcares_prefix/lib
  5077. libcares_prefix_include=$libcares_prefix/include
  5078. LIBS_save=$LIBS
  5079. CPPFLAGS_save=$CPPFLAGS
  5080. LIBS="-L$libcares_prefix_lib $LIBS"
  5081. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5082. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5083. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5084. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5085. echo $ECHO_N "(cached) $ECHO_C" >&6
  5086. else
  5087. ac_check_lib_save_LIBS=$LIBS
  5088. LIBS="-lcares $LIBS"
  5089. cat >conftest.$ac_ext <<_ACEOF
  5090. /* confdefs.h. */
  5091. _ACEOF
  5092. cat confdefs.h >>conftest.$ac_ext
  5093. cat >>conftest.$ac_ext <<_ACEOF
  5094. /* end confdefs.h. */
  5095. /* Override any GCC internal prototype to avoid an error.
  5096. Use char because int might match the return type of a GCC
  5097. builtin and then its argument prototype would still apply. */
  5098. #ifdef __cplusplus
  5099. extern "C"
  5100. #endif
  5101. char ares_init ();
  5102. int
  5103. main ()
  5104. {
  5105. return ares_init ();
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. rm -f conftest.$ac_objext conftest$ac_exeext
  5111. if { (ac_try="$ac_link"
  5112. case "(($ac_try" in
  5113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5114. *) ac_try_echo=$ac_try;;
  5115. esac
  5116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5117. (eval "$ac_link") 2>conftest.er1
  5118. ac_status=$?
  5119. grep -v '^ *+' conftest.er1 >conftest.err
  5120. rm -f conftest.er1
  5121. cat conftest.err >&5
  5122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5123. (exit $ac_status); } && {
  5124. test -z "$ac_cxx_werror_flag" ||
  5125. test ! -s conftest.err
  5126. } && test -s conftest$ac_exeext &&
  5127. $as_test_x conftest$ac_exeext; then
  5128. ac_cv_lib_cares_ares_init=yes
  5129. else
  5130. echo "$as_me: failed program was:" >&5
  5131. sed 's/^/| /' conftest.$ac_ext >&5
  5132. ac_cv_lib_cares_ares_init=no
  5133. fi
  5134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5135. conftest$ac_exeext conftest.$ac_ext
  5136. LIBS=$ac_check_lib_save_LIBS
  5137. fi
  5138. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5139. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5140. if test $ac_cv_lib_cares_ares_init = yes; then
  5141. have_libcares=yes
  5142. fi
  5143. if test "x$have_libcares" = "xyes"; then
  5144. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  5145. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  5146. cat >conftest.$ac_ext <<_ACEOF
  5147. /* confdefs.h. */
  5148. _ACEOF
  5149. cat confdefs.h >>conftest.$ac_ext
  5150. cat >>conftest.$ac_ext <<_ACEOF
  5151. /* end confdefs.h. */
  5152. #include <ares.h>
  5153. void callback(void* arg, int status, int timeouts, struct hostent* host);
  5154. int
  5155. main ()
  5156. {
  5157. ares_channel channel;
  5158. ares_gethostbyname(channel, "foo", 0, callback, 0);
  5159. ;
  5160. return 0;
  5161. }
  5162. _ACEOF
  5163. rm -f conftest.$ac_objext
  5164. if { (ac_try="$ac_compile"
  5165. case "(($ac_try" in
  5166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5167. *) ac_try_echo=$ac_try;;
  5168. esac
  5169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5170. (eval "$ac_compile") 2>conftest.er1
  5171. ac_status=$?
  5172. grep -v '^ *+' conftest.er1 >conftest.err
  5173. rm -f conftest.er1
  5174. cat conftest.err >&5
  5175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176. (exit $ac_status); } && {
  5177. test -z "$ac_cxx_werror_flag" ||
  5178. test ! -s conftest.err
  5179. } && test -s conftest.$ac_objext; then
  5180. have_libcares1_5=yes
  5181. else
  5182. echo "$as_me: failed program was:" >&5
  5183. sed 's/^/| /' conftest.$ac_ext >&5
  5184. have_libcares1_5=no
  5185. fi
  5186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5187. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  5188. echo "${ECHO_T}$have_libcares1_5" >&6; }
  5189. if test "x$have_libcares1_5" = "xyes"; then
  5190. cat >>confdefs.h <<\_ACEOF
  5191. #define HAVE_LIBCARES1_5 1
  5192. _ACEOF
  5193. fi
  5194. cat >>confdefs.h <<\_ACEOF
  5195. #define HAVE_LIBCARES 1
  5196. _ACEOF
  5197. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  5198. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  5199. fi
  5200. LIBS=$LIBS_save
  5201. CPPFLAGS=$CPPFLAGS_save
  5202. fi
  5203. if test "x$have_libcares" = "x"; then
  5204. if test "x$with_libares" = "xyes"; then
  5205. # Check whether --with-libares-prefix was given.
  5206. if test "${with_libares_prefix+set}" = set; then
  5207. withval=$with_libares_prefix; libares_prefix=$withval
  5208. else
  5209. libares_prefix=""
  5210. fi
  5211. if test "x$libares_prefix" = "x"; then
  5212. libares_prefix="/usr"
  5213. fi
  5214. libares_prefix_lib=$libares_prefix/lib
  5215. libares_prefix_include=$libares_prefix/include
  5216. LIBS_save=$LIBS
  5217. CPPFLAGS_save=$CPPFLAGS
  5218. LIBS="-L$libares_prefix_lib $LIBS"
  5219. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  5220. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  5221. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  5222. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  5223. echo $ECHO_N "(cached) $ECHO_C" >&6
  5224. else
  5225. ac_check_lib_save_LIBS=$LIBS
  5226. LIBS="-lares $LIBS"
  5227. cat >conftest.$ac_ext <<_ACEOF
  5228. /* confdefs.h. */
  5229. _ACEOF
  5230. cat confdefs.h >>conftest.$ac_ext
  5231. cat >>conftest.$ac_ext <<_ACEOF
  5232. /* end confdefs.h. */
  5233. /* Override any GCC internal prototype to avoid an error.
  5234. Use char because int might match the return type of a GCC
  5235. builtin and then its argument prototype would still apply. */
  5236. #ifdef __cplusplus
  5237. extern "C"
  5238. #endif
  5239. char ares_init ();
  5240. int
  5241. main ()
  5242. {
  5243. return ares_init ();
  5244. ;
  5245. return 0;
  5246. }
  5247. _ACEOF
  5248. rm -f conftest.$ac_objext conftest$ac_exeext
  5249. if { (ac_try="$ac_link"
  5250. case "(($ac_try" in
  5251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5252. *) ac_try_echo=$ac_try;;
  5253. esac
  5254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5255. (eval "$ac_link") 2>conftest.er1
  5256. ac_status=$?
  5257. grep -v '^ *+' conftest.er1 >conftest.err
  5258. rm -f conftest.er1
  5259. cat conftest.err >&5
  5260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5261. (exit $ac_status); } && {
  5262. test -z "$ac_cxx_werror_flag" ||
  5263. test ! -s conftest.err
  5264. } && test -s conftest$ac_exeext &&
  5265. $as_test_x conftest$ac_exeext; then
  5266. ac_cv_lib_ares_ares_init=yes
  5267. else
  5268. echo "$as_me: failed program was:" >&5
  5269. sed 's/^/| /' conftest.$ac_ext >&5
  5270. ac_cv_lib_ares_ares_init=no
  5271. fi
  5272. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5273. conftest$ac_exeext conftest.$ac_ext
  5274. LIBS=$ac_check_lib_save_LIBS
  5275. fi
  5276. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5277. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5278. if test $ac_cv_lib_ares_ares_init = yes; then
  5279. have_libares=yes
  5280. fi
  5281. if test "x$have_libares" = "xyes"; then
  5282. cat >>confdefs.h <<\_ACEOF
  5283. #define HAVE_LIBARES 1
  5284. _ACEOF
  5285. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5286. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5287. fi
  5288. LIBS=$LIBS_save
  5289. CPPFLAGS=$CPPFLAGS_save
  5290. fi
  5291. fi
  5292. # Define variables based on the result of the checks for libraries.
  5293. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  5294. cat >>confdefs.h <<\_ACEOF
  5295. #define ENABLE_SSL 1
  5296. _ACEOF
  5297. fi
  5298. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  5299. cat >>confdefs.h <<\_ACEOF
  5300. #define ENABLE_MESSAGE_DIGEST 1
  5301. _ACEOF
  5302. if true; then
  5303. ENABLE_MESSAGE_DIGEST_TRUE=
  5304. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5305. else
  5306. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5307. ENABLE_MESSAGE_DIGEST_FALSE=
  5308. fi
  5309. enable_message_digest=yes
  5310. else
  5311. if false; then
  5312. ENABLE_MESSAGE_DIGEST_TRUE=
  5313. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5314. else
  5315. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5316. ENABLE_MESSAGE_DIGEST_FALSE=
  5317. fi
  5318. fi
  5319. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  5320. cat >>confdefs.h <<\_ACEOF
  5321. #define ENABLE_BITTORRENT 1
  5322. _ACEOF
  5323. if true; then
  5324. ENABLE_BITTORRENT_TRUE=
  5325. ENABLE_BITTORRENT_FALSE='#'
  5326. else
  5327. ENABLE_BITTORRENT_TRUE='#'
  5328. ENABLE_BITTORRENT_FALSE=
  5329. fi
  5330. else
  5331. enable_bittorrent=no
  5332. if false; then
  5333. ENABLE_BITTORRENT_TRUE=
  5334. ENABLE_BITTORRENT_FALSE='#'
  5335. else
  5336. ENABLE_BITTORRENT_TRUE='#'
  5337. ENABLE_BITTORRENT_FALSE=
  5338. fi
  5339. fi
  5340. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  5341. cat >>confdefs.h <<\_ACEOF
  5342. #define ENABLE_METALINK 1
  5343. _ACEOF
  5344. if true; then
  5345. ENABLE_METALINK_TRUE=
  5346. ENABLE_METALINK_FALSE='#'
  5347. else
  5348. ENABLE_METALINK_TRUE='#'
  5349. ENABLE_METALINK_FALSE=
  5350. fi
  5351. else
  5352. enable_metalink=no
  5353. if false; then
  5354. ENABLE_METALINK_TRUE=
  5355. ENABLE_METALINK_FALSE='#'
  5356. else
  5357. ENABLE_METALINK_TRUE='#'
  5358. ENABLE_METALINK_FALSE=
  5359. fi
  5360. fi
  5361. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  5362. ENABLE_LIBXML2_TRUE=
  5363. ENABLE_LIBXML2_FALSE='#'
  5364. else
  5365. ENABLE_LIBXML2_TRUE='#'
  5366. ENABLE_LIBXML2_FALSE=
  5367. fi
  5368. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  5369. ENABLE_LIBEXPAT_TRUE=
  5370. ENABLE_LIBEXPAT_FALSE='#'
  5371. else
  5372. ENABLE_LIBEXPAT_TRUE='#'
  5373. ENABLE_LIBEXPAT_FALSE=
  5374. fi
  5375. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5376. cat >>confdefs.h <<\_ACEOF
  5377. #define ENABLE_ASYNC_DNS 1
  5378. _ACEOF
  5379. if true; then
  5380. ENABLE_ASYNC_DNS_TRUE=
  5381. ENABLE_ASYNC_DNS_FALSE='#'
  5382. else
  5383. ENABLE_ASYNC_DNS_TRUE='#'
  5384. ENABLE_ASYNC_DNS_FALSE=
  5385. fi
  5386. else
  5387. if false; then
  5388. ENABLE_ASYNC_DNS_TRUE=
  5389. ENABLE_ASYNC_DNS_FALSE='#'
  5390. else
  5391. ENABLE_ASYNC_DNS_TRUE='#'
  5392. ENABLE_ASYNC_DNS_FALSE=
  5393. fi
  5394. fi
  5395. # Checks for header files.
  5396. ac_ext=cpp
  5397. ac_cpp='$CXXCPP $CPPFLAGS'
  5398. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5399. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5400. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5401. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5402. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5403. if test -z "$CXXCPP"; then
  5404. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5405. echo $ECHO_N "(cached) $ECHO_C" >&6
  5406. else
  5407. # Double quotes because CXXCPP needs to be expanded
  5408. for CXXCPP in "$CXX -E" "/lib/cpp"
  5409. do
  5410. ac_preproc_ok=false
  5411. for ac_cxx_preproc_warn_flag in '' yes
  5412. do
  5413. # Use a header file that comes with gcc, so configuring glibc
  5414. # with a fresh cross-compiler works.
  5415. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5416. # <limits.h> exists even on freestanding compilers.
  5417. # On the NeXT, cc -E runs the code through the compiler's parser,
  5418. # not just through cpp. "Syntax error" is here to catch this case.
  5419. cat >conftest.$ac_ext <<_ACEOF
  5420. /* confdefs.h. */
  5421. _ACEOF
  5422. cat confdefs.h >>conftest.$ac_ext
  5423. cat >>conftest.$ac_ext <<_ACEOF
  5424. /* end confdefs.h. */
  5425. #ifdef __STDC__
  5426. # include <limits.h>
  5427. #else
  5428. # include <assert.h>
  5429. #endif
  5430. Syntax error
  5431. _ACEOF
  5432. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5433. case "(($ac_try" in
  5434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5435. *) ac_try_echo=$ac_try;;
  5436. esac
  5437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5438. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5439. ac_status=$?
  5440. grep -v '^ *+' conftest.er1 >conftest.err
  5441. rm -f conftest.er1
  5442. cat conftest.err >&5
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); } >/dev/null && {
  5445. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5446. test ! -s conftest.err
  5447. }; then
  5448. :
  5449. else
  5450. echo "$as_me: failed program was:" >&5
  5451. sed 's/^/| /' conftest.$ac_ext >&5
  5452. # Broken: fails on valid input.
  5453. continue
  5454. fi
  5455. rm -f conftest.err conftest.$ac_ext
  5456. # OK, works on sane cases. Now check whether nonexistent headers
  5457. # can be detected and how.
  5458. cat >conftest.$ac_ext <<_ACEOF
  5459. /* confdefs.h. */
  5460. _ACEOF
  5461. cat confdefs.h >>conftest.$ac_ext
  5462. cat >>conftest.$ac_ext <<_ACEOF
  5463. /* end confdefs.h. */
  5464. #include <ac_nonexistent.h>
  5465. _ACEOF
  5466. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5467. case "(($ac_try" in
  5468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5469. *) ac_try_echo=$ac_try;;
  5470. esac
  5471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5472. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5473. ac_status=$?
  5474. grep -v '^ *+' conftest.er1 >conftest.err
  5475. rm -f conftest.er1
  5476. cat conftest.err >&5
  5477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5478. (exit $ac_status); } >/dev/null && {
  5479. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5480. test ! -s conftest.err
  5481. }; then
  5482. # Broken: success on invalid input.
  5483. continue
  5484. else
  5485. echo "$as_me: failed program was:" >&5
  5486. sed 's/^/| /' conftest.$ac_ext >&5
  5487. # Passes both tests.
  5488. ac_preproc_ok=:
  5489. break
  5490. fi
  5491. rm -f conftest.err conftest.$ac_ext
  5492. done
  5493. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5494. rm -f conftest.err conftest.$ac_ext
  5495. if $ac_preproc_ok; then
  5496. break
  5497. fi
  5498. done
  5499. ac_cv_prog_CXXCPP=$CXXCPP
  5500. fi
  5501. CXXCPP=$ac_cv_prog_CXXCPP
  5502. else
  5503. ac_cv_prog_CXXCPP=$CXXCPP
  5504. fi
  5505. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5506. echo "${ECHO_T}$CXXCPP" >&6; }
  5507. ac_preproc_ok=false
  5508. for ac_cxx_preproc_warn_flag in '' yes
  5509. do
  5510. # Use a header file that comes with gcc, so configuring glibc
  5511. # with a fresh cross-compiler works.
  5512. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5513. # <limits.h> exists even on freestanding compilers.
  5514. # On the NeXT, cc -E runs the code through the compiler's parser,
  5515. # not just through cpp. "Syntax error" is here to catch this case.
  5516. cat >conftest.$ac_ext <<_ACEOF
  5517. /* confdefs.h. */
  5518. _ACEOF
  5519. cat confdefs.h >>conftest.$ac_ext
  5520. cat >>conftest.$ac_ext <<_ACEOF
  5521. /* end confdefs.h. */
  5522. #ifdef __STDC__
  5523. # include <limits.h>
  5524. #else
  5525. # include <assert.h>
  5526. #endif
  5527. Syntax error
  5528. _ACEOF
  5529. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5530. case "(($ac_try" in
  5531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5532. *) ac_try_echo=$ac_try;;
  5533. esac
  5534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5535. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5536. ac_status=$?
  5537. grep -v '^ *+' conftest.er1 >conftest.err
  5538. rm -f conftest.er1
  5539. cat conftest.err >&5
  5540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5541. (exit $ac_status); } >/dev/null && {
  5542. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5543. test ! -s conftest.err
  5544. }; then
  5545. :
  5546. else
  5547. echo "$as_me: failed program was:" >&5
  5548. sed 's/^/| /' conftest.$ac_ext >&5
  5549. # Broken: fails on valid input.
  5550. continue
  5551. fi
  5552. rm -f conftest.err conftest.$ac_ext
  5553. # OK, works on sane cases. Now check whether nonexistent headers
  5554. # can be detected and how.
  5555. cat >conftest.$ac_ext <<_ACEOF
  5556. /* confdefs.h. */
  5557. _ACEOF
  5558. cat confdefs.h >>conftest.$ac_ext
  5559. cat >>conftest.$ac_ext <<_ACEOF
  5560. /* end confdefs.h. */
  5561. #include <ac_nonexistent.h>
  5562. _ACEOF
  5563. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5564. case "(($ac_try" in
  5565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5566. *) ac_try_echo=$ac_try;;
  5567. esac
  5568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5569. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5570. ac_status=$?
  5571. grep -v '^ *+' conftest.er1 >conftest.err
  5572. rm -f conftest.er1
  5573. cat conftest.err >&5
  5574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5575. (exit $ac_status); } >/dev/null && {
  5576. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5577. test ! -s conftest.err
  5578. }; then
  5579. # Broken: success on invalid input.
  5580. continue
  5581. else
  5582. echo "$as_me: failed program was:" >&5
  5583. sed 's/^/| /' conftest.$ac_ext >&5
  5584. # Passes both tests.
  5585. ac_preproc_ok=:
  5586. break
  5587. fi
  5588. rm -f conftest.err conftest.$ac_ext
  5589. done
  5590. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5591. rm -f conftest.err conftest.$ac_ext
  5592. if $ac_preproc_ok; then
  5593. :
  5594. else
  5595. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5596. See \`config.log' for more details." >&5
  5597. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5598. See \`config.log' for more details." >&2;}
  5599. { (exit 1); exit 1; }; }
  5600. fi
  5601. ac_ext=cpp
  5602. ac_cpp='$CXXCPP $CPPFLAGS'
  5603. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5604. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5605. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5606. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5607. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5608. if test "${ac_cv_path_GREP+set}" = set; then
  5609. echo $ECHO_N "(cached) $ECHO_C" >&6
  5610. else
  5611. # Extract the first word of "grep ggrep" to use in msg output
  5612. if test -z "$GREP"; then
  5613. set dummy grep ggrep; ac_prog_name=$2
  5614. if test "${ac_cv_path_GREP+set}" = set; then
  5615. echo $ECHO_N "(cached) $ECHO_C" >&6
  5616. else
  5617. ac_path_GREP_found=false
  5618. # Loop through the user's path and test for each of PROGNAME-LIST
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_prog in grep ggrep; do
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5627. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5628. # Check for GNU ac_path_GREP and select it if it is found.
  5629. # Check for GNU $ac_path_GREP
  5630. case `"$ac_path_GREP" --version 2>&1` in
  5631. *GNU*)
  5632. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5633. *)
  5634. ac_count=0
  5635. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5636. while :
  5637. do
  5638. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5639. mv "conftest.tmp" "conftest.in"
  5640. cp "conftest.in" "conftest.nl"
  5641. echo 'GREP' >> "conftest.nl"
  5642. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5643. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5644. ac_count=`expr $ac_count + 1`
  5645. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5646. # Best one so far, save it but keep looking for a better one
  5647. ac_cv_path_GREP="$ac_path_GREP"
  5648. ac_path_GREP_max=$ac_count
  5649. fi
  5650. # 10*(2^10) chars as input seems more than enough
  5651. test $ac_count -gt 10 && break
  5652. done
  5653. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5654. esac
  5655. $ac_path_GREP_found && break 3
  5656. done
  5657. done
  5658. done
  5659. IFS=$as_save_IFS
  5660. fi
  5661. GREP="$ac_cv_path_GREP"
  5662. if test -z "$GREP"; then
  5663. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5664. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5665. { (exit 1); exit 1; }; }
  5666. fi
  5667. else
  5668. ac_cv_path_GREP=$GREP
  5669. fi
  5670. fi
  5671. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5672. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5673. GREP="$ac_cv_path_GREP"
  5674. { echo "$as_me:$LINENO: checking for egrep" >&5
  5675. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5676. if test "${ac_cv_path_EGREP+set}" = set; then
  5677. echo $ECHO_N "(cached) $ECHO_C" >&6
  5678. else
  5679. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5680. then ac_cv_path_EGREP="$GREP -E"
  5681. else
  5682. # Extract the first word of "egrep" to use in msg output
  5683. if test -z "$EGREP"; then
  5684. set dummy egrep; ac_prog_name=$2
  5685. if test "${ac_cv_path_EGREP+set}" = set; then
  5686. echo $ECHO_N "(cached) $ECHO_C" >&6
  5687. else
  5688. ac_path_EGREP_found=false
  5689. # Loop through the user's path and test for each of PROGNAME-LIST
  5690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5691. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5692. do
  5693. IFS=$as_save_IFS
  5694. test -z "$as_dir" && as_dir=.
  5695. for ac_prog in egrep; do
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5698. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5699. # Check for GNU ac_path_EGREP and select it if it is found.
  5700. # Check for GNU $ac_path_EGREP
  5701. case `"$ac_path_EGREP" --version 2>&1` in
  5702. *GNU*)
  5703. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5704. *)
  5705. ac_count=0
  5706. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5707. while :
  5708. do
  5709. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5710. mv "conftest.tmp" "conftest.in"
  5711. cp "conftest.in" "conftest.nl"
  5712. echo 'EGREP' >> "conftest.nl"
  5713. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5714. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5715. ac_count=`expr $ac_count + 1`
  5716. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5717. # Best one so far, save it but keep looking for a better one
  5718. ac_cv_path_EGREP="$ac_path_EGREP"
  5719. ac_path_EGREP_max=$ac_count
  5720. fi
  5721. # 10*(2^10) chars as input seems more than enough
  5722. test $ac_count -gt 10 && break
  5723. done
  5724. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5725. esac
  5726. $ac_path_EGREP_found && break 3
  5727. done
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. EGREP="$ac_cv_path_EGREP"
  5733. if test -z "$EGREP"; then
  5734. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5735. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5736. { (exit 1); exit 1; }; }
  5737. fi
  5738. else
  5739. ac_cv_path_EGREP=$EGREP
  5740. fi
  5741. fi
  5742. fi
  5743. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5744. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5745. EGREP="$ac_cv_path_EGREP"
  5746. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5747. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5748. if test "${ac_cv_header_stdc+set}" = set; then
  5749. echo $ECHO_N "(cached) $ECHO_C" >&6
  5750. else
  5751. cat >conftest.$ac_ext <<_ACEOF
  5752. /* confdefs.h. */
  5753. _ACEOF
  5754. cat confdefs.h >>conftest.$ac_ext
  5755. cat >>conftest.$ac_ext <<_ACEOF
  5756. /* end confdefs.h. */
  5757. #include <stdlib.h>
  5758. #include <stdarg.h>
  5759. #include <string.h>
  5760. #include <float.h>
  5761. int
  5762. main ()
  5763. {
  5764. ;
  5765. return 0;
  5766. }
  5767. _ACEOF
  5768. rm -f conftest.$ac_objext
  5769. if { (ac_try="$ac_compile"
  5770. case "(($ac_try" in
  5771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5772. *) ac_try_echo=$ac_try;;
  5773. esac
  5774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5775. (eval "$ac_compile") 2>conftest.er1
  5776. ac_status=$?
  5777. grep -v '^ *+' conftest.er1 >conftest.err
  5778. rm -f conftest.er1
  5779. cat conftest.err >&5
  5780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5781. (exit $ac_status); } && {
  5782. test -z "$ac_cxx_werror_flag" ||
  5783. test ! -s conftest.err
  5784. } && test -s conftest.$ac_objext; then
  5785. ac_cv_header_stdc=yes
  5786. else
  5787. echo "$as_me: failed program was:" >&5
  5788. sed 's/^/| /' conftest.$ac_ext >&5
  5789. ac_cv_header_stdc=no
  5790. fi
  5791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5792. if test $ac_cv_header_stdc = yes; then
  5793. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5794. cat >conftest.$ac_ext <<_ACEOF
  5795. /* confdefs.h. */
  5796. _ACEOF
  5797. cat confdefs.h >>conftest.$ac_ext
  5798. cat >>conftest.$ac_ext <<_ACEOF
  5799. /* end confdefs.h. */
  5800. #include <string.h>
  5801. _ACEOF
  5802. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5803. $EGREP "memchr" >/dev/null 2>&1; then
  5804. :
  5805. else
  5806. ac_cv_header_stdc=no
  5807. fi
  5808. rm -f conftest*
  5809. fi
  5810. if test $ac_cv_header_stdc = yes; then
  5811. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5812. cat >conftest.$ac_ext <<_ACEOF
  5813. /* confdefs.h. */
  5814. _ACEOF
  5815. cat confdefs.h >>conftest.$ac_ext
  5816. cat >>conftest.$ac_ext <<_ACEOF
  5817. /* end confdefs.h. */
  5818. #include <stdlib.h>
  5819. _ACEOF
  5820. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5821. $EGREP "free" >/dev/null 2>&1; then
  5822. :
  5823. else
  5824. ac_cv_header_stdc=no
  5825. fi
  5826. rm -f conftest*
  5827. fi
  5828. if test $ac_cv_header_stdc = yes; then
  5829. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5830. if test "$cross_compiling" = yes; then
  5831. :
  5832. else
  5833. cat >conftest.$ac_ext <<_ACEOF
  5834. /* confdefs.h. */
  5835. _ACEOF
  5836. cat confdefs.h >>conftest.$ac_ext
  5837. cat >>conftest.$ac_ext <<_ACEOF
  5838. /* end confdefs.h. */
  5839. #include <ctype.h>
  5840. #include <stdlib.h>
  5841. #if ((' ' & 0x0FF) == 0x020)
  5842. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5843. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5844. #else
  5845. # define ISLOWER(c) \
  5846. (('a' <= (c) && (c) <= 'i') \
  5847. || ('j' <= (c) && (c) <= 'r') \
  5848. || ('s' <= (c) && (c) <= 'z'))
  5849. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5850. #endif
  5851. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5852. int
  5853. main ()
  5854. {
  5855. int i;
  5856. for (i = 0; i < 256; i++)
  5857. if (XOR (islower (i), ISLOWER (i))
  5858. || toupper (i) != TOUPPER (i))
  5859. return 2;
  5860. return 0;
  5861. }
  5862. _ACEOF
  5863. rm -f conftest$ac_exeext
  5864. if { (ac_try="$ac_link"
  5865. case "(($ac_try" in
  5866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5867. *) ac_try_echo=$ac_try;;
  5868. esac
  5869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5870. (eval "$ac_link") 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5874. { (case "(($ac_try" in
  5875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5876. *) ac_try_echo=$ac_try;;
  5877. esac
  5878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5879. (eval "$ac_try") 2>&5
  5880. ac_status=$?
  5881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5882. (exit $ac_status); }; }; then
  5883. :
  5884. else
  5885. echo "$as_me: program exited with status $ac_status" >&5
  5886. echo "$as_me: failed program was:" >&5
  5887. sed 's/^/| /' conftest.$ac_ext >&5
  5888. ( exit $ac_status )
  5889. ac_cv_header_stdc=no
  5890. fi
  5891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5892. fi
  5893. fi
  5894. fi
  5895. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5896. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5897. if test $ac_cv_header_stdc = yes; then
  5898. cat >>confdefs.h <<\_ACEOF
  5899. #define STDC_HEADERS 1
  5900. _ACEOF
  5901. fi
  5902. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5903. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5904. inttypes.h stdint.h unistd.h
  5905. do
  5906. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5907. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5908. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5909. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5910. echo $ECHO_N "(cached) $ECHO_C" >&6
  5911. else
  5912. cat >conftest.$ac_ext <<_ACEOF
  5913. /* confdefs.h. */
  5914. _ACEOF
  5915. cat confdefs.h >>conftest.$ac_ext
  5916. cat >>conftest.$ac_ext <<_ACEOF
  5917. /* end confdefs.h. */
  5918. $ac_includes_default
  5919. #include <$ac_header>
  5920. _ACEOF
  5921. rm -f conftest.$ac_objext
  5922. if { (ac_try="$ac_compile"
  5923. case "(($ac_try" in
  5924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5925. *) ac_try_echo=$ac_try;;
  5926. esac
  5927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5928. (eval "$ac_compile") 2>conftest.er1
  5929. ac_status=$?
  5930. grep -v '^ *+' conftest.er1 >conftest.err
  5931. rm -f conftest.er1
  5932. cat conftest.err >&5
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && {
  5935. test -z "$ac_cxx_werror_flag" ||
  5936. test ! -s conftest.err
  5937. } && test -s conftest.$ac_objext; then
  5938. eval "$as_ac_Header=yes"
  5939. else
  5940. echo "$as_me: failed program was:" >&5
  5941. sed 's/^/| /' conftest.$ac_ext >&5
  5942. eval "$as_ac_Header=no"
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5945. fi
  5946. ac_res=`eval echo '${'$as_ac_Header'}'`
  5947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5948. echo "${ECHO_T}$ac_res" >&6; }
  5949. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5950. cat >>confdefs.h <<_ACEOF
  5951. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5952. _ACEOF
  5953. fi
  5954. done
  5955. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5956. # for constant arguments. Useless!
  5957. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5958. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5959. if test "${ac_cv_working_alloca_h+set}" = set; then
  5960. echo $ECHO_N "(cached) $ECHO_C" >&6
  5961. else
  5962. cat >conftest.$ac_ext <<_ACEOF
  5963. /* confdefs.h. */
  5964. _ACEOF
  5965. cat confdefs.h >>conftest.$ac_ext
  5966. cat >>conftest.$ac_ext <<_ACEOF
  5967. /* end confdefs.h. */
  5968. #include <alloca.h>
  5969. int
  5970. main ()
  5971. {
  5972. char *p = (char *) alloca (2 * sizeof (int));
  5973. if (p) return 0;
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. rm -f conftest.$ac_objext conftest$ac_exeext
  5979. if { (ac_try="$ac_link"
  5980. case "(($ac_try" in
  5981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5982. *) ac_try_echo=$ac_try;;
  5983. esac
  5984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5985. (eval "$ac_link") 2>conftest.er1
  5986. ac_status=$?
  5987. grep -v '^ *+' conftest.er1 >conftest.err
  5988. rm -f conftest.er1
  5989. cat conftest.err >&5
  5990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5991. (exit $ac_status); } && {
  5992. test -z "$ac_cxx_werror_flag" ||
  5993. test ! -s conftest.err
  5994. } && test -s conftest$ac_exeext &&
  5995. $as_test_x conftest$ac_exeext; then
  5996. ac_cv_working_alloca_h=yes
  5997. else
  5998. echo "$as_me: failed program was:" >&5
  5999. sed 's/^/| /' conftest.$ac_ext >&5
  6000. ac_cv_working_alloca_h=no
  6001. fi
  6002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6003. conftest$ac_exeext conftest.$ac_ext
  6004. fi
  6005. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6006. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6007. if test $ac_cv_working_alloca_h = yes; then
  6008. cat >>confdefs.h <<\_ACEOF
  6009. #define HAVE_ALLOCA_H 1
  6010. _ACEOF
  6011. fi
  6012. { echo "$as_me:$LINENO: checking for alloca" >&5
  6013. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6014. if test "${ac_cv_func_alloca_works+set}" = set; then
  6015. echo $ECHO_N "(cached) $ECHO_C" >&6
  6016. else
  6017. cat >conftest.$ac_ext <<_ACEOF
  6018. /* confdefs.h. */
  6019. _ACEOF
  6020. cat confdefs.h >>conftest.$ac_ext
  6021. cat >>conftest.$ac_ext <<_ACEOF
  6022. /* end confdefs.h. */
  6023. #ifdef __GNUC__
  6024. # define alloca __builtin_alloca
  6025. #else
  6026. # ifdef _MSC_VER
  6027. # include <malloc.h>
  6028. # define alloca _alloca
  6029. # else
  6030. # ifdef HAVE_ALLOCA_H
  6031. # include <alloca.h>
  6032. # else
  6033. # ifdef _AIX
  6034. #pragma alloca
  6035. # else
  6036. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6037. char *alloca ();
  6038. # endif
  6039. # endif
  6040. # endif
  6041. # endif
  6042. #endif
  6043. int
  6044. main ()
  6045. {
  6046. char *p = (char *) alloca (1);
  6047. if (p) return 0;
  6048. ;
  6049. return 0;
  6050. }
  6051. _ACEOF
  6052. rm -f conftest.$ac_objext conftest$ac_exeext
  6053. if { (ac_try="$ac_link"
  6054. case "(($ac_try" in
  6055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6056. *) ac_try_echo=$ac_try;;
  6057. esac
  6058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6059. (eval "$ac_link") 2>conftest.er1
  6060. ac_status=$?
  6061. grep -v '^ *+' conftest.er1 >conftest.err
  6062. rm -f conftest.er1
  6063. cat conftest.err >&5
  6064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6065. (exit $ac_status); } && {
  6066. test -z "$ac_cxx_werror_flag" ||
  6067. test ! -s conftest.err
  6068. } && test -s conftest$ac_exeext &&
  6069. $as_test_x conftest$ac_exeext; then
  6070. ac_cv_func_alloca_works=yes
  6071. else
  6072. echo "$as_me: failed program was:" >&5
  6073. sed 's/^/| /' conftest.$ac_ext >&5
  6074. ac_cv_func_alloca_works=no
  6075. fi
  6076. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6077. conftest$ac_exeext conftest.$ac_ext
  6078. fi
  6079. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6080. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6081. if test $ac_cv_func_alloca_works = yes; then
  6082. cat >>confdefs.h <<\_ACEOF
  6083. #define HAVE_ALLOCA 1
  6084. _ACEOF
  6085. else
  6086. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6087. # that cause trouble. Some versions do not even contain alloca or
  6088. # contain a buggy version. If you still want to use their alloca,
  6089. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6090. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6091. cat >>confdefs.h <<\_ACEOF
  6092. #define C_ALLOCA 1
  6093. _ACEOF
  6094. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6095. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6096. if test "${ac_cv_os_cray+set}" = set; then
  6097. echo $ECHO_N "(cached) $ECHO_C" >&6
  6098. else
  6099. cat >conftest.$ac_ext <<_ACEOF
  6100. /* confdefs.h. */
  6101. _ACEOF
  6102. cat confdefs.h >>conftest.$ac_ext
  6103. cat >>conftest.$ac_ext <<_ACEOF
  6104. /* end confdefs.h. */
  6105. #if defined CRAY && ! defined CRAY2
  6106. webecray
  6107. #else
  6108. wenotbecray
  6109. #endif
  6110. _ACEOF
  6111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6112. $EGREP "webecray" >/dev/null 2>&1; then
  6113. ac_cv_os_cray=yes
  6114. else
  6115. ac_cv_os_cray=no
  6116. fi
  6117. rm -f conftest*
  6118. fi
  6119. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6120. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6121. if test $ac_cv_os_cray = yes; then
  6122. for ac_func in _getb67 GETB67 getb67; do
  6123. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6124. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6125. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6126. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6127. echo $ECHO_N "(cached) $ECHO_C" >&6
  6128. else
  6129. cat >conftest.$ac_ext <<_ACEOF
  6130. /* confdefs.h. */
  6131. _ACEOF
  6132. cat confdefs.h >>conftest.$ac_ext
  6133. cat >>conftest.$ac_ext <<_ACEOF
  6134. /* end confdefs.h. */
  6135. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6136. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6137. #define $ac_func innocuous_$ac_func
  6138. /* System header to define __stub macros and hopefully few prototypes,
  6139. which can conflict with char $ac_func (); below.
  6140. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6141. <limits.h> exists even on freestanding compilers. */
  6142. #ifdef __STDC__
  6143. # include <limits.h>
  6144. #else
  6145. # include <assert.h>
  6146. #endif
  6147. #undef $ac_func
  6148. /* Override any GCC internal prototype to avoid an error.
  6149. Use char because int might match the return type of a GCC
  6150. builtin and then its argument prototype would still apply. */
  6151. #ifdef __cplusplus
  6152. extern "C"
  6153. #endif
  6154. char $ac_func ();
  6155. /* The GNU C library defines this for functions which it implements
  6156. to always fail with ENOSYS. Some functions are actually named
  6157. something starting with __ and the normal name is an alias. */
  6158. #if defined __stub_$ac_func || defined __stub___$ac_func
  6159. choke me
  6160. #endif
  6161. int
  6162. main ()
  6163. {
  6164. return $ac_func ();
  6165. ;
  6166. return 0;
  6167. }
  6168. _ACEOF
  6169. rm -f conftest.$ac_objext conftest$ac_exeext
  6170. if { (ac_try="$ac_link"
  6171. case "(($ac_try" in
  6172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6173. *) ac_try_echo=$ac_try;;
  6174. esac
  6175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6176. (eval "$ac_link") 2>conftest.er1
  6177. ac_status=$?
  6178. grep -v '^ *+' conftest.er1 >conftest.err
  6179. rm -f conftest.er1
  6180. cat conftest.err >&5
  6181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6182. (exit $ac_status); } && {
  6183. test -z "$ac_cxx_werror_flag" ||
  6184. test ! -s conftest.err
  6185. } && test -s conftest$ac_exeext &&
  6186. $as_test_x conftest$ac_exeext; then
  6187. eval "$as_ac_var=yes"
  6188. else
  6189. echo "$as_me: failed program was:" >&5
  6190. sed 's/^/| /' conftest.$ac_ext >&5
  6191. eval "$as_ac_var=no"
  6192. fi
  6193. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6194. conftest$ac_exeext conftest.$ac_ext
  6195. fi
  6196. ac_res=`eval echo '${'$as_ac_var'}'`
  6197. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6198. echo "${ECHO_T}$ac_res" >&6; }
  6199. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6200. cat >>confdefs.h <<_ACEOF
  6201. #define CRAY_STACKSEG_END $ac_func
  6202. _ACEOF
  6203. break
  6204. fi
  6205. done
  6206. fi
  6207. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6208. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6209. if test "${ac_cv_c_stack_direction+set}" = set; then
  6210. echo $ECHO_N "(cached) $ECHO_C" >&6
  6211. else
  6212. if test "$cross_compiling" = yes; then
  6213. ac_cv_c_stack_direction=0
  6214. else
  6215. cat >conftest.$ac_ext <<_ACEOF
  6216. /* confdefs.h. */
  6217. _ACEOF
  6218. cat confdefs.h >>conftest.$ac_ext
  6219. cat >>conftest.$ac_ext <<_ACEOF
  6220. /* end confdefs.h. */
  6221. $ac_includes_default
  6222. int
  6223. find_stack_direction ()
  6224. {
  6225. static char *addr = 0;
  6226. auto char dummy;
  6227. if (addr == 0)
  6228. {
  6229. addr = &dummy;
  6230. return find_stack_direction ();
  6231. }
  6232. else
  6233. return (&dummy > addr) ? 1 : -1;
  6234. }
  6235. int
  6236. main ()
  6237. {
  6238. return find_stack_direction () < 0;
  6239. }
  6240. _ACEOF
  6241. rm -f conftest$ac_exeext
  6242. if { (ac_try="$ac_link"
  6243. case "(($ac_try" in
  6244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6245. *) ac_try_echo=$ac_try;;
  6246. esac
  6247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6248. (eval "$ac_link") 2>&5
  6249. ac_status=$?
  6250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6251. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6252. { (case "(($ac_try" in
  6253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6254. *) ac_try_echo=$ac_try;;
  6255. esac
  6256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6257. (eval "$ac_try") 2>&5
  6258. ac_status=$?
  6259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6260. (exit $ac_status); }; }; then
  6261. ac_cv_c_stack_direction=1
  6262. else
  6263. echo "$as_me: program exited with status $ac_status" >&5
  6264. echo "$as_me: failed program was:" >&5
  6265. sed 's/^/| /' conftest.$ac_ext >&5
  6266. ( exit $ac_status )
  6267. ac_cv_c_stack_direction=-1
  6268. fi
  6269. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6270. fi
  6271. fi
  6272. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6273. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6274. cat >>confdefs.h <<_ACEOF
  6275. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6276. _ACEOF
  6277. fi
  6278. #AC_HEADER_STDC
  6279. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h inttypes.h io.h langinfo.h libgen.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h
  6280. do
  6281. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6282. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6283. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6286. echo $ECHO_N "(cached) $ECHO_C" >&6
  6287. fi
  6288. ac_res=`eval echo '${'$as_ac_Header'}'`
  6289. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6290. echo "${ECHO_T}$ac_res" >&6; }
  6291. else
  6292. # Is the header compilable?
  6293. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6294. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6295. cat >conftest.$ac_ext <<_ACEOF
  6296. /* confdefs.h. */
  6297. _ACEOF
  6298. cat confdefs.h >>conftest.$ac_ext
  6299. cat >>conftest.$ac_ext <<_ACEOF
  6300. /* end confdefs.h. */
  6301. $ac_includes_default
  6302. #include <$ac_header>
  6303. _ACEOF
  6304. rm -f conftest.$ac_objext
  6305. if { (ac_try="$ac_compile"
  6306. case "(($ac_try" in
  6307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6308. *) ac_try_echo=$ac_try;;
  6309. esac
  6310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6311. (eval "$ac_compile") 2>conftest.er1
  6312. ac_status=$?
  6313. grep -v '^ *+' conftest.er1 >conftest.err
  6314. rm -f conftest.er1
  6315. cat conftest.err >&5
  6316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6317. (exit $ac_status); } && {
  6318. test -z "$ac_cxx_werror_flag" ||
  6319. test ! -s conftest.err
  6320. } && test -s conftest.$ac_objext; then
  6321. ac_header_compiler=yes
  6322. else
  6323. echo "$as_me: failed program was:" >&5
  6324. sed 's/^/| /' conftest.$ac_ext >&5
  6325. ac_header_compiler=no
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6328. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6329. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6330. # Is the header present?
  6331. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6332. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6333. cat >conftest.$ac_ext <<_ACEOF
  6334. /* confdefs.h. */
  6335. _ACEOF
  6336. cat confdefs.h >>conftest.$ac_ext
  6337. cat >>conftest.$ac_ext <<_ACEOF
  6338. /* end confdefs.h. */
  6339. #include <$ac_header>
  6340. _ACEOF
  6341. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6342. case "(($ac_try" in
  6343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6344. *) ac_try_echo=$ac_try;;
  6345. esac
  6346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6348. ac_status=$?
  6349. grep -v '^ *+' conftest.er1 >conftest.err
  6350. rm -f conftest.er1
  6351. cat conftest.err >&5
  6352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6353. (exit $ac_status); } >/dev/null && {
  6354. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6355. test ! -s conftest.err
  6356. }; then
  6357. ac_header_preproc=yes
  6358. else
  6359. echo "$as_me: failed program was:" >&5
  6360. sed 's/^/| /' conftest.$ac_ext >&5
  6361. ac_header_preproc=no
  6362. fi
  6363. rm -f conftest.err conftest.$ac_ext
  6364. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6365. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6366. # So? What about this header?
  6367. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6368. yes:no: )
  6369. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6370. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6371. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6372. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6373. ac_header_preproc=yes
  6374. ;;
  6375. no:yes:* )
  6376. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6377. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6378. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6379. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6380. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6381. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6382. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6383. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6384. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6385. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6386. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6387. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6388. ( cat <<\_ASBOX
  6389. ## ----------------------------------------------- ##
  6390. ## Report this to t-tujikawa@users.sourceforge.net ##
  6391. ## ----------------------------------------------- ##
  6392. _ASBOX
  6393. ) | sed "s/^/$as_me: WARNING: /" >&2
  6394. ;;
  6395. esac
  6396. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6397. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6398. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6399. echo $ECHO_N "(cached) $ECHO_C" >&6
  6400. else
  6401. eval "$as_ac_Header=\$ac_header_preproc"
  6402. fi
  6403. ac_res=`eval echo '${'$as_ac_Header'}'`
  6404. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6405. echo "${ECHO_T}$ac_res" >&6; }
  6406. fi
  6407. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6408. cat >>confdefs.h <<_ACEOF
  6409. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6410. _ACEOF
  6411. fi
  6412. done
  6413. # Checks for typedefs, structures, and compiler characteristics.
  6414. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6415. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6416. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6417. echo $ECHO_N "(cached) $ECHO_C" >&6
  6418. else
  6419. cat >conftest.$ac_ext <<_ACEOF
  6420. /* confdefs.h. */
  6421. _ACEOF
  6422. cat confdefs.h >>conftest.$ac_ext
  6423. cat >>conftest.$ac_ext <<_ACEOF
  6424. /* end confdefs.h. */
  6425. #include <stdbool.h>
  6426. #ifndef bool
  6427. "error: bool is not defined"
  6428. #endif
  6429. #ifndef false
  6430. "error: false is not defined"
  6431. #endif
  6432. #if false
  6433. "error: false is not 0"
  6434. #endif
  6435. #ifndef true
  6436. "error: true is not defined"
  6437. #endif
  6438. #if true != 1
  6439. "error: true is not 1"
  6440. #endif
  6441. #ifndef __bool_true_false_are_defined
  6442. "error: __bool_true_false_are_defined is not defined"
  6443. #endif
  6444. struct s { _Bool s: 1; _Bool t; } s;
  6445. char a[true == 1 ? 1 : -1];
  6446. char b[false == 0 ? 1 : -1];
  6447. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6448. char d[(bool) 0.5 == true ? 1 : -1];
  6449. bool e = &s;
  6450. char f[(_Bool) 0.0 == false ? 1 : -1];
  6451. char g[true];
  6452. char h[sizeof (_Bool)];
  6453. char i[sizeof s.t];
  6454. enum { j = false, k = true, l = false * true, m = true * 256 };
  6455. _Bool n[m];
  6456. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6457. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6458. # if defined __xlc__ || defined __GNUC__
  6459. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6460. reported by James Lemley on 2005-10-05; see
  6461. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6462. This test is not quite right, since xlc is allowed to
  6463. reject this program, as the initializer for xlcbug is
  6464. not one of the forms that C requires support for.
  6465. However, doing the test right would require a runtime
  6466. test, and that would make cross-compilation harder.
  6467. Let us hope that IBM fixes the xlc bug, and also adds
  6468. support for this kind of constant expression. In the
  6469. meantime, this test will reject xlc, which is OK, since
  6470. our stdbool.h substitute should suffice. We also test
  6471. this with GCC, where it should work, to detect more
  6472. quickly whether someone messes up the test in the
  6473. future. */
  6474. char digs[] = "0123456789";
  6475. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6476. # endif
  6477. /* Catch a bug in an HP-UX C compiler. See
  6478. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6479. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6480. */
  6481. _Bool q = true;
  6482. _Bool *pq = &q;
  6483. int
  6484. main ()
  6485. {
  6486. *pq |= q;
  6487. *pq |= ! q;
  6488. /* Refer to every declared value, to avoid compiler optimizations. */
  6489. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6490. + !m + !n + !o + !p + !q + !pq);
  6491. ;
  6492. return 0;
  6493. }
  6494. _ACEOF
  6495. rm -f conftest.$ac_objext
  6496. if { (ac_try="$ac_compile"
  6497. case "(($ac_try" in
  6498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6499. *) ac_try_echo=$ac_try;;
  6500. esac
  6501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6502. (eval "$ac_compile") 2>conftest.er1
  6503. ac_status=$?
  6504. grep -v '^ *+' conftest.er1 >conftest.err
  6505. rm -f conftest.er1
  6506. cat conftest.err >&5
  6507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6508. (exit $ac_status); } && {
  6509. test -z "$ac_cxx_werror_flag" ||
  6510. test ! -s conftest.err
  6511. } && test -s conftest.$ac_objext; then
  6512. ac_cv_header_stdbool_h=yes
  6513. else
  6514. echo "$as_me: failed program was:" >&5
  6515. sed 's/^/| /' conftest.$ac_ext >&5
  6516. ac_cv_header_stdbool_h=no
  6517. fi
  6518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6519. fi
  6520. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6521. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6522. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6523. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6524. if test "${ac_cv_type__Bool+set}" = set; then
  6525. echo $ECHO_N "(cached) $ECHO_C" >&6
  6526. else
  6527. cat >conftest.$ac_ext <<_ACEOF
  6528. /* confdefs.h. */
  6529. _ACEOF
  6530. cat confdefs.h >>conftest.$ac_ext
  6531. cat >>conftest.$ac_ext <<_ACEOF
  6532. /* end confdefs.h. */
  6533. $ac_includes_default
  6534. typedef _Bool ac__type_new_;
  6535. int
  6536. main ()
  6537. {
  6538. if ((ac__type_new_ *) 0)
  6539. return 0;
  6540. if (sizeof (ac__type_new_))
  6541. return 0;
  6542. ;
  6543. return 0;
  6544. }
  6545. _ACEOF
  6546. rm -f conftest.$ac_objext
  6547. if { (ac_try="$ac_compile"
  6548. case "(($ac_try" in
  6549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6550. *) ac_try_echo=$ac_try;;
  6551. esac
  6552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6553. (eval "$ac_compile") 2>conftest.er1
  6554. ac_status=$?
  6555. grep -v '^ *+' conftest.er1 >conftest.err
  6556. rm -f conftest.er1
  6557. cat conftest.err >&5
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); } && {
  6560. test -z "$ac_cxx_werror_flag" ||
  6561. test ! -s conftest.err
  6562. } && test -s conftest.$ac_objext; then
  6563. ac_cv_type__Bool=yes
  6564. else
  6565. echo "$as_me: failed program was:" >&5
  6566. sed 's/^/| /' conftest.$ac_ext >&5
  6567. ac_cv_type__Bool=no
  6568. fi
  6569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6570. fi
  6571. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6572. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6573. if test $ac_cv_type__Bool = yes; then
  6574. cat >>confdefs.h <<_ACEOF
  6575. #define HAVE__BOOL 1
  6576. _ACEOF
  6577. fi
  6578. if test $ac_cv_header_stdbool_h = yes; then
  6579. cat >>confdefs.h <<\_ACEOF
  6580. #define HAVE_STDBOOL_H 1
  6581. _ACEOF
  6582. fi
  6583. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6584. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6585. if test "${ac_cv_c_const+set}" = set; then
  6586. echo $ECHO_N "(cached) $ECHO_C" >&6
  6587. else
  6588. cat >conftest.$ac_ext <<_ACEOF
  6589. /* confdefs.h. */
  6590. _ACEOF
  6591. cat confdefs.h >>conftest.$ac_ext
  6592. cat >>conftest.$ac_ext <<_ACEOF
  6593. /* end confdefs.h. */
  6594. int
  6595. main ()
  6596. {
  6597. /* FIXME: Include the comments suggested by Paul. */
  6598. #ifndef __cplusplus
  6599. /* Ultrix mips cc rejects this. */
  6600. typedef int charset[2];
  6601. const charset cs;
  6602. /* SunOS 4.1.1 cc rejects this. */
  6603. char const *const *pcpcc;
  6604. char **ppc;
  6605. /* NEC SVR4.0.2 mips cc rejects this. */
  6606. struct point {int x, y;};
  6607. static struct point const zero = {0,0};
  6608. /* AIX XL C 1.02.0.0 rejects this.
  6609. It does not let you subtract one const X* pointer from another in
  6610. an arm of an if-expression whose if-part is not a constant
  6611. expression */
  6612. const char *g = "string";
  6613. pcpcc = &g + (g ? g-g : 0);
  6614. /* HPUX 7.0 cc rejects these. */
  6615. ++pcpcc;
  6616. ppc = (char**) pcpcc;
  6617. pcpcc = (char const *const *) ppc;
  6618. { /* SCO 3.2v4 cc rejects this. */
  6619. char *t;
  6620. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6621. *t++ = 0;
  6622. if (s) return 0;
  6623. }
  6624. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6625. int x[] = {25, 17};
  6626. const int *foo = &x[0];
  6627. ++foo;
  6628. }
  6629. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6630. typedef const int *iptr;
  6631. iptr p = 0;
  6632. ++p;
  6633. }
  6634. { /* AIX XL C 1.02.0.0 rejects this saying
  6635. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6636. struct s { int j; const int *ap[3]; };
  6637. struct s *b; b->j = 5;
  6638. }
  6639. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6640. const int foo = 10;
  6641. if (!foo) return 0;
  6642. }
  6643. return !cs[0] && !zero.x;
  6644. #endif
  6645. ;
  6646. return 0;
  6647. }
  6648. _ACEOF
  6649. rm -f conftest.$ac_objext
  6650. if { (ac_try="$ac_compile"
  6651. case "(($ac_try" in
  6652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6653. *) ac_try_echo=$ac_try;;
  6654. esac
  6655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6656. (eval "$ac_compile") 2>conftest.er1
  6657. ac_status=$?
  6658. grep -v '^ *+' conftest.er1 >conftest.err
  6659. rm -f conftest.er1
  6660. cat conftest.err >&5
  6661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6662. (exit $ac_status); } && {
  6663. test -z "$ac_cxx_werror_flag" ||
  6664. test ! -s conftest.err
  6665. } && test -s conftest.$ac_objext; then
  6666. ac_cv_c_const=yes
  6667. else
  6668. echo "$as_me: failed program was:" >&5
  6669. sed 's/^/| /' conftest.$ac_ext >&5
  6670. ac_cv_c_const=no
  6671. fi
  6672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6673. fi
  6674. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6675. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6676. if test $ac_cv_c_const = no; then
  6677. cat >>confdefs.h <<\_ACEOF
  6678. #define const
  6679. _ACEOF
  6680. fi
  6681. { echo "$as_me:$LINENO: checking for inline" >&5
  6682. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6683. if test "${ac_cv_c_inline+set}" = set; then
  6684. echo $ECHO_N "(cached) $ECHO_C" >&6
  6685. else
  6686. ac_cv_c_inline=no
  6687. for ac_kw in inline __inline__ __inline; do
  6688. cat >conftest.$ac_ext <<_ACEOF
  6689. /* confdefs.h. */
  6690. _ACEOF
  6691. cat confdefs.h >>conftest.$ac_ext
  6692. cat >>conftest.$ac_ext <<_ACEOF
  6693. /* end confdefs.h. */
  6694. #ifndef __cplusplus
  6695. typedef int foo_t;
  6696. static $ac_kw foo_t static_foo () {return 0; }
  6697. $ac_kw foo_t foo () {return 0; }
  6698. #endif
  6699. _ACEOF
  6700. rm -f conftest.$ac_objext
  6701. if { (ac_try="$ac_compile"
  6702. case "(($ac_try" in
  6703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6704. *) ac_try_echo=$ac_try;;
  6705. esac
  6706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6707. (eval "$ac_compile") 2>conftest.er1
  6708. ac_status=$?
  6709. grep -v '^ *+' conftest.er1 >conftest.err
  6710. rm -f conftest.er1
  6711. cat conftest.err >&5
  6712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); } && {
  6714. test -z "$ac_cxx_werror_flag" ||
  6715. test ! -s conftest.err
  6716. } && test -s conftest.$ac_objext; then
  6717. ac_cv_c_inline=$ac_kw
  6718. else
  6719. echo "$as_me: failed program was:" >&5
  6720. sed 's/^/| /' conftest.$ac_ext >&5
  6721. fi
  6722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6723. test "$ac_cv_c_inline" != no && break
  6724. done
  6725. fi
  6726. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6727. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6728. case $ac_cv_c_inline in
  6729. inline | yes) ;;
  6730. *)
  6731. case $ac_cv_c_inline in
  6732. no) ac_val=;;
  6733. *) ac_val=$ac_cv_c_inline;;
  6734. esac
  6735. cat >>confdefs.h <<_ACEOF
  6736. #ifndef __cplusplus
  6737. #define inline $ac_val
  6738. #endif
  6739. _ACEOF
  6740. ;;
  6741. esac
  6742. { echo "$as_me:$LINENO: checking for size_t" >&5
  6743. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6744. if test "${ac_cv_type_size_t+set}" = set; then
  6745. echo $ECHO_N "(cached) $ECHO_C" >&6
  6746. else
  6747. cat >conftest.$ac_ext <<_ACEOF
  6748. /* confdefs.h. */
  6749. _ACEOF
  6750. cat confdefs.h >>conftest.$ac_ext
  6751. cat >>conftest.$ac_ext <<_ACEOF
  6752. /* end confdefs.h. */
  6753. $ac_includes_default
  6754. typedef size_t ac__type_new_;
  6755. int
  6756. main ()
  6757. {
  6758. if ((ac__type_new_ *) 0)
  6759. return 0;
  6760. if (sizeof (ac__type_new_))
  6761. return 0;
  6762. ;
  6763. return 0;
  6764. }
  6765. _ACEOF
  6766. rm -f conftest.$ac_objext
  6767. if { (ac_try="$ac_compile"
  6768. case "(($ac_try" in
  6769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6770. *) ac_try_echo=$ac_try;;
  6771. esac
  6772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6773. (eval "$ac_compile") 2>conftest.er1
  6774. ac_status=$?
  6775. grep -v '^ *+' conftest.er1 >conftest.err
  6776. rm -f conftest.er1
  6777. cat conftest.err >&5
  6778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6779. (exit $ac_status); } && {
  6780. test -z "$ac_cxx_werror_flag" ||
  6781. test ! -s conftest.err
  6782. } && test -s conftest.$ac_objext; then
  6783. ac_cv_type_size_t=yes
  6784. else
  6785. echo "$as_me: failed program was:" >&5
  6786. sed 's/^/| /' conftest.$ac_ext >&5
  6787. ac_cv_type_size_t=no
  6788. fi
  6789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6790. fi
  6791. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6792. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6793. if test $ac_cv_type_size_t = yes; then
  6794. :
  6795. else
  6796. cat >>confdefs.h <<_ACEOF
  6797. #define size_t unsigned int
  6798. _ACEOF
  6799. fi
  6800. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6801. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6802. if test "${ac_cv_header_time+set}" = set; then
  6803. echo $ECHO_N "(cached) $ECHO_C" >&6
  6804. else
  6805. cat >conftest.$ac_ext <<_ACEOF
  6806. /* confdefs.h. */
  6807. _ACEOF
  6808. cat confdefs.h >>conftest.$ac_ext
  6809. cat >>conftest.$ac_ext <<_ACEOF
  6810. /* end confdefs.h. */
  6811. #include <sys/types.h>
  6812. #include <sys/time.h>
  6813. #include <time.h>
  6814. int
  6815. main ()
  6816. {
  6817. if ((struct tm *) 0)
  6818. return 0;
  6819. ;
  6820. return 0;
  6821. }
  6822. _ACEOF
  6823. rm -f conftest.$ac_objext
  6824. if { (ac_try="$ac_compile"
  6825. case "(($ac_try" in
  6826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6827. *) ac_try_echo=$ac_try;;
  6828. esac
  6829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6830. (eval "$ac_compile") 2>conftest.er1
  6831. ac_status=$?
  6832. grep -v '^ *+' conftest.er1 >conftest.err
  6833. rm -f conftest.er1
  6834. cat conftest.err >&5
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. (exit $ac_status); } && {
  6837. test -z "$ac_cxx_werror_flag" ||
  6838. test ! -s conftest.err
  6839. } && test -s conftest.$ac_objext; then
  6840. ac_cv_header_time=yes
  6841. else
  6842. echo "$as_me: failed program was:" >&5
  6843. sed 's/^/| /' conftest.$ac_ext >&5
  6844. ac_cv_header_time=no
  6845. fi
  6846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6847. fi
  6848. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6849. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6850. if test $ac_cv_header_time = yes; then
  6851. cat >>confdefs.h <<\_ACEOF
  6852. #define TIME_WITH_SYS_TIME 1
  6853. _ACEOF
  6854. fi
  6855. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6856. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6857. if test "${ac_cv_struct_tm+set}" = set; then
  6858. echo $ECHO_N "(cached) $ECHO_C" >&6
  6859. else
  6860. cat >conftest.$ac_ext <<_ACEOF
  6861. /* confdefs.h. */
  6862. _ACEOF
  6863. cat confdefs.h >>conftest.$ac_ext
  6864. cat >>conftest.$ac_ext <<_ACEOF
  6865. /* end confdefs.h. */
  6866. #include <sys/types.h>
  6867. #include <time.h>
  6868. int
  6869. main ()
  6870. {
  6871. struct tm tm;
  6872. int *p = &tm.tm_sec;
  6873. return !p;
  6874. ;
  6875. return 0;
  6876. }
  6877. _ACEOF
  6878. rm -f conftest.$ac_objext
  6879. if { (ac_try="$ac_compile"
  6880. case "(($ac_try" in
  6881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6882. *) ac_try_echo=$ac_try;;
  6883. esac
  6884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6885. (eval "$ac_compile") 2>conftest.er1
  6886. ac_status=$?
  6887. grep -v '^ *+' conftest.er1 >conftest.err
  6888. rm -f conftest.er1
  6889. cat conftest.err >&5
  6890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6891. (exit $ac_status); } && {
  6892. test -z "$ac_cxx_werror_flag" ||
  6893. test ! -s conftest.err
  6894. } && test -s conftest.$ac_objext; then
  6895. ac_cv_struct_tm=time.h
  6896. else
  6897. echo "$as_me: failed program was:" >&5
  6898. sed 's/^/| /' conftest.$ac_ext >&5
  6899. ac_cv_struct_tm=sys/time.h
  6900. fi
  6901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6902. fi
  6903. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6904. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6905. if test $ac_cv_struct_tm = sys/time.h; then
  6906. cat >>confdefs.h <<\_ACEOF
  6907. #define TM_IN_SYS_TIME 1
  6908. _ACEOF
  6909. fi
  6910. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6911. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6912. if test "${ac_cv_c_volatile+set}" = set; then
  6913. echo $ECHO_N "(cached) $ECHO_C" >&6
  6914. else
  6915. cat >conftest.$ac_ext <<_ACEOF
  6916. /* confdefs.h. */
  6917. _ACEOF
  6918. cat confdefs.h >>conftest.$ac_ext
  6919. cat >>conftest.$ac_ext <<_ACEOF
  6920. /* end confdefs.h. */
  6921. int
  6922. main ()
  6923. {
  6924. volatile int x;
  6925. int * volatile y = (int *) 0;
  6926. return !x && !y;
  6927. ;
  6928. return 0;
  6929. }
  6930. _ACEOF
  6931. rm -f conftest.$ac_objext
  6932. if { (ac_try="$ac_compile"
  6933. case "(($ac_try" in
  6934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6935. *) ac_try_echo=$ac_try;;
  6936. esac
  6937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6938. (eval "$ac_compile") 2>conftest.er1
  6939. ac_status=$?
  6940. grep -v '^ *+' conftest.er1 >conftest.err
  6941. rm -f conftest.er1
  6942. cat conftest.err >&5
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); } && {
  6945. test -z "$ac_cxx_werror_flag" ||
  6946. test ! -s conftest.err
  6947. } && test -s conftest.$ac_objext; then
  6948. ac_cv_c_volatile=yes
  6949. else
  6950. echo "$as_me: failed program was:" >&5
  6951. sed 's/^/| /' conftest.$ac_ext >&5
  6952. ac_cv_c_volatile=no
  6953. fi
  6954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6955. fi
  6956. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6957. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6958. if test $ac_cv_c_volatile = no; then
  6959. cat >>confdefs.h <<\_ACEOF
  6960. #define volatile
  6961. _ACEOF
  6962. fi
  6963. # Checks for library functions.
  6964. MKINSTALLDIRS=
  6965. if test -n "$ac_aux_dir"; then
  6966. case "$ac_aux_dir" in
  6967. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6968. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6969. esac
  6970. fi
  6971. if test -z "$MKINSTALLDIRS"; then
  6972. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6973. fi
  6974. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6975. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6976. # Check whether --enable-nls was given.
  6977. if test "${enable_nls+set}" = set; then
  6978. enableval=$enable_nls; USE_NLS=$enableval
  6979. else
  6980. USE_NLS=yes
  6981. fi
  6982. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6983. echo "${ECHO_T}$USE_NLS" >&6; }
  6984. # Prepare PATH_SEPARATOR.
  6985. # The user is always right.
  6986. if test "${PATH_SEPARATOR+set}" != set; then
  6987. echo "#! /bin/sh" >conf$$.sh
  6988. echo "exit 0" >>conf$$.sh
  6989. chmod +x conf$$.sh
  6990. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6991. PATH_SEPARATOR=';'
  6992. else
  6993. PATH_SEPARATOR=:
  6994. fi
  6995. rm -f conf$$.sh
  6996. fi
  6997. # Find out how to test for executable files. Don't use a zero-byte file,
  6998. # as systems may use methods other than mode bits to determine executability.
  6999. cat >conf$$.file <<_ASEOF
  7000. #! /bin/sh
  7001. exit 0
  7002. _ASEOF
  7003. chmod +x conf$$.file
  7004. if test -x conf$$.file >/dev/null 2>&1; then
  7005. ac_executable_p="test -x"
  7006. else
  7007. ac_executable_p="test -f"
  7008. fi
  7009. rm -f conf$$.file
  7010. # Extract the first word of "msgfmt", so it can be a program name with args.
  7011. set dummy msgfmt; ac_word=$2
  7012. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7013. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7014. if test "${ac_cv_path_MSGFMT+set}" = set; then
  7015. echo $ECHO_N "(cached) $ECHO_C" >&6
  7016. else
  7017. case "$MSGFMT" in
  7018. [\\/]* | ?:[\\/]*)
  7019. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7020. ;;
  7021. *)
  7022. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7023. for ac_dir in $PATH; do
  7024. IFS="$ac_save_IFS"
  7025. test -z "$ac_dir" && ac_dir=.
  7026. for ac_exec_ext in '' $ac_executable_extensions; do
  7027. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7028. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  7029. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7030. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7031. break 2
  7032. fi
  7033. fi
  7034. done
  7035. done
  7036. IFS="$ac_save_IFS"
  7037. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7038. ;;
  7039. esac
  7040. fi
  7041. MSGFMT="$ac_cv_path_MSGFMT"
  7042. if test "$MSGFMT" != ":"; then
  7043. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7044. echo "${ECHO_T}$MSGFMT" >&6; }
  7045. else
  7046. { echo "$as_me:$LINENO: result: no" >&5
  7047. echo "${ECHO_T}no" >&6; }
  7048. fi
  7049. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7050. set dummy gmsgfmt; ac_word=$2
  7051. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7052. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7053. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  7054. echo $ECHO_N "(cached) $ECHO_C" >&6
  7055. else
  7056. case $GMSGFMT in
  7057. [\\/]* | ?:[\\/]*)
  7058. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7059. ;;
  7060. *)
  7061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7062. for as_dir in $PATH
  7063. do
  7064. IFS=$as_save_IFS
  7065. test -z "$as_dir" && as_dir=.
  7066. for ac_exec_ext in '' $ac_executable_extensions; do
  7067. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7068. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7069. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7070. break 2
  7071. fi
  7072. done
  7073. done
  7074. IFS=$as_save_IFS
  7075. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7076. ;;
  7077. esac
  7078. fi
  7079. GMSGFMT=$ac_cv_path_GMSGFMT
  7080. if test -n "$GMSGFMT"; then
  7081. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  7082. echo "${ECHO_T}$GMSGFMT" >&6; }
  7083. else
  7084. { echo "$as_me:$LINENO: result: no" >&5
  7085. echo "${ECHO_T}no" >&6; }
  7086. fi
  7087. # Prepare PATH_SEPARATOR.
  7088. # The user is always right.
  7089. if test "${PATH_SEPARATOR+set}" != set; then
  7090. echo "#! /bin/sh" >conf$$.sh
  7091. echo "exit 0" >>conf$$.sh
  7092. chmod +x conf$$.sh
  7093. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7094. PATH_SEPARATOR=';'
  7095. else
  7096. PATH_SEPARATOR=:
  7097. fi
  7098. rm -f conf$$.sh
  7099. fi
  7100. # Find out how to test for executable files. Don't use a zero-byte file,
  7101. # as systems may use methods other than mode bits to determine executability.
  7102. cat >conf$$.file <<_ASEOF
  7103. #! /bin/sh
  7104. exit 0
  7105. _ASEOF
  7106. chmod +x conf$$.file
  7107. if test -x conf$$.file >/dev/null 2>&1; then
  7108. ac_executable_p="test -x"
  7109. else
  7110. ac_executable_p="test -f"
  7111. fi
  7112. rm -f conf$$.file
  7113. # Extract the first word of "xgettext", so it can be a program name with args.
  7114. set dummy xgettext; ac_word=$2
  7115. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7116. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7117. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  7118. echo $ECHO_N "(cached) $ECHO_C" >&6
  7119. else
  7120. case "$XGETTEXT" in
  7121. [\\/]* | ?:[\\/]*)
  7122. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7123. ;;
  7124. *)
  7125. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7126. for ac_dir in $PATH; do
  7127. IFS="$ac_save_IFS"
  7128. test -z "$ac_dir" && ac_dir=.
  7129. for ac_exec_ext in '' $ac_executable_extensions; do
  7130. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7131. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7132. (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
  7133. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7134. break 2
  7135. fi
  7136. fi
  7137. done
  7138. done
  7139. IFS="$ac_save_IFS"
  7140. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7141. ;;
  7142. esac
  7143. fi
  7144. XGETTEXT="$ac_cv_path_XGETTEXT"
  7145. if test "$XGETTEXT" != ":"; then
  7146. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7147. echo "${ECHO_T}$XGETTEXT" >&6; }
  7148. else
  7149. { echo "$as_me:$LINENO: result: no" >&5
  7150. echo "${ECHO_T}no" >&6; }
  7151. fi
  7152. rm -f messages.po
  7153. # Prepare PATH_SEPARATOR.
  7154. # The user is always right.
  7155. if test "${PATH_SEPARATOR+set}" != set; then
  7156. echo "#! /bin/sh" >conf$$.sh
  7157. echo "exit 0" >>conf$$.sh
  7158. chmod +x conf$$.sh
  7159. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7160. PATH_SEPARATOR=';'
  7161. else
  7162. PATH_SEPARATOR=:
  7163. fi
  7164. rm -f conf$$.sh
  7165. fi
  7166. # Find out how to test for executable files. Don't use a zero-byte file,
  7167. # as systems may use methods other than mode bits to determine executability.
  7168. cat >conf$$.file <<_ASEOF
  7169. #! /bin/sh
  7170. exit 0
  7171. _ASEOF
  7172. chmod +x conf$$.file
  7173. if test -x conf$$.file >/dev/null 2>&1; then
  7174. ac_executable_p="test -x"
  7175. else
  7176. ac_executable_p="test -f"
  7177. fi
  7178. rm -f conf$$.file
  7179. # Extract the first word of "msgmerge", so it can be a program name with args.
  7180. set dummy msgmerge; ac_word=$2
  7181. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7182. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7183. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7184. echo $ECHO_N "(cached) $ECHO_C" >&6
  7185. else
  7186. case "$MSGMERGE" in
  7187. [\\/]* | ?:[\\/]*)
  7188. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7189. ;;
  7190. *)
  7191. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7192. for ac_dir in $PATH; do
  7193. IFS="$ac_save_IFS"
  7194. test -z "$ac_dir" && ac_dir=.
  7195. for ac_exec_ext in '' $ac_executable_extensions; do
  7196. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7197. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  7198. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7199. break 2
  7200. fi
  7201. fi
  7202. done
  7203. done
  7204. IFS="$ac_save_IFS"
  7205. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7206. ;;
  7207. esac
  7208. fi
  7209. MSGMERGE="$ac_cv_path_MSGMERGE"
  7210. if test "$MSGMERGE" != ":"; then
  7211. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7212. echo "${ECHO_T}$MSGMERGE" >&6; }
  7213. else
  7214. { echo "$as_me:$LINENO: result: no" >&5
  7215. echo "${ECHO_T}no" >&6; }
  7216. fi
  7217. if test "$GMSGFMT" != ":"; then
  7218. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  7219. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7220. : ;
  7221. else
  7222. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  7223. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  7224. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  7225. GMSGFMT=":"
  7226. fi
  7227. fi
  7228. if test "$XGETTEXT" != ":"; then
  7229. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7230. (if $XGETTEXT --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
  7231. : ;
  7232. else
  7233. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7234. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7235. XGETTEXT=":"
  7236. fi
  7237. rm -f messages.po
  7238. fi
  7239. ac_config_commands="$ac_config_commands default-1"
  7240. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  7241. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  7242. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  7243. echo $ECHO_N "(cached) $ECHO_C" >&6
  7244. else
  7245. ac_check_lib_save_LIBS=$LIBS
  7246. LIBS="-lcposix $LIBS"
  7247. cat >conftest.$ac_ext <<_ACEOF
  7248. /* confdefs.h. */
  7249. _ACEOF
  7250. cat confdefs.h >>conftest.$ac_ext
  7251. cat >>conftest.$ac_ext <<_ACEOF
  7252. /* end confdefs.h. */
  7253. /* Override any GCC internal prototype to avoid an error.
  7254. Use char because int might match the return type of a GCC
  7255. builtin and then its argument prototype would still apply. */
  7256. #ifdef __cplusplus
  7257. extern "C"
  7258. #endif
  7259. char strerror ();
  7260. int
  7261. main ()
  7262. {
  7263. return strerror ();
  7264. ;
  7265. return 0;
  7266. }
  7267. _ACEOF
  7268. rm -f conftest.$ac_objext conftest$ac_exeext
  7269. if { (ac_try="$ac_link"
  7270. case "(($ac_try" in
  7271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7272. *) ac_try_echo=$ac_try;;
  7273. esac
  7274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7275. (eval "$ac_link") 2>conftest.er1
  7276. ac_status=$?
  7277. grep -v '^ *+' conftest.er1 >conftest.err
  7278. rm -f conftest.er1
  7279. cat conftest.err >&5
  7280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7281. (exit $ac_status); } && {
  7282. test -z "$ac_cxx_werror_flag" ||
  7283. test ! -s conftest.err
  7284. } && test -s conftest$ac_exeext &&
  7285. $as_test_x conftest$ac_exeext; then
  7286. ac_cv_lib_cposix_strerror=yes
  7287. else
  7288. echo "$as_me: failed program was:" >&5
  7289. sed 's/^/| /' conftest.$ac_ext >&5
  7290. ac_cv_lib_cposix_strerror=no
  7291. fi
  7292. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7293. conftest$ac_exeext conftest.$ac_ext
  7294. LIBS=$ac_check_lib_save_LIBS
  7295. fi
  7296. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  7297. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  7298. if test $ac_cv_lib_cposix_strerror = yes; then
  7299. LIBS="$LIBS -lcposix"
  7300. fi
  7301. { echo "$as_me:$LINENO: checking for off_t" >&5
  7302. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7303. if test "${ac_cv_type_off_t+set}" = set; then
  7304. echo $ECHO_N "(cached) $ECHO_C" >&6
  7305. else
  7306. cat >conftest.$ac_ext <<_ACEOF
  7307. /* confdefs.h. */
  7308. _ACEOF
  7309. cat confdefs.h >>conftest.$ac_ext
  7310. cat >>conftest.$ac_ext <<_ACEOF
  7311. /* end confdefs.h. */
  7312. $ac_includes_default
  7313. typedef off_t ac__type_new_;
  7314. int
  7315. main ()
  7316. {
  7317. if ((ac__type_new_ *) 0)
  7318. return 0;
  7319. if (sizeof (ac__type_new_))
  7320. return 0;
  7321. ;
  7322. return 0;
  7323. }
  7324. _ACEOF
  7325. rm -f conftest.$ac_objext
  7326. if { (ac_try="$ac_compile"
  7327. case "(($ac_try" in
  7328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7329. *) ac_try_echo=$ac_try;;
  7330. esac
  7331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7332. (eval "$ac_compile") 2>conftest.er1
  7333. ac_status=$?
  7334. grep -v '^ *+' conftest.er1 >conftest.err
  7335. rm -f conftest.er1
  7336. cat conftest.err >&5
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); } && {
  7339. test -z "$ac_cxx_werror_flag" ||
  7340. test ! -s conftest.err
  7341. } && test -s conftest.$ac_objext; then
  7342. ac_cv_type_off_t=yes
  7343. else
  7344. echo "$as_me: failed program was:" >&5
  7345. sed 's/^/| /' conftest.$ac_ext >&5
  7346. ac_cv_type_off_t=no
  7347. fi
  7348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7349. fi
  7350. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7351. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7352. if test $ac_cv_type_off_t = yes; then
  7353. :
  7354. else
  7355. cat >>confdefs.h <<_ACEOF
  7356. #define off_t long int
  7357. _ACEOF
  7358. fi
  7359. for ac_header in stdlib.h unistd.h
  7360. do
  7361. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7362. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7363. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7364. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7365. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7366. echo $ECHO_N "(cached) $ECHO_C" >&6
  7367. fi
  7368. ac_res=`eval echo '${'$as_ac_Header'}'`
  7369. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7370. echo "${ECHO_T}$ac_res" >&6; }
  7371. else
  7372. # Is the header compilable?
  7373. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7374. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7375. cat >conftest.$ac_ext <<_ACEOF
  7376. /* confdefs.h. */
  7377. _ACEOF
  7378. cat confdefs.h >>conftest.$ac_ext
  7379. cat >>conftest.$ac_ext <<_ACEOF
  7380. /* end confdefs.h. */
  7381. $ac_includes_default
  7382. #include <$ac_header>
  7383. _ACEOF
  7384. rm -f conftest.$ac_objext
  7385. if { (ac_try="$ac_compile"
  7386. case "(($ac_try" in
  7387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7388. *) ac_try_echo=$ac_try;;
  7389. esac
  7390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7391. (eval "$ac_compile") 2>conftest.er1
  7392. ac_status=$?
  7393. grep -v '^ *+' conftest.er1 >conftest.err
  7394. rm -f conftest.er1
  7395. cat conftest.err >&5
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. (exit $ac_status); } && {
  7398. test -z "$ac_cxx_werror_flag" ||
  7399. test ! -s conftest.err
  7400. } && test -s conftest.$ac_objext; then
  7401. ac_header_compiler=yes
  7402. else
  7403. echo "$as_me: failed program was:" >&5
  7404. sed 's/^/| /' conftest.$ac_ext >&5
  7405. ac_header_compiler=no
  7406. fi
  7407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7408. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7409. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7410. # Is the header present?
  7411. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7412. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7413. cat >conftest.$ac_ext <<_ACEOF
  7414. /* confdefs.h. */
  7415. _ACEOF
  7416. cat confdefs.h >>conftest.$ac_ext
  7417. cat >>conftest.$ac_ext <<_ACEOF
  7418. /* end confdefs.h. */
  7419. #include <$ac_header>
  7420. _ACEOF
  7421. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7422. case "(($ac_try" in
  7423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7424. *) ac_try_echo=$ac_try;;
  7425. esac
  7426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7428. ac_status=$?
  7429. grep -v '^ *+' conftest.er1 >conftest.err
  7430. rm -f conftest.er1
  7431. cat conftest.err >&5
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. (exit $ac_status); } >/dev/null && {
  7434. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7435. test ! -s conftest.err
  7436. }; then
  7437. ac_header_preproc=yes
  7438. else
  7439. echo "$as_me: failed program was:" >&5
  7440. sed 's/^/| /' conftest.$ac_ext >&5
  7441. ac_header_preproc=no
  7442. fi
  7443. rm -f conftest.err conftest.$ac_ext
  7444. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7445. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7446. # So? What about this header?
  7447. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7448. yes:no: )
  7449. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7450. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7451. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7452. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7453. ac_header_preproc=yes
  7454. ;;
  7455. no:yes:* )
  7456. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7457. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7458. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7459. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7460. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7461. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7462. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7463. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7464. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7465. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7466. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7467. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7468. ( cat <<\_ASBOX
  7469. ## ----------------------------------------------- ##
  7470. ## Report this to t-tujikawa@users.sourceforge.net ##
  7471. ## ----------------------------------------------- ##
  7472. _ASBOX
  7473. ) | sed "s/^/$as_me: WARNING: /" >&2
  7474. ;;
  7475. esac
  7476. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7477. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7478. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7479. echo $ECHO_N "(cached) $ECHO_C" >&6
  7480. else
  7481. eval "$as_ac_Header=\$ac_header_preproc"
  7482. fi
  7483. ac_res=`eval echo '${'$as_ac_Header'}'`
  7484. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7485. echo "${ECHO_T}$ac_res" >&6; }
  7486. fi
  7487. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7488. cat >>confdefs.h <<_ACEOF
  7489. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7490. _ACEOF
  7491. fi
  7492. done
  7493. for ac_func in getpagesize
  7494. do
  7495. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7496. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7497. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7498. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7499. echo $ECHO_N "(cached) $ECHO_C" >&6
  7500. else
  7501. cat >conftest.$ac_ext <<_ACEOF
  7502. /* confdefs.h. */
  7503. _ACEOF
  7504. cat confdefs.h >>conftest.$ac_ext
  7505. cat >>conftest.$ac_ext <<_ACEOF
  7506. /* end confdefs.h. */
  7507. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7508. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7509. #define $ac_func innocuous_$ac_func
  7510. /* System header to define __stub macros and hopefully few prototypes,
  7511. which can conflict with char $ac_func (); below.
  7512. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7513. <limits.h> exists even on freestanding compilers. */
  7514. #ifdef __STDC__
  7515. # include <limits.h>
  7516. #else
  7517. # include <assert.h>
  7518. #endif
  7519. #undef $ac_func
  7520. /* Override any GCC internal prototype to avoid an error.
  7521. Use char because int might match the return type of a GCC
  7522. builtin and then its argument prototype would still apply. */
  7523. #ifdef __cplusplus
  7524. extern "C"
  7525. #endif
  7526. char $ac_func ();
  7527. /* The GNU C library defines this for functions which it implements
  7528. to always fail with ENOSYS. Some functions are actually named
  7529. something starting with __ and the normal name is an alias. */
  7530. #if defined __stub_$ac_func || defined __stub___$ac_func
  7531. choke me
  7532. #endif
  7533. int
  7534. main ()
  7535. {
  7536. return $ac_func ();
  7537. ;
  7538. return 0;
  7539. }
  7540. _ACEOF
  7541. rm -f conftest.$ac_objext conftest$ac_exeext
  7542. if { (ac_try="$ac_link"
  7543. case "(($ac_try" in
  7544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7545. *) ac_try_echo=$ac_try;;
  7546. esac
  7547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7548. (eval "$ac_link") 2>conftest.er1
  7549. ac_status=$?
  7550. grep -v '^ *+' conftest.er1 >conftest.err
  7551. rm -f conftest.er1
  7552. cat conftest.err >&5
  7553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. (exit $ac_status); } && {
  7555. test -z "$ac_cxx_werror_flag" ||
  7556. test ! -s conftest.err
  7557. } && test -s conftest$ac_exeext &&
  7558. $as_test_x conftest$ac_exeext; then
  7559. eval "$as_ac_var=yes"
  7560. else
  7561. echo "$as_me: failed program was:" >&5
  7562. sed 's/^/| /' conftest.$ac_ext >&5
  7563. eval "$as_ac_var=no"
  7564. fi
  7565. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7566. conftest$ac_exeext conftest.$ac_ext
  7567. fi
  7568. ac_res=`eval echo '${'$as_ac_var'}'`
  7569. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7570. echo "${ECHO_T}$ac_res" >&6; }
  7571. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7572. cat >>confdefs.h <<_ACEOF
  7573. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7574. _ACEOF
  7575. fi
  7576. done
  7577. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7578. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7579. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7580. echo $ECHO_N "(cached) $ECHO_C" >&6
  7581. else
  7582. if test "$cross_compiling" = yes; then
  7583. ac_cv_func_mmap_fixed_mapped=no
  7584. else
  7585. cat >conftest.$ac_ext <<_ACEOF
  7586. /* confdefs.h. */
  7587. _ACEOF
  7588. cat confdefs.h >>conftest.$ac_ext
  7589. cat >>conftest.$ac_ext <<_ACEOF
  7590. /* end confdefs.h. */
  7591. $ac_includes_default
  7592. /* malloc might have been renamed as rpl_malloc. */
  7593. #undef malloc
  7594. /* Thanks to Mike Haertel and Jim Avera for this test.
  7595. Here is a matrix of mmap possibilities:
  7596. mmap private not fixed
  7597. mmap private fixed at somewhere currently unmapped
  7598. mmap private fixed at somewhere already mapped
  7599. mmap shared not fixed
  7600. mmap shared fixed at somewhere currently unmapped
  7601. mmap shared fixed at somewhere already mapped
  7602. For private mappings, we should verify that changes cannot be read()
  7603. back from the file, nor mmap's back from the file at a different
  7604. address. (There have been systems where private was not correctly
  7605. implemented like the infamous i386 svr4.0, and systems where the
  7606. VM page cache was not coherent with the file system buffer cache
  7607. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7608. For shared mappings, we should conversely verify that changes get
  7609. propagated back to all the places they're supposed to be.
  7610. Grep wants private fixed already mapped.
  7611. The main things grep needs to know about mmap are:
  7612. * does it exist and is it safe to write into the mmap'd area
  7613. * how to use it (BSD variants) */
  7614. #include <fcntl.h>
  7615. #include <sys/mman.h>
  7616. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7617. char *malloc ();
  7618. #endif
  7619. /* This mess was copied from the GNU getpagesize.h. */
  7620. #ifndef HAVE_GETPAGESIZE
  7621. /* Assume that all systems that can run configure have sys/param.h. */
  7622. # ifndef HAVE_SYS_PARAM_H
  7623. # define HAVE_SYS_PARAM_H 1
  7624. # endif
  7625. # ifdef _SC_PAGESIZE
  7626. # define getpagesize() sysconf(_SC_PAGESIZE)
  7627. # else /* no _SC_PAGESIZE */
  7628. # ifdef HAVE_SYS_PARAM_H
  7629. # include <sys/param.h>
  7630. # ifdef EXEC_PAGESIZE
  7631. # define getpagesize() EXEC_PAGESIZE
  7632. # else /* no EXEC_PAGESIZE */
  7633. # ifdef NBPG
  7634. # define getpagesize() NBPG * CLSIZE
  7635. # ifndef CLSIZE
  7636. # define CLSIZE 1
  7637. # endif /* no CLSIZE */
  7638. # else /* no NBPG */
  7639. # ifdef NBPC
  7640. # define getpagesize() NBPC
  7641. # else /* no NBPC */
  7642. # ifdef PAGESIZE
  7643. # define getpagesize() PAGESIZE
  7644. # endif /* PAGESIZE */
  7645. # endif /* no NBPC */
  7646. # endif /* no NBPG */
  7647. # endif /* no EXEC_PAGESIZE */
  7648. # else /* no HAVE_SYS_PARAM_H */
  7649. # define getpagesize() 8192 /* punt totally */
  7650. # endif /* no HAVE_SYS_PARAM_H */
  7651. # endif /* no _SC_PAGESIZE */
  7652. #endif /* no HAVE_GETPAGESIZE */
  7653. int
  7654. main ()
  7655. {
  7656. char *data, *data2, *data3;
  7657. int i, pagesize;
  7658. int fd;
  7659. pagesize = getpagesize ();
  7660. /* First, make a file with some known garbage in it. */
  7661. data = (char *) malloc (pagesize);
  7662. if (!data)
  7663. return 1;
  7664. for (i = 0; i < pagesize; ++i)
  7665. *(data + i) = rand ();
  7666. umask (0);
  7667. fd = creat ("conftest.mmap", 0600);
  7668. if (fd < 0)
  7669. return 1;
  7670. if (write (fd, data, pagesize) != pagesize)
  7671. return 1;
  7672. close (fd);
  7673. /* Next, try to mmap the file at a fixed address which already has
  7674. something else allocated at it. If we can, also make sure that
  7675. we see the same garbage. */
  7676. fd = open ("conftest.mmap", O_RDWR);
  7677. if (fd < 0)
  7678. return 1;
  7679. data2 = (char *) malloc (2 * pagesize);
  7680. if (!data2)
  7681. return 1;
  7682. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7683. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7684. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7685. return 1;
  7686. for (i = 0; i < pagesize; ++i)
  7687. if (*(data + i) != *(data2 + i))
  7688. return 1;
  7689. /* Finally, make sure that changes to the mapped area do not
  7690. percolate back to the file as seen by read(). (This is a bug on
  7691. some variants of i386 svr4.0.) */
  7692. for (i = 0; i < pagesize; ++i)
  7693. *(data2 + i) = *(data2 + i) + 1;
  7694. data3 = (char *) malloc (pagesize);
  7695. if (!data3)
  7696. return 1;
  7697. if (read (fd, data3, pagesize) != pagesize)
  7698. return 1;
  7699. for (i = 0; i < pagesize; ++i)
  7700. if (*(data + i) != *(data3 + i))
  7701. return 1;
  7702. close (fd);
  7703. return 0;
  7704. }
  7705. _ACEOF
  7706. rm -f conftest$ac_exeext
  7707. if { (ac_try="$ac_link"
  7708. case "(($ac_try" in
  7709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7710. *) ac_try_echo=$ac_try;;
  7711. esac
  7712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7713. (eval "$ac_link") 2>&5
  7714. ac_status=$?
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7717. { (case "(($ac_try" in
  7718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7719. *) ac_try_echo=$ac_try;;
  7720. esac
  7721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7722. (eval "$ac_try") 2>&5
  7723. ac_status=$?
  7724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7725. (exit $ac_status); }; }; then
  7726. ac_cv_func_mmap_fixed_mapped=yes
  7727. else
  7728. echo "$as_me: program exited with status $ac_status" >&5
  7729. echo "$as_me: failed program was:" >&5
  7730. sed 's/^/| /' conftest.$ac_ext >&5
  7731. ( exit $ac_status )
  7732. ac_cv_func_mmap_fixed_mapped=no
  7733. fi
  7734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7735. fi
  7736. fi
  7737. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7738. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7739. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7740. cat >>confdefs.h <<\_ACEOF
  7741. #define HAVE_MMAP 1
  7742. _ACEOF
  7743. fi
  7744. rm -f conftest.mmap
  7745. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7746. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7747. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7748. echo $ECHO_N "(cached) $ECHO_C" >&6
  7749. else
  7750. cat >conftest.$ac_ext <<_ACEOF
  7751. /* confdefs.h. */
  7752. _ACEOF
  7753. cat confdefs.h >>conftest.$ac_ext
  7754. cat >>conftest.$ac_ext <<_ACEOF
  7755. /* end confdefs.h. */
  7756. #include <features.h>
  7757. #ifdef __GNU_LIBRARY__
  7758. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7759. Lucky GNU user
  7760. #endif
  7761. #endif
  7762. _ACEOF
  7763. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7764. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7765. ac_cv_gnu_library_2_1=yes
  7766. else
  7767. ac_cv_gnu_library_2_1=no
  7768. fi
  7769. rm -f conftest*
  7770. fi
  7771. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7772. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7773. GLIBC21="$ac_cv_gnu_library_2_1"
  7774. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7775. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7776. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7777. echo $ECHO_N "(cached) $ECHO_C" >&6
  7778. else
  7779. if test "$cross_compiling" = yes; then
  7780. # Guess based on the CPU.
  7781. case "$host_cpu" in
  7782. alpha* | i3456786 | m68k | s390*)
  7783. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7784. *)
  7785. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7786. esac
  7787. else
  7788. cat >conftest.$ac_ext <<_ACEOF
  7789. /* confdefs.h. */
  7790. _ACEOF
  7791. cat confdefs.h >>conftest.$ac_ext
  7792. cat >>conftest.$ac_ext <<_ACEOF
  7793. /* end confdefs.h. */
  7794. #include <stdlib.h>
  7795. #include <signal.h>
  7796. static void
  7797. #ifdef __cplusplus
  7798. sigfpe_handler (int sig)
  7799. #else
  7800. sigfpe_handler (sig) int sig;
  7801. #endif
  7802. {
  7803. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7804. exit (sig != SIGFPE);
  7805. }
  7806. int x = 1;
  7807. int y = 0;
  7808. int z;
  7809. int nan;
  7810. int main ()
  7811. {
  7812. signal (SIGFPE, sigfpe_handler);
  7813. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7814. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7815. signal (SIGTRAP, sigfpe_handler);
  7816. #endif
  7817. /* Linux/SPARC yields signal SIGILL. */
  7818. #if defined (__sparc__) && defined (__linux__)
  7819. signal (SIGILL, sigfpe_handler);
  7820. #endif
  7821. z = x / y;
  7822. nan = y / y;
  7823. exit (1);
  7824. }
  7825. _ACEOF
  7826. rm -f conftest$ac_exeext
  7827. if { (ac_try="$ac_link"
  7828. case "(($ac_try" in
  7829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7830. *) ac_try_echo=$ac_try;;
  7831. esac
  7832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7833. (eval "$ac_link") 2>&5
  7834. ac_status=$?
  7835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7836. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7837. { (case "(($ac_try" in
  7838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7839. *) ac_try_echo=$ac_try;;
  7840. esac
  7841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7842. (eval "$ac_try") 2>&5
  7843. ac_status=$?
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. (exit $ac_status); }; }; then
  7846. gt_cv_int_divbyzero_sigfpe=yes
  7847. else
  7848. echo "$as_me: program exited with status $ac_status" >&5
  7849. echo "$as_me: failed program was:" >&5
  7850. sed 's/^/| /' conftest.$ac_ext >&5
  7851. ( exit $ac_status )
  7852. gt_cv_int_divbyzero_sigfpe=no
  7853. fi
  7854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7855. fi
  7856. fi
  7857. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7858. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7859. case "$gt_cv_int_divbyzero_sigfpe" in
  7860. *yes) value=1;;
  7861. *) value=0;;
  7862. esac
  7863. cat >>confdefs.h <<_ACEOF
  7864. #define INTDIV0_RAISES_SIGFPE $value
  7865. _ACEOF
  7866. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7867. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7868. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7869. echo $ECHO_N "(cached) $ECHO_C" >&6
  7870. else
  7871. cat >conftest.$ac_ext <<_ACEOF
  7872. /* confdefs.h. */
  7873. _ACEOF
  7874. cat confdefs.h >>conftest.$ac_ext
  7875. cat >>conftest.$ac_ext <<_ACEOF
  7876. /* end confdefs.h. */
  7877. #include <sys/types.h>
  7878. #include <inttypes.h>
  7879. int
  7880. main ()
  7881. {
  7882. uintmax_t i = (uintmax_t) -1;
  7883. ;
  7884. return 0;
  7885. }
  7886. _ACEOF
  7887. rm -f conftest.$ac_objext
  7888. if { (ac_try="$ac_compile"
  7889. case "(($ac_try" in
  7890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7891. *) ac_try_echo=$ac_try;;
  7892. esac
  7893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7894. (eval "$ac_compile") 2>conftest.er1
  7895. ac_status=$?
  7896. grep -v '^ *+' conftest.er1 >conftest.err
  7897. rm -f conftest.er1
  7898. cat conftest.err >&5
  7899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7900. (exit $ac_status); } && {
  7901. test -z "$ac_cxx_werror_flag" ||
  7902. test ! -s conftest.err
  7903. } && test -s conftest.$ac_objext; then
  7904. jm_ac_cv_header_inttypes_h=yes
  7905. else
  7906. echo "$as_me: failed program was:" >&5
  7907. sed 's/^/| /' conftest.$ac_ext >&5
  7908. jm_ac_cv_header_inttypes_h=no
  7909. fi
  7910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7911. fi
  7912. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7913. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7914. if test $jm_ac_cv_header_inttypes_h = yes; then
  7915. cat >>confdefs.h <<_ACEOF
  7916. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7917. _ACEOF
  7918. fi
  7919. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7920. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7921. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7922. echo $ECHO_N "(cached) $ECHO_C" >&6
  7923. else
  7924. cat >conftest.$ac_ext <<_ACEOF
  7925. /* confdefs.h. */
  7926. _ACEOF
  7927. cat confdefs.h >>conftest.$ac_ext
  7928. cat >>conftest.$ac_ext <<_ACEOF
  7929. /* end confdefs.h. */
  7930. #include <sys/types.h>
  7931. #include <stdint.h>
  7932. int
  7933. main ()
  7934. {
  7935. uintmax_t i = (uintmax_t) -1;
  7936. ;
  7937. return 0;
  7938. }
  7939. _ACEOF
  7940. rm -f conftest.$ac_objext
  7941. if { (ac_try="$ac_compile"
  7942. case "(($ac_try" in
  7943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7944. *) ac_try_echo=$ac_try;;
  7945. esac
  7946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7947. (eval "$ac_compile") 2>conftest.er1
  7948. ac_status=$?
  7949. grep -v '^ *+' conftest.er1 >conftest.err
  7950. rm -f conftest.er1
  7951. cat conftest.err >&5
  7952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7953. (exit $ac_status); } && {
  7954. test -z "$ac_cxx_werror_flag" ||
  7955. test ! -s conftest.err
  7956. } && test -s conftest.$ac_objext; then
  7957. jm_ac_cv_header_stdint_h=yes
  7958. else
  7959. echo "$as_me: failed program was:" >&5
  7960. sed 's/^/| /' conftest.$ac_ext >&5
  7961. jm_ac_cv_header_stdint_h=no
  7962. fi
  7963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7964. fi
  7965. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7966. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7967. if test $jm_ac_cv_header_stdint_h = yes; then
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7970. _ACEOF
  7971. fi
  7972. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7973. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7974. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7975. echo $ECHO_N "(cached) $ECHO_C" >&6
  7976. else
  7977. cat >conftest.$ac_ext <<_ACEOF
  7978. /* confdefs.h. */
  7979. _ACEOF
  7980. cat confdefs.h >>conftest.$ac_ext
  7981. cat >>conftest.$ac_ext <<_ACEOF
  7982. /* end confdefs.h. */
  7983. unsigned long long ull = 1; int i = 63;
  7984. int
  7985. main ()
  7986. {
  7987. unsigned long long ullmax = (unsigned long long) -1;
  7988. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7989. ;
  7990. return 0;
  7991. }
  7992. _ACEOF
  7993. rm -f conftest.$ac_objext conftest$ac_exeext
  7994. if { (ac_try="$ac_link"
  7995. case "(($ac_try" in
  7996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7997. *) ac_try_echo=$ac_try;;
  7998. esac
  7999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8000. (eval "$ac_link") 2>conftest.er1
  8001. ac_status=$?
  8002. grep -v '^ *+' conftest.er1 >conftest.err
  8003. rm -f conftest.er1
  8004. cat conftest.err >&5
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); } && {
  8007. test -z "$ac_cxx_werror_flag" ||
  8008. test ! -s conftest.err
  8009. } && test -s conftest$ac_exeext &&
  8010. $as_test_x conftest$ac_exeext; then
  8011. ac_cv_type_unsigned_long_long=yes
  8012. else
  8013. echo "$as_me: failed program was:" >&5
  8014. sed 's/^/| /' conftest.$ac_ext >&5
  8015. ac_cv_type_unsigned_long_long=no
  8016. fi
  8017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8018. conftest$ac_exeext conftest.$ac_ext
  8019. fi
  8020. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  8021. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  8022. if test $ac_cv_type_unsigned_long_long = yes; then
  8023. cat >>confdefs.h <<\_ACEOF
  8024. #define HAVE_UNSIGNED_LONG_LONG 1
  8025. _ACEOF
  8026. fi
  8027. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  8028. test $ac_cv_type_unsigned_long_long = yes \
  8029. && ac_type='unsigned long long' \
  8030. || ac_type='unsigned long'
  8031. cat >>confdefs.h <<_ACEOF
  8032. #define uintmax_t $ac_type
  8033. _ACEOF
  8034. else
  8035. cat >>confdefs.h <<\_ACEOF
  8036. #define HAVE_UINTMAX_T 1
  8037. _ACEOF
  8038. fi
  8039. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  8040. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  8041. if test "${gt_cv_header_inttypes_h+set}" = set; then
  8042. echo $ECHO_N "(cached) $ECHO_C" >&6
  8043. else
  8044. cat >conftest.$ac_ext <<_ACEOF
  8045. /* confdefs.h. */
  8046. _ACEOF
  8047. cat confdefs.h >>conftest.$ac_ext
  8048. cat >>conftest.$ac_ext <<_ACEOF
  8049. /* end confdefs.h. */
  8050. #include <sys/types.h>
  8051. #include <inttypes.h>
  8052. int
  8053. main ()
  8054. {
  8055. ;
  8056. return 0;
  8057. }
  8058. _ACEOF
  8059. rm -f conftest.$ac_objext
  8060. if { (ac_try="$ac_compile"
  8061. case "(($ac_try" in
  8062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8063. *) ac_try_echo=$ac_try;;
  8064. esac
  8065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8066. (eval "$ac_compile") 2>conftest.er1
  8067. ac_status=$?
  8068. grep -v '^ *+' conftest.er1 >conftest.err
  8069. rm -f conftest.er1
  8070. cat conftest.err >&5
  8071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. (exit $ac_status); } && {
  8073. test -z "$ac_cxx_werror_flag" ||
  8074. test ! -s conftest.err
  8075. } && test -s conftest.$ac_objext; then
  8076. gt_cv_header_inttypes_h=yes
  8077. else
  8078. echo "$as_me: failed program was:" >&5
  8079. sed 's/^/| /' conftest.$ac_ext >&5
  8080. gt_cv_header_inttypes_h=no
  8081. fi
  8082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8083. fi
  8084. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  8085. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  8086. if test $gt_cv_header_inttypes_h = yes; then
  8087. cat >>confdefs.h <<_ACEOF
  8088. #define HAVE_INTTYPES_H 1
  8089. _ACEOF
  8090. fi
  8091. if test $gt_cv_header_inttypes_h = yes; then
  8092. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8093. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  8094. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  8095. echo $ECHO_N "(cached) $ECHO_C" >&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. #include <inttypes.h>
  8104. #ifdef PRId32
  8105. char *p = PRId32;
  8106. #endif
  8107. int
  8108. main ()
  8109. {
  8110. ;
  8111. return 0;
  8112. }
  8113. _ACEOF
  8114. rm -f conftest.$ac_objext
  8115. if { (ac_try="$ac_compile"
  8116. case "(($ac_try" in
  8117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8118. *) ac_try_echo=$ac_try;;
  8119. esac
  8120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8121. (eval "$ac_compile") 2>conftest.er1
  8122. ac_status=$?
  8123. grep -v '^ *+' conftest.er1 >conftest.err
  8124. rm -f conftest.er1
  8125. cat conftest.err >&5
  8126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8127. (exit $ac_status); } && {
  8128. test -z "$ac_cxx_werror_flag" ||
  8129. test ! -s conftest.err
  8130. } && test -s conftest.$ac_objext; then
  8131. gt_cv_inttypes_pri_broken=no
  8132. else
  8133. echo "$as_me: failed program was:" >&5
  8134. sed 's/^/| /' conftest.$ac_ext >&5
  8135. gt_cv_inttypes_pri_broken=yes
  8136. fi
  8137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8138. fi
  8139. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  8140. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  8141. fi
  8142. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8143. cat >>confdefs.h <<_ACEOF
  8144. #define PRI_MACROS_BROKEN 1
  8145. _ACEOF
  8146. fi
  8147. if test "X$prefix" = "XNONE"; then
  8148. acl_final_prefix="$ac_default_prefix"
  8149. else
  8150. acl_final_prefix="$prefix"
  8151. fi
  8152. if test "X$exec_prefix" = "XNONE"; then
  8153. acl_final_exec_prefix='${prefix}'
  8154. else
  8155. acl_final_exec_prefix="$exec_prefix"
  8156. fi
  8157. acl_save_prefix="$prefix"
  8158. prefix="$acl_final_prefix"
  8159. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8160. prefix="$acl_save_prefix"
  8161. # Check whether --with-gnu-ld was given.
  8162. if test "${with_gnu_ld+set}" = set; then
  8163. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8164. else
  8165. with_gnu_ld=no
  8166. fi
  8167. # Prepare PATH_SEPARATOR.
  8168. # The user is always right.
  8169. if test "${PATH_SEPARATOR+set}" != set; then
  8170. echo "#! /bin/sh" >conf$$.sh
  8171. echo "exit 0" >>conf$$.sh
  8172. chmod +x conf$$.sh
  8173. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8174. PATH_SEPARATOR=';'
  8175. else
  8176. PATH_SEPARATOR=:
  8177. fi
  8178. rm -f conf$$.sh
  8179. fi
  8180. ac_prog=ld
  8181. if test "$GCC" = yes; then
  8182. # Check if gcc -print-prog-name=ld gives a path.
  8183. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8184. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8185. case $host in
  8186. *-*-mingw*)
  8187. # gcc leaves a trailing carriage return which upsets mingw
  8188. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8189. *)
  8190. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8191. esac
  8192. case $ac_prog in
  8193. # Accept absolute paths.
  8194. [\\/]* | [A-Za-z]:[\\/]*)
  8195. re_direlt='/[^/][^/]*/\.\./'
  8196. # Canonicalize the path of ld
  8197. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8198. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8199. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8200. done
  8201. test -z "$LD" && LD="$ac_prog"
  8202. ;;
  8203. "")
  8204. # If it fails, then pretend we aren't using GCC.
  8205. ac_prog=ld
  8206. ;;
  8207. *)
  8208. # If it is relative, then search for the first ld in PATH.
  8209. with_gnu_ld=unknown
  8210. ;;
  8211. esac
  8212. elif test "$with_gnu_ld" = yes; then
  8213. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8214. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8215. else
  8216. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8217. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8218. fi
  8219. if test "${acl_cv_path_LD+set}" = set; then
  8220. echo $ECHO_N "(cached) $ECHO_C" >&6
  8221. else
  8222. if test -z "$LD"; then
  8223. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8224. for ac_dir in $PATH; do
  8225. test -z "$ac_dir" && ac_dir=.
  8226. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8227. acl_cv_path_LD="$ac_dir/$ac_prog"
  8228. # Check to see if the program is GNU ld. I'd rather use --version,
  8229. # but apparently some GNU ld's only accept -v.
  8230. # Break only if it was the GNU/non-GNU ld that we prefer.
  8231. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8232. test "$with_gnu_ld" != no && break
  8233. else
  8234. test "$with_gnu_ld" != yes && break
  8235. fi
  8236. fi
  8237. done
  8238. IFS="$ac_save_ifs"
  8239. else
  8240. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8241. fi
  8242. fi
  8243. LD="$acl_cv_path_LD"
  8244. if test -n "$LD"; then
  8245. { echo "$as_me:$LINENO: result: $LD" >&5
  8246. echo "${ECHO_T}$LD" >&6; }
  8247. else
  8248. { echo "$as_me:$LINENO: result: no" >&5
  8249. echo "${ECHO_T}no" >&6; }
  8250. fi
  8251. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8252. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8253. { (exit 1); exit 1; }; }
  8254. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8255. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8256. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8257. echo $ECHO_N "(cached) $ECHO_C" >&6
  8258. else
  8259. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8260. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8261. acl_cv_prog_gnu_ld=yes
  8262. else
  8263. acl_cv_prog_gnu_ld=no
  8264. fi
  8265. fi
  8266. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8267. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8268. with_gnu_ld=$acl_cv_prog_gnu_ld
  8269. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8270. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8271. if test "${acl_cv_rpath+set}" = set; then
  8272. echo $ECHO_N "(cached) $ECHO_C" >&6
  8273. else
  8274. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8275. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8276. . ./conftest.sh
  8277. rm -f ./conftest.sh
  8278. acl_cv_rpath=done
  8279. fi
  8280. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8281. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8282. wl="$acl_cv_wl"
  8283. libext="$acl_cv_libext"
  8284. shlibext="$acl_cv_shlibext"
  8285. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8286. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8287. hardcode_direct="$acl_cv_hardcode_direct"
  8288. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8289. # Check whether --enable-rpath was given.
  8290. if test "${enable_rpath+set}" = set; then
  8291. enableval=$enable_rpath; :
  8292. else
  8293. enable_rpath=yes
  8294. fi
  8295. use_additional=yes
  8296. acl_save_prefix="$prefix"
  8297. prefix="$acl_final_prefix"
  8298. acl_save_exec_prefix="$exec_prefix"
  8299. exec_prefix="$acl_final_exec_prefix"
  8300. eval additional_includedir=\"$includedir\"
  8301. eval additional_libdir=\"$libdir\"
  8302. exec_prefix="$acl_save_exec_prefix"
  8303. prefix="$acl_save_prefix"
  8304. # Check whether --with-libiconv-prefix was given.
  8305. if test "${with_libiconv_prefix+set}" = set; then
  8306. withval=$with_libiconv_prefix;
  8307. if test "X$withval" = "Xno"; then
  8308. use_additional=no
  8309. else
  8310. if test "X$withval" = "X"; then
  8311. acl_save_prefix="$prefix"
  8312. prefix="$acl_final_prefix"
  8313. acl_save_exec_prefix="$exec_prefix"
  8314. exec_prefix="$acl_final_exec_prefix"
  8315. eval additional_includedir=\"$includedir\"
  8316. eval additional_libdir=\"$libdir\"
  8317. exec_prefix="$acl_save_exec_prefix"
  8318. prefix="$acl_save_prefix"
  8319. else
  8320. additional_includedir="$withval/include"
  8321. additional_libdir="$withval/lib"
  8322. fi
  8323. fi
  8324. fi
  8325. LIBICONV=
  8326. LTLIBICONV=
  8327. INCICONV=
  8328. rpathdirs=
  8329. ltrpathdirs=
  8330. names_already_handled=
  8331. names_next_round='iconv '
  8332. while test -n "$names_next_round"; do
  8333. names_this_round="$names_next_round"
  8334. names_next_round=
  8335. for name in $names_this_round; do
  8336. already_handled=
  8337. for n in $names_already_handled; do
  8338. if test "$n" = "$name"; then
  8339. already_handled=yes
  8340. break
  8341. fi
  8342. done
  8343. if test -z "$already_handled"; then
  8344. names_already_handled="$names_already_handled $name"
  8345. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8346. eval value=\"\$HAVE_LIB$uppername\"
  8347. if test -n "$value"; then
  8348. if test "$value" = yes; then
  8349. eval value=\"\$LIB$uppername\"
  8350. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8351. eval value=\"\$LTLIB$uppername\"
  8352. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8353. else
  8354. :
  8355. fi
  8356. else
  8357. found_dir=
  8358. found_la=
  8359. found_so=
  8360. found_a=
  8361. if test $use_additional = yes; then
  8362. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8363. found_dir="$additional_libdir"
  8364. found_so="$additional_libdir/lib$name.$shlibext"
  8365. if test -f "$additional_libdir/lib$name.la"; then
  8366. found_la="$additional_libdir/lib$name.la"
  8367. fi
  8368. else
  8369. if test -f "$additional_libdir/lib$name.$libext"; then
  8370. found_dir="$additional_libdir"
  8371. found_a="$additional_libdir/lib$name.$libext"
  8372. if test -f "$additional_libdir/lib$name.la"; then
  8373. found_la="$additional_libdir/lib$name.la"
  8374. fi
  8375. fi
  8376. fi
  8377. fi
  8378. if test "X$found_dir" = "X"; then
  8379. for x in $LDFLAGS $LTLIBICONV; do
  8380. acl_save_prefix="$prefix"
  8381. prefix="$acl_final_prefix"
  8382. acl_save_exec_prefix="$exec_prefix"
  8383. exec_prefix="$acl_final_exec_prefix"
  8384. eval x=\"$x\"
  8385. exec_prefix="$acl_save_exec_prefix"
  8386. prefix="$acl_save_prefix"
  8387. case "$x" in
  8388. -L*)
  8389. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8390. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8391. found_dir="$dir"
  8392. found_so="$dir/lib$name.$shlibext"
  8393. if test -f "$dir/lib$name.la"; then
  8394. found_la="$dir/lib$name.la"
  8395. fi
  8396. else
  8397. if test -f "$dir/lib$name.$libext"; then
  8398. found_dir="$dir"
  8399. found_a="$dir/lib$name.$libext"
  8400. if test -f "$dir/lib$name.la"; then
  8401. found_la="$dir/lib$name.la"
  8402. fi
  8403. fi
  8404. fi
  8405. ;;
  8406. esac
  8407. if test "X$found_dir" != "X"; then
  8408. break
  8409. fi
  8410. done
  8411. fi
  8412. if test "X$found_dir" != "X"; then
  8413. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8414. if test "X$found_so" != "X"; then
  8415. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8416. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8417. else
  8418. haveit=
  8419. for x in $ltrpathdirs; do
  8420. if test "X$x" = "X$found_dir"; then
  8421. haveit=yes
  8422. break
  8423. fi
  8424. done
  8425. if test -z "$haveit"; then
  8426. ltrpathdirs="$ltrpathdirs $found_dir"
  8427. fi
  8428. if test "$hardcode_direct" = yes; then
  8429. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8430. else
  8431. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8432. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8433. haveit=
  8434. for x in $rpathdirs; do
  8435. if test "X$x" = "X$found_dir"; then
  8436. haveit=yes
  8437. break
  8438. fi
  8439. done
  8440. if test -z "$haveit"; then
  8441. rpathdirs="$rpathdirs $found_dir"
  8442. fi
  8443. else
  8444. haveit=
  8445. for x in $LDFLAGS $LIBICONV; do
  8446. acl_save_prefix="$prefix"
  8447. prefix="$acl_final_prefix"
  8448. acl_save_exec_prefix="$exec_prefix"
  8449. exec_prefix="$acl_final_exec_prefix"
  8450. eval x=\"$x\"
  8451. exec_prefix="$acl_save_exec_prefix"
  8452. prefix="$acl_save_prefix"
  8453. if test "X$x" = "X-L$found_dir"; then
  8454. haveit=yes
  8455. break
  8456. fi
  8457. done
  8458. if test -z "$haveit"; then
  8459. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8460. fi
  8461. if test "$hardcode_minus_L" != no; then
  8462. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8463. else
  8464. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8465. fi
  8466. fi
  8467. fi
  8468. fi
  8469. else
  8470. if test "X$found_a" != "X"; then
  8471. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8472. else
  8473. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8474. fi
  8475. fi
  8476. additional_includedir=
  8477. case "$found_dir" in
  8478. */lib | */lib/)
  8479. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8480. additional_includedir="$basedir/include"
  8481. ;;
  8482. esac
  8483. if test "X$additional_includedir" != "X"; then
  8484. if test "X$additional_includedir" != "X/usr/include"; then
  8485. haveit=
  8486. if test "X$additional_includedir" = "X/usr/local/include"; then
  8487. if test -n "$GCC"; then
  8488. case $host_os in
  8489. linux*) haveit=yes;;
  8490. esac
  8491. fi
  8492. fi
  8493. if test -z "$haveit"; then
  8494. for x in $CPPFLAGS $INCICONV; do
  8495. acl_save_prefix="$prefix"
  8496. prefix="$acl_final_prefix"
  8497. acl_save_exec_prefix="$exec_prefix"
  8498. exec_prefix="$acl_final_exec_prefix"
  8499. eval x=\"$x\"
  8500. exec_prefix="$acl_save_exec_prefix"
  8501. prefix="$acl_save_prefix"
  8502. if test "X$x" = "X-I$additional_includedir"; then
  8503. haveit=yes
  8504. break
  8505. fi
  8506. done
  8507. if test -z "$haveit"; then
  8508. if test -d "$additional_includedir"; then
  8509. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8510. fi
  8511. fi
  8512. fi
  8513. fi
  8514. fi
  8515. if test -n "$found_la"; then
  8516. save_libdir="$libdir"
  8517. case "$found_la" in
  8518. */* | *\\*) . "$found_la" ;;
  8519. *) . "./$found_la" ;;
  8520. esac
  8521. libdir="$save_libdir"
  8522. for dep in $dependency_libs; do
  8523. case "$dep" in
  8524. -L*)
  8525. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8526. if test "X$additional_libdir" != "X/usr/lib"; then
  8527. haveit=
  8528. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8529. if test -n "$GCC"; then
  8530. case $host_os in
  8531. linux*) haveit=yes;;
  8532. esac
  8533. fi
  8534. fi
  8535. if test -z "$haveit"; then
  8536. haveit=
  8537. for x in $LDFLAGS $LIBICONV; do
  8538. acl_save_prefix="$prefix"
  8539. prefix="$acl_final_prefix"
  8540. acl_save_exec_prefix="$exec_prefix"
  8541. exec_prefix="$acl_final_exec_prefix"
  8542. eval x=\"$x\"
  8543. exec_prefix="$acl_save_exec_prefix"
  8544. prefix="$acl_save_prefix"
  8545. if test "X$x" = "X-L$additional_libdir"; then
  8546. haveit=yes
  8547. break
  8548. fi
  8549. done
  8550. if test -z "$haveit"; then
  8551. if test -d "$additional_libdir"; then
  8552. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8553. fi
  8554. fi
  8555. haveit=
  8556. for x in $LDFLAGS $LTLIBICONV; do
  8557. acl_save_prefix="$prefix"
  8558. prefix="$acl_final_prefix"
  8559. acl_save_exec_prefix="$exec_prefix"
  8560. exec_prefix="$acl_final_exec_prefix"
  8561. eval x=\"$x\"
  8562. exec_prefix="$acl_save_exec_prefix"
  8563. prefix="$acl_save_prefix"
  8564. if test "X$x" = "X-L$additional_libdir"; then
  8565. haveit=yes
  8566. break
  8567. fi
  8568. done
  8569. if test -z "$haveit"; then
  8570. if test -d "$additional_libdir"; then
  8571. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8572. fi
  8573. fi
  8574. fi
  8575. fi
  8576. ;;
  8577. -R*)
  8578. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8579. if test "$enable_rpath" != no; then
  8580. haveit=
  8581. for x in $rpathdirs; do
  8582. if test "X$x" = "X$dir"; then
  8583. haveit=yes
  8584. break
  8585. fi
  8586. done
  8587. if test -z "$haveit"; then
  8588. rpathdirs="$rpathdirs $dir"
  8589. fi
  8590. haveit=
  8591. for x in $ltrpathdirs; do
  8592. if test "X$x" = "X$dir"; then
  8593. haveit=yes
  8594. break
  8595. fi
  8596. done
  8597. if test -z "$haveit"; then
  8598. ltrpathdirs="$ltrpathdirs $dir"
  8599. fi
  8600. fi
  8601. ;;
  8602. -l*)
  8603. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8604. ;;
  8605. *.la)
  8606. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8607. ;;
  8608. *)
  8609. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8610. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8611. ;;
  8612. esac
  8613. done
  8614. fi
  8615. else
  8616. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8617. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8618. fi
  8619. fi
  8620. fi
  8621. done
  8622. done
  8623. if test "X$rpathdirs" != "X"; then
  8624. if test -n "$hardcode_libdir_separator"; then
  8625. alldirs=
  8626. for found_dir in $rpathdirs; do
  8627. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8628. done
  8629. acl_save_libdir="$libdir"
  8630. libdir="$alldirs"
  8631. eval flag=\"$hardcode_libdir_flag_spec\"
  8632. libdir="$acl_save_libdir"
  8633. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8634. else
  8635. for found_dir in $rpathdirs; do
  8636. acl_save_libdir="$libdir"
  8637. libdir="$found_dir"
  8638. eval flag=\"$hardcode_libdir_flag_spec\"
  8639. libdir="$acl_save_libdir"
  8640. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8641. done
  8642. fi
  8643. fi
  8644. if test "X$ltrpathdirs" != "X"; then
  8645. for found_dir in $ltrpathdirs; do
  8646. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8647. done
  8648. fi
  8649. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8650. stdlib.h string.h unistd.h sys/param.h
  8651. do
  8652. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8653. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8654. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8655. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8656. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8657. echo $ECHO_N "(cached) $ECHO_C" >&6
  8658. fi
  8659. ac_res=`eval echo '${'$as_ac_Header'}'`
  8660. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8661. echo "${ECHO_T}$ac_res" >&6; }
  8662. else
  8663. # Is the header compilable?
  8664. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8665. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8666. cat >conftest.$ac_ext <<_ACEOF
  8667. /* confdefs.h. */
  8668. _ACEOF
  8669. cat confdefs.h >>conftest.$ac_ext
  8670. cat >>conftest.$ac_ext <<_ACEOF
  8671. /* end confdefs.h. */
  8672. $ac_includes_default
  8673. #include <$ac_header>
  8674. _ACEOF
  8675. rm -f conftest.$ac_objext
  8676. if { (ac_try="$ac_compile"
  8677. case "(($ac_try" in
  8678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8679. *) ac_try_echo=$ac_try;;
  8680. esac
  8681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8682. (eval "$ac_compile") 2>conftest.er1
  8683. ac_status=$?
  8684. grep -v '^ *+' conftest.er1 >conftest.err
  8685. rm -f conftest.er1
  8686. cat conftest.err >&5
  8687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8688. (exit $ac_status); } && {
  8689. test -z "$ac_cxx_werror_flag" ||
  8690. test ! -s conftest.err
  8691. } && test -s conftest.$ac_objext; then
  8692. ac_header_compiler=yes
  8693. else
  8694. echo "$as_me: failed program was:" >&5
  8695. sed 's/^/| /' conftest.$ac_ext >&5
  8696. ac_header_compiler=no
  8697. fi
  8698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8699. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8700. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8701. # Is the header present?
  8702. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8703. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8704. cat >conftest.$ac_ext <<_ACEOF
  8705. /* confdefs.h. */
  8706. _ACEOF
  8707. cat confdefs.h >>conftest.$ac_ext
  8708. cat >>conftest.$ac_ext <<_ACEOF
  8709. /* end confdefs.h. */
  8710. #include <$ac_header>
  8711. _ACEOF
  8712. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8713. case "(($ac_try" in
  8714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8715. *) ac_try_echo=$ac_try;;
  8716. esac
  8717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8718. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8719. ac_status=$?
  8720. grep -v '^ *+' conftest.er1 >conftest.err
  8721. rm -f conftest.er1
  8722. cat conftest.err >&5
  8723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); } >/dev/null && {
  8725. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8726. test ! -s conftest.err
  8727. }; then
  8728. ac_header_preproc=yes
  8729. else
  8730. echo "$as_me: failed program was:" >&5
  8731. sed 's/^/| /' conftest.$ac_ext >&5
  8732. ac_header_preproc=no
  8733. fi
  8734. rm -f conftest.err conftest.$ac_ext
  8735. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8736. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8737. # So? What about this header?
  8738. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8739. yes:no: )
  8740. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8741. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8742. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8743. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8744. ac_header_preproc=yes
  8745. ;;
  8746. no:yes:* )
  8747. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8748. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8749. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8750. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8751. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8752. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8753. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8754. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8755. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8756. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8757. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8758. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8759. ( cat <<\_ASBOX
  8760. ## ----------------------------------------------- ##
  8761. ## Report this to t-tujikawa@users.sourceforge.net ##
  8762. ## ----------------------------------------------- ##
  8763. _ASBOX
  8764. ) | sed "s/^/$as_me: WARNING: /" >&2
  8765. ;;
  8766. esac
  8767. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8768. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8769. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8770. echo $ECHO_N "(cached) $ECHO_C" >&6
  8771. else
  8772. eval "$as_ac_Header=\$ac_header_preproc"
  8773. fi
  8774. ac_res=`eval echo '${'$as_ac_Header'}'`
  8775. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8776. echo "${ECHO_T}$ac_res" >&6; }
  8777. fi
  8778. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8779. cat >>confdefs.h <<_ACEOF
  8780. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8781. _ACEOF
  8782. fi
  8783. done
  8784. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8785. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8786. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8787. __fsetlocking
  8788. do
  8789. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8790. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8791. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8792. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8793. echo $ECHO_N "(cached) $ECHO_C" >&6
  8794. else
  8795. cat >conftest.$ac_ext <<_ACEOF
  8796. /* confdefs.h. */
  8797. _ACEOF
  8798. cat confdefs.h >>conftest.$ac_ext
  8799. cat >>conftest.$ac_ext <<_ACEOF
  8800. /* end confdefs.h. */
  8801. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8802. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8803. #define $ac_func innocuous_$ac_func
  8804. /* System header to define __stub macros and hopefully few prototypes,
  8805. which can conflict with char $ac_func (); below.
  8806. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8807. <limits.h> exists even on freestanding compilers. */
  8808. #ifdef __STDC__
  8809. # include <limits.h>
  8810. #else
  8811. # include <assert.h>
  8812. #endif
  8813. #undef $ac_func
  8814. /* Override any GCC internal prototype to avoid an error.
  8815. Use char because int might match the return type of a GCC
  8816. builtin and then its argument prototype would still apply. */
  8817. #ifdef __cplusplus
  8818. extern "C"
  8819. #endif
  8820. char $ac_func ();
  8821. /* The GNU C library defines this for functions which it implements
  8822. to always fail with ENOSYS. Some functions are actually named
  8823. something starting with __ and the normal name is an alias. */
  8824. #if defined __stub_$ac_func || defined __stub___$ac_func
  8825. choke me
  8826. #endif
  8827. int
  8828. main ()
  8829. {
  8830. return $ac_func ();
  8831. ;
  8832. return 0;
  8833. }
  8834. _ACEOF
  8835. rm -f conftest.$ac_objext conftest$ac_exeext
  8836. if { (ac_try="$ac_link"
  8837. case "(($ac_try" in
  8838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8839. *) ac_try_echo=$ac_try;;
  8840. esac
  8841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8842. (eval "$ac_link") 2>conftest.er1
  8843. ac_status=$?
  8844. grep -v '^ *+' conftest.er1 >conftest.err
  8845. rm -f conftest.er1
  8846. cat conftest.err >&5
  8847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8848. (exit $ac_status); } && {
  8849. test -z "$ac_cxx_werror_flag" ||
  8850. test ! -s conftest.err
  8851. } && test -s conftest$ac_exeext &&
  8852. $as_test_x conftest$ac_exeext; then
  8853. eval "$as_ac_var=yes"
  8854. else
  8855. echo "$as_me: failed program was:" >&5
  8856. sed 's/^/| /' conftest.$ac_ext >&5
  8857. eval "$as_ac_var=no"
  8858. fi
  8859. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8860. conftest$ac_exeext conftest.$ac_ext
  8861. fi
  8862. ac_res=`eval echo '${'$as_ac_var'}'`
  8863. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8864. echo "${ECHO_T}$ac_res" >&6; }
  8865. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8866. cat >>confdefs.h <<_ACEOF
  8867. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8868. _ACEOF
  8869. fi
  8870. done
  8871. am_save_CPPFLAGS="$CPPFLAGS"
  8872. for element in $INCICONV; do
  8873. haveit=
  8874. for x in $CPPFLAGS; do
  8875. acl_save_prefix="$prefix"
  8876. prefix="$acl_final_prefix"
  8877. acl_save_exec_prefix="$exec_prefix"
  8878. exec_prefix="$acl_final_exec_prefix"
  8879. eval x=\"$x\"
  8880. exec_prefix="$acl_save_exec_prefix"
  8881. prefix="$acl_save_prefix"
  8882. if test "X$x" = "X$element"; then
  8883. haveit=yes
  8884. break
  8885. fi
  8886. done
  8887. if test -z "$haveit"; then
  8888. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8889. fi
  8890. done
  8891. { echo "$as_me:$LINENO: checking for iconv" >&5
  8892. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8893. if test "${am_cv_func_iconv+set}" = set; then
  8894. echo $ECHO_N "(cached) $ECHO_C" >&6
  8895. else
  8896. am_cv_func_iconv="no, consider installing GNU libiconv"
  8897. am_cv_lib_iconv=no
  8898. cat >conftest.$ac_ext <<_ACEOF
  8899. /* confdefs.h. */
  8900. _ACEOF
  8901. cat confdefs.h >>conftest.$ac_ext
  8902. cat >>conftest.$ac_ext <<_ACEOF
  8903. /* end confdefs.h. */
  8904. #include <stdlib.h>
  8905. #include <iconv.h>
  8906. int
  8907. main ()
  8908. {
  8909. iconv_t cd = iconv_open("","");
  8910. iconv(cd,NULL,NULL,NULL,NULL);
  8911. iconv_close(cd);
  8912. ;
  8913. return 0;
  8914. }
  8915. _ACEOF
  8916. rm -f conftest.$ac_objext conftest$ac_exeext
  8917. if { (ac_try="$ac_link"
  8918. case "(($ac_try" in
  8919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8920. *) ac_try_echo=$ac_try;;
  8921. esac
  8922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8923. (eval "$ac_link") 2>conftest.er1
  8924. ac_status=$?
  8925. grep -v '^ *+' conftest.er1 >conftest.err
  8926. rm -f conftest.er1
  8927. cat conftest.err >&5
  8928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8929. (exit $ac_status); } && {
  8930. test -z "$ac_cxx_werror_flag" ||
  8931. test ! -s conftest.err
  8932. } && test -s conftest$ac_exeext &&
  8933. $as_test_x conftest$ac_exeext; then
  8934. am_cv_func_iconv=yes
  8935. else
  8936. echo "$as_me: failed program was:" >&5
  8937. sed 's/^/| /' conftest.$ac_ext >&5
  8938. fi
  8939. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8940. conftest$ac_exeext conftest.$ac_ext
  8941. if test "$am_cv_func_iconv" != yes; then
  8942. am_save_LIBS="$LIBS"
  8943. LIBS="$LIBS $LIBICONV"
  8944. cat >conftest.$ac_ext <<_ACEOF
  8945. /* confdefs.h. */
  8946. _ACEOF
  8947. cat confdefs.h >>conftest.$ac_ext
  8948. cat >>conftest.$ac_ext <<_ACEOF
  8949. /* end confdefs.h. */
  8950. #include <stdlib.h>
  8951. #include <iconv.h>
  8952. int
  8953. main ()
  8954. {
  8955. iconv_t cd = iconv_open("","");
  8956. iconv(cd,NULL,NULL,NULL,NULL);
  8957. iconv_close(cd);
  8958. ;
  8959. return 0;
  8960. }
  8961. _ACEOF
  8962. rm -f conftest.$ac_objext conftest$ac_exeext
  8963. if { (ac_try="$ac_link"
  8964. case "(($ac_try" in
  8965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8966. *) ac_try_echo=$ac_try;;
  8967. esac
  8968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8969. (eval "$ac_link") 2>conftest.er1
  8970. ac_status=$?
  8971. grep -v '^ *+' conftest.er1 >conftest.err
  8972. rm -f conftest.er1
  8973. cat conftest.err >&5
  8974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8975. (exit $ac_status); } && {
  8976. test -z "$ac_cxx_werror_flag" ||
  8977. test ! -s conftest.err
  8978. } && test -s conftest$ac_exeext &&
  8979. $as_test_x conftest$ac_exeext; then
  8980. am_cv_lib_iconv=yes
  8981. am_cv_func_iconv=yes
  8982. else
  8983. echo "$as_me: failed program was:" >&5
  8984. sed 's/^/| /' conftest.$ac_ext >&5
  8985. fi
  8986. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8987. conftest$ac_exeext conftest.$ac_ext
  8988. LIBS="$am_save_LIBS"
  8989. fi
  8990. fi
  8991. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8992. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8993. if test "$am_cv_func_iconv" = yes; then
  8994. cat >>confdefs.h <<\_ACEOF
  8995. #define HAVE_ICONV 1
  8996. _ACEOF
  8997. fi
  8998. if test "$am_cv_lib_iconv" = yes; then
  8999. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  9000. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  9001. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  9002. echo "${ECHO_T}$LIBICONV" >&6; }
  9003. else
  9004. CPPFLAGS="$am_save_CPPFLAGS"
  9005. LIBICONV=
  9006. LTLIBICONV=
  9007. fi
  9008. if test "$am_cv_func_iconv" = yes; then
  9009. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  9010. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  9011. if test "${am_cv_proto_iconv+set}" = set; then
  9012. echo $ECHO_N "(cached) $ECHO_C" >&6
  9013. else
  9014. cat >conftest.$ac_ext <<_ACEOF
  9015. /* confdefs.h. */
  9016. _ACEOF
  9017. cat confdefs.h >>conftest.$ac_ext
  9018. cat >>conftest.$ac_ext <<_ACEOF
  9019. /* end confdefs.h. */
  9020. #include <stdlib.h>
  9021. #include <iconv.h>
  9022. extern
  9023. #ifdef __cplusplus
  9024. "C"
  9025. #endif
  9026. #if defined(__STDC__) || defined(__cplusplus)
  9027. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  9028. #else
  9029. size_t iconv();
  9030. #endif
  9031. int
  9032. main ()
  9033. {
  9034. ;
  9035. return 0;
  9036. }
  9037. _ACEOF
  9038. rm -f conftest.$ac_objext
  9039. if { (ac_try="$ac_compile"
  9040. case "(($ac_try" in
  9041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9042. *) ac_try_echo=$ac_try;;
  9043. esac
  9044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9045. (eval "$ac_compile") 2>conftest.er1
  9046. ac_status=$?
  9047. grep -v '^ *+' conftest.er1 >conftest.err
  9048. rm -f conftest.er1
  9049. cat conftest.err >&5
  9050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9051. (exit $ac_status); } && {
  9052. test -z "$ac_cxx_werror_flag" ||
  9053. test ! -s conftest.err
  9054. } && test -s conftest.$ac_objext; then
  9055. am_cv_proto_iconv_arg1=""
  9056. else
  9057. echo "$as_me: failed program was:" >&5
  9058. sed 's/^/| /' conftest.$ac_ext >&5
  9059. am_cv_proto_iconv_arg1="const"
  9060. fi
  9061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9062. 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);"
  9063. fi
  9064. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  9065. { echo "$as_me:$LINENO: result: ${ac_t:-
  9066. }$am_cv_proto_iconv" >&5
  9067. echo "${ECHO_T}${ac_t:-
  9068. }$am_cv_proto_iconv" >&6; }
  9069. cat >>confdefs.h <<_ACEOF
  9070. #define ICONV_CONST $am_cv_proto_iconv_arg1
  9071. _ACEOF
  9072. fi
  9073. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  9074. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  9075. if test "${am_cv_langinfo_codeset+set}" = set; then
  9076. echo $ECHO_N "(cached) $ECHO_C" >&6
  9077. else
  9078. cat >conftest.$ac_ext <<_ACEOF
  9079. /* confdefs.h. */
  9080. _ACEOF
  9081. cat confdefs.h >>conftest.$ac_ext
  9082. cat >>conftest.$ac_ext <<_ACEOF
  9083. /* end confdefs.h. */
  9084. #include <langinfo.h>
  9085. int
  9086. main ()
  9087. {
  9088. char* cs = nl_langinfo(CODESET);
  9089. ;
  9090. return 0;
  9091. }
  9092. _ACEOF
  9093. rm -f conftest.$ac_objext conftest$ac_exeext
  9094. if { (ac_try="$ac_link"
  9095. case "(($ac_try" in
  9096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9097. *) ac_try_echo=$ac_try;;
  9098. esac
  9099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9100. (eval "$ac_link") 2>conftest.er1
  9101. ac_status=$?
  9102. grep -v '^ *+' conftest.er1 >conftest.err
  9103. rm -f conftest.er1
  9104. cat conftest.err >&5
  9105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9106. (exit $ac_status); } && {
  9107. test -z "$ac_cxx_werror_flag" ||
  9108. test ! -s conftest.err
  9109. } && test -s conftest$ac_exeext &&
  9110. $as_test_x conftest$ac_exeext; then
  9111. am_cv_langinfo_codeset=yes
  9112. else
  9113. echo "$as_me: failed program was:" >&5
  9114. sed 's/^/| /' conftest.$ac_ext >&5
  9115. am_cv_langinfo_codeset=no
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9118. conftest$ac_exeext conftest.$ac_ext
  9119. fi
  9120. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  9121. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  9122. if test $am_cv_langinfo_codeset = yes; then
  9123. cat >>confdefs.h <<\_ACEOF
  9124. #define HAVE_LANGINFO_CODESET 1
  9125. _ACEOF
  9126. fi
  9127. if test $ac_cv_header_locale_h = yes; then
  9128. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9129. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  9130. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9131. echo $ECHO_N "(cached) $ECHO_C" >&6
  9132. else
  9133. cat >conftest.$ac_ext <<_ACEOF
  9134. /* confdefs.h. */
  9135. _ACEOF
  9136. cat confdefs.h >>conftest.$ac_ext
  9137. cat >>conftest.$ac_ext <<_ACEOF
  9138. /* end confdefs.h. */
  9139. #include <locale.h>
  9140. int
  9141. main ()
  9142. {
  9143. return LC_MESSAGES
  9144. ;
  9145. return 0;
  9146. }
  9147. _ACEOF
  9148. rm -f conftest.$ac_objext conftest$ac_exeext
  9149. if { (ac_try="$ac_link"
  9150. case "(($ac_try" in
  9151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9152. *) ac_try_echo=$ac_try;;
  9153. esac
  9154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9155. (eval "$ac_link") 2>conftest.er1
  9156. ac_status=$?
  9157. grep -v '^ *+' conftest.er1 >conftest.err
  9158. rm -f conftest.er1
  9159. cat conftest.err >&5
  9160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9161. (exit $ac_status); } && {
  9162. test -z "$ac_cxx_werror_flag" ||
  9163. test ! -s conftest.err
  9164. } && test -s conftest$ac_exeext &&
  9165. $as_test_x conftest$ac_exeext; then
  9166. am_cv_val_LC_MESSAGES=yes
  9167. else
  9168. echo "$as_me: failed program was:" >&5
  9169. sed 's/^/| /' conftest.$ac_ext >&5
  9170. am_cv_val_LC_MESSAGES=no
  9171. fi
  9172. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9173. conftest$ac_exeext conftest.$ac_ext
  9174. fi
  9175. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9176. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9177. if test $am_cv_val_LC_MESSAGES = yes; then
  9178. cat >>confdefs.h <<\_ACEOF
  9179. #define HAVE_LC_MESSAGES 1
  9180. _ACEOF
  9181. fi
  9182. fi
  9183. for ac_prog in bison
  9184. do
  9185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9186. set dummy $ac_prog; ac_word=$2
  9187. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9189. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9190. echo $ECHO_N "(cached) $ECHO_C" >&6
  9191. else
  9192. if test -n "$INTLBISON"; then
  9193. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9194. else
  9195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9196. for as_dir in $PATH
  9197. do
  9198. IFS=$as_save_IFS
  9199. test -z "$as_dir" && as_dir=.
  9200. for ac_exec_ext in '' $ac_executable_extensions; do
  9201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9202. ac_cv_prog_INTLBISON="$ac_prog"
  9203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9204. break 2
  9205. fi
  9206. done
  9207. done
  9208. IFS=$as_save_IFS
  9209. fi
  9210. fi
  9211. INTLBISON=$ac_cv_prog_INTLBISON
  9212. if test -n "$INTLBISON"; then
  9213. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9214. echo "${ECHO_T}$INTLBISON" >&6; }
  9215. else
  9216. { echo "$as_me:$LINENO: result: no" >&5
  9217. echo "${ECHO_T}no" >&6; }
  9218. fi
  9219. test -n "$INTLBISON" && break
  9220. done
  9221. if test -z "$INTLBISON"; then
  9222. ac_verc_fail=yes
  9223. else
  9224. { echo "$as_me:$LINENO: checking version of bison" >&5
  9225. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  9226. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9227. case $ac_prog_version in
  9228. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9229. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9230. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9231. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9232. esac
  9233. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9234. echo "${ECHO_T}$ac_prog_version" >&6; }
  9235. fi
  9236. if test $ac_verc_fail = yes; then
  9237. INTLBISON=:
  9238. fi
  9239. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9240. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9241. # Check whether --enable-nls was given.
  9242. if test "${enable_nls+set}" = set; then
  9243. enableval=$enable_nls; USE_NLS=$enableval
  9244. else
  9245. USE_NLS=yes
  9246. fi
  9247. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9248. echo "${ECHO_T}$USE_NLS" >&6; }
  9249. BUILD_INCLUDED_LIBINTL=no
  9250. USE_INCLUDED_LIBINTL=no
  9251. LIBINTL=
  9252. LTLIBINTL=
  9253. POSUB=
  9254. if test "$USE_NLS" = "yes"; then
  9255. gt_use_preinstalled_gnugettext=no
  9256. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9257. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  9258. # Check whether --with-included-gettext was given.
  9259. if test "${with_included_gettext+set}" = set; then
  9260. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  9261. else
  9262. nls_cv_force_use_gnu_gettext=no
  9263. fi
  9264. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9265. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  9266. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9267. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9268. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9269. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  9270. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9271. echo $ECHO_N "(cached) $ECHO_C" >&6
  9272. else
  9273. cat >conftest.$ac_ext <<_ACEOF
  9274. /* confdefs.h. */
  9275. _ACEOF
  9276. cat confdefs.h >>conftest.$ac_ext
  9277. cat >>conftest.$ac_ext <<_ACEOF
  9278. /* end confdefs.h. */
  9279. #include <libintl.h>
  9280. extern int _nl_msg_cat_cntr;
  9281. extern int *_nl_domain_bindings;
  9282. int
  9283. main ()
  9284. {
  9285. bindtextdomain ("", "");
  9286. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9287. ;
  9288. return 0;
  9289. }
  9290. _ACEOF
  9291. rm -f conftest.$ac_objext conftest$ac_exeext
  9292. if { (ac_try="$ac_link"
  9293. case "(($ac_try" in
  9294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9295. *) ac_try_echo=$ac_try;;
  9296. esac
  9297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9298. (eval "$ac_link") 2>conftest.er1
  9299. ac_status=$?
  9300. grep -v '^ *+' conftest.er1 >conftest.err
  9301. rm -f conftest.er1
  9302. cat conftest.err >&5
  9303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9304. (exit $ac_status); } && {
  9305. test -z "$ac_cxx_werror_flag" ||
  9306. test ! -s conftest.err
  9307. } && test -s conftest$ac_exeext &&
  9308. $as_test_x conftest$ac_exeext; then
  9309. gt_cv_func_gnugettext1_libc=yes
  9310. else
  9311. echo "$as_me: failed program was:" >&5
  9312. sed 's/^/| /' conftest.$ac_ext >&5
  9313. gt_cv_func_gnugettext1_libc=no
  9314. fi
  9315. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9316. conftest$ac_exeext conftest.$ac_ext
  9317. fi
  9318. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9319. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  9320. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9321. use_additional=yes
  9322. acl_save_prefix="$prefix"
  9323. prefix="$acl_final_prefix"
  9324. acl_save_exec_prefix="$exec_prefix"
  9325. exec_prefix="$acl_final_exec_prefix"
  9326. eval additional_includedir=\"$includedir\"
  9327. eval additional_libdir=\"$libdir\"
  9328. exec_prefix="$acl_save_exec_prefix"
  9329. prefix="$acl_save_prefix"
  9330. # Check whether --with-libintl-prefix was given.
  9331. if test "${with_libintl_prefix+set}" = set; then
  9332. withval=$with_libintl_prefix;
  9333. if test "X$withval" = "Xno"; then
  9334. use_additional=no
  9335. else
  9336. if test "X$withval" = "X"; then
  9337. acl_save_prefix="$prefix"
  9338. prefix="$acl_final_prefix"
  9339. acl_save_exec_prefix="$exec_prefix"
  9340. exec_prefix="$acl_final_exec_prefix"
  9341. eval additional_includedir=\"$includedir\"
  9342. eval additional_libdir=\"$libdir\"
  9343. exec_prefix="$acl_save_exec_prefix"
  9344. prefix="$acl_save_prefix"
  9345. else
  9346. additional_includedir="$withval/include"
  9347. additional_libdir="$withval/lib"
  9348. fi
  9349. fi
  9350. fi
  9351. LIBINTL=
  9352. LTLIBINTL=
  9353. INCINTL=
  9354. rpathdirs=
  9355. ltrpathdirs=
  9356. names_already_handled=
  9357. names_next_round='intl '
  9358. while test -n "$names_next_round"; do
  9359. names_this_round="$names_next_round"
  9360. names_next_round=
  9361. for name in $names_this_round; do
  9362. already_handled=
  9363. for n in $names_already_handled; do
  9364. if test "$n" = "$name"; then
  9365. already_handled=yes
  9366. break
  9367. fi
  9368. done
  9369. if test -z "$already_handled"; then
  9370. names_already_handled="$names_already_handled $name"
  9371. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9372. eval value=\"\$HAVE_LIB$uppername\"
  9373. if test -n "$value"; then
  9374. if test "$value" = yes; then
  9375. eval value=\"\$LIB$uppername\"
  9376. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9377. eval value=\"\$LTLIB$uppername\"
  9378. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9379. else
  9380. :
  9381. fi
  9382. else
  9383. found_dir=
  9384. found_la=
  9385. found_so=
  9386. found_a=
  9387. if test $use_additional = yes; then
  9388. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9389. found_dir="$additional_libdir"
  9390. found_so="$additional_libdir/lib$name.$shlibext"
  9391. if test -f "$additional_libdir/lib$name.la"; then
  9392. found_la="$additional_libdir/lib$name.la"
  9393. fi
  9394. else
  9395. if test -f "$additional_libdir/lib$name.$libext"; then
  9396. found_dir="$additional_libdir"
  9397. found_a="$additional_libdir/lib$name.$libext"
  9398. if test -f "$additional_libdir/lib$name.la"; then
  9399. found_la="$additional_libdir/lib$name.la"
  9400. fi
  9401. fi
  9402. fi
  9403. fi
  9404. if test "X$found_dir" = "X"; then
  9405. for x in $LDFLAGS $LTLIBINTL; do
  9406. acl_save_prefix="$prefix"
  9407. prefix="$acl_final_prefix"
  9408. acl_save_exec_prefix="$exec_prefix"
  9409. exec_prefix="$acl_final_exec_prefix"
  9410. eval x=\"$x\"
  9411. exec_prefix="$acl_save_exec_prefix"
  9412. prefix="$acl_save_prefix"
  9413. case "$x" in
  9414. -L*)
  9415. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9416. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9417. found_dir="$dir"
  9418. found_so="$dir/lib$name.$shlibext"
  9419. if test -f "$dir/lib$name.la"; then
  9420. found_la="$dir/lib$name.la"
  9421. fi
  9422. else
  9423. if test -f "$dir/lib$name.$libext"; then
  9424. found_dir="$dir"
  9425. found_a="$dir/lib$name.$libext"
  9426. if test -f "$dir/lib$name.la"; then
  9427. found_la="$dir/lib$name.la"
  9428. fi
  9429. fi
  9430. fi
  9431. ;;
  9432. esac
  9433. if test "X$found_dir" != "X"; then
  9434. break
  9435. fi
  9436. done
  9437. fi
  9438. if test "X$found_dir" != "X"; then
  9439. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9440. if test "X$found_so" != "X"; then
  9441. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9442. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9443. else
  9444. haveit=
  9445. for x in $ltrpathdirs; do
  9446. if test "X$x" = "X$found_dir"; then
  9447. haveit=yes
  9448. break
  9449. fi
  9450. done
  9451. if test -z "$haveit"; then
  9452. ltrpathdirs="$ltrpathdirs $found_dir"
  9453. fi
  9454. if test "$hardcode_direct" = yes; then
  9455. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9456. else
  9457. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9458. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9459. haveit=
  9460. for x in $rpathdirs; do
  9461. if test "X$x" = "X$found_dir"; then
  9462. haveit=yes
  9463. break
  9464. fi
  9465. done
  9466. if test -z "$haveit"; then
  9467. rpathdirs="$rpathdirs $found_dir"
  9468. fi
  9469. else
  9470. haveit=
  9471. for x in $LDFLAGS $LIBINTL; do
  9472. acl_save_prefix="$prefix"
  9473. prefix="$acl_final_prefix"
  9474. acl_save_exec_prefix="$exec_prefix"
  9475. exec_prefix="$acl_final_exec_prefix"
  9476. eval x=\"$x\"
  9477. exec_prefix="$acl_save_exec_prefix"
  9478. prefix="$acl_save_prefix"
  9479. if test "X$x" = "X-L$found_dir"; then
  9480. haveit=yes
  9481. break
  9482. fi
  9483. done
  9484. if test -z "$haveit"; then
  9485. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9486. fi
  9487. if test "$hardcode_minus_L" != no; then
  9488. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9489. else
  9490. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9491. fi
  9492. fi
  9493. fi
  9494. fi
  9495. else
  9496. if test "X$found_a" != "X"; then
  9497. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9498. else
  9499. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9500. fi
  9501. fi
  9502. additional_includedir=
  9503. case "$found_dir" in
  9504. */lib | */lib/)
  9505. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9506. additional_includedir="$basedir/include"
  9507. ;;
  9508. esac
  9509. if test "X$additional_includedir" != "X"; then
  9510. if test "X$additional_includedir" != "X/usr/include"; then
  9511. haveit=
  9512. if test "X$additional_includedir" = "X/usr/local/include"; then
  9513. if test -n "$GCC"; then
  9514. case $host_os in
  9515. linux*) haveit=yes;;
  9516. esac
  9517. fi
  9518. fi
  9519. if test -z "$haveit"; then
  9520. for x in $CPPFLAGS $INCINTL; do
  9521. acl_save_prefix="$prefix"
  9522. prefix="$acl_final_prefix"
  9523. acl_save_exec_prefix="$exec_prefix"
  9524. exec_prefix="$acl_final_exec_prefix"
  9525. eval x=\"$x\"
  9526. exec_prefix="$acl_save_exec_prefix"
  9527. prefix="$acl_save_prefix"
  9528. if test "X$x" = "X-I$additional_includedir"; then
  9529. haveit=yes
  9530. break
  9531. fi
  9532. done
  9533. if test -z "$haveit"; then
  9534. if test -d "$additional_includedir"; then
  9535. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9536. fi
  9537. fi
  9538. fi
  9539. fi
  9540. fi
  9541. if test -n "$found_la"; then
  9542. save_libdir="$libdir"
  9543. case "$found_la" in
  9544. */* | *\\*) . "$found_la" ;;
  9545. *) . "./$found_la" ;;
  9546. esac
  9547. libdir="$save_libdir"
  9548. for dep in $dependency_libs; do
  9549. case "$dep" in
  9550. -L*)
  9551. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9552. if test "X$additional_libdir" != "X/usr/lib"; then
  9553. haveit=
  9554. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9555. if test -n "$GCC"; then
  9556. case $host_os in
  9557. linux*) haveit=yes;;
  9558. esac
  9559. fi
  9560. fi
  9561. if test -z "$haveit"; then
  9562. haveit=
  9563. for x in $LDFLAGS $LIBINTL; do
  9564. acl_save_prefix="$prefix"
  9565. prefix="$acl_final_prefix"
  9566. acl_save_exec_prefix="$exec_prefix"
  9567. exec_prefix="$acl_final_exec_prefix"
  9568. eval x=\"$x\"
  9569. exec_prefix="$acl_save_exec_prefix"
  9570. prefix="$acl_save_prefix"
  9571. if test "X$x" = "X-L$additional_libdir"; then
  9572. haveit=yes
  9573. break
  9574. fi
  9575. done
  9576. if test -z "$haveit"; then
  9577. if test -d "$additional_libdir"; then
  9578. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9579. fi
  9580. fi
  9581. haveit=
  9582. for x in $LDFLAGS $LTLIBINTL; do
  9583. acl_save_prefix="$prefix"
  9584. prefix="$acl_final_prefix"
  9585. acl_save_exec_prefix="$exec_prefix"
  9586. exec_prefix="$acl_final_exec_prefix"
  9587. eval x=\"$x\"
  9588. exec_prefix="$acl_save_exec_prefix"
  9589. prefix="$acl_save_prefix"
  9590. if test "X$x" = "X-L$additional_libdir"; then
  9591. haveit=yes
  9592. break
  9593. fi
  9594. done
  9595. if test -z "$haveit"; then
  9596. if test -d "$additional_libdir"; then
  9597. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9598. fi
  9599. fi
  9600. fi
  9601. fi
  9602. ;;
  9603. -R*)
  9604. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9605. if test "$enable_rpath" != no; then
  9606. haveit=
  9607. for x in $rpathdirs; do
  9608. if test "X$x" = "X$dir"; then
  9609. haveit=yes
  9610. break
  9611. fi
  9612. done
  9613. if test -z "$haveit"; then
  9614. rpathdirs="$rpathdirs $dir"
  9615. fi
  9616. haveit=
  9617. for x in $ltrpathdirs; do
  9618. if test "X$x" = "X$dir"; then
  9619. haveit=yes
  9620. break
  9621. fi
  9622. done
  9623. if test -z "$haveit"; then
  9624. ltrpathdirs="$ltrpathdirs $dir"
  9625. fi
  9626. fi
  9627. ;;
  9628. -l*)
  9629. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9630. ;;
  9631. *.la)
  9632. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9633. ;;
  9634. *)
  9635. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9636. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9637. ;;
  9638. esac
  9639. done
  9640. fi
  9641. else
  9642. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9643. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9644. fi
  9645. fi
  9646. fi
  9647. done
  9648. done
  9649. if test "X$rpathdirs" != "X"; then
  9650. if test -n "$hardcode_libdir_separator"; then
  9651. alldirs=
  9652. for found_dir in $rpathdirs; do
  9653. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9654. done
  9655. acl_save_libdir="$libdir"
  9656. libdir="$alldirs"
  9657. eval flag=\"$hardcode_libdir_flag_spec\"
  9658. libdir="$acl_save_libdir"
  9659. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9660. else
  9661. for found_dir in $rpathdirs; do
  9662. acl_save_libdir="$libdir"
  9663. libdir="$found_dir"
  9664. eval flag=\"$hardcode_libdir_flag_spec\"
  9665. libdir="$acl_save_libdir"
  9666. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9667. done
  9668. fi
  9669. fi
  9670. if test "X$ltrpathdirs" != "X"; then
  9671. for found_dir in $ltrpathdirs; do
  9672. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9673. done
  9674. fi
  9675. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9676. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9677. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9678. echo $ECHO_N "(cached) $ECHO_C" >&6
  9679. else
  9680. gt_save_CPPFLAGS="$CPPFLAGS"
  9681. CPPFLAGS="$CPPFLAGS $INCINTL"
  9682. gt_save_LIBS="$LIBS"
  9683. LIBS="$LIBS $LIBINTL"
  9684. cat >conftest.$ac_ext <<_ACEOF
  9685. /* confdefs.h. */
  9686. _ACEOF
  9687. cat confdefs.h >>conftest.$ac_ext
  9688. cat >>conftest.$ac_ext <<_ACEOF
  9689. /* end confdefs.h. */
  9690. #include <libintl.h>
  9691. extern int _nl_msg_cat_cntr;
  9692. extern
  9693. #ifdef __cplusplus
  9694. "C"
  9695. #endif
  9696. const char *_nl_expand_alias ();
  9697. int
  9698. main ()
  9699. {
  9700. bindtextdomain ("", "");
  9701. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9702. ;
  9703. return 0;
  9704. }
  9705. _ACEOF
  9706. rm -f conftest.$ac_objext conftest$ac_exeext
  9707. if { (ac_try="$ac_link"
  9708. case "(($ac_try" in
  9709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9710. *) ac_try_echo=$ac_try;;
  9711. esac
  9712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9713. (eval "$ac_link") 2>conftest.er1
  9714. ac_status=$?
  9715. grep -v '^ *+' conftest.er1 >conftest.err
  9716. rm -f conftest.er1
  9717. cat conftest.err >&5
  9718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9719. (exit $ac_status); } && {
  9720. test -z "$ac_cxx_werror_flag" ||
  9721. test ! -s conftest.err
  9722. } && test -s conftest$ac_exeext &&
  9723. $as_test_x conftest$ac_exeext; then
  9724. gt_cv_func_gnugettext1_libintl=yes
  9725. else
  9726. echo "$as_me: failed program was:" >&5
  9727. sed 's/^/| /' conftest.$ac_ext >&5
  9728. gt_cv_func_gnugettext1_libintl=no
  9729. fi
  9730. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9731. conftest$ac_exeext conftest.$ac_ext
  9732. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9733. LIBS="$LIBS $LIBICONV"
  9734. cat >conftest.$ac_ext <<_ACEOF
  9735. /* confdefs.h. */
  9736. _ACEOF
  9737. cat confdefs.h >>conftest.$ac_ext
  9738. cat >>conftest.$ac_ext <<_ACEOF
  9739. /* end confdefs.h. */
  9740. #include <libintl.h>
  9741. extern int _nl_msg_cat_cntr;
  9742. extern
  9743. #ifdef __cplusplus
  9744. "C"
  9745. #endif
  9746. const char *_nl_expand_alias ();
  9747. int
  9748. main ()
  9749. {
  9750. bindtextdomain ("", "");
  9751. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9752. ;
  9753. return 0;
  9754. }
  9755. _ACEOF
  9756. rm -f conftest.$ac_objext conftest$ac_exeext
  9757. if { (ac_try="$ac_link"
  9758. case "(($ac_try" in
  9759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9760. *) ac_try_echo=$ac_try;;
  9761. esac
  9762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9763. (eval "$ac_link") 2>conftest.er1
  9764. ac_status=$?
  9765. grep -v '^ *+' conftest.er1 >conftest.err
  9766. rm -f conftest.er1
  9767. cat conftest.err >&5
  9768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9769. (exit $ac_status); } && {
  9770. test -z "$ac_cxx_werror_flag" ||
  9771. test ! -s conftest.err
  9772. } && test -s conftest$ac_exeext &&
  9773. $as_test_x conftest$ac_exeext; then
  9774. LIBINTL="$LIBINTL $LIBICONV"
  9775. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9776. gt_cv_func_gnugettext1_libintl=yes
  9777. else
  9778. echo "$as_me: failed program was:" >&5
  9779. sed 's/^/| /' conftest.$ac_ext >&5
  9780. fi
  9781. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9782. conftest$ac_exeext conftest.$ac_ext
  9783. fi
  9784. CPPFLAGS="$gt_save_CPPFLAGS"
  9785. LIBS="$gt_save_LIBS"
  9786. fi
  9787. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9788. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9789. fi
  9790. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9791. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9792. && test "$PACKAGE" != gettext-runtime \
  9793. && test "$PACKAGE" != gettext-tools; }; then
  9794. gt_use_preinstalled_gnugettext=yes
  9795. else
  9796. LIBINTL=
  9797. LTLIBINTL=
  9798. INCINTL=
  9799. fi
  9800. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9801. nls_cv_use_gnu_gettext=yes
  9802. fi
  9803. fi
  9804. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9805. BUILD_INCLUDED_LIBINTL=yes
  9806. USE_INCLUDED_LIBINTL=yes
  9807. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9808. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9809. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9810. fi
  9811. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9812. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9813. CATOBJEXT=.gmo
  9814. fi
  9815. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9816. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9817. cat >>confdefs.h <<\_ACEOF
  9818. #define ENABLE_NLS 1
  9819. _ACEOF
  9820. else
  9821. USE_NLS=no
  9822. fi
  9823. fi
  9824. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9825. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9826. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9827. echo "${ECHO_T}$USE_NLS" >&6; }
  9828. if test "$USE_NLS" = "yes"; then
  9829. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9830. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9831. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9832. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9833. gt_source="external libintl"
  9834. else
  9835. gt_source="libc"
  9836. fi
  9837. else
  9838. gt_source="included intl directory"
  9839. fi
  9840. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9841. echo "${ECHO_T}$gt_source" >&6; }
  9842. fi
  9843. if test "$USE_NLS" = "yes"; then
  9844. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9845. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9846. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9847. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9848. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9849. echo "${ECHO_T}$LIBINTL" >&6; }
  9850. for element in $INCINTL; do
  9851. haveit=
  9852. for x in $CPPFLAGS; do
  9853. acl_save_prefix="$prefix"
  9854. prefix="$acl_final_prefix"
  9855. acl_save_exec_prefix="$exec_prefix"
  9856. exec_prefix="$acl_final_exec_prefix"
  9857. eval x=\"$x\"
  9858. exec_prefix="$acl_save_exec_prefix"
  9859. prefix="$acl_save_prefix"
  9860. if test "X$x" = "X$element"; then
  9861. haveit=yes
  9862. break
  9863. fi
  9864. done
  9865. if test -z "$haveit"; then
  9866. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9867. fi
  9868. done
  9869. fi
  9870. cat >>confdefs.h <<\_ACEOF
  9871. #define HAVE_GETTEXT 1
  9872. _ACEOF
  9873. cat >>confdefs.h <<\_ACEOF
  9874. #define HAVE_DCGETTEXT 1
  9875. _ACEOF
  9876. fi
  9877. POSUB=po
  9878. fi
  9879. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9880. BUILD_INCLUDED_LIBINTL=yes
  9881. fi
  9882. nls_cv_header_intl=
  9883. nls_cv_header_libgt=
  9884. DATADIRNAME=share
  9885. INSTOBJEXT=.mo
  9886. GENCAT=gencat
  9887. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9888. INTLOBJS="\$(GETTOBJS)"
  9889. fi
  9890. INTL_LIBTOOL_SUFFIX_PREFIX=
  9891. INTLLIBS="$LIBINTL"
  9892. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9893. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9894. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9895. echo $ECHO_N "(cached) $ECHO_C" >&6
  9896. else
  9897. cat >conftest.$ac_ext <<_ACEOF
  9898. /* confdefs.h. */
  9899. _ACEOF
  9900. cat confdefs.h >>conftest.$ac_ext
  9901. cat >>conftest.$ac_ext <<_ACEOF
  9902. /* end confdefs.h. */
  9903. #include <error.h>
  9904. int
  9905. main ()
  9906. {
  9907. error_at_line (0, 0, "", 0, "an error occurred");
  9908. ;
  9909. return 0;
  9910. }
  9911. _ACEOF
  9912. rm -f conftest.$ac_objext conftest$ac_exeext
  9913. if { (ac_try="$ac_link"
  9914. case "(($ac_try" in
  9915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9916. *) ac_try_echo=$ac_try;;
  9917. esac
  9918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9919. (eval "$ac_link") 2>conftest.er1
  9920. ac_status=$?
  9921. grep -v '^ *+' conftest.er1 >conftest.err
  9922. rm -f conftest.er1
  9923. cat conftest.err >&5
  9924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9925. (exit $ac_status); } && {
  9926. test -z "$ac_cxx_werror_flag" ||
  9927. test ! -s conftest.err
  9928. } && test -s conftest$ac_exeext &&
  9929. $as_test_x conftest$ac_exeext; then
  9930. ac_cv_lib_error_at_line=yes
  9931. else
  9932. echo "$as_me: failed program was:" >&5
  9933. sed 's/^/| /' conftest.$ac_ext >&5
  9934. ac_cv_lib_error_at_line=no
  9935. fi
  9936. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9937. conftest$ac_exeext conftest.$ac_ext
  9938. fi
  9939. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9940. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9941. if test $ac_cv_lib_error_at_line = no; then
  9942. case " $LIBOBJS " in
  9943. *" error.$ac_objext "* ) ;;
  9944. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9945. ;;
  9946. esac
  9947. fi
  9948. case "$target" in
  9949. *mingw*)
  9950. ;;
  9951. *)
  9952. for ac_header in stdlib.h
  9953. do
  9954. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9955. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9956. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9957. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9958. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9959. echo $ECHO_N "(cached) $ECHO_C" >&6
  9960. fi
  9961. ac_res=`eval echo '${'$as_ac_Header'}'`
  9962. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9963. echo "${ECHO_T}$ac_res" >&6; }
  9964. else
  9965. # Is the header compilable?
  9966. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9967. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  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. $ac_includes_default
  9975. #include <$ac_header>
  9976. _ACEOF
  9977. rm -f conftest.$ac_objext
  9978. if { (ac_try="$ac_compile"
  9979. case "(($ac_try" in
  9980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9981. *) ac_try_echo=$ac_try;;
  9982. esac
  9983. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9984. (eval "$ac_compile") 2>conftest.er1
  9985. ac_status=$?
  9986. grep -v '^ *+' conftest.er1 >conftest.err
  9987. rm -f conftest.er1
  9988. cat conftest.err >&5
  9989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9990. (exit $ac_status); } && {
  9991. test -z "$ac_cxx_werror_flag" ||
  9992. test ! -s conftest.err
  9993. } && test -s conftest.$ac_objext; then
  9994. ac_header_compiler=yes
  9995. else
  9996. echo "$as_me: failed program was:" >&5
  9997. sed 's/^/| /' conftest.$ac_ext >&5
  9998. ac_header_compiler=no
  9999. fi
  10000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10001. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10002. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10003. # Is the header present?
  10004. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10005. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10006. cat >conftest.$ac_ext <<_ACEOF
  10007. /* confdefs.h. */
  10008. _ACEOF
  10009. cat confdefs.h >>conftest.$ac_ext
  10010. cat >>conftest.$ac_ext <<_ACEOF
  10011. /* end confdefs.h. */
  10012. #include <$ac_header>
  10013. _ACEOF
  10014. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10015. case "(($ac_try" in
  10016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10017. *) ac_try_echo=$ac_try;;
  10018. esac
  10019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10021. ac_status=$?
  10022. grep -v '^ *+' conftest.er1 >conftest.err
  10023. rm -f conftest.er1
  10024. cat conftest.err >&5
  10025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10026. (exit $ac_status); } >/dev/null && {
  10027. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10028. test ! -s conftest.err
  10029. }; then
  10030. ac_header_preproc=yes
  10031. else
  10032. echo "$as_me: failed program was:" >&5
  10033. sed 's/^/| /' conftest.$ac_ext >&5
  10034. ac_header_preproc=no
  10035. fi
  10036. rm -f conftest.err conftest.$ac_ext
  10037. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10038. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10039. # So? What about this header?
  10040. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10041. yes:no: )
  10042. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10043. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10044. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10045. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10046. ac_header_preproc=yes
  10047. ;;
  10048. no:yes:* )
  10049. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10050. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10051. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10052. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10053. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10054. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10055. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10056. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10057. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10058. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10059. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10060. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10061. ( cat <<\_ASBOX
  10062. ## ----------------------------------------------- ##
  10063. ## Report this to t-tujikawa@users.sourceforge.net ##
  10064. ## ----------------------------------------------- ##
  10065. _ASBOX
  10066. ) | sed "s/^/$as_me: WARNING: /" >&2
  10067. ;;
  10068. esac
  10069. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10070. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10071. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10072. echo $ECHO_N "(cached) $ECHO_C" >&6
  10073. else
  10074. eval "$as_ac_Header=\$ac_header_preproc"
  10075. fi
  10076. ac_res=`eval echo '${'$as_ac_Header'}'`
  10077. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10078. echo "${ECHO_T}$ac_res" >&6; }
  10079. fi
  10080. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10081. cat >>confdefs.h <<_ACEOF
  10082. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10083. _ACEOF
  10084. fi
  10085. done
  10086. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  10087. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  10088. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  10089. echo $ECHO_N "(cached) $ECHO_C" >&6
  10090. else
  10091. if test "$cross_compiling" = yes; then
  10092. ac_cv_func_malloc_0_nonnull=no
  10093. else
  10094. cat >conftest.$ac_ext <<_ACEOF
  10095. /* confdefs.h. */
  10096. _ACEOF
  10097. cat confdefs.h >>conftest.$ac_ext
  10098. cat >>conftest.$ac_ext <<_ACEOF
  10099. /* end confdefs.h. */
  10100. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10101. # include <stdlib.h>
  10102. #else
  10103. char *malloc ();
  10104. #endif
  10105. int
  10106. main ()
  10107. {
  10108. return ! malloc (0);
  10109. ;
  10110. return 0;
  10111. }
  10112. _ACEOF
  10113. rm -f conftest$ac_exeext
  10114. if { (ac_try="$ac_link"
  10115. case "(($ac_try" in
  10116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10117. *) ac_try_echo=$ac_try;;
  10118. esac
  10119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10120. (eval "$ac_link") 2>&5
  10121. ac_status=$?
  10122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10123. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10124. { (case "(($ac_try" in
  10125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10126. *) ac_try_echo=$ac_try;;
  10127. esac
  10128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10129. (eval "$ac_try") 2>&5
  10130. ac_status=$?
  10131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10132. (exit $ac_status); }; }; then
  10133. ac_cv_func_malloc_0_nonnull=yes
  10134. else
  10135. echo "$as_me: program exited with status $ac_status" >&5
  10136. echo "$as_me: failed program was:" >&5
  10137. sed 's/^/| /' conftest.$ac_ext >&5
  10138. ( exit $ac_status )
  10139. ac_cv_func_malloc_0_nonnull=no
  10140. fi
  10141. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10142. fi
  10143. fi
  10144. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  10145. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  10146. if test $ac_cv_func_malloc_0_nonnull = yes; then
  10147. cat >>confdefs.h <<\_ACEOF
  10148. #define HAVE_MALLOC 1
  10149. _ACEOF
  10150. else
  10151. cat >>confdefs.h <<\_ACEOF
  10152. #define HAVE_MALLOC 0
  10153. _ACEOF
  10154. case " $LIBOBJS " in
  10155. *" malloc.$ac_objext "* ) ;;
  10156. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  10157. ;;
  10158. esac
  10159. cat >>confdefs.h <<\_ACEOF
  10160. #define malloc rpl_malloc
  10161. _ACEOF
  10162. fi
  10163. for ac_header in stdlib.h
  10164. do
  10165. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10166. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10167. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10168. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10169. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10170. echo $ECHO_N "(cached) $ECHO_C" >&6
  10171. fi
  10172. ac_res=`eval echo '${'$as_ac_Header'}'`
  10173. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10174. echo "${ECHO_T}$ac_res" >&6; }
  10175. else
  10176. # Is the header compilable?
  10177. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10178. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10179. cat >conftest.$ac_ext <<_ACEOF
  10180. /* confdefs.h. */
  10181. _ACEOF
  10182. cat confdefs.h >>conftest.$ac_ext
  10183. cat >>conftest.$ac_ext <<_ACEOF
  10184. /* end confdefs.h. */
  10185. $ac_includes_default
  10186. #include <$ac_header>
  10187. _ACEOF
  10188. rm -f conftest.$ac_objext
  10189. if { (ac_try="$ac_compile"
  10190. case "(($ac_try" in
  10191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10192. *) ac_try_echo=$ac_try;;
  10193. esac
  10194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10195. (eval "$ac_compile") 2>conftest.er1
  10196. ac_status=$?
  10197. grep -v '^ *+' conftest.er1 >conftest.err
  10198. rm -f conftest.er1
  10199. cat conftest.err >&5
  10200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10201. (exit $ac_status); } && {
  10202. test -z "$ac_cxx_werror_flag" ||
  10203. test ! -s conftest.err
  10204. } && test -s conftest.$ac_objext; then
  10205. ac_header_compiler=yes
  10206. else
  10207. echo "$as_me: failed program was:" >&5
  10208. sed 's/^/| /' conftest.$ac_ext >&5
  10209. ac_header_compiler=no
  10210. fi
  10211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10212. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10213. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10214. # Is the header present?
  10215. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10216. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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. #include <$ac_header>
  10224. _ACEOF
  10225. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10226. case "(($ac_try" in
  10227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10228. *) ac_try_echo=$ac_try;;
  10229. esac
  10230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10231. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10232. ac_status=$?
  10233. grep -v '^ *+' conftest.er1 >conftest.err
  10234. rm -f conftest.er1
  10235. cat conftest.err >&5
  10236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10237. (exit $ac_status); } >/dev/null && {
  10238. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10239. test ! -s conftest.err
  10240. }; then
  10241. ac_header_preproc=yes
  10242. else
  10243. echo "$as_me: failed program was:" >&5
  10244. sed 's/^/| /' conftest.$ac_ext >&5
  10245. ac_header_preproc=no
  10246. fi
  10247. rm -f conftest.err conftest.$ac_ext
  10248. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10249. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10250. # So? What about this header?
  10251. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10252. yes:no: )
  10253. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10254. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10255. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10256. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10257. ac_header_preproc=yes
  10258. ;;
  10259. no:yes:* )
  10260. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10261. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10262. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10263. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10264. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10265. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10266. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10267. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10268. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10269. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10270. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10271. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10272. ( cat <<\_ASBOX
  10273. ## ----------------------------------------------- ##
  10274. ## Report this to t-tujikawa@users.sourceforge.net ##
  10275. ## ----------------------------------------------- ##
  10276. _ASBOX
  10277. ) | sed "s/^/$as_me: WARNING: /" >&2
  10278. ;;
  10279. esac
  10280. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10281. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10282. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10283. echo $ECHO_N "(cached) $ECHO_C" >&6
  10284. else
  10285. eval "$as_ac_Header=\$ac_header_preproc"
  10286. fi
  10287. ac_res=`eval echo '${'$as_ac_Header'}'`
  10288. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10289. echo "${ECHO_T}$ac_res" >&6; }
  10290. fi
  10291. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10292. cat >>confdefs.h <<_ACEOF
  10293. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10294. _ACEOF
  10295. fi
  10296. done
  10297. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10298. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10299. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10300. echo $ECHO_N "(cached) $ECHO_C" >&6
  10301. else
  10302. if test "$cross_compiling" = yes; then
  10303. ac_cv_func_realloc_0_nonnull=no
  10304. else
  10305. cat >conftest.$ac_ext <<_ACEOF
  10306. /* confdefs.h. */
  10307. _ACEOF
  10308. cat confdefs.h >>conftest.$ac_ext
  10309. cat >>conftest.$ac_ext <<_ACEOF
  10310. /* end confdefs.h. */
  10311. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10312. # include <stdlib.h>
  10313. #else
  10314. char *realloc ();
  10315. #endif
  10316. int
  10317. main ()
  10318. {
  10319. return ! realloc (0, 0);
  10320. ;
  10321. return 0;
  10322. }
  10323. _ACEOF
  10324. rm -f conftest$ac_exeext
  10325. if { (ac_try="$ac_link"
  10326. case "(($ac_try" in
  10327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10328. *) ac_try_echo=$ac_try;;
  10329. esac
  10330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10331. (eval "$ac_link") 2>&5
  10332. ac_status=$?
  10333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10335. { (case "(($ac_try" in
  10336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10337. *) ac_try_echo=$ac_try;;
  10338. esac
  10339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10340. (eval "$ac_try") 2>&5
  10341. ac_status=$?
  10342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10343. (exit $ac_status); }; }; then
  10344. ac_cv_func_realloc_0_nonnull=yes
  10345. else
  10346. echo "$as_me: program exited with status $ac_status" >&5
  10347. echo "$as_me: failed program was:" >&5
  10348. sed 's/^/| /' conftest.$ac_ext >&5
  10349. ( exit $ac_status )
  10350. ac_cv_func_realloc_0_nonnull=no
  10351. fi
  10352. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10353. fi
  10354. fi
  10355. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10356. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10357. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10358. cat >>confdefs.h <<\_ACEOF
  10359. #define HAVE_REALLOC 1
  10360. _ACEOF
  10361. else
  10362. cat >>confdefs.h <<\_ACEOF
  10363. #define HAVE_REALLOC 0
  10364. _ACEOF
  10365. case " $LIBOBJS " in
  10366. *" realloc.$ac_objext "* ) ;;
  10367. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10368. ;;
  10369. esac
  10370. cat >>confdefs.h <<\_ACEOF
  10371. #define realloc rpl_realloc
  10372. _ACEOF
  10373. fi
  10374. ;;
  10375. esac
  10376. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10377. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10378. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10379. echo $ECHO_N "(cached) $ECHO_C" >&6
  10380. else
  10381. if test "$cross_compiling" = yes; then
  10382. ac_cv_func_memcmp_working=no
  10383. else
  10384. cat >conftest.$ac_ext <<_ACEOF
  10385. /* confdefs.h. */
  10386. _ACEOF
  10387. cat confdefs.h >>conftest.$ac_ext
  10388. cat >>conftest.$ac_ext <<_ACEOF
  10389. /* end confdefs.h. */
  10390. $ac_includes_default
  10391. int
  10392. main ()
  10393. {
  10394. /* Some versions of memcmp are not 8-bit clean. */
  10395. char c0 = '\100', c1 = '\200', c2 = '\201';
  10396. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10397. return 1;
  10398. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10399. or more and with at least one buffer not starting on a 4-byte boundary.
  10400. William Lewis provided this test program. */
  10401. {
  10402. char foo[21];
  10403. char bar[21];
  10404. int i;
  10405. for (i = 0; i < 4; i++)
  10406. {
  10407. char *a = foo + i;
  10408. char *b = bar + i;
  10409. strcpy (a, "--------01111111");
  10410. strcpy (b, "--------10000000");
  10411. if (memcmp (a, b, 16) >= 0)
  10412. return 1;
  10413. }
  10414. return 0;
  10415. }
  10416. ;
  10417. return 0;
  10418. }
  10419. _ACEOF
  10420. rm -f conftest$ac_exeext
  10421. if { (ac_try="$ac_link"
  10422. case "(($ac_try" in
  10423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10424. *) ac_try_echo=$ac_try;;
  10425. esac
  10426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10427. (eval "$ac_link") 2>&5
  10428. ac_status=$?
  10429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10430. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10431. { (case "(($ac_try" in
  10432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10433. *) ac_try_echo=$ac_try;;
  10434. esac
  10435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10436. (eval "$ac_try") 2>&5
  10437. ac_status=$?
  10438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10439. (exit $ac_status); }; }; then
  10440. ac_cv_func_memcmp_working=yes
  10441. else
  10442. echo "$as_me: program exited with status $ac_status" >&5
  10443. echo "$as_me: failed program was:" >&5
  10444. sed 's/^/| /' conftest.$ac_ext >&5
  10445. ( exit $ac_status )
  10446. ac_cv_func_memcmp_working=no
  10447. fi
  10448. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10449. fi
  10450. fi
  10451. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10452. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10453. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10454. *" memcmp.$ac_objext "* ) ;;
  10455. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10456. ;;
  10457. esac
  10458. for ac_header in stdlib.h unistd.h
  10459. do
  10460. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10461. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10462. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10463. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10464. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10465. echo $ECHO_N "(cached) $ECHO_C" >&6
  10466. fi
  10467. ac_res=`eval echo '${'$as_ac_Header'}'`
  10468. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10469. echo "${ECHO_T}$ac_res" >&6; }
  10470. else
  10471. # Is the header compilable?
  10472. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10473. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10474. cat >conftest.$ac_ext <<_ACEOF
  10475. /* confdefs.h. */
  10476. _ACEOF
  10477. cat confdefs.h >>conftest.$ac_ext
  10478. cat >>conftest.$ac_ext <<_ACEOF
  10479. /* end confdefs.h. */
  10480. $ac_includes_default
  10481. #include <$ac_header>
  10482. _ACEOF
  10483. rm -f conftest.$ac_objext
  10484. if { (ac_try="$ac_compile"
  10485. case "(($ac_try" in
  10486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10487. *) ac_try_echo=$ac_try;;
  10488. esac
  10489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10490. (eval "$ac_compile") 2>conftest.er1
  10491. ac_status=$?
  10492. grep -v '^ *+' conftest.er1 >conftest.err
  10493. rm -f conftest.er1
  10494. cat conftest.err >&5
  10495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10496. (exit $ac_status); } && {
  10497. test -z "$ac_cxx_werror_flag" ||
  10498. test ! -s conftest.err
  10499. } && test -s conftest.$ac_objext; then
  10500. ac_header_compiler=yes
  10501. else
  10502. echo "$as_me: failed program was:" >&5
  10503. sed 's/^/| /' conftest.$ac_ext >&5
  10504. ac_header_compiler=no
  10505. fi
  10506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10507. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10508. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10509. # Is the header present?
  10510. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10511. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10512. cat >conftest.$ac_ext <<_ACEOF
  10513. /* confdefs.h. */
  10514. _ACEOF
  10515. cat confdefs.h >>conftest.$ac_ext
  10516. cat >>conftest.$ac_ext <<_ACEOF
  10517. /* end confdefs.h. */
  10518. #include <$ac_header>
  10519. _ACEOF
  10520. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10521. case "(($ac_try" in
  10522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10523. *) ac_try_echo=$ac_try;;
  10524. esac
  10525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10526. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10527. ac_status=$?
  10528. grep -v '^ *+' conftest.er1 >conftest.err
  10529. rm -f conftest.er1
  10530. cat conftest.err >&5
  10531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10532. (exit $ac_status); } >/dev/null && {
  10533. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10534. test ! -s conftest.err
  10535. }; then
  10536. ac_header_preproc=yes
  10537. else
  10538. echo "$as_me: failed program was:" >&5
  10539. sed 's/^/| /' conftest.$ac_ext >&5
  10540. ac_header_preproc=no
  10541. fi
  10542. rm -f conftest.err conftest.$ac_ext
  10543. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10544. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10545. # So? What about this header?
  10546. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10547. yes:no: )
  10548. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10549. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10550. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10551. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10552. ac_header_preproc=yes
  10553. ;;
  10554. no:yes:* )
  10555. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10556. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10557. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10558. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10559. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10560. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10561. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10562. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10563. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10564. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10565. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10566. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10567. ( cat <<\_ASBOX
  10568. ## ----------------------------------------------- ##
  10569. ## Report this to t-tujikawa@users.sourceforge.net ##
  10570. ## ----------------------------------------------- ##
  10571. _ASBOX
  10572. ) | sed "s/^/$as_me: WARNING: /" >&2
  10573. ;;
  10574. esac
  10575. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10576. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10577. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10578. echo $ECHO_N "(cached) $ECHO_C" >&6
  10579. else
  10580. eval "$as_ac_Header=\$ac_header_preproc"
  10581. fi
  10582. ac_res=`eval echo '${'$as_ac_Header'}'`
  10583. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10584. echo "${ECHO_T}$ac_res" >&6; }
  10585. fi
  10586. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10587. cat >>confdefs.h <<_ACEOF
  10588. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10589. _ACEOF
  10590. fi
  10591. done
  10592. for ac_func in getpagesize
  10593. do
  10594. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10595. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10596. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10597. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10598. echo $ECHO_N "(cached) $ECHO_C" >&6
  10599. else
  10600. cat >conftest.$ac_ext <<_ACEOF
  10601. /* confdefs.h. */
  10602. _ACEOF
  10603. cat confdefs.h >>conftest.$ac_ext
  10604. cat >>conftest.$ac_ext <<_ACEOF
  10605. /* end confdefs.h. */
  10606. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10607. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10608. #define $ac_func innocuous_$ac_func
  10609. /* System header to define __stub macros and hopefully few prototypes,
  10610. which can conflict with char $ac_func (); below.
  10611. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10612. <limits.h> exists even on freestanding compilers. */
  10613. #ifdef __STDC__
  10614. # include <limits.h>
  10615. #else
  10616. # include <assert.h>
  10617. #endif
  10618. #undef $ac_func
  10619. /* Override any GCC internal prototype to avoid an error.
  10620. Use char because int might match the return type of a GCC
  10621. builtin and then its argument prototype would still apply. */
  10622. #ifdef __cplusplus
  10623. extern "C"
  10624. #endif
  10625. char $ac_func ();
  10626. /* The GNU C library defines this for functions which it implements
  10627. to always fail with ENOSYS. Some functions are actually named
  10628. something starting with __ and the normal name is an alias. */
  10629. #if defined __stub_$ac_func || defined __stub___$ac_func
  10630. choke me
  10631. #endif
  10632. int
  10633. main ()
  10634. {
  10635. return $ac_func ();
  10636. ;
  10637. return 0;
  10638. }
  10639. _ACEOF
  10640. rm -f conftest.$ac_objext conftest$ac_exeext
  10641. if { (ac_try="$ac_link"
  10642. case "(($ac_try" in
  10643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10644. *) ac_try_echo=$ac_try;;
  10645. esac
  10646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10647. (eval "$ac_link") 2>conftest.er1
  10648. ac_status=$?
  10649. grep -v '^ *+' conftest.er1 >conftest.err
  10650. rm -f conftest.er1
  10651. cat conftest.err >&5
  10652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10653. (exit $ac_status); } && {
  10654. test -z "$ac_cxx_werror_flag" ||
  10655. test ! -s conftest.err
  10656. } && test -s conftest$ac_exeext &&
  10657. $as_test_x conftest$ac_exeext; then
  10658. eval "$as_ac_var=yes"
  10659. else
  10660. echo "$as_me: failed program was:" >&5
  10661. sed 's/^/| /' conftest.$ac_ext >&5
  10662. eval "$as_ac_var=no"
  10663. fi
  10664. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10665. conftest$ac_exeext conftest.$ac_ext
  10666. fi
  10667. ac_res=`eval echo '${'$as_ac_var'}'`
  10668. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10669. echo "${ECHO_T}$ac_res" >&6; }
  10670. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10671. cat >>confdefs.h <<_ACEOF
  10672. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10673. _ACEOF
  10674. fi
  10675. done
  10676. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10677. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10678. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10679. echo $ECHO_N "(cached) $ECHO_C" >&6
  10680. else
  10681. if test "$cross_compiling" = yes; then
  10682. ac_cv_func_mmap_fixed_mapped=no
  10683. else
  10684. cat >conftest.$ac_ext <<_ACEOF
  10685. /* confdefs.h. */
  10686. _ACEOF
  10687. cat confdefs.h >>conftest.$ac_ext
  10688. cat >>conftest.$ac_ext <<_ACEOF
  10689. /* end confdefs.h. */
  10690. $ac_includes_default
  10691. /* malloc might have been renamed as rpl_malloc. */
  10692. #undef malloc
  10693. /* Thanks to Mike Haertel and Jim Avera for this test.
  10694. Here is a matrix of mmap possibilities:
  10695. mmap private not fixed
  10696. mmap private fixed at somewhere currently unmapped
  10697. mmap private fixed at somewhere already mapped
  10698. mmap shared not fixed
  10699. mmap shared fixed at somewhere currently unmapped
  10700. mmap shared fixed at somewhere already mapped
  10701. For private mappings, we should verify that changes cannot be read()
  10702. back from the file, nor mmap's back from the file at a different
  10703. address. (There have been systems where private was not correctly
  10704. implemented like the infamous i386 svr4.0, and systems where the
  10705. VM page cache was not coherent with the file system buffer cache
  10706. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10707. For shared mappings, we should conversely verify that changes get
  10708. propagated back to all the places they're supposed to be.
  10709. Grep wants private fixed already mapped.
  10710. The main things grep needs to know about mmap are:
  10711. * does it exist and is it safe to write into the mmap'd area
  10712. * how to use it (BSD variants) */
  10713. #include <fcntl.h>
  10714. #include <sys/mman.h>
  10715. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10716. char *malloc ();
  10717. #endif
  10718. /* This mess was copied from the GNU getpagesize.h. */
  10719. #ifndef HAVE_GETPAGESIZE
  10720. /* Assume that all systems that can run configure have sys/param.h. */
  10721. # ifndef HAVE_SYS_PARAM_H
  10722. # define HAVE_SYS_PARAM_H 1
  10723. # endif
  10724. # ifdef _SC_PAGESIZE
  10725. # define getpagesize() sysconf(_SC_PAGESIZE)
  10726. # else /* no _SC_PAGESIZE */
  10727. # ifdef HAVE_SYS_PARAM_H
  10728. # include <sys/param.h>
  10729. # ifdef EXEC_PAGESIZE
  10730. # define getpagesize() EXEC_PAGESIZE
  10731. # else /* no EXEC_PAGESIZE */
  10732. # ifdef NBPG
  10733. # define getpagesize() NBPG * CLSIZE
  10734. # ifndef CLSIZE
  10735. # define CLSIZE 1
  10736. # endif /* no CLSIZE */
  10737. # else /* no NBPG */
  10738. # ifdef NBPC
  10739. # define getpagesize() NBPC
  10740. # else /* no NBPC */
  10741. # ifdef PAGESIZE
  10742. # define getpagesize() PAGESIZE
  10743. # endif /* PAGESIZE */
  10744. # endif /* no NBPC */
  10745. # endif /* no NBPG */
  10746. # endif /* no EXEC_PAGESIZE */
  10747. # else /* no HAVE_SYS_PARAM_H */
  10748. # define getpagesize() 8192 /* punt totally */
  10749. # endif /* no HAVE_SYS_PARAM_H */
  10750. # endif /* no _SC_PAGESIZE */
  10751. #endif /* no HAVE_GETPAGESIZE */
  10752. int
  10753. main ()
  10754. {
  10755. char *data, *data2, *data3;
  10756. int i, pagesize;
  10757. int fd;
  10758. pagesize = getpagesize ();
  10759. /* First, make a file with some known garbage in it. */
  10760. data = (char *) malloc (pagesize);
  10761. if (!data)
  10762. return 1;
  10763. for (i = 0; i < pagesize; ++i)
  10764. *(data + i) = rand ();
  10765. umask (0);
  10766. fd = creat ("conftest.mmap", 0600);
  10767. if (fd < 0)
  10768. return 1;
  10769. if (write (fd, data, pagesize) != pagesize)
  10770. return 1;
  10771. close (fd);
  10772. /* Next, try to mmap the file at a fixed address which already has
  10773. something else allocated at it. If we can, also make sure that
  10774. we see the same garbage. */
  10775. fd = open ("conftest.mmap", O_RDWR);
  10776. if (fd < 0)
  10777. return 1;
  10778. data2 = (char *) malloc (2 * pagesize);
  10779. if (!data2)
  10780. return 1;
  10781. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10782. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10783. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10784. return 1;
  10785. for (i = 0; i < pagesize; ++i)
  10786. if (*(data + i) != *(data2 + i))
  10787. return 1;
  10788. /* Finally, make sure that changes to the mapped area do not
  10789. percolate back to the file as seen by read(). (This is a bug on
  10790. some variants of i386 svr4.0.) */
  10791. for (i = 0; i < pagesize; ++i)
  10792. *(data2 + i) = *(data2 + i) + 1;
  10793. data3 = (char *) malloc (pagesize);
  10794. if (!data3)
  10795. return 1;
  10796. if (read (fd, data3, pagesize) != pagesize)
  10797. return 1;
  10798. for (i = 0; i < pagesize; ++i)
  10799. if (*(data + i) != *(data3 + i))
  10800. return 1;
  10801. close (fd);
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. rm -f conftest$ac_exeext
  10806. if { (ac_try="$ac_link"
  10807. case "(($ac_try" in
  10808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10809. *) ac_try_echo=$ac_try;;
  10810. esac
  10811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10812. (eval "$ac_link") 2>&5
  10813. ac_status=$?
  10814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10815. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10816. { (case "(($ac_try" in
  10817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10818. *) ac_try_echo=$ac_try;;
  10819. esac
  10820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10821. (eval "$ac_try") 2>&5
  10822. ac_status=$?
  10823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10824. (exit $ac_status); }; }; then
  10825. ac_cv_func_mmap_fixed_mapped=yes
  10826. else
  10827. echo "$as_me: program exited with status $ac_status" >&5
  10828. echo "$as_me: failed program was:" >&5
  10829. sed 's/^/| /' conftest.$ac_ext >&5
  10830. ( exit $ac_status )
  10831. ac_cv_func_mmap_fixed_mapped=no
  10832. fi
  10833. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10834. fi
  10835. fi
  10836. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10837. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10838. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10839. cat >>confdefs.h <<\_ACEOF
  10840. #define HAVE_MMAP 1
  10841. _ACEOF
  10842. fi
  10843. rm -f conftest.mmap
  10844. for ac_header in sys/select.h sys/socket.h
  10845. do
  10846. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10848. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10849. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10850. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10851. echo $ECHO_N "(cached) $ECHO_C" >&6
  10852. fi
  10853. ac_res=`eval echo '${'$as_ac_Header'}'`
  10854. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10855. echo "${ECHO_T}$ac_res" >&6; }
  10856. else
  10857. # Is the header compilable?
  10858. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10859. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10860. cat >conftest.$ac_ext <<_ACEOF
  10861. /* confdefs.h. */
  10862. _ACEOF
  10863. cat confdefs.h >>conftest.$ac_ext
  10864. cat >>conftest.$ac_ext <<_ACEOF
  10865. /* end confdefs.h. */
  10866. $ac_includes_default
  10867. #include <$ac_header>
  10868. _ACEOF
  10869. rm -f conftest.$ac_objext
  10870. if { (ac_try="$ac_compile"
  10871. case "(($ac_try" in
  10872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10873. *) ac_try_echo=$ac_try;;
  10874. esac
  10875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10876. (eval "$ac_compile") 2>conftest.er1
  10877. ac_status=$?
  10878. grep -v '^ *+' conftest.er1 >conftest.err
  10879. rm -f conftest.er1
  10880. cat conftest.err >&5
  10881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10882. (exit $ac_status); } && {
  10883. test -z "$ac_cxx_werror_flag" ||
  10884. test ! -s conftest.err
  10885. } && test -s conftest.$ac_objext; then
  10886. ac_header_compiler=yes
  10887. else
  10888. echo "$as_me: failed program was:" >&5
  10889. sed 's/^/| /' conftest.$ac_ext >&5
  10890. ac_header_compiler=no
  10891. fi
  10892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10893. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10894. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10895. # Is the header present?
  10896. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10897. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10898. cat >conftest.$ac_ext <<_ACEOF
  10899. /* confdefs.h. */
  10900. _ACEOF
  10901. cat confdefs.h >>conftest.$ac_ext
  10902. cat >>conftest.$ac_ext <<_ACEOF
  10903. /* end confdefs.h. */
  10904. #include <$ac_header>
  10905. _ACEOF
  10906. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10907. case "(($ac_try" in
  10908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10909. *) ac_try_echo=$ac_try;;
  10910. esac
  10911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10912. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10913. ac_status=$?
  10914. grep -v '^ *+' conftest.er1 >conftest.err
  10915. rm -f conftest.er1
  10916. cat conftest.err >&5
  10917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10918. (exit $ac_status); } >/dev/null && {
  10919. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10920. test ! -s conftest.err
  10921. }; then
  10922. ac_header_preproc=yes
  10923. else
  10924. echo "$as_me: failed program was:" >&5
  10925. sed 's/^/| /' conftest.$ac_ext >&5
  10926. ac_header_preproc=no
  10927. fi
  10928. rm -f conftest.err conftest.$ac_ext
  10929. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10930. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10931. # So? What about this header?
  10932. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10933. yes:no: )
  10934. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10935. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10937. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10938. ac_header_preproc=yes
  10939. ;;
  10940. no:yes:* )
  10941. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10942. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10943. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10944. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10945. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10946. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10947. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10948. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10949. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10950. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10951. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10952. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10953. ( cat <<\_ASBOX
  10954. ## ----------------------------------------------- ##
  10955. ## Report this to t-tujikawa@users.sourceforge.net ##
  10956. ## ----------------------------------------------- ##
  10957. _ASBOX
  10958. ) | sed "s/^/$as_me: WARNING: /" >&2
  10959. ;;
  10960. esac
  10961. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10962. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10963. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10964. echo $ECHO_N "(cached) $ECHO_C" >&6
  10965. else
  10966. eval "$as_ac_Header=\$ac_header_preproc"
  10967. fi
  10968. ac_res=`eval echo '${'$as_ac_Header'}'`
  10969. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10970. echo "${ECHO_T}$ac_res" >&6; }
  10971. fi
  10972. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10973. cat >>confdefs.h <<_ACEOF
  10974. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10975. _ACEOF
  10976. fi
  10977. done
  10978. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10979. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10980. if test "${ac_cv_func_select_args+set}" = set; then
  10981. echo $ECHO_N "(cached) $ECHO_C" >&6
  10982. else
  10983. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10984. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10985. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10986. cat >conftest.$ac_ext <<_ACEOF
  10987. /* confdefs.h. */
  10988. _ACEOF
  10989. cat confdefs.h >>conftest.$ac_ext
  10990. cat >>conftest.$ac_ext <<_ACEOF
  10991. /* end confdefs.h. */
  10992. $ac_includes_default
  10993. #ifdef HAVE_SYS_SELECT_H
  10994. # include <sys/select.h>
  10995. #endif
  10996. #ifdef HAVE_SYS_SOCKET_H
  10997. # include <sys/socket.h>
  10998. #endif
  10999. int
  11000. main ()
  11001. {
  11002. extern int select ($ac_arg1,
  11003. $ac_arg234, $ac_arg234, $ac_arg234,
  11004. $ac_arg5);
  11005. ;
  11006. return 0;
  11007. }
  11008. _ACEOF
  11009. rm -f conftest.$ac_objext
  11010. if { (ac_try="$ac_compile"
  11011. case "(($ac_try" in
  11012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11013. *) ac_try_echo=$ac_try;;
  11014. esac
  11015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11016. (eval "$ac_compile") 2>conftest.er1
  11017. ac_status=$?
  11018. grep -v '^ *+' conftest.er1 >conftest.err
  11019. rm -f conftest.er1
  11020. cat conftest.err >&5
  11021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11022. (exit $ac_status); } && {
  11023. test -z "$ac_cxx_werror_flag" ||
  11024. test ! -s conftest.err
  11025. } && test -s conftest.$ac_objext; then
  11026. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  11027. else
  11028. echo "$as_me: failed program was:" >&5
  11029. sed 's/^/| /' conftest.$ac_ext >&5
  11030. fi
  11031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11032. done
  11033. done
  11034. done
  11035. # Provide a safe default value.
  11036. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  11037. fi
  11038. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  11039. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  11040. ac_save_IFS=$IFS; IFS=','
  11041. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  11042. IFS=$ac_save_IFS
  11043. shift
  11044. cat >>confdefs.h <<_ACEOF
  11045. #define SELECT_TYPE_ARG1 $1
  11046. _ACEOF
  11047. cat >>confdefs.h <<_ACEOF
  11048. #define SELECT_TYPE_ARG234 ($2)
  11049. _ACEOF
  11050. cat >>confdefs.h <<_ACEOF
  11051. #define SELECT_TYPE_ARG5 ($3)
  11052. _ACEOF
  11053. rm -f conftest*
  11054. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  11055. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  11056. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  11057. echo $ECHO_N "(cached) $ECHO_C" >&6
  11058. else
  11059. rm -f conftest.sym conftest.file
  11060. echo >conftest.file
  11061. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11062. if test "$cross_compiling" = yes; then
  11063. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11064. else
  11065. cat >conftest.$ac_ext <<_ACEOF
  11066. /* confdefs.h. */
  11067. _ACEOF
  11068. cat confdefs.h >>conftest.$ac_ext
  11069. cat >>conftest.$ac_ext <<_ACEOF
  11070. /* end confdefs.h. */
  11071. $ac_includes_default
  11072. int
  11073. main ()
  11074. {
  11075. struct stat sbuf;
  11076. /* Linux will dereference the symlink and fail.
  11077. That is better in the sense that it means we will not
  11078. have to compile and use the lstat wrapper. */
  11079. return lstat ("conftest.sym/", &sbuf) == 0;
  11080. ;
  11081. return 0;
  11082. }
  11083. _ACEOF
  11084. rm -f conftest$ac_exeext
  11085. if { (ac_try="$ac_link"
  11086. case "(($ac_try" in
  11087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11088. *) ac_try_echo=$ac_try;;
  11089. esac
  11090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11091. (eval "$ac_link") 2>&5
  11092. ac_status=$?
  11093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11094. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11095. { (case "(($ac_try" in
  11096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11097. *) ac_try_echo=$ac_try;;
  11098. esac
  11099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11100. (eval "$ac_try") 2>&5
  11101. ac_status=$?
  11102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11103. (exit $ac_status); }; }; then
  11104. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11105. else
  11106. echo "$as_me: program exited with status $ac_status" >&5
  11107. echo "$as_me: failed program was:" >&5
  11108. sed 's/^/| /' conftest.$ac_ext >&5
  11109. ( exit $ac_status )
  11110. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11111. fi
  11112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11113. fi
  11114. else
  11115. # If the `ln -s' command failed, then we probably don't even
  11116. # have an lstat function.
  11117. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11118. fi
  11119. rm -f conftest.sym conftest.file
  11120. fi
  11121. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11122. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11123. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11124. cat >>confdefs.h <<_ACEOF
  11125. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11126. _ACEOF
  11127. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  11128. case " $LIBOBJS " in
  11129. *" lstat.$ac_objext "* ) ;;
  11130. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11131. ;;
  11132. esac
  11133. fi
  11134. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11135. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  11136. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11137. echo $ECHO_N "(cached) $ECHO_C" >&6
  11138. else
  11139. if test "$cross_compiling" = yes; then
  11140. ac_cv_func_stat_empty_string_bug=yes
  11141. else
  11142. cat >conftest.$ac_ext <<_ACEOF
  11143. /* confdefs.h. */
  11144. _ACEOF
  11145. cat confdefs.h >>conftest.$ac_ext
  11146. cat >>conftest.$ac_ext <<_ACEOF
  11147. /* end confdefs.h. */
  11148. $ac_includes_default
  11149. int
  11150. main ()
  11151. {
  11152. struct stat sbuf;
  11153. return stat ("", &sbuf) == 0;
  11154. ;
  11155. return 0;
  11156. }
  11157. _ACEOF
  11158. rm -f conftest$ac_exeext
  11159. if { (ac_try="$ac_link"
  11160. case "(($ac_try" in
  11161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11162. *) ac_try_echo=$ac_try;;
  11163. esac
  11164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11165. (eval "$ac_link") 2>&5
  11166. ac_status=$?
  11167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11168. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11169. { (case "(($ac_try" in
  11170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11171. *) ac_try_echo=$ac_try;;
  11172. esac
  11173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11174. (eval "$ac_try") 2>&5
  11175. ac_status=$?
  11176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11177. (exit $ac_status); }; }; then
  11178. ac_cv_func_stat_empty_string_bug=no
  11179. else
  11180. echo "$as_me: program exited with status $ac_status" >&5
  11181. echo "$as_me: failed program was:" >&5
  11182. sed 's/^/| /' conftest.$ac_ext >&5
  11183. ( exit $ac_status )
  11184. ac_cv_func_stat_empty_string_bug=yes
  11185. fi
  11186. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11187. fi
  11188. fi
  11189. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11190. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  11191. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11192. case " $LIBOBJS " in
  11193. *" stat.$ac_objext "* ) ;;
  11194. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11195. ;;
  11196. esac
  11197. cat >>confdefs.h <<_ACEOF
  11198. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11199. _ACEOF
  11200. fi
  11201. for ac_func in vprintf
  11202. do
  11203. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11204. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11205. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11206. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11207. echo $ECHO_N "(cached) $ECHO_C" >&6
  11208. else
  11209. cat >conftest.$ac_ext <<_ACEOF
  11210. /* confdefs.h. */
  11211. _ACEOF
  11212. cat confdefs.h >>conftest.$ac_ext
  11213. cat >>conftest.$ac_ext <<_ACEOF
  11214. /* end confdefs.h. */
  11215. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11217. #define $ac_func innocuous_$ac_func
  11218. /* System header to define __stub macros and hopefully few prototypes,
  11219. which can conflict with char $ac_func (); below.
  11220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11221. <limits.h> exists even on freestanding compilers. */
  11222. #ifdef __STDC__
  11223. # include <limits.h>
  11224. #else
  11225. # include <assert.h>
  11226. #endif
  11227. #undef $ac_func
  11228. /* Override any GCC internal prototype to avoid an error.
  11229. Use char because int might match the return type of a GCC
  11230. builtin and then its argument prototype would still apply. */
  11231. #ifdef __cplusplus
  11232. extern "C"
  11233. #endif
  11234. char $ac_func ();
  11235. /* The GNU C library defines this for functions which it implements
  11236. to always fail with ENOSYS. Some functions are actually named
  11237. something starting with __ and the normal name is an alias. */
  11238. #if defined __stub_$ac_func || defined __stub___$ac_func
  11239. choke me
  11240. #endif
  11241. int
  11242. main ()
  11243. {
  11244. return $ac_func ();
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. rm -f conftest.$ac_objext conftest$ac_exeext
  11250. if { (ac_try="$ac_link"
  11251. case "(($ac_try" in
  11252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11253. *) ac_try_echo=$ac_try;;
  11254. esac
  11255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11256. (eval "$ac_link") 2>conftest.er1
  11257. ac_status=$?
  11258. grep -v '^ *+' conftest.er1 >conftest.err
  11259. rm -f conftest.er1
  11260. cat conftest.err >&5
  11261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11262. (exit $ac_status); } && {
  11263. test -z "$ac_cxx_werror_flag" ||
  11264. test ! -s conftest.err
  11265. } && test -s conftest$ac_exeext &&
  11266. $as_test_x conftest$ac_exeext; then
  11267. eval "$as_ac_var=yes"
  11268. else
  11269. echo "$as_me: failed program was:" >&5
  11270. sed 's/^/| /' conftest.$ac_ext >&5
  11271. eval "$as_ac_var=no"
  11272. fi
  11273. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11274. conftest$ac_exeext conftest.$ac_ext
  11275. fi
  11276. ac_res=`eval echo '${'$as_ac_var'}'`
  11277. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11278. echo "${ECHO_T}$ac_res" >&6; }
  11279. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11280. cat >>confdefs.h <<_ACEOF
  11281. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11282. _ACEOF
  11283. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  11284. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  11285. if test "${ac_cv_func__doprnt+set}" = set; then
  11286. echo $ECHO_N "(cached) $ECHO_C" >&6
  11287. else
  11288. cat >conftest.$ac_ext <<_ACEOF
  11289. /* confdefs.h. */
  11290. _ACEOF
  11291. cat confdefs.h >>conftest.$ac_ext
  11292. cat >>conftest.$ac_ext <<_ACEOF
  11293. /* end confdefs.h. */
  11294. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  11295. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11296. #define _doprnt innocuous__doprnt
  11297. /* System header to define __stub macros and hopefully few prototypes,
  11298. which can conflict with char _doprnt (); below.
  11299. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11300. <limits.h> exists even on freestanding compilers. */
  11301. #ifdef __STDC__
  11302. # include <limits.h>
  11303. #else
  11304. # include <assert.h>
  11305. #endif
  11306. #undef _doprnt
  11307. /* Override any GCC internal prototype to avoid an error.
  11308. Use char because int might match the return type of a GCC
  11309. builtin and then its argument prototype would still apply. */
  11310. #ifdef __cplusplus
  11311. extern "C"
  11312. #endif
  11313. char _doprnt ();
  11314. /* The GNU C library defines this for functions which it implements
  11315. to always fail with ENOSYS. Some functions are actually named
  11316. something starting with __ and the normal name is an alias. */
  11317. #if defined __stub__doprnt || defined __stub____doprnt
  11318. choke me
  11319. #endif
  11320. int
  11321. main ()
  11322. {
  11323. return _doprnt ();
  11324. ;
  11325. return 0;
  11326. }
  11327. _ACEOF
  11328. rm -f conftest.$ac_objext conftest$ac_exeext
  11329. if { (ac_try="$ac_link"
  11330. case "(($ac_try" in
  11331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11332. *) ac_try_echo=$ac_try;;
  11333. esac
  11334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11335. (eval "$ac_link") 2>conftest.er1
  11336. ac_status=$?
  11337. grep -v '^ *+' conftest.er1 >conftest.err
  11338. rm -f conftest.er1
  11339. cat conftest.err >&5
  11340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11341. (exit $ac_status); } && {
  11342. test -z "$ac_cxx_werror_flag" ||
  11343. test ! -s conftest.err
  11344. } && test -s conftest$ac_exeext &&
  11345. $as_test_x conftest$ac_exeext; then
  11346. ac_cv_func__doprnt=yes
  11347. else
  11348. echo "$as_me: failed program was:" >&5
  11349. sed 's/^/| /' conftest.$ac_ext >&5
  11350. ac_cv_func__doprnt=no
  11351. fi
  11352. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11353. conftest$ac_exeext conftest.$ac_ext
  11354. fi
  11355. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11356. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11357. if test $ac_cv_func__doprnt = yes; then
  11358. cat >>confdefs.h <<\_ACEOF
  11359. #define HAVE_DOPRNT 1
  11360. _ACEOF
  11361. fi
  11362. fi
  11363. done
  11364. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo posix_memalign random rmdir select setlocale sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul unsetenv usleep
  11365. do
  11366. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11367. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11368. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11369. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11370. echo $ECHO_N "(cached) $ECHO_C" >&6
  11371. else
  11372. cat >conftest.$ac_ext <<_ACEOF
  11373. /* confdefs.h. */
  11374. _ACEOF
  11375. cat confdefs.h >>conftest.$ac_ext
  11376. cat >>conftest.$ac_ext <<_ACEOF
  11377. /* end confdefs.h. */
  11378. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11379. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11380. #define $ac_func innocuous_$ac_func
  11381. /* System header to define __stub macros and hopefully few prototypes,
  11382. which can conflict with char $ac_func (); below.
  11383. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11384. <limits.h> exists even on freestanding compilers. */
  11385. #ifdef __STDC__
  11386. # include <limits.h>
  11387. #else
  11388. # include <assert.h>
  11389. #endif
  11390. #undef $ac_func
  11391. /* Override any GCC internal prototype to avoid an error.
  11392. Use char because int might match the return type of a GCC
  11393. builtin and then its argument prototype would still apply. */
  11394. #ifdef __cplusplus
  11395. extern "C"
  11396. #endif
  11397. char $ac_func ();
  11398. /* The GNU C library defines this for functions which it implements
  11399. to always fail with ENOSYS. Some functions are actually named
  11400. something starting with __ and the normal name is an alias. */
  11401. #if defined __stub_$ac_func || defined __stub___$ac_func
  11402. choke me
  11403. #endif
  11404. int
  11405. main ()
  11406. {
  11407. return $ac_func ();
  11408. ;
  11409. return 0;
  11410. }
  11411. _ACEOF
  11412. rm -f conftest.$ac_objext conftest$ac_exeext
  11413. if { (ac_try="$ac_link"
  11414. case "(($ac_try" in
  11415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11416. *) ac_try_echo=$ac_try;;
  11417. esac
  11418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11419. (eval "$ac_link") 2>conftest.er1
  11420. ac_status=$?
  11421. grep -v '^ *+' conftest.er1 >conftest.err
  11422. rm -f conftest.er1
  11423. cat conftest.err >&5
  11424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11425. (exit $ac_status); } && {
  11426. test -z "$ac_cxx_werror_flag" ||
  11427. test ! -s conftest.err
  11428. } && test -s conftest$ac_exeext &&
  11429. $as_test_x conftest$ac_exeext; then
  11430. eval "$as_ac_var=yes"
  11431. else
  11432. echo "$as_me: failed program was:" >&5
  11433. sed 's/^/| /' conftest.$ac_ext >&5
  11434. eval "$as_ac_var=no"
  11435. fi
  11436. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11437. conftest$ac_exeext conftest.$ac_ext
  11438. fi
  11439. ac_res=`eval echo '${'$as_ac_var'}'`
  11440. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11441. echo "${ECHO_T}$ac_res" >&6; }
  11442. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11443. cat >>confdefs.h <<_ACEOF
  11444. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11445. _ACEOF
  11446. fi
  11447. done
  11448. for ac_func in basename
  11449. do
  11450. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11451. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11452. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11453. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11454. echo $ECHO_N "(cached) $ECHO_C" >&6
  11455. else
  11456. cat >conftest.$ac_ext <<_ACEOF
  11457. /* confdefs.h. */
  11458. _ACEOF
  11459. cat confdefs.h >>conftest.$ac_ext
  11460. cat >>conftest.$ac_ext <<_ACEOF
  11461. /* end confdefs.h. */
  11462. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11463. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11464. #define $ac_func innocuous_$ac_func
  11465. /* System header to define __stub macros and hopefully few prototypes,
  11466. which can conflict with char $ac_func (); below.
  11467. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11468. <limits.h> exists even on freestanding compilers. */
  11469. #ifdef __STDC__
  11470. # include <limits.h>
  11471. #else
  11472. # include <assert.h>
  11473. #endif
  11474. #undef $ac_func
  11475. /* Override any GCC internal prototype to avoid an error.
  11476. Use char because int might match the return type of a GCC
  11477. builtin and then its argument prototype would still apply. */
  11478. #ifdef __cplusplus
  11479. extern "C"
  11480. #endif
  11481. char $ac_func ();
  11482. /* The GNU C library defines this for functions which it implements
  11483. to always fail with ENOSYS. Some functions are actually named
  11484. something starting with __ and the normal name is an alias. */
  11485. #if defined __stub_$ac_func || defined __stub___$ac_func
  11486. choke me
  11487. #endif
  11488. int
  11489. main ()
  11490. {
  11491. return $ac_func ();
  11492. ;
  11493. return 0;
  11494. }
  11495. _ACEOF
  11496. rm -f conftest.$ac_objext conftest$ac_exeext
  11497. if { (ac_try="$ac_link"
  11498. case "(($ac_try" in
  11499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11500. *) ac_try_echo=$ac_try;;
  11501. esac
  11502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11503. (eval "$ac_link") 2>conftest.er1
  11504. ac_status=$?
  11505. grep -v '^ *+' conftest.er1 >conftest.err
  11506. rm -f conftest.er1
  11507. cat conftest.err >&5
  11508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11509. (exit $ac_status); } && {
  11510. test -z "$ac_cxx_werror_flag" ||
  11511. test ! -s conftest.err
  11512. } && test -s conftest$ac_exeext &&
  11513. $as_test_x conftest$ac_exeext; then
  11514. eval "$as_ac_var=yes"
  11515. else
  11516. echo "$as_me: failed program was:" >&5
  11517. sed 's/^/| /' conftest.$ac_ext >&5
  11518. eval "$as_ac_var=no"
  11519. fi
  11520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11521. conftest$ac_exeext conftest.$ac_ext
  11522. fi
  11523. ac_res=`eval echo '${'$as_ac_var'}'`
  11524. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11525. echo "${ECHO_T}$ac_res" >&6; }
  11526. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11527. cat >>confdefs.h <<_ACEOF
  11528. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11529. _ACEOF
  11530. if true; then
  11531. HAVE_BASENAME_TRUE=
  11532. HAVE_BASENAME_FALSE='#'
  11533. else
  11534. HAVE_BASENAME_TRUE='#'
  11535. HAVE_BASENAME_FALSE=
  11536. fi
  11537. else
  11538. if false; then
  11539. HAVE_BASENAME_TRUE=
  11540. HAVE_BASENAME_FALSE='#'
  11541. else
  11542. HAVE_BASENAME_TRUE='#'
  11543. HAVE_BASENAME_FALSE=
  11544. fi
  11545. fi
  11546. done
  11547. for ac_func in gai_strerror
  11548. do
  11549. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11550. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11551. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11552. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11553. echo $ECHO_N "(cached) $ECHO_C" >&6
  11554. else
  11555. cat >conftest.$ac_ext <<_ACEOF
  11556. /* confdefs.h. */
  11557. _ACEOF
  11558. cat confdefs.h >>conftest.$ac_ext
  11559. cat >>conftest.$ac_ext <<_ACEOF
  11560. /* end confdefs.h. */
  11561. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11562. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11563. #define $ac_func innocuous_$ac_func
  11564. /* System header to define __stub macros and hopefully few prototypes,
  11565. which can conflict with char $ac_func (); below.
  11566. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11567. <limits.h> exists even on freestanding compilers. */
  11568. #ifdef __STDC__
  11569. # include <limits.h>
  11570. #else
  11571. # include <assert.h>
  11572. #endif
  11573. #undef $ac_func
  11574. /* Override any GCC internal prototype to avoid an error.
  11575. Use char because int might match the return type of a GCC
  11576. builtin and then its argument prototype would still apply. */
  11577. #ifdef __cplusplus
  11578. extern "C"
  11579. #endif
  11580. char $ac_func ();
  11581. /* The GNU C library defines this for functions which it implements
  11582. to always fail with ENOSYS. Some functions are actually named
  11583. something starting with __ and the normal name is an alias. */
  11584. #if defined __stub_$ac_func || defined __stub___$ac_func
  11585. choke me
  11586. #endif
  11587. int
  11588. main ()
  11589. {
  11590. return $ac_func ();
  11591. ;
  11592. return 0;
  11593. }
  11594. _ACEOF
  11595. rm -f conftest.$ac_objext conftest$ac_exeext
  11596. if { (ac_try="$ac_link"
  11597. case "(($ac_try" in
  11598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11599. *) ac_try_echo=$ac_try;;
  11600. esac
  11601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11602. (eval "$ac_link") 2>conftest.er1
  11603. ac_status=$?
  11604. grep -v '^ *+' conftest.er1 >conftest.err
  11605. rm -f conftest.er1
  11606. cat conftest.err >&5
  11607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11608. (exit $ac_status); } && {
  11609. test -z "$ac_cxx_werror_flag" ||
  11610. test ! -s conftest.err
  11611. } && test -s conftest$ac_exeext &&
  11612. $as_test_x conftest$ac_exeext; then
  11613. eval "$as_ac_var=yes"
  11614. else
  11615. echo "$as_me: failed program was:" >&5
  11616. sed 's/^/| /' conftest.$ac_ext >&5
  11617. eval "$as_ac_var=no"
  11618. fi
  11619. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11620. conftest$ac_exeext conftest.$ac_ext
  11621. fi
  11622. ac_res=`eval echo '${'$as_ac_var'}'`
  11623. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11624. echo "${ECHO_T}$ac_res" >&6; }
  11625. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11626. cat >>confdefs.h <<_ACEOF
  11627. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11628. _ACEOF
  11629. if true; then
  11630. HAVE_GAI_STRERROR_TRUE=
  11631. HAVE_GAI_STRERROR_FALSE='#'
  11632. else
  11633. HAVE_GAI_STRERROR_TRUE='#'
  11634. HAVE_GAI_STRERROR_FALSE=
  11635. fi
  11636. else
  11637. if false; then
  11638. HAVE_GAI_STRERROR_TRUE=
  11639. HAVE_GAI_STRERROR_FALSE='#'
  11640. else
  11641. HAVE_GAI_STRERROR_TRUE='#'
  11642. HAVE_GAI_STRERROR_FALSE=
  11643. fi
  11644. fi
  11645. done
  11646. for ac_func in getaddrinfo
  11647. do
  11648. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11649. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11650. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11651. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11652. echo $ECHO_N "(cached) $ECHO_C" >&6
  11653. else
  11654. cat >conftest.$ac_ext <<_ACEOF
  11655. /* confdefs.h. */
  11656. _ACEOF
  11657. cat confdefs.h >>conftest.$ac_ext
  11658. cat >>conftest.$ac_ext <<_ACEOF
  11659. /* end confdefs.h. */
  11660. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11661. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11662. #define $ac_func innocuous_$ac_func
  11663. /* System header to define __stub macros and hopefully few prototypes,
  11664. which can conflict with char $ac_func (); below.
  11665. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11666. <limits.h> exists even on freestanding compilers. */
  11667. #ifdef __STDC__
  11668. # include <limits.h>
  11669. #else
  11670. # include <assert.h>
  11671. #endif
  11672. #undef $ac_func
  11673. /* Override any GCC internal prototype to avoid an error.
  11674. Use char because int might match the return type of a GCC
  11675. builtin and then its argument prototype would still apply. */
  11676. #ifdef __cplusplus
  11677. extern "C"
  11678. #endif
  11679. char $ac_func ();
  11680. /* The GNU C library defines this for functions which it implements
  11681. to always fail with ENOSYS. Some functions are actually named
  11682. something starting with __ and the normal name is an alias. */
  11683. #if defined __stub_$ac_func || defined __stub___$ac_func
  11684. choke me
  11685. #endif
  11686. int
  11687. main ()
  11688. {
  11689. return $ac_func ();
  11690. ;
  11691. return 0;
  11692. }
  11693. _ACEOF
  11694. rm -f conftest.$ac_objext conftest$ac_exeext
  11695. if { (ac_try="$ac_link"
  11696. case "(($ac_try" in
  11697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11698. *) ac_try_echo=$ac_try;;
  11699. esac
  11700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11701. (eval "$ac_link") 2>conftest.er1
  11702. ac_status=$?
  11703. grep -v '^ *+' conftest.er1 >conftest.err
  11704. rm -f conftest.er1
  11705. cat conftest.err >&5
  11706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11707. (exit $ac_status); } && {
  11708. test -z "$ac_cxx_werror_flag" ||
  11709. test ! -s conftest.err
  11710. } && test -s conftest$ac_exeext &&
  11711. $as_test_x conftest$ac_exeext; then
  11712. eval "$as_ac_var=yes"
  11713. else
  11714. echo "$as_me: failed program was:" >&5
  11715. sed 's/^/| /' conftest.$ac_ext >&5
  11716. eval "$as_ac_var=no"
  11717. fi
  11718. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11719. conftest$ac_exeext conftest.$ac_ext
  11720. fi
  11721. ac_res=`eval echo '${'$as_ac_var'}'`
  11722. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11723. echo "${ECHO_T}$ac_res" >&6; }
  11724. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11725. cat >>confdefs.h <<_ACEOF
  11726. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11727. _ACEOF
  11728. if true; then
  11729. HAVE_GETADDRINFO_TRUE=
  11730. HAVE_GETADDRINFO_FALSE='#'
  11731. else
  11732. HAVE_GETADDRINFO_TRUE='#'
  11733. HAVE_GETADDRINFO_FALSE=
  11734. fi
  11735. else
  11736. if false; then
  11737. HAVE_GETADDRINFO_TRUE=
  11738. HAVE_GETADDRINFO_FALSE='#'
  11739. else
  11740. HAVE_GETADDRINFO_TRUE='#'
  11741. HAVE_GETADDRINFO_FALSE=
  11742. fi
  11743. fi
  11744. done
  11745. for ac_func in gettimeofday
  11746. do
  11747. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11748. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11749. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11750. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11751. echo $ECHO_N "(cached) $ECHO_C" >&6
  11752. else
  11753. cat >conftest.$ac_ext <<_ACEOF
  11754. /* confdefs.h. */
  11755. _ACEOF
  11756. cat confdefs.h >>conftest.$ac_ext
  11757. cat >>conftest.$ac_ext <<_ACEOF
  11758. /* end confdefs.h. */
  11759. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11760. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11761. #define $ac_func innocuous_$ac_func
  11762. /* System header to define __stub macros and hopefully few prototypes,
  11763. which can conflict with char $ac_func (); below.
  11764. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11765. <limits.h> exists even on freestanding compilers. */
  11766. #ifdef __STDC__
  11767. # include <limits.h>
  11768. #else
  11769. # include <assert.h>
  11770. #endif
  11771. #undef $ac_func
  11772. /* Override any GCC internal prototype to avoid an error.
  11773. Use char because int might match the return type of a GCC
  11774. builtin and then its argument prototype would still apply. */
  11775. #ifdef __cplusplus
  11776. extern "C"
  11777. #endif
  11778. char $ac_func ();
  11779. /* The GNU C library defines this for functions which it implements
  11780. to always fail with ENOSYS. Some functions are actually named
  11781. something starting with __ and the normal name is an alias. */
  11782. #if defined __stub_$ac_func || defined __stub___$ac_func
  11783. choke me
  11784. #endif
  11785. int
  11786. main ()
  11787. {
  11788. return $ac_func ();
  11789. ;
  11790. return 0;
  11791. }
  11792. _ACEOF
  11793. rm -f conftest.$ac_objext conftest$ac_exeext
  11794. if { (ac_try="$ac_link"
  11795. case "(($ac_try" in
  11796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11797. *) ac_try_echo=$ac_try;;
  11798. esac
  11799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11800. (eval "$ac_link") 2>conftest.er1
  11801. ac_status=$?
  11802. grep -v '^ *+' conftest.er1 >conftest.err
  11803. rm -f conftest.er1
  11804. cat conftest.err >&5
  11805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11806. (exit $ac_status); } && {
  11807. test -z "$ac_cxx_werror_flag" ||
  11808. test ! -s conftest.err
  11809. } && test -s conftest$ac_exeext &&
  11810. $as_test_x conftest$ac_exeext; then
  11811. eval "$as_ac_var=yes"
  11812. else
  11813. echo "$as_me: failed program was:" >&5
  11814. sed 's/^/| /' conftest.$ac_ext >&5
  11815. eval "$as_ac_var=no"
  11816. fi
  11817. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11818. conftest$ac_exeext conftest.$ac_ext
  11819. fi
  11820. ac_res=`eval echo '${'$as_ac_var'}'`
  11821. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11822. echo "${ECHO_T}$ac_res" >&6; }
  11823. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11824. cat >>confdefs.h <<_ACEOF
  11825. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11826. _ACEOF
  11827. if true; then
  11828. HAVE_GETTIMEOFDAY_TRUE=
  11829. HAVE_GETTIMEOFDAY_FALSE='#'
  11830. else
  11831. HAVE_GETTIMEOFDAY_TRUE='#'
  11832. HAVE_GETTIMEOFDAY_FALSE=
  11833. fi
  11834. else
  11835. if false; then
  11836. HAVE_GETTIMEOFDAY_TRUE=
  11837. HAVE_GETTIMEOFDAY_FALSE='#'
  11838. else
  11839. HAVE_GETTIMEOFDAY_TRUE='#'
  11840. HAVE_GETTIMEOFDAY_FALSE=
  11841. fi
  11842. fi
  11843. done
  11844. for ac_func in inet_aton
  11845. do
  11846. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11847. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11848. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11849. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11850. echo $ECHO_N "(cached) $ECHO_C" >&6
  11851. else
  11852. cat >conftest.$ac_ext <<_ACEOF
  11853. /* confdefs.h. */
  11854. _ACEOF
  11855. cat confdefs.h >>conftest.$ac_ext
  11856. cat >>conftest.$ac_ext <<_ACEOF
  11857. /* end confdefs.h. */
  11858. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11860. #define $ac_func innocuous_$ac_func
  11861. /* System header to define __stub macros and hopefully few prototypes,
  11862. which can conflict with char $ac_func (); below.
  11863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11864. <limits.h> exists even on freestanding compilers. */
  11865. #ifdef __STDC__
  11866. # include <limits.h>
  11867. #else
  11868. # include <assert.h>
  11869. #endif
  11870. #undef $ac_func
  11871. /* Override any GCC internal prototype to avoid an error.
  11872. Use char because int might match the return type of a GCC
  11873. builtin and then its argument prototype would still apply. */
  11874. #ifdef __cplusplus
  11875. extern "C"
  11876. #endif
  11877. char $ac_func ();
  11878. /* The GNU C library defines this for functions which it implements
  11879. to always fail with ENOSYS. Some functions are actually named
  11880. something starting with __ and the normal name is an alias. */
  11881. #if defined __stub_$ac_func || defined __stub___$ac_func
  11882. choke me
  11883. #endif
  11884. int
  11885. main ()
  11886. {
  11887. return $ac_func ();
  11888. ;
  11889. return 0;
  11890. }
  11891. _ACEOF
  11892. rm -f conftest.$ac_objext conftest$ac_exeext
  11893. if { (ac_try="$ac_link"
  11894. case "(($ac_try" in
  11895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11896. *) ac_try_echo=$ac_try;;
  11897. esac
  11898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11899. (eval "$ac_link") 2>conftest.er1
  11900. ac_status=$?
  11901. grep -v '^ *+' conftest.er1 >conftest.err
  11902. rm -f conftest.er1
  11903. cat conftest.err >&5
  11904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11905. (exit $ac_status); } && {
  11906. test -z "$ac_cxx_werror_flag" ||
  11907. test ! -s conftest.err
  11908. } && test -s conftest$ac_exeext &&
  11909. $as_test_x conftest$ac_exeext; then
  11910. eval "$as_ac_var=yes"
  11911. else
  11912. echo "$as_me: failed program was:" >&5
  11913. sed 's/^/| /' conftest.$ac_ext >&5
  11914. eval "$as_ac_var=no"
  11915. fi
  11916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11917. conftest$ac_exeext conftest.$ac_ext
  11918. fi
  11919. ac_res=`eval echo '${'$as_ac_var'}'`
  11920. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11921. echo "${ECHO_T}$ac_res" >&6; }
  11922. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11923. cat >>confdefs.h <<_ACEOF
  11924. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11925. _ACEOF
  11926. if true; then
  11927. HAVE_INET_ATON_TRUE=
  11928. HAVE_INET_ATON_FALSE='#'
  11929. else
  11930. HAVE_INET_ATON_TRUE='#'
  11931. HAVE_INET_ATON_FALSE=
  11932. fi
  11933. else
  11934. if false; then
  11935. HAVE_INET_ATON_TRUE=
  11936. HAVE_INET_ATON_FALSE='#'
  11937. else
  11938. HAVE_INET_ATON_TRUE='#'
  11939. HAVE_INET_ATON_FALSE=
  11940. fi
  11941. fi
  11942. done
  11943. for ac_func in localtime_r
  11944. do
  11945. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11946. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11947. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11948. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11949. echo $ECHO_N "(cached) $ECHO_C" >&6
  11950. else
  11951. cat >conftest.$ac_ext <<_ACEOF
  11952. /* confdefs.h. */
  11953. _ACEOF
  11954. cat confdefs.h >>conftest.$ac_ext
  11955. cat >>conftest.$ac_ext <<_ACEOF
  11956. /* end confdefs.h. */
  11957. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11958. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11959. #define $ac_func innocuous_$ac_func
  11960. /* System header to define __stub macros and hopefully few prototypes,
  11961. which can conflict with char $ac_func (); below.
  11962. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11963. <limits.h> exists even on freestanding compilers. */
  11964. #ifdef __STDC__
  11965. # include <limits.h>
  11966. #else
  11967. # include <assert.h>
  11968. #endif
  11969. #undef $ac_func
  11970. /* Override any GCC internal prototype to avoid an error.
  11971. Use char because int might match the return type of a GCC
  11972. builtin and then its argument prototype would still apply. */
  11973. #ifdef __cplusplus
  11974. extern "C"
  11975. #endif
  11976. char $ac_func ();
  11977. /* The GNU C library defines this for functions which it implements
  11978. to always fail with ENOSYS. Some functions are actually named
  11979. something starting with __ and the normal name is an alias. */
  11980. #if defined __stub_$ac_func || defined __stub___$ac_func
  11981. choke me
  11982. #endif
  11983. int
  11984. main ()
  11985. {
  11986. return $ac_func ();
  11987. ;
  11988. return 0;
  11989. }
  11990. _ACEOF
  11991. rm -f conftest.$ac_objext conftest$ac_exeext
  11992. if { (ac_try="$ac_link"
  11993. case "(($ac_try" in
  11994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11995. *) ac_try_echo=$ac_try;;
  11996. esac
  11997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11998. (eval "$ac_link") 2>conftest.er1
  11999. ac_status=$?
  12000. grep -v '^ *+' conftest.er1 >conftest.err
  12001. rm -f conftest.er1
  12002. cat conftest.err >&5
  12003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12004. (exit $ac_status); } && {
  12005. test -z "$ac_cxx_werror_flag" ||
  12006. test ! -s conftest.err
  12007. } && test -s conftest$ac_exeext &&
  12008. $as_test_x conftest$ac_exeext; then
  12009. eval "$as_ac_var=yes"
  12010. else
  12011. echo "$as_me: failed program was:" >&5
  12012. sed 's/^/| /' conftest.$ac_ext >&5
  12013. eval "$as_ac_var=no"
  12014. fi
  12015. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12016. conftest$ac_exeext conftest.$ac_ext
  12017. fi
  12018. ac_res=`eval echo '${'$as_ac_var'}'`
  12019. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12020. echo "${ECHO_T}$ac_res" >&6; }
  12021. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12022. cat >>confdefs.h <<_ACEOF
  12023. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12024. _ACEOF
  12025. if true; then
  12026. HAVE_LOCALTIME_R_TRUE=
  12027. HAVE_LOCALTIME_R_FALSE='#'
  12028. else
  12029. HAVE_LOCALTIME_R_TRUE='#'
  12030. HAVE_LOCALTIME_R_FALSE=
  12031. fi
  12032. else
  12033. if false; then
  12034. HAVE_LOCALTIME_R_TRUE=
  12035. HAVE_LOCALTIME_R_FALSE='#'
  12036. else
  12037. HAVE_LOCALTIME_R_TRUE='#'
  12038. HAVE_LOCALTIME_R_FALSE=
  12039. fi
  12040. fi
  12041. done
  12042. for ac_func in strptime
  12043. do
  12044. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12045. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12046. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12047. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12048. echo $ECHO_N "(cached) $ECHO_C" >&6
  12049. else
  12050. cat >conftest.$ac_ext <<_ACEOF
  12051. /* confdefs.h. */
  12052. _ACEOF
  12053. cat confdefs.h >>conftest.$ac_ext
  12054. cat >>conftest.$ac_ext <<_ACEOF
  12055. /* end confdefs.h. */
  12056. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12057. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12058. #define $ac_func innocuous_$ac_func
  12059. /* System header to define __stub macros and hopefully few prototypes,
  12060. which can conflict with char $ac_func (); below.
  12061. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12062. <limits.h> exists even on freestanding compilers. */
  12063. #ifdef __STDC__
  12064. # include <limits.h>
  12065. #else
  12066. # include <assert.h>
  12067. #endif
  12068. #undef $ac_func
  12069. /* Override any GCC internal prototype to avoid an error.
  12070. Use char because int might match the return type of a GCC
  12071. builtin and then its argument prototype would still apply. */
  12072. #ifdef __cplusplus
  12073. extern "C"
  12074. #endif
  12075. char $ac_func ();
  12076. /* The GNU C library defines this for functions which it implements
  12077. to always fail with ENOSYS. Some functions are actually named
  12078. something starting with __ and the normal name is an alias. */
  12079. #if defined __stub_$ac_func || defined __stub___$ac_func
  12080. choke me
  12081. #endif
  12082. int
  12083. main ()
  12084. {
  12085. return $ac_func ();
  12086. ;
  12087. return 0;
  12088. }
  12089. _ACEOF
  12090. rm -f conftest.$ac_objext conftest$ac_exeext
  12091. if { (ac_try="$ac_link"
  12092. case "(($ac_try" in
  12093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12094. *) ac_try_echo=$ac_try;;
  12095. esac
  12096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12097. (eval "$ac_link") 2>conftest.er1
  12098. ac_status=$?
  12099. grep -v '^ *+' conftest.er1 >conftest.err
  12100. rm -f conftest.er1
  12101. cat conftest.err >&5
  12102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12103. (exit $ac_status); } && {
  12104. test -z "$ac_cxx_werror_flag" ||
  12105. test ! -s conftest.err
  12106. } && test -s conftest$ac_exeext &&
  12107. $as_test_x conftest$ac_exeext; then
  12108. eval "$as_ac_var=yes"
  12109. else
  12110. echo "$as_me: failed program was:" >&5
  12111. sed 's/^/| /' conftest.$ac_ext >&5
  12112. eval "$as_ac_var=no"
  12113. fi
  12114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12115. conftest$ac_exeext conftest.$ac_ext
  12116. fi
  12117. ac_res=`eval echo '${'$as_ac_var'}'`
  12118. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12119. echo "${ECHO_T}$ac_res" >&6; }
  12120. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12121. cat >>confdefs.h <<_ACEOF
  12122. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12123. _ACEOF
  12124. if true; then
  12125. HAVE_STRPTIME_TRUE=
  12126. HAVE_STRPTIME_FALSE='#'
  12127. else
  12128. HAVE_STRPTIME_TRUE='#'
  12129. HAVE_STRPTIME_FALSE=
  12130. fi
  12131. else
  12132. if false; then
  12133. HAVE_STRPTIME_TRUE=
  12134. HAVE_STRPTIME_FALSE='#'
  12135. else
  12136. HAVE_STRPTIME_TRUE='#'
  12137. HAVE_STRPTIME_FALSE=
  12138. fi
  12139. fi
  12140. done
  12141. for ac_func in timegm
  12142. do
  12143. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12144. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12145. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12146. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12147. echo $ECHO_N "(cached) $ECHO_C" >&6
  12148. else
  12149. cat >conftest.$ac_ext <<_ACEOF
  12150. /* confdefs.h. */
  12151. _ACEOF
  12152. cat confdefs.h >>conftest.$ac_ext
  12153. cat >>conftest.$ac_ext <<_ACEOF
  12154. /* end confdefs.h. */
  12155. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12156. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12157. #define $ac_func innocuous_$ac_func
  12158. /* System header to define __stub macros and hopefully few prototypes,
  12159. which can conflict with char $ac_func (); below.
  12160. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12161. <limits.h> exists even on freestanding compilers. */
  12162. #ifdef __STDC__
  12163. # include <limits.h>
  12164. #else
  12165. # include <assert.h>
  12166. #endif
  12167. #undef $ac_func
  12168. /* Override any GCC internal prototype to avoid an error.
  12169. Use char because int might match the return type of a GCC
  12170. builtin and then its argument prototype would still apply. */
  12171. #ifdef __cplusplus
  12172. extern "C"
  12173. #endif
  12174. char $ac_func ();
  12175. /* The GNU C library defines this for functions which it implements
  12176. to always fail with ENOSYS. Some functions are actually named
  12177. something starting with __ and the normal name is an alias. */
  12178. #if defined __stub_$ac_func || defined __stub___$ac_func
  12179. choke me
  12180. #endif
  12181. int
  12182. main ()
  12183. {
  12184. return $ac_func ();
  12185. ;
  12186. return 0;
  12187. }
  12188. _ACEOF
  12189. rm -f conftest.$ac_objext conftest$ac_exeext
  12190. if { (ac_try="$ac_link"
  12191. case "(($ac_try" in
  12192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12193. *) ac_try_echo=$ac_try;;
  12194. esac
  12195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12196. (eval "$ac_link") 2>conftest.er1
  12197. ac_status=$?
  12198. grep -v '^ *+' conftest.er1 >conftest.err
  12199. rm -f conftest.er1
  12200. cat conftest.err >&5
  12201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12202. (exit $ac_status); } && {
  12203. test -z "$ac_cxx_werror_flag" ||
  12204. test ! -s conftest.err
  12205. } && test -s conftest$ac_exeext &&
  12206. $as_test_x conftest$ac_exeext; then
  12207. eval "$as_ac_var=yes"
  12208. else
  12209. echo "$as_me: failed program was:" >&5
  12210. sed 's/^/| /' conftest.$ac_ext >&5
  12211. eval "$as_ac_var=no"
  12212. fi
  12213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12214. conftest$ac_exeext conftest.$ac_ext
  12215. fi
  12216. ac_res=`eval echo '${'$as_ac_var'}'`
  12217. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12218. echo "${ECHO_T}$ac_res" >&6; }
  12219. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12220. cat >>confdefs.h <<_ACEOF
  12221. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12222. _ACEOF
  12223. if true; then
  12224. HAVE_TIMEGM_TRUE=
  12225. HAVE_TIMEGM_FALSE='#'
  12226. else
  12227. HAVE_TIMEGM_TRUE='#'
  12228. HAVE_TIMEGM_FALSE=
  12229. fi
  12230. else
  12231. if false; then
  12232. HAVE_TIMEGM_TRUE=
  12233. HAVE_TIMEGM_FALSE='#'
  12234. else
  12235. HAVE_TIMEGM_TRUE='#'
  12236. HAVE_TIMEGM_FALSE=
  12237. fi
  12238. fi
  12239. done
  12240. case "$target" in
  12241. *mingw*)
  12242. if true; then
  12243. HAVE_GETADDRINFO_TRUE=
  12244. HAVE_GETADDRINFO_FALSE='#'
  12245. else
  12246. HAVE_GETADDRINFO_TRUE='#'
  12247. HAVE_GETADDRINFO_FALSE=
  12248. fi
  12249. if false; then
  12250. HAVE_GAI_STRERROR_TRUE=
  12251. HAVE_GAI_STRERROR_FALSE='#'
  12252. else
  12253. HAVE_GAI_STRERROR_TRUE='#'
  12254. HAVE_GAI_STRERROR_FALSE=
  12255. fi
  12256. ;;
  12257. esac
  12258. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  12259. cat >confcache <<\_ACEOF
  12260. # This file is a shell script that caches the results of configure
  12261. # tests run on this system so they can be shared between configure
  12262. # scripts and configure runs, see configure's option --config-cache.
  12263. # It is not useful on other systems. If it contains results you don't
  12264. # want to keep, you may remove or edit it.
  12265. #
  12266. # config.status only pays attention to the cache file if you give it
  12267. # the --recheck option to rerun configure.
  12268. #
  12269. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12270. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12271. # following values.
  12272. _ACEOF
  12273. # The following way of writing the cache mishandles newlines in values,
  12274. # but we know of no workaround that is simple, portable, and efficient.
  12275. # So, we kill variables containing newlines.
  12276. # Ultrix sh set writes to stderr and can't be redirected directly,
  12277. # and sets the high bit in the cache file unless we assign to the vars.
  12278. (
  12279. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12280. eval ac_val=\$$ac_var
  12281. case $ac_val in #(
  12282. *${as_nl}*)
  12283. case $ac_var in #(
  12284. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12285. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12286. esac
  12287. case $ac_var in #(
  12288. _ | IFS | as_nl) ;; #(
  12289. *) $as_unset $ac_var ;;
  12290. esac ;;
  12291. esac
  12292. done
  12293. (set) 2>&1 |
  12294. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12295. *${as_nl}ac_space=\ *)
  12296. # `set' does not quote correctly, so add quotes (double-quote
  12297. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12298. sed -n \
  12299. "s/'/'\\\\''/g;
  12300. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12301. ;; #(
  12302. *)
  12303. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12304. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12305. ;;
  12306. esac |
  12307. sort
  12308. ) |
  12309. sed '
  12310. /^ac_cv_env_/b end
  12311. t clear
  12312. :clear
  12313. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12314. t end
  12315. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12316. :end' >>confcache
  12317. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12318. if test -w "$cache_file"; then
  12319. test "x$cache_file" != "x/dev/null" &&
  12320. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12321. echo "$as_me: updating cache $cache_file" >&6;}
  12322. cat confcache >$cache_file
  12323. else
  12324. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12325. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12326. fi
  12327. fi
  12328. rm -f confcache
  12329. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12330. # Let make expand exec_prefix.
  12331. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12332. DEFS=-DHAVE_CONFIG_H
  12333. ac_libobjs=
  12334. ac_ltlibobjs=
  12335. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12336. # 1. Remove the extension, and $U if already installed.
  12337. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12338. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12339. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12340. # will be set to the directory where LIBOBJS objects are built.
  12341. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12342. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12343. done
  12344. LIBOBJS=$ac_libobjs
  12345. LTLIBOBJS=$ac_ltlibobjs
  12346. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12347. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12348. Usually this means the macro was only invoked conditionally." >&5
  12349. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12350. Usually this means the macro was only invoked conditionally." >&2;}
  12351. { (exit 1); exit 1; }; }
  12352. fi
  12353. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12354. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  12355. Usually this means the macro was only invoked conditionally." >&5
  12356. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  12357. Usually this means the macro was only invoked conditionally." >&2;}
  12358. { (exit 1); exit 1; }; }
  12359. fi
  12360. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12361. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12362. Usually this means the macro was only invoked conditionally." >&5
  12363. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12364. Usually this means the macro was only invoked conditionally." >&2;}
  12365. { (exit 1); exit 1; }; }
  12366. fi
  12367. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12368. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12369. Usually this means the macro was only invoked conditionally." >&5
  12370. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12371. Usually this means the macro was only invoked conditionally." >&2;}
  12372. { (exit 1); exit 1; }; }
  12373. fi
  12374. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12375. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12376. Usually this means the macro was only invoked conditionally." >&5
  12377. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12378. Usually this means the macro was only invoked conditionally." >&2;}
  12379. { (exit 1); exit 1; }; }
  12380. fi
  12381. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12382. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12383. Usually this means the macro was only invoked conditionally." >&5
  12384. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12385. Usually this means the macro was only invoked conditionally." >&2;}
  12386. { (exit 1); exit 1; }; }
  12387. fi
  12388. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12389. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12390. Usually this means the macro was only invoked conditionally." >&5
  12391. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12392. Usually this means the macro was only invoked conditionally." >&2;}
  12393. { (exit 1); exit 1; }; }
  12394. fi
  12395. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12396. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12397. Usually this means the macro was only invoked conditionally." >&5
  12398. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12399. Usually this means the macro was only invoked conditionally." >&2;}
  12400. { (exit 1); exit 1; }; }
  12401. fi
  12402. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12403. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12404. Usually this means the macro was only invoked conditionally." >&5
  12405. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12406. Usually this means the macro was only invoked conditionally." >&2;}
  12407. { (exit 1); exit 1; }; }
  12408. fi
  12409. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  12410. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  12411. Usually this means the macro was only invoked conditionally." >&5
  12412. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  12413. Usually this means the macro was only invoked conditionally." >&2;}
  12414. { (exit 1); exit 1; }; }
  12415. fi
  12416. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  12417. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  12418. Usually this means the macro was only invoked conditionally." >&5
  12419. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  12420. Usually this means the macro was only invoked conditionally." >&2;}
  12421. { (exit 1); exit 1; }; }
  12422. fi
  12423. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12424. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12425. Usually this means the macro was only invoked conditionally." >&5
  12426. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12427. Usually this means the macro was only invoked conditionally." >&2;}
  12428. { (exit 1); exit 1; }; }
  12429. fi
  12430. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12431. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12432. Usually this means the macro was only invoked conditionally." >&5
  12433. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12434. Usually this means the macro was only invoked conditionally." >&2;}
  12435. { (exit 1); exit 1; }; }
  12436. fi
  12437. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12438. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12439. Usually this means the macro was only invoked conditionally." >&5
  12440. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12441. Usually this means the macro was only invoked conditionally." >&2;}
  12442. { (exit 1); exit 1; }; }
  12443. fi
  12444. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12445. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12446. Usually this means the macro was only invoked conditionally." >&5
  12447. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12448. Usually this means the macro was only invoked conditionally." >&2;}
  12449. { (exit 1); exit 1; }; }
  12450. fi
  12451. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12452. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12453. Usually this means the macro was only invoked conditionally." >&5
  12454. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12455. Usually this means the macro was only invoked conditionally." >&2;}
  12456. { (exit 1); exit 1; }; }
  12457. fi
  12458. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12459. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12460. Usually this means the macro was only invoked conditionally." >&5
  12461. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12462. Usually this means the macro was only invoked conditionally." >&2;}
  12463. { (exit 1); exit 1; }; }
  12464. fi
  12465. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12466. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12467. Usually this means the macro was only invoked conditionally." >&5
  12468. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12469. Usually this means the macro was only invoked conditionally." >&2;}
  12470. { (exit 1); exit 1; }; }
  12471. fi
  12472. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12473. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12474. Usually this means the macro was only invoked conditionally." >&5
  12475. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12476. Usually this means the macro was only invoked conditionally." >&2;}
  12477. { (exit 1); exit 1; }; }
  12478. fi
  12479. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12480. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12481. Usually this means the macro was only invoked conditionally." >&5
  12482. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12483. Usually this means the macro was only invoked conditionally." >&2;}
  12484. { (exit 1); exit 1; }; }
  12485. fi
  12486. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12487. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12488. Usually this means the macro was only invoked conditionally." >&5
  12489. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12490. Usually this means the macro was only invoked conditionally." >&2;}
  12491. { (exit 1); exit 1; }; }
  12492. fi
  12493. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12494. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12495. Usually this means the macro was only invoked conditionally." >&5
  12496. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12497. Usually this means the macro was only invoked conditionally." >&2;}
  12498. { (exit 1); exit 1; }; }
  12499. fi
  12500. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12501. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12502. Usually this means the macro was only invoked conditionally." >&5
  12503. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12504. Usually this means the macro was only invoked conditionally." >&2;}
  12505. { (exit 1); exit 1; }; }
  12506. fi
  12507. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12508. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12509. Usually this means the macro was only invoked conditionally." >&5
  12510. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12511. Usually this means the macro was only invoked conditionally." >&2;}
  12512. { (exit 1); exit 1; }; }
  12513. fi
  12514. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12515. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12516. Usually this means the macro was only invoked conditionally." >&5
  12517. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12518. Usually this means the macro was only invoked conditionally." >&2;}
  12519. { (exit 1); exit 1; }; }
  12520. fi
  12521. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12522. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12523. Usually this means the macro was only invoked conditionally." >&5
  12524. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12525. Usually this means the macro was only invoked conditionally." >&2;}
  12526. { (exit 1); exit 1; }; }
  12527. fi
  12528. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12529. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12530. Usually this means the macro was only invoked conditionally." >&5
  12531. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12532. Usually this means the macro was only invoked conditionally." >&2;}
  12533. { (exit 1); exit 1; }; }
  12534. fi
  12535. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12536. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12537. Usually this means the macro was only invoked conditionally." >&5
  12538. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12539. Usually this means the macro was only invoked conditionally." >&2;}
  12540. { (exit 1); exit 1; }; }
  12541. fi
  12542. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12543. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12544. Usually this means the macro was only invoked conditionally." >&5
  12545. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12546. Usually this means the macro was only invoked conditionally." >&2;}
  12547. { (exit 1); exit 1; }; }
  12548. fi
  12549. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12550. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12551. Usually this means the macro was only invoked conditionally." >&5
  12552. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12553. Usually this means the macro was only invoked conditionally." >&2;}
  12554. { (exit 1); exit 1; }; }
  12555. fi
  12556. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12557. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12558. Usually this means the macro was only invoked conditionally." >&5
  12559. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12560. Usually this means the macro was only invoked conditionally." >&2;}
  12561. { (exit 1); exit 1; }; }
  12562. fi
  12563. : ${CONFIG_STATUS=./config.status}
  12564. ac_clean_files_save=$ac_clean_files
  12565. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12566. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12567. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12568. cat >$CONFIG_STATUS <<_ACEOF
  12569. #! $SHELL
  12570. # Generated by $as_me.
  12571. # Run this file to recreate the current configuration.
  12572. # Compiler output produced by configure, useful for debugging
  12573. # configure, is in config.log if it exists.
  12574. debug=false
  12575. ac_cs_recheck=false
  12576. ac_cs_silent=false
  12577. SHELL=\${CONFIG_SHELL-$SHELL}
  12578. _ACEOF
  12579. cat >>$CONFIG_STATUS <<\_ACEOF
  12580. ## --------------------- ##
  12581. ## M4sh Initialization. ##
  12582. ## --------------------- ##
  12583. # Be more Bourne compatible
  12584. DUALCASE=1; export DUALCASE # for MKS sh
  12585. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12586. emulate sh
  12587. NULLCMD=:
  12588. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12589. # is contrary to our usage. Disable this feature.
  12590. alias -g '${1+"$@"}'='"$@"'
  12591. setopt NO_GLOB_SUBST
  12592. else
  12593. case `(set -o) 2>/dev/null` in
  12594. *posix*) set -o posix ;;
  12595. esac
  12596. fi
  12597. # PATH needs CR
  12598. # Avoid depending upon Character Ranges.
  12599. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12600. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12601. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12602. as_cr_digits='0123456789'
  12603. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12604. # The user is always right.
  12605. if test "${PATH_SEPARATOR+set}" != set; then
  12606. echo "#! /bin/sh" >conf$$.sh
  12607. echo "exit 0" >>conf$$.sh
  12608. chmod +x conf$$.sh
  12609. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12610. PATH_SEPARATOR=';'
  12611. else
  12612. PATH_SEPARATOR=:
  12613. fi
  12614. rm -f conf$$.sh
  12615. fi
  12616. # Support unset when possible.
  12617. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12618. as_unset=unset
  12619. else
  12620. as_unset=false
  12621. fi
  12622. # IFS
  12623. # We need space, tab and new line, in precisely that order. Quoting is
  12624. # there to prevent editors from complaining about space-tab.
  12625. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12626. # splitting by setting IFS to empty value.)
  12627. as_nl='
  12628. '
  12629. IFS=" "" $as_nl"
  12630. # Find who we are. Look in the path if we contain no directory separator.
  12631. case $0 in
  12632. *[\\/]* ) as_myself=$0 ;;
  12633. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12634. for as_dir in $PATH
  12635. do
  12636. IFS=$as_save_IFS
  12637. test -z "$as_dir" && as_dir=.
  12638. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12639. done
  12640. IFS=$as_save_IFS
  12641. ;;
  12642. esac
  12643. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12644. # in which case we are not to be found in the path.
  12645. if test "x$as_myself" = x; then
  12646. as_myself=$0
  12647. fi
  12648. if test ! -f "$as_myself"; then
  12649. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12650. { (exit 1); exit 1; }
  12651. fi
  12652. # Work around bugs in pre-3.0 UWIN ksh.
  12653. for as_var in ENV MAIL MAILPATH
  12654. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12655. done
  12656. PS1='$ '
  12657. PS2='> '
  12658. PS4='+ '
  12659. # NLS nuisances.
  12660. for as_var in \
  12661. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12662. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12663. LC_TELEPHONE LC_TIME
  12664. do
  12665. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12666. eval $as_var=C; export $as_var
  12667. else
  12668. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12669. fi
  12670. done
  12671. # Required to use basename.
  12672. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12673. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12674. as_expr=expr
  12675. else
  12676. as_expr=false
  12677. fi
  12678. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12679. as_basename=basename
  12680. else
  12681. as_basename=false
  12682. fi
  12683. # Name of the executable.
  12684. as_me=`$as_basename -- "$0" ||
  12685. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12686. X"$0" : 'X\(//\)$' \| \
  12687. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12688. echo X/"$0" |
  12689. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12690. s//\1/
  12691. q
  12692. }
  12693. /^X\/\(\/\/\)$/{
  12694. s//\1/
  12695. q
  12696. }
  12697. /^X\/\(\/\).*/{
  12698. s//\1/
  12699. q
  12700. }
  12701. s/.*/./; q'`
  12702. # CDPATH.
  12703. $as_unset CDPATH
  12704. as_lineno_1=$LINENO
  12705. as_lineno_2=$LINENO
  12706. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12707. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12708. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12709. # uniformly replaced by the line number. The first 'sed' inserts a
  12710. # line-number line after each line using $LINENO; the second 'sed'
  12711. # does the real work. The second script uses 'N' to pair each
  12712. # line-number line with the line containing $LINENO, and appends
  12713. # trailing '-' during substitution so that $LINENO is not a special
  12714. # case at line end.
  12715. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12716. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12717. # E. McMahon (1931-1989) for sed's syntax. :-)
  12718. sed -n '
  12719. p
  12720. /[$]LINENO/=
  12721. ' <$as_myself |
  12722. sed '
  12723. s/[$]LINENO.*/&-/
  12724. t lineno
  12725. b
  12726. :lineno
  12727. N
  12728. :loop
  12729. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12730. t loop
  12731. s/-\n.*//
  12732. ' >$as_me.lineno &&
  12733. chmod +x "$as_me.lineno" ||
  12734. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12735. { (exit 1); exit 1; }; }
  12736. # Don't try to exec as it changes $[0], causing all sort of problems
  12737. # (the dirname of $[0] is not the place where we might find the
  12738. # original and so on. Autoconf is especially sensitive to this).
  12739. . "./$as_me.lineno"
  12740. # Exit status is that of the last command.
  12741. exit
  12742. }
  12743. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12744. as_dirname=dirname
  12745. else
  12746. as_dirname=false
  12747. fi
  12748. ECHO_C= ECHO_N= ECHO_T=
  12749. case `echo -n x` in
  12750. -n*)
  12751. case `echo 'x\c'` in
  12752. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12753. *) ECHO_C='\c';;
  12754. esac;;
  12755. *)
  12756. ECHO_N='-n';;
  12757. esac
  12758. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12759. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12760. as_expr=expr
  12761. else
  12762. as_expr=false
  12763. fi
  12764. rm -f conf$$ conf$$.exe conf$$.file
  12765. if test -d conf$$.dir; then
  12766. rm -f conf$$.dir/conf$$.file
  12767. else
  12768. rm -f conf$$.dir
  12769. mkdir conf$$.dir
  12770. fi
  12771. echo >conf$$.file
  12772. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12773. as_ln_s='ln -s'
  12774. # ... but there are two gotchas:
  12775. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12776. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12777. # In both cases, we have to default to `cp -p'.
  12778. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12779. as_ln_s='cp -p'
  12780. elif ln conf$$.file conf$$ 2>/dev/null; then
  12781. as_ln_s=ln
  12782. else
  12783. as_ln_s='cp -p'
  12784. fi
  12785. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12786. rmdir conf$$.dir 2>/dev/null
  12787. if mkdir -p . 2>/dev/null; then
  12788. as_mkdir_p=:
  12789. else
  12790. test -d ./-p && rmdir ./-p
  12791. as_mkdir_p=false
  12792. fi
  12793. if test -x / >/dev/null 2>&1; then
  12794. as_test_x='test -x'
  12795. else
  12796. if ls -dL / >/dev/null 2>&1; then
  12797. as_ls_L_option=L
  12798. else
  12799. as_ls_L_option=
  12800. fi
  12801. as_test_x='
  12802. eval sh -c '\''
  12803. if test -d "$1"; then
  12804. test -d "$1/.";
  12805. else
  12806. case $1 in
  12807. -*)set "./$1";;
  12808. esac;
  12809. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12810. ???[sx]*):;;*)false;;esac;fi
  12811. '\'' sh
  12812. '
  12813. fi
  12814. as_executable_p=$as_test_x
  12815. # Sed expression to map a string onto a valid CPP name.
  12816. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12817. # Sed expression to map a string onto a valid variable name.
  12818. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12819. exec 6>&1
  12820. # Save the log message, to keep $[0] and so on meaningful, and to
  12821. # report actual input values of CONFIG_FILES etc. instead of their
  12822. # values after options handling.
  12823. ac_log="
  12824. This file was extended by aria2c $as_me 0.12.0, which was
  12825. generated by GNU Autoconf 2.61. Invocation command line was
  12826. CONFIG_FILES = $CONFIG_FILES
  12827. CONFIG_HEADERS = $CONFIG_HEADERS
  12828. CONFIG_LINKS = $CONFIG_LINKS
  12829. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12830. $ $0 $@
  12831. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12832. "
  12833. _ACEOF
  12834. cat >>$CONFIG_STATUS <<_ACEOF
  12835. # Files that config.status was made for.
  12836. config_files="$ac_config_files"
  12837. config_headers="$ac_config_headers"
  12838. config_commands="$ac_config_commands"
  12839. _ACEOF
  12840. cat >>$CONFIG_STATUS <<\_ACEOF
  12841. ac_cs_usage="\
  12842. \`$as_me' instantiates files from templates according to the
  12843. current configuration.
  12844. Usage: $0 [OPTIONS] [FILE]...
  12845. -h, --help print this help, then exit
  12846. -V, --version print version number and configuration settings, then exit
  12847. -q, --quiet do not print progress messages
  12848. -d, --debug don't remove temporary files
  12849. --recheck update $as_me by reconfiguring in the same conditions
  12850. --file=FILE[:TEMPLATE]
  12851. instantiate the configuration file FILE
  12852. --header=FILE[:TEMPLATE]
  12853. instantiate the configuration header FILE
  12854. Configuration files:
  12855. $config_files
  12856. Configuration headers:
  12857. $config_headers
  12858. Configuration commands:
  12859. $config_commands
  12860. Report bugs to <bug-autoconf@gnu.org>."
  12861. _ACEOF
  12862. cat >>$CONFIG_STATUS <<_ACEOF
  12863. ac_cs_version="\\
  12864. aria2c config.status 0.12.0
  12865. configured by $0, generated by GNU Autoconf 2.61,
  12866. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12867. Copyright (C) 2006 Free Software Foundation, Inc.
  12868. This config.status script is free software; the Free Software Foundation
  12869. gives unlimited permission to copy, distribute and modify it."
  12870. ac_pwd='$ac_pwd'
  12871. srcdir='$srcdir'
  12872. INSTALL='$INSTALL'
  12873. _ACEOF
  12874. cat >>$CONFIG_STATUS <<\_ACEOF
  12875. # If no file are specified by the user, then we need to provide default
  12876. # value. By we need to know if files were specified by the user.
  12877. ac_need_defaults=:
  12878. while test $# != 0
  12879. do
  12880. case $1 in
  12881. --*=*)
  12882. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12883. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12884. ac_shift=:
  12885. ;;
  12886. *)
  12887. ac_option=$1
  12888. ac_optarg=$2
  12889. ac_shift=shift
  12890. ;;
  12891. esac
  12892. case $ac_option in
  12893. # Handling of the options.
  12894. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12895. ac_cs_recheck=: ;;
  12896. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12897. echo "$ac_cs_version"; exit ;;
  12898. --debug | --debu | --deb | --de | --d | -d )
  12899. debug=: ;;
  12900. --file | --fil | --fi | --f )
  12901. $ac_shift
  12902. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12903. ac_need_defaults=false;;
  12904. --header | --heade | --head | --hea )
  12905. $ac_shift
  12906. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12907. ac_need_defaults=false;;
  12908. --he | --h)
  12909. # Conflict between --help and --header
  12910. { echo "$as_me: error: ambiguous option: $1
  12911. Try \`$0 --help' for more information." >&2
  12912. { (exit 1); exit 1; }; };;
  12913. --help | --hel | -h )
  12914. echo "$ac_cs_usage"; exit ;;
  12915. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12916. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12917. ac_cs_silent=: ;;
  12918. # This is an error.
  12919. -*) { echo "$as_me: error: unrecognized option: $1
  12920. Try \`$0 --help' for more information." >&2
  12921. { (exit 1); exit 1; }; } ;;
  12922. *) ac_config_targets="$ac_config_targets $1"
  12923. ac_need_defaults=false ;;
  12924. esac
  12925. shift
  12926. done
  12927. ac_configure_extra_args=
  12928. if $ac_cs_silent; then
  12929. exec 6>/dev/null
  12930. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12931. fi
  12932. _ACEOF
  12933. cat >>$CONFIG_STATUS <<_ACEOF
  12934. if \$ac_cs_recheck; then
  12935. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12936. CONFIG_SHELL=$SHELL
  12937. export CONFIG_SHELL
  12938. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12939. fi
  12940. _ACEOF
  12941. cat >>$CONFIG_STATUS <<\_ACEOF
  12942. exec 5>>config.log
  12943. {
  12944. echo
  12945. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12946. ## Running $as_me. ##
  12947. _ASBOX
  12948. echo "$ac_log"
  12949. } >&5
  12950. _ACEOF
  12951. cat >>$CONFIG_STATUS <<_ACEOF
  12952. #
  12953. # INIT-COMMANDS
  12954. #
  12955. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12956. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12957. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12958. # from automake.
  12959. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12960. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12961. LINGUAS="${LINGUAS-%UNSET%}"
  12962. _ACEOF
  12963. cat >>$CONFIG_STATUS <<\_ACEOF
  12964. # Handling of arguments.
  12965. for ac_config_target in $ac_config_targets
  12966. do
  12967. case $ac_config_target in
  12968. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12969. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12970. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12971. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12972. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12973. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12974. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12975. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12976. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12977. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12978. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12979. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12980. { (exit 1); exit 1; }; };;
  12981. esac
  12982. done
  12983. # If the user did not use the arguments to specify the items to instantiate,
  12984. # then the envvar interface is used. Set only those that are not.
  12985. # We use the long form for the default assignment because of an extremely
  12986. # bizarre bug on SunOS 4.1.3.
  12987. if $ac_need_defaults; then
  12988. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12989. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12990. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12991. fi
  12992. # Have a temporary directory for convenience. Make it in the build tree
  12993. # simply because there is no reason against having it here, and in addition,
  12994. # creating and moving files from /tmp can sometimes cause problems.
  12995. # Hook for its removal unless debugging.
  12996. # Note that there is a small window in which the directory will not be cleaned:
  12997. # after its creation but before its name has been assigned to `$tmp'.
  12998. $debug ||
  12999. {
  13000. tmp=
  13001. trap 'exit_status=$?
  13002. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13003. ' 0
  13004. trap '{ (exit 1); exit 1; }' 1 2 13 15
  13005. }
  13006. # Create a (secure) tmp directory for tmp files.
  13007. {
  13008. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13009. test -n "$tmp" && test -d "$tmp"
  13010. } ||
  13011. {
  13012. tmp=./conf$$-$RANDOM
  13013. (umask 077 && mkdir "$tmp")
  13014. } ||
  13015. {
  13016. echo "$me: cannot create a temporary directory in ." >&2
  13017. { (exit 1); exit 1; }
  13018. }
  13019. #
  13020. # Set up the sed scripts for CONFIG_FILES section.
  13021. #
  13022. # No need to generate the scripts if there are no CONFIG_FILES.
  13023. # This happens for instance when ./config.status config.h
  13024. if test -n "$CONFIG_FILES"; then
  13025. _ACEOF
  13026. ac_delim='%!_!# '
  13027. for ac_last_try in false false false false false :; do
  13028. cat >conf$$subs.sed <<_ACEOF
  13029. SHELL!$SHELL$ac_delim
  13030. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  13031. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  13032. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  13033. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  13034. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  13035. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  13036. exec_prefix!$exec_prefix$ac_delim
  13037. prefix!$prefix$ac_delim
  13038. program_transform_name!$program_transform_name$ac_delim
  13039. bindir!$bindir$ac_delim
  13040. sbindir!$sbindir$ac_delim
  13041. libexecdir!$libexecdir$ac_delim
  13042. datarootdir!$datarootdir$ac_delim
  13043. datadir!$datadir$ac_delim
  13044. sysconfdir!$sysconfdir$ac_delim
  13045. sharedstatedir!$sharedstatedir$ac_delim
  13046. localstatedir!$localstatedir$ac_delim
  13047. includedir!$includedir$ac_delim
  13048. oldincludedir!$oldincludedir$ac_delim
  13049. docdir!$docdir$ac_delim
  13050. infodir!$infodir$ac_delim
  13051. htmldir!$htmldir$ac_delim
  13052. dvidir!$dvidir$ac_delim
  13053. pdfdir!$pdfdir$ac_delim
  13054. psdir!$psdir$ac_delim
  13055. libdir!$libdir$ac_delim
  13056. localedir!$localedir$ac_delim
  13057. mandir!$mandir$ac_delim
  13058. DEFS!$DEFS$ac_delim
  13059. ECHO_C!$ECHO_C$ac_delim
  13060. ECHO_N!$ECHO_N$ac_delim
  13061. ECHO_T!$ECHO_T$ac_delim
  13062. LIBS!$LIBS$ac_delim
  13063. build_alias!$build_alias$ac_delim
  13064. host_alias!$host_alias$ac_delim
  13065. target_alias!$target_alias$ac_delim
  13066. build!$build$ac_delim
  13067. build_cpu!$build_cpu$ac_delim
  13068. build_vendor!$build_vendor$ac_delim
  13069. build_os!$build_os$ac_delim
  13070. host!$host$ac_delim
  13071. host_cpu!$host_cpu$ac_delim
  13072. host_vendor!$host_vendor$ac_delim
  13073. host_os!$host_os$ac_delim
  13074. target!$target$ac_delim
  13075. target_cpu!$target_cpu$ac_delim
  13076. target_vendor!$target_vendor$ac_delim
  13077. target_os!$target_os$ac_delim
  13078. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  13079. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  13080. INSTALL_DATA!$INSTALL_DATA$ac_delim
  13081. CYGPATH_W!$CYGPATH_W$ac_delim
  13082. PACKAGE!$PACKAGE$ac_delim
  13083. VERSION!$VERSION$ac_delim
  13084. ACLOCAL!$ACLOCAL$ac_delim
  13085. AUTOCONF!$AUTOCONF$ac_delim
  13086. AUTOMAKE!$AUTOMAKE$ac_delim
  13087. AUTOHEADER!$AUTOHEADER$ac_delim
  13088. MAKEINFO!$MAKEINFO$ac_delim
  13089. install_sh!$install_sh$ac_delim
  13090. STRIP!$STRIP$ac_delim
  13091. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  13092. mkdir_p!$mkdir_p$ac_delim
  13093. AWK!$AWK$ac_delim
  13094. SET_MAKE!$SET_MAKE$ac_delim
  13095. am__leading_dot!$am__leading_dot$ac_delim
  13096. AMTAR!$AMTAR$ac_delim
  13097. am__tar!$am__tar$ac_delim
  13098. am__untar!$am__untar$ac_delim
  13099. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  13100. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  13101. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  13102. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  13103. CXX!$CXX$ac_delim
  13104. CXXFLAGS!$CXXFLAGS$ac_delim
  13105. LDFLAGS!$LDFLAGS$ac_delim
  13106. CPPFLAGS!$CPPFLAGS$ac_delim
  13107. ac_ct_CXX!$ac_ct_CXX$ac_delim
  13108. EXEEXT!$EXEEXT$ac_delim
  13109. OBJEXT!$OBJEXT$ac_delim
  13110. DEPDIR!$DEPDIR$ac_delim
  13111. am__include!$am__include$ac_delim
  13112. am__quote!$am__quote$ac_delim
  13113. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  13114. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  13115. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  13116. CXXDEPMODE!$CXXDEPMODE$ac_delim
  13117. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  13118. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  13119. CC!$CC$ac_delim
  13120. CFLAGS!$CFLAGS$ac_delim
  13121. ac_ct_CC!$ac_ct_CC$ac_delim
  13122. CCDEPMODE!$CCDEPMODE$ac_delim
  13123. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  13124. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  13125. RANLIB!$RANLIB$ac_delim
  13126. _ACEOF
  13127. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  13128. break
  13129. elif $ac_last_try; then
  13130. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13131. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13132. { (exit 1); exit 1; }; }
  13133. else
  13134. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13135. fi
  13136. done
  13137. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  13138. if test -n "$ac_eof"; then
  13139. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  13140. ac_eof=`expr $ac_eof + 1`
  13141. fi
  13142. cat >>$CONFIG_STATUS <<_ACEOF
  13143. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  13144. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13145. _ACEOF
  13146. sed '
  13147. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  13148. s/^/s,@/; s/!/@,|#_!!_#|/
  13149. :n
  13150. t n
  13151. s/'"$ac_delim"'$/,g/; t
  13152. s/$/\\/; p
  13153. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  13154. ' >>$CONFIG_STATUS <conf$$subs.sed
  13155. rm -f conf$$subs.sed
  13156. cat >>$CONFIG_STATUS <<_ACEOF
  13157. CEOF$ac_eof
  13158. _ACEOF
  13159. ac_delim='%!_!# '
  13160. for ac_last_try in false false false false false :; do
  13161. cat >conf$$subs.sed <<_ACEOF
  13162. YACC!$YACC$ac_delim
  13163. YFLAGS!$YFLAGS$ac_delim
  13164. XML2_CONFIG!$XML2_CONFIG$ac_delim
  13165. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  13166. XML_LIBS!$XML_LIBS$ac_delim
  13167. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  13168. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  13169. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  13170. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  13171. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  13172. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  13173. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  13174. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  13175. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  13176. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  13177. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  13178. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  13179. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  13180. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  13181. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  13182. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  13183. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  13184. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  13185. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  13186. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  13187. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  13188. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  13189. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  13190. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  13191. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  13192. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  13193. ALLOCA!$ALLOCA$ac_delim
  13194. CXXCPP!$CXXCPP$ac_delim
  13195. GREP!$GREP$ac_delim
  13196. EGREP!$EGREP$ac_delim
  13197. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  13198. USE_NLS!$USE_NLS$ac_delim
  13199. MSGFMT!$MSGFMT$ac_delim
  13200. GMSGFMT!$GMSGFMT$ac_delim
  13201. XGETTEXT!$XGETTEXT$ac_delim
  13202. MSGMERGE!$MSGMERGE$ac_delim
  13203. GLIBC21!$GLIBC21$ac_delim
  13204. LIBICONV!$LIBICONV$ac_delim
  13205. LTLIBICONV!$LTLIBICONV$ac_delim
  13206. INTLBISON!$INTLBISON$ac_delim
  13207. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  13208. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  13209. CATOBJEXT!$CATOBJEXT$ac_delim
  13210. DATADIRNAME!$DATADIRNAME$ac_delim
  13211. INSTOBJEXT!$INSTOBJEXT$ac_delim
  13212. GENCAT!$GENCAT$ac_delim
  13213. INTLOBJS!$INTLOBJS$ac_delim
  13214. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  13215. INTLLIBS!$INTLLIBS$ac_delim
  13216. LIBINTL!$LIBINTL$ac_delim
  13217. LTLIBINTL!$LTLIBINTL$ac_delim
  13218. POSUB!$POSUB$ac_delim
  13219. LIBOBJS!$LIBOBJS$ac_delim
  13220. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  13221. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  13222. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  13223. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  13224. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  13225. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  13226. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  13227. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  13228. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  13229. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  13230. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  13231. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  13232. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  13233. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  13234. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  13235. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  13236. LTLIBOBJS!$LTLIBOBJS$ac_delim
  13237. _ACEOF
  13238. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
  13239. break
  13240. elif $ac_last_try; then
  13241. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13242. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13243. { (exit 1); exit 1; }; }
  13244. else
  13245. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13246. fi
  13247. done
  13248. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  13249. if test -n "$ac_eof"; then
  13250. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  13251. ac_eof=`expr $ac_eof + 1`
  13252. fi
  13253. cat >>$CONFIG_STATUS <<_ACEOF
  13254. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  13255. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  13256. _ACEOF
  13257. sed '
  13258. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  13259. s/^/s,@/; s/!/@,|#_!!_#|/
  13260. :n
  13261. t n
  13262. s/'"$ac_delim"'$/,g/; t
  13263. s/$/\\/; p
  13264. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  13265. ' >>$CONFIG_STATUS <conf$$subs.sed
  13266. rm -f conf$$subs.sed
  13267. cat >>$CONFIG_STATUS <<_ACEOF
  13268. :end
  13269. s/|#_!!_#|//g
  13270. CEOF$ac_eof
  13271. _ACEOF
  13272. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13273. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13274. # trailing colons and then remove the whole line if VPATH becomes empty
  13275. # (actually we leave an empty line to preserve line numbers).
  13276. if test "x$srcdir" = x.; then
  13277. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13278. s/:*\$(srcdir):*/:/
  13279. s/:*\${srcdir}:*/:/
  13280. s/:*@srcdir@:*/:/
  13281. s/^\([^=]*=[ ]*\):*/\1/
  13282. s/:*$//
  13283. s/^[^=]*=[ ]*$//
  13284. }'
  13285. fi
  13286. cat >>$CONFIG_STATUS <<\_ACEOF
  13287. fi # test -n "$CONFIG_FILES"
  13288. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  13289. do
  13290. case $ac_tag in
  13291. :[FHLC]) ac_mode=$ac_tag; continue;;
  13292. esac
  13293. case $ac_mode$ac_tag in
  13294. :[FHL]*:*);;
  13295. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  13296. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  13297. { (exit 1); exit 1; }; };;
  13298. :[FH]-) ac_tag=-:-;;
  13299. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13300. esac
  13301. ac_save_IFS=$IFS
  13302. IFS=:
  13303. set x $ac_tag
  13304. IFS=$ac_save_IFS
  13305. shift
  13306. ac_file=$1
  13307. shift
  13308. case $ac_mode in
  13309. :L) ac_source=$1;;
  13310. :[FH])
  13311. ac_file_inputs=
  13312. for ac_f
  13313. do
  13314. case $ac_f in
  13315. -) ac_f="$tmp/stdin";;
  13316. *) # Look for the file first in the build tree, then in the source tree
  13317. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13318. # because $ac_f cannot contain `:'.
  13319. test -f "$ac_f" ||
  13320. case $ac_f in
  13321. [\\/$]*) false;;
  13322. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13323. esac ||
  13324. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13325. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13326. { (exit 1); exit 1; }; };;
  13327. esac
  13328. ac_file_inputs="$ac_file_inputs $ac_f"
  13329. done
  13330. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13331. # use $as_me), people would be surprised to read:
  13332. # /* config.h. Generated by config.status. */
  13333. configure_input="Generated from "`IFS=:
  13334. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  13335. if test x"$ac_file" != x-; then
  13336. configure_input="$ac_file. $configure_input"
  13337. { echo "$as_me:$LINENO: creating $ac_file" >&5
  13338. echo "$as_me: creating $ac_file" >&6;}
  13339. fi
  13340. case $ac_tag in
  13341. *:-:* | *:-) cat >"$tmp/stdin";;
  13342. esac
  13343. ;;
  13344. esac
  13345. ac_dir=`$as_dirname -- "$ac_file" ||
  13346. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13347. X"$ac_file" : 'X\(//\)[^/]' \| \
  13348. X"$ac_file" : 'X\(//\)$' \| \
  13349. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13350. echo X"$ac_file" |
  13351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13352. s//\1/
  13353. q
  13354. }
  13355. /^X\(\/\/\)[^/].*/{
  13356. s//\1/
  13357. q
  13358. }
  13359. /^X\(\/\/\)$/{
  13360. s//\1/
  13361. q
  13362. }
  13363. /^X\(\/\).*/{
  13364. s//\1/
  13365. q
  13366. }
  13367. s/.*/./; q'`
  13368. { as_dir="$ac_dir"
  13369. case $as_dir in #(
  13370. -*) as_dir=./$as_dir;;
  13371. esac
  13372. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13373. as_dirs=
  13374. while :; do
  13375. case $as_dir in #(
  13376. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13377. *) as_qdir=$as_dir;;
  13378. esac
  13379. as_dirs="'$as_qdir' $as_dirs"
  13380. as_dir=`$as_dirname -- "$as_dir" ||
  13381. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13382. X"$as_dir" : 'X\(//\)[^/]' \| \
  13383. X"$as_dir" : 'X\(//\)$' \| \
  13384. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13385. echo X"$as_dir" |
  13386. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13387. s//\1/
  13388. q
  13389. }
  13390. /^X\(\/\/\)[^/].*/{
  13391. s//\1/
  13392. q
  13393. }
  13394. /^X\(\/\/\)$/{
  13395. s//\1/
  13396. q
  13397. }
  13398. /^X\(\/\).*/{
  13399. s//\1/
  13400. q
  13401. }
  13402. s/.*/./; q'`
  13403. test -d "$as_dir" && break
  13404. done
  13405. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13406. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13407. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13408. { (exit 1); exit 1; }; }; }
  13409. ac_builddir=.
  13410. case "$ac_dir" in
  13411. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13412. *)
  13413. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13414. # A ".." for each directory in $ac_dir_suffix.
  13415. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  13416. case $ac_top_builddir_sub in
  13417. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13418. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13419. esac ;;
  13420. esac
  13421. ac_abs_top_builddir=$ac_pwd
  13422. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13423. # for backward compatibility:
  13424. ac_top_builddir=$ac_top_build_prefix
  13425. case $srcdir in
  13426. .) # We are building in place.
  13427. ac_srcdir=.
  13428. ac_top_srcdir=$ac_top_builddir_sub
  13429. ac_abs_top_srcdir=$ac_pwd ;;
  13430. [\\/]* | ?:[\\/]* ) # Absolute name.
  13431. ac_srcdir=$srcdir$ac_dir_suffix;
  13432. ac_top_srcdir=$srcdir
  13433. ac_abs_top_srcdir=$srcdir ;;
  13434. *) # Relative name.
  13435. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13436. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13437. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13438. esac
  13439. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13440. case $ac_mode in
  13441. :F)
  13442. #
  13443. # CONFIG_FILE
  13444. #
  13445. case $INSTALL in
  13446. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13447. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13448. esac
  13449. _ACEOF
  13450. cat >>$CONFIG_STATUS <<\_ACEOF
  13451. # If the template does not know about datarootdir, expand it.
  13452. # FIXME: This hack should be removed a few years after 2.60.
  13453. ac_datarootdir_hack=; ac_datarootdir_seen=
  13454. case `sed -n '/datarootdir/ {
  13455. p
  13456. q
  13457. }
  13458. /@datadir@/p
  13459. /@docdir@/p
  13460. /@infodir@/p
  13461. /@localedir@/p
  13462. /@mandir@/p
  13463. ' $ac_file_inputs` in
  13464. *datarootdir*) ac_datarootdir_seen=yes;;
  13465. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13466. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13467. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13468. _ACEOF
  13469. cat >>$CONFIG_STATUS <<_ACEOF
  13470. ac_datarootdir_hack='
  13471. s&@datadir@&$datadir&g
  13472. s&@docdir@&$docdir&g
  13473. s&@infodir@&$infodir&g
  13474. s&@localedir@&$localedir&g
  13475. s&@mandir@&$mandir&g
  13476. s&\\\${datarootdir}&$datarootdir&g' ;;
  13477. esac
  13478. _ACEOF
  13479. # Neutralize VPATH when `$srcdir' = `.'.
  13480. # Shell code in configure.ac might set extrasub.
  13481. # FIXME: do we really want to maintain this feature?
  13482. cat >>$CONFIG_STATUS <<_ACEOF
  13483. sed "$ac_vpsub
  13484. $extrasub
  13485. _ACEOF
  13486. cat >>$CONFIG_STATUS <<\_ACEOF
  13487. :t
  13488. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13489. s&@configure_input@&$configure_input&;t t
  13490. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13491. s&@srcdir@&$ac_srcdir&;t t
  13492. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13493. s&@top_srcdir@&$ac_top_srcdir&;t t
  13494. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13495. s&@builddir@&$ac_builddir&;t t
  13496. s&@abs_builddir@&$ac_abs_builddir&;t t
  13497. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13498. s&@INSTALL@&$ac_INSTALL&;t t
  13499. $ac_datarootdir_hack
  13500. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13501. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13502. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13503. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13504. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13505. which seems to be undefined. Please make sure it is defined." >&5
  13506. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13507. which seems to be undefined. Please make sure it is defined." >&2;}
  13508. rm -f "$tmp/stdin"
  13509. case $ac_file in
  13510. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13511. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13512. esac
  13513. ;;
  13514. :H)
  13515. #
  13516. # CONFIG_HEADER
  13517. #
  13518. _ACEOF
  13519. # Transform confdefs.h into a sed script `conftest.defines', that
  13520. # substitutes the proper values into config.h.in to produce config.h.
  13521. rm -f conftest.defines conftest.tail
  13522. # First, append a space to every undef/define line, to ease matching.
  13523. echo 's/$/ /' >conftest.defines
  13524. # Then, protect against being on the right side of a sed subst, or in
  13525. # an unquoted here document, in config.status. If some macros were
  13526. # called several times there might be several #defines for the same
  13527. # symbol, which is useless. But do not sort them, since the last
  13528. # AC_DEFINE must be honored.
  13529. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13530. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13531. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13532. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13533. # just an empty string.
  13534. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13535. ac_dB='\\)[ (].*,\\1define\\2'
  13536. ac_dC=' '
  13537. ac_dD=' ,'
  13538. uniq confdefs.h |
  13539. sed -n '
  13540. t rset
  13541. :rset
  13542. s/^[ ]*#[ ]*define[ ][ ]*//
  13543. t ok
  13544. d
  13545. :ok
  13546. s/[\\&,]/\\&/g
  13547. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13548. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13549. ' >>conftest.defines
  13550. # Remove the space that was appended to ease matching.
  13551. # Then replace #undef with comments. This is necessary, for
  13552. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13553. # on some systems where configure will not decide to define it.
  13554. # (The regexp can be short, since the line contains either #define or #undef.)
  13555. echo 's/ $//
  13556. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13557. # Break up conftest.defines:
  13558. ac_max_sed_lines=50
  13559. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13560. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13561. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13562. # et cetera.
  13563. ac_in='$ac_file_inputs'
  13564. ac_out='"$tmp/out1"'
  13565. ac_nxt='"$tmp/out2"'
  13566. while :
  13567. do
  13568. # Write a here document:
  13569. cat >>$CONFIG_STATUS <<_ACEOF
  13570. # First, check the format of the line:
  13571. cat >"\$tmp/defines.sed" <<\\CEOF
  13572. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13573. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13574. b
  13575. :def
  13576. _ACEOF
  13577. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13578. echo 'CEOF
  13579. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13580. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13581. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13582. grep . conftest.tail >/dev/null || break
  13583. rm -f conftest.defines
  13584. mv conftest.tail conftest.defines
  13585. done
  13586. rm -f conftest.defines conftest.tail
  13587. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13588. cat >>$CONFIG_STATUS <<\_ACEOF
  13589. if test x"$ac_file" != x-; then
  13590. echo "/* $configure_input */" >"$tmp/config.h"
  13591. cat "$ac_result" >>"$tmp/config.h"
  13592. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13593. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13594. echo "$as_me: $ac_file is unchanged" >&6;}
  13595. else
  13596. rm -f $ac_file
  13597. mv "$tmp/config.h" $ac_file
  13598. fi
  13599. else
  13600. echo "/* $configure_input */"
  13601. cat "$ac_result"
  13602. fi
  13603. rm -f "$tmp/out12"
  13604. # Compute $ac_file's index in $config_headers.
  13605. _am_stamp_count=1
  13606. for _am_header in $config_headers :; do
  13607. case $_am_header in
  13608. $ac_file | $ac_file:* )
  13609. break ;;
  13610. * )
  13611. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13612. esac
  13613. done
  13614. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13615. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13616. X$ac_file : 'X\(//\)[^/]' \| \
  13617. X$ac_file : 'X\(//\)$' \| \
  13618. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13619. echo X$ac_file |
  13620. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13621. s//\1/
  13622. q
  13623. }
  13624. /^X\(\/\/\)[^/].*/{
  13625. s//\1/
  13626. q
  13627. }
  13628. /^X\(\/\/\)$/{
  13629. s//\1/
  13630. q
  13631. }
  13632. /^X\(\/\).*/{
  13633. s//\1/
  13634. q
  13635. }
  13636. s/.*/./; q'`/stamp-h$_am_stamp_count
  13637. ;;
  13638. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13639. echo "$as_me: executing $ac_file commands" >&6;}
  13640. ;;
  13641. esac
  13642. case $ac_file$ac_mode in
  13643. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13644. # Strip MF so we end up with the name of the file.
  13645. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13646. # Check whether this is an Automake generated Makefile or not.
  13647. # We used to match only the files named `Makefile.in', but
  13648. # some people rename them; so instead we look at the file content.
  13649. # Grep'ing the first line is not enough: some people post-process
  13650. # each Makefile.in and add a new line on top of each file to say so.
  13651. # So let's grep whole file.
  13652. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13653. dirpart=`$as_dirname -- "$mf" ||
  13654. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13655. X"$mf" : 'X\(//\)[^/]' \| \
  13656. X"$mf" : 'X\(//\)$' \| \
  13657. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13658. echo X"$mf" |
  13659. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13660. s//\1/
  13661. q
  13662. }
  13663. /^X\(\/\/\)[^/].*/{
  13664. s//\1/
  13665. q
  13666. }
  13667. /^X\(\/\/\)$/{
  13668. s//\1/
  13669. q
  13670. }
  13671. /^X\(\/\).*/{
  13672. s//\1/
  13673. q
  13674. }
  13675. s/.*/./; q'`
  13676. else
  13677. continue
  13678. fi
  13679. # Extract the definition of DEPDIR, am__include, and am__quote
  13680. # from the Makefile without running `make'.
  13681. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13682. test -z "$DEPDIR" && continue
  13683. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13684. test -z "am__include" && continue
  13685. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13686. # When using ansi2knr, U may be empty or an underscore; expand it
  13687. U=`sed -n 's/^U = //p' < "$mf"`
  13688. # Find all dependency output files, they are included files with
  13689. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13690. # simplest approach to changing $(DEPDIR) to its actual value in the
  13691. # expansion.
  13692. for file in `sed -n "
  13693. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13694. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13695. # Make sure the directory exists.
  13696. test -f "$dirpart/$file" && continue
  13697. fdir=`$as_dirname -- "$file" ||
  13698. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13699. X"$file" : 'X\(//\)[^/]' \| \
  13700. X"$file" : 'X\(//\)$' \| \
  13701. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13702. echo X"$file" |
  13703. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13704. s//\1/
  13705. q
  13706. }
  13707. /^X\(\/\/\)[^/].*/{
  13708. s//\1/
  13709. q
  13710. }
  13711. /^X\(\/\/\)$/{
  13712. s//\1/
  13713. q
  13714. }
  13715. /^X\(\/\).*/{
  13716. s//\1/
  13717. q
  13718. }
  13719. s/.*/./; q'`
  13720. { as_dir=$dirpart/$fdir
  13721. case $as_dir in #(
  13722. -*) as_dir=./$as_dir;;
  13723. esac
  13724. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13725. as_dirs=
  13726. while :; do
  13727. case $as_dir in #(
  13728. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13729. *) as_qdir=$as_dir;;
  13730. esac
  13731. as_dirs="'$as_qdir' $as_dirs"
  13732. as_dir=`$as_dirname -- "$as_dir" ||
  13733. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13734. X"$as_dir" : 'X\(//\)[^/]' \| \
  13735. X"$as_dir" : 'X\(//\)$' \| \
  13736. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13737. echo X"$as_dir" |
  13738. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13739. s//\1/
  13740. q
  13741. }
  13742. /^X\(\/\/\)[^/].*/{
  13743. s//\1/
  13744. q
  13745. }
  13746. /^X\(\/\/\)$/{
  13747. s//\1/
  13748. q
  13749. }
  13750. /^X\(\/\).*/{
  13751. s//\1/
  13752. q
  13753. }
  13754. s/.*/./; q'`
  13755. test -d "$as_dir" && break
  13756. done
  13757. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13758. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13759. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13760. { (exit 1); exit 1; }; }; }
  13761. # echo "creating $dirpart/$file"
  13762. echo '# dummy' > "$dirpart/$file"
  13763. done
  13764. done
  13765. ;;
  13766. "default-1":C)
  13767. for ac_file in $CONFIG_FILES; do
  13768. # Support "outfile[:infile[:infile...]]"
  13769. case "$ac_file" in
  13770. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13771. esac
  13772. # PO directories have a Makefile.in generated from Makefile.in.in.
  13773. case "$ac_file" in */Makefile.in)
  13774. # Adjust a relative srcdir.
  13775. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13776. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13777. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13778. # In autoconf-2.13 it is called $ac_given_srcdir.
  13779. # In autoconf-2.50 it is called $srcdir.
  13780. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13781. case "$ac_given_srcdir" in
  13782. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13783. /*) top_srcdir="$ac_given_srcdir" ;;
  13784. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13785. esac
  13786. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13787. rm -f "$ac_dir/POTFILES"
  13788. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13789. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13790. POMAKEFILEDEPS="POTFILES.in"
  13791. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13792. # on $ac_dir but don't depend on user-specified configuration
  13793. # parameters.
  13794. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13795. # The LINGUAS file contains the set of available languages.
  13796. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13797. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13798. fi
  13799. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13800. # Hide the ALL_LINGUAS assigment from automake.
  13801. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13802. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13803. else
  13804. # The set of available languages was given in configure.in.
  13805. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13806. fi
  13807. case "$ac_given_srcdir" in
  13808. .) srcdirpre= ;;
  13809. *) srcdirpre='$(srcdir)/' ;;
  13810. esac
  13811. POFILES=
  13812. GMOFILES=
  13813. UPDATEPOFILES=
  13814. DUMMYPOFILES=
  13815. for lang in $ALL_LINGUAS; do
  13816. POFILES="$POFILES $srcdirpre$lang.po"
  13817. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13818. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13819. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13820. done
  13821. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13822. # environment variable.
  13823. INST_LINGUAS=
  13824. if test -n "$ALL_LINGUAS"; then
  13825. for presentlang in $ALL_LINGUAS; do
  13826. useit=no
  13827. if test "%UNSET%" != "$LINGUAS"; then
  13828. desiredlanguages="$LINGUAS"
  13829. else
  13830. desiredlanguages="$ALL_LINGUAS"
  13831. fi
  13832. for desiredlang in $desiredlanguages; do
  13833. # Use the presentlang catalog if desiredlang is
  13834. # a. equal to presentlang, or
  13835. # b. a variant of presentlang (because in this case,
  13836. # presentlang can be used as a fallback for messages
  13837. # which are not translated in the desiredlang catalog).
  13838. case "$desiredlang" in
  13839. "$presentlang"*) useit=yes;;
  13840. esac
  13841. done
  13842. if test $useit = yes; then
  13843. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13844. fi
  13845. done
  13846. fi
  13847. CATALOGS=
  13848. if test -n "$INST_LINGUAS"; then
  13849. for lang in $INST_LINGUAS; do
  13850. CATALOGS="$CATALOGS $lang.gmo"
  13851. done
  13852. fi
  13853. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13854. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  13855. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13856. if test -f "$f"; then
  13857. case "$f" in
  13858. *.orig | *.bak | *~) ;;
  13859. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13860. esac
  13861. fi
  13862. done
  13863. fi
  13864. ;;
  13865. esac
  13866. done ;;
  13867. esac
  13868. done # for ac_tag
  13869. { (exit 0); exit 0; }
  13870. _ACEOF
  13871. chmod +x $CONFIG_STATUS
  13872. ac_clean_files=$ac_clean_files_save
  13873. # configure is writing to config.log, and then calls config.status.
  13874. # config.status does its own redirection, appending to config.log.
  13875. # Unfortunately, on DOS this fails, as config.log is still kept open
  13876. # by configure, so config.status won't be able to write to it; its
  13877. # output is simply discarded. So we exec the FD to /dev/null,
  13878. # effectively closing config.log, so it can be properly (re)opened and
  13879. # appended to by config.status. When coming back to configure, we
  13880. # need to make the FD available again.
  13881. if test "$no_create" != yes; then
  13882. ac_cs_success=:
  13883. ac_config_status_args=
  13884. test "$silent" = yes &&
  13885. ac_config_status_args="$ac_config_status_args --quiet"
  13886. exec 5>/dev/null
  13887. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13888. exec 5>>config.log
  13889. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13890. # would make configure fail if this is the last instruction.
  13891. $ac_cs_success || { (exit 1); exit 1; }
  13892. fi
  13893. echo " "
  13894. echo "Build: $build"
  13895. echo "Target: $target"
  13896. echo "Install prefix: $prefix"
  13897. echo "CFLAGS: $CFLAGS"
  13898. echo "CPPFLAGS: $CPPFLAGS"
  13899. echo "LDFLAGS: $LDFLAGS"
  13900. echo "LIBS: $LIBS"
  13901. echo "GnuTLS: $have_libgnutls"
  13902. echo "OpenSSL: $have_openssl"
  13903. echo "LibXML2: $have_libxml2"
  13904. echo "LibExpat: $have_libexpat"
  13905. echo "LibAres: $have_libares"
  13906. echo "LibCares: $have_libcares"
  13907. echo "Bittorrent: $enable_bittorrent"
  13908. echo "Metalink: $enable_metalink"