configure 440 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.12.0rc.
  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.0rc'
  496. PACKAGE_STRING='aria2c 0.12.0rc'
  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. LIBGNUTLS_CONFIG
  637. LIBGNUTLS_CFLAGS
  638. LIBGNUTLS_LIBS
  639. LIBGCRYPT_CONFIG
  640. LIBGCRYPT_CFLAGS
  641. LIBGCRYPT_LIBS
  642. OPENSSL_LIBS
  643. OPENSSL_CFLAGS
  644. LIBCARES_LIBS
  645. LIBCARES_CPPFLAGS
  646. LIBARES_LIBS
  647. LIBARES_CPPFLAGS
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. ENABLE_MESSAGE_DIGEST_FALSE
  650. ENABLE_BITTORRENT_TRUE
  651. ENABLE_BITTORRENT_FALSE
  652. ENABLE_METALINK_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_ASYNC_DNS_TRUE
  655. ENABLE_ASYNC_DNS_FALSE
  656. ALLOCA
  657. CPP
  658. GREP
  659. EGREP
  660. MKINSTALLDIRS
  661. USE_NLS
  662. MSGFMT
  663. GMSGFMT
  664. XGETTEXT
  665. MSGMERGE
  666. GLIBC21
  667. LIBICONV
  668. LTLIBICONV
  669. INTLBISON
  670. BUILD_INCLUDED_LIBINTL
  671. USE_INCLUDED_LIBINTL
  672. CATOBJEXT
  673. DATADIRNAME
  674. INSTOBJEXT
  675. GENCAT
  676. INTLOBJS
  677. INTL_LIBTOOL_SUFFIX_PREFIX
  678. INTLLIBS
  679. LIBINTL
  680. LTLIBINTL
  681. POSUB
  682. LIBOBJS
  683. HAVE_BASENAME_TRUE
  684. HAVE_BASENAME_FALSE
  685. HAVE_GAI_STRERROR_TRUE
  686. HAVE_GAI_STRERROR_FALSE
  687. HAVE_GETADDRINFO_TRUE
  688. HAVE_GETADDRINFO_FALSE
  689. HAVE_GETTIMEOFDAY_TRUE
  690. HAVE_GETTIMEOFDAY_FALSE
  691. HAVE_INET_ATON_TRUE
  692. HAVE_INET_ATON_FALSE
  693. HAVE_LOCALTIME_R_TRUE
  694. HAVE_LOCALTIME_R_FALSE
  695. HAVE_STRPTIME_TRUE
  696. HAVE_STRPTIME_FALSE
  697. HAVE_TIMEGM_TRUE
  698. HAVE_TIMEGM_FALSE
  699. LTLIBOBJS'
  700. ac_subst_files=''
  701. ac_precious_vars='build_alias
  702. host_alias
  703. target_alias
  704. CXX
  705. CXXFLAGS
  706. LDFLAGS
  707. LIBS
  708. CPPFLAGS
  709. CCC
  710. CC
  711. CFLAGS
  712. YACC
  713. YFLAGS
  714. CPP'
  715. # Initialize some variables set by options.
  716. ac_init_help=
  717. ac_init_version=false
  718. # The variables have the same names as the options, with
  719. # dashes changed to underlines.
  720. cache_file=/dev/null
  721. exec_prefix=NONE
  722. no_create=
  723. no_recursion=
  724. prefix=NONE
  725. program_prefix=NONE
  726. program_suffix=NONE
  727. program_transform_name=s,x,x,
  728. silent=
  729. site=
  730. srcdir=
  731. verbose=
  732. x_includes=NONE
  733. x_libraries=NONE
  734. # Installation directory options.
  735. # These are left unexpanded so users can "make install exec_prefix=/foo"
  736. # and all the variables that are supposed to be based on exec_prefix
  737. # by default will actually change.
  738. # Use braces instead of parens because sh, perl, etc. also accept them.
  739. # (The list follows the same order as the GNU Coding Standards.)
  740. bindir='${exec_prefix}/bin'
  741. sbindir='${exec_prefix}/sbin'
  742. libexecdir='${exec_prefix}/libexec'
  743. datarootdir='${prefix}/share'
  744. datadir='${datarootdir}'
  745. sysconfdir='${prefix}/etc'
  746. sharedstatedir='${prefix}/com'
  747. localstatedir='${prefix}/var'
  748. includedir='${prefix}/include'
  749. oldincludedir='/usr/include'
  750. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  751. infodir='${datarootdir}/info'
  752. htmldir='${docdir}'
  753. dvidir='${docdir}'
  754. pdfdir='${docdir}'
  755. psdir='${docdir}'
  756. libdir='${exec_prefix}/lib'
  757. localedir='${datarootdir}/locale'
  758. mandir='${datarootdir}/man'
  759. ac_prev=
  760. ac_dashdash=
  761. for ac_option
  762. do
  763. # If the previous option needs an argument, assign it.
  764. if test -n "$ac_prev"; then
  765. eval $ac_prev=\$ac_option
  766. ac_prev=
  767. continue
  768. fi
  769. case $ac_option in
  770. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  771. *) ac_optarg=yes ;;
  772. esac
  773. # Accept the important Cygnus configure options, so we can diagnose typos.
  774. case $ac_dashdash$ac_option in
  775. --)
  776. ac_dashdash=yes ;;
  777. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  778. ac_prev=bindir ;;
  779. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  780. bindir=$ac_optarg ;;
  781. -build | --build | --buil | --bui | --bu)
  782. ac_prev=build_alias ;;
  783. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  784. build_alias=$ac_optarg ;;
  785. -cache-file | --cache-file | --cache-fil | --cache-fi \
  786. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  787. ac_prev=cache_file ;;
  788. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  789. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  790. cache_file=$ac_optarg ;;
  791. --config-cache | -C)
  792. cache_file=config.cache ;;
  793. -datadir | --datadir | --datadi | --datad)
  794. ac_prev=datadir ;;
  795. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  796. datadir=$ac_optarg ;;
  797. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  798. | --dataroo | --dataro | --datar)
  799. ac_prev=datarootdir ;;
  800. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  801. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  802. datarootdir=$ac_optarg ;;
  803. -disable-* | --disable-*)
  804. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  805. # Reject names that are not valid shell variable names.
  806. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  807. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  808. { (exit 1); exit 1; }; }
  809. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  810. eval enable_$ac_feature=no ;;
  811. -docdir | --docdir | --docdi | --doc | --do)
  812. ac_prev=docdir ;;
  813. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  814. docdir=$ac_optarg ;;
  815. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  816. ac_prev=dvidir ;;
  817. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  818. dvidir=$ac_optarg ;;
  819. -enable-* | --enable-*)
  820. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  821. # Reject names that are not valid shell variable names.
  822. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  823. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  824. { (exit 1); exit 1; }; }
  825. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  826. eval enable_$ac_feature=\$ac_optarg ;;
  827. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  828. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  829. | --exec | --exe | --ex)
  830. ac_prev=exec_prefix ;;
  831. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  832. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  833. | --exec=* | --exe=* | --ex=*)
  834. exec_prefix=$ac_optarg ;;
  835. -gas | --gas | --ga | --g)
  836. # Obsolete; use --with-gas.
  837. with_gas=yes ;;
  838. -help | --help | --hel | --he | -h)
  839. ac_init_help=long ;;
  840. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  841. ac_init_help=recursive ;;
  842. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  843. ac_init_help=short ;;
  844. -host | --host | --hos | --ho)
  845. ac_prev=host_alias ;;
  846. -host=* | --host=* | --hos=* | --ho=*)
  847. host_alias=$ac_optarg ;;
  848. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  849. ac_prev=htmldir ;;
  850. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  851. | --ht=*)
  852. htmldir=$ac_optarg ;;
  853. -includedir | --includedir | --includedi | --included | --include \
  854. | --includ | --inclu | --incl | --inc)
  855. ac_prev=includedir ;;
  856. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  857. | --includ=* | --inclu=* | --incl=* | --inc=*)
  858. includedir=$ac_optarg ;;
  859. -infodir | --infodir | --infodi | --infod | --info | --inf)
  860. ac_prev=infodir ;;
  861. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  862. infodir=$ac_optarg ;;
  863. -libdir | --libdir | --libdi | --libd)
  864. ac_prev=libdir ;;
  865. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  866. libdir=$ac_optarg ;;
  867. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  868. | --libexe | --libex | --libe)
  869. ac_prev=libexecdir ;;
  870. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  871. | --libexe=* | --libex=* | --libe=*)
  872. libexecdir=$ac_optarg ;;
  873. -localedir | --localedir | --localedi | --localed | --locale)
  874. ac_prev=localedir ;;
  875. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  876. localedir=$ac_optarg ;;
  877. -localstatedir | --localstatedir | --localstatedi | --localstated \
  878. | --localstate | --localstat | --localsta | --localst | --locals)
  879. ac_prev=localstatedir ;;
  880. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  881. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  882. localstatedir=$ac_optarg ;;
  883. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  884. ac_prev=mandir ;;
  885. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  886. mandir=$ac_optarg ;;
  887. -nfp | --nfp | --nf)
  888. # Obsolete; use --without-fp.
  889. with_fp=no ;;
  890. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  891. | --no-cr | --no-c | -n)
  892. no_create=yes ;;
  893. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  894. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  895. no_recursion=yes ;;
  896. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  897. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  898. | --oldin | --oldi | --old | --ol | --o)
  899. ac_prev=oldincludedir ;;
  900. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  901. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  902. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  903. oldincludedir=$ac_optarg ;;
  904. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  905. ac_prev=prefix ;;
  906. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  907. prefix=$ac_optarg ;;
  908. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  909. | --program-pre | --program-pr | --program-p)
  910. ac_prev=program_prefix ;;
  911. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  912. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  913. program_prefix=$ac_optarg ;;
  914. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  915. | --program-suf | --program-su | --program-s)
  916. ac_prev=program_suffix ;;
  917. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  918. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  919. program_suffix=$ac_optarg ;;
  920. -program-transform-name | --program-transform-name \
  921. | --program-transform-nam | --program-transform-na \
  922. | --program-transform-n | --program-transform- \
  923. | --program-transform | --program-transfor \
  924. | --program-transfo | --program-transf \
  925. | --program-trans | --program-tran \
  926. | --progr-tra | --program-tr | --program-t)
  927. ac_prev=program_transform_name ;;
  928. -program-transform-name=* | --program-transform-name=* \
  929. | --program-transform-nam=* | --program-transform-na=* \
  930. | --program-transform-n=* | --program-transform-=* \
  931. | --program-transform=* | --program-transfor=* \
  932. | --program-transfo=* | --program-transf=* \
  933. | --program-trans=* | --program-tran=* \
  934. | --progr-tra=* | --program-tr=* | --program-t=*)
  935. program_transform_name=$ac_optarg ;;
  936. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  937. ac_prev=pdfdir ;;
  938. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  939. pdfdir=$ac_optarg ;;
  940. -psdir | --psdir | --psdi | --psd | --ps)
  941. ac_prev=psdir ;;
  942. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  943. psdir=$ac_optarg ;;
  944. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  945. | -silent | --silent | --silen | --sile | --sil)
  946. silent=yes ;;
  947. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  948. ac_prev=sbindir ;;
  949. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  950. | --sbi=* | --sb=*)
  951. sbindir=$ac_optarg ;;
  952. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  953. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  954. | --sharedst | --shareds | --shared | --share | --shar \
  955. | --sha | --sh)
  956. ac_prev=sharedstatedir ;;
  957. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  958. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  959. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  960. | --sha=* | --sh=*)
  961. sharedstatedir=$ac_optarg ;;
  962. -site | --site | --sit)
  963. ac_prev=site ;;
  964. -site=* | --site=* | --sit=*)
  965. site=$ac_optarg ;;
  966. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  967. ac_prev=srcdir ;;
  968. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  969. srcdir=$ac_optarg ;;
  970. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  971. | --syscon | --sysco | --sysc | --sys | --sy)
  972. ac_prev=sysconfdir ;;
  973. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  974. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  975. sysconfdir=$ac_optarg ;;
  976. -target | --target | --targe | --targ | --tar | --ta | --t)
  977. ac_prev=target_alias ;;
  978. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  979. target_alias=$ac_optarg ;;
  980. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  981. verbose=yes ;;
  982. -version | --version | --versio | --versi | --vers | -V)
  983. ac_init_version=: ;;
  984. -with-* | --with-*)
  985. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  988. { echo "$as_me: error: invalid package name: $ac_package" >&2
  989. { (exit 1); exit 1; }; }
  990. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  991. eval with_$ac_package=\$ac_optarg ;;
  992. -without-* | --without-*)
  993. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  994. # Reject names that are not valid shell variable names.
  995. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  996. { echo "$as_me: error: invalid package name: $ac_package" >&2
  997. { (exit 1); exit 1; }; }
  998. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  999. eval with_$ac_package=no ;;
  1000. --x)
  1001. # Obsolete; use --with-x.
  1002. with_x=yes ;;
  1003. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1004. | --x-incl | --x-inc | --x-in | --x-i)
  1005. ac_prev=x_includes ;;
  1006. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1007. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1008. x_includes=$ac_optarg ;;
  1009. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1010. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1011. ac_prev=x_libraries ;;
  1012. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1013. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1014. x_libraries=$ac_optarg ;;
  1015. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1016. Try \`$0 --help' for more information." >&2
  1017. { (exit 1); exit 1; }; }
  1018. ;;
  1019. *=*)
  1020. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1023. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1024. { (exit 1); exit 1; }; }
  1025. eval $ac_envvar=\$ac_optarg
  1026. export $ac_envvar ;;
  1027. *)
  1028. # FIXME: should be removed in autoconf 3.0.
  1029. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1030. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1031. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1032. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1033. ;;
  1034. esac
  1035. done
  1036. if test -n "$ac_prev"; then
  1037. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1038. { echo "$as_me: error: missing argument to $ac_option" >&2
  1039. { (exit 1); exit 1; }; }
  1040. fi
  1041. # Be sure to have absolute directory names.
  1042. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1043. datadir sysconfdir sharedstatedir localstatedir includedir \
  1044. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1045. libdir localedir mandir
  1046. do
  1047. eval ac_val=\$$ac_var
  1048. case $ac_val in
  1049. [\\/$]* | ?:[\\/]* ) continue;;
  1050. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1051. esac
  1052. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1053. { (exit 1); exit 1; }; }
  1054. done
  1055. # There might be people who depend on the old broken behavior: `$host'
  1056. # used to hold the argument of --host etc.
  1057. # FIXME: To remove some day.
  1058. build=$build_alias
  1059. host=$host_alias
  1060. target=$target_alias
  1061. # FIXME: To remove some day.
  1062. if test "x$host_alias" != x; then
  1063. if test "x$build_alias" = x; then
  1064. cross_compiling=maybe
  1065. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1066. If a cross compiler is detected then cross compile mode will be used." >&2
  1067. elif test "x$build_alias" != "x$host_alias"; then
  1068. cross_compiling=yes
  1069. fi
  1070. fi
  1071. ac_tool_prefix=
  1072. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1073. test "$silent" = yes && exec 6>/dev/null
  1074. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1075. ac_ls_di=`ls -di .` &&
  1076. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1077. { echo "$as_me: error: Working directory cannot be determined" >&2
  1078. { (exit 1); exit 1; }; }
  1079. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1080. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1081. { (exit 1); exit 1; }; }
  1082. # Find the source files, if location was not specified.
  1083. if test -z "$srcdir"; then
  1084. ac_srcdir_defaulted=yes
  1085. # Try the directory containing this script, then the parent directory.
  1086. ac_confdir=`$as_dirname -- "$0" ||
  1087. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1088. X"$0" : 'X\(//\)[^/]' \| \
  1089. X"$0" : 'X\(//\)$' \| \
  1090. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1091. echo X"$0" |
  1092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1093. s//\1/
  1094. q
  1095. }
  1096. /^X\(\/\/\)[^/].*/{
  1097. s//\1/
  1098. q
  1099. }
  1100. /^X\(\/\/\)$/{
  1101. s//\1/
  1102. q
  1103. }
  1104. /^X\(\/\).*/{
  1105. s//\1/
  1106. q
  1107. }
  1108. s/.*/./; q'`
  1109. srcdir=$ac_confdir
  1110. if test ! -r "$srcdir/$ac_unique_file"; then
  1111. srcdir=..
  1112. fi
  1113. else
  1114. ac_srcdir_defaulted=no
  1115. fi
  1116. if test ! -r "$srcdir/$ac_unique_file"; then
  1117. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1118. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1119. { (exit 1); exit 1; }; }
  1120. fi
  1121. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1122. ac_abs_confdir=`(
  1123. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1124. { (exit 1); exit 1; }; }
  1125. pwd)`
  1126. # When building in place, set srcdir=.
  1127. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1128. srcdir=.
  1129. fi
  1130. # Remove unnecessary trailing slashes from srcdir.
  1131. # Double slashes in file names in object file debugging info
  1132. # mess up M-x gdb in Emacs.
  1133. case $srcdir in
  1134. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1135. esac
  1136. for ac_var in $ac_precious_vars; do
  1137. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1138. eval ac_env_${ac_var}_value=\$${ac_var}
  1139. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1140. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1141. done
  1142. #
  1143. # Report the --help message.
  1144. #
  1145. if test "$ac_init_help" = "long"; then
  1146. # Omit some internal or obsolete options to make the list less imposing.
  1147. # This message is too long to be a string in the A/UX 3.1 sh.
  1148. cat <<_ACEOF
  1149. \`configure' configures aria2c 0.12.0rc to adapt to many kinds of systems.
  1150. Usage: $0 [OPTION]... [VAR=VALUE]...
  1151. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1152. VAR=VALUE. See below for descriptions of some of the useful variables.
  1153. Defaults for the options are specified in brackets.
  1154. Configuration:
  1155. -h, --help display this help and exit
  1156. --help=short display options specific to this package
  1157. --help=recursive display the short help of all the included packages
  1158. -V, --version display version information and exit
  1159. -q, --quiet, --silent do not print \`checking...' messages
  1160. --cache-file=FILE cache test results in FILE [disabled]
  1161. -C, --config-cache alias for \`--cache-file=config.cache'
  1162. -n, --no-create do not create output files
  1163. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1164. Installation directories:
  1165. --prefix=PREFIX install architecture-independent files in PREFIX
  1166. [$ac_default_prefix]
  1167. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1168. [PREFIX]
  1169. By default, \`make install' will install all the files in
  1170. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1171. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1172. for instance \`--prefix=\$HOME'.
  1173. For better control, use the options below.
  1174. Fine tuning of the installation directories:
  1175. --bindir=DIR user executables [EPREFIX/bin]
  1176. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1177. --libexecdir=DIR program executables [EPREFIX/libexec]
  1178. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1179. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1180. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1181. --libdir=DIR object code libraries [EPREFIX/lib]
  1182. --includedir=DIR C header files [PREFIX/include]
  1183. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1184. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1185. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1186. --infodir=DIR info documentation [DATAROOTDIR/info]
  1187. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1188. --mandir=DIR man documentation [DATAROOTDIR/man]
  1189. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1190. --htmldir=DIR html documentation [DOCDIR]
  1191. --dvidir=DIR dvi documentation [DOCDIR]
  1192. --pdfdir=DIR pdf documentation [DOCDIR]
  1193. --psdir=DIR ps documentation [DOCDIR]
  1194. _ACEOF
  1195. cat <<\_ACEOF
  1196. Program names:
  1197. --program-prefix=PREFIX prepend PREFIX to installed program names
  1198. --program-suffix=SUFFIX append SUFFIX to installed program names
  1199. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1200. System types:
  1201. --build=BUILD configure for building on BUILD [guessed]
  1202. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1203. --target=TARGET configure for building compilers for TARGET [HOST]
  1204. _ACEOF
  1205. fi
  1206. if test -n "$ac_init_help"; then
  1207. case $ac_init_help in
  1208. short | recursive ) echo "Configuration of aria2c 0.12.0rc:";;
  1209. esac
  1210. cat <<\_ACEOF
  1211. Optional Features:
  1212. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1213. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1214. --enable-bittorrent enable BitTorrent support. Default: yes
  1215. --enable-metalink enable Metalink support. Default: yes
  1216. --disable-dependency-tracking speeds up one-time build
  1217. --enable-dependency-tracking do not reject slow dependency extractors
  1218. --disable-xmltest Do not try to compile and run a test LIBXML program
  1219. --disable-nls do not use Native Language Support
  1220. --disable-rpath do not hardcode runtime library paths
  1221. Optional Packages:
  1222. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1223. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1224. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1225. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1226. --with-gnutls use gnutls library if installed. Default: yes
  1227. --with-openssl use openssl library if installed. Default: yes
  1228. --with-libxml2 use libxml2 library if installed. Default: yes
  1229. --with-libares use ares library if installed. Default: yes
  1230. --with-libcares use c-ares library if installed. Default: yes
  1231. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1232. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1233. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1234. --with-libgcrypt-prefix=PFX
  1235. prefix where LIBGCRYPT is installed (optional)
  1236. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1237. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1238. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1239. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1240. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1241. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1242. --with-included-gettext use the GNU gettext library included here
  1243. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1244. --without-libintl-prefix don't search for libintl in includedir and libdir
  1245. Some influential environment variables:
  1246. CXX C++ compiler command
  1247. CXXFLAGS C++ compiler flags
  1248. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1249. nonstandard directory <lib dir>
  1250. LIBS libraries to pass to the linker, e.g. -l<library>
  1251. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1252. you have headers in a nonstandard directory <include dir>
  1253. CC C compiler command
  1254. CFLAGS C compiler flags
  1255. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1256. the first program found out of: `bison -y', `byacc', `yacc'.
  1257. YFLAGS The list of arguments that will be passed by default to $YACC.
  1258. This script will default YFLAGS to the empty string to avoid a
  1259. default value of `-d' given by some make applications.
  1260. CPP C preprocessor
  1261. Use these variables to override the choices made by `configure' or to help
  1262. it to find libraries and programs with nonstandard names/locations.
  1263. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1264. _ACEOF
  1265. ac_status=$?
  1266. fi
  1267. if test "$ac_init_help" = "recursive"; then
  1268. # If there are subdirs, report their specific --help.
  1269. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1270. test -d "$ac_dir" || continue
  1271. ac_builddir=.
  1272. case "$ac_dir" in
  1273. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1274. *)
  1275. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1276. # A ".." for each directory in $ac_dir_suffix.
  1277. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1278. case $ac_top_builddir_sub in
  1279. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1280. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1281. esac ;;
  1282. esac
  1283. ac_abs_top_builddir=$ac_pwd
  1284. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1285. # for backward compatibility:
  1286. ac_top_builddir=$ac_top_build_prefix
  1287. case $srcdir in
  1288. .) # We are building in place.
  1289. ac_srcdir=.
  1290. ac_top_srcdir=$ac_top_builddir_sub
  1291. ac_abs_top_srcdir=$ac_pwd ;;
  1292. [\\/]* | ?:[\\/]* ) # Absolute name.
  1293. ac_srcdir=$srcdir$ac_dir_suffix;
  1294. ac_top_srcdir=$srcdir
  1295. ac_abs_top_srcdir=$srcdir ;;
  1296. *) # Relative name.
  1297. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1298. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1299. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1300. esac
  1301. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1302. cd "$ac_dir" || { ac_status=$?; continue; }
  1303. # Check for guested configure.
  1304. if test -f "$ac_srcdir/configure.gnu"; then
  1305. echo &&
  1306. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1307. elif test -f "$ac_srcdir/configure"; then
  1308. echo &&
  1309. $SHELL "$ac_srcdir/configure" --help=recursive
  1310. else
  1311. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1312. fi || ac_status=$?
  1313. cd "$ac_pwd" || { ac_status=$?; break; }
  1314. done
  1315. fi
  1316. test -n "$ac_init_help" && exit $ac_status
  1317. if $ac_init_version; then
  1318. cat <<\_ACEOF
  1319. aria2c configure 0.12.0rc
  1320. generated by GNU Autoconf 2.61
  1321. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1322. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1323. This configure script is free software; the Free Software Foundation
  1324. gives unlimited permission to copy, distribute and modify it.
  1325. _ACEOF
  1326. exit
  1327. fi
  1328. cat >config.log <<_ACEOF
  1329. This file contains any messages produced by compilers while
  1330. running configure, to aid debugging if configure makes a mistake.
  1331. It was created by aria2c $as_me 0.12.0rc, which was
  1332. generated by GNU Autoconf 2.61. Invocation command line was
  1333. $ $0 $@
  1334. _ACEOF
  1335. exec 5>>config.log
  1336. {
  1337. cat <<_ASUNAME
  1338. ## --------- ##
  1339. ## Platform. ##
  1340. ## --------- ##
  1341. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1342. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1343. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1344. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1345. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1346. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1347. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1348. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1349. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1350. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1351. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1352. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1353. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1354. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1355. _ASUNAME
  1356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1357. for as_dir in $PATH
  1358. do
  1359. IFS=$as_save_IFS
  1360. test -z "$as_dir" && as_dir=.
  1361. echo "PATH: $as_dir"
  1362. done
  1363. IFS=$as_save_IFS
  1364. } >&5
  1365. cat >&5 <<_ACEOF
  1366. ## ----------- ##
  1367. ## Core tests. ##
  1368. ## ----------- ##
  1369. _ACEOF
  1370. # Keep a trace of the command line.
  1371. # Strip out --no-create and --no-recursion so they do not pile up.
  1372. # Strip out --silent because we don't want to record it for future runs.
  1373. # Also quote any args containing shell meta-characters.
  1374. # Make two passes to allow for proper duplicate-argument suppression.
  1375. ac_configure_args=
  1376. ac_configure_args0=
  1377. ac_configure_args1=
  1378. ac_must_keep_next=false
  1379. for ac_pass in 1 2
  1380. do
  1381. for ac_arg
  1382. do
  1383. case $ac_arg in
  1384. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1385. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1386. | -silent | --silent | --silen | --sile | --sil)
  1387. continue ;;
  1388. *\'*)
  1389. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1390. esac
  1391. case $ac_pass in
  1392. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1393. 2)
  1394. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1395. if test $ac_must_keep_next = true; then
  1396. ac_must_keep_next=false # Got value, back to normal.
  1397. else
  1398. case $ac_arg in
  1399. *=* | --config-cache | -C | -disable-* | --disable-* \
  1400. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1401. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1402. | -with-* | --with-* | -without-* | --without-* | --x)
  1403. case "$ac_configure_args0 " in
  1404. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1405. esac
  1406. ;;
  1407. -* ) ac_must_keep_next=true ;;
  1408. esac
  1409. fi
  1410. ac_configure_args="$ac_configure_args '$ac_arg'"
  1411. ;;
  1412. esac
  1413. done
  1414. done
  1415. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1416. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1417. # When interrupted or exit'd, cleanup temporary files, and complete
  1418. # config.log. We remove comments because anyway the quotes in there
  1419. # would cause problems or look ugly.
  1420. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1421. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1422. trap 'exit_status=$?
  1423. # Save into config.log some information that might help in debugging.
  1424. {
  1425. echo
  1426. cat <<\_ASBOX
  1427. ## ---------------- ##
  1428. ## Cache variables. ##
  1429. ## ---------------- ##
  1430. _ASBOX
  1431. echo
  1432. # The following way of writing the cache mishandles newlines in values,
  1433. (
  1434. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1435. eval ac_val=\$$ac_var
  1436. case $ac_val in #(
  1437. *${as_nl}*)
  1438. case $ac_var in #(
  1439. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1440. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1441. esac
  1442. case $ac_var in #(
  1443. _ | IFS | as_nl) ;; #(
  1444. *) $as_unset $ac_var ;;
  1445. esac ;;
  1446. esac
  1447. done
  1448. (set) 2>&1 |
  1449. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1450. *${as_nl}ac_space=\ *)
  1451. sed -n \
  1452. "s/'\''/'\''\\\\'\'''\''/g;
  1453. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1454. ;; #(
  1455. *)
  1456. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1457. ;;
  1458. esac |
  1459. sort
  1460. )
  1461. echo
  1462. cat <<\_ASBOX
  1463. ## ----------------- ##
  1464. ## Output variables. ##
  1465. ## ----------------- ##
  1466. _ASBOX
  1467. echo
  1468. for ac_var in $ac_subst_vars
  1469. do
  1470. eval ac_val=\$$ac_var
  1471. case $ac_val in
  1472. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1473. esac
  1474. echo "$ac_var='\''$ac_val'\''"
  1475. done | sort
  1476. echo
  1477. if test -n "$ac_subst_files"; then
  1478. cat <<\_ASBOX
  1479. ## ------------------- ##
  1480. ## File substitutions. ##
  1481. ## ------------------- ##
  1482. _ASBOX
  1483. echo
  1484. for ac_var in $ac_subst_files
  1485. do
  1486. eval ac_val=\$$ac_var
  1487. case $ac_val in
  1488. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1489. esac
  1490. echo "$ac_var='\''$ac_val'\''"
  1491. done | sort
  1492. echo
  1493. fi
  1494. if test -s confdefs.h; then
  1495. cat <<\_ASBOX
  1496. ## ----------- ##
  1497. ## confdefs.h. ##
  1498. ## ----------- ##
  1499. _ASBOX
  1500. echo
  1501. cat confdefs.h
  1502. echo
  1503. fi
  1504. test "$ac_signal" != 0 &&
  1505. echo "$as_me: caught signal $ac_signal"
  1506. echo "$as_me: exit $exit_status"
  1507. } >&5
  1508. rm -f core *.core core.conftest.* &&
  1509. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1510. exit $exit_status
  1511. ' 0
  1512. for ac_signal in 1 2 13 15; do
  1513. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1514. done
  1515. ac_signal=0
  1516. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1517. rm -f -r conftest* confdefs.h
  1518. # Predefined preprocessor variables.
  1519. cat >>confdefs.h <<_ACEOF
  1520. #define PACKAGE_NAME "$PACKAGE_NAME"
  1521. _ACEOF
  1522. cat >>confdefs.h <<_ACEOF
  1523. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1524. _ACEOF
  1525. cat >>confdefs.h <<_ACEOF
  1526. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1527. _ACEOF
  1528. cat >>confdefs.h <<_ACEOF
  1529. #define PACKAGE_STRING "$PACKAGE_STRING"
  1530. _ACEOF
  1531. cat >>confdefs.h <<_ACEOF
  1532. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1533. _ACEOF
  1534. # Let the site file select an alternate cache file if it wants to.
  1535. # Prefer explicitly selected file to automatically selected ones.
  1536. if test -n "$CONFIG_SITE"; then
  1537. set x "$CONFIG_SITE"
  1538. elif test "x$prefix" != xNONE; then
  1539. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1540. else
  1541. set x "$ac_default_prefix/share/config.site" \
  1542. "$ac_default_prefix/etc/config.site"
  1543. fi
  1544. shift
  1545. for ac_site_file
  1546. do
  1547. if test -r "$ac_site_file"; then
  1548. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1549. echo "$as_me: loading site script $ac_site_file" >&6;}
  1550. sed 's/^/| /' "$ac_site_file" >&5
  1551. . "$ac_site_file"
  1552. fi
  1553. done
  1554. if test -r "$cache_file"; then
  1555. # Some versions of bash will fail to source /dev/null (special
  1556. # files actually), so we avoid doing that.
  1557. if test -f "$cache_file"; then
  1558. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1559. echo "$as_me: loading cache $cache_file" >&6;}
  1560. case $cache_file in
  1561. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1562. *) . "./$cache_file";;
  1563. esac
  1564. fi
  1565. else
  1566. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1567. echo "$as_me: creating cache $cache_file" >&6;}
  1568. >$cache_file
  1569. fi
  1570. # Check that the precious variables saved in the cache have kept the same
  1571. # value.
  1572. ac_cache_corrupted=false
  1573. for ac_var in $ac_precious_vars; do
  1574. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1575. eval ac_new_set=\$ac_env_${ac_var}_set
  1576. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1577. eval ac_new_val=\$ac_env_${ac_var}_value
  1578. case $ac_old_set,$ac_new_set in
  1579. set,)
  1580. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1581. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1582. ac_cache_corrupted=: ;;
  1583. ,set)
  1584. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1585. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1586. ac_cache_corrupted=: ;;
  1587. ,);;
  1588. *)
  1589. if test "x$ac_old_val" != "x$ac_new_val"; then
  1590. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1591. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1592. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1593. echo "$as_me: former value: $ac_old_val" >&2;}
  1594. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1595. echo "$as_me: current value: $ac_new_val" >&2;}
  1596. ac_cache_corrupted=:
  1597. fi;;
  1598. esac
  1599. # Pass precious variables to config.status.
  1600. if test "$ac_new_set" = set; then
  1601. case $ac_new_val in
  1602. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1603. *) ac_arg=$ac_var=$ac_new_val ;;
  1604. esac
  1605. case " $ac_configure_args " in
  1606. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1607. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1608. esac
  1609. fi
  1610. done
  1611. if $ac_cache_corrupted; then
  1612. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1613. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1614. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1615. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1616. { (exit 1); exit 1; }; }
  1617. fi
  1618. ac_ext=c
  1619. ac_cpp='$CPP $CPPFLAGS'
  1620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1623. ac_aux_dir=
  1624. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1625. if test -f "$ac_dir/install-sh"; then
  1626. ac_aux_dir=$ac_dir
  1627. ac_install_sh="$ac_aux_dir/install-sh -c"
  1628. break
  1629. elif test -f "$ac_dir/install.sh"; then
  1630. ac_aux_dir=$ac_dir
  1631. ac_install_sh="$ac_aux_dir/install.sh -c"
  1632. break
  1633. elif test -f "$ac_dir/shtool"; then
  1634. ac_aux_dir=$ac_dir
  1635. ac_install_sh="$ac_aux_dir/shtool install -c"
  1636. break
  1637. fi
  1638. done
  1639. if test -z "$ac_aux_dir"; then
  1640. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1641. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1642. { (exit 1); exit 1; }; }
  1643. fi
  1644. # These three variables are undocumented and unsupported,
  1645. # and are intended to be withdrawn in a future Autoconf release.
  1646. # They can cause serious problems if a builder's source tree is in a directory
  1647. # whose full name contains unusual characters.
  1648. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1649. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1650. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1651. # Make sure we can run config.sub.
  1652. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1653. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1654. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1655. { (exit 1); exit 1; }; }
  1656. { echo "$as_me:$LINENO: checking build system type" >&5
  1657. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1658. if test "${ac_cv_build+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. ac_build_alias=$build_alias
  1662. test "x$ac_build_alias" = x &&
  1663. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1664. test "x$ac_build_alias" = x &&
  1665. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1666. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1667. { (exit 1); exit 1; }; }
  1668. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1669. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1670. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1671. { (exit 1); exit 1; }; }
  1672. fi
  1673. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1674. echo "${ECHO_T}$ac_cv_build" >&6; }
  1675. case $ac_cv_build in
  1676. *-*-*) ;;
  1677. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1678. echo "$as_me: error: invalid value of canonical build" >&2;}
  1679. { (exit 1); exit 1; }; };;
  1680. esac
  1681. build=$ac_cv_build
  1682. ac_save_IFS=$IFS; IFS='-'
  1683. set x $ac_cv_build
  1684. shift
  1685. build_cpu=$1
  1686. build_vendor=$2
  1687. shift; shift
  1688. # Remember, the first character of IFS is used to create $*,
  1689. # except with old shells:
  1690. build_os=$*
  1691. IFS=$ac_save_IFS
  1692. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1693. { echo "$as_me:$LINENO: checking host system type" >&5
  1694. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1695. if test "${ac_cv_host+set}" = set; then
  1696. echo $ECHO_N "(cached) $ECHO_C" >&6
  1697. else
  1698. if test "x$host_alias" = x; then
  1699. ac_cv_host=$ac_cv_build
  1700. else
  1701. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1702. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1703. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1704. { (exit 1); exit 1; }; }
  1705. fi
  1706. fi
  1707. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1708. echo "${ECHO_T}$ac_cv_host" >&6; }
  1709. case $ac_cv_host in
  1710. *-*-*) ;;
  1711. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1712. echo "$as_me: error: invalid value of canonical host" >&2;}
  1713. { (exit 1); exit 1; }; };;
  1714. esac
  1715. host=$ac_cv_host
  1716. ac_save_IFS=$IFS; IFS='-'
  1717. set x $ac_cv_host
  1718. shift
  1719. host_cpu=$1
  1720. host_vendor=$2
  1721. shift; shift
  1722. # Remember, the first character of IFS is used to create $*,
  1723. # except with old shells:
  1724. host_os=$*
  1725. IFS=$ac_save_IFS
  1726. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1727. { echo "$as_me:$LINENO: checking target system type" >&5
  1728. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1729. if test "${ac_cv_target+set}" = set; then
  1730. echo $ECHO_N "(cached) $ECHO_C" >&6
  1731. else
  1732. if test "x$target_alias" = x; then
  1733. ac_cv_target=$ac_cv_host
  1734. else
  1735. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1736. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1737. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1738. { (exit 1); exit 1; }; }
  1739. fi
  1740. fi
  1741. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1742. echo "${ECHO_T}$ac_cv_target" >&6; }
  1743. case $ac_cv_target in
  1744. *-*-*) ;;
  1745. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1746. echo "$as_me: error: invalid value of canonical target" >&2;}
  1747. { (exit 1); exit 1; }; };;
  1748. esac
  1749. target=$ac_cv_target
  1750. ac_save_IFS=$IFS; IFS='-'
  1751. set x $ac_cv_target
  1752. shift
  1753. target_cpu=$1
  1754. target_vendor=$2
  1755. shift; shift
  1756. # Remember, the first character of IFS is used to create $*,
  1757. # except with old shells:
  1758. target_os=$*
  1759. IFS=$ac_save_IFS
  1760. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1761. # The aliases save the names the user supplied, while $host etc.
  1762. # will get canonicalized.
  1763. test -n "$target_alias" &&
  1764. test "$program_prefix$program_suffix$program_transform_name" = \
  1765. NONENONEs,x,x, &&
  1766. program_prefix=${target_alias}-
  1767. am__api_version="1.9"
  1768. # Find a good install program. We prefer a C program (faster),
  1769. # so one script is as good as another. But avoid the broken or
  1770. # incompatible versions:
  1771. # SysV /etc/install, /usr/sbin/install
  1772. # SunOS /usr/etc/install
  1773. # IRIX /sbin/install
  1774. # AIX /bin/install
  1775. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1776. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1777. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1778. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1779. # OS/2's system install, which has a completely different semantic
  1780. # ./install, which can be erroneously created by make from ./install.sh.
  1781. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1782. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1783. if test -z "$INSTALL"; then
  1784. if test "${ac_cv_path_install+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1788. for as_dir in $PATH
  1789. do
  1790. IFS=$as_save_IFS
  1791. test -z "$as_dir" && as_dir=.
  1792. # Account for people who put trailing slashes in PATH elements.
  1793. case $as_dir/ in
  1794. ./ | .// | /cC/* | \
  1795. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1796. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1797. /usr/ucb/* ) ;;
  1798. *)
  1799. # OSF1 and SCO ODT 3.0 have their own names for install.
  1800. # Don't use installbsd from OSF since it installs stuff as root
  1801. # by default.
  1802. for ac_prog in ginstall scoinst install; do
  1803. for ac_exec_ext in '' $ac_executable_extensions; do
  1804. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1805. if test $ac_prog = install &&
  1806. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1807. # AIX install. It has an incompatible calling convention.
  1808. :
  1809. elif test $ac_prog = install &&
  1810. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1811. # program-specific install script used by HP pwplus--don't use.
  1812. :
  1813. else
  1814. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1815. break 3
  1816. fi
  1817. fi
  1818. done
  1819. done
  1820. ;;
  1821. esac
  1822. done
  1823. IFS=$as_save_IFS
  1824. fi
  1825. if test "${ac_cv_path_install+set}" = set; then
  1826. INSTALL=$ac_cv_path_install
  1827. else
  1828. # As a last resort, use the slow shell script. Don't cache a
  1829. # value for INSTALL within a source directory, because that will
  1830. # break other packages using the cache if that directory is
  1831. # removed, or if the value is a relative name.
  1832. INSTALL=$ac_install_sh
  1833. fi
  1834. fi
  1835. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1836. echo "${ECHO_T}$INSTALL" >&6; }
  1837. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1838. # It thinks the first close brace ends the variable substitution.
  1839. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1840. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1841. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1842. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1843. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1844. # Just in case
  1845. sleep 1
  1846. echo timestamp > conftest.file
  1847. # Do `set' in a subshell so we don't clobber the current shell's
  1848. # arguments. Must try -L first in case configure is actually a
  1849. # symlink; some systems play weird games with the mod time of symlinks
  1850. # (eg FreeBSD returns the mod time of the symlink's containing
  1851. # directory).
  1852. if (
  1853. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1854. if test "$*" = "X"; then
  1855. # -L didn't work.
  1856. set X `ls -t $srcdir/configure conftest.file`
  1857. fi
  1858. rm -f conftest.file
  1859. if test "$*" != "X $srcdir/configure conftest.file" \
  1860. && test "$*" != "X conftest.file $srcdir/configure"; then
  1861. # If neither matched, then we have a broken ls. This can happen
  1862. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1863. # broken ls alias from the environment. This has actually
  1864. # happened. Such a system could not be considered "sane".
  1865. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1866. alias in your environment" >&5
  1867. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1868. alias in your environment" >&2;}
  1869. { (exit 1); exit 1; }; }
  1870. fi
  1871. test "$2" = conftest.file
  1872. )
  1873. then
  1874. # Ok.
  1875. :
  1876. else
  1877. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1878. Check your system clock" >&5
  1879. echo "$as_me: error: newly created file is older than distributed files!
  1880. Check your system clock" >&2;}
  1881. { (exit 1); exit 1; }; }
  1882. fi
  1883. { echo "$as_me:$LINENO: result: yes" >&5
  1884. echo "${ECHO_T}yes" >&6; }
  1885. test "$program_prefix" != NONE &&
  1886. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1887. # Use a double $ so make ignores it.
  1888. test "$program_suffix" != NONE &&
  1889. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1890. # Double any \ or $. echo might interpret backslashes.
  1891. # By default was `s,x,x', remove it if useless.
  1892. cat <<\_ACEOF >conftest.sed
  1893. s/[\\$]/&&/g;s/;s,x,x,$//
  1894. _ACEOF
  1895. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1896. rm -f conftest.sed
  1897. # expand $ac_aux_dir to an absolute path
  1898. am_aux_dir=`cd $ac_aux_dir && pwd`
  1899. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1900. # Use eval to expand $SHELL
  1901. if eval "$MISSING --run true"; then
  1902. am_missing_run="$MISSING --run "
  1903. else
  1904. am_missing_run=
  1905. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1906. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1907. fi
  1908. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1909. # We used to keeping the `.' as first argument, in order to
  1910. # allow $(mkdir_p) to be used without argument. As in
  1911. # $(mkdir_p) $(somedir)
  1912. # where $(somedir) is conditionally defined. However this is wrong
  1913. # for two reasons:
  1914. # 1. if the package is installed by a user who cannot write `.'
  1915. # make install will fail,
  1916. # 2. the above comment should most certainly read
  1917. # $(mkdir_p) $(DESTDIR)$(somedir)
  1918. # so it does not work when $(somedir) is undefined and
  1919. # $(DESTDIR) is not.
  1920. # To support the latter case, we have to write
  1921. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1922. # so the `.' trick is pointless.
  1923. mkdir_p='mkdir -p --'
  1924. else
  1925. # On NextStep and OpenStep, the `mkdir' command does not
  1926. # recognize any option. It will interpret all options as
  1927. # directories to create, and then abort because `.' already
  1928. # exists.
  1929. for d in ./-p ./--version;
  1930. do
  1931. test -d $d && rmdir $d
  1932. done
  1933. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1934. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1935. mkdir_p='$(mkinstalldirs)'
  1936. else
  1937. mkdir_p='$(install_sh) -d'
  1938. fi
  1939. fi
  1940. for ac_prog in gawk mawk nawk awk
  1941. do
  1942. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1943. set dummy $ac_prog; ac_word=$2
  1944. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1945. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1946. if test "${ac_cv_prog_AWK+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. if test -n "$AWK"; then
  1950. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1951. else
  1952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1953. for as_dir in $PATH
  1954. do
  1955. IFS=$as_save_IFS
  1956. test -z "$as_dir" && as_dir=.
  1957. for ac_exec_ext in '' $ac_executable_extensions; do
  1958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1959. ac_cv_prog_AWK="$ac_prog"
  1960. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1961. break 2
  1962. fi
  1963. done
  1964. done
  1965. IFS=$as_save_IFS
  1966. fi
  1967. fi
  1968. AWK=$ac_cv_prog_AWK
  1969. if test -n "$AWK"; then
  1970. { echo "$as_me:$LINENO: result: $AWK" >&5
  1971. echo "${ECHO_T}$AWK" >&6; }
  1972. else
  1973. { echo "$as_me:$LINENO: result: no" >&5
  1974. echo "${ECHO_T}no" >&6; }
  1975. fi
  1976. test -n "$AWK" && break
  1977. done
  1978. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1979. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1980. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1981. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1982. echo $ECHO_N "(cached) $ECHO_C" >&6
  1983. else
  1984. cat >conftest.make <<\_ACEOF
  1985. SHELL = /bin/sh
  1986. all:
  1987. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1988. _ACEOF
  1989. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1990. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1991. *@@@%%%=?*=@@@%%%*)
  1992. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1993. *)
  1994. eval ac_cv_prog_make_${ac_make}_set=no;;
  1995. esac
  1996. rm -f conftest.make
  1997. fi
  1998. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1999. { echo "$as_me:$LINENO: result: yes" >&5
  2000. echo "${ECHO_T}yes" >&6; }
  2001. SET_MAKE=
  2002. else
  2003. { echo "$as_me:$LINENO: result: no" >&5
  2004. echo "${ECHO_T}no" >&6; }
  2005. SET_MAKE="MAKE=${MAKE-make}"
  2006. fi
  2007. rm -rf .tst 2>/dev/null
  2008. mkdir .tst 2>/dev/null
  2009. if test -d .tst; then
  2010. am__leading_dot=.
  2011. else
  2012. am__leading_dot=_
  2013. fi
  2014. rmdir .tst 2>/dev/null
  2015. # test to see if srcdir already configured
  2016. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2017. test -f $srcdir/config.status; then
  2018. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2019. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2020. { (exit 1); exit 1; }; }
  2021. fi
  2022. # test whether we have cygpath
  2023. if test -z "$CYGPATH_W"; then
  2024. if (cygpath --version) >/dev/null 2>/dev/null; then
  2025. CYGPATH_W='cygpath -w'
  2026. else
  2027. CYGPATH_W=echo
  2028. fi
  2029. fi
  2030. # Define the identity of the package.
  2031. PACKAGE='aria2c'
  2032. VERSION='0.12.0rc'
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE "$PACKAGE"
  2035. _ACEOF
  2036. cat >>confdefs.h <<_ACEOF
  2037. #define VERSION "$VERSION"
  2038. _ACEOF
  2039. # Some tools Automake needs.
  2040. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2041. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2042. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2043. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2044. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2045. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2046. # Installed binaries are usually stripped using `strip' when the user
  2047. # run `make install-strip'. However `strip' might not be the right
  2048. # tool to use in cross-compilation environments, therefore Automake
  2049. # will honor the `STRIP' environment variable to overrule this program.
  2050. if test "$cross_compiling" != no; then
  2051. if test -n "$ac_tool_prefix"; then
  2052. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2053. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2054. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2055. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2056. if test "${ac_cv_prog_STRIP+set}" = set; then
  2057. echo $ECHO_N "(cached) $ECHO_C" >&6
  2058. else
  2059. if test -n "$STRIP"; then
  2060. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2061. else
  2062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2063. for as_dir in $PATH
  2064. do
  2065. IFS=$as_save_IFS
  2066. test -z "$as_dir" && as_dir=.
  2067. for ac_exec_ext in '' $ac_executable_extensions; do
  2068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2069. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2070. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2071. break 2
  2072. fi
  2073. done
  2074. done
  2075. IFS=$as_save_IFS
  2076. fi
  2077. fi
  2078. STRIP=$ac_cv_prog_STRIP
  2079. if test -n "$STRIP"; then
  2080. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2081. echo "${ECHO_T}$STRIP" >&6; }
  2082. else
  2083. { echo "$as_me:$LINENO: result: no" >&5
  2084. echo "${ECHO_T}no" >&6; }
  2085. fi
  2086. fi
  2087. if test -z "$ac_cv_prog_STRIP"; then
  2088. ac_ct_STRIP=$STRIP
  2089. # Extract the first word of "strip", so it can be a program name with args.
  2090. set dummy strip; ac_word=$2
  2091. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2093. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2094. echo $ECHO_N "(cached) $ECHO_C" >&6
  2095. else
  2096. if test -n "$ac_ct_STRIP"; then
  2097. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2106. ac_cv_prog_ac_ct_STRIP="strip"
  2107. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2108. break 2
  2109. fi
  2110. done
  2111. done
  2112. IFS=$as_save_IFS
  2113. fi
  2114. fi
  2115. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2116. if test -n "$ac_ct_STRIP"; then
  2117. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2118. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2119. else
  2120. { echo "$as_me:$LINENO: result: no" >&5
  2121. echo "${ECHO_T}no" >&6; }
  2122. fi
  2123. if test "x$ac_ct_STRIP" = x; then
  2124. STRIP=":"
  2125. else
  2126. case $cross_compiling:$ac_tool_warned in
  2127. yes:)
  2128. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2129. whose name does not start with the host triplet. If you think this
  2130. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2131. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2132. whose name does not start with the host triplet. If you think this
  2133. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2134. ac_tool_warned=yes ;;
  2135. esac
  2136. STRIP=$ac_ct_STRIP
  2137. fi
  2138. else
  2139. STRIP="$ac_cv_prog_STRIP"
  2140. fi
  2141. fi
  2142. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2143. # We need awk for the "check" target. The system "awk" is bad on
  2144. # some platforms.
  2145. # Always define AMTAR for backward compatibility.
  2146. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2147. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2148. # Check whether --with-cppunit-prefix was given.
  2149. if test "${with_cppunit_prefix+set}" = set; then
  2150. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2151. else
  2152. cppunit_config_prefix=""
  2153. fi
  2154. # Check whether --with-cppunit-exec-prefix was given.
  2155. if test "${with_cppunit_exec_prefix+set}" = set; then
  2156. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2157. else
  2158. cppunit_config_exec_prefix=""
  2159. fi
  2160. if test x$cppunit_config_exec_prefix != x ; then
  2161. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2162. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2163. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2164. fi
  2165. fi
  2166. if test x$cppunit_config_prefix != x ; then
  2167. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2168. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2169. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2170. fi
  2171. fi
  2172. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2173. set dummy cppunit-config; ac_word=$2
  2174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2176. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2177. echo $ECHO_N "(cached) $ECHO_C" >&6
  2178. else
  2179. case $CPPUNIT_CONFIG in
  2180. [\\/]* | ?:[\\/]*)
  2181. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2182. ;;
  2183. *)
  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187. IFS=$as_save_IFS
  2188. test -z "$as_dir" && as_dir=.
  2189. for ac_exec_ext in '' $ac_executable_extensions; do
  2190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2191. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2193. break 2
  2194. fi
  2195. done
  2196. done
  2197. IFS=$as_save_IFS
  2198. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2199. ;;
  2200. esac
  2201. fi
  2202. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2203. if test -n "$CPPUNIT_CONFIG"; then
  2204. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2205. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2206. else
  2207. { echo "$as_me:$LINENO: result: no" >&5
  2208. echo "${ECHO_T}no" >&6; }
  2209. fi
  2210. cppunit_version_min=1.10.2
  2211. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2212. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2213. no_cppunit=""
  2214. if test "$CPPUNIT_CONFIG" = "no" ; then
  2215. { echo "$as_me:$LINENO: result: no" >&5
  2216. echo "${ECHO_T}no" >&6; }
  2217. no_cppunit=yes
  2218. else
  2219. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2220. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2221. cppunit_version=`$CPPUNIT_CONFIG --version`
  2222. cppunit_major_version=`echo $cppunit_version | \
  2223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2224. cppunit_minor_version=`echo $cppunit_version | \
  2225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2226. cppunit_micro_version=`echo $cppunit_version | \
  2227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2228. cppunit_major_min=`echo $cppunit_version_min | \
  2229. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2230. if test "x${cppunit_major_min}" = "x" ; then
  2231. cppunit_major_min=0
  2232. fi
  2233. cppunit_minor_min=`echo $cppunit_version_min | \
  2234. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2235. if test "x${cppunit_minor_min}" = "x" ; then
  2236. cppunit_minor_min=0
  2237. fi
  2238. cppunit_micro_min=`echo $cppunit_version_min | \
  2239. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2240. if test "x${cppunit_micro_min}" = "x" ; then
  2241. cppunit_micro_min=0
  2242. fi
  2243. cppunit_version_proper=`expr \
  2244. $cppunit_major_version \> $cppunit_major_min \| \
  2245. $cppunit_major_version \= $cppunit_major_min \& \
  2246. $cppunit_minor_version \> $cppunit_minor_min \| \
  2247. $cppunit_major_version \= $cppunit_major_min \& \
  2248. $cppunit_minor_version \= $cppunit_minor_min \& \
  2249. $cppunit_micro_version \>= $cppunit_micro_min `
  2250. if test "$cppunit_version_proper" = "1" ; then
  2251. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2252. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2253. else
  2254. { echo "$as_me:$LINENO: result: no" >&5
  2255. echo "${ECHO_T}no" >&6; }
  2256. no_cppunit=yes
  2257. fi
  2258. fi
  2259. if test "x$no_cppunit" = x ; then
  2260. :
  2261. else
  2262. CPPUNIT_CFLAGS=""
  2263. CPPUNIT_LIBS=""
  2264. :
  2265. fi
  2266. ac_config_headers="$ac_config_headers config.h"
  2267. case "$target" in
  2268. *mingw*|*cygwin*)
  2269. WINSOCK_LIBS="-lws2_32"
  2270. ;;
  2271. esac
  2272. cat >>confdefs.h <<_ACEOF
  2273. #define TARGET "$target"
  2274. _ACEOF
  2275. # Set localedir
  2276. localedir=${datadir}/locale
  2277. # Checks for arguments.
  2278. # Check whether --with-gnutls was given.
  2279. if test "${with_gnutls+set}" = set; then
  2280. withval=$with_gnutls; with_gnutls=$withval
  2281. else
  2282. with_gnutls=yes
  2283. fi
  2284. # Check whether --with-openssl was given.
  2285. if test "${with_openssl+set}" = set; then
  2286. withval=$with_openssl; with_openssl=$withval
  2287. else
  2288. with_openssl=yes
  2289. fi
  2290. # Check whether --with-libxml2 was given.
  2291. if test "${with_libxml2+set}" = set; then
  2292. withval=$with_libxml2; with_libxml2=$withval
  2293. else
  2294. with_libxml2=yes
  2295. fi
  2296. # Check whether --with-libares was given.
  2297. if test "${with_libares+set}" = set; then
  2298. withval=$with_libares; with_libares=$withval
  2299. else
  2300. with_libares=yes
  2301. fi
  2302. # Check whether --with-libcares was given.
  2303. if test "${with_libcares+set}" = set; then
  2304. withval=$with_libcares; with_libcares=$withval
  2305. else
  2306. with_libcares=yes
  2307. fi
  2308. # Check whether --enable-bittorrent was given.
  2309. if test "${enable_bittorrent+set}" = set; then
  2310. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2311. else
  2312. enable_bittorrent=yes
  2313. fi
  2314. # Check whether --enable-metalink was given.
  2315. if test "${enable_metalink+set}" = set; then
  2316. enableval=$enable_metalink; enable_metalink=$enableval
  2317. else
  2318. enable_metalink=yes
  2319. fi
  2320. # Checks for programs.
  2321. ac_ext=cpp
  2322. ac_cpp='$CXXCPP $CPPFLAGS'
  2323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2326. if test -z "$CXX"; then
  2327. if test -n "$CCC"; then
  2328. CXX=$CCC
  2329. else
  2330. if test -n "$ac_tool_prefix"; then
  2331. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2332. do
  2333. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2334. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2335. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2337. if test "${ac_cv_prog_CXX+set}" = set; then
  2338. echo $ECHO_N "(cached) $ECHO_C" >&6
  2339. else
  2340. if test -n "$CXX"; then
  2341. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. CXX=$ac_cv_prog_CXX
  2360. if test -n "$CXX"; then
  2361. { echo "$as_me:$LINENO: result: $CXX" >&5
  2362. echo "${ECHO_T}$CXX" >&6; }
  2363. else
  2364. { echo "$as_me:$LINENO: result: no" >&5
  2365. echo "${ECHO_T}no" >&6; }
  2366. fi
  2367. test -n "$CXX" && break
  2368. done
  2369. fi
  2370. if test -z "$CXX"; then
  2371. ac_ct_CXX=$CXX
  2372. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2373. do
  2374. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2375. set dummy $ac_prog; ac_word=$2
  2376. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2377. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2378. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2379. echo $ECHO_N "(cached) $ECHO_C" >&6
  2380. else
  2381. if test -n "$ac_ct_CXX"; then
  2382. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2383. else
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_exec_ext in '' $ac_executable_extensions; do
  2390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2391. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2392. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2393. break 2
  2394. fi
  2395. done
  2396. done
  2397. IFS=$as_save_IFS
  2398. fi
  2399. fi
  2400. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2401. if test -n "$ac_ct_CXX"; then
  2402. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2403. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2404. else
  2405. { echo "$as_me:$LINENO: result: no" >&5
  2406. echo "${ECHO_T}no" >&6; }
  2407. fi
  2408. test -n "$ac_ct_CXX" && break
  2409. done
  2410. if test "x$ac_ct_CXX" = x; then
  2411. CXX="g++"
  2412. else
  2413. case $cross_compiling:$ac_tool_warned in
  2414. yes:)
  2415. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2416. whose name does not start with the host triplet. If you think this
  2417. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2418. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2419. whose name does not start with the host triplet. If you think this
  2420. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2421. ac_tool_warned=yes ;;
  2422. esac
  2423. CXX=$ac_ct_CXX
  2424. fi
  2425. fi
  2426. fi
  2427. fi
  2428. # Provide some information about the compiler.
  2429. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2430. ac_compiler=`set X $ac_compile; echo $2`
  2431. { (ac_try="$ac_compiler --version >&5"
  2432. case "(($ac_try" in
  2433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2434. *) ac_try_echo=$ac_try;;
  2435. esac
  2436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2437. (eval "$ac_compiler --version >&5") 2>&5
  2438. ac_status=$?
  2439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2440. (exit $ac_status); }
  2441. { (ac_try="$ac_compiler -v >&5"
  2442. case "(($ac_try" in
  2443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2444. *) ac_try_echo=$ac_try;;
  2445. esac
  2446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2447. (eval "$ac_compiler -v >&5") 2>&5
  2448. ac_status=$?
  2449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2450. (exit $ac_status); }
  2451. { (ac_try="$ac_compiler -V >&5"
  2452. case "(($ac_try" in
  2453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2454. *) ac_try_echo=$ac_try;;
  2455. esac
  2456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2457. (eval "$ac_compiler -V >&5") 2>&5
  2458. ac_status=$?
  2459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2460. (exit $ac_status); }
  2461. cat >conftest.$ac_ext <<_ACEOF
  2462. /* confdefs.h. */
  2463. _ACEOF
  2464. cat confdefs.h >>conftest.$ac_ext
  2465. cat >>conftest.$ac_ext <<_ACEOF
  2466. /* end confdefs.h. */
  2467. int
  2468. main ()
  2469. {
  2470. ;
  2471. return 0;
  2472. }
  2473. _ACEOF
  2474. ac_clean_files_save=$ac_clean_files
  2475. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2476. # Try to create an executable without -o first, disregard a.out.
  2477. # It will help us diagnose broken compilers, and finding out an intuition
  2478. # of exeext.
  2479. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2480. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2481. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2482. #
  2483. # List of possible output files, starting from the most likely.
  2484. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2485. # only as a last resort. b.out is created by i960 compilers.
  2486. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2487. #
  2488. # The IRIX 6 linker writes into existing files which may not be
  2489. # executable, retaining their permissions. Remove them first so a
  2490. # subsequent execution test works.
  2491. ac_rmfiles=
  2492. for ac_file in $ac_files
  2493. do
  2494. case $ac_file in
  2495. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2496. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2497. esac
  2498. done
  2499. rm -f $ac_rmfiles
  2500. if { (ac_try="$ac_link_default"
  2501. case "(($ac_try" in
  2502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2503. *) ac_try_echo=$ac_try;;
  2504. esac
  2505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2506. (eval "$ac_link_default") 2>&5
  2507. ac_status=$?
  2508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2509. (exit $ac_status); }; then
  2510. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2511. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2512. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2513. # so that the user can short-circuit this test for compilers unknown to
  2514. # Autoconf.
  2515. for ac_file in $ac_files ''
  2516. do
  2517. test -f "$ac_file" || continue
  2518. case $ac_file in
  2519. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2520. ;;
  2521. [ab].out )
  2522. # We found the default executable, but exeext='' is most
  2523. # certainly right.
  2524. break;;
  2525. *.* )
  2526. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2527. then :; else
  2528. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2529. fi
  2530. # We set ac_cv_exeext here because the later test for it is not
  2531. # safe: cross compilers may not add the suffix if given an `-o'
  2532. # argument, so we may need to know it at that point already.
  2533. # Even if this section looks crufty: it has the advantage of
  2534. # actually working.
  2535. break;;
  2536. * )
  2537. break;;
  2538. esac
  2539. done
  2540. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2541. else
  2542. ac_file=''
  2543. fi
  2544. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2545. echo "${ECHO_T}$ac_file" >&6; }
  2546. if test -z "$ac_file"; then
  2547. echo "$as_me: failed program was:" >&5
  2548. sed 's/^/| /' conftest.$ac_ext >&5
  2549. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2550. See \`config.log' for more details." >&5
  2551. echo "$as_me: error: C++ compiler cannot create executables
  2552. See \`config.log' for more details." >&2;}
  2553. { (exit 77); exit 77; }; }
  2554. fi
  2555. ac_exeext=$ac_cv_exeext
  2556. # Check that the compiler produces executables we can run. If not, either
  2557. # the compiler is broken, or we cross compile.
  2558. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2559. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2560. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2561. # If not cross compiling, check that we can run a simple program.
  2562. if test "$cross_compiling" != yes; then
  2563. if { ac_try='./$ac_file'
  2564. { (case "(($ac_try" in
  2565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2566. *) ac_try_echo=$ac_try;;
  2567. esac
  2568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2569. (eval "$ac_try") 2>&5
  2570. ac_status=$?
  2571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2572. (exit $ac_status); }; }; then
  2573. cross_compiling=no
  2574. else
  2575. if test "$cross_compiling" = maybe; then
  2576. cross_compiling=yes
  2577. else
  2578. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2579. If you meant to cross compile, use \`--host'.
  2580. See \`config.log' for more details." >&5
  2581. echo "$as_me: error: cannot run C++ compiled programs.
  2582. If you meant to cross compile, use \`--host'.
  2583. See \`config.log' for more details." >&2;}
  2584. { (exit 1); exit 1; }; }
  2585. fi
  2586. fi
  2587. fi
  2588. { echo "$as_me:$LINENO: result: yes" >&5
  2589. echo "${ECHO_T}yes" >&6; }
  2590. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2591. ac_clean_files=$ac_clean_files_save
  2592. # Check that the compiler produces executables we can run. If not, either
  2593. # the compiler is broken, or we cross compile.
  2594. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2595. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2596. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2597. echo "${ECHO_T}$cross_compiling" >&6; }
  2598. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2599. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2600. if { (ac_try="$ac_link"
  2601. case "(($ac_try" in
  2602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2603. *) ac_try_echo=$ac_try;;
  2604. esac
  2605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2606. (eval "$ac_link") 2>&5
  2607. ac_status=$?
  2608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2609. (exit $ac_status); }; then
  2610. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2611. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2612. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2613. # `rm'.
  2614. for ac_file in conftest.exe conftest conftest.*; do
  2615. test -f "$ac_file" || continue
  2616. case $ac_file in
  2617. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2618. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2619. break;;
  2620. * ) break;;
  2621. esac
  2622. done
  2623. else
  2624. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2625. See \`config.log' for more details." >&5
  2626. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2627. See \`config.log' for more details." >&2;}
  2628. { (exit 1); exit 1; }; }
  2629. fi
  2630. rm -f conftest$ac_cv_exeext
  2631. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2632. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2633. rm -f conftest.$ac_ext
  2634. EXEEXT=$ac_cv_exeext
  2635. ac_exeext=$EXEEXT
  2636. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2637. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2638. if test "${ac_cv_objext+set}" = set; then
  2639. echo $ECHO_N "(cached) $ECHO_C" >&6
  2640. else
  2641. cat >conftest.$ac_ext <<_ACEOF
  2642. /* confdefs.h. */
  2643. _ACEOF
  2644. cat confdefs.h >>conftest.$ac_ext
  2645. cat >>conftest.$ac_ext <<_ACEOF
  2646. /* end confdefs.h. */
  2647. int
  2648. main ()
  2649. {
  2650. ;
  2651. return 0;
  2652. }
  2653. _ACEOF
  2654. rm -f conftest.o conftest.obj
  2655. if { (ac_try="$ac_compile"
  2656. case "(($ac_try" in
  2657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2658. *) ac_try_echo=$ac_try;;
  2659. esac
  2660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2661. (eval "$ac_compile") 2>&5
  2662. ac_status=$?
  2663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2664. (exit $ac_status); }; then
  2665. for ac_file in conftest.o conftest.obj conftest.*; do
  2666. test -f "$ac_file" || continue;
  2667. case $ac_file in
  2668. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2669. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2670. break;;
  2671. esac
  2672. done
  2673. else
  2674. echo "$as_me: failed program was:" >&5
  2675. sed 's/^/| /' conftest.$ac_ext >&5
  2676. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2677. See \`config.log' for more details." >&5
  2678. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2679. See \`config.log' for more details." >&2;}
  2680. { (exit 1); exit 1; }; }
  2681. fi
  2682. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2683. fi
  2684. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2685. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2686. OBJEXT=$ac_cv_objext
  2687. ac_objext=$OBJEXT
  2688. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2689. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2690. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2691. echo $ECHO_N "(cached) $ECHO_C" >&6
  2692. else
  2693. cat >conftest.$ac_ext <<_ACEOF
  2694. /* confdefs.h. */
  2695. _ACEOF
  2696. cat confdefs.h >>conftest.$ac_ext
  2697. cat >>conftest.$ac_ext <<_ACEOF
  2698. /* end confdefs.h. */
  2699. int
  2700. main ()
  2701. {
  2702. #ifndef __GNUC__
  2703. choke me
  2704. #endif
  2705. ;
  2706. return 0;
  2707. }
  2708. _ACEOF
  2709. rm -f conftest.$ac_objext
  2710. if { (ac_try="$ac_compile"
  2711. case "(($ac_try" in
  2712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2713. *) ac_try_echo=$ac_try;;
  2714. esac
  2715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2716. (eval "$ac_compile") 2>conftest.er1
  2717. ac_status=$?
  2718. grep -v '^ *+' conftest.er1 >conftest.err
  2719. rm -f conftest.er1
  2720. cat conftest.err >&5
  2721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2722. (exit $ac_status); } && {
  2723. test -z "$ac_cxx_werror_flag" ||
  2724. test ! -s conftest.err
  2725. } && test -s conftest.$ac_objext; then
  2726. ac_compiler_gnu=yes
  2727. else
  2728. echo "$as_me: failed program was:" >&5
  2729. sed 's/^/| /' conftest.$ac_ext >&5
  2730. ac_compiler_gnu=no
  2731. fi
  2732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2733. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2734. fi
  2735. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2736. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2737. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2738. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2739. ac_save_CXXFLAGS=$CXXFLAGS
  2740. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2741. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2742. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2746. ac_cxx_werror_flag=yes
  2747. ac_cv_prog_cxx_g=no
  2748. CXXFLAGS="-g"
  2749. cat >conftest.$ac_ext <<_ACEOF
  2750. /* confdefs.h. */
  2751. _ACEOF
  2752. cat confdefs.h >>conftest.$ac_ext
  2753. cat >>conftest.$ac_ext <<_ACEOF
  2754. /* end confdefs.h. */
  2755. int
  2756. main ()
  2757. {
  2758. ;
  2759. return 0;
  2760. }
  2761. _ACEOF
  2762. rm -f conftest.$ac_objext
  2763. if { (ac_try="$ac_compile"
  2764. case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2769. (eval "$ac_compile") 2>conftest.er1
  2770. ac_status=$?
  2771. grep -v '^ *+' conftest.er1 >conftest.err
  2772. rm -f conftest.er1
  2773. cat conftest.err >&5
  2774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2775. (exit $ac_status); } && {
  2776. test -z "$ac_cxx_werror_flag" ||
  2777. test ! -s conftest.err
  2778. } && test -s conftest.$ac_objext; then
  2779. ac_cv_prog_cxx_g=yes
  2780. else
  2781. echo "$as_me: failed program was:" >&5
  2782. sed 's/^/| /' conftest.$ac_ext >&5
  2783. CXXFLAGS=""
  2784. cat >conftest.$ac_ext <<_ACEOF
  2785. /* confdefs.h. */
  2786. _ACEOF
  2787. cat confdefs.h >>conftest.$ac_ext
  2788. cat >>conftest.$ac_ext <<_ACEOF
  2789. /* end confdefs.h. */
  2790. int
  2791. main ()
  2792. {
  2793. ;
  2794. return 0;
  2795. }
  2796. _ACEOF
  2797. rm -f conftest.$ac_objext
  2798. if { (ac_try="$ac_compile"
  2799. case "(($ac_try" in
  2800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2801. *) ac_try_echo=$ac_try;;
  2802. esac
  2803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2804. (eval "$ac_compile") 2>conftest.er1
  2805. ac_status=$?
  2806. grep -v '^ *+' conftest.er1 >conftest.err
  2807. rm -f conftest.er1
  2808. cat conftest.err >&5
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); } && {
  2811. test -z "$ac_cxx_werror_flag" ||
  2812. test ! -s conftest.err
  2813. } && test -s conftest.$ac_objext; then
  2814. :
  2815. else
  2816. echo "$as_me: failed program was:" >&5
  2817. sed 's/^/| /' conftest.$ac_ext >&5
  2818. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2819. CXXFLAGS="-g"
  2820. cat >conftest.$ac_ext <<_ACEOF
  2821. /* confdefs.h. */
  2822. _ACEOF
  2823. cat confdefs.h >>conftest.$ac_ext
  2824. cat >>conftest.$ac_ext <<_ACEOF
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. rm -f conftest.$ac_objext
  2834. if { (ac_try="$ac_compile"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2840. (eval "$ac_compile") 2>conftest.er1
  2841. ac_status=$?
  2842. grep -v '^ *+' conftest.er1 >conftest.err
  2843. rm -f conftest.er1
  2844. cat conftest.err >&5
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); } && {
  2847. test -z "$ac_cxx_werror_flag" ||
  2848. test ! -s conftest.err
  2849. } && test -s conftest.$ac_objext; then
  2850. ac_cv_prog_cxx_g=yes
  2851. else
  2852. echo "$as_me: failed program was:" >&5
  2853. sed 's/^/| /' conftest.$ac_ext >&5
  2854. fi
  2855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2856. fi
  2857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2858. fi
  2859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2860. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2861. fi
  2862. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2863. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2864. if test "$ac_test_CXXFLAGS" = set; then
  2865. CXXFLAGS=$ac_save_CXXFLAGS
  2866. elif test $ac_cv_prog_cxx_g = yes; then
  2867. if test "$GXX" = yes; then
  2868. CXXFLAGS="-g -O2"
  2869. else
  2870. CXXFLAGS="-g"
  2871. fi
  2872. else
  2873. if test "$GXX" = yes; then
  2874. CXXFLAGS="-O2"
  2875. else
  2876. CXXFLAGS=
  2877. fi
  2878. fi
  2879. ac_ext=c
  2880. ac_cpp='$CPP $CPPFLAGS'
  2881. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2882. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2884. DEPDIR="${am__leading_dot}deps"
  2885. ac_config_commands="$ac_config_commands depfiles"
  2886. am_make=${MAKE-make}
  2887. cat > confinc << 'END'
  2888. am__doit:
  2889. @echo done
  2890. .PHONY: am__doit
  2891. END
  2892. # If we don't find an include directive, just comment out the code.
  2893. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2894. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2895. am__include="#"
  2896. am__quote=
  2897. _am_result=none
  2898. # First try GNU make style include.
  2899. echo "include confinc" > confmf
  2900. # We grep out `Entering directory' and `Leaving directory'
  2901. # messages which can occur if `w' ends up in MAKEFLAGS.
  2902. # In particular we don't look at `^make:' because GNU make might
  2903. # be invoked under some other name (usually "gmake"), in which
  2904. # case it prints its new name instead of `make'.
  2905. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2906. am__include=include
  2907. am__quote=
  2908. _am_result=GNU
  2909. fi
  2910. # Now try BSD make style include.
  2911. if test "$am__include" = "#"; then
  2912. echo '.include "confinc"' > confmf
  2913. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2914. am__include=.include
  2915. am__quote="\""
  2916. _am_result=BSD
  2917. fi
  2918. fi
  2919. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2920. echo "${ECHO_T}$_am_result" >&6; }
  2921. rm -f confinc confmf
  2922. # Check whether --enable-dependency-tracking was given.
  2923. if test "${enable_dependency_tracking+set}" = set; then
  2924. enableval=$enable_dependency_tracking;
  2925. fi
  2926. if test "x$enable_dependency_tracking" != xno; then
  2927. am_depcomp="$ac_aux_dir/depcomp"
  2928. AMDEPBACKSLASH='\'
  2929. fi
  2930. if test "x$enable_dependency_tracking" != xno; then
  2931. AMDEP_TRUE=
  2932. AMDEP_FALSE='#'
  2933. else
  2934. AMDEP_TRUE='#'
  2935. AMDEP_FALSE=
  2936. fi
  2937. depcc="$CXX" am_compiler_list=
  2938. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2939. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2940. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2941. echo $ECHO_N "(cached) $ECHO_C" >&6
  2942. else
  2943. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2944. # We make a subdir and do the tests there. Otherwise we can end up
  2945. # making bogus files that we don't know about and never remove. For
  2946. # instance it was reported that on HP-UX the gcc test will end up
  2947. # making a dummy file named `D' -- because `-MD' means `put the output
  2948. # in D'.
  2949. mkdir conftest.dir
  2950. # Copy depcomp to subdir because otherwise we won't find it if we're
  2951. # using a relative directory.
  2952. cp "$am_depcomp" conftest.dir
  2953. cd conftest.dir
  2954. # We will build objects and dependencies in a subdirectory because
  2955. # it helps to detect inapplicable dependency modes. For instance
  2956. # both Tru64's cc and ICC support -MD to output dependencies as a
  2957. # side effect of compilation, but ICC will put the dependencies in
  2958. # the current directory while Tru64 will put them in the object
  2959. # directory.
  2960. mkdir sub
  2961. am_cv_CXX_dependencies_compiler_type=none
  2962. if test "$am_compiler_list" = ""; then
  2963. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2964. fi
  2965. for depmode in $am_compiler_list; do
  2966. # Setup a source with many dependencies, because some compilers
  2967. # like to wrap large dependency lists on column 80 (with \), and
  2968. # we should not choose a depcomp mode which is confused by this.
  2969. #
  2970. # We need to recreate these files for each test, as the compiler may
  2971. # overwrite some of them when testing with obscure command lines.
  2972. # This happens at least with the AIX C compiler.
  2973. : > sub/conftest.c
  2974. for i in 1 2 3 4 5 6; do
  2975. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2976. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2977. # Solaris 8's {/usr,}/bin/sh.
  2978. touch sub/conftst$i.h
  2979. done
  2980. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2981. case $depmode in
  2982. nosideeffect)
  2983. # after this tag, mechanisms are not by side-effect, so they'll
  2984. # only be used when explicitly requested
  2985. if test "x$enable_dependency_tracking" = xyes; then
  2986. continue
  2987. else
  2988. break
  2989. fi
  2990. ;;
  2991. none) break ;;
  2992. esac
  2993. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2994. # mode. It turns out that the SunPro C++ compiler does not properly
  2995. # handle `-M -o', and we need to detect this.
  2996. if depmode=$depmode \
  2997. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2998. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2999. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3000. >/dev/null 2>conftest.err &&
  3001. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3002. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3003. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3004. # icc doesn't choke on unknown options, it will just issue warnings
  3005. # or remarks (even with -Werror). So we grep stderr for any message
  3006. # that says an option was ignored or not supported.
  3007. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3008. # icc: Command line warning: ignoring option '-M'; no argument required
  3009. # The diagnosis changed in icc 8.0:
  3010. # icc: Command line remark: option '-MP' not supported
  3011. if (grep 'ignoring option' conftest.err ||
  3012. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3013. am_cv_CXX_dependencies_compiler_type=$depmode
  3014. break
  3015. fi
  3016. fi
  3017. done
  3018. cd ..
  3019. rm -rf conftest.dir
  3020. else
  3021. am_cv_CXX_dependencies_compiler_type=none
  3022. fi
  3023. fi
  3024. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3025. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3026. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3027. if
  3028. test "x$enable_dependency_tracking" != xno \
  3029. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3030. am__fastdepCXX_TRUE=
  3031. am__fastdepCXX_FALSE='#'
  3032. else
  3033. am__fastdepCXX_TRUE='#'
  3034. am__fastdepCXX_FALSE=
  3035. fi
  3036. ac_ext=c
  3037. ac_cpp='$CPP $CPPFLAGS'
  3038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3041. if test -n "$ac_tool_prefix"; then
  3042. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3043. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3044. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3045. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3046. if test "${ac_cv_prog_CC+set}" = set; then
  3047. echo $ECHO_N "(cached) $ECHO_C" >&6
  3048. else
  3049. if test -n "$CC"; then
  3050. ac_cv_prog_CC="$CC" # Let the user override the test.
  3051. else
  3052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3053. for as_dir in $PATH
  3054. do
  3055. IFS=$as_save_IFS
  3056. test -z "$as_dir" && as_dir=.
  3057. for ac_exec_ext in '' $ac_executable_extensions; do
  3058. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3059. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3060. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3061. break 2
  3062. fi
  3063. done
  3064. done
  3065. IFS=$as_save_IFS
  3066. fi
  3067. fi
  3068. CC=$ac_cv_prog_CC
  3069. if test -n "$CC"; then
  3070. { echo "$as_me:$LINENO: result: $CC" >&5
  3071. echo "${ECHO_T}$CC" >&6; }
  3072. else
  3073. { echo "$as_me:$LINENO: result: no" >&5
  3074. echo "${ECHO_T}no" >&6; }
  3075. fi
  3076. fi
  3077. if test -z "$ac_cv_prog_CC"; then
  3078. ac_ct_CC=$CC
  3079. # Extract the first word of "gcc", so it can be a program name with args.
  3080. set dummy gcc; ac_word=$2
  3081. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3082. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3083. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3084. echo $ECHO_N "(cached) $ECHO_C" >&6
  3085. else
  3086. if test -n "$ac_ct_CC"; then
  3087. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3088. else
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_exec_ext in '' $ac_executable_extensions; do
  3095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3096. ac_cv_prog_ac_ct_CC="gcc"
  3097. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3098. break 2
  3099. fi
  3100. done
  3101. done
  3102. IFS=$as_save_IFS
  3103. fi
  3104. fi
  3105. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3106. if test -n "$ac_ct_CC"; then
  3107. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3108. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3109. else
  3110. { echo "$as_me:$LINENO: result: no" >&5
  3111. echo "${ECHO_T}no" >&6; }
  3112. fi
  3113. if test "x$ac_ct_CC" = x; then
  3114. CC=""
  3115. else
  3116. case $cross_compiling:$ac_tool_warned in
  3117. yes:)
  3118. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3119. whose name does not start with the host triplet. If you think this
  3120. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3121. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3122. whose name does not start with the host triplet. If you think this
  3123. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3124. ac_tool_warned=yes ;;
  3125. esac
  3126. CC=$ac_ct_CC
  3127. fi
  3128. else
  3129. CC="$ac_cv_prog_CC"
  3130. fi
  3131. if test -z "$CC"; then
  3132. if test -n "$ac_tool_prefix"; then
  3133. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3134. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3135. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3136. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3137. if test "${ac_cv_prog_CC+set}" = set; then
  3138. echo $ECHO_N "(cached) $ECHO_C" >&6
  3139. else
  3140. if test -n "$CC"; then
  3141. ac_cv_prog_CC="$CC" # Let the user override the test.
  3142. else
  3143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3144. for as_dir in $PATH
  3145. do
  3146. IFS=$as_save_IFS
  3147. test -z "$as_dir" && as_dir=.
  3148. for ac_exec_ext in '' $ac_executable_extensions; do
  3149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3150. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3151. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3152. break 2
  3153. fi
  3154. done
  3155. done
  3156. IFS=$as_save_IFS
  3157. fi
  3158. fi
  3159. CC=$ac_cv_prog_CC
  3160. if test -n "$CC"; then
  3161. { echo "$as_me:$LINENO: result: $CC" >&5
  3162. echo "${ECHO_T}$CC" >&6; }
  3163. else
  3164. { echo "$as_me:$LINENO: result: no" >&5
  3165. echo "${ECHO_T}no" >&6; }
  3166. fi
  3167. fi
  3168. fi
  3169. if test -z "$CC"; then
  3170. # Extract the first word of "cc", so it can be a program name with args.
  3171. set dummy cc; ac_word=$2
  3172. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3174. if test "${ac_cv_prog_CC+set}" = set; then
  3175. echo $ECHO_N "(cached) $ECHO_C" >&6
  3176. else
  3177. if test -n "$CC"; then
  3178. ac_cv_prog_CC="$CC" # Let the user override the test.
  3179. else
  3180. ac_prog_rejected=no
  3181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3182. for as_dir in $PATH
  3183. do
  3184. IFS=$as_save_IFS
  3185. test -z "$as_dir" && as_dir=.
  3186. for ac_exec_ext in '' $ac_executable_extensions; do
  3187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3188. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3189. ac_prog_rejected=yes
  3190. continue
  3191. fi
  3192. ac_cv_prog_CC="cc"
  3193. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3194. break 2
  3195. fi
  3196. done
  3197. done
  3198. IFS=$as_save_IFS
  3199. if test $ac_prog_rejected = yes; then
  3200. # We found a bogon in the path, so make sure we never use it.
  3201. set dummy $ac_cv_prog_CC
  3202. shift
  3203. if test $# != 0; then
  3204. # We chose a different compiler from the bogus one.
  3205. # However, it has the same basename, so the bogon will be chosen
  3206. # first if we set CC to just the basename; use the full file name.
  3207. shift
  3208. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3209. fi
  3210. fi
  3211. fi
  3212. fi
  3213. CC=$ac_cv_prog_CC
  3214. if test -n "$CC"; then
  3215. { echo "$as_me:$LINENO: result: $CC" >&5
  3216. echo "${ECHO_T}$CC" >&6; }
  3217. else
  3218. { echo "$as_me:$LINENO: result: no" >&5
  3219. echo "${ECHO_T}no" >&6; }
  3220. fi
  3221. fi
  3222. if test -z "$CC"; then
  3223. if test -n "$ac_tool_prefix"; then
  3224. for ac_prog in cl.exe
  3225. do
  3226. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3227. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3228. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3229. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3230. if test "${ac_cv_prog_CC+set}" = set; then
  3231. echo $ECHO_N "(cached) $ECHO_C" >&6
  3232. else
  3233. if test -n "$CC"; then
  3234. ac_cv_prog_CC="$CC" # Let the user override the test.
  3235. else
  3236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3237. for as_dir in $PATH
  3238. do
  3239. IFS=$as_save_IFS
  3240. test -z "$as_dir" && as_dir=.
  3241. for ac_exec_ext in '' $ac_executable_extensions; do
  3242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3243. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3244. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3245. break 2
  3246. fi
  3247. done
  3248. done
  3249. IFS=$as_save_IFS
  3250. fi
  3251. fi
  3252. CC=$ac_cv_prog_CC
  3253. if test -n "$CC"; then
  3254. { echo "$as_me:$LINENO: result: $CC" >&5
  3255. echo "${ECHO_T}$CC" >&6; }
  3256. else
  3257. { echo "$as_me:$LINENO: result: no" >&5
  3258. echo "${ECHO_T}no" >&6; }
  3259. fi
  3260. test -n "$CC" && break
  3261. done
  3262. fi
  3263. if test -z "$CC"; then
  3264. ac_ct_CC=$CC
  3265. for ac_prog in cl.exe
  3266. do
  3267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3268. set dummy $ac_prog; ac_word=$2
  3269. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3270. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3271. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3272. echo $ECHO_N "(cached) $ECHO_C" >&6
  3273. else
  3274. if test -n "$ac_ct_CC"; then
  3275. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3276. else
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280. IFS=$as_save_IFS
  3281. test -z "$as_dir" && as_dir=.
  3282. for ac_exec_ext in '' $ac_executable_extensions; do
  3283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3284. ac_cv_prog_ac_ct_CC="$ac_prog"
  3285. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3286. break 2
  3287. fi
  3288. done
  3289. done
  3290. IFS=$as_save_IFS
  3291. fi
  3292. fi
  3293. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3294. if test -n "$ac_ct_CC"; then
  3295. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3296. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3297. else
  3298. { echo "$as_me:$LINENO: result: no" >&5
  3299. echo "${ECHO_T}no" >&6; }
  3300. fi
  3301. test -n "$ac_ct_CC" && break
  3302. done
  3303. if test "x$ac_ct_CC" = x; then
  3304. CC=""
  3305. else
  3306. case $cross_compiling:$ac_tool_warned in
  3307. yes:)
  3308. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3309. whose name does not start with the host triplet. If you think this
  3310. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3311. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3312. whose name does not start with the host triplet. If you think this
  3313. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3314. ac_tool_warned=yes ;;
  3315. esac
  3316. CC=$ac_ct_CC
  3317. fi
  3318. fi
  3319. fi
  3320. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3321. See \`config.log' for more details." >&5
  3322. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3323. See \`config.log' for more details." >&2;}
  3324. { (exit 1); exit 1; }; }
  3325. # Provide some information about the compiler.
  3326. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3327. ac_compiler=`set X $ac_compile; echo $2`
  3328. { (ac_try="$ac_compiler --version >&5"
  3329. case "(($ac_try" in
  3330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3331. *) ac_try_echo=$ac_try;;
  3332. esac
  3333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3334. (eval "$ac_compiler --version >&5") 2>&5
  3335. ac_status=$?
  3336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); }
  3338. { (ac_try="$ac_compiler -v >&5"
  3339. case "(($ac_try" in
  3340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3341. *) ac_try_echo=$ac_try;;
  3342. esac
  3343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3344. (eval "$ac_compiler -v >&5") 2>&5
  3345. ac_status=$?
  3346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3347. (exit $ac_status); }
  3348. { (ac_try="$ac_compiler -V >&5"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3354. (eval "$ac_compiler -V >&5") 2>&5
  3355. ac_status=$?
  3356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3357. (exit $ac_status); }
  3358. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3359. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3360. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3361. echo $ECHO_N "(cached) $ECHO_C" >&6
  3362. else
  3363. cat >conftest.$ac_ext <<_ACEOF
  3364. /* confdefs.h. */
  3365. _ACEOF
  3366. cat confdefs.h >>conftest.$ac_ext
  3367. cat >>conftest.$ac_ext <<_ACEOF
  3368. /* end confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. #ifndef __GNUC__
  3373. choke me
  3374. #endif
  3375. ;
  3376. return 0;
  3377. }
  3378. _ACEOF
  3379. rm -f conftest.$ac_objext
  3380. if { (ac_try="$ac_compile"
  3381. case "(($ac_try" in
  3382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3383. *) ac_try_echo=$ac_try;;
  3384. esac
  3385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3386. (eval "$ac_compile") 2>conftest.er1
  3387. ac_status=$?
  3388. grep -v '^ *+' conftest.er1 >conftest.err
  3389. rm -f conftest.er1
  3390. cat conftest.err >&5
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); } && {
  3393. test -z "$ac_c_werror_flag" ||
  3394. test ! -s conftest.err
  3395. } && test -s conftest.$ac_objext; then
  3396. ac_compiler_gnu=yes
  3397. else
  3398. echo "$as_me: failed program was:" >&5
  3399. sed 's/^/| /' conftest.$ac_ext >&5
  3400. ac_compiler_gnu=no
  3401. fi
  3402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3403. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3404. fi
  3405. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3406. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3407. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3408. ac_test_CFLAGS=${CFLAGS+set}
  3409. ac_save_CFLAGS=$CFLAGS
  3410. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3411. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3412. if test "${ac_cv_prog_cc_g+set}" = set; then
  3413. echo $ECHO_N "(cached) $ECHO_C" >&6
  3414. else
  3415. ac_save_c_werror_flag=$ac_c_werror_flag
  3416. ac_c_werror_flag=yes
  3417. ac_cv_prog_cc_g=no
  3418. CFLAGS="-g"
  3419. cat >conftest.$ac_ext <<_ACEOF
  3420. /* confdefs.h. */
  3421. _ACEOF
  3422. cat confdefs.h >>conftest.$ac_ext
  3423. cat >>conftest.$ac_ext <<_ACEOF
  3424. /* end confdefs.h. */
  3425. int
  3426. main ()
  3427. {
  3428. ;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. rm -f conftest.$ac_objext
  3433. if { (ac_try="$ac_compile"
  3434. case "(($ac_try" in
  3435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3436. *) ac_try_echo=$ac_try;;
  3437. esac
  3438. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3439. (eval "$ac_compile") 2>conftest.er1
  3440. ac_status=$?
  3441. grep -v '^ *+' conftest.er1 >conftest.err
  3442. rm -f conftest.er1
  3443. cat conftest.err >&5
  3444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3445. (exit $ac_status); } && {
  3446. test -z "$ac_c_werror_flag" ||
  3447. test ! -s conftest.err
  3448. } && test -s conftest.$ac_objext; then
  3449. ac_cv_prog_cc_g=yes
  3450. else
  3451. echo "$as_me: failed program was:" >&5
  3452. sed 's/^/| /' conftest.$ac_ext >&5
  3453. CFLAGS=""
  3454. cat >conftest.$ac_ext <<_ACEOF
  3455. /* confdefs.h. */
  3456. _ACEOF
  3457. cat confdefs.h >>conftest.$ac_ext
  3458. cat >>conftest.$ac_ext <<_ACEOF
  3459. /* end confdefs.h. */
  3460. int
  3461. main ()
  3462. {
  3463. ;
  3464. return 0;
  3465. }
  3466. _ACEOF
  3467. rm -f conftest.$ac_objext
  3468. if { (ac_try="$ac_compile"
  3469. case "(($ac_try" in
  3470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3471. *) ac_try_echo=$ac_try;;
  3472. esac
  3473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3474. (eval "$ac_compile") 2>conftest.er1
  3475. ac_status=$?
  3476. grep -v '^ *+' conftest.er1 >conftest.err
  3477. rm -f conftest.er1
  3478. cat conftest.err >&5
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); } && {
  3481. test -z "$ac_c_werror_flag" ||
  3482. test ! -s conftest.err
  3483. } && test -s conftest.$ac_objext; then
  3484. :
  3485. else
  3486. echo "$as_me: failed program was:" >&5
  3487. sed 's/^/| /' conftest.$ac_ext >&5
  3488. ac_c_werror_flag=$ac_save_c_werror_flag
  3489. CFLAGS="-g"
  3490. cat >conftest.$ac_ext <<_ACEOF
  3491. /* confdefs.h. */
  3492. _ACEOF
  3493. cat confdefs.h >>conftest.$ac_ext
  3494. cat >>conftest.$ac_ext <<_ACEOF
  3495. /* end confdefs.h. */
  3496. int
  3497. main ()
  3498. {
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. rm -f conftest.$ac_objext
  3504. if { (ac_try="$ac_compile"
  3505. case "(($ac_try" in
  3506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3510. (eval "$ac_compile") 2>conftest.er1
  3511. ac_status=$?
  3512. grep -v '^ *+' conftest.er1 >conftest.err
  3513. rm -f conftest.er1
  3514. cat conftest.err >&5
  3515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3516. (exit $ac_status); } && {
  3517. test -z "$ac_c_werror_flag" ||
  3518. test ! -s conftest.err
  3519. } && test -s conftest.$ac_objext; then
  3520. ac_cv_prog_cc_g=yes
  3521. else
  3522. echo "$as_me: failed program was:" >&5
  3523. sed 's/^/| /' conftest.$ac_ext >&5
  3524. fi
  3525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3526. fi
  3527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3528. fi
  3529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3530. ac_c_werror_flag=$ac_save_c_werror_flag
  3531. fi
  3532. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3533. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3534. if test "$ac_test_CFLAGS" = set; then
  3535. CFLAGS=$ac_save_CFLAGS
  3536. elif test $ac_cv_prog_cc_g = yes; then
  3537. if test "$GCC" = yes; then
  3538. CFLAGS="-g -O2"
  3539. else
  3540. CFLAGS="-g"
  3541. fi
  3542. else
  3543. if test "$GCC" = yes; then
  3544. CFLAGS="-O2"
  3545. else
  3546. CFLAGS=
  3547. fi
  3548. fi
  3549. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3550. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3551. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3552. echo $ECHO_N "(cached) $ECHO_C" >&6
  3553. else
  3554. ac_cv_prog_cc_c89=no
  3555. ac_save_CC=$CC
  3556. cat >conftest.$ac_ext <<_ACEOF
  3557. /* confdefs.h. */
  3558. _ACEOF
  3559. cat confdefs.h >>conftest.$ac_ext
  3560. cat >>conftest.$ac_ext <<_ACEOF
  3561. /* end confdefs.h. */
  3562. #include <stdarg.h>
  3563. #include <stdio.h>
  3564. #include <sys/types.h>
  3565. #include <sys/stat.h>
  3566. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3567. struct buf { int x; };
  3568. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3569. static char *e (p, i)
  3570. char **p;
  3571. int i;
  3572. {
  3573. return p[i];
  3574. }
  3575. static char *f (char * (*g) (char **, int), char **p, ...)
  3576. {
  3577. char *s;
  3578. va_list v;
  3579. va_start (v,p);
  3580. s = g (p, va_arg (v,int));
  3581. va_end (v);
  3582. return s;
  3583. }
  3584. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3585. function prototypes and stuff, but not '\xHH' hex character constants.
  3586. These don't provoke an error unfortunately, instead are silently treated
  3587. as 'x'. The following induces an error, until -std is added to get
  3588. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3589. array size at least. It's necessary to write '\x00'==0 to get something
  3590. that's true only with -std. */
  3591. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3592. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3593. inside strings and character constants. */
  3594. #define FOO(x) 'x'
  3595. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3596. int test (int i, double x);
  3597. struct s1 {int (*f) (int a);};
  3598. struct s2 {int (*f) (double a);};
  3599. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3600. int argc;
  3601. char **argv;
  3602. int
  3603. main ()
  3604. {
  3605. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3606. ;
  3607. return 0;
  3608. }
  3609. _ACEOF
  3610. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3611. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3612. do
  3613. CC="$ac_save_CC $ac_arg"
  3614. rm -f conftest.$ac_objext
  3615. if { (ac_try="$ac_compile"
  3616. case "(($ac_try" in
  3617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3618. *) ac_try_echo=$ac_try;;
  3619. esac
  3620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3621. (eval "$ac_compile") 2>conftest.er1
  3622. ac_status=$?
  3623. grep -v '^ *+' conftest.er1 >conftest.err
  3624. rm -f conftest.er1
  3625. cat conftest.err >&5
  3626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3627. (exit $ac_status); } && {
  3628. test -z "$ac_c_werror_flag" ||
  3629. test ! -s conftest.err
  3630. } && test -s conftest.$ac_objext; then
  3631. ac_cv_prog_cc_c89=$ac_arg
  3632. else
  3633. echo "$as_me: failed program was:" >&5
  3634. sed 's/^/| /' conftest.$ac_ext >&5
  3635. fi
  3636. rm -f core conftest.err conftest.$ac_objext
  3637. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3638. done
  3639. rm -f conftest.$ac_ext
  3640. CC=$ac_save_CC
  3641. fi
  3642. # AC_CACHE_VAL
  3643. case "x$ac_cv_prog_cc_c89" in
  3644. x)
  3645. { echo "$as_me:$LINENO: result: none needed" >&5
  3646. echo "${ECHO_T}none needed" >&6; } ;;
  3647. xno)
  3648. { echo "$as_me:$LINENO: result: unsupported" >&5
  3649. echo "${ECHO_T}unsupported" >&6; } ;;
  3650. *)
  3651. CC="$CC $ac_cv_prog_cc_c89"
  3652. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3653. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3654. esac
  3655. ac_ext=c
  3656. ac_cpp='$CPP $CPPFLAGS'
  3657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3660. depcc="$CC" am_compiler_list=
  3661. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3662. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3663. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3664. echo $ECHO_N "(cached) $ECHO_C" >&6
  3665. else
  3666. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3667. # We make a subdir and do the tests there. Otherwise we can end up
  3668. # making bogus files that we don't know about and never remove. For
  3669. # instance it was reported that on HP-UX the gcc test will end up
  3670. # making a dummy file named `D' -- because `-MD' means `put the output
  3671. # in D'.
  3672. mkdir conftest.dir
  3673. # Copy depcomp to subdir because otherwise we won't find it if we're
  3674. # using a relative directory.
  3675. cp "$am_depcomp" conftest.dir
  3676. cd conftest.dir
  3677. # We will build objects and dependencies in a subdirectory because
  3678. # it helps to detect inapplicable dependency modes. For instance
  3679. # both Tru64's cc and ICC support -MD to output dependencies as a
  3680. # side effect of compilation, but ICC will put the dependencies in
  3681. # the current directory while Tru64 will put them in the object
  3682. # directory.
  3683. mkdir sub
  3684. am_cv_CC_dependencies_compiler_type=none
  3685. if test "$am_compiler_list" = ""; then
  3686. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3687. fi
  3688. for depmode in $am_compiler_list; do
  3689. # Setup a source with many dependencies, because some compilers
  3690. # like to wrap large dependency lists on column 80 (with \), and
  3691. # we should not choose a depcomp mode which is confused by this.
  3692. #
  3693. # We need to recreate these files for each test, as the compiler may
  3694. # overwrite some of them when testing with obscure command lines.
  3695. # This happens at least with the AIX C compiler.
  3696. : > sub/conftest.c
  3697. for i in 1 2 3 4 5 6; do
  3698. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3699. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3700. # Solaris 8's {/usr,}/bin/sh.
  3701. touch sub/conftst$i.h
  3702. done
  3703. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3704. case $depmode in
  3705. nosideeffect)
  3706. # after this tag, mechanisms are not by side-effect, so they'll
  3707. # only be used when explicitly requested
  3708. if test "x$enable_dependency_tracking" = xyes; then
  3709. continue
  3710. else
  3711. break
  3712. fi
  3713. ;;
  3714. none) break ;;
  3715. esac
  3716. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3717. # mode. It turns out that the SunPro C++ compiler does not properly
  3718. # handle `-M -o', and we need to detect this.
  3719. if depmode=$depmode \
  3720. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3721. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3722. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3723. >/dev/null 2>conftest.err &&
  3724. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3725. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3726. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3727. # icc doesn't choke on unknown options, it will just issue warnings
  3728. # or remarks (even with -Werror). So we grep stderr for any message
  3729. # that says an option was ignored or not supported.
  3730. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3731. # icc: Command line warning: ignoring option '-M'; no argument required
  3732. # The diagnosis changed in icc 8.0:
  3733. # icc: Command line remark: option '-MP' not supported
  3734. if (grep 'ignoring option' conftest.err ||
  3735. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3736. am_cv_CC_dependencies_compiler_type=$depmode
  3737. break
  3738. fi
  3739. fi
  3740. done
  3741. cd ..
  3742. rm -rf conftest.dir
  3743. else
  3744. am_cv_CC_dependencies_compiler_type=none
  3745. fi
  3746. fi
  3747. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3748. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3749. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3750. if
  3751. test "x$enable_dependency_tracking" != xno \
  3752. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3753. am__fastdepCC_TRUE=
  3754. am__fastdepCC_FALSE='#'
  3755. else
  3756. am__fastdepCC_TRUE='#'
  3757. am__fastdepCC_FALSE=
  3758. fi
  3759. # Find a good install program. We prefer a C program (faster),
  3760. # so one script is as good as another. But avoid the broken or
  3761. # incompatible versions:
  3762. # SysV /etc/install, /usr/sbin/install
  3763. # SunOS /usr/etc/install
  3764. # IRIX /sbin/install
  3765. # AIX /bin/install
  3766. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3767. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3768. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3769. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3770. # OS/2's system install, which has a completely different semantic
  3771. # ./install, which can be erroneously created by make from ./install.sh.
  3772. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3773. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3774. if test -z "$INSTALL"; then
  3775. if test "${ac_cv_path_install+set}" = set; then
  3776. echo $ECHO_N "(cached) $ECHO_C" >&6
  3777. else
  3778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3779. for as_dir in $PATH
  3780. do
  3781. IFS=$as_save_IFS
  3782. test -z "$as_dir" && as_dir=.
  3783. # Account for people who put trailing slashes in PATH elements.
  3784. case $as_dir/ in
  3785. ./ | .// | /cC/* | \
  3786. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3787. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3788. /usr/ucb/* ) ;;
  3789. *)
  3790. # OSF1 and SCO ODT 3.0 have their own names for install.
  3791. # Don't use installbsd from OSF since it installs stuff as root
  3792. # by default.
  3793. for ac_prog in ginstall scoinst install; do
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3796. if test $ac_prog = install &&
  3797. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3798. # AIX install. It has an incompatible calling convention.
  3799. :
  3800. elif test $ac_prog = install &&
  3801. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3802. # program-specific install script used by HP pwplus--don't use.
  3803. :
  3804. else
  3805. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3806. break 3
  3807. fi
  3808. fi
  3809. done
  3810. done
  3811. ;;
  3812. esac
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. if test "${ac_cv_path_install+set}" = set; then
  3817. INSTALL=$ac_cv_path_install
  3818. else
  3819. # As a last resort, use the slow shell script. Don't cache a
  3820. # value for INSTALL within a source directory, because that will
  3821. # break other packages using the cache if that directory is
  3822. # removed, or if the value is a relative name.
  3823. INSTALL=$ac_install_sh
  3824. fi
  3825. fi
  3826. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3827. echo "${ECHO_T}$INSTALL" >&6; }
  3828. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3829. # It thinks the first close brace ends the variable substitution.
  3830. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3831. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3832. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3833. if test -n "$ac_tool_prefix"; then
  3834. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3835. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3836. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3837. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3838. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3839. echo $ECHO_N "(cached) $ECHO_C" >&6
  3840. else
  3841. if test -n "$RANLIB"; then
  3842. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3843. else
  3844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3845. for as_dir in $PATH
  3846. do
  3847. IFS=$as_save_IFS
  3848. test -z "$as_dir" && as_dir=.
  3849. for ac_exec_ext in '' $ac_executable_extensions; do
  3850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3851. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3852. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3853. break 2
  3854. fi
  3855. done
  3856. done
  3857. IFS=$as_save_IFS
  3858. fi
  3859. fi
  3860. RANLIB=$ac_cv_prog_RANLIB
  3861. if test -n "$RANLIB"; then
  3862. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3863. echo "${ECHO_T}$RANLIB" >&6; }
  3864. else
  3865. { echo "$as_me:$LINENO: result: no" >&5
  3866. echo "${ECHO_T}no" >&6; }
  3867. fi
  3868. fi
  3869. if test -z "$ac_cv_prog_RANLIB"; then
  3870. ac_ct_RANLIB=$RANLIB
  3871. # Extract the first word of "ranlib", so it can be a program name with args.
  3872. set dummy ranlib; ac_word=$2
  3873. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3874. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3875. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3876. echo $ECHO_N "(cached) $ECHO_C" >&6
  3877. else
  3878. if test -n "$ac_ct_RANLIB"; then
  3879. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3880. else
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. for ac_exec_ext in '' $ac_executable_extensions; do
  3887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3888. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3889. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3890. break 2
  3891. fi
  3892. done
  3893. done
  3894. IFS=$as_save_IFS
  3895. fi
  3896. fi
  3897. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3898. if test -n "$ac_ct_RANLIB"; then
  3899. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3900. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3901. else
  3902. { echo "$as_me:$LINENO: result: no" >&5
  3903. echo "${ECHO_T}no" >&6; }
  3904. fi
  3905. if test "x$ac_ct_RANLIB" = x; then
  3906. RANLIB=":"
  3907. else
  3908. case $cross_compiling:$ac_tool_warned in
  3909. yes:)
  3910. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3911. whose name does not start with the host triplet. If you think this
  3912. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3913. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3914. whose name does not start with the host triplet. If you think this
  3915. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3916. ac_tool_warned=yes ;;
  3917. esac
  3918. RANLIB=$ac_ct_RANLIB
  3919. fi
  3920. else
  3921. RANLIB="$ac_cv_prog_RANLIB"
  3922. fi
  3923. for ac_prog in 'bison -y' byacc
  3924. do
  3925. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3926. set dummy $ac_prog; ac_word=$2
  3927. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3928. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3929. if test "${ac_cv_prog_YACC+set}" = set; then
  3930. echo $ECHO_N "(cached) $ECHO_C" >&6
  3931. else
  3932. if test -n "$YACC"; then
  3933. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3934. else
  3935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3936. for as_dir in $PATH
  3937. do
  3938. IFS=$as_save_IFS
  3939. test -z "$as_dir" && as_dir=.
  3940. for ac_exec_ext in '' $ac_executable_extensions; do
  3941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3942. ac_cv_prog_YACC="$ac_prog"
  3943. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3944. break 2
  3945. fi
  3946. done
  3947. done
  3948. IFS=$as_save_IFS
  3949. fi
  3950. fi
  3951. YACC=$ac_cv_prog_YACC
  3952. if test -n "$YACC"; then
  3953. { echo "$as_me:$LINENO: result: $YACC" >&5
  3954. echo "${ECHO_T}$YACC" >&6; }
  3955. else
  3956. { echo "$as_me:$LINENO: result: no" >&5
  3957. echo "${ECHO_T}no" >&6; }
  3958. fi
  3959. test -n "$YACC" && break
  3960. done
  3961. test -n "$YACC" || YACC="yacc"
  3962. # Checks for libraries.
  3963. if test "x$with_libxml2" = "xyes"; then
  3964. # Check whether --with-xml-prefix was given.
  3965. if test "${with_xml_prefix+set}" = set; then
  3966. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3967. else
  3968. xml_config_prefix=""
  3969. fi
  3970. # Check whether --with-xml-exec-prefix was given.
  3971. if test "${with_xml_exec_prefix+set}" = set; then
  3972. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3973. else
  3974. xml_config_exec_prefix=""
  3975. fi
  3976. # Check whether --enable-xmltest was given.
  3977. if test "${enable_xmltest+set}" = set; then
  3978. enableval=$enable_xmltest;
  3979. else
  3980. enable_xmltest=yes
  3981. fi
  3982. if test x$xml_config_exec_prefix != x ; then
  3983. xml_config_args="$xml_config_args"
  3984. if test x${XML2_CONFIG+set} != xset ; then
  3985. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3986. fi
  3987. fi
  3988. if test x$xml_config_prefix != x ; then
  3989. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3990. if test x${XML2_CONFIG+set} != xset ; then
  3991. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3992. fi
  3993. fi
  3994. # Extract the first word of "xml2-config", so it can be a program name with args.
  3995. set dummy xml2-config; ac_word=$2
  3996. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3997. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3998. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3999. echo $ECHO_N "(cached) $ECHO_C" >&6
  4000. else
  4001. case $XML2_CONFIG in
  4002. [\\/]* | ?:[\\/]*)
  4003. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4004. ;;
  4005. *)
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4013. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4014. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4021. ;;
  4022. esac
  4023. fi
  4024. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4025. if test -n "$XML2_CONFIG"; then
  4026. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4027. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4028. else
  4029. { echo "$as_me:$LINENO: result: no" >&5
  4030. echo "${ECHO_T}no" >&6; }
  4031. fi
  4032. min_xml_version=2.6.24
  4033. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4034. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4035. no_xml=""
  4036. if test "$XML2_CONFIG" = "no" ; then
  4037. no_xml=yes
  4038. else
  4039. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4040. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4041. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4042. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4043. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4044. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4045. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4046. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4047. if test "x$enable_xmltest" = "xyes" ; then
  4048. ac_save_CPPFLAGS="$CPPFLAGS"
  4049. ac_save_LIBS="$LIBS"
  4050. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4051. LIBS="$XML_LIBS $LIBS"
  4052. rm -f conf.xmltest
  4053. if test "$cross_compiling" = yes; then
  4054. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4055. else
  4056. cat >conftest.$ac_ext <<_ACEOF
  4057. /* confdefs.h. */
  4058. _ACEOF
  4059. cat confdefs.h >>conftest.$ac_ext
  4060. cat >>conftest.$ac_ext <<_ACEOF
  4061. /* end confdefs.h. */
  4062. #include <stdlib.h>
  4063. #include <stdio.h>
  4064. #include <string.h>
  4065. #include <libxml/xmlversion.h>
  4066. int
  4067. main()
  4068. {
  4069. int xml_major_version, xml_minor_version, xml_micro_version;
  4070. int major, minor, micro;
  4071. char *tmp_version;
  4072. system("touch conf.xmltest");
  4073. /* Capture xml2-config output via autoconf/configure variables */
  4074. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4075. tmp_version = (char *)strdup("$min_xml_version");
  4076. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4077. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4078. exit(1);
  4079. }
  4080. free(tmp_version);
  4081. /* Capture the version information from the header files */
  4082. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4083. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4084. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4085. exit(1);
  4086. }
  4087. free(tmp_version);
  4088. /* Compare xml2-config output to the libxml headers */
  4089. if ((xml_major_version != $xml_config_major_version) ||
  4090. (xml_minor_version != $xml_config_minor_version) ||
  4091. (xml_micro_version != $xml_config_micro_version))
  4092. {
  4093. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4094. xml_major_version, xml_minor_version, xml_micro_version);
  4095. printf("*** xml2-config (version %d.%d.%d)\n",
  4096. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4097. return 1;
  4098. }
  4099. /* Compare the headers to the library to make sure we match */
  4100. /* Less than ideal -- doesn't provide us with return value feedback,
  4101. * only exits if there's a serious mismatch between header and library.
  4102. */
  4103. LIBXML_TEST_VERSION;
  4104. /* Test that the library is greater than our minimum version */
  4105. if ((xml_major_version > major) ||
  4106. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4107. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4108. (xml_micro_version >= micro)))
  4109. {
  4110. return 0;
  4111. }
  4112. else
  4113. {
  4114. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4115. xml_major_version, xml_minor_version, xml_micro_version);
  4116. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4117. major, minor, micro);
  4118. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4119. printf("***\n");
  4120. printf("*** If you have already installed a sufficiently new version, this error\n");
  4121. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4122. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4123. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4124. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4125. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4126. printf("*** so that the correct libraries are found at run-time))\n");
  4127. }
  4128. return 1;
  4129. }
  4130. _ACEOF
  4131. rm -f conftest$ac_exeext
  4132. if { (ac_try="$ac_link"
  4133. case "(($ac_try" in
  4134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4135. *) ac_try_echo=$ac_try;;
  4136. esac
  4137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4138. (eval "$ac_link") 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4142. { (case "(($ac_try" in
  4143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4144. *) ac_try_echo=$ac_try;;
  4145. esac
  4146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4147. (eval "$ac_try") 2>&5
  4148. ac_status=$?
  4149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150. (exit $ac_status); }; }; then
  4151. :
  4152. else
  4153. echo "$as_me: program exited with status $ac_status" >&5
  4154. echo "$as_me: failed program was:" >&5
  4155. sed 's/^/| /' conftest.$ac_ext >&5
  4156. ( exit $ac_status )
  4157. no_xml=yes
  4158. fi
  4159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4160. fi
  4161. CPPFLAGS="$ac_save_CPPFLAGS"
  4162. LIBS="$ac_save_LIBS"
  4163. fi
  4164. fi
  4165. if test "x$no_xml" = x ; then
  4166. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4167. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4168. have_libxml2=yes
  4169. else
  4170. { echo "$as_me:$LINENO: result: no" >&5
  4171. echo "${ECHO_T}no" >&6; }
  4172. if test "$XML2_CONFIG" = "no" ; then
  4173. echo "*** The xml2-config script installed by LIBXML could not be found"
  4174. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4175. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4176. echo "*** full path to xml2-config."
  4177. else
  4178. if test -f conf.xmltest ; then
  4179. :
  4180. else
  4181. echo "*** Could not run libxml test program, checking why..."
  4182. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4183. LIBS="$LIBS $XML_LIBS"
  4184. cat >conftest.$ac_ext <<_ACEOF
  4185. /* confdefs.h. */
  4186. _ACEOF
  4187. cat confdefs.h >>conftest.$ac_ext
  4188. cat >>conftest.$ac_ext <<_ACEOF
  4189. /* end confdefs.h. */
  4190. #include <libxml/xmlversion.h>
  4191. #include <stdio.h>
  4192. int
  4193. main ()
  4194. {
  4195. LIBXML_TEST_VERSION; return 0;
  4196. ;
  4197. return 0;
  4198. }
  4199. _ACEOF
  4200. rm -f conftest.$ac_objext conftest$ac_exeext
  4201. if { (ac_try="$ac_link"
  4202. case "(($ac_try" in
  4203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4204. *) ac_try_echo=$ac_try;;
  4205. esac
  4206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4207. (eval "$ac_link") 2>conftest.er1
  4208. ac_status=$?
  4209. grep -v '^ *+' conftest.er1 >conftest.err
  4210. rm -f conftest.er1
  4211. cat conftest.err >&5
  4212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4213. (exit $ac_status); } && {
  4214. test -z "$ac_c_werror_flag" ||
  4215. test ! -s conftest.err
  4216. } && test -s conftest$ac_exeext &&
  4217. $as_test_x conftest$ac_exeext; then
  4218. echo "*** The test program compiled, but did not run. This usually means"
  4219. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4220. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4221. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4222. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4223. echo "*** is required on your system"
  4224. echo "***"
  4225. echo "*** If you have an old version installed, it is best to remove it, although"
  4226. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4227. else
  4228. echo "$as_me: failed program was:" >&5
  4229. sed 's/^/| /' conftest.$ac_ext >&5
  4230. echo "*** The test program failed to compile or link. See the file config.log for the"
  4231. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4232. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4233. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4234. fi
  4235. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4236. conftest$ac_exeext conftest.$ac_ext
  4237. CPPFLAGS="$ac_save_CPPFLAGS"
  4238. LIBS="$ac_save_LIBS"
  4239. fi
  4240. fi
  4241. XML_CPPFLAGS=""
  4242. XML_LIBS=""
  4243. :
  4244. fi
  4245. rm -f conf.xmltest
  4246. if test "x$have_libxml2" = "xyes"; then
  4247. cat >>confdefs.h <<\_ACEOF
  4248. #define HAVE_LIBXML2 1
  4249. _ACEOF
  4250. fi
  4251. fi
  4252. if test "x$with_gnutls" = "xyes"; then
  4253. # Check whether --with-libgnutls-prefix was given.
  4254. if test "${with_libgnutls_prefix+set}" = set; then
  4255. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4256. else
  4257. libgnutls_config_prefix=""
  4258. fi
  4259. if test x$libgnutls_config_prefix != x ; then
  4260. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4261. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4262. fi
  4263. fi
  4264. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4265. set dummy libgnutls-config; ac_word=$2
  4266. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4268. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4269. echo $ECHO_N "(cached) $ECHO_C" >&6
  4270. else
  4271. case $LIBGNUTLS_CONFIG in
  4272. [\\/]* | ?:[\\/]*)
  4273. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4274. ;;
  4275. *)
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. test -z "$as_dir" && as_dir=.
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4283. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4284. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4291. ;;
  4292. esac
  4293. fi
  4294. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4295. if test -n "$LIBGNUTLS_CONFIG"; then
  4296. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4297. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4298. else
  4299. { echo "$as_me:$LINENO: result: no" >&5
  4300. echo "${ECHO_T}no" >&6; }
  4301. fi
  4302. min_libgnutls_version=1.2.9
  4303. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4304. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4305. no_libgnutls=""
  4306. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4307. no_libgnutls=yes
  4308. else
  4309. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4310. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4311. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4312. ac_save_CFLAGS="$CFLAGS"
  4313. ac_save_LIBS="$LIBS"
  4314. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4315. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4316. rm -f conf.libgnutlstest
  4317. if test "$cross_compiling" = yes; then
  4318. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4319. else
  4320. cat >conftest.$ac_ext <<_ACEOF
  4321. /* confdefs.h. */
  4322. _ACEOF
  4323. cat confdefs.h >>conftest.$ac_ext
  4324. cat >>conftest.$ac_ext <<_ACEOF
  4325. /* end confdefs.h. */
  4326. #include <stdio.h>
  4327. #include <stdlib.h>
  4328. #include <string.h>
  4329. #include <gnutls/gnutls.h>
  4330. int
  4331. main ()
  4332. {
  4333. system ("touch conf.libgnutlstest");
  4334. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4335. {
  4336. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4337. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4338. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4339. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4340. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4341. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4342. printf("*** required on your system.\n");
  4343. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4344. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4345. printf("*** before re-running configure\n");
  4346. }
  4347. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4348. {
  4349. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4350. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4351. }
  4352. else
  4353. {
  4354. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4355. {
  4356. return 0;
  4357. }
  4358. else
  4359. {
  4360. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4361. gnutls_check_version(NULL) );
  4362. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4363. "$min_libgnutls_version" );
  4364. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4365. printf("*** \n");
  4366. printf("*** If you have already installed a sufficiently new version, this error\n");
  4367. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4368. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4369. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4370. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4371. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4372. printf("*** so that the correct libraries are found at run-time))\n");
  4373. }
  4374. }
  4375. return 1;
  4376. }
  4377. _ACEOF
  4378. rm -f conftest$ac_exeext
  4379. if { (ac_try="$ac_link"
  4380. case "(($ac_try" in
  4381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4382. *) ac_try_echo=$ac_try;;
  4383. esac
  4384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4385. (eval "$ac_link") 2>&5
  4386. ac_status=$?
  4387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4388. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4389. { (case "(($ac_try" in
  4390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4391. *) ac_try_echo=$ac_try;;
  4392. esac
  4393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4394. (eval "$ac_try") 2>&5
  4395. ac_status=$?
  4396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4397. (exit $ac_status); }; }; then
  4398. :
  4399. else
  4400. echo "$as_me: program exited with status $ac_status" >&5
  4401. echo "$as_me: failed program was:" >&5
  4402. sed 's/^/| /' conftest.$ac_ext >&5
  4403. ( exit $ac_status )
  4404. no_libgnutls=yes
  4405. fi
  4406. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4407. fi
  4408. CFLAGS="$ac_save_CFLAGS"
  4409. LIBS="$ac_save_LIBS"
  4410. fi
  4411. if test "x$no_libgnutls" = x ; then
  4412. { echo "$as_me:$LINENO: result: yes" >&5
  4413. echo "${ECHO_T}yes" >&6; }
  4414. have_libgnutls=yes
  4415. else
  4416. if test -f conf.libgnutlstest ; then
  4417. :
  4418. else
  4419. { echo "$as_me:$LINENO: result: no" >&5
  4420. echo "${ECHO_T}no" >&6; }
  4421. fi
  4422. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4423. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4424. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4425. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4426. echo "*** full path to libgnutls-config."
  4427. else
  4428. if test -f conf.libgnutlstest ; then
  4429. :
  4430. else
  4431. echo "*** Could not run libgnutls test program, checking why..."
  4432. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4433. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4434. cat >conftest.$ac_ext <<_ACEOF
  4435. /* confdefs.h. */
  4436. _ACEOF
  4437. cat confdefs.h >>conftest.$ac_ext
  4438. cat >>conftest.$ac_ext <<_ACEOF
  4439. /* end confdefs.h. */
  4440. #include <stdio.h>
  4441. #include <stdlib.h>
  4442. #include <string.h>
  4443. #include <gnutls/gnutls.h>
  4444. int
  4445. main ()
  4446. {
  4447. return !!gnutls_check_version(NULL);
  4448. ;
  4449. return 0;
  4450. }
  4451. _ACEOF
  4452. rm -f conftest.$ac_objext conftest$ac_exeext
  4453. if { (ac_try="$ac_link"
  4454. case "(($ac_try" in
  4455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4456. *) ac_try_echo=$ac_try;;
  4457. esac
  4458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4459. (eval "$ac_link") 2>conftest.er1
  4460. ac_status=$?
  4461. grep -v '^ *+' conftest.er1 >conftest.err
  4462. rm -f conftest.er1
  4463. cat conftest.err >&5
  4464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4465. (exit $ac_status); } && {
  4466. test -z "$ac_c_werror_flag" ||
  4467. test ! -s conftest.err
  4468. } && test -s conftest$ac_exeext &&
  4469. $as_test_x conftest$ac_exeext; then
  4470. echo "*** The test program compiled, but did not run. This usually means"
  4471. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4472. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4473. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4474. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4475. echo "*** is required on your system"
  4476. echo "***"
  4477. echo "*** If you have an old version installed, it is best to remove it, although"
  4478. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4479. echo "***"
  4480. else
  4481. echo "$as_me: failed program was:" >&5
  4482. sed 's/^/| /' conftest.$ac_ext >&5
  4483. echo "*** The test program failed to compile or link. See the file config.log for the"
  4484. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4485. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4486. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4487. fi
  4488. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4489. conftest$ac_exeext conftest.$ac_ext
  4490. CFLAGS="$ac_save_CFLAGS"
  4491. LIBS="$ac_save_LIBS"
  4492. fi
  4493. fi
  4494. LIBGNUTLS_CFLAGS=""
  4495. LIBGNUTLS_LIBS=""
  4496. :
  4497. fi
  4498. rm -f conf.libgnutlstest
  4499. if test "x$have_libgnutls" = "xyes"; then
  4500. cat >>confdefs.h <<\_ACEOF
  4501. #define HAVE_LIBGNUTLS 1
  4502. _ACEOF
  4503. fi
  4504. fi
  4505. if test "x$have_libgnutls" = "xyes"; then
  4506. # Check whether --with-libgcrypt-prefix was given.
  4507. if test "${with_libgcrypt_prefix+set}" = set; then
  4508. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4509. else
  4510. libgcrypt_config_prefix=""
  4511. fi
  4512. if test x$libgcrypt_config_prefix != x ; then
  4513. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4514. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4515. fi
  4516. fi
  4517. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4518. set dummy libgcrypt-config; ac_word=$2
  4519. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4521. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4522. echo $ECHO_N "(cached) $ECHO_C" >&6
  4523. else
  4524. case $LIBGCRYPT_CONFIG in
  4525. [\\/]* | ?:[\\/]*)
  4526. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4527. ;;
  4528. *)
  4529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4530. for as_dir in $PATH
  4531. do
  4532. IFS=$as_save_IFS
  4533. test -z "$as_dir" && as_dir=.
  4534. for ac_exec_ext in '' $ac_executable_extensions; do
  4535. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4536. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4537. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4538. break 2
  4539. fi
  4540. done
  4541. done
  4542. IFS=$as_save_IFS
  4543. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4544. ;;
  4545. esac
  4546. fi
  4547. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4548. if test -n "$LIBGCRYPT_CONFIG"; then
  4549. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4550. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4551. else
  4552. { echo "$as_me:$LINENO: result: no" >&5
  4553. echo "${ECHO_T}no" >&6; }
  4554. fi
  4555. tmp=1.2.2
  4556. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4557. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4558. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4559. else
  4560. req_libgcrypt_api=0
  4561. min_libgcrypt_version="$tmp"
  4562. fi
  4563. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4564. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4565. ok=no
  4566. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4567. req_major=`echo $min_libgcrypt_version | \
  4568. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4569. req_minor=`echo $min_libgcrypt_version | \
  4570. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4571. req_micro=`echo $min_libgcrypt_version | \
  4572. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4573. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4574. major=`echo $libgcrypt_config_version | \
  4575. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4576. minor=`echo $libgcrypt_config_version | \
  4577. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4578. micro=`echo $libgcrypt_config_version | \
  4579. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4580. if test "$major" -gt "$req_major"; then
  4581. ok=yes
  4582. else
  4583. if test "$major" -eq "$req_major"; then
  4584. if test "$minor" -gt "$req_minor"; then
  4585. ok=yes
  4586. else
  4587. if test "$minor" -eq "$req_minor"; then
  4588. if test "$micro" -ge "$req_micro"; then
  4589. ok=yes
  4590. fi
  4591. fi
  4592. fi
  4593. fi
  4594. fi
  4595. fi
  4596. if test $ok = yes; then
  4597. { echo "$as_me:$LINENO: result: yes" >&5
  4598. echo "${ECHO_T}yes" >&6; }
  4599. else
  4600. { echo "$as_me:$LINENO: result: no" >&5
  4601. echo "${ECHO_T}no" >&6; }
  4602. fi
  4603. if test $ok = yes; then
  4604. # If we have a recent libgcrypt, we should also check that the
  4605. # API is compatible
  4606. if test "$req_libgcrypt_api" -gt 0 ; then
  4607. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4608. if test "$tmp" -gt 0 ; then
  4609. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4610. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4611. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4612. { echo "$as_me:$LINENO: result: okay" >&5
  4613. echo "${ECHO_T}okay" >&6; }
  4614. else
  4615. ok=no
  4616. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4617. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4618. fi
  4619. fi
  4620. fi
  4621. fi
  4622. if test $ok = yes; then
  4623. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4624. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4625. have_libgcrypt=yes
  4626. else
  4627. LIBGCRYPT_CFLAGS=""
  4628. LIBGCRYPT_LIBS=""
  4629. :
  4630. fi
  4631. if test "x$have_libgcrypt" = "xyes"; then
  4632. cat >>confdefs.h <<\_ACEOF
  4633. #define HAVE_LIBGCRYPT 1
  4634. _ACEOF
  4635. fi
  4636. fi
  4637. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4638. # Check whether --with-openssl-prefix was given.
  4639. if test "${with_openssl_prefix+set}" = set; then
  4640. withval=$with_openssl_prefix; openssl_prefix=$withval
  4641. else
  4642. openssl_prefix=""
  4643. fi
  4644. if test "x$openssl_prefix" = "x"; then
  4645. openssl_prefix="/usr/local"
  4646. fi
  4647. openssl_prefix_lib=$openssl_prefix/lib
  4648. openssl_prefix_include=$openssl_prefix/include
  4649. LIBS_save=$LIBS
  4650. CPPFLAGS_save=$CPPFLAGS
  4651. LIBS="-L$openssl_prefix_lib $LIBS"
  4652. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4653. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4654. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4655. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4656. echo $ECHO_N "(cached) $ECHO_C" >&6
  4657. else
  4658. ac_check_lib_save_LIBS=$LIBS
  4659. LIBS="-lssl $LIBS"
  4660. cat >conftest.$ac_ext <<_ACEOF
  4661. /* confdefs.h. */
  4662. _ACEOF
  4663. cat confdefs.h >>conftest.$ac_ext
  4664. cat >>conftest.$ac_ext <<_ACEOF
  4665. /* end confdefs.h. */
  4666. /* Override any GCC internal prototype to avoid an error.
  4667. Use char because int might match the return type of a GCC
  4668. builtin and then its argument prototype would still apply. */
  4669. #ifdef __cplusplus
  4670. extern "C"
  4671. #endif
  4672. char SSL_library_init ();
  4673. int
  4674. main ()
  4675. {
  4676. return SSL_library_init ();
  4677. ;
  4678. return 0;
  4679. }
  4680. _ACEOF
  4681. rm -f conftest.$ac_objext conftest$ac_exeext
  4682. if { (ac_try="$ac_link"
  4683. case "(($ac_try" in
  4684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4685. *) ac_try_echo=$ac_try;;
  4686. esac
  4687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4688. (eval "$ac_link") 2>conftest.er1
  4689. ac_status=$?
  4690. grep -v '^ *+' conftest.er1 >conftest.err
  4691. rm -f conftest.er1
  4692. cat conftest.err >&5
  4693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4694. (exit $ac_status); } && {
  4695. test -z "$ac_c_werror_flag" ||
  4696. test ! -s conftest.err
  4697. } && test -s conftest$ac_exeext &&
  4698. $as_test_x conftest$ac_exeext; then
  4699. ac_cv_lib_ssl_SSL_library_init=yes
  4700. else
  4701. echo "$as_me: failed program was:" >&5
  4702. sed 's/^/| /' conftest.$ac_ext >&5
  4703. ac_cv_lib_ssl_SSL_library_init=no
  4704. fi
  4705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4706. conftest$ac_exeext conftest.$ac_ext
  4707. LIBS=$ac_check_lib_save_LIBS
  4708. fi
  4709. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4710. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4711. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4712. have_openssl=yes; LIBS="-lssl $LIBS"
  4713. fi
  4714. if test "x$have_openssl" = "xyes"; then
  4715. have_openssl=no
  4716. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4717. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4718. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4719. echo $ECHO_N "(cached) $ECHO_C" >&6
  4720. else
  4721. ac_check_lib_save_LIBS=$LIBS
  4722. LIBS="-lcrypto $LIBS"
  4723. cat >conftest.$ac_ext <<_ACEOF
  4724. /* confdefs.h. */
  4725. _ACEOF
  4726. cat confdefs.h >>conftest.$ac_ext
  4727. cat >>conftest.$ac_ext <<_ACEOF
  4728. /* end confdefs.h. */
  4729. int
  4730. main ()
  4731. {
  4732. return main ();
  4733. ;
  4734. return 0;
  4735. }
  4736. _ACEOF
  4737. rm -f conftest.$ac_objext conftest$ac_exeext
  4738. if { (ac_try="$ac_link"
  4739. case "(($ac_try" in
  4740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4741. *) ac_try_echo=$ac_try;;
  4742. esac
  4743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4744. (eval "$ac_link") 2>conftest.er1
  4745. ac_status=$?
  4746. grep -v '^ *+' conftest.er1 >conftest.err
  4747. rm -f conftest.er1
  4748. cat conftest.err >&5
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } && {
  4751. test -z "$ac_c_werror_flag" ||
  4752. test ! -s conftest.err
  4753. } && test -s conftest$ac_exeext &&
  4754. $as_test_x conftest$ac_exeext; then
  4755. ac_cv_lib_crypto_main=yes
  4756. else
  4757. echo "$as_me: failed program was:" >&5
  4758. sed 's/^/| /' conftest.$ac_ext >&5
  4759. ac_cv_lib_crypto_main=no
  4760. fi
  4761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4762. conftest$ac_exeext conftest.$ac_ext
  4763. LIBS=$ac_check_lib_save_LIBS
  4764. fi
  4765. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4766. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4767. if test $ac_cv_lib_crypto_main = yes; then
  4768. have_openssl=yes; LIBS="-lcrypto $LIBS"
  4769. fi
  4770. if test "x$have_openssl" = "xyes"; then
  4771. cat >>confdefs.h <<\_ACEOF
  4772. #define HAVE_LIBSSL 1
  4773. _ACEOF
  4774. for ac_func in EVP_DigestInit_ex
  4775. do
  4776. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4777. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4778. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4779. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4780. echo $ECHO_N "(cached) $ECHO_C" >&6
  4781. else
  4782. cat >conftest.$ac_ext <<_ACEOF
  4783. /* confdefs.h. */
  4784. _ACEOF
  4785. cat confdefs.h >>conftest.$ac_ext
  4786. cat >>conftest.$ac_ext <<_ACEOF
  4787. /* end confdefs.h. */
  4788. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4789. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4790. #define $ac_func innocuous_$ac_func
  4791. /* System header to define __stub macros and hopefully few prototypes,
  4792. which can conflict with char $ac_func (); below.
  4793. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4794. <limits.h> exists even on freestanding compilers. */
  4795. #ifdef __STDC__
  4796. # include <limits.h>
  4797. #else
  4798. # include <assert.h>
  4799. #endif
  4800. #undef $ac_func
  4801. /* Override any GCC internal prototype to avoid an error.
  4802. Use char because int might match the return type of a GCC
  4803. builtin and then its argument prototype would still apply. */
  4804. #ifdef __cplusplus
  4805. extern "C"
  4806. #endif
  4807. char $ac_func ();
  4808. /* The GNU C library defines this for functions which it implements
  4809. to always fail with ENOSYS. Some functions are actually named
  4810. something starting with __ and the normal name is an alias. */
  4811. #if defined __stub_$ac_func || defined __stub___$ac_func
  4812. choke me
  4813. #endif
  4814. int
  4815. main ()
  4816. {
  4817. return $ac_func ();
  4818. ;
  4819. return 0;
  4820. }
  4821. _ACEOF
  4822. rm -f conftest.$ac_objext conftest$ac_exeext
  4823. if { (ac_try="$ac_link"
  4824. case "(($ac_try" in
  4825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4826. *) ac_try_echo=$ac_try;;
  4827. esac
  4828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4829. (eval "$ac_link") 2>conftest.er1
  4830. ac_status=$?
  4831. grep -v '^ *+' conftest.er1 >conftest.err
  4832. rm -f conftest.er1
  4833. cat conftest.err >&5
  4834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4835. (exit $ac_status); } && {
  4836. test -z "$ac_c_werror_flag" ||
  4837. test ! -s conftest.err
  4838. } && test -s conftest$ac_exeext &&
  4839. $as_test_x conftest$ac_exeext; then
  4840. eval "$as_ac_var=yes"
  4841. else
  4842. echo "$as_me: failed program was:" >&5
  4843. sed 's/^/| /' conftest.$ac_ext >&5
  4844. eval "$as_ac_var=no"
  4845. fi
  4846. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4847. conftest$ac_exeext conftest.$ac_ext
  4848. fi
  4849. ac_res=`eval echo '${'$as_ac_var'}'`
  4850. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4851. echo "${ECHO_T}$ac_res" >&6; }
  4852. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4853. cat >>confdefs.h <<_ACEOF
  4854. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4855. _ACEOF
  4856. have_digestinit_ex=yes
  4857. fi
  4858. done
  4859. if test "x$have_digestinit_ex" = "x"; then
  4860. cat >>confdefs.h <<\_ACEOF
  4861. #define HAVE_OLD_LIBSSL 1
  4862. _ACEOF
  4863. fi
  4864. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4865. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4866. for ac_func in EVP_sha256
  4867. do
  4868. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4869. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4870. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4871. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4872. echo $ECHO_N "(cached) $ECHO_C" >&6
  4873. else
  4874. cat >conftest.$ac_ext <<_ACEOF
  4875. /* confdefs.h. */
  4876. _ACEOF
  4877. cat confdefs.h >>conftest.$ac_ext
  4878. cat >>conftest.$ac_ext <<_ACEOF
  4879. /* end confdefs.h. */
  4880. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4881. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4882. #define $ac_func innocuous_$ac_func
  4883. /* System header to define __stub macros and hopefully few prototypes,
  4884. which can conflict with char $ac_func (); below.
  4885. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4886. <limits.h> exists even on freestanding compilers. */
  4887. #ifdef __STDC__
  4888. # include <limits.h>
  4889. #else
  4890. # include <assert.h>
  4891. #endif
  4892. #undef $ac_func
  4893. /* Override any GCC internal prototype to avoid an error.
  4894. Use char because int might match the return type of a GCC
  4895. builtin and then its argument prototype would still apply. */
  4896. #ifdef __cplusplus
  4897. extern "C"
  4898. #endif
  4899. char $ac_func ();
  4900. /* The GNU C library defines this for functions which it implements
  4901. to always fail with ENOSYS. Some functions are actually named
  4902. something starting with __ and the normal name is an alias. */
  4903. #if defined __stub_$ac_func || defined __stub___$ac_func
  4904. choke me
  4905. #endif
  4906. int
  4907. main ()
  4908. {
  4909. return $ac_func ();
  4910. ;
  4911. return 0;
  4912. }
  4913. _ACEOF
  4914. rm -f conftest.$ac_objext conftest$ac_exeext
  4915. if { (ac_try="$ac_link"
  4916. case "(($ac_try" in
  4917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4918. *) ac_try_echo=$ac_try;;
  4919. esac
  4920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4921. (eval "$ac_link") 2>conftest.er1
  4922. ac_status=$?
  4923. grep -v '^ *+' conftest.er1 >conftest.err
  4924. rm -f conftest.er1
  4925. cat conftest.err >&5
  4926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4927. (exit $ac_status); } && {
  4928. test -z "$ac_c_werror_flag" ||
  4929. test ! -s conftest.err
  4930. } && test -s conftest$ac_exeext &&
  4931. $as_test_x conftest$ac_exeext; then
  4932. eval "$as_ac_var=yes"
  4933. else
  4934. echo "$as_me: failed program was:" >&5
  4935. sed 's/^/| /' conftest.$ac_ext >&5
  4936. eval "$as_ac_var=no"
  4937. fi
  4938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4939. conftest$ac_exeext conftest.$ac_ext
  4940. fi
  4941. ac_res=`eval echo '${'$as_ac_var'}'`
  4942. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4943. echo "${ECHO_T}$ac_res" >&6; }
  4944. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4945. cat >>confdefs.h <<_ACEOF
  4946. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4947. _ACEOF
  4948. fi
  4949. done
  4950. fi
  4951. fi
  4952. LIBS=$LIBS_save
  4953. CPPFLAGS=$CPPFLAGS_save
  4954. fi
  4955. if test "x$with_libcares" = "xyes"; then
  4956. # Check whether --with-libcares-prefix was given.
  4957. if test "${with_libcares_prefix+set}" = set; then
  4958. withval=$with_libcares_prefix; libcares_prefix=$withval
  4959. else
  4960. libcares_prefix=""
  4961. fi
  4962. if test "x$libcares_prefix" = "x"; then
  4963. libcares_prefix="/usr"
  4964. fi
  4965. libcares_prefix_lib=$libcares_prefix/lib
  4966. libcares_prefix_include=$libcares_prefix/include
  4967. LIBS_save=$LIBS
  4968. CPPFLAGS_save=$CPPFLAGS
  4969. LIBS="-L$libcares_prefix_lib $LIBS"
  4970. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4971. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4972. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4973. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4974. echo $ECHO_N "(cached) $ECHO_C" >&6
  4975. else
  4976. ac_check_lib_save_LIBS=$LIBS
  4977. LIBS="-lcares $LIBS"
  4978. cat >conftest.$ac_ext <<_ACEOF
  4979. /* confdefs.h. */
  4980. _ACEOF
  4981. cat confdefs.h >>conftest.$ac_ext
  4982. cat >>conftest.$ac_ext <<_ACEOF
  4983. /* end confdefs.h. */
  4984. /* Override any GCC internal prototype to avoid an error.
  4985. Use char because int might match the return type of a GCC
  4986. builtin and then its argument prototype would still apply. */
  4987. #ifdef __cplusplus
  4988. extern "C"
  4989. #endif
  4990. char ares_init ();
  4991. int
  4992. main ()
  4993. {
  4994. return ares_init ();
  4995. ;
  4996. return 0;
  4997. }
  4998. _ACEOF
  4999. rm -f conftest.$ac_objext conftest$ac_exeext
  5000. if { (ac_try="$ac_link"
  5001. case "(($ac_try" in
  5002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5003. *) ac_try_echo=$ac_try;;
  5004. esac
  5005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5006. (eval "$ac_link") 2>conftest.er1
  5007. ac_status=$?
  5008. grep -v '^ *+' conftest.er1 >conftest.err
  5009. rm -f conftest.er1
  5010. cat conftest.err >&5
  5011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); } && {
  5013. test -z "$ac_c_werror_flag" ||
  5014. test ! -s conftest.err
  5015. } && test -s conftest$ac_exeext &&
  5016. $as_test_x conftest$ac_exeext; then
  5017. ac_cv_lib_cares_ares_init=yes
  5018. else
  5019. echo "$as_me: failed program was:" >&5
  5020. sed 's/^/| /' conftest.$ac_ext >&5
  5021. ac_cv_lib_cares_ares_init=no
  5022. fi
  5023. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5024. conftest$ac_exeext conftest.$ac_ext
  5025. LIBS=$ac_check_lib_save_LIBS
  5026. fi
  5027. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5028. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5029. if test $ac_cv_lib_cares_ares_init = yes; then
  5030. have_libcares=yes
  5031. fi
  5032. if test "x$have_libcares" = "xyes"; then
  5033. cat >>confdefs.h <<\_ACEOF
  5034. #define HAVE_LIBCARES 1
  5035. _ACEOF
  5036. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  5037. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  5038. fi
  5039. LIBS=$LIBS_save
  5040. CPPFLAGS=$CPPFLAGS_save
  5041. fi
  5042. if test "x$have_libcares" = "x"; then
  5043. if test "x$with_libares" = "xyes"; then
  5044. # Check whether --with-libares-prefix was given.
  5045. if test "${with_libares_prefix+set}" = set; then
  5046. withval=$with_libares_prefix; libares_prefix=$withval
  5047. else
  5048. libares_prefix=""
  5049. fi
  5050. if test "x$libares_prefix" = "x"; then
  5051. libares_prefix="/usr"
  5052. fi
  5053. libares_prefix_lib=$libares_prefix/lib
  5054. libares_prefix_include=$libares_prefix/include
  5055. LIBS_save=$LIBS
  5056. CPPFLAGS_save=$CPPFLAGS
  5057. LIBS="-L$libares_prefix_lib $LIBS"
  5058. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  5059. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  5060. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  5061. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  5062. echo $ECHO_N "(cached) $ECHO_C" >&6
  5063. else
  5064. ac_check_lib_save_LIBS=$LIBS
  5065. LIBS="-lares $LIBS"
  5066. cat >conftest.$ac_ext <<_ACEOF
  5067. /* confdefs.h. */
  5068. _ACEOF
  5069. cat confdefs.h >>conftest.$ac_ext
  5070. cat >>conftest.$ac_ext <<_ACEOF
  5071. /* end confdefs.h. */
  5072. /* Override any GCC internal prototype to avoid an error.
  5073. Use char because int might match the return type of a GCC
  5074. builtin and then its argument prototype would still apply. */
  5075. #ifdef __cplusplus
  5076. extern "C"
  5077. #endif
  5078. char ares_init ();
  5079. int
  5080. main ()
  5081. {
  5082. return ares_init ();
  5083. ;
  5084. return 0;
  5085. }
  5086. _ACEOF
  5087. rm -f conftest.$ac_objext conftest$ac_exeext
  5088. if { (ac_try="$ac_link"
  5089. case "(($ac_try" in
  5090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5091. *) ac_try_echo=$ac_try;;
  5092. esac
  5093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5094. (eval "$ac_link") 2>conftest.er1
  5095. ac_status=$?
  5096. grep -v '^ *+' conftest.er1 >conftest.err
  5097. rm -f conftest.er1
  5098. cat conftest.err >&5
  5099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5100. (exit $ac_status); } && {
  5101. test -z "$ac_c_werror_flag" ||
  5102. test ! -s conftest.err
  5103. } && test -s conftest$ac_exeext &&
  5104. $as_test_x conftest$ac_exeext; then
  5105. ac_cv_lib_ares_ares_init=yes
  5106. else
  5107. echo "$as_me: failed program was:" >&5
  5108. sed 's/^/| /' conftest.$ac_ext >&5
  5109. ac_cv_lib_ares_ares_init=no
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5112. conftest$ac_exeext conftest.$ac_ext
  5113. LIBS=$ac_check_lib_save_LIBS
  5114. fi
  5115. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5116. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5117. if test $ac_cv_lib_ares_ares_init = yes; then
  5118. have_libares=yes
  5119. fi
  5120. if test "x$have_libares" = "xyes"; then
  5121. cat >>confdefs.h <<\_ACEOF
  5122. #define HAVE_LIBARES 1
  5123. _ACEOF
  5124. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5125. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5126. fi
  5127. LIBS=$LIBS_save
  5128. CPPFLAGS=$CPPFLAGS_save
  5129. fi
  5130. fi
  5131. # Define variables based on the result of the checks for libraries.
  5132. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  5133. cat >>confdefs.h <<\_ACEOF
  5134. #define ENABLE_SSL 1
  5135. _ACEOF
  5136. fi
  5137. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  5138. cat >>confdefs.h <<\_ACEOF
  5139. #define ENABLE_MESSAGE_DIGEST 1
  5140. _ACEOF
  5141. if true; then
  5142. ENABLE_MESSAGE_DIGEST_TRUE=
  5143. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5144. else
  5145. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5146. ENABLE_MESSAGE_DIGEST_FALSE=
  5147. fi
  5148. enable_message_digest=yes
  5149. else
  5150. if false; then
  5151. ENABLE_MESSAGE_DIGEST_TRUE=
  5152. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5153. else
  5154. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5155. ENABLE_MESSAGE_DIGEST_FALSE=
  5156. fi
  5157. fi
  5158. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  5159. cat >>confdefs.h <<\_ACEOF
  5160. #define ENABLE_BITTORRENT 1
  5161. _ACEOF
  5162. if true; then
  5163. ENABLE_BITTORRENT_TRUE=
  5164. ENABLE_BITTORRENT_FALSE='#'
  5165. else
  5166. ENABLE_BITTORRENT_TRUE='#'
  5167. ENABLE_BITTORRENT_FALSE=
  5168. fi
  5169. else
  5170. enable_bittorrent=no
  5171. if false; then
  5172. ENABLE_BITTORRENT_TRUE=
  5173. ENABLE_BITTORRENT_FALSE='#'
  5174. else
  5175. ENABLE_BITTORRENT_TRUE='#'
  5176. ENABLE_BITTORRENT_FALSE=
  5177. fi
  5178. fi
  5179. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  5180. cat >>confdefs.h <<\_ACEOF
  5181. #define ENABLE_METALINK 1
  5182. _ACEOF
  5183. if true; then
  5184. ENABLE_METALINK_TRUE=
  5185. ENABLE_METALINK_FALSE='#'
  5186. else
  5187. ENABLE_METALINK_TRUE='#'
  5188. ENABLE_METALINK_FALSE=
  5189. fi
  5190. else
  5191. enable_metalink=no
  5192. if false; then
  5193. ENABLE_METALINK_TRUE=
  5194. ENABLE_METALINK_FALSE='#'
  5195. else
  5196. ENABLE_METALINK_TRUE='#'
  5197. ENABLE_METALINK_FALSE=
  5198. fi
  5199. fi
  5200. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5201. cat >>confdefs.h <<\_ACEOF
  5202. #define ENABLE_ASYNC_DNS 1
  5203. _ACEOF
  5204. if true; then
  5205. ENABLE_ASYNC_DNS_TRUE=
  5206. ENABLE_ASYNC_DNS_FALSE='#'
  5207. else
  5208. ENABLE_ASYNC_DNS_TRUE='#'
  5209. ENABLE_ASYNC_DNS_FALSE=
  5210. fi
  5211. else
  5212. if false; then
  5213. ENABLE_ASYNC_DNS_TRUE=
  5214. ENABLE_ASYNC_DNS_FALSE='#'
  5215. else
  5216. ENABLE_ASYNC_DNS_TRUE='#'
  5217. ENABLE_ASYNC_DNS_FALSE=
  5218. fi
  5219. fi
  5220. # Checks for header files.
  5221. ac_ext=c
  5222. ac_cpp='$CPP $CPPFLAGS'
  5223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5226. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5227. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5228. # On Suns, sometimes $CPP names a directory.
  5229. if test -n "$CPP" && test -d "$CPP"; then
  5230. CPP=
  5231. fi
  5232. if test -z "$CPP"; then
  5233. if test "${ac_cv_prog_CPP+set}" = set; then
  5234. echo $ECHO_N "(cached) $ECHO_C" >&6
  5235. else
  5236. # Double quotes because CPP needs to be expanded
  5237. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5238. do
  5239. ac_preproc_ok=false
  5240. for ac_c_preproc_warn_flag in '' yes
  5241. do
  5242. # Use a header file that comes with gcc, so configuring glibc
  5243. # with a fresh cross-compiler works.
  5244. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5245. # <limits.h> exists even on freestanding compilers.
  5246. # On the NeXT, cc -E runs the code through the compiler's parser,
  5247. # not just through cpp. "Syntax error" is here to catch this case.
  5248. cat >conftest.$ac_ext <<_ACEOF
  5249. /* confdefs.h. */
  5250. _ACEOF
  5251. cat confdefs.h >>conftest.$ac_ext
  5252. cat >>conftest.$ac_ext <<_ACEOF
  5253. /* end confdefs.h. */
  5254. #ifdef __STDC__
  5255. # include <limits.h>
  5256. #else
  5257. # include <assert.h>
  5258. #endif
  5259. Syntax error
  5260. _ACEOF
  5261. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5262. case "(($ac_try" in
  5263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5264. *) ac_try_echo=$ac_try;;
  5265. esac
  5266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5267. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5268. ac_status=$?
  5269. grep -v '^ *+' conftest.er1 >conftest.err
  5270. rm -f conftest.er1
  5271. cat conftest.err >&5
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); } >/dev/null && {
  5274. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5275. test ! -s conftest.err
  5276. }; then
  5277. :
  5278. else
  5279. echo "$as_me: failed program was:" >&5
  5280. sed 's/^/| /' conftest.$ac_ext >&5
  5281. # Broken: fails on valid input.
  5282. continue
  5283. fi
  5284. rm -f conftest.err conftest.$ac_ext
  5285. # OK, works on sane cases. Now check whether nonexistent headers
  5286. # can be detected and how.
  5287. cat >conftest.$ac_ext <<_ACEOF
  5288. /* confdefs.h. */
  5289. _ACEOF
  5290. cat confdefs.h >>conftest.$ac_ext
  5291. cat >>conftest.$ac_ext <<_ACEOF
  5292. /* end confdefs.h. */
  5293. #include <ac_nonexistent.h>
  5294. _ACEOF
  5295. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5296. case "(($ac_try" in
  5297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5298. *) ac_try_echo=$ac_try;;
  5299. esac
  5300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5301. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5302. ac_status=$?
  5303. grep -v '^ *+' conftest.er1 >conftest.err
  5304. rm -f conftest.er1
  5305. cat conftest.err >&5
  5306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5307. (exit $ac_status); } >/dev/null && {
  5308. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5309. test ! -s conftest.err
  5310. }; then
  5311. # Broken: success on invalid input.
  5312. continue
  5313. else
  5314. echo "$as_me: failed program was:" >&5
  5315. sed 's/^/| /' conftest.$ac_ext >&5
  5316. # Passes both tests.
  5317. ac_preproc_ok=:
  5318. break
  5319. fi
  5320. rm -f conftest.err conftest.$ac_ext
  5321. done
  5322. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5323. rm -f conftest.err conftest.$ac_ext
  5324. if $ac_preproc_ok; then
  5325. break
  5326. fi
  5327. done
  5328. ac_cv_prog_CPP=$CPP
  5329. fi
  5330. CPP=$ac_cv_prog_CPP
  5331. else
  5332. ac_cv_prog_CPP=$CPP
  5333. fi
  5334. { echo "$as_me:$LINENO: result: $CPP" >&5
  5335. echo "${ECHO_T}$CPP" >&6; }
  5336. ac_preproc_ok=false
  5337. for ac_c_preproc_warn_flag in '' yes
  5338. do
  5339. # Use a header file that comes with gcc, so configuring glibc
  5340. # with a fresh cross-compiler works.
  5341. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5342. # <limits.h> exists even on freestanding compilers.
  5343. # On the NeXT, cc -E runs the code through the compiler's parser,
  5344. # not just through cpp. "Syntax error" is here to catch this case.
  5345. cat >conftest.$ac_ext <<_ACEOF
  5346. /* confdefs.h. */
  5347. _ACEOF
  5348. cat confdefs.h >>conftest.$ac_ext
  5349. cat >>conftest.$ac_ext <<_ACEOF
  5350. /* end confdefs.h. */
  5351. #ifdef __STDC__
  5352. # include <limits.h>
  5353. #else
  5354. # include <assert.h>
  5355. #endif
  5356. Syntax error
  5357. _ACEOF
  5358. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5359. case "(($ac_try" in
  5360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5361. *) ac_try_echo=$ac_try;;
  5362. esac
  5363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5364. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5365. ac_status=$?
  5366. grep -v '^ *+' conftest.er1 >conftest.err
  5367. rm -f conftest.er1
  5368. cat conftest.err >&5
  5369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5370. (exit $ac_status); } >/dev/null && {
  5371. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5372. test ! -s conftest.err
  5373. }; then
  5374. :
  5375. else
  5376. echo "$as_me: failed program was:" >&5
  5377. sed 's/^/| /' conftest.$ac_ext >&5
  5378. # Broken: fails on valid input.
  5379. continue
  5380. fi
  5381. rm -f conftest.err conftest.$ac_ext
  5382. # OK, works on sane cases. Now check whether nonexistent headers
  5383. # can be detected and how.
  5384. cat >conftest.$ac_ext <<_ACEOF
  5385. /* confdefs.h. */
  5386. _ACEOF
  5387. cat confdefs.h >>conftest.$ac_ext
  5388. cat >>conftest.$ac_ext <<_ACEOF
  5389. /* end confdefs.h. */
  5390. #include <ac_nonexistent.h>
  5391. _ACEOF
  5392. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5393. case "(($ac_try" in
  5394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5395. *) ac_try_echo=$ac_try;;
  5396. esac
  5397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5398. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5399. ac_status=$?
  5400. grep -v '^ *+' conftest.er1 >conftest.err
  5401. rm -f conftest.er1
  5402. cat conftest.err >&5
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); } >/dev/null && {
  5405. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5406. test ! -s conftest.err
  5407. }; then
  5408. # Broken: success on invalid input.
  5409. continue
  5410. else
  5411. echo "$as_me: failed program was:" >&5
  5412. sed 's/^/| /' conftest.$ac_ext >&5
  5413. # Passes both tests.
  5414. ac_preproc_ok=:
  5415. break
  5416. fi
  5417. rm -f conftest.err conftest.$ac_ext
  5418. done
  5419. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5420. rm -f conftest.err conftest.$ac_ext
  5421. if $ac_preproc_ok; then
  5422. :
  5423. else
  5424. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5425. See \`config.log' for more details." >&5
  5426. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5427. See \`config.log' for more details." >&2;}
  5428. { (exit 1); exit 1; }; }
  5429. fi
  5430. ac_ext=c
  5431. ac_cpp='$CPP $CPPFLAGS'
  5432. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5433. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5434. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5435. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5436. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5437. if test "${ac_cv_path_GREP+set}" = set; then
  5438. echo $ECHO_N "(cached) $ECHO_C" >&6
  5439. else
  5440. # Extract the first word of "grep ggrep" to use in msg output
  5441. if test -z "$GREP"; then
  5442. set dummy grep ggrep; ac_prog_name=$2
  5443. if test "${ac_cv_path_GREP+set}" = set; then
  5444. echo $ECHO_N "(cached) $ECHO_C" >&6
  5445. else
  5446. ac_path_GREP_found=false
  5447. # Loop through the user's path and test for each of PROGNAME-LIST
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5450. do
  5451. IFS=$as_save_IFS
  5452. test -z "$as_dir" && as_dir=.
  5453. for ac_prog in grep ggrep; do
  5454. for ac_exec_ext in '' $ac_executable_extensions; do
  5455. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5456. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5457. # Check for GNU ac_path_GREP and select it if it is found.
  5458. # Check for GNU $ac_path_GREP
  5459. case `"$ac_path_GREP" --version 2>&1` in
  5460. *GNU*)
  5461. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5462. *)
  5463. ac_count=0
  5464. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5465. while :
  5466. do
  5467. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5468. mv "conftest.tmp" "conftest.in"
  5469. cp "conftest.in" "conftest.nl"
  5470. echo 'GREP' >> "conftest.nl"
  5471. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5472. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5473. ac_count=`expr $ac_count + 1`
  5474. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5475. # Best one so far, save it but keep looking for a better one
  5476. ac_cv_path_GREP="$ac_path_GREP"
  5477. ac_path_GREP_max=$ac_count
  5478. fi
  5479. # 10*(2^10) chars as input seems more than enough
  5480. test $ac_count -gt 10 && break
  5481. done
  5482. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5483. esac
  5484. $ac_path_GREP_found && break 3
  5485. done
  5486. done
  5487. done
  5488. IFS=$as_save_IFS
  5489. fi
  5490. GREP="$ac_cv_path_GREP"
  5491. if test -z "$GREP"; then
  5492. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5493. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5494. { (exit 1); exit 1; }; }
  5495. fi
  5496. else
  5497. ac_cv_path_GREP=$GREP
  5498. fi
  5499. fi
  5500. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5501. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5502. GREP="$ac_cv_path_GREP"
  5503. { echo "$as_me:$LINENO: checking for egrep" >&5
  5504. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5505. if test "${ac_cv_path_EGREP+set}" = set; then
  5506. echo $ECHO_N "(cached) $ECHO_C" >&6
  5507. else
  5508. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5509. then ac_cv_path_EGREP="$GREP -E"
  5510. else
  5511. # Extract the first word of "egrep" to use in msg output
  5512. if test -z "$EGREP"; then
  5513. set dummy egrep; ac_prog_name=$2
  5514. if test "${ac_cv_path_EGREP+set}" = set; then
  5515. echo $ECHO_N "(cached) $ECHO_C" >&6
  5516. else
  5517. ac_path_EGREP_found=false
  5518. # Loop through the user's path and test for each of PROGNAME-LIST
  5519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5520. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5521. do
  5522. IFS=$as_save_IFS
  5523. test -z "$as_dir" && as_dir=.
  5524. for ac_prog in egrep; do
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5527. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5528. # Check for GNU ac_path_EGREP and select it if it is found.
  5529. # Check for GNU $ac_path_EGREP
  5530. case `"$ac_path_EGREP" --version 2>&1` in
  5531. *GNU*)
  5532. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5533. *)
  5534. ac_count=0
  5535. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5536. while :
  5537. do
  5538. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5539. mv "conftest.tmp" "conftest.in"
  5540. cp "conftest.in" "conftest.nl"
  5541. echo 'EGREP' >> "conftest.nl"
  5542. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5543. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5544. ac_count=`expr $ac_count + 1`
  5545. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5546. # Best one so far, save it but keep looking for a better one
  5547. ac_cv_path_EGREP="$ac_path_EGREP"
  5548. ac_path_EGREP_max=$ac_count
  5549. fi
  5550. # 10*(2^10) chars as input seems more than enough
  5551. test $ac_count -gt 10 && break
  5552. done
  5553. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5554. esac
  5555. $ac_path_EGREP_found && break 3
  5556. done
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. fi
  5561. EGREP="$ac_cv_path_EGREP"
  5562. if test -z "$EGREP"; then
  5563. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5564. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5565. { (exit 1); exit 1; }; }
  5566. fi
  5567. else
  5568. ac_cv_path_EGREP=$EGREP
  5569. fi
  5570. fi
  5571. fi
  5572. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5573. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5574. EGREP="$ac_cv_path_EGREP"
  5575. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5576. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5577. if test "${ac_cv_header_stdc+set}" = set; then
  5578. echo $ECHO_N "(cached) $ECHO_C" >&6
  5579. else
  5580. cat >conftest.$ac_ext <<_ACEOF
  5581. /* confdefs.h. */
  5582. _ACEOF
  5583. cat confdefs.h >>conftest.$ac_ext
  5584. cat >>conftest.$ac_ext <<_ACEOF
  5585. /* end confdefs.h. */
  5586. #include <stdlib.h>
  5587. #include <stdarg.h>
  5588. #include <string.h>
  5589. #include <float.h>
  5590. int
  5591. main ()
  5592. {
  5593. ;
  5594. return 0;
  5595. }
  5596. _ACEOF
  5597. rm -f conftest.$ac_objext
  5598. if { (ac_try="$ac_compile"
  5599. case "(($ac_try" in
  5600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5601. *) ac_try_echo=$ac_try;;
  5602. esac
  5603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5604. (eval "$ac_compile") 2>conftest.er1
  5605. ac_status=$?
  5606. grep -v '^ *+' conftest.er1 >conftest.err
  5607. rm -f conftest.er1
  5608. cat conftest.err >&5
  5609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5610. (exit $ac_status); } && {
  5611. test -z "$ac_c_werror_flag" ||
  5612. test ! -s conftest.err
  5613. } && test -s conftest.$ac_objext; then
  5614. ac_cv_header_stdc=yes
  5615. else
  5616. echo "$as_me: failed program was:" >&5
  5617. sed 's/^/| /' conftest.$ac_ext >&5
  5618. ac_cv_header_stdc=no
  5619. fi
  5620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5621. if test $ac_cv_header_stdc = yes; then
  5622. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5623. cat >conftest.$ac_ext <<_ACEOF
  5624. /* confdefs.h. */
  5625. _ACEOF
  5626. cat confdefs.h >>conftest.$ac_ext
  5627. cat >>conftest.$ac_ext <<_ACEOF
  5628. /* end confdefs.h. */
  5629. #include <string.h>
  5630. _ACEOF
  5631. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5632. $EGREP "memchr" >/dev/null 2>&1; then
  5633. :
  5634. else
  5635. ac_cv_header_stdc=no
  5636. fi
  5637. rm -f conftest*
  5638. fi
  5639. if test $ac_cv_header_stdc = yes; then
  5640. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5641. cat >conftest.$ac_ext <<_ACEOF
  5642. /* confdefs.h. */
  5643. _ACEOF
  5644. cat confdefs.h >>conftest.$ac_ext
  5645. cat >>conftest.$ac_ext <<_ACEOF
  5646. /* end confdefs.h. */
  5647. #include <stdlib.h>
  5648. _ACEOF
  5649. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5650. $EGREP "free" >/dev/null 2>&1; then
  5651. :
  5652. else
  5653. ac_cv_header_stdc=no
  5654. fi
  5655. rm -f conftest*
  5656. fi
  5657. if test $ac_cv_header_stdc = yes; then
  5658. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5659. if test "$cross_compiling" = yes; then
  5660. :
  5661. else
  5662. cat >conftest.$ac_ext <<_ACEOF
  5663. /* confdefs.h. */
  5664. _ACEOF
  5665. cat confdefs.h >>conftest.$ac_ext
  5666. cat >>conftest.$ac_ext <<_ACEOF
  5667. /* end confdefs.h. */
  5668. #include <ctype.h>
  5669. #include <stdlib.h>
  5670. #if ((' ' & 0x0FF) == 0x020)
  5671. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5672. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5673. #else
  5674. # define ISLOWER(c) \
  5675. (('a' <= (c) && (c) <= 'i') \
  5676. || ('j' <= (c) && (c) <= 'r') \
  5677. || ('s' <= (c) && (c) <= 'z'))
  5678. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5679. #endif
  5680. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5681. int
  5682. main ()
  5683. {
  5684. int i;
  5685. for (i = 0; i < 256; i++)
  5686. if (XOR (islower (i), ISLOWER (i))
  5687. || toupper (i) != TOUPPER (i))
  5688. return 2;
  5689. return 0;
  5690. }
  5691. _ACEOF
  5692. rm -f conftest$ac_exeext
  5693. if { (ac_try="$ac_link"
  5694. case "(($ac_try" in
  5695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5696. *) ac_try_echo=$ac_try;;
  5697. esac
  5698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5699. (eval "$ac_link") 2>&5
  5700. ac_status=$?
  5701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5703. { (case "(($ac_try" in
  5704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5705. *) ac_try_echo=$ac_try;;
  5706. esac
  5707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5708. (eval "$ac_try") 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); }; }; then
  5712. :
  5713. else
  5714. echo "$as_me: program exited with status $ac_status" >&5
  5715. echo "$as_me: failed program was:" >&5
  5716. sed 's/^/| /' conftest.$ac_ext >&5
  5717. ( exit $ac_status )
  5718. ac_cv_header_stdc=no
  5719. fi
  5720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5721. fi
  5722. fi
  5723. fi
  5724. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5725. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5726. if test $ac_cv_header_stdc = yes; then
  5727. cat >>confdefs.h <<\_ACEOF
  5728. #define STDC_HEADERS 1
  5729. _ACEOF
  5730. fi
  5731. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5732. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5733. inttypes.h stdint.h unistd.h
  5734. do
  5735. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5736. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5737. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5738. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5739. echo $ECHO_N "(cached) $ECHO_C" >&6
  5740. else
  5741. cat >conftest.$ac_ext <<_ACEOF
  5742. /* confdefs.h. */
  5743. _ACEOF
  5744. cat confdefs.h >>conftest.$ac_ext
  5745. cat >>conftest.$ac_ext <<_ACEOF
  5746. /* end confdefs.h. */
  5747. $ac_includes_default
  5748. #include <$ac_header>
  5749. _ACEOF
  5750. rm -f conftest.$ac_objext
  5751. if { (ac_try="$ac_compile"
  5752. case "(($ac_try" in
  5753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5754. *) ac_try_echo=$ac_try;;
  5755. esac
  5756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5757. (eval "$ac_compile") 2>conftest.er1
  5758. ac_status=$?
  5759. grep -v '^ *+' conftest.er1 >conftest.err
  5760. rm -f conftest.er1
  5761. cat conftest.err >&5
  5762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763. (exit $ac_status); } && {
  5764. test -z "$ac_c_werror_flag" ||
  5765. test ! -s conftest.err
  5766. } && test -s conftest.$ac_objext; then
  5767. eval "$as_ac_Header=yes"
  5768. else
  5769. echo "$as_me: failed program was:" >&5
  5770. sed 's/^/| /' conftest.$ac_ext >&5
  5771. eval "$as_ac_Header=no"
  5772. fi
  5773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5774. fi
  5775. ac_res=`eval echo '${'$as_ac_Header'}'`
  5776. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5777. echo "${ECHO_T}$ac_res" >&6; }
  5778. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5779. cat >>confdefs.h <<_ACEOF
  5780. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5781. _ACEOF
  5782. fi
  5783. done
  5784. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5785. # for constant arguments. Useless!
  5786. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5787. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5788. if test "${ac_cv_working_alloca_h+set}" = set; then
  5789. echo $ECHO_N "(cached) $ECHO_C" >&6
  5790. else
  5791. cat >conftest.$ac_ext <<_ACEOF
  5792. /* confdefs.h. */
  5793. _ACEOF
  5794. cat confdefs.h >>conftest.$ac_ext
  5795. cat >>conftest.$ac_ext <<_ACEOF
  5796. /* end confdefs.h. */
  5797. #include <alloca.h>
  5798. int
  5799. main ()
  5800. {
  5801. char *p = (char *) alloca (2 * sizeof (int));
  5802. if (p) return 0;
  5803. ;
  5804. return 0;
  5805. }
  5806. _ACEOF
  5807. rm -f conftest.$ac_objext conftest$ac_exeext
  5808. if { (ac_try="$ac_link"
  5809. case "(($ac_try" in
  5810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5811. *) ac_try_echo=$ac_try;;
  5812. esac
  5813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5814. (eval "$ac_link") 2>conftest.er1
  5815. ac_status=$?
  5816. grep -v '^ *+' conftest.er1 >conftest.err
  5817. rm -f conftest.er1
  5818. cat conftest.err >&5
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); } && {
  5821. test -z "$ac_c_werror_flag" ||
  5822. test ! -s conftest.err
  5823. } && test -s conftest$ac_exeext &&
  5824. $as_test_x conftest$ac_exeext; then
  5825. ac_cv_working_alloca_h=yes
  5826. else
  5827. echo "$as_me: failed program was:" >&5
  5828. sed 's/^/| /' conftest.$ac_ext >&5
  5829. ac_cv_working_alloca_h=no
  5830. fi
  5831. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5832. conftest$ac_exeext conftest.$ac_ext
  5833. fi
  5834. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5835. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5836. if test $ac_cv_working_alloca_h = yes; then
  5837. cat >>confdefs.h <<\_ACEOF
  5838. #define HAVE_ALLOCA_H 1
  5839. _ACEOF
  5840. fi
  5841. { echo "$as_me:$LINENO: checking for alloca" >&5
  5842. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5843. if test "${ac_cv_func_alloca_works+set}" = set; then
  5844. echo $ECHO_N "(cached) $ECHO_C" >&6
  5845. else
  5846. cat >conftest.$ac_ext <<_ACEOF
  5847. /* confdefs.h. */
  5848. _ACEOF
  5849. cat confdefs.h >>conftest.$ac_ext
  5850. cat >>conftest.$ac_ext <<_ACEOF
  5851. /* end confdefs.h. */
  5852. #ifdef __GNUC__
  5853. # define alloca __builtin_alloca
  5854. #else
  5855. # ifdef _MSC_VER
  5856. # include <malloc.h>
  5857. # define alloca _alloca
  5858. # else
  5859. # ifdef HAVE_ALLOCA_H
  5860. # include <alloca.h>
  5861. # else
  5862. # ifdef _AIX
  5863. #pragma alloca
  5864. # else
  5865. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5866. char *alloca ();
  5867. # endif
  5868. # endif
  5869. # endif
  5870. # endif
  5871. #endif
  5872. int
  5873. main ()
  5874. {
  5875. char *p = (char *) alloca (1);
  5876. if (p) return 0;
  5877. ;
  5878. return 0;
  5879. }
  5880. _ACEOF
  5881. rm -f conftest.$ac_objext conftest$ac_exeext
  5882. if { (ac_try="$ac_link"
  5883. case "(($ac_try" in
  5884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5885. *) ac_try_echo=$ac_try;;
  5886. esac
  5887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5888. (eval "$ac_link") 2>conftest.er1
  5889. ac_status=$?
  5890. grep -v '^ *+' conftest.er1 >conftest.err
  5891. rm -f conftest.er1
  5892. cat conftest.err >&5
  5893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5894. (exit $ac_status); } && {
  5895. test -z "$ac_c_werror_flag" ||
  5896. test ! -s conftest.err
  5897. } && test -s conftest$ac_exeext &&
  5898. $as_test_x conftest$ac_exeext; then
  5899. ac_cv_func_alloca_works=yes
  5900. else
  5901. echo "$as_me: failed program was:" >&5
  5902. sed 's/^/| /' conftest.$ac_ext >&5
  5903. ac_cv_func_alloca_works=no
  5904. fi
  5905. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5906. conftest$ac_exeext conftest.$ac_ext
  5907. fi
  5908. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5909. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5910. if test $ac_cv_func_alloca_works = yes; then
  5911. cat >>confdefs.h <<\_ACEOF
  5912. #define HAVE_ALLOCA 1
  5913. _ACEOF
  5914. else
  5915. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5916. # that cause trouble. Some versions do not even contain alloca or
  5917. # contain a buggy version. If you still want to use their alloca,
  5918. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5919. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5920. cat >>confdefs.h <<\_ACEOF
  5921. #define C_ALLOCA 1
  5922. _ACEOF
  5923. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5924. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5925. if test "${ac_cv_os_cray+set}" = set; then
  5926. echo $ECHO_N "(cached) $ECHO_C" >&6
  5927. else
  5928. cat >conftest.$ac_ext <<_ACEOF
  5929. /* confdefs.h. */
  5930. _ACEOF
  5931. cat confdefs.h >>conftest.$ac_ext
  5932. cat >>conftest.$ac_ext <<_ACEOF
  5933. /* end confdefs.h. */
  5934. #if defined CRAY && ! defined CRAY2
  5935. webecray
  5936. #else
  5937. wenotbecray
  5938. #endif
  5939. _ACEOF
  5940. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5941. $EGREP "webecray" >/dev/null 2>&1; then
  5942. ac_cv_os_cray=yes
  5943. else
  5944. ac_cv_os_cray=no
  5945. fi
  5946. rm -f conftest*
  5947. fi
  5948. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5949. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5950. if test $ac_cv_os_cray = yes; then
  5951. for ac_func in _getb67 GETB67 getb67; do
  5952. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5953. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5954. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5955. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5956. echo $ECHO_N "(cached) $ECHO_C" >&6
  5957. else
  5958. cat >conftest.$ac_ext <<_ACEOF
  5959. /* confdefs.h. */
  5960. _ACEOF
  5961. cat confdefs.h >>conftest.$ac_ext
  5962. cat >>conftest.$ac_ext <<_ACEOF
  5963. /* end confdefs.h. */
  5964. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5965. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5966. #define $ac_func innocuous_$ac_func
  5967. /* System header to define __stub macros and hopefully few prototypes,
  5968. which can conflict with char $ac_func (); below.
  5969. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5970. <limits.h> exists even on freestanding compilers. */
  5971. #ifdef __STDC__
  5972. # include <limits.h>
  5973. #else
  5974. # include <assert.h>
  5975. #endif
  5976. #undef $ac_func
  5977. /* Override any GCC internal prototype to avoid an error.
  5978. Use char because int might match the return type of a GCC
  5979. builtin and then its argument prototype would still apply. */
  5980. #ifdef __cplusplus
  5981. extern "C"
  5982. #endif
  5983. char $ac_func ();
  5984. /* The GNU C library defines this for functions which it implements
  5985. to always fail with ENOSYS. Some functions are actually named
  5986. something starting with __ and the normal name is an alias. */
  5987. #if defined __stub_$ac_func || defined __stub___$ac_func
  5988. choke me
  5989. #endif
  5990. int
  5991. main ()
  5992. {
  5993. return $ac_func ();
  5994. ;
  5995. return 0;
  5996. }
  5997. _ACEOF
  5998. rm -f conftest.$ac_objext conftest$ac_exeext
  5999. if { (ac_try="$ac_link"
  6000. case "(($ac_try" in
  6001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6002. *) ac_try_echo=$ac_try;;
  6003. esac
  6004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6005. (eval "$ac_link") 2>conftest.er1
  6006. ac_status=$?
  6007. grep -v '^ *+' conftest.er1 >conftest.err
  6008. rm -f conftest.er1
  6009. cat conftest.err >&5
  6010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6011. (exit $ac_status); } && {
  6012. test -z "$ac_c_werror_flag" ||
  6013. test ! -s conftest.err
  6014. } && test -s conftest$ac_exeext &&
  6015. $as_test_x conftest$ac_exeext; then
  6016. eval "$as_ac_var=yes"
  6017. else
  6018. echo "$as_me: failed program was:" >&5
  6019. sed 's/^/| /' conftest.$ac_ext >&5
  6020. eval "$as_ac_var=no"
  6021. fi
  6022. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6023. conftest$ac_exeext conftest.$ac_ext
  6024. fi
  6025. ac_res=`eval echo '${'$as_ac_var'}'`
  6026. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6027. echo "${ECHO_T}$ac_res" >&6; }
  6028. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6029. cat >>confdefs.h <<_ACEOF
  6030. #define CRAY_STACKSEG_END $ac_func
  6031. _ACEOF
  6032. break
  6033. fi
  6034. done
  6035. fi
  6036. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6037. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6038. if test "${ac_cv_c_stack_direction+set}" = set; then
  6039. echo $ECHO_N "(cached) $ECHO_C" >&6
  6040. else
  6041. if test "$cross_compiling" = yes; then
  6042. ac_cv_c_stack_direction=0
  6043. else
  6044. cat >conftest.$ac_ext <<_ACEOF
  6045. /* confdefs.h. */
  6046. _ACEOF
  6047. cat confdefs.h >>conftest.$ac_ext
  6048. cat >>conftest.$ac_ext <<_ACEOF
  6049. /* end confdefs.h. */
  6050. $ac_includes_default
  6051. int
  6052. find_stack_direction ()
  6053. {
  6054. static char *addr = 0;
  6055. auto char dummy;
  6056. if (addr == 0)
  6057. {
  6058. addr = &dummy;
  6059. return find_stack_direction ();
  6060. }
  6061. else
  6062. return (&dummy > addr) ? 1 : -1;
  6063. }
  6064. int
  6065. main ()
  6066. {
  6067. return find_stack_direction () < 0;
  6068. }
  6069. _ACEOF
  6070. rm -f conftest$ac_exeext
  6071. if { (ac_try="$ac_link"
  6072. case "(($ac_try" in
  6073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6074. *) ac_try_echo=$ac_try;;
  6075. esac
  6076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6077. (eval "$ac_link") 2>&5
  6078. ac_status=$?
  6079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6080. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6081. { (case "(($ac_try" in
  6082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6083. *) ac_try_echo=$ac_try;;
  6084. esac
  6085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6086. (eval "$ac_try") 2>&5
  6087. ac_status=$?
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); }; }; then
  6090. ac_cv_c_stack_direction=1
  6091. else
  6092. echo "$as_me: program exited with status $ac_status" >&5
  6093. echo "$as_me: failed program was:" >&5
  6094. sed 's/^/| /' conftest.$ac_ext >&5
  6095. ( exit $ac_status )
  6096. ac_cv_c_stack_direction=-1
  6097. fi
  6098. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6099. fi
  6100. fi
  6101. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6102. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6103. cat >>confdefs.h <<_ACEOF
  6104. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6105. _ACEOF
  6106. fi
  6107. #AC_HEADER_STDC
  6108. 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
  6109. do
  6110. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6111. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6112. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6113. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6114. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6115. echo $ECHO_N "(cached) $ECHO_C" >&6
  6116. fi
  6117. ac_res=`eval echo '${'$as_ac_Header'}'`
  6118. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6119. echo "${ECHO_T}$ac_res" >&6; }
  6120. else
  6121. # Is the header compilable?
  6122. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6123. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6124. cat >conftest.$ac_ext <<_ACEOF
  6125. /* confdefs.h. */
  6126. _ACEOF
  6127. cat confdefs.h >>conftest.$ac_ext
  6128. cat >>conftest.$ac_ext <<_ACEOF
  6129. /* end confdefs.h. */
  6130. $ac_includes_default
  6131. #include <$ac_header>
  6132. _ACEOF
  6133. rm -f conftest.$ac_objext
  6134. if { (ac_try="$ac_compile"
  6135. case "(($ac_try" in
  6136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6137. *) ac_try_echo=$ac_try;;
  6138. esac
  6139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6140. (eval "$ac_compile") 2>conftest.er1
  6141. ac_status=$?
  6142. grep -v '^ *+' conftest.er1 >conftest.err
  6143. rm -f conftest.er1
  6144. cat conftest.err >&5
  6145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6146. (exit $ac_status); } && {
  6147. test -z "$ac_c_werror_flag" ||
  6148. test ! -s conftest.err
  6149. } && test -s conftest.$ac_objext; then
  6150. ac_header_compiler=yes
  6151. else
  6152. echo "$as_me: failed program was:" >&5
  6153. sed 's/^/| /' conftest.$ac_ext >&5
  6154. ac_header_compiler=no
  6155. fi
  6156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6157. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6158. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6159. # Is the header present?
  6160. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6161. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6162. cat >conftest.$ac_ext <<_ACEOF
  6163. /* confdefs.h. */
  6164. _ACEOF
  6165. cat confdefs.h >>conftest.$ac_ext
  6166. cat >>conftest.$ac_ext <<_ACEOF
  6167. /* end confdefs.h. */
  6168. #include <$ac_header>
  6169. _ACEOF
  6170. if { (ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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); } >/dev/null && {
  6183. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6184. test ! -s conftest.err
  6185. }; then
  6186. ac_header_preproc=yes
  6187. else
  6188. echo "$as_me: failed program was:" >&5
  6189. sed 's/^/| /' conftest.$ac_ext >&5
  6190. ac_header_preproc=no
  6191. fi
  6192. rm -f conftest.err conftest.$ac_ext
  6193. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6194. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6195. # So? What about this header?
  6196. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6197. yes:no: )
  6198. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6199. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6200. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6201. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6202. ac_header_preproc=yes
  6203. ;;
  6204. no:yes:* )
  6205. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6206. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6207. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6208. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6209. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6210. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6211. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6212. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6213. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6214. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6215. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6216. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6217. ( cat <<\_ASBOX
  6218. ## ----------------------------------------------- ##
  6219. ## Report this to t-tujikawa@users.sourceforge.net ##
  6220. ## ----------------------------------------------- ##
  6221. _ASBOX
  6222. ) | sed "s/^/$as_me: WARNING: /" >&2
  6223. ;;
  6224. esac
  6225. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6226. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6227. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6228. echo $ECHO_N "(cached) $ECHO_C" >&6
  6229. else
  6230. eval "$as_ac_Header=\$ac_header_preproc"
  6231. fi
  6232. ac_res=`eval echo '${'$as_ac_Header'}'`
  6233. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6234. echo "${ECHO_T}$ac_res" >&6; }
  6235. fi
  6236. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6237. cat >>confdefs.h <<_ACEOF
  6238. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6239. _ACEOF
  6240. fi
  6241. done
  6242. # Checks for typedefs, structures, and compiler characteristics.
  6243. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6244. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6245. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6246. echo $ECHO_N "(cached) $ECHO_C" >&6
  6247. else
  6248. cat >conftest.$ac_ext <<_ACEOF
  6249. /* confdefs.h. */
  6250. _ACEOF
  6251. cat confdefs.h >>conftest.$ac_ext
  6252. cat >>conftest.$ac_ext <<_ACEOF
  6253. /* end confdefs.h. */
  6254. #include <stdbool.h>
  6255. #ifndef bool
  6256. "error: bool is not defined"
  6257. #endif
  6258. #ifndef false
  6259. "error: false is not defined"
  6260. #endif
  6261. #if false
  6262. "error: false is not 0"
  6263. #endif
  6264. #ifndef true
  6265. "error: true is not defined"
  6266. #endif
  6267. #if true != 1
  6268. "error: true is not 1"
  6269. #endif
  6270. #ifndef __bool_true_false_are_defined
  6271. "error: __bool_true_false_are_defined is not defined"
  6272. #endif
  6273. struct s { _Bool s: 1; _Bool t; } s;
  6274. char a[true == 1 ? 1 : -1];
  6275. char b[false == 0 ? 1 : -1];
  6276. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6277. char d[(bool) 0.5 == true ? 1 : -1];
  6278. bool e = &s;
  6279. char f[(_Bool) 0.0 == false ? 1 : -1];
  6280. char g[true];
  6281. char h[sizeof (_Bool)];
  6282. char i[sizeof s.t];
  6283. enum { j = false, k = true, l = false * true, m = true * 256 };
  6284. _Bool n[m];
  6285. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6286. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6287. # if defined __xlc__ || defined __GNUC__
  6288. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6289. reported by James Lemley on 2005-10-05; see
  6290. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6291. This test is not quite right, since xlc is allowed to
  6292. reject this program, as the initializer for xlcbug is
  6293. not one of the forms that C requires support for.
  6294. However, doing the test right would require a runtime
  6295. test, and that would make cross-compilation harder.
  6296. Let us hope that IBM fixes the xlc bug, and also adds
  6297. support for this kind of constant expression. In the
  6298. meantime, this test will reject xlc, which is OK, since
  6299. our stdbool.h substitute should suffice. We also test
  6300. this with GCC, where it should work, to detect more
  6301. quickly whether someone messes up the test in the
  6302. future. */
  6303. char digs[] = "0123456789";
  6304. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6305. # endif
  6306. /* Catch a bug in an HP-UX C compiler. See
  6307. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6308. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6309. */
  6310. _Bool q = true;
  6311. _Bool *pq = &q;
  6312. int
  6313. main ()
  6314. {
  6315. *pq |= q;
  6316. *pq |= ! q;
  6317. /* Refer to every declared value, to avoid compiler optimizations. */
  6318. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6319. + !m + !n + !o + !p + !q + !pq);
  6320. ;
  6321. return 0;
  6322. }
  6323. _ACEOF
  6324. rm -f conftest.$ac_objext
  6325. if { (ac_try="$ac_compile"
  6326. case "(($ac_try" in
  6327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6328. *) ac_try_echo=$ac_try;;
  6329. esac
  6330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6331. (eval "$ac_compile") 2>conftest.er1
  6332. ac_status=$?
  6333. grep -v '^ *+' conftest.er1 >conftest.err
  6334. rm -f conftest.er1
  6335. cat conftest.err >&5
  6336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. (exit $ac_status); } && {
  6338. test -z "$ac_c_werror_flag" ||
  6339. test ! -s conftest.err
  6340. } && test -s conftest.$ac_objext; then
  6341. ac_cv_header_stdbool_h=yes
  6342. else
  6343. echo "$as_me: failed program was:" >&5
  6344. sed 's/^/| /' conftest.$ac_ext >&5
  6345. ac_cv_header_stdbool_h=no
  6346. fi
  6347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6348. fi
  6349. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6350. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6351. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6352. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6353. if test "${ac_cv_type__Bool+set}" = set; then
  6354. echo $ECHO_N "(cached) $ECHO_C" >&6
  6355. else
  6356. cat >conftest.$ac_ext <<_ACEOF
  6357. /* confdefs.h. */
  6358. _ACEOF
  6359. cat confdefs.h >>conftest.$ac_ext
  6360. cat >>conftest.$ac_ext <<_ACEOF
  6361. /* end confdefs.h. */
  6362. $ac_includes_default
  6363. typedef _Bool ac__type_new_;
  6364. int
  6365. main ()
  6366. {
  6367. if ((ac__type_new_ *) 0)
  6368. return 0;
  6369. if (sizeof (ac__type_new_))
  6370. return 0;
  6371. ;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. rm -f conftest.$ac_objext
  6376. if { (ac_try="$ac_compile"
  6377. case "(($ac_try" in
  6378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6379. *) ac_try_echo=$ac_try;;
  6380. esac
  6381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6382. (eval "$ac_compile") 2>conftest.er1
  6383. ac_status=$?
  6384. grep -v '^ *+' conftest.er1 >conftest.err
  6385. rm -f conftest.er1
  6386. cat conftest.err >&5
  6387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6388. (exit $ac_status); } && {
  6389. test -z "$ac_c_werror_flag" ||
  6390. test ! -s conftest.err
  6391. } && test -s conftest.$ac_objext; then
  6392. ac_cv_type__Bool=yes
  6393. else
  6394. echo "$as_me: failed program was:" >&5
  6395. sed 's/^/| /' conftest.$ac_ext >&5
  6396. ac_cv_type__Bool=no
  6397. fi
  6398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6399. fi
  6400. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6401. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6402. if test $ac_cv_type__Bool = yes; then
  6403. cat >>confdefs.h <<_ACEOF
  6404. #define HAVE__BOOL 1
  6405. _ACEOF
  6406. fi
  6407. if test $ac_cv_header_stdbool_h = yes; then
  6408. cat >>confdefs.h <<\_ACEOF
  6409. #define HAVE_STDBOOL_H 1
  6410. _ACEOF
  6411. fi
  6412. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6413. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6414. if test "${ac_cv_c_const+set}" = set; then
  6415. echo $ECHO_N "(cached) $ECHO_C" >&6
  6416. else
  6417. cat >conftest.$ac_ext <<_ACEOF
  6418. /* confdefs.h. */
  6419. _ACEOF
  6420. cat confdefs.h >>conftest.$ac_ext
  6421. cat >>conftest.$ac_ext <<_ACEOF
  6422. /* end confdefs.h. */
  6423. int
  6424. main ()
  6425. {
  6426. /* FIXME: Include the comments suggested by Paul. */
  6427. #ifndef __cplusplus
  6428. /* Ultrix mips cc rejects this. */
  6429. typedef int charset[2];
  6430. const charset cs;
  6431. /* SunOS 4.1.1 cc rejects this. */
  6432. char const *const *pcpcc;
  6433. char **ppc;
  6434. /* NEC SVR4.0.2 mips cc rejects this. */
  6435. struct point {int x, y;};
  6436. static struct point const zero = {0,0};
  6437. /* AIX XL C 1.02.0.0 rejects this.
  6438. It does not let you subtract one const X* pointer from another in
  6439. an arm of an if-expression whose if-part is not a constant
  6440. expression */
  6441. const char *g = "string";
  6442. pcpcc = &g + (g ? g-g : 0);
  6443. /* HPUX 7.0 cc rejects these. */
  6444. ++pcpcc;
  6445. ppc = (char**) pcpcc;
  6446. pcpcc = (char const *const *) ppc;
  6447. { /* SCO 3.2v4 cc rejects this. */
  6448. char *t;
  6449. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6450. *t++ = 0;
  6451. if (s) return 0;
  6452. }
  6453. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6454. int x[] = {25, 17};
  6455. const int *foo = &x[0];
  6456. ++foo;
  6457. }
  6458. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6459. typedef const int *iptr;
  6460. iptr p = 0;
  6461. ++p;
  6462. }
  6463. { /* AIX XL C 1.02.0.0 rejects this saying
  6464. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6465. struct s { int j; const int *ap[3]; };
  6466. struct s *b; b->j = 5;
  6467. }
  6468. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6469. const int foo = 10;
  6470. if (!foo) return 0;
  6471. }
  6472. return !cs[0] && !zero.x;
  6473. #endif
  6474. ;
  6475. return 0;
  6476. }
  6477. _ACEOF
  6478. rm -f conftest.$ac_objext
  6479. if { (ac_try="$ac_compile"
  6480. case "(($ac_try" in
  6481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6482. *) ac_try_echo=$ac_try;;
  6483. esac
  6484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6485. (eval "$ac_compile") 2>conftest.er1
  6486. ac_status=$?
  6487. grep -v '^ *+' conftest.er1 >conftest.err
  6488. rm -f conftest.er1
  6489. cat conftest.err >&5
  6490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6491. (exit $ac_status); } && {
  6492. test -z "$ac_c_werror_flag" ||
  6493. test ! -s conftest.err
  6494. } && test -s conftest.$ac_objext; then
  6495. ac_cv_c_const=yes
  6496. else
  6497. echo "$as_me: failed program was:" >&5
  6498. sed 's/^/| /' conftest.$ac_ext >&5
  6499. ac_cv_c_const=no
  6500. fi
  6501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6502. fi
  6503. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6504. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6505. if test $ac_cv_c_const = no; then
  6506. cat >>confdefs.h <<\_ACEOF
  6507. #define const
  6508. _ACEOF
  6509. fi
  6510. { echo "$as_me:$LINENO: checking for inline" >&5
  6511. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6512. if test "${ac_cv_c_inline+set}" = set; then
  6513. echo $ECHO_N "(cached) $ECHO_C" >&6
  6514. else
  6515. ac_cv_c_inline=no
  6516. for ac_kw in inline __inline__ __inline; do
  6517. cat >conftest.$ac_ext <<_ACEOF
  6518. /* confdefs.h. */
  6519. _ACEOF
  6520. cat confdefs.h >>conftest.$ac_ext
  6521. cat >>conftest.$ac_ext <<_ACEOF
  6522. /* end confdefs.h. */
  6523. #ifndef __cplusplus
  6524. typedef int foo_t;
  6525. static $ac_kw foo_t static_foo () {return 0; }
  6526. $ac_kw foo_t foo () {return 0; }
  6527. #endif
  6528. _ACEOF
  6529. rm -f conftest.$ac_objext
  6530. if { (ac_try="$ac_compile"
  6531. case "(($ac_try" in
  6532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6533. *) ac_try_echo=$ac_try;;
  6534. esac
  6535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6536. (eval "$ac_compile") 2>conftest.er1
  6537. ac_status=$?
  6538. grep -v '^ *+' conftest.er1 >conftest.err
  6539. rm -f conftest.er1
  6540. cat conftest.err >&5
  6541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. (exit $ac_status); } && {
  6543. test -z "$ac_c_werror_flag" ||
  6544. test ! -s conftest.err
  6545. } && test -s conftest.$ac_objext; then
  6546. ac_cv_c_inline=$ac_kw
  6547. else
  6548. echo "$as_me: failed program was:" >&5
  6549. sed 's/^/| /' conftest.$ac_ext >&5
  6550. fi
  6551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6552. test "$ac_cv_c_inline" != no && break
  6553. done
  6554. fi
  6555. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6556. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6557. case $ac_cv_c_inline in
  6558. inline | yes) ;;
  6559. *)
  6560. case $ac_cv_c_inline in
  6561. no) ac_val=;;
  6562. *) ac_val=$ac_cv_c_inline;;
  6563. esac
  6564. cat >>confdefs.h <<_ACEOF
  6565. #ifndef __cplusplus
  6566. #define inline $ac_val
  6567. #endif
  6568. _ACEOF
  6569. ;;
  6570. esac
  6571. { echo "$as_me:$LINENO: checking for size_t" >&5
  6572. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6573. if test "${ac_cv_type_size_t+set}" = set; then
  6574. echo $ECHO_N "(cached) $ECHO_C" >&6
  6575. else
  6576. cat >conftest.$ac_ext <<_ACEOF
  6577. /* confdefs.h. */
  6578. _ACEOF
  6579. cat confdefs.h >>conftest.$ac_ext
  6580. cat >>conftest.$ac_ext <<_ACEOF
  6581. /* end confdefs.h. */
  6582. $ac_includes_default
  6583. typedef size_t ac__type_new_;
  6584. int
  6585. main ()
  6586. {
  6587. if ((ac__type_new_ *) 0)
  6588. return 0;
  6589. if (sizeof (ac__type_new_))
  6590. return 0;
  6591. ;
  6592. return 0;
  6593. }
  6594. _ACEOF
  6595. rm -f conftest.$ac_objext
  6596. if { (ac_try="$ac_compile"
  6597. case "(($ac_try" in
  6598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6599. *) ac_try_echo=$ac_try;;
  6600. esac
  6601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6602. (eval "$ac_compile") 2>conftest.er1
  6603. ac_status=$?
  6604. grep -v '^ *+' conftest.er1 >conftest.err
  6605. rm -f conftest.er1
  6606. cat conftest.err >&5
  6607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6608. (exit $ac_status); } && {
  6609. test -z "$ac_c_werror_flag" ||
  6610. test ! -s conftest.err
  6611. } && test -s conftest.$ac_objext; then
  6612. ac_cv_type_size_t=yes
  6613. else
  6614. echo "$as_me: failed program was:" >&5
  6615. sed 's/^/| /' conftest.$ac_ext >&5
  6616. ac_cv_type_size_t=no
  6617. fi
  6618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6619. fi
  6620. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6621. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6622. if test $ac_cv_type_size_t = yes; then
  6623. :
  6624. else
  6625. cat >>confdefs.h <<_ACEOF
  6626. #define size_t unsigned int
  6627. _ACEOF
  6628. fi
  6629. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6630. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6631. if test "${ac_cv_header_time+set}" = set; then
  6632. echo $ECHO_N "(cached) $ECHO_C" >&6
  6633. else
  6634. cat >conftest.$ac_ext <<_ACEOF
  6635. /* confdefs.h. */
  6636. _ACEOF
  6637. cat confdefs.h >>conftest.$ac_ext
  6638. cat >>conftest.$ac_ext <<_ACEOF
  6639. /* end confdefs.h. */
  6640. #include <sys/types.h>
  6641. #include <sys/time.h>
  6642. #include <time.h>
  6643. int
  6644. main ()
  6645. {
  6646. if ((struct tm *) 0)
  6647. return 0;
  6648. ;
  6649. return 0;
  6650. }
  6651. _ACEOF
  6652. rm -f conftest.$ac_objext
  6653. if { (ac_try="$ac_compile"
  6654. case "(($ac_try" in
  6655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6656. *) ac_try_echo=$ac_try;;
  6657. esac
  6658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6659. (eval "$ac_compile") 2>conftest.er1
  6660. ac_status=$?
  6661. grep -v '^ *+' conftest.er1 >conftest.err
  6662. rm -f conftest.er1
  6663. cat conftest.err >&5
  6664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6665. (exit $ac_status); } && {
  6666. test -z "$ac_c_werror_flag" ||
  6667. test ! -s conftest.err
  6668. } && test -s conftest.$ac_objext; then
  6669. ac_cv_header_time=yes
  6670. else
  6671. echo "$as_me: failed program was:" >&5
  6672. sed 's/^/| /' conftest.$ac_ext >&5
  6673. ac_cv_header_time=no
  6674. fi
  6675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6676. fi
  6677. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6678. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6679. if test $ac_cv_header_time = yes; then
  6680. cat >>confdefs.h <<\_ACEOF
  6681. #define TIME_WITH_SYS_TIME 1
  6682. _ACEOF
  6683. fi
  6684. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6685. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6686. if test "${ac_cv_struct_tm+set}" = set; then
  6687. echo $ECHO_N "(cached) $ECHO_C" >&6
  6688. else
  6689. cat >conftest.$ac_ext <<_ACEOF
  6690. /* confdefs.h. */
  6691. _ACEOF
  6692. cat confdefs.h >>conftest.$ac_ext
  6693. cat >>conftest.$ac_ext <<_ACEOF
  6694. /* end confdefs.h. */
  6695. #include <sys/types.h>
  6696. #include <time.h>
  6697. int
  6698. main ()
  6699. {
  6700. struct tm tm;
  6701. int *p = &tm.tm_sec;
  6702. return !p;
  6703. ;
  6704. return 0;
  6705. }
  6706. _ACEOF
  6707. rm -f conftest.$ac_objext
  6708. if { (ac_try="$ac_compile"
  6709. case "(($ac_try" in
  6710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6711. *) ac_try_echo=$ac_try;;
  6712. esac
  6713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6714. (eval "$ac_compile") 2>conftest.er1
  6715. ac_status=$?
  6716. grep -v '^ *+' conftest.er1 >conftest.err
  6717. rm -f conftest.er1
  6718. cat conftest.err >&5
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); } && {
  6721. test -z "$ac_c_werror_flag" ||
  6722. test ! -s conftest.err
  6723. } && test -s conftest.$ac_objext; then
  6724. ac_cv_struct_tm=time.h
  6725. else
  6726. echo "$as_me: failed program was:" >&5
  6727. sed 's/^/| /' conftest.$ac_ext >&5
  6728. ac_cv_struct_tm=sys/time.h
  6729. fi
  6730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6731. fi
  6732. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6733. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6734. if test $ac_cv_struct_tm = sys/time.h; then
  6735. cat >>confdefs.h <<\_ACEOF
  6736. #define TM_IN_SYS_TIME 1
  6737. _ACEOF
  6738. fi
  6739. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6740. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6741. if test "${ac_cv_c_volatile+set}" = set; then
  6742. echo $ECHO_N "(cached) $ECHO_C" >&6
  6743. else
  6744. cat >conftest.$ac_ext <<_ACEOF
  6745. /* confdefs.h. */
  6746. _ACEOF
  6747. cat confdefs.h >>conftest.$ac_ext
  6748. cat >>conftest.$ac_ext <<_ACEOF
  6749. /* end confdefs.h. */
  6750. int
  6751. main ()
  6752. {
  6753. volatile int x;
  6754. int * volatile y = (int *) 0;
  6755. return !x && !y;
  6756. ;
  6757. return 0;
  6758. }
  6759. _ACEOF
  6760. rm -f conftest.$ac_objext
  6761. if { (ac_try="$ac_compile"
  6762. case "(($ac_try" in
  6763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6764. *) ac_try_echo=$ac_try;;
  6765. esac
  6766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6767. (eval "$ac_compile") 2>conftest.er1
  6768. ac_status=$?
  6769. grep -v '^ *+' conftest.er1 >conftest.err
  6770. rm -f conftest.er1
  6771. cat conftest.err >&5
  6772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6773. (exit $ac_status); } && {
  6774. test -z "$ac_c_werror_flag" ||
  6775. test ! -s conftest.err
  6776. } && test -s conftest.$ac_objext; then
  6777. ac_cv_c_volatile=yes
  6778. else
  6779. echo "$as_me: failed program was:" >&5
  6780. sed 's/^/| /' conftest.$ac_ext >&5
  6781. ac_cv_c_volatile=no
  6782. fi
  6783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6784. fi
  6785. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6786. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6787. if test $ac_cv_c_volatile = no; then
  6788. cat >>confdefs.h <<\_ACEOF
  6789. #define volatile
  6790. _ACEOF
  6791. fi
  6792. # Checks for library functions.
  6793. MKINSTALLDIRS=
  6794. if test -n "$ac_aux_dir"; then
  6795. case "$ac_aux_dir" in
  6796. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6797. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6798. esac
  6799. fi
  6800. if test -z "$MKINSTALLDIRS"; then
  6801. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6802. fi
  6803. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6804. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6805. # Check whether --enable-nls was given.
  6806. if test "${enable_nls+set}" = set; then
  6807. enableval=$enable_nls; USE_NLS=$enableval
  6808. else
  6809. USE_NLS=yes
  6810. fi
  6811. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6812. echo "${ECHO_T}$USE_NLS" >&6; }
  6813. # Prepare PATH_SEPARATOR.
  6814. # The user is always right.
  6815. if test "${PATH_SEPARATOR+set}" != set; then
  6816. echo "#! /bin/sh" >conf$$.sh
  6817. echo "exit 0" >>conf$$.sh
  6818. chmod +x conf$$.sh
  6819. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6820. PATH_SEPARATOR=';'
  6821. else
  6822. PATH_SEPARATOR=:
  6823. fi
  6824. rm -f conf$$.sh
  6825. fi
  6826. # Find out how to test for executable files. Don't use a zero-byte file,
  6827. # as systems may use methods other than mode bits to determine executability.
  6828. cat >conf$$.file <<_ASEOF
  6829. #! /bin/sh
  6830. exit 0
  6831. _ASEOF
  6832. chmod +x conf$$.file
  6833. if test -x conf$$.file >/dev/null 2>&1; then
  6834. ac_executable_p="test -x"
  6835. else
  6836. ac_executable_p="test -f"
  6837. fi
  6838. rm -f conf$$.file
  6839. # Extract the first word of "msgfmt", so it can be a program name with args.
  6840. set dummy msgfmt; ac_word=$2
  6841. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6842. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6843. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6844. echo $ECHO_N "(cached) $ECHO_C" >&6
  6845. else
  6846. case "$MSGFMT" in
  6847. [\\/]* | ?:[\\/]*)
  6848. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6849. ;;
  6850. *)
  6851. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6852. for ac_dir in $PATH; do
  6853. IFS="$ac_save_IFS"
  6854. test -z "$ac_dir" && ac_dir=.
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6857. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6858. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6859. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6860. break 2
  6861. fi
  6862. fi
  6863. done
  6864. done
  6865. IFS="$ac_save_IFS"
  6866. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6867. ;;
  6868. esac
  6869. fi
  6870. MSGFMT="$ac_cv_path_MSGFMT"
  6871. if test "$MSGFMT" != ":"; then
  6872. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6873. echo "${ECHO_T}$MSGFMT" >&6; }
  6874. else
  6875. { echo "$as_me:$LINENO: result: no" >&5
  6876. echo "${ECHO_T}no" >&6; }
  6877. fi
  6878. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6879. set dummy gmsgfmt; ac_word=$2
  6880. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6881. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6882. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6883. echo $ECHO_N "(cached) $ECHO_C" >&6
  6884. else
  6885. case $GMSGFMT in
  6886. [\\/]* | ?:[\\/]*)
  6887. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6888. ;;
  6889. *)
  6890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6891. for as_dir in $PATH
  6892. do
  6893. IFS=$as_save_IFS
  6894. test -z "$as_dir" && as_dir=.
  6895. for ac_exec_ext in '' $ac_executable_extensions; do
  6896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6897. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6898. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6899. break 2
  6900. fi
  6901. done
  6902. done
  6903. IFS=$as_save_IFS
  6904. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6905. ;;
  6906. esac
  6907. fi
  6908. GMSGFMT=$ac_cv_path_GMSGFMT
  6909. if test -n "$GMSGFMT"; then
  6910. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6911. echo "${ECHO_T}$GMSGFMT" >&6; }
  6912. else
  6913. { echo "$as_me:$LINENO: result: no" >&5
  6914. echo "${ECHO_T}no" >&6; }
  6915. fi
  6916. # Prepare PATH_SEPARATOR.
  6917. # The user is always right.
  6918. if test "${PATH_SEPARATOR+set}" != set; then
  6919. echo "#! /bin/sh" >conf$$.sh
  6920. echo "exit 0" >>conf$$.sh
  6921. chmod +x conf$$.sh
  6922. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6923. PATH_SEPARATOR=';'
  6924. else
  6925. PATH_SEPARATOR=:
  6926. fi
  6927. rm -f conf$$.sh
  6928. fi
  6929. # Find out how to test for executable files. Don't use a zero-byte file,
  6930. # as systems may use methods other than mode bits to determine executability.
  6931. cat >conf$$.file <<_ASEOF
  6932. #! /bin/sh
  6933. exit 0
  6934. _ASEOF
  6935. chmod +x conf$$.file
  6936. if test -x conf$$.file >/dev/null 2>&1; then
  6937. ac_executable_p="test -x"
  6938. else
  6939. ac_executable_p="test -f"
  6940. fi
  6941. rm -f conf$$.file
  6942. # Extract the first word of "xgettext", so it can be a program name with args.
  6943. set dummy xgettext; ac_word=$2
  6944. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6945. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6946. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6947. echo $ECHO_N "(cached) $ECHO_C" >&6
  6948. else
  6949. case "$XGETTEXT" in
  6950. [\\/]* | ?:[\\/]*)
  6951. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6952. ;;
  6953. *)
  6954. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6955. for ac_dir in $PATH; do
  6956. IFS="$ac_save_IFS"
  6957. test -z "$ac_dir" && ac_dir=.
  6958. for ac_exec_ext in '' $ac_executable_extensions; do
  6959. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6960. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6961. (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
  6962. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6963. break 2
  6964. fi
  6965. fi
  6966. done
  6967. done
  6968. IFS="$ac_save_IFS"
  6969. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6970. ;;
  6971. esac
  6972. fi
  6973. XGETTEXT="$ac_cv_path_XGETTEXT"
  6974. if test "$XGETTEXT" != ":"; then
  6975. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6976. echo "${ECHO_T}$XGETTEXT" >&6; }
  6977. else
  6978. { echo "$as_me:$LINENO: result: no" >&5
  6979. echo "${ECHO_T}no" >&6; }
  6980. fi
  6981. rm -f messages.po
  6982. # Prepare PATH_SEPARATOR.
  6983. # The user is always right.
  6984. if test "${PATH_SEPARATOR+set}" != set; then
  6985. echo "#! /bin/sh" >conf$$.sh
  6986. echo "exit 0" >>conf$$.sh
  6987. chmod +x conf$$.sh
  6988. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6989. PATH_SEPARATOR=';'
  6990. else
  6991. PATH_SEPARATOR=:
  6992. fi
  6993. rm -f conf$$.sh
  6994. fi
  6995. # Find out how to test for executable files. Don't use a zero-byte file,
  6996. # as systems may use methods other than mode bits to determine executability.
  6997. cat >conf$$.file <<_ASEOF
  6998. #! /bin/sh
  6999. exit 0
  7000. _ASEOF
  7001. chmod +x conf$$.file
  7002. if test -x conf$$.file >/dev/null 2>&1; then
  7003. ac_executable_p="test -x"
  7004. else
  7005. ac_executable_p="test -f"
  7006. fi
  7007. rm -f conf$$.file
  7008. # Extract the first word of "msgmerge", so it can be a program name with args.
  7009. set dummy msgmerge; ac_word=$2
  7010. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7011. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7012. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7013. echo $ECHO_N "(cached) $ECHO_C" >&6
  7014. else
  7015. case "$MSGMERGE" in
  7016. [\\/]* | ?:[\\/]*)
  7017. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7018. ;;
  7019. *)
  7020. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7021. for ac_dir in $PATH; do
  7022. IFS="$ac_save_IFS"
  7023. test -z "$ac_dir" && ac_dir=.
  7024. for ac_exec_ext in '' $ac_executable_extensions; do
  7025. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7026. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  7027. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7028. break 2
  7029. fi
  7030. fi
  7031. done
  7032. done
  7033. IFS="$ac_save_IFS"
  7034. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7035. ;;
  7036. esac
  7037. fi
  7038. MSGMERGE="$ac_cv_path_MSGMERGE"
  7039. if test "$MSGMERGE" != ":"; then
  7040. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7041. echo "${ECHO_T}$MSGMERGE" >&6; }
  7042. else
  7043. { echo "$as_me:$LINENO: result: no" >&5
  7044. echo "${ECHO_T}no" >&6; }
  7045. fi
  7046. if test "$GMSGFMT" != ":"; then
  7047. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  7048. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7049. : ;
  7050. else
  7051. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  7052. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  7053. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  7054. GMSGFMT=":"
  7055. fi
  7056. fi
  7057. if test "$XGETTEXT" != ":"; then
  7058. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7059. (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
  7060. : ;
  7061. else
  7062. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7063. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7064. XGETTEXT=":"
  7065. fi
  7066. rm -f messages.po
  7067. fi
  7068. ac_config_commands="$ac_config_commands default-1"
  7069. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  7070. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  7071. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  7072. echo $ECHO_N "(cached) $ECHO_C" >&6
  7073. else
  7074. ac_check_lib_save_LIBS=$LIBS
  7075. LIBS="-lcposix $LIBS"
  7076. cat >conftest.$ac_ext <<_ACEOF
  7077. /* confdefs.h. */
  7078. _ACEOF
  7079. cat confdefs.h >>conftest.$ac_ext
  7080. cat >>conftest.$ac_ext <<_ACEOF
  7081. /* end confdefs.h. */
  7082. /* Override any GCC internal prototype to avoid an error.
  7083. Use char because int might match the return type of a GCC
  7084. builtin and then its argument prototype would still apply. */
  7085. #ifdef __cplusplus
  7086. extern "C"
  7087. #endif
  7088. char strerror ();
  7089. int
  7090. main ()
  7091. {
  7092. return strerror ();
  7093. ;
  7094. return 0;
  7095. }
  7096. _ACEOF
  7097. rm -f conftest.$ac_objext conftest$ac_exeext
  7098. if { (ac_try="$ac_link"
  7099. case "(($ac_try" in
  7100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7101. *) ac_try_echo=$ac_try;;
  7102. esac
  7103. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7104. (eval "$ac_link") 2>conftest.er1
  7105. ac_status=$?
  7106. grep -v '^ *+' conftest.er1 >conftest.err
  7107. rm -f conftest.er1
  7108. cat conftest.err >&5
  7109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); } && {
  7111. test -z "$ac_c_werror_flag" ||
  7112. test ! -s conftest.err
  7113. } && test -s conftest$ac_exeext &&
  7114. $as_test_x conftest$ac_exeext; then
  7115. ac_cv_lib_cposix_strerror=yes
  7116. else
  7117. echo "$as_me: failed program was:" >&5
  7118. sed 's/^/| /' conftest.$ac_ext >&5
  7119. ac_cv_lib_cposix_strerror=no
  7120. fi
  7121. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7122. conftest$ac_exeext conftest.$ac_ext
  7123. LIBS=$ac_check_lib_save_LIBS
  7124. fi
  7125. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  7126. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  7127. if test $ac_cv_lib_cposix_strerror = yes; then
  7128. LIBS="$LIBS -lcposix"
  7129. fi
  7130. { echo "$as_me:$LINENO: checking for off_t" >&5
  7131. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7132. if test "${ac_cv_type_off_t+set}" = set; then
  7133. echo $ECHO_N "(cached) $ECHO_C" >&6
  7134. else
  7135. cat >conftest.$ac_ext <<_ACEOF
  7136. /* confdefs.h. */
  7137. _ACEOF
  7138. cat confdefs.h >>conftest.$ac_ext
  7139. cat >>conftest.$ac_ext <<_ACEOF
  7140. /* end confdefs.h. */
  7141. $ac_includes_default
  7142. typedef off_t ac__type_new_;
  7143. int
  7144. main ()
  7145. {
  7146. if ((ac__type_new_ *) 0)
  7147. return 0;
  7148. if (sizeof (ac__type_new_))
  7149. return 0;
  7150. ;
  7151. return 0;
  7152. }
  7153. _ACEOF
  7154. rm -f conftest.$ac_objext
  7155. if { (ac_try="$ac_compile"
  7156. case "(($ac_try" in
  7157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7158. *) ac_try_echo=$ac_try;;
  7159. esac
  7160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7161. (eval "$ac_compile") 2>conftest.er1
  7162. ac_status=$?
  7163. grep -v '^ *+' conftest.er1 >conftest.err
  7164. rm -f conftest.er1
  7165. cat conftest.err >&5
  7166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7167. (exit $ac_status); } && {
  7168. test -z "$ac_c_werror_flag" ||
  7169. test ! -s conftest.err
  7170. } && test -s conftest.$ac_objext; then
  7171. ac_cv_type_off_t=yes
  7172. else
  7173. echo "$as_me: failed program was:" >&5
  7174. sed 's/^/| /' conftest.$ac_ext >&5
  7175. ac_cv_type_off_t=no
  7176. fi
  7177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7178. fi
  7179. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7180. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7181. if test $ac_cv_type_off_t = yes; then
  7182. :
  7183. else
  7184. cat >>confdefs.h <<_ACEOF
  7185. #define off_t long int
  7186. _ACEOF
  7187. fi
  7188. for ac_header in stdlib.h unistd.h
  7189. do
  7190. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7191. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7192. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7194. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7195. echo $ECHO_N "(cached) $ECHO_C" >&6
  7196. fi
  7197. ac_res=`eval echo '${'$as_ac_Header'}'`
  7198. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7199. echo "${ECHO_T}$ac_res" >&6; }
  7200. else
  7201. # Is the header compilable?
  7202. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7203. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7204. cat >conftest.$ac_ext <<_ACEOF
  7205. /* confdefs.h. */
  7206. _ACEOF
  7207. cat confdefs.h >>conftest.$ac_ext
  7208. cat >>conftest.$ac_ext <<_ACEOF
  7209. /* end confdefs.h. */
  7210. $ac_includes_default
  7211. #include <$ac_header>
  7212. _ACEOF
  7213. rm -f conftest.$ac_objext
  7214. if { (ac_try="$ac_compile"
  7215. case "(($ac_try" in
  7216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7217. *) ac_try_echo=$ac_try;;
  7218. esac
  7219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7220. (eval "$ac_compile") 2>conftest.er1
  7221. ac_status=$?
  7222. grep -v '^ *+' conftest.er1 >conftest.err
  7223. rm -f conftest.er1
  7224. cat conftest.err >&5
  7225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7226. (exit $ac_status); } && {
  7227. test -z "$ac_c_werror_flag" ||
  7228. test ! -s conftest.err
  7229. } && test -s conftest.$ac_objext; then
  7230. ac_header_compiler=yes
  7231. else
  7232. echo "$as_me: failed program was:" >&5
  7233. sed 's/^/| /' conftest.$ac_ext >&5
  7234. ac_header_compiler=no
  7235. fi
  7236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7237. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7238. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7239. # Is the header present?
  7240. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7241. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7242. cat >conftest.$ac_ext <<_ACEOF
  7243. /* confdefs.h. */
  7244. _ACEOF
  7245. cat confdefs.h >>conftest.$ac_ext
  7246. cat >>conftest.$ac_ext <<_ACEOF
  7247. /* end confdefs.h. */
  7248. #include <$ac_header>
  7249. _ACEOF
  7250. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7251. case "(($ac_try" in
  7252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7253. *) ac_try_echo=$ac_try;;
  7254. esac
  7255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7256. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7257. ac_status=$?
  7258. grep -v '^ *+' conftest.er1 >conftest.err
  7259. rm -f conftest.er1
  7260. cat conftest.err >&5
  7261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7262. (exit $ac_status); } >/dev/null && {
  7263. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7264. test ! -s conftest.err
  7265. }; then
  7266. ac_header_preproc=yes
  7267. else
  7268. echo "$as_me: failed program was:" >&5
  7269. sed 's/^/| /' conftest.$ac_ext >&5
  7270. ac_header_preproc=no
  7271. fi
  7272. rm -f conftest.err conftest.$ac_ext
  7273. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7274. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7275. # So? What about this header?
  7276. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7277. yes:no: )
  7278. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7279. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7280. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7281. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7282. ac_header_preproc=yes
  7283. ;;
  7284. no:yes:* )
  7285. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7286. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7287. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7288. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7289. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7290. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7291. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7292. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7293. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7294. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7295. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7296. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7297. ( cat <<\_ASBOX
  7298. ## ----------------------------------------------- ##
  7299. ## Report this to t-tujikawa@users.sourceforge.net ##
  7300. ## ----------------------------------------------- ##
  7301. _ASBOX
  7302. ) | sed "s/^/$as_me: WARNING: /" >&2
  7303. ;;
  7304. esac
  7305. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7306. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7307. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7308. echo $ECHO_N "(cached) $ECHO_C" >&6
  7309. else
  7310. eval "$as_ac_Header=\$ac_header_preproc"
  7311. fi
  7312. ac_res=`eval echo '${'$as_ac_Header'}'`
  7313. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7314. echo "${ECHO_T}$ac_res" >&6; }
  7315. fi
  7316. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7317. cat >>confdefs.h <<_ACEOF
  7318. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7319. _ACEOF
  7320. fi
  7321. done
  7322. for ac_func in getpagesize
  7323. do
  7324. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7325. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7326. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7327. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7328. echo $ECHO_N "(cached) $ECHO_C" >&6
  7329. else
  7330. cat >conftest.$ac_ext <<_ACEOF
  7331. /* confdefs.h. */
  7332. _ACEOF
  7333. cat confdefs.h >>conftest.$ac_ext
  7334. cat >>conftest.$ac_ext <<_ACEOF
  7335. /* end confdefs.h. */
  7336. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7337. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7338. #define $ac_func innocuous_$ac_func
  7339. /* System header to define __stub macros and hopefully few prototypes,
  7340. which can conflict with char $ac_func (); below.
  7341. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7342. <limits.h> exists even on freestanding compilers. */
  7343. #ifdef __STDC__
  7344. # include <limits.h>
  7345. #else
  7346. # include <assert.h>
  7347. #endif
  7348. #undef $ac_func
  7349. /* Override any GCC internal prototype to avoid an error.
  7350. Use char because int might match the return type of a GCC
  7351. builtin and then its argument prototype would still apply. */
  7352. #ifdef __cplusplus
  7353. extern "C"
  7354. #endif
  7355. char $ac_func ();
  7356. /* The GNU C library defines this for functions which it implements
  7357. to always fail with ENOSYS. Some functions are actually named
  7358. something starting with __ and the normal name is an alias. */
  7359. #if defined __stub_$ac_func || defined __stub___$ac_func
  7360. choke me
  7361. #endif
  7362. int
  7363. main ()
  7364. {
  7365. return $ac_func ();
  7366. ;
  7367. return 0;
  7368. }
  7369. _ACEOF
  7370. rm -f conftest.$ac_objext conftest$ac_exeext
  7371. if { (ac_try="$ac_link"
  7372. case "(($ac_try" in
  7373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7374. *) ac_try_echo=$ac_try;;
  7375. esac
  7376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7377. (eval "$ac_link") 2>conftest.er1
  7378. ac_status=$?
  7379. grep -v '^ *+' conftest.er1 >conftest.err
  7380. rm -f conftest.er1
  7381. cat conftest.err >&5
  7382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7383. (exit $ac_status); } && {
  7384. test -z "$ac_c_werror_flag" ||
  7385. test ! -s conftest.err
  7386. } && test -s conftest$ac_exeext &&
  7387. $as_test_x conftest$ac_exeext; then
  7388. eval "$as_ac_var=yes"
  7389. else
  7390. echo "$as_me: failed program was:" >&5
  7391. sed 's/^/| /' conftest.$ac_ext >&5
  7392. eval "$as_ac_var=no"
  7393. fi
  7394. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7395. conftest$ac_exeext conftest.$ac_ext
  7396. fi
  7397. ac_res=`eval echo '${'$as_ac_var'}'`
  7398. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7399. echo "${ECHO_T}$ac_res" >&6; }
  7400. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7401. cat >>confdefs.h <<_ACEOF
  7402. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7403. _ACEOF
  7404. fi
  7405. done
  7406. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7407. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7408. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7409. echo $ECHO_N "(cached) $ECHO_C" >&6
  7410. else
  7411. if test "$cross_compiling" = yes; then
  7412. ac_cv_func_mmap_fixed_mapped=no
  7413. else
  7414. cat >conftest.$ac_ext <<_ACEOF
  7415. /* confdefs.h. */
  7416. _ACEOF
  7417. cat confdefs.h >>conftest.$ac_ext
  7418. cat >>conftest.$ac_ext <<_ACEOF
  7419. /* end confdefs.h. */
  7420. $ac_includes_default
  7421. /* malloc might have been renamed as rpl_malloc. */
  7422. #undef malloc
  7423. /* Thanks to Mike Haertel and Jim Avera for this test.
  7424. Here is a matrix of mmap possibilities:
  7425. mmap private not fixed
  7426. mmap private fixed at somewhere currently unmapped
  7427. mmap private fixed at somewhere already mapped
  7428. mmap shared not fixed
  7429. mmap shared fixed at somewhere currently unmapped
  7430. mmap shared fixed at somewhere already mapped
  7431. For private mappings, we should verify that changes cannot be read()
  7432. back from the file, nor mmap's back from the file at a different
  7433. address. (There have been systems where private was not correctly
  7434. implemented like the infamous i386 svr4.0, and systems where the
  7435. VM page cache was not coherent with the file system buffer cache
  7436. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7437. For shared mappings, we should conversely verify that changes get
  7438. propagated back to all the places they're supposed to be.
  7439. Grep wants private fixed already mapped.
  7440. The main things grep needs to know about mmap are:
  7441. * does it exist and is it safe to write into the mmap'd area
  7442. * how to use it (BSD variants) */
  7443. #include <fcntl.h>
  7444. #include <sys/mman.h>
  7445. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7446. char *malloc ();
  7447. #endif
  7448. /* This mess was copied from the GNU getpagesize.h. */
  7449. #ifndef HAVE_GETPAGESIZE
  7450. /* Assume that all systems that can run configure have sys/param.h. */
  7451. # ifndef HAVE_SYS_PARAM_H
  7452. # define HAVE_SYS_PARAM_H 1
  7453. # endif
  7454. # ifdef _SC_PAGESIZE
  7455. # define getpagesize() sysconf(_SC_PAGESIZE)
  7456. # else /* no _SC_PAGESIZE */
  7457. # ifdef HAVE_SYS_PARAM_H
  7458. # include <sys/param.h>
  7459. # ifdef EXEC_PAGESIZE
  7460. # define getpagesize() EXEC_PAGESIZE
  7461. # else /* no EXEC_PAGESIZE */
  7462. # ifdef NBPG
  7463. # define getpagesize() NBPG * CLSIZE
  7464. # ifndef CLSIZE
  7465. # define CLSIZE 1
  7466. # endif /* no CLSIZE */
  7467. # else /* no NBPG */
  7468. # ifdef NBPC
  7469. # define getpagesize() NBPC
  7470. # else /* no NBPC */
  7471. # ifdef PAGESIZE
  7472. # define getpagesize() PAGESIZE
  7473. # endif /* PAGESIZE */
  7474. # endif /* no NBPC */
  7475. # endif /* no NBPG */
  7476. # endif /* no EXEC_PAGESIZE */
  7477. # else /* no HAVE_SYS_PARAM_H */
  7478. # define getpagesize() 8192 /* punt totally */
  7479. # endif /* no HAVE_SYS_PARAM_H */
  7480. # endif /* no _SC_PAGESIZE */
  7481. #endif /* no HAVE_GETPAGESIZE */
  7482. int
  7483. main ()
  7484. {
  7485. char *data, *data2, *data3;
  7486. int i, pagesize;
  7487. int fd;
  7488. pagesize = getpagesize ();
  7489. /* First, make a file with some known garbage in it. */
  7490. data = (char *) malloc (pagesize);
  7491. if (!data)
  7492. return 1;
  7493. for (i = 0; i < pagesize; ++i)
  7494. *(data + i) = rand ();
  7495. umask (0);
  7496. fd = creat ("conftest.mmap", 0600);
  7497. if (fd < 0)
  7498. return 1;
  7499. if (write (fd, data, pagesize) != pagesize)
  7500. return 1;
  7501. close (fd);
  7502. /* Next, try to mmap the file at a fixed address which already has
  7503. something else allocated at it. If we can, also make sure that
  7504. we see the same garbage. */
  7505. fd = open ("conftest.mmap", O_RDWR);
  7506. if (fd < 0)
  7507. return 1;
  7508. data2 = (char *) malloc (2 * pagesize);
  7509. if (!data2)
  7510. return 1;
  7511. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7512. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7513. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7514. return 1;
  7515. for (i = 0; i < pagesize; ++i)
  7516. if (*(data + i) != *(data2 + i))
  7517. return 1;
  7518. /* Finally, make sure that changes to the mapped area do not
  7519. percolate back to the file as seen by read(). (This is a bug on
  7520. some variants of i386 svr4.0.) */
  7521. for (i = 0; i < pagesize; ++i)
  7522. *(data2 + i) = *(data2 + i) + 1;
  7523. data3 = (char *) malloc (pagesize);
  7524. if (!data3)
  7525. return 1;
  7526. if (read (fd, data3, pagesize) != pagesize)
  7527. return 1;
  7528. for (i = 0; i < pagesize; ++i)
  7529. if (*(data + i) != *(data3 + i))
  7530. return 1;
  7531. close (fd);
  7532. return 0;
  7533. }
  7534. _ACEOF
  7535. rm -f conftest$ac_exeext
  7536. if { (ac_try="$ac_link"
  7537. case "(($ac_try" in
  7538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7539. *) ac_try_echo=$ac_try;;
  7540. esac
  7541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7542. (eval "$ac_link") 2>&5
  7543. ac_status=$?
  7544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7546. { (case "(($ac_try" in
  7547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7548. *) ac_try_echo=$ac_try;;
  7549. esac
  7550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7551. (eval "$ac_try") 2>&5
  7552. ac_status=$?
  7553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. (exit $ac_status); }; }; then
  7555. ac_cv_func_mmap_fixed_mapped=yes
  7556. else
  7557. echo "$as_me: program exited with status $ac_status" >&5
  7558. echo "$as_me: failed program was:" >&5
  7559. sed 's/^/| /' conftest.$ac_ext >&5
  7560. ( exit $ac_status )
  7561. ac_cv_func_mmap_fixed_mapped=no
  7562. fi
  7563. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7564. fi
  7565. fi
  7566. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7567. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7568. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7569. cat >>confdefs.h <<\_ACEOF
  7570. #define HAVE_MMAP 1
  7571. _ACEOF
  7572. fi
  7573. rm -f conftest.mmap
  7574. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7575. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7576. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7577. echo $ECHO_N "(cached) $ECHO_C" >&6
  7578. else
  7579. cat >conftest.$ac_ext <<_ACEOF
  7580. /* confdefs.h. */
  7581. _ACEOF
  7582. cat confdefs.h >>conftest.$ac_ext
  7583. cat >>conftest.$ac_ext <<_ACEOF
  7584. /* end confdefs.h. */
  7585. #include <features.h>
  7586. #ifdef __GNU_LIBRARY__
  7587. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7588. Lucky GNU user
  7589. #endif
  7590. #endif
  7591. _ACEOF
  7592. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7593. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7594. ac_cv_gnu_library_2_1=yes
  7595. else
  7596. ac_cv_gnu_library_2_1=no
  7597. fi
  7598. rm -f conftest*
  7599. fi
  7600. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7601. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7602. GLIBC21="$ac_cv_gnu_library_2_1"
  7603. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7604. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7605. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7606. echo $ECHO_N "(cached) $ECHO_C" >&6
  7607. else
  7608. if test "$cross_compiling" = yes; then
  7609. # Guess based on the CPU.
  7610. case "$host_cpu" in
  7611. alpha* | i3456786 | m68k | s390*)
  7612. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7613. *)
  7614. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7615. esac
  7616. else
  7617. cat >conftest.$ac_ext <<_ACEOF
  7618. /* confdefs.h. */
  7619. _ACEOF
  7620. cat confdefs.h >>conftest.$ac_ext
  7621. cat >>conftest.$ac_ext <<_ACEOF
  7622. /* end confdefs.h. */
  7623. #include <stdlib.h>
  7624. #include <signal.h>
  7625. static void
  7626. #ifdef __cplusplus
  7627. sigfpe_handler (int sig)
  7628. #else
  7629. sigfpe_handler (sig) int sig;
  7630. #endif
  7631. {
  7632. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7633. exit (sig != SIGFPE);
  7634. }
  7635. int x = 1;
  7636. int y = 0;
  7637. int z;
  7638. int nan;
  7639. int main ()
  7640. {
  7641. signal (SIGFPE, sigfpe_handler);
  7642. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7643. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7644. signal (SIGTRAP, sigfpe_handler);
  7645. #endif
  7646. /* Linux/SPARC yields signal SIGILL. */
  7647. #if defined (__sparc__) && defined (__linux__)
  7648. signal (SIGILL, sigfpe_handler);
  7649. #endif
  7650. z = x / y;
  7651. nan = y / y;
  7652. exit (1);
  7653. }
  7654. _ACEOF
  7655. rm -f conftest$ac_exeext
  7656. if { (ac_try="$ac_link"
  7657. case "(($ac_try" in
  7658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7659. *) ac_try_echo=$ac_try;;
  7660. esac
  7661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7662. (eval "$ac_link") 2>&5
  7663. ac_status=$?
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7666. { (case "(($ac_try" in
  7667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7668. *) ac_try_echo=$ac_try;;
  7669. esac
  7670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7671. (eval "$ac_try") 2>&5
  7672. ac_status=$?
  7673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7674. (exit $ac_status); }; }; then
  7675. gt_cv_int_divbyzero_sigfpe=yes
  7676. else
  7677. echo "$as_me: program exited with status $ac_status" >&5
  7678. echo "$as_me: failed program was:" >&5
  7679. sed 's/^/| /' conftest.$ac_ext >&5
  7680. ( exit $ac_status )
  7681. gt_cv_int_divbyzero_sigfpe=no
  7682. fi
  7683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7684. fi
  7685. fi
  7686. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7687. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7688. case "$gt_cv_int_divbyzero_sigfpe" in
  7689. *yes) value=1;;
  7690. *) value=0;;
  7691. esac
  7692. cat >>confdefs.h <<_ACEOF
  7693. #define INTDIV0_RAISES_SIGFPE $value
  7694. _ACEOF
  7695. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7696. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7697. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7698. echo $ECHO_N "(cached) $ECHO_C" >&6
  7699. else
  7700. cat >conftest.$ac_ext <<_ACEOF
  7701. /* confdefs.h. */
  7702. _ACEOF
  7703. cat confdefs.h >>conftest.$ac_ext
  7704. cat >>conftest.$ac_ext <<_ACEOF
  7705. /* end confdefs.h. */
  7706. #include <sys/types.h>
  7707. #include <inttypes.h>
  7708. int
  7709. main ()
  7710. {
  7711. uintmax_t i = (uintmax_t) -1;
  7712. ;
  7713. return 0;
  7714. }
  7715. _ACEOF
  7716. rm -f conftest.$ac_objext
  7717. if { (ac_try="$ac_compile"
  7718. case "(($ac_try" in
  7719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7720. *) ac_try_echo=$ac_try;;
  7721. esac
  7722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7723. (eval "$ac_compile") 2>conftest.er1
  7724. ac_status=$?
  7725. grep -v '^ *+' conftest.er1 >conftest.err
  7726. rm -f conftest.er1
  7727. cat conftest.err >&5
  7728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7729. (exit $ac_status); } && {
  7730. test -z "$ac_c_werror_flag" ||
  7731. test ! -s conftest.err
  7732. } && test -s conftest.$ac_objext; then
  7733. jm_ac_cv_header_inttypes_h=yes
  7734. else
  7735. echo "$as_me: failed program was:" >&5
  7736. sed 's/^/| /' conftest.$ac_ext >&5
  7737. jm_ac_cv_header_inttypes_h=no
  7738. fi
  7739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7740. fi
  7741. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7742. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7743. if test $jm_ac_cv_header_inttypes_h = yes; then
  7744. cat >>confdefs.h <<_ACEOF
  7745. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7746. _ACEOF
  7747. fi
  7748. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7749. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7750. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7751. echo $ECHO_N "(cached) $ECHO_C" >&6
  7752. else
  7753. cat >conftest.$ac_ext <<_ACEOF
  7754. /* confdefs.h. */
  7755. _ACEOF
  7756. cat confdefs.h >>conftest.$ac_ext
  7757. cat >>conftest.$ac_ext <<_ACEOF
  7758. /* end confdefs.h. */
  7759. #include <sys/types.h>
  7760. #include <stdint.h>
  7761. int
  7762. main ()
  7763. {
  7764. uintmax_t i = (uintmax_t) -1;
  7765. ;
  7766. return 0;
  7767. }
  7768. _ACEOF
  7769. rm -f conftest.$ac_objext
  7770. if { (ac_try="$ac_compile"
  7771. case "(($ac_try" in
  7772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7773. *) ac_try_echo=$ac_try;;
  7774. esac
  7775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7776. (eval "$ac_compile") 2>conftest.er1
  7777. ac_status=$?
  7778. grep -v '^ *+' conftest.er1 >conftest.err
  7779. rm -f conftest.er1
  7780. cat conftest.err >&5
  7781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7782. (exit $ac_status); } && {
  7783. test -z "$ac_c_werror_flag" ||
  7784. test ! -s conftest.err
  7785. } && test -s conftest.$ac_objext; then
  7786. jm_ac_cv_header_stdint_h=yes
  7787. else
  7788. echo "$as_me: failed program was:" >&5
  7789. sed 's/^/| /' conftest.$ac_ext >&5
  7790. jm_ac_cv_header_stdint_h=no
  7791. fi
  7792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7793. fi
  7794. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7795. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7796. if test $jm_ac_cv_header_stdint_h = yes; then
  7797. cat >>confdefs.h <<_ACEOF
  7798. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7799. _ACEOF
  7800. fi
  7801. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7802. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7803. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7804. echo $ECHO_N "(cached) $ECHO_C" >&6
  7805. else
  7806. cat >conftest.$ac_ext <<_ACEOF
  7807. /* confdefs.h. */
  7808. _ACEOF
  7809. cat confdefs.h >>conftest.$ac_ext
  7810. cat >>conftest.$ac_ext <<_ACEOF
  7811. /* end confdefs.h. */
  7812. unsigned long long ull = 1; int i = 63;
  7813. int
  7814. main ()
  7815. {
  7816. unsigned long long ullmax = (unsigned long long) -1;
  7817. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7818. ;
  7819. return 0;
  7820. }
  7821. _ACEOF
  7822. rm -f conftest.$ac_objext conftest$ac_exeext
  7823. if { (ac_try="$ac_link"
  7824. case "(($ac_try" in
  7825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7826. *) ac_try_echo=$ac_try;;
  7827. esac
  7828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7829. (eval "$ac_link") 2>conftest.er1
  7830. ac_status=$?
  7831. grep -v '^ *+' conftest.er1 >conftest.err
  7832. rm -f conftest.er1
  7833. cat conftest.err >&5
  7834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. (exit $ac_status); } && {
  7836. test -z "$ac_c_werror_flag" ||
  7837. test ! -s conftest.err
  7838. } && test -s conftest$ac_exeext &&
  7839. $as_test_x conftest$ac_exeext; then
  7840. ac_cv_type_unsigned_long_long=yes
  7841. else
  7842. echo "$as_me: failed program was:" >&5
  7843. sed 's/^/| /' conftest.$ac_ext >&5
  7844. ac_cv_type_unsigned_long_long=no
  7845. fi
  7846. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7847. conftest$ac_exeext conftest.$ac_ext
  7848. fi
  7849. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7850. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7851. if test $ac_cv_type_unsigned_long_long = yes; then
  7852. cat >>confdefs.h <<\_ACEOF
  7853. #define HAVE_UNSIGNED_LONG_LONG 1
  7854. _ACEOF
  7855. fi
  7856. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7857. test $ac_cv_type_unsigned_long_long = yes \
  7858. && ac_type='unsigned long long' \
  7859. || ac_type='unsigned long'
  7860. cat >>confdefs.h <<_ACEOF
  7861. #define uintmax_t $ac_type
  7862. _ACEOF
  7863. else
  7864. cat >>confdefs.h <<\_ACEOF
  7865. #define HAVE_UINTMAX_T 1
  7866. _ACEOF
  7867. fi
  7868. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7869. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7870. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7871. echo $ECHO_N "(cached) $ECHO_C" >&6
  7872. else
  7873. cat >conftest.$ac_ext <<_ACEOF
  7874. /* confdefs.h. */
  7875. _ACEOF
  7876. cat confdefs.h >>conftest.$ac_ext
  7877. cat >>conftest.$ac_ext <<_ACEOF
  7878. /* end confdefs.h. */
  7879. #include <sys/types.h>
  7880. #include <inttypes.h>
  7881. int
  7882. main ()
  7883. {
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. rm -f conftest.$ac_objext
  7889. if { (ac_try="$ac_compile"
  7890. case "(($ac_try" in
  7891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7892. *) ac_try_echo=$ac_try;;
  7893. esac
  7894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7895. (eval "$ac_compile") 2>conftest.er1
  7896. ac_status=$?
  7897. grep -v '^ *+' conftest.er1 >conftest.err
  7898. rm -f conftest.er1
  7899. cat conftest.err >&5
  7900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901. (exit $ac_status); } && {
  7902. test -z "$ac_c_werror_flag" ||
  7903. test ! -s conftest.err
  7904. } && test -s conftest.$ac_objext; then
  7905. gt_cv_header_inttypes_h=yes
  7906. else
  7907. echo "$as_me: failed program was:" >&5
  7908. sed 's/^/| /' conftest.$ac_ext >&5
  7909. gt_cv_header_inttypes_h=no
  7910. fi
  7911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7912. fi
  7913. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7914. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7915. if test $gt_cv_header_inttypes_h = yes; then
  7916. cat >>confdefs.h <<_ACEOF
  7917. #define HAVE_INTTYPES_H 1
  7918. _ACEOF
  7919. fi
  7920. if test $gt_cv_header_inttypes_h = yes; then
  7921. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7922. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7923. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7924. echo $ECHO_N "(cached) $ECHO_C" >&6
  7925. else
  7926. cat >conftest.$ac_ext <<_ACEOF
  7927. /* confdefs.h. */
  7928. _ACEOF
  7929. cat confdefs.h >>conftest.$ac_ext
  7930. cat >>conftest.$ac_ext <<_ACEOF
  7931. /* end confdefs.h. */
  7932. #include <inttypes.h>
  7933. #ifdef PRId32
  7934. char *p = PRId32;
  7935. #endif
  7936. int
  7937. main ()
  7938. {
  7939. ;
  7940. return 0;
  7941. }
  7942. _ACEOF
  7943. rm -f conftest.$ac_objext
  7944. if { (ac_try="$ac_compile"
  7945. case "(($ac_try" in
  7946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7947. *) ac_try_echo=$ac_try;;
  7948. esac
  7949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7950. (eval "$ac_compile") 2>conftest.er1
  7951. ac_status=$?
  7952. grep -v '^ *+' conftest.er1 >conftest.err
  7953. rm -f conftest.er1
  7954. cat conftest.err >&5
  7955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7956. (exit $ac_status); } && {
  7957. test -z "$ac_c_werror_flag" ||
  7958. test ! -s conftest.err
  7959. } && test -s conftest.$ac_objext; then
  7960. gt_cv_inttypes_pri_broken=no
  7961. else
  7962. echo "$as_me: failed program was:" >&5
  7963. sed 's/^/| /' conftest.$ac_ext >&5
  7964. gt_cv_inttypes_pri_broken=yes
  7965. fi
  7966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7967. fi
  7968. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7969. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7970. fi
  7971. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7972. cat >>confdefs.h <<_ACEOF
  7973. #define PRI_MACROS_BROKEN 1
  7974. _ACEOF
  7975. fi
  7976. if test "X$prefix" = "XNONE"; then
  7977. acl_final_prefix="$ac_default_prefix"
  7978. else
  7979. acl_final_prefix="$prefix"
  7980. fi
  7981. if test "X$exec_prefix" = "XNONE"; then
  7982. acl_final_exec_prefix='${prefix}'
  7983. else
  7984. acl_final_exec_prefix="$exec_prefix"
  7985. fi
  7986. acl_save_prefix="$prefix"
  7987. prefix="$acl_final_prefix"
  7988. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7989. prefix="$acl_save_prefix"
  7990. # Check whether --with-gnu-ld was given.
  7991. if test "${with_gnu_ld+set}" = set; then
  7992. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7993. else
  7994. with_gnu_ld=no
  7995. fi
  7996. # Prepare PATH_SEPARATOR.
  7997. # The user is always right.
  7998. if test "${PATH_SEPARATOR+set}" != set; then
  7999. echo "#! /bin/sh" >conf$$.sh
  8000. echo "exit 0" >>conf$$.sh
  8001. chmod +x conf$$.sh
  8002. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8003. PATH_SEPARATOR=';'
  8004. else
  8005. PATH_SEPARATOR=:
  8006. fi
  8007. rm -f conf$$.sh
  8008. fi
  8009. ac_prog=ld
  8010. if test "$GCC" = yes; then
  8011. # Check if gcc -print-prog-name=ld gives a path.
  8012. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8013. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8014. case $host in
  8015. *-*-mingw*)
  8016. # gcc leaves a trailing carriage return which upsets mingw
  8017. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8018. *)
  8019. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8020. esac
  8021. case $ac_prog in
  8022. # Accept absolute paths.
  8023. [\\/]* | [A-Za-z]:[\\/]*)
  8024. re_direlt='/[^/][^/]*/\.\./'
  8025. # Canonicalize the path of ld
  8026. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8027. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8028. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8029. done
  8030. test -z "$LD" && LD="$ac_prog"
  8031. ;;
  8032. "")
  8033. # If it fails, then pretend we aren't using GCC.
  8034. ac_prog=ld
  8035. ;;
  8036. *)
  8037. # If it is relative, then search for the first ld in PATH.
  8038. with_gnu_ld=unknown
  8039. ;;
  8040. esac
  8041. elif test "$with_gnu_ld" = yes; then
  8042. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8043. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8044. else
  8045. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8046. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8047. fi
  8048. if test "${acl_cv_path_LD+set}" = set; then
  8049. echo $ECHO_N "(cached) $ECHO_C" >&6
  8050. else
  8051. if test -z "$LD"; then
  8052. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8053. for ac_dir in $PATH; do
  8054. test -z "$ac_dir" && ac_dir=.
  8055. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8056. acl_cv_path_LD="$ac_dir/$ac_prog"
  8057. # Check to see if the program is GNU ld. I'd rather use --version,
  8058. # but apparently some GNU ld's only accept -v.
  8059. # Break only if it was the GNU/non-GNU ld that we prefer.
  8060. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8061. test "$with_gnu_ld" != no && break
  8062. else
  8063. test "$with_gnu_ld" != yes && break
  8064. fi
  8065. fi
  8066. done
  8067. IFS="$ac_save_ifs"
  8068. else
  8069. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8070. fi
  8071. fi
  8072. LD="$acl_cv_path_LD"
  8073. if test -n "$LD"; then
  8074. { echo "$as_me:$LINENO: result: $LD" >&5
  8075. echo "${ECHO_T}$LD" >&6; }
  8076. else
  8077. { echo "$as_me:$LINENO: result: no" >&5
  8078. echo "${ECHO_T}no" >&6; }
  8079. fi
  8080. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8081. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8082. { (exit 1); exit 1; }; }
  8083. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8084. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8085. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8086. echo $ECHO_N "(cached) $ECHO_C" >&6
  8087. else
  8088. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8089. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8090. acl_cv_prog_gnu_ld=yes
  8091. else
  8092. acl_cv_prog_gnu_ld=no
  8093. fi
  8094. fi
  8095. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8096. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8097. with_gnu_ld=$acl_cv_prog_gnu_ld
  8098. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8099. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8100. if test "${acl_cv_rpath+set}" = set; then
  8101. echo $ECHO_N "(cached) $ECHO_C" >&6
  8102. else
  8103. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8104. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8105. . ./conftest.sh
  8106. rm -f ./conftest.sh
  8107. acl_cv_rpath=done
  8108. fi
  8109. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8110. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8111. wl="$acl_cv_wl"
  8112. libext="$acl_cv_libext"
  8113. shlibext="$acl_cv_shlibext"
  8114. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8115. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8116. hardcode_direct="$acl_cv_hardcode_direct"
  8117. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8118. # Check whether --enable-rpath was given.
  8119. if test "${enable_rpath+set}" = set; then
  8120. enableval=$enable_rpath; :
  8121. else
  8122. enable_rpath=yes
  8123. fi
  8124. use_additional=yes
  8125. acl_save_prefix="$prefix"
  8126. prefix="$acl_final_prefix"
  8127. acl_save_exec_prefix="$exec_prefix"
  8128. exec_prefix="$acl_final_exec_prefix"
  8129. eval additional_includedir=\"$includedir\"
  8130. eval additional_libdir=\"$libdir\"
  8131. exec_prefix="$acl_save_exec_prefix"
  8132. prefix="$acl_save_prefix"
  8133. # Check whether --with-libiconv-prefix was given.
  8134. if test "${with_libiconv_prefix+set}" = set; then
  8135. withval=$with_libiconv_prefix;
  8136. if test "X$withval" = "Xno"; then
  8137. use_additional=no
  8138. else
  8139. if test "X$withval" = "X"; then
  8140. acl_save_prefix="$prefix"
  8141. prefix="$acl_final_prefix"
  8142. acl_save_exec_prefix="$exec_prefix"
  8143. exec_prefix="$acl_final_exec_prefix"
  8144. eval additional_includedir=\"$includedir\"
  8145. eval additional_libdir=\"$libdir\"
  8146. exec_prefix="$acl_save_exec_prefix"
  8147. prefix="$acl_save_prefix"
  8148. else
  8149. additional_includedir="$withval/include"
  8150. additional_libdir="$withval/lib"
  8151. fi
  8152. fi
  8153. fi
  8154. LIBICONV=
  8155. LTLIBICONV=
  8156. INCICONV=
  8157. rpathdirs=
  8158. ltrpathdirs=
  8159. names_already_handled=
  8160. names_next_round='iconv '
  8161. while test -n "$names_next_round"; do
  8162. names_this_round="$names_next_round"
  8163. names_next_round=
  8164. for name in $names_this_round; do
  8165. already_handled=
  8166. for n in $names_already_handled; do
  8167. if test "$n" = "$name"; then
  8168. already_handled=yes
  8169. break
  8170. fi
  8171. done
  8172. if test -z "$already_handled"; then
  8173. names_already_handled="$names_already_handled $name"
  8174. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8175. eval value=\"\$HAVE_LIB$uppername\"
  8176. if test -n "$value"; then
  8177. if test "$value" = yes; then
  8178. eval value=\"\$LIB$uppername\"
  8179. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8180. eval value=\"\$LTLIB$uppername\"
  8181. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8182. else
  8183. :
  8184. fi
  8185. else
  8186. found_dir=
  8187. found_la=
  8188. found_so=
  8189. found_a=
  8190. if test $use_additional = yes; then
  8191. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8192. found_dir="$additional_libdir"
  8193. found_so="$additional_libdir/lib$name.$shlibext"
  8194. if test -f "$additional_libdir/lib$name.la"; then
  8195. found_la="$additional_libdir/lib$name.la"
  8196. fi
  8197. else
  8198. if test -f "$additional_libdir/lib$name.$libext"; then
  8199. found_dir="$additional_libdir"
  8200. found_a="$additional_libdir/lib$name.$libext"
  8201. if test -f "$additional_libdir/lib$name.la"; then
  8202. found_la="$additional_libdir/lib$name.la"
  8203. fi
  8204. fi
  8205. fi
  8206. fi
  8207. if test "X$found_dir" = "X"; then
  8208. for x in $LDFLAGS $LTLIBICONV; do
  8209. acl_save_prefix="$prefix"
  8210. prefix="$acl_final_prefix"
  8211. acl_save_exec_prefix="$exec_prefix"
  8212. exec_prefix="$acl_final_exec_prefix"
  8213. eval x=\"$x\"
  8214. exec_prefix="$acl_save_exec_prefix"
  8215. prefix="$acl_save_prefix"
  8216. case "$x" in
  8217. -L*)
  8218. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8219. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8220. found_dir="$dir"
  8221. found_so="$dir/lib$name.$shlibext"
  8222. if test -f "$dir/lib$name.la"; then
  8223. found_la="$dir/lib$name.la"
  8224. fi
  8225. else
  8226. if test -f "$dir/lib$name.$libext"; then
  8227. found_dir="$dir"
  8228. found_a="$dir/lib$name.$libext"
  8229. if test -f "$dir/lib$name.la"; then
  8230. found_la="$dir/lib$name.la"
  8231. fi
  8232. fi
  8233. fi
  8234. ;;
  8235. esac
  8236. if test "X$found_dir" != "X"; then
  8237. break
  8238. fi
  8239. done
  8240. fi
  8241. if test "X$found_dir" != "X"; then
  8242. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8243. if test "X$found_so" != "X"; then
  8244. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8245. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8246. else
  8247. haveit=
  8248. for x in $ltrpathdirs; do
  8249. if test "X$x" = "X$found_dir"; then
  8250. haveit=yes
  8251. break
  8252. fi
  8253. done
  8254. if test -z "$haveit"; then
  8255. ltrpathdirs="$ltrpathdirs $found_dir"
  8256. fi
  8257. if test "$hardcode_direct" = yes; then
  8258. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8259. else
  8260. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8261. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8262. haveit=
  8263. for x in $rpathdirs; do
  8264. if test "X$x" = "X$found_dir"; then
  8265. haveit=yes
  8266. break
  8267. fi
  8268. done
  8269. if test -z "$haveit"; then
  8270. rpathdirs="$rpathdirs $found_dir"
  8271. fi
  8272. else
  8273. haveit=
  8274. for x in $LDFLAGS $LIBICONV; do
  8275. acl_save_prefix="$prefix"
  8276. prefix="$acl_final_prefix"
  8277. acl_save_exec_prefix="$exec_prefix"
  8278. exec_prefix="$acl_final_exec_prefix"
  8279. eval x=\"$x\"
  8280. exec_prefix="$acl_save_exec_prefix"
  8281. prefix="$acl_save_prefix"
  8282. if test "X$x" = "X-L$found_dir"; then
  8283. haveit=yes
  8284. break
  8285. fi
  8286. done
  8287. if test -z "$haveit"; then
  8288. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8289. fi
  8290. if test "$hardcode_minus_L" != no; then
  8291. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8292. else
  8293. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8294. fi
  8295. fi
  8296. fi
  8297. fi
  8298. else
  8299. if test "X$found_a" != "X"; then
  8300. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8301. else
  8302. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8303. fi
  8304. fi
  8305. additional_includedir=
  8306. case "$found_dir" in
  8307. */lib | */lib/)
  8308. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8309. additional_includedir="$basedir/include"
  8310. ;;
  8311. esac
  8312. if test "X$additional_includedir" != "X"; then
  8313. if test "X$additional_includedir" != "X/usr/include"; then
  8314. haveit=
  8315. if test "X$additional_includedir" = "X/usr/local/include"; then
  8316. if test -n "$GCC"; then
  8317. case $host_os in
  8318. linux*) haveit=yes;;
  8319. esac
  8320. fi
  8321. fi
  8322. if test -z "$haveit"; then
  8323. for x in $CPPFLAGS $INCICONV; do
  8324. acl_save_prefix="$prefix"
  8325. prefix="$acl_final_prefix"
  8326. acl_save_exec_prefix="$exec_prefix"
  8327. exec_prefix="$acl_final_exec_prefix"
  8328. eval x=\"$x\"
  8329. exec_prefix="$acl_save_exec_prefix"
  8330. prefix="$acl_save_prefix"
  8331. if test "X$x" = "X-I$additional_includedir"; then
  8332. haveit=yes
  8333. break
  8334. fi
  8335. done
  8336. if test -z "$haveit"; then
  8337. if test -d "$additional_includedir"; then
  8338. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8339. fi
  8340. fi
  8341. fi
  8342. fi
  8343. fi
  8344. if test -n "$found_la"; then
  8345. save_libdir="$libdir"
  8346. case "$found_la" in
  8347. */* | *\\*) . "$found_la" ;;
  8348. *) . "./$found_la" ;;
  8349. esac
  8350. libdir="$save_libdir"
  8351. for dep in $dependency_libs; do
  8352. case "$dep" in
  8353. -L*)
  8354. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8355. if test "X$additional_libdir" != "X/usr/lib"; then
  8356. haveit=
  8357. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8358. if test -n "$GCC"; then
  8359. case $host_os in
  8360. linux*) haveit=yes;;
  8361. esac
  8362. fi
  8363. fi
  8364. if test -z "$haveit"; then
  8365. haveit=
  8366. for x in $LDFLAGS $LIBICONV; do
  8367. acl_save_prefix="$prefix"
  8368. prefix="$acl_final_prefix"
  8369. acl_save_exec_prefix="$exec_prefix"
  8370. exec_prefix="$acl_final_exec_prefix"
  8371. eval x=\"$x\"
  8372. exec_prefix="$acl_save_exec_prefix"
  8373. prefix="$acl_save_prefix"
  8374. if test "X$x" = "X-L$additional_libdir"; then
  8375. haveit=yes
  8376. break
  8377. fi
  8378. done
  8379. if test -z "$haveit"; then
  8380. if test -d "$additional_libdir"; then
  8381. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8382. fi
  8383. fi
  8384. haveit=
  8385. for x in $LDFLAGS $LTLIBICONV; do
  8386. acl_save_prefix="$prefix"
  8387. prefix="$acl_final_prefix"
  8388. acl_save_exec_prefix="$exec_prefix"
  8389. exec_prefix="$acl_final_exec_prefix"
  8390. eval x=\"$x\"
  8391. exec_prefix="$acl_save_exec_prefix"
  8392. prefix="$acl_save_prefix"
  8393. if test "X$x" = "X-L$additional_libdir"; then
  8394. haveit=yes
  8395. break
  8396. fi
  8397. done
  8398. if test -z "$haveit"; then
  8399. if test -d "$additional_libdir"; then
  8400. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8401. fi
  8402. fi
  8403. fi
  8404. fi
  8405. ;;
  8406. -R*)
  8407. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8408. if test "$enable_rpath" != no; then
  8409. haveit=
  8410. for x in $rpathdirs; do
  8411. if test "X$x" = "X$dir"; then
  8412. haveit=yes
  8413. break
  8414. fi
  8415. done
  8416. if test -z "$haveit"; then
  8417. rpathdirs="$rpathdirs $dir"
  8418. fi
  8419. haveit=
  8420. for x in $ltrpathdirs; do
  8421. if test "X$x" = "X$dir"; then
  8422. haveit=yes
  8423. break
  8424. fi
  8425. done
  8426. if test -z "$haveit"; then
  8427. ltrpathdirs="$ltrpathdirs $dir"
  8428. fi
  8429. fi
  8430. ;;
  8431. -l*)
  8432. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8433. ;;
  8434. *.la)
  8435. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8436. ;;
  8437. *)
  8438. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8439. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8440. ;;
  8441. esac
  8442. done
  8443. fi
  8444. else
  8445. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8446. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8447. fi
  8448. fi
  8449. fi
  8450. done
  8451. done
  8452. if test "X$rpathdirs" != "X"; then
  8453. if test -n "$hardcode_libdir_separator"; then
  8454. alldirs=
  8455. for found_dir in $rpathdirs; do
  8456. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8457. done
  8458. acl_save_libdir="$libdir"
  8459. libdir="$alldirs"
  8460. eval flag=\"$hardcode_libdir_flag_spec\"
  8461. libdir="$acl_save_libdir"
  8462. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8463. else
  8464. for found_dir in $rpathdirs; do
  8465. acl_save_libdir="$libdir"
  8466. libdir="$found_dir"
  8467. eval flag=\"$hardcode_libdir_flag_spec\"
  8468. libdir="$acl_save_libdir"
  8469. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8470. done
  8471. fi
  8472. fi
  8473. if test "X$ltrpathdirs" != "X"; then
  8474. for found_dir in $ltrpathdirs; do
  8475. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8476. done
  8477. fi
  8478. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8479. stdlib.h string.h unistd.h sys/param.h
  8480. do
  8481. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8482. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8483. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8484. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8485. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8486. echo $ECHO_N "(cached) $ECHO_C" >&6
  8487. fi
  8488. ac_res=`eval echo '${'$as_ac_Header'}'`
  8489. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8490. echo "${ECHO_T}$ac_res" >&6; }
  8491. else
  8492. # Is the header compilable?
  8493. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8494. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8495. cat >conftest.$ac_ext <<_ACEOF
  8496. /* confdefs.h. */
  8497. _ACEOF
  8498. cat confdefs.h >>conftest.$ac_ext
  8499. cat >>conftest.$ac_ext <<_ACEOF
  8500. /* end confdefs.h. */
  8501. $ac_includes_default
  8502. #include <$ac_header>
  8503. _ACEOF
  8504. rm -f conftest.$ac_objext
  8505. if { (ac_try="$ac_compile"
  8506. case "(($ac_try" in
  8507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8508. *) ac_try_echo=$ac_try;;
  8509. esac
  8510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8511. (eval "$ac_compile") 2>conftest.er1
  8512. ac_status=$?
  8513. grep -v '^ *+' conftest.er1 >conftest.err
  8514. rm -f conftest.er1
  8515. cat conftest.err >&5
  8516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8517. (exit $ac_status); } && {
  8518. test -z "$ac_c_werror_flag" ||
  8519. test ! -s conftest.err
  8520. } && test -s conftest.$ac_objext; then
  8521. ac_header_compiler=yes
  8522. else
  8523. echo "$as_me: failed program was:" >&5
  8524. sed 's/^/| /' conftest.$ac_ext >&5
  8525. ac_header_compiler=no
  8526. fi
  8527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8528. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8529. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8530. # Is the header present?
  8531. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8532. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8533. cat >conftest.$ac_ext <<_ACEOF
  8534. /* confdefs.h. */
  8535. _ACEOF
  8536. cat confdefs.h >>conftest.$ac_ext
  8537. cat >>conftest.$ac_ext <<_ACEOF
  8538. /* end confdefs.h. */
  8539. #include <$ac_header>
  8540. _ACEOF
  8541. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8542. case "(($ac_try" in
  8543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8544. *) ac_try_echo=$ac_try;;
  8545. esac
  8546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8547. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8548. ac_status=$?
  8549. grep -v '^ *+' conftest.er1 >conftest.err
  8550. rm -f conftest.er1
  8551. cat conftest.err >&5
  8552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8553. (exit $ac_status); } >/dev/null && {
  8554. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8555. test ! -s conftest.err
  8556. }; then
  8557. ac_header_preproc=yes
  8558. else
  8559. echo "$as_me: failed program was:" >&5
  8560. sed 's/^/| /' conftest.$ac_ext >&5
  8561. ac_header_preproc=no
  8562. fi
  8563. rm -f conftest.err conftest.$ac_ext
  8564. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8565. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8566. # So? What about this header?
  8567. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8568. yes:no: )
  8569. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8570. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8571. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8572. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8573. ac_header_preproc=yes
  8574. ;;
  8575. no:yes:* )
  8576. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8577. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8578. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8579. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8580. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8581. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8582. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8583. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8584. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8585. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8586. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8587. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8588. ( cat <<\_ASBOX
  8589. ## ----------------------------------------------- ##
  8590. ## Report this to t-tujikawa@users.sourceforge.net ##
  8591. ## ----------------------------------------------- ##
  8592. _ASBOX
  8593. ) | sed "s/^/$as_me: WARNING: /" >&2
  8594. ;;
  8595. esac
  8596. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8597. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8598. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8599. echo $ECHO_N "(cached) $ECHO_C" >&6
  8600. else
  8601. eval "$as_ac_Header=\$ac_header_preproc"
  8602. fi
  8603. ac_res=`eval echo '${'$as_ac_Header'}'`
  8604. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8605. echo "${ECHO_T}$ac_res" >&6; }
  8606. fi
  8607. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8608. cat >>confdefs.h <<_ACEOF
  8609. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8610. _ACEOF
  8611. fi
  8612. done
  8613. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8614. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8615. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8616. __fsetlocking
  8617. do
  8618. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8619. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8620. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8621. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8622. echo $ECHO_N "(cached) $ECHO_C" >&6
  8623. else
  8624. cat >conftest.$ac_ext <<_ACEOF
  8625. /* confdefs.h. */
  8626. _ACEOF
  8627. cat confdefs.h >>conftest.$ac_ext
  8628. cat >>conftest.$ac_ext <<_ACEOF
  8629. /* end confdefs.h. */
  8630. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8631. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8632. #define $ac_func innocuous_$ac_func
  8633. /* System header to define __stub macros and hopefully few prototypes,
  8634. which can conflict with char $ac_func (); below.
  8635. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8636. <limits.h> exists even on freestanding compilers. */
  8637. #ifdef __STDC__
  8638. # include <limits.h>
  8639. #else
  8640. # include <assert.h>
  8641. #endif
  8642. #undef $ac_func
  8643. /* Override any GCC internal prototype to avoid an error.
  8644. Use char because int might match the return type of a GCC
  8645. builtin and then its argument prototype would still apply. */
  8646. #ifdef __cplusplus
  8647. extern "C"
  8648. #endif
  8649. char $ac_func ();
  8650. /* The GNU C library defines this for functions which it implements
  8651. to always fail with ENOSYS. Some functions are actually named
  8652. something starting with __ and the normal name is an alias. */
  8653. #if defined __stub_$ac_func || defined __stub___$ac_func
  8654. choke me
  8655. #endif
  8656. int
  8657. main ()
  8658. {
  8659. return $ac_func ();
  8660. ;
  8661. return 0;
  8662. }
  8663. _ACEOF
  8664. rm -f conftest.$ac_objext conftest$ac_exeext
  8665. if { (ac_try="$ac_link"
  8666. case "(($ac_try" in
  8667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8668. *) ac_try_echo=$ac_try;;
  8669. esac
  8670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8671. (eval "$ac_link") 2>conftest.er1
  8672. ac_status=$?
  8673. grep -v '^ *+' conftest.er1 >conftest.err
  8674. rm -f conftest.er1
  8675. cat conftest.err >&5
  8676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8677. (exit $ac_status); } && {
  8678. test -z "$ac_c_werror_flag" ||
  8679. test ! -s conftest.err
  8680. } && test -s conftest$ac_exeext &&
  8681. $as_test_x conftest$ac_exeext; then
  8682. eval "$as_ac_var=yes"
  8683. else
  8684. echo "$as_me: failed program was:" >&5
  8685. sed 's/^/| /' conftest.$ac_ext >&5
  8686. eval "$as_ac_var=no"
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. fi
  8691. ac_res=`eval echo '${'$as_ac_var'}'`
  8692. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8693. echo "${ECHO_T}$ac_res" >&6; }
  8694. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8695. cat >>confdefs.h <<_ACEOF
  8696. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8697. _ACEOF
  8698. fi
  8699. done
  8700. am_save_CPPFLAGS="$CPPFLAGS"
  8701. for element in $INCICONV; do
  8702. haveit=
  8703. for x in $CPPFLAGS; do
  8704. acl_save_prefix="$prefix"
  8705. prefix="$acl_final_prefix"
  8706. acl_save_exec_prefix="$exec_prefix"
  8707. exec_prefix="$acl_final_exec_prefix"
  8708. eval x=\"$x\"
  8709. exec_prefix="$acl_save_exec_prefix"
  8710. prefix="$acl_save_prefix"
  8711. if test "X$x" = "X$element"; then
  8712. haveit=yes
  8713. break
  8714. fi
  8715. done
  8716. if test -z "$haveit"; then
  8717. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8718. fi
  8719. done
  8720. { echo "$as_me:$LINENO: checking for iconv" >&5
  8721. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8722. if test "${am_cv_func_iconv+set}" = set; then
  8723. echo $ECHO_N "(cached) $ECHO_C" >&6
  8724. else
  8725. am_cv_func_iconv="no, consider installing GNU libiconv"
  8726. am_cv_lib_iconv=no
  8727. cat >conftest.$ac_ext <<_ACEOF
  8728. /* confdefs.h. */
  8729. _ACEOF
  8730. cat confdefs.h >>conftest.$ac_ext
  8731. cat >>conftest.$ac_ext <<_ACEOF
  8732. /* end confdefs.h. */
  8733. #include <stdlib.h>
  8734. #include <iconv.h>
  8735. int
  8736. main ()
  8737. {
  8738. iconv_t cd = iconv_open("","");
  8739. iconv(cd,NULL,NULL,NULL,NULL);
  8740. iconv_close(cd);
  8741. ;
  8742. return 0;
  8743. }
  8744. _ACEOF
  8745. rm -f conftest.$ac_objext conftest$ac_exeext
  8746. if { (ac_try="$ac_link"
  8747. case "(($ac_try" in
  8748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8749. *) ac_try_echo=$ac_try;;
  8750. esac
  8751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8752. (eval "$ac_link") 2>conftest.er1
  8753. ac_status=$?
  8754. grep -v '^ *+' conftest.er1 >conftest.err
  8755. rm -f conftest.er1
  8756. cat conftest.err >&5
  8757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8758. (exit $ac_status); } && {
  8759. test -z "$ac_c_werror_flag" ||
  8760. test ! -s conftest.err
  8761. } && test -s conftest$ac_exeext &&
  8762. $as_test_x conftest$ac_exeext; then
  8763. am_cv_func_iconv=yes
  8764. else
  8765. echo "$as_me: failed program was:" >&5
  8766. sed 's/^/| /' conftest.$ac_ext >&5
  8767. fi
  8768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8769. conftest$ac_exeext conftest.$ac_ext
  8770. if test "$am_cv_func_iconv" != yes; then
  8771. am_save_LIBS="$LIBS"
  8772. LIBS="$LIBS $LIBICONV"
  8773. cat >conftest.$ac_ext <<_ACEOF
  8774. /* confdefs.h. */
  8775. _ACEOF
  8776. cat confdefs.h >>conftest.$ac_ext
  8777. cat >>conftest.$ac_ext <<_ACEOF
  8778. /* end confdefs.h. */
  8779. #include <stdlib.h>
  8780. #include <iconv.h>
  8781. int
  8782. main ()
  8783. {
  8784. iconv_t cd = iconv_open("","");
  8785. iconv(cd,NULL,NULL,NULL,NULL);
  8786. iconv_close(cd);
  8787. ;
  8788. return 0;
  8789. }
  8790. _ACEOF
  8791. rm -f conftest.$ac_objext conftest$ac_exeext
  8792. if { (ac_try="$ac_link"
  8793. case "(($ac_try" in
  8794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8795. *) ac_try_echo=$ac_try;;
  8796. esac
  8797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8798. (eval "$ac_link") 2>conftest.er1
  8799. ac_status=$?
  8800. grep -v '^ *+' conftest.er1 >conftest.err
  8801. rm -f conftest.er1
  8802. cat conftest.err >&5
  8803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8804. (exit $ac_status); } && {
  8805. test -z "$ac_c_werror_flag" ||
  8806. test ! -s conftest.err
  8807. } && test -s conftest$ac_exeext &&
  8808. $as_test_x conftest$ac_exeext; then
  8809. am_cv_lib_iconv=yes
  8810. am_cv_func_iconv=yes
  8811. else
  8812. echo "$as_me: failed program was:" >&5
  8813. sed 's/^/| /' conftest.$ac_ext >&5
  8814. fi
  8815. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8816. conftest$ac_exeext conftest.$ac_ext
  8817. LIBS="$am_save_LIBS"
  8818. fi
  8819. fi
  8820. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8821. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8822. if test "$am_cv_func_iconv" = yes; then
  8823. cat >>confdefs.h <<\_ACEOF
  8824. #define HAVE_ICONV 1
  8825. _ACEOF
  8826. fi
  8827. if test "$am_cv_lib_iconv" = yes; then
  8828. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8829. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8830. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8831. echo "${ECHO_T}$LIBICONV" >&6; }
  8832. else
  8833. CPPFLAGS="$am_save_CPPFLAGS"
  8834. LIBICONV=
  8835. LTLIBICONV=
  8836. fi
  8837. if test "$am_cv_func_iconv" = yes; then
  8838. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8839. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8840. if test "${am_cv_proto_iconv+set}" = set; then
  8841. echo $ECHO_N "(cached) $ECHO_C" >&6
  8842. else
  8843. cat >conftest.$ac_ext <<_ACEOF
  8844. /* confdefs.h. */
  8845. _ACEOF
  8846. cat confdefs.h >>conftest.$ac_ext
  8847. cat >>conftest.$ac_ext <<_ACEOF
  8848. /* end confdefs.h. */
  8849. #include <stdlib.h>
  8850. #include <iconv.h>
  8851. extern
  8852. #ifdef __cplusplus
  8853. "C"
  8854. #endif
  8855. #if defined(__STDC__) || defined(__cplusplus)
  8856. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8857. #else
  8858. size_t iconv();
  8859. #endif
  8860. int
  8861. main ()
  8862. {
  8863. ;
  8864. return 0;
  8865. }
  8866. _ACEOF
  8867. rm -f conftest.$ac_objext
  8868. if { (ac_try="$ac_compile"
  8869. case "(($ac_try" in
  8870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8871. *) ac_try_echo=$ac_try;;
  8872. esac
  8873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8874. (eval "$ac_compile") 2>conftest.er1
  8875. ac_status=$?
  8876. grep -v '^ *+' conftest.er1 >conftest.err
  8877. rm -f conftest.er1
  8878. cat conftest.err >&5
  8879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8880. (exit $ac_status); } && {
  8881. test -z "$ac_c_werror_flag" ||
  8882. test ! -s conftest.err
  8883. } && test -s conftest.$ac_objext; then
  8884. am_cv_proto_iconv_arg1=""
  8885. else
  8886. echo "$as_me: failed program was:" >&5
  8887. sed 's/^/| /' conftest.$ac_ext >&5
  8888. am_cv_proto_iconv_arg1="const"
  8889. fi
  8890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8891. 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);"
  8892. fi
  8893. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8894. { echo "$as_me:$LINENO: result: ${ac_t:-
  8895. }$am_cv_proto_iconv" >&5
  8896. echo "${ECHO_T}${ac_t:-
  8897. }$am_cv_proto_iconv" >&6; }
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8900. _ACEOF
  8901. fi
  8902. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8903. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8904. if test "${am_cv_langinfo_codeset+set}" = set; then
  8905. echo $ECHO_N "(cached) $ECHO_C" >&6
  8906. else
  8907. cat >conftest.$ac_ext <<_ACEOF
  8908. /* confdefs.h. */
  8909. _ACEOF
  8910. cat confdefs.h >>conftest.$ac_ext
  8911. cat >>conftest.$ac_ext <<_ACEOF
  8912. /* end confdefs.h. */
  8913. #include <langinfo.h>
  8914. int
  8915. main ()
  8916. {
  8917. char* cs = nl_langinfo(CODESET);
  8918. ;
  8919. return 0;
  8920. }
  8921. _ACEOF
  8922. rm -f conftest.$ac_objext conftest$ac_exeext
  8923. if { (ac_try="$ac_link"
  8924. case "(($ac_try" in
  8925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8926. *) ac_try_echo=$ac_try;;
  8927. esac
  8928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8929. (eval "$ac_link") 2>conftest.er1
  8930. ac_status=$?
  8931. grep -v '^ *+' conftest.er1 >conftest.err
  8932. rm -f conftest.er1
  8933. cat conftest.err >&5
  8934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8935. (exit $ac_status); } && {
  8936. test -z "$ac_c_werror_flag" ||
  8937. test ! -s conftest.err
  8938. } && test -s conftest$ac_exeext &&
  8939. $as_test_x conftest$ac_exeext; then
  8940. am_cv_langinfo_codeset=yes
  8941. else
  8942. echo "$as_me: failed program was:" >&5
  8943. sed 's/^/| /' conftest.$ac_ext >&5
  8944. am_cv_langinfo_codeset=no
  8945. fi
  8946. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8947. conftest$ac_exeext conftest.$ac_ext
  8948. fi
  8949. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8950. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8951. if test $am_cv_langinfo_codeset = yes; then
  8952. cat >>confdefs.h <<\_ACEOF
  8953. #define HAVE_LANGINFO_CODESET 1
  8954. _ACEOF
  8955. fi
  8956. if test $ac_cv_header_locale_h = yes; then
  8957. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8958. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8959. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8960. echo $ECHO_N "(cached) $ECHO_C" >&6
  8961. else
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. #include <locale.h>
  8969. int
  8970. main ()
  8971. {
  8972. return LC_MESSAGES
  8973. ;
  8974. return 0;
  8975. }
  8976. _ACEOF
  8977. rm -f conftest.$ac_objext conftest$ac_exeext
  8978. if { (ac_try="$ac_link"
  8979. case "(($ac_try" in
  8980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8981. *) ac_try_echo=$ac_try;;
  8982. esac
  8983. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8984. (eval "$ac_link") 2>conftest.er1
  8985. ac_status=$?
  8986. grep -v '^ *+' conftest.er1 >conftest.err
  8987. rm -f conftest.er1
  8988. cat conftest.err >&5
  8989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990. (exit $ac_status); } && {
  8991. test -z "$ac_c_werror_flag" ||
  8992. test ! -s conftest.err
  8993. } && test -s conftest$ac_exeext &&
  8994. $as_test_x conftest$ac_exeext; then
  8995. am_cv_val_LC_MESSAGES=yes
  8996. else
  8997. echo "$as_me: failed program was:" >&5
  8998. sed 's/^/| /' conftest.$ac_ext >&5
  8999. am_cv_val_LC_MESSAGES=no
  9000. fi
  9001. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9002. conftest$ac_exeext conftest.$ac_ext
  9003. fi
  9004. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9005. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9006. if test $am_cv_val_LC_MESSAGES = yes; then
  9007. cat >>confdefs.h <<\_ACEOF
  9008. #define HAVE_LC_MESSAGES 1
  9009. _ACEOF
  9010. fi
  9011. fi
  9012. for ac_prog in bison
  9013. do
  9014. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9015. set dummy $ac_prog; ac_word=$2
  9016. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9017. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9018. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9019. echo $ECHO_N "(cached) $ECHO_C" >&6
  9020. else
  9021. if test -n "$INTLBISON"; then
  9022. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9023. else
  9024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9025. for as_dir in $PATH
  9026. do
  9027. IFS=$as_save_IFS
  9028. test -z "$as_dir" && as_dir=.
  9029. for ac_exec_ext in '' $ac_executable_extensions; do
  9030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9031. ac_cv_prog_INTLBISON="$ac_prog"
  9032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9033. break 2
  9034. fi
  9035. done
  9036. done
  9037. IFS=$as_save_IFS
  9038. fi
  9039. fi
  9040. INTLBISON=$ac_cv_prog_INTLBISON
  9041. if test -n "$INTLBISON"; then
  9042. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9043. echo "${ECHO_T}$INTLBISON" >&6; }
  9044. else
  9045. { echo "$as_me:$LINENO: result: no" >&5
  9046. echo "${ECHO_T}no" >&6; }
  9047. fi
  9048. test -n "$INTLBISON" && break
  9049. done
  9050. if test -z "$INTLBISON"; then
  9051. ac_verc_fail=yes
  9052. else
  9053. { echo "$as_me:$LINENO: checking version of bison" >&5
  9054. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  9055. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9056. case $ac_prog_version in
  9057. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9058. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9059. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9060. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9061. esac
  9062. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9063. echo "${ECHO_T}$ac_prog_version" >&6; }
  9064. fi
  9065. if test $ac_verc_fail = yes; then
  9066. INTLBISON=:
  9067. fi
  9068. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9069. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9070. # Check whether --enable-nls was given.
  9071. if test "${enable_nls+set}" = set; then
  9072. enableval=$enable_nls; USE_NLS=$enableval
  9073. else
  9074. USE_NLS=yes
  9075. fi
  9076. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9077. echo "${ECHO_T}$USE_NLS" >&6; }
  9078. BUILD_INCLUDED_LIBINTL=no
  9079. USE_INCLUDED_LIBINTL=no
  9080. LIBINTL=
  9081. LTLIBINTL=
  9082. POSUB=
  9083. if test "$USE_NLS" = "yes"; then
  9084. gt_use_preinstalled_gnugettext=no
  9085. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9086. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  9087. # Check whether --with-included-gettext was given.
  9088. if test "${with_included_gettext+set}" = set; then
  9089. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  9090. else
  9091. nls_cv_force_use_gnu_gettext=no
  9092. fi
  9093. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9094. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  9095. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9096. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9097. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9098. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  9099. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9100. echo $ECHO_N "(cached) $ECHO_C" >&6
  9101. else
  9102. cat >conftest.$ac_ext <<_ACEOF
  9103. /* confdefs.h. */
  9104. _ACEOF
  9105. cat confdefs.h >>conftest.$ac_ext
  9106. cat >>conftest.$ac_ext <<_ACEOF
  9107. /* end confdefs.h. */
  9108. #include <libintl.h>
  9109. extern int _nl_msg_cat_cntr;
  9110. extern int *_nl_domain_bindings;
  9111. int
  9112. main ()
  9113. {
  9114. bindtextdomain ("", "");
  9115. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9116. ;
  9117. return 0;
  9118. }
  9119. _ACEOF
  9120. rm -f conftest.$ac_objext conftest$ac_exeext
  9121. if { (ac_try="$ac_link"
  9122. case "(($ac_try" in
  9123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9124. *) ac_try_echo=$ac_try;;
  9125. esac
  9126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9127. (eval "$ac_link") 2>conftest.er1
  9128. ac_status=$?
  9129. grep -v '^ *+' conftest.er1 >conftest.err
  9130. rm -f conftest.er1
  9131. cat conftest.err >&5
  9132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9133. (exit $ac_status); } && {
  9134. test -z "$ac_c_werror_flag" ||
  9135. test ! -s conftest.err
  9136. } && test -s conftest$ac_exeext &&
  9137. $as_test_x conftest$ac_exeext; then
  9138. gt_cv_func_gnugettext1_libc=yes
  9139. else
  9140. echo "$as_me: failed program was:" >&5
  9141. sed 's/^/| /' conftest.$ac_ext >&5
  9142. gt_cv_func_gnugettext1_libc=no
  9143. fi
  9144. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9145. conftest$ac_exeext conftest.$ac_ext
  9146. fi
  9147. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9148. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  9149. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9150. use_additional=yes
  9151. acl_save_prefix="$prefix"
  9152. prefix="$acl_final_prefix"
  9153. acl_save_exec_prefix="$exec_prefix"
  9154. exec_prefix="$acl_final_exec_prefix"
  9155. eval additional_includedir=\"$includedir\"
  9156. eval additional_libdir=\"$libdir\"
  9157. exec_prefix="$acl_save_exec_prefix"
  9158. prefix="$acl_save_prefix"
  9159. # Check whether --with-libintl-prefix was given.
  9160. if test "${with_libintl_prefix+set}" = set; then
  9161. withval=$with_libintl_prefix;
  9162. if test "X$withval" = "Xno"; then
  9163. use_additional=no
  9164. else
  9165. if test "X$withval" = "X"; then
  9166. acl_save_prefix="$prefix"
  9167. prefix="$acl_final_prefix"
  9168. acl_save_exec_prefix="$exec_prefix"
  9169. exec_prefix="$acl_final_exec_prefix"
  9170. eval additional_includedir=\"$includedir\"
  9171. eval additional_libdir=\"$libdir\"
  9172. exec_prefix="$acl_save_exec_prefix"
  9173. prefix="$acl_save_prefix"
  9174. else
  9175. additional_includedir="$withval/include"
  9176. additional_libdir="$withval/lib"
  9177. fi
  9178. fi
  9179. fi
  9180. LIBINTL=
  9181. LTLIBINTL=
  9182. INCINTL=
  9183. rpathdirs=
  9184. ltrpathdirs=
  9185. names_already_handled=
  9186. names_next_round='intl '
  9187. while test -n "$names_next_round"; do
  9188. names_this_round="$names_next_round"
  9189. names_next_round=
  9190. for name in $names_this_round; do
  9191. already_handled=
  9192. for n in $names_already_handled; do
  9193. if test "$n" = "$name"; then
  9194. already_handled=yes
  9195. break
  9196. fi
  9197. done
  9198. if test -z "$already_handled"; then
  9199. names_already_handled="$names_already_handled $name"
  9200. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9201. eval value=\"\$HAVE_LIB$uppername\"
  9202. if test -n "$value"; then
  9203. if test "$value" = yes; then
  9204. eval value=\"\$LIB$uppername\"
  9205. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9206. eval value=\"\$LTLIB$uppername\"
  9207. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9208. else
  9209. :
  9210. fi
  9211. else
  9212. found_dir=
  9213. found_la=
  9214. found_so=
  9215. found_a=
  9216. if test $use_additional = yes; then
  9217. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9218. found_dir="$additional_libdir"
  9219. found_so="$additional_libdir/lib$name.$shlibext"
  9220. if test -f "$additional_libdir/lib$name.la"; then
  9221. found_la="$additional_libdir/lib$name.la"
  9222. fi
  9223. else
  9224. if test -f "$additional_libdir/lib$name.$libext"; then
  9225. found_dir="$additional_libdir"
  9226. found_a="$additional_libdir/lib$name.$libext"
  9227. if test -f "$additional_libdir/lib$name.la"; then
  9228. found_la="$additional_libdir/lib$name.la"
  9229. fi
  9230. fi
  9231. fi
  9232. fi
  9233. if test "X$found_dir" = "X"; then
  9234. for x in $LDFLAGS $LTLIBINTL; do
  9235. acl_save_prefix="$prefix"
  9236. prefix="$acl_final_prefix"
  9237. acl_save_exec_prefix="$exec_prefix"
  9238. exec_prefix="$acl_final_exec_prefix"
  9239. eval x=\"$x\"
  9240. exec_prefix="$acl_save_exec_prefix"
  9241. prefix="$acl_save_prefix"
  9242. case "$x" in
  9243. -L*)
  9244. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9245. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9246. found_dir="$dir"
  9247. found_so="$dir/lib$name.$shlibext"
  9248. if test -f "$dir/lib$name.la"; then
  9249. found_la="$dir/lib$name.la"
  9250. fi
  9251. else
  9252. if test -f "$dir/lib$name.$libext"; then
  9253. found_dir="$dir"
  9254. found_a="$dir/lib$name.$libext"
  9255. if test -f "$dir/lib$name.la"; then
  9256. found_la="$dir/lib$name.la"
  9257. fi
  9258. fi
  9259. fi
  9260. ;;
  9261. esac
  9262. if test "X$found_dir" != "X"; then
  9263. break
  9264. fi
  9265. done
  9266. fi
  9267. if test "X$found_dir" != "X"; then
  9268. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9269. if test "X$found_so" != "X"; then
  9270. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9271. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9272. else
  9273. haveit=
  9274. for x in $ltrpathdirs; do
  9275. if test "X$x" = "X$found_dir"; then
  9276. haveit=yes
  9277. break
  9278. fi
  9279. done
  9280. if test -z "$haveit"; then
  9281. ltrpathdirs="$ltrpathdirs $found_dir"
  9282. fi
  9283. if test "$hardcode_direct" = yes; then
  9284. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9285. else
  9286. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9287. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9288. haveit=
  9289. for x in $rpathdirs; do
  9290. if test "X$x" = "X$found_dir"; then
  9291. haveit=yes
  9292. break
  9293. fi
  9294. done
  9295. if test -z "$haveit"; then
  9296. rpathdirs="$rpathdirs $found_dir"
  9297. fi
  9298. else
  9299. haveit=
  9300. for x in $LDFLAGS $LIBINTL; do
  9301. acl_save_prefix="$prefix"
  9302. prefix="$acl_final_prefix"
  9303. acl_save_exec_prefix="$exec_prefix"
  9304. exec_prefix="$acl_final_exec_prefix"
  9305. eval x=\"$x\"
  9306. exec_prefix="$acl_save_exec_prefix"
  9307. prefix="$acl_save_prefix"
  9308. if test "X$x" = "X-L$found_dir"; then
  9309. haveit=yes
  9310. break
  9311. fi
  9312. done
  9313. if test -z "$haveit"; then
  9314. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9315. fi
  9316. if test "$hardcode_minus_L" != no; then
  9317. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9318. else
  9319. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9320. fi
  9321. fi
  9322. fi
  9323. fi
  9324. else
  9325. if test "X$found_a" != "X"; then
  9326. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9327. else
  9328. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9329. fi
  9330. fi
  9331. additional_includedir=
  9332. case "$found_dir" in
  9333. */lib | */lib/)
  9334. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9335. additional_includedir="$basedir/include"
  9336. ;;
  9337. esac
  9338. if test "X$additional_includedir" != "X"; then
  9339. if test "X$additional_includedir" != "X/usr/include"; then
  9340. haveit=
  9341. if test "X$additional_includedir" = "X/usr/local/include"; then
  9342. if test -n "$GCC"; then
  9343. case $host_os in
  9344. linux*) haveit=yes;;
  9345. esac
  9346. fi
  9347. fi
  9348. if test -z "$haveit"; then
  9349. for x in $CPPFLAGS $INCINTL; do
  9350. acl_save_prefix="$prefix"
  9351. prefix="$acl_final_prefix"
  9352. acl_save_exec_prefix="$exec_prefix"
  9353. exec_prefix="$acl_final_exec_prefix"
  9354. eval x=\"$x\"
  9355. exec_prefix="$acl_save_exec_prefix"
  9356. prefix="$acl_save_prefix"
  9357. if test "X$x" = "X-I$additional_includedir"; then
  9358. haveit=yes
  9359. break
  9360. fi
  9361. done
  9362. if test -z "$haveit"; then
  9363. if test -d "$additional_includedir"; then
  9364. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9365. fi
  9366. fi
  9367. fi
  9368. fi
  9369. fi
  9370. if test -n "$found_la"; then
  9371. save_libdir="$libdir"
  9372. case "$found_la" in
  9373. */* | *\\*) . "$found_la" ;;
  9374. *) . "./$found_la" ;;
  9375. esac
  9376. libdir="$save_libdir"
  9377. for dep in $dependency_libs; do
  9378. case "$dep" in
  9379. -L*)
  9380. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9381. if test "X$additional_libdir" != "X/usr/lib"; then
  9382. haveit=
  9383. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9384. if test -n "$GCC"; then
  9385. case $host_os in
  9386. linux*) haveit=yes;;
  9387. esac
  9388. fi
  9389. fi
  9390. if test -z "$haveit"; then
  9391. haveit=
  9392. for x in $LDFLAGS $LIBINTL; do
  9393. acl_save_prefix="$prefix"
  9394. prefix="$acl_final_prefix"
  9395. acl_save_exec_prefix="$exec_prefix"
  9396. exec_prefix="$acl_final_exec_prefix"
  9397. eval x=\"$x\"
  9398. exec_prefix="$acl_save_exec_prefix"
  9399. prefix="$acl_save_prefix"
  9400. if test "X$x" = "X-L$additional_libdir"; then
  9401. haveit=yes
  9402. break
  9403. fi
  9404. done
  9405. if test -z "$haveit"; then
  9406. if test -d "$additional_libdir"; then
  9407. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9408. fi
  9409. fi
  9410. haveit=
  9411. for x in $LDFLAGS $LTLIBINTL; do
  9412. acl_save_prefix="$prefix"
  9413. prefix="$acl_final_prefix"
  9414. acl_save_exec_prefix="$exec_prefix"
  9415. exec_prefix="$acl_final_exec_prefix"
  9416. eval x=\"$x\"
  9417. exec_prefix="$acl_save_exec_prefix"
  9418. prefix="$acl_save_prefix"
  9419. if test "X$x" = "X-L$additional_libdir"; then
  9420. haveit=yes
  9421. break
  9422. fi
  9423. done
  9424. if test -z "$haveit"; then
  9425. if test -d "$additional_libdir"; then
  9426. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9427. fi
  9428. fi
  9429. fi
  9430. fi
  9431. ;;
  9432. -R*)
  9433. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9434. if test "$enable_rpath" != no; then
  9435. haveit=
  9436. for x in $rpathdirs; do
  9437. if test "X$x" = "X$dir"; then
  9438. haveit=yes
  9439. break
  9440. fi
  9441. done
  9442. if test -z "$haveit"; then
  9443. rpathdirs="$rpathdirs $dir"
  9444. fi
  9445. haveit=
  9446. for x in $ltrpathdirs; do
  9447. if test "X$x" = "X$dir"; then
  9448. haveit=yes
  9449. break
  9450. fi
  9451. done
  9452. if test -z "$haveit"; then
  9453. ltrpathdirs="$ltrpathdirs $dir"
  9454. fi
  9455. fi
  9456. ;;
  9457. -l*)
  9458. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9459. ;;
  9460. *.la)
  9461. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9462. ;;
  9463. *)
  9464. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9465. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9466. ;;
  9467. esac
  9468. done
  9469. fi
  9470. else
  9471. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9472. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9473. fi
  9474. fi
  9475. fi
  9476. done
  9477. done
  9478. if test "X$rpathdirs" != "X"; then
  9479. if test -n "$hardcode_libdir_separator"; then
  9480. alldirs=
  9481. for found_dir in $rpathdirs; do
  9482. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9483. done
  9484. acl_save_libdir="$libdir"
  9485. libdir="$alldirs"
  9486. eval flag=\"$hardcode_libdir_flag_spec\"
  9487. libdir="$acl_save_libdir"
  9488. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9489. else
  9490. for found_dir in $rpathdirs; do
  9491. acl_save_libdir="$libdir"
  9492. libdir="$found_dir"
  9493. eval flag=\"$hardcode_libdir_flag_spec\"
  9494. libdir="$acl_save_libdir"
  9495. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9496. done
  9497. fi
  9498. fi
  9499. if test "X$ltrpathdirs" != "X"; then
  9500. for found_dir in $ltrpathdirs; do
  9501. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9502. done
  9503. fi
  9504. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9505. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9506. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9507. echo $ECHO_N "(cached) $ECHO_C" >&6
  9508. else
  9509. gt_save_CPPFLAGS="$CPPFLAGS"
  9510. CPPFLAGS="$CPPFLAGS $INCINTL"
  9511. gt_save_LIBS="$LIBS"
  9512. LIBS="$LIBS $LIBINTL"
  9513. cat >conftest.$ac_ext <<_ACEOF
  9514. /* confdefs.h. */
  9515. _ACEOF
  9516. cat confdefs.h >>conftest.$ac_ext
  9517. cat >>conftest.$ac_ext <<_ACEOF
  9518. /* end confdefs.h. */
  9519. #include <libintl.h>
  9520. extern int _nl_msg_cat_cntr;
  9521. extern
  9522. #ifdef __cplusplus
  9523. "C"
  9524. #endif
  9525. const char *_nl_expand_alias ();
  9526. int
  9527. main ()
  9528. {
  9529. bindtextdomain ("", "");
  9530. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9531. ;
  9532. return 0;
  9533. }
  9534. _ACEOF
  9535. rm -f conftest.$ac_objext conftest$ac_exeext
  9536. if { (ac_try="$ac_link"
  9537. case "(($ac_try" in
  9538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9539. *) ac_try_echo=$ac_try;;
  9540. esac
  9541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9542. (eval "$ac_link") 2>conftest.er1
  9543. ac_status=$?
  9544. grep -v '^ *+' conftest.er1 >conftest.err
  9545. rm -f conftest.er1
  9546. cat conftest.err >&5
  9547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9548. (exit $ac_status); } && {
  9549. test -z "$ac_c_werror_flag" ||
  9550. test ! -s conftest.err
  9551. } && test -s conftest$ac_exeext &&
  9552. $as_test_x conftest$ac_exeext; then
  9553. gt_cv_func_gnugettext1_libintl=yes
  9554. else
  9555. echo "$as_me: failed program was:" >&5
  9556. sed 's/^/| /' conftest.$ac_ext >&5
  9557. gt_cv_func_gnugettext1_libintl=no
  9558. fi
  9559. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9560. conftest$ac_exeext conftest.$ac_ext
  9561. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9562. LIBS="$LIBS $LIBICONV"
  9563. cat >conftest.$ac_ext <<_ACEOF
  9564. /* confdefs.h. */
  9565. _ACEOF
  9566. cat confdefs.h >>conftest.$ac_ext
  9567. cat >>conftest.$ac_ext <<_ACEOF
  9568. /* end confdefs.h. */
  9569. #include <libintl.h>
  9570. extern int _nl_msg_cat_cntr;
  9571. extern
  9572. #ifdef __cplusplus
  9573. "C"
  9574. #endif
  9575. const char *_nl_expand_alias ();
  9576. int
  9577. main ()
  9578. {
  9579. bindtextdomain ("", "");
  9580. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9581. ;
  9582. return 0;
  9583. }
  9584. _ACEOF
  9585. rm -f conftest.$ac_objext conftest$ac_exeext
  9586. if { (ac_try="$ac_link"
  9587. case "(($ac_try" in
  9588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9589. *) ac_try_echo=$ac_try;;
  9590. esac
  9591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9592. (eval "$ac_link") 2>conftest.er1
  9593. ac_status=$?
  9594. grep -v '^ *+' conftest.er1 >conftest.err
  9595. rm -f conftest.er1
  9596. cat conftest.err >&5
  9597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9598. (exit $ac_status); } && {
  9599. test -z "$ac_c_werror_flag" ||
  9600. test ! -s conftest.err
  9601. } && test -s conftest$ac_exeext &&
  9602. $as_test_x conftest$ac_exeext; then
  9603. LIBINTL="$LIBINTL $LIBICONV"
  9604. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9605. gt_cv_func_gnugettext1_libintl=yes
  9606. else
  9607. echo "$as_me: failed program was:" >&5
  9608. sed 's/^/| /' conftest.$ac_ext >&5
  9609. fi
  9610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9611. conftest$ac_exeext conftest.$ac_ext
  9612. fi
  9613. CPPFLAGS="$gt_save_CPPFLAGS"
  9614. LIBS="$gt_save_LIBS"
  9615. fi
  9616. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9617. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9618. fi
  9619. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9620. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9621. && test "$PACKAGE" != gettext-runtime \
  9622. && test "$PACKAGE" != gettext-tools; }; then
  9623. gt_use_preinstalled_gnugettext=yes
  9624. else
  9625. LIBINTL=
  9626. LTLIBINTL=
  9627. INCINTL=
  9628. fi
  9629. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9630. nls_cv_use_gnu_gettext=yes
  9631. fi
  9632. fi
  9633. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9634. BUILD_INCLUDED_LIBINTL=yes
  9635. USE_INCLUDED_LIBINTL=yes
  9636. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9637. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9638. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9639. fi
  9640. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9641. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9642. CATOBJEXT=.gmo
  9643. fi
  9644. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9645. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9646. cat >>confdefs.h <<\_ACEOF
  9647. #define ENABLE_NLS 1
  9648. _ACEOF
  9649. else
  9650. USE_NLS=no
  9651. fi
  9652. fi
  9653. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9654. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9655. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9656. echo "${ECHO_T}$USE_NLS" >&6; }
  9657. if test "$USE_NLS" = "yes"; then
  9658. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9659. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9660. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9661. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9662. gt_source="external libintl"
  9663. else
  9664. gt_source="libc"
  9665. fi
  9666. else
  9667. gt_source="included intl directory"
  9668. fi
  9669. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9670. echo "${ECHO_T}$gt_source" >&6; }
  9671. fi
  9672. if test "$USE_NLS" = "yes"; then
  9673. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9674. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9675. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9676. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9677. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9678. echo "${ECHO_T}$LIBINTL" >&6; }
  9679. for element in $INCINTL; do
  9680. haveit=
  9681. for x in $CPPFLAGS; do
  9682. acl_save_prefix="$prefix"
  9683. prefix="$acl_final_prefix"
  9684. acl_save_exec_prefix="$exec_prefix"
  9685. exec_prefix="$acl_final_exec_prefix"
  9686. eval x=\"$x\"
  9687. exec_prefix="$acl_save_exec_prefix"
  9688. prefix="$acl_save_prefix"
  9689. if test "X$x" = "X$element"; then
  9690. haveit=yes
  9691. break
  9692. fi
  9693. done
  9694. if test -z "$haveit"; then
  9695. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9696. fi
  9697. done
  9698. fi
  9699. cat >>confdefs.h <<\_ACEOF
  9700. #define HAVE_GETTEXT 1
  9701. _ACEOF
  9702. cat >>confdefs.h <<\_ACEOF
  9703. #define HAVE_DCGETTEXT 1
  9704. _ACEOF
  9705. fi
  9706. POSUB=po
  9707. fi
  9708. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9709. BUILD_INCLUDED_LIBINTL=yes
  9710. fi
  9711. nls_cv_header_intl=
  9712. nls_cv_header_libgt=
  9713. DATADIRNAME=share
  9714. INSTOBJEXT=.mo
  9715. GENCAT=gencat
  9716. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9717. INTLOBJS="\$(GETTOBJS)"
  9718. fi
  9719. INTL_LIBTOOL_SUFFIX_PREFIX=
  9720. INTLLIBS="$LIBINTL"
  9721. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9722. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9723. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9724. echo $ECHO_N "(cached) $ECHO_C" >&6
  9725. else
  9726. cat >conftest.$ac_ext <<_ACEOF
  9727. /* confdefs.h. */
  9728. _ACEOF
  9729. cat confdefs.h >>conftest.$ac_ext
  9730. cat >>conftest.$ac_ext <<_ACEOF
  9731. /* end confdefs.h. */
  9732. #include <error.h>
  9733. int
  9734. main ()
  9735. {
  9736. error_at_line (0, 0, "", 0, "an error occurred");
  9737. ;
  9738. return 0;
  9739. }
  9740. _ACEOF
  9741. rm -f conftest.$ac_objext conftest$ac_exeext
  9742. if { (ac_try="$ac_link"
  9743. case "(($ac_try" in
  9744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9745. *) ac_try_echo=$ac_try;;
  9746. esac
  9747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9748. (eval "$ac_link") 2>conftest.er1
  9749. ac_status=$?
  9750. grep -v '^ *+' conftest.er1 >conftest.err
  9751. rm -f conftest.er1
  9752. cat conftest.err >&5
  9753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9754. (exit $ac_status); } && {
  9755. test -z "$ac_c_werror_flag" ||
  9756. test ! -s conftest.err
  9757. } && test -s conftest$ac_exeext &&
  9758. $as_test_x conftest$ac_exeext; then
  9759. ac_cv_lib_error_at_line=yes
  9760. else
  9761. echo "$as_me: failed program was:" >&5
  9762. sed 's/^/| /' conftest.$ac_ext >&5
  9763. ac_cv_lib_error_at_line=no
  9764. fi
  9765. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9766. conftest$ac_exeext conftest.$ac_ext
  9767. fi
  9768. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9769. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9770. if test $ac_cv_lib_error_at_line = no; then
  9771. case " $LIBOBJS " in
  9772. *" error.$ac_objext "* ) ;;
  9773. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9774. ;;
  9775. esac
  9776. fi
  9777. case "$target" in
  9778. *mingw*)
  9779. ;;
  9780. *)
  9781. for ac_header in stdlib.h
  9782. do
  9783. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9784. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9785. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9786. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9787. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9788. echo $ECHO_N "(cached) $ECHO_C" >&6
  9789. fi
  9790. ac_res=`eval echo '${'$as_ac_Header'}'`
  9791. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9792. echo "${ECHO_T}$ac_res" >&6; }
  9793. else
  9794. # Is the header compilable?
  9795. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9796. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9797. cat >conftest.$ac_ext <<_ACEOF
  9798. /* confdefs.h. */
  9799. _ACEOF
  9800. cat confdefs.h >>conftest.$ac_ext
  9801. cat >>conftest.$ac_ext <<_ACEOF
  9802. /* end confdefs.h. */
  9803. $ac_includes_default
  9804. #include <$ac_header>
  9805. _ACEOF
  9806. rm -f conftest.$ac_objext
  9807. if { (ac_try="$ac_compile"
  9808. case "(($ac_try" in
  9809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9810. *) ac_try_echo=$ac_try;;
  9811. esac
  9812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9813. (eval "$ac_compile") 2>conftest.er1
  9814. ac_status=$?
  9815. grep -v '^ *+' conftest.er1 >conftest.err
  9816. rm -f conftest.er1
  9817. cat conftest.err >&5
  9818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9819. (exit $ac_status); } && {
  9820. test -z "$ac_c_werror_flag" ||
  9821. test ! -s conftest.err
  9822. } && test -s conftest.$ac_objext; then
  9823. ac_header_compiler=yes
  9824. else
  9825. echo "$as_me: failed program was:" >&5
  9826. sed 's/^/| /' conftest.$ac_ext >&5
  9827. ac_header_compiler=no
  9828. fi
  9829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9830. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9831. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9832. # Is the header present?
  9833. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9834. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9835. cat >conftest.$ac_ext <<_ACEOF
  9836. /* confdefs.h. */
  9837. _ACEOF
  9838. cat confdefs.h >>conftest.$ac_ext
  9839. cat >>conftest.$ac_ext <<_ACEOF
  9840. /* end confdefs.h. */
  9841. #include <$ac_header>
  9842. _ACEOF
  9843. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9844. case "(($ac_try" in
  9845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9846. *) ac_try_echo=$ac_try;;
  9847. esac
  9848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9849. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9850. ac_status=$?
  9851. grep -v '^ *+' conftest.er1 >conftest.err
  9852. rm -f conftest.er1
  9853. cat conftest.err >&5
  9854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9855. (exit $ac_status); } >/dev/null && {
  9856. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9857. test ! -s conftest.err
  9858. }; then
  9859. ac_header_preproc=yes
  9860. else
  9861. echo "$as_me: failed program was:" >&5
  9862. sed 's/^/| /' conftest.$ac_ext >&5
  9863. ac_header_preproc=no
  9864. fi
  9865. rm -f conftest.err conftest.$ac_ext
  9866. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9867. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9868. # So? What about this header?
  9869. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9870. yes:no: )
  9871. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9872. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9873. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9874. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9875. ac_header_preproc=yes
  9876. ;;
  9877. no:yes:* )
  9878. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9879. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9880. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9881. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9882. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9883. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9884. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9885. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9886. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9887. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9888. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9889. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9890. ( cat <<\_ASBOX
  9891. ## ----------------------------------------------- ##
  9892. ## Report this to t-tujikawa@users.sourceforge.net ##
  9893. ## ----------------------------------------------- ##
  9894. _ASBOX
  9895. ) | sed "s/^/$as_me: WARNING: /" >&2
  9896. ;;
  9897. esac
  9898. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9899. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9900. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9901. echo $ECHO_N "(cached) $ECHO_C" >&6
  9902. else
  9903. eval "$as_ac_Header=\$ac_header_preproc"
  9904. fi
  9905. ac_res=`eval echo '${'$as_ac_Header'}'`
  9906. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9907. echo "${ECHO_T}$ac_res" >&6; }
  9908. fi
  9909. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9910. cat >>confdefs.h <<_ACEOF
  9911. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9912. _ACEOF
  9913. fi
  9914. done
  9915. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9916. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9917. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9918. echo $ECHO_N "(cached) $ECHO_C" >&6
  9919. else
  9920. if test "$cross_compiling" = yes; then
  9921. ac_cv_func_malloc_0_nonnull=no
  9922. else
  9923. cat >conftest.$ac_ext <<_ACEOF
  9924. /* confdefs.h. */
  9925. _ACEOF
  9926. cat confdefs.h >>conftest.$ac_ext
  9927. cat >>conftest.$ac_ext <<_ACEOF
  9928. /* end confdefs.h. */
  9929. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9930. # include <stdlib.h>
  9931. #else
  9932. char *malloc ();
  9933. #endif
  9934. int
  9935. main ()
  9936. {
  9937. return ! malloc (0);
  9938. ;
  9939. return 0;
  9940. }
  9941. _ACEOF
  9942. rm -f conftest$ac_exeext
  9943. if { (ac_try="$ac_link"
  9944. case "(($ac_try" in
  9945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9946. *) ac_try_echo=$ac_try;;
  9947. esac
  9948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9949. (eval "$ac_link") 2>&5
  9950. ac_status=$?
  9951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9953. { (case "(($ac_try" in
  9954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9955. *) ac_try_echo=$ac_try;;
  9956. esac
  9957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9958. (eval "$ac_try") 2>&5
  9959. ac_status=$?
  9960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9961. (exit $ac_status); }; }; then
  9962. ac_cv_func_malloc_0_nonnull=yes
  9963. else
  9964. echo "$as_me: program exited with status $ac_status" >&5
  9965. echo "$as_me: failed program was:" >&5
  9966. sed 's/^/| /' conftest.$ac_ext >&5
  9967. ( exit $ac_status )
  9968. ac_cv_func_malloc_0_nonnull=no
  9969. fi
  9970. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9971. fi
  9972. fi
  9973. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9974. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9975. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9976. cat >>confdefs.h <<\_ACEOF
  9977. #define HAVE_MALLOC 1
  9978. _ACEOF
  9979. else
  9980. cat >>confdefs.h <<\_ACEOF
  9981. #define HAVE_MALLOC 0
  9982. _ACEOF
  9983. case " $LIBOBJS " in
  9984. *" malloc.$ac_objext "* ) ;;
  9985. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9986. ;;
  9987. esac
  9988. cat >>confdefs.h <<\_ACEOF
  9989. #define malloc rpl_malloc
  9990. _ACEOF
  9991. fi
  9992. for ac_header in stdlib.h
  9993. do
  9994. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9995. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9996. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9997. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9998. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9999. echo $ECHO_N "(cached) $ECHO_C" >&6
  10000. fi
  10001. ac_res=`eval echo '${'$as_ac_Header'}'`
  10002. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10003. echo "${ECHO_T}$ac_res" >&6; }
  10004. else
  10005. # Is the header compilable?
  10006. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10007. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10008. cat >conftest.$ac_ext <<_ACEOF
  10009. /* confdefs.h. */
  10010. _ACEOF
  10011. cat confdefs.h >>conftest.$ac_ext
  10012. cat >>conftest.$ac_ext <<_ACEOF
  10013. /* end confdefs.h. */
  10014. $ac_includes_default
  10015. #include <$ac_header>
  10016. _ACEOF
  10017. rm -f conftest.$ac_objext
  10018. if { (ac_try="$ac_compile"
  10019. case "(($ac_try" in
  10020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10021. *) ac_try_echo=$ac_try;;
  10022. esac
  10023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10024. (eval "$ac_compile") 2>conftest.er1
  10025. ac_status=$?
  10026. grep -v '^ *+' conftest.er1 >conftest.err
  10027. rm -f conftest.er1
  10028. cat conftest.err >&5
  10029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10030. (exit $ac_status); } && {
  10031. test -z "$ac_c_werror_flag" ||
  10032. test ! -s conftest.err
  10033. } && test -s conftest.$ac_objext; then
  10034. ac_header_compiler=yes
  10035. else
  10036. echo "$as_me: failed program was:" >&5
  10037. sed 's/^/| /' conftest.$ac_ext >&5
  10038. ac_header_compiler=no
  10039. fi
  10040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10041. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10042. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10043. # Is the header present?
  10044. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10045. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10046. cat >conftest.$ac_ext <<_ACEOF
  10047. /* confdefs.h. */
  10048. _ACEOF
  10049. cat confdefs.h >>conftest.$ac_ext
  10050. cat >>conftest.$ac_ext <<_ACEOF
  10051. /* end confdefs.h. */
  10052. #include <$ac_header>
  10053. _ACEOF
  10054. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10055. case "(($ac_try" in
  10056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10057. *) ac_try_echo=$ac_try;;
  10058. esac
  10059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10060. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10061. ac_status=$?
  10062. grep -v '^ *+' conftest.er1 >conftest.err
  10063. rm -f conftest.er1
  10064. cat conftest.err >&5
  10065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10066. (exit $ac_status); } >/dev/null && {
  10067. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10068. test ! -s conftest.err
  10069. }; then
  10070. ac_header_preproc=yes
  10071. else
  10072. echo "$as_me: failed program was:" >&5
  10073. sed 's/^/| /' conftest.$ac_ext >&5
  10074. ac_header_preproc=no
  10075. fi
  10076. rm -f conftest.err conftest.$ac_ext
  10077. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10078. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10079. # So? What about this header?
  10080. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10081. yes:no: )
  10082. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10083. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10084. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10085. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10086. ac_header_preproc=yes
  10087. ;;
  10088. no:yes:* )
  10089. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10090. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10091. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10092. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10093. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10094. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10095. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10096. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10097. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10098. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10099. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10100. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10101. ( cat <<\_ASBOX
  10102. ## ----------------------------------------------- ##
  10103. ## Report this to t-tujikawa@users.sourceforge.net ##
  10104. ## ----------------------------------------------- ##
  10105. _ASBOX
  10106. ) | sed "s/^/$as_me: WARNING: /" >&2
  10107. ;;
  10108. esac
  10109. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10110. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10111. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10112. echo $ECHO_N "(cached) $ECHO_C" >&6
  10113. else
  10114. eval "$as_ac_Header=\$ac_header_preproc"
  10115. fi
  10116. ac_res=`eval echo '${'$as_ac_Header'}'`
  10117. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10118. echo "${ECHO_T}$ac_res" >&6; }
  10119. fi
  10120. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10121. cat >>confdefs.h <<_ACEOF
  10122. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10123. _ACEOF
  10124. fi
  10125. done
  10126. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10127. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10128. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10129. echo $ECHO_N "(cached) $ECHO_C" >&6
  10130. else
  10131. if test "$cross_compiling" = yes; then
  10132. ac_cv_func_realloc_0_nonnull=no
  10133. else
  10134. cat >conftest.$ac_ext <<_ACEOF
  10135. /* confdefs.h. */
  10136. _ACEOF
  10137. cat confdefs.h >>conftest.$ac_ext
  10138. cat >>conftest.$ac_ext <<_ACEOF
  10139. /* end confdefs.h. */
  10140. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10141. # include <stdlib.h>
  10142. #else
  10143. char *realloc ();
  10144. #endif
  10145. int
  10146. main ()
  10147. {
  10148. return ! realloc (0, 0);
  10149. ;
  10150. return 0;
  10151. }
  10152. _ACEOF
  10153. rm -f conftest$ac_exeext
  10154. if { (ac_try="$ac_link"
  10155. case "(($ac_try" in
  10156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10157. *) ac_try_echo=$ac_try;;
  10158. esac
  10159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10160. (eval "$ac_link") 2>&5
  10161. ac_status=$?
  10162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10163. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10164. { (case "(($ac_try" in
  10165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10166. *) ac_try_echo=$ac_try;;
  10167. esac
  10168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10169. (eval "$ac_try") 2>&5
  10170. ac_status=$?
  10171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10172. (exit $ac_status); }; }; then
  10173. ac_cv_func_realloc_0_nonnull=yes
  10174. else
  10175. echo "$as_me: program exited with status $ac_status" >&5
  10176. echo "$as_me: failed program was:" >&5
  10177. sed 's/^/| /' conftest.$ac_ext >&5
  10178. ( exit $ac_status )
  10179. ac_cv_func_realloc_0_nonnull=no
  10180. fi
  10181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10182. fi
  10183. fi
  10184. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10185. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10186. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10187. cat >>confdefs.h <<\_ACEOF
  10188. #define HAVE_REALLOC 1
  10189. _ACEOF
  10190. else
  10191. cat >>confdefs.h <<\_ACEOF
  10192. #define HAVE_REALLOC 0
  10193. _ACEOF
  10194. case " $LIBOBJS " in
  10195. *" realloc.$ac_objext "* ) ;;
  10196. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10197. ;;
  10198. esac
  10199. cat >>confdefs.h <<\_ACEOF
  10200. #define realloc rpl_realloc
  10201. _ACEOF
  10202. fi
  10203. ;;
  10204. esac
  10205. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10206. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10207. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10208. echo $ECHO_N "(cached) $ECHO_C" >&6
  10209. else
  10210. if test "$cross_compiling" = yes; then
  10211. ac_cv_func_memcmp_working=no
  10212. else
  10213. cat >conftest.$ac_ext <<_ACEOF
  10214. /* confdefs.h. */
  10215. _ACEOF
  10216. cat confdefs.h >>conftest.$ac_ext
  10217. cat >>conftest.$ac_ext <<_ACEOF
  10218. /* end confdefs.h. */
  10219. $ac_includes_default
  10220. int
  10221. main ()
  10222. {
  10223. /* Some versions of memcmp are not 8-bit clean. */
  10224. char c0 = '\100', c1 = '\200', c2 = '\201';
  10225. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10226. return 1;
  10227. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10228. or more and with at least one buffer not starting on a 4-byte boundary.
  10229. William Lewis provided this test program. */
  10230. {
  10231. char foo[21];
  10232. char bar[21];
  10233. int i;
  10234. for (i = 0; i < 4; i++)
  10235. {
  10236. char *a = foo + i;
  10237. char *b = bar + i;
  10238. strcpy (a, "--------01111111");
  10239. strcpy (b, "--------10000000");
  10240. if (memcmp (a, b, 16) >= 0)
  10241. return 1;
  10242. }
  10243. return 0;
  10244. }
  10245. ;
  10246. return 0;
  10247. }
  10248. _ACEOF
  10249. rm -f conftest$ac_exeext
  10250. if { (ac_try="$ac_link"
  10251. case "(($ac_try" in
  10252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10253. *) ac_try_echo=$ac_try;;
  10254. esac
  10255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10256. (eval "$ac_link") 2>&5
  10257. ac_status=$?
  10258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10260. { (case "(($ac_try" in
  10261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10262. *) ac_try_echo=$ac_try;;
  10263. esac
  10264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10265. (eval "$ac_try") 2>&5
  10266. ac_status=$?
  10267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10268. (exit $ac_status); }; }; then
  10269. ac_cv_func_memcmp_working=yes
  10270. else
  10271. echo "$as_me: program exited with status $ac_status" >&5
  10272. echo "$as_me: failed program was:" >&5
  10273. sed 's/^/| /' conftest.$ac_ext >&5
  10274. ( exit $ac_status )
  10275. ac_cv_func_memcmp_working=no
  10276. fi
  10277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10278. fi
  10279. fi
  10280. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10281. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10282. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10283. *" memcmp.$ac_objext "* ) ;;
  10284. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10285. ;;
  10286. esac
  10287. for ac_header in stdlib.h unistd.h
  10288. do
  10289. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10290. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10291. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10292. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10293. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10294. echo $ECHO_N "(cached) $ECHO_C" >&6
  10295. fi
  10296. ac_res=`eval echo '${'$as_ac_Header'}'`
  10297. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10298. echo "${ECHO_T}$ac_res" >&6; }
  10299. else
  10300. # Is the header compilable?
  10301. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10302. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10303. cat >conftest.$ac_ext <<_ACEOF
  10304. /* confdefs.h. */
  10305. _ACEOF
  10306. cat confdefs.h >>conftest.$ac_ext
  10307. cat >>conftest.$ac_ext <<_ACEOF
  10308. /* end confdefs.h. */
  10309. $ac_includes_default
  10310. #include <$ac_header>
  10311. _ACEOF
  10312. rm -f conftest.$ac_objext
  10313. if { (ac_try="$ac_compile"
  10314. case "(($ac_try" in
  10315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10316. *) ac_try_echo=$ac_try;;
  10317. esac
  10318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10319. (eval "$ac_compile") 2>conftest.er1
  10320. ac_status=$?
  10321. grep -v '^ *+' conftest.er1 >conftest.err
  10322. rm -f conftest.er1
  10323. cat conftest.err >&5
  10324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10325. (exit $ac_status); } && {
  10326. test -z "$ac_c_werror_flag" ||
  10327. test ! -s conftest.err
  10328. } && test -s conftest.$ac_objext; then
  10329. ac_header_compiler=yes
  10330. else
  10331. echo "$as_me: failed program was:" >&5
  10332. sed 's/^/| /' conftest.$ac_ext >&5
  10333. ac_header_compiler=no
  10334. fi
  10335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10336. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10337. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10338. # Is the header present?
  10339. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10340. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10341. cat >conftest.$ac_ext <<_ACEOF
  10342. /* confdefs.h. */
  10343. _ACEOF
  10344. cat confdefs.h >>conftest.$ac_ext
  10345. cat >>conftest.$ac_ext <<_ACEOF
  10346. /* end confdefs.h. */
  10347. #include <$ac_header>
  10348. _ACEOF
  10349. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10350. case "(($ac_try" in
  10351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10352. *) ac_try_echo=$ac_try;;
  10353. esac
  10354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10355. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10356. ac_status=$?
  10357. grep -v '^ *+' conftest.er1 >conftest.err
  10358. rm -f conftest.er1
  10359. cat conftest.err >&5
  10360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10361. (exit $ac_status); } >/dev/null && {
  10362. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10363. test ! -s conftest.err
  10364. }; then
  10365. ac_header_preproc=yes
  10366. else
  10367. echo "$as_me: failed program was:" >&5
  10368. sed 's/^/| /' conftest.$ac_ext >&5
  10369. ac_header_preproc=no
  10370. fi
  10371. rm -f conftest.err conftest.$ac_ext
  10372. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10373. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10374. # So? What about this header?
  10375. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10376. yes:no: )
  10377. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10378. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10379. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10380. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10381. ac_header_preproc=yes
  10382. ;;
  10383. no:yes:* )
  10384. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10385. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10386. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10387. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10388. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10389. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10390. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10391. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10392. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10393. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10394. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10395. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10396. ( cat <<\_ASBOX
  10397. ## ----------------------------------------------- ##
  10398. ## Report this to t-tujikawa@users.sourceforge.net ##
  10399. ## ----------------------------------------------- ##
  10400. _ASBOX
  10401. ) | sed "s/^/$as_me: WARNING: /" >&2
  10402. ;;
  10403. esac
  10404. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10405. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10406. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10407. echo $ECHO_N "(cached) $ECHO_C" >&6
  10408. else
  10409. eval "$as_ac_Header=\$ac_header_preproc"
  10410. fi
  10411. ac_res=`eval echo '${'$as_ac_Header'}'`
  10412. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10413. echo "${ECHO_T}$ac_res" >&6; }
  10414. fi
  10415. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10416. cat >>confdefs.h <<_ACEOF
  10417. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10418. _ACEOF
  10419. fi
  10420. done
  10421. for ac_func in getpagesize
  10422. do
  10423. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10424. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10425. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10426. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10427. echo $ECHO_N "(cached) $ECHO_C" >&6
  10428. else
  10429. cat >conftest.$ac_ext <<_ACEOF
  10430. /* confdefs.h. */
  10431. _ACEOF
  10432. cat confdefs.h >>conftest.$ac_ext
  10433. cat >>conftest.$ac_ext <<_ACEOF
  10434. /* end confdefs.h. */
  10435. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10436. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10437. #define $ac_func innocuous_$ac_func
  10438. /* System header to define __stub macros and hopefully few prototypes,
  10439. which can conflict with char $ac_func (); below.
  10440. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10441. <limits.h> exists even on freestanding compilers. */
  10442. #ifdef __STDC__
  10443. # include <limits.h>
  10444. #else
  10445. # include <assert.h>
  10446. #endif
  10447. #undef $ac_func
  10448. /* Override any GCC internal prototype to avoid an error.
  10449. Use char because int might match the return type of a GCC
  10450. builtin and then its argument prototype would still apply. */
  10451. #ifdef __cplusplus
  10452. extern "C"
  10453. #endif
  10454. char $ac_func ();
  10455. /* The GNU C library defines this for functions which it implements
  10456. to always fail with ENOSYS. Some functions are actually named
  10457. something starting with __ and the normal name is an alias. */
  10458. #if defined __stub_$ac_func || defined __stub___$ac_func
  10459. choke me
  10460. #endif
  10461. int
  10462. main ()
  10463. {
  10464. return $ac_func ();
  10465. ;
  10466. return 0;
  10467. }
  10468. _ACEOF
  10469. rm -f conftest.$ac_objext conftest$ac_exeext
  10470. if { (ac_try="$ac_link"
  10471. case "(($ac_try" in
  10472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10473. *) ac_try_echo=$ac_try;;
  10474. esac
  10475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10476. (eval "$ac_link") 2>conftest.er1
  10477. ac_status=$?
  10478. grep -v '^ *+' conftest.er1 >conftest.err
  10479. rm -f conftest.er1
  10480. cat conftest.err >&5
  10481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10482. (exit $ac_status); } && {
  10483. test -z "$ac_c_werror_flag" ||
  10484. test ! -s conftest.err
  10485. } && test -s conftest$ac_exeext &&
  10486. $as_test_x conftest$ac_exeext; then
  10487. eval "$as_ac_var=yes"
  10488. else
  10489. echo "$as_me: failed program was:" >&5
  10490. sed 's/^/| /' conftest.$ac_ext >&5
  10491. eval "$as_ac_var=no"
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10494. conftest$ac_exeext conftest.$ac_ext
  10495. fi
  10496. ac_res=`eval echo '${'$as_ac_var'}'`
  10497. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10498. echo "${ECHO_T}$ac_res" >&6; }
  10499. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10500. cat >>confdefs.h <<_ACEOF
  10501. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10502. _ACEOF
  10503. fi
  10504. done
  10505. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10506. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10507. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10508. echo $ECHO_N "(cached) $ECHO_C" >&6
  10509. else
  10510. if test "$cross_compiling" = yes; then
  10511. ac_cv_func_mmap_fixed_mapped=no
  10512. else
  10513. cat >conftest.$ac_ext <<_ACEOF
  10514. /* confdefs.h. */
  10515. _ACEOF
  10516. cat confdefs.h >>conftest.$ac_ext
  10517. cat >>conftest.$ac_ext <<_ACEOF
  10518. /* end confdefs.h. */
  10519. $ac_includes_default
  10520. /* malloc might have been renamed as rpl_malloc. */
  10521. #undef malloc
  10522. /* Thanks to Mike Haertel and Jim Avera for this test.
  10523. Here is a matrix of mmap possibilities:
  10524. mmap private not fixed
  10525. mmap private fixed at somewhere currently unmapped
  10526. mmap private fixed at somewhere already mapped
  10527. mmap shared not fixed
  10528. mmap shared fixed at somewhere currently unmapped
  10529. mmap shared fixed at somewhere already mapped
  10530. For private mappings, we should verify that changes cannot be read()
  10531. back from the file, nor mmap's back from the file at a different
  10532. address. (There have been systems where private was not correctly
  10533. implemented like the infamous i386 svr4.0, and systems where the
  10534. VM page cache was not coherent with the file system buffer cache
  10535. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10536. For shared mappings, we should conversely verify that changes get
  10537. propagated back to all the places they're supposed to be.
  10538. Grep wants private fixed already mapped.
  10539. The main things grep needs to know about mmap are:
  10540. * does it exist and is it safe to write into the mmap'd area
  10541. * how to use it (BSD variants) */
  10542. #include <fcntl.h>
  10543. #include <sys/mman.h>
  10544. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10545. char *malloc ();
  10546. #endif
  10547. /* This mess was copied from the GNU getpagesize.h. */
  10548. #ifndef HAVE_GETPAGESIZE
  10549. /* Assume that all systems that can run configure have sys/param.h. */
  10550. # ifndef HAVE_SYS_PARAM_H
  10551. # define HAVE_SYS_PARAM_H 1
  10552. # endif
  10553. # ifdef _SC_PAGESIZE
  10554. # define getpagesize() sysconf(_SC_PAGESIZE)
  10555. # else /* no _SC_PAGESIZE */
  10556. # ifdef HAVE_SYS_PARAM_H
  10557. # include <sys/param.h>
  10558. # ifdef EXEC_PAGESIZE
  10559. # define getpagesize() EXEC_PAGESIZE
  10560. # else /* no EXEC_PAGESIZE */
  10561. # ifdef NBPG
  10562. # define getpagesize() NBPG * CLSIZE
  10563. # ifndef CLSIZE
  10564. # define CLSIZE 1
  10565. # endif /* no CLSIZE */
  10566. # else /* no NBPG */
  10567. # ifdef NBPC
  10568. # define getpagesize() NBPC
  10569. # else /* no NBPC */
  10570. # ifdef PAGESIZE
  10571. # define getpagesize() PAGESIZE
  10572. # endif /* PAGESIZE */
  10573. # endif /* no NBPC */
  10574. # endif /* no NBPG */
  10575. # endif /* no EXEC_PAGESIZE */
  10576. # else /* no HAVE_SYS_PARAM_H */
  10577. # define getpagesize() 8192 /* punt totally */
  10578. # endif /* no HAVE_SYS_PARAM_H */
  10579. # endif /* no _SC_PAGESIZE */
  10580. #endif /* no HAVE_GETPAGESIZE */
  10581. int
  10582. main ()
  10583. {
  10584. char *data, *data2, *data3;
  10585. int i, pagesize;
  10586. int fd;
  10587. pagesize = getpagesize ();
  10588. /* First, make a file with some known garbage in it. */
  10589. data = (char *) malloc (pagesize);
  10590. if (!data)
  10591. return 1;
  10592. for (i = 0; i < pagesize; ++i)
  10593. *(data + i) = rand ();
  10594. umask (0);
  10595. fd = creat ("conftest.mmap", 0600);
  10596. if (fd < 0)
  10597. return 1;
  10598. if (write (fd, data, pagesize) != pagesize)
  10599. return 1;
  10600. close (fd);
  10601. /* Next, try to mmap the file at a fixed address which already has
  10602. something else allocated at it. If we can, also make sure that
  10603. we see the same garbage. */
  10604. fd = open ("conftest.mmap", O_RDWR);
  10605. if (fd < 0)
  10606. return 1;
  10607. data2 = (char *) malloc (2 * pagesize);
  10608. if (!data2)
  10609. return 1;
  10610. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10611. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10612. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10613. return 1;
  10614. for (i = 0; i < pagesize; ++i)
  10615. if (*(data + i) != *(data2 + i))
  10616. return 1;
  10617. /* Finally, make sure that changes to the mapped area do not
  10618. percolate back to the file as seen by read(). (This is a bug on
  10619. some variants of i386 svr4.0.) */
  10620. for (i = 0; i < pagesize; ++i)
  10621. *(data2 + i) = *(data2 + i) + 1;
  10622. data3 = (char *) malloc (pagesize);
  10623. if (!data3)
  10624. return 1;
  10625. if (read (fd, data3, pagesize) != pagesize)
  10626. return 1;
  10627. for (i = 0; i < pagesize; ++i)
  10628. if (*(data + i) != *(data3 + i))
  10629. return 1;
  10630. close (fd);
  10631. return 0;
  10632. }
  10633. _ACEOF
  10634. rm -f conftest$ac_exeext
  10635. if { (ac_try="$ac_link"
  10636. case "(($ac_try" in
  10637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10638. *) ac_try_echo=$ac_try;;
  10639. esac
  10640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10641. (eval "$ac_link") 2>&5
  10642. ac_status=$?
  10643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10644. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10645. { (case "(($ac_try" in
  10646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10647. *) ac_try_echo=$ac_try;;
  10648. esac
  10649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10650. (eval "$ac_try") 2>&5
  10651. ac_status=$?
  10652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10653. (exit $ac_status); }; }; then
  10654. ac_cv_func_mmap_fixed_mapped=yes
  10655. else
  10656. echo "$as_me: program exited with status $ac_status" >&5
  10657. echo "$as_me: failed program was:" >&5
  10658. sed 's/^/| /' conftest.$ac_ext >&5
  10659. ( exit $ac_status )
  10660. ac_cv_func_mmap_fixed_mapped=no
  10661. fi
  10662. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10663. fi
  10664. fi
  10665. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10666. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10667. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10668. cat >>confdefs.h <<\_ACEOF
  10669. #define HAVE_MMAP 1
  10670. _ACEOF
  10671. fi
  10672. rm -f conftest.mmap
  10673. for ac_header in sys/select.h sys/socket.h
  10674. do
  10675. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10676. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10677. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10678. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10679. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10680. echo $ECHO_N "(cached) $ECHO_C" >&6
  10681. fi
  10682. ac_res=`eval echo '${'$as_ac_Header'}'`
  10683. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10684. echo "${ECHO_T}$ac_res" >&6; }
  10685. else
  10686. # Is the header compilable?
  10687. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10688. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10689. cat >conftest.$ac_ext <<_ACEOF
  10690. /* confdefs.h. */
  10691. _ACEOF
  10692. cat confdefs.h >>conftest.$ac_ext
  10693. cat >>conftest.$ac_ext <<_ACEOF
  10694. /* end confdefs.h. */
  10695. $ac_includes_default
  10696. #include <$ac_header>
  10697. _ACEOF
  10698. rm -f conftest.$ac_objext
  10699. if { (ac_try="$ac_compile"
  10700. case "(($ac_try" in
  10701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10702. *) ac_try_echo=$ac_try;;
  10703. esac
  10704. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10705. (eval "$ac_compile") 2>conftest.er1
  10706. ac_status=$?
  10707. grep -v '^ *+' conftest.er1 >conftest.err
  10708. rm -f conftest.er1
  10709. cat conftest.err >&5
  10710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10711. (exit $ac_status); } && {
  10712. test -z "$ac_c_werror_flag" ||
  10713. test ! -s conftest.err
  10714. } && test -s conftest.$ac_objext; then
  10715. ac_header_compiler=yes
  10716. else
  10717. echo "$as_me: failed program was:" >&5
  10718. sed 's/^/| /' conftest.$ac_ext >&5
  10719. ac_header_compiler=no
  10720. fi
  10721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10722. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10723. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10724. # Is the header present?
  10725. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10726. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10727. cat >conftest.$ac_ext <<_ACEOF
  10728. /* confdefs.h. */
  10729. _ACEOF
  10730. cat confdefs.h >>conftest.$ac_ext
  10731. cat >>conftest.$ac_ext <<_ACEOF
  10732. /* end confdefs.h. */
  10733. #include <$ac_header>
  10734. _ACEOF
  10735. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10736. case "(($ac_try" in
  10737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10738. *) ac_try_echo=$ac_try;;
  10739. esac
  10740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10741. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10742. ac_status=$?
  10743. grep -v '^ *+' conftest.er1 >conftest.err
  10744. rm -f conftest.er1
  10745. cat conftest.err >&5
  10746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10747. (exit $ac_status); } >/dev/null && {
  10748. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10749. test ! -s conftest.err
  10750. }; then
  10751. ac_header_preproc=yes
  10752. else
  10753. echo "$as_me: failed program was:" >&5
  10754. sed 's/^/| /' conftest.$ac_ext >&5
  10755. ac_header_preproc=no
  10756. fi
  10757. rm -f conftest.err conftest.$ac_ext
  10758. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10759. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10760. # So? What about this header?
  10761. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10762. yes:no: )
  10763. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10764. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10765. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10766. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10767. ac_header_preproc=yes
  10768. ;;
  10769. no:yes:* )
  10770. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10771. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10772. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10773. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10774. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10775. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10776. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10777. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10778. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10779. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10780. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10781. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10782. ( cat <<\_ASBOX
  10783. ## ----------------------------------------------- ##
  10784. ## Report this to t-tujikawa@users.sourceforge.net ##
  10785. ## ----------------------------------------------- ##
  10786. _ASBOX
  10787. ) | sed "s/^/$as_me: WARNING: /" >&2
  10788. ;;
  10789. esac
  10790. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10791. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10792. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10793. echo $ECHO_N "(cached) $ECHO_C" >&6
  10794. else
  10795. eval "$as_ac_Header=\$ac_header_preproc"
  10796. fi
  10797. ac_res=`eval echo '${'$as_ac_Header'}'`
  10798. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10799. echo "${ECHO_T}$ac_res" >&6; }
  10800. fi
  10801. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10802. cat >>confdefs.h <<_ACEOF
  10803. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10804. _ACEOF
  10805. fi
  10806. done
  10807. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10808. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10809. if test "${ac_cv_func_select_args+set}" = set; then
  10810. echo $ECHO_N "(cached) $ECHO_C" >&6
  10811. else
  10812. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10813. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10814. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10815. cat >conftest.$ac_ext <<_ACEOF
  10816. /* confdefs.h. */
  10817. _ACEOF
  10818. cat confdefs.h >>conftest.$ac_ext
  10819. cat >>conftest.$ac_ext <<_ACEOF
  10820. /* end confdefs.h. */
  10821. $ac_includes_default
  10822. #ifdef HAVE_SYS_SELECT_H
  10823. # include <sys/select.h>
  10824. #endif
  10825. #ifdef HAVE_SYS_SOCKET_H
  10826. # include <sys/socket.h>
  10827. #endif
  10828. int
  10829. main ()
  10830. {
  10831. extern int select ($ac_arg1,
  10832. $ac_arg234, $ac_arg234, $ac_arg234,
  10833. $ac_arg5);
  10834. ;
  10835. return 0;
  10836. }
  10837. _ACEOF
  10838. rm -f conftest.$ac_objext
  10839. if { (ac_try="$ac_compile"
  10840. case "(($ac_try" in
  10841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10842. *) ac_try_echo=$ac_try;;
  10843. esac
  10844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10845. (eval "$ac_compile") 2>conftest.er1
  10846. ac_status=$?
  10847. grep -v '^ *+' conftest.er1 >conftest.err
  10848. rm -f conftest.er1
  10849. cat conftest.err >&5
  10850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10851. (exit $ac_status); } && {
  10852. test -z "$ac_c_werror_flag" ||
  10853. test ! -s conftest.err
  10854. } && test -s conftest.$ac_objext; then
  10855. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10856. else
  10857. echo "$as_me: failed program was:" >&5
  10858. sed 's/^/| /' conftest.$ac_ext >&5
  10859. fi
  10860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10861. done
  10862. done
  10863. done
  10864. # Provide a safe default value.
  10865. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10866. fi
  10867. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10868. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10869. ac_save_IFS=$IFS; IFS=','
  10870. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10871. IFS=$ac_save_IFS
  10872. shift
  10873. cat >>confdefs.h <<_ACEOF
  10874. #define SELECT_TYPE_ARG1 $1
  10875. _ACEOF
  10876. cat >>confdefs.h <<_ACEOF
  10877. #define SELECT_TYPE_ARG234 ($2)
  10878. _ACEOF
  10879. cat >>confdefs.h <<_ACEOF
  10880. #define SELECT_TYPE_ARG5 ($3)
  10881. _ACEOF
  10882. rm -f conftest*
  10883. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10884. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10885. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10886. echo $ECHO_N "(cached) $ECHO_C" >&6
  10887. else
  10888. rm -f conftest.sym conftest.file
  10889. echo >conftest.file
  10890. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10891. if test "$cross_compiling" = yes; then
  10892. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10893. else
  10894. cat >conftest.$ac_ext <<_ACEOF
  10895. /* confdefs.h. */
  10896. _ACEOF
  10897. cat confdefs.h >>conftest.$ac_ext
  10898. cat >>conftest.$ac_ext <<_ACEOF
  10899. /* end confdefs.h. */
  10900. $ac_includes_default
  10901. int
  10902. main ()
  10903. {
  10904. struct stat sbuf;
  10905. /* Linux will dereference the symlink and fail.
  10906. That is better in the sense that it means we will not
  10907. have to compile and use the lstat wrapper. */
  10908. return lstat ("conftest.sym/", &sbuf) == 0;
  10909. ;
  10910. return 0;
  10911. }
  10912. _ACEOF
  10913. rm -f conftest$ac_exeext
  10914. if { (ac_try="$ac_link"
  10915. case "(($ac_try" in
  10916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10917. *) ac_try_echo=$ac_try;;
  10918. esac
  10919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10920. (eval "$ac_link") 2>&5
  10921. ac_status=$?
  10922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10923. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10924. { (case "(($ac_try" in
  10925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10926. *) ac_try_echo=$ac_try;;
  10927. esac
  10928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10929. (eval "$ac_try") 2>&5
  10930. ac_status=$?
  10931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10932. (exit $ac_status); }; }; then
  10933. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10934. else
  10935. echo "$as_me: program exited with status $ac_status" >&5
  10936. echo "$as_me: failed program was:" >&5
  10937. sed 's/^/| /' conftest.$ac_ext >&5
  10938. ( exit $ac_status )
  10939. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10940. fi
  10941. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10942. fi
  10943. else
  10944. # If the `ln -s' command failed, then we probably don't even
  10945. # have an lstat function.
  10946. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10947. fi
  10948. rm -f conftest.sym conftest.file
  10949. fi
  10950. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10951. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10952. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10953. cat >>confdefs.h <<_ACEOF
  10954. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10955. _ACEOF
  10956. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10957. case " $LIBOBJS " in
  10958. *" lstat.$ac_objext "* ) ;;
  10959. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10960. ;;
  10961. esac
  10962. fi
  10963. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10964. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10965. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10966. echo $ECHO_N "(cached) $ECHO_C" >&6
  10967. else
  10968. if test "$cross_compiling" = yes; then
  10969. ac_cv_func_stat_empty_string_bug=yes
  10970. else
  10971. cat >conftest.$ac_ext <<_ACEOF
  10972. /* confdefs.h. */
  10973. _ACEOF
  10974. cat confdefs.h >>conftest.$ac_ext
  10975. cat >>conftest.$ac_ext <<_ACEOF
  10976. /* end confdefs.h. */
  10977. $ac_includes_default
  10978. int
  10979. main ()
  10980. {
  10981. struct stat sbuf;
  10982. return stat ("", &sbuf) == 0;
  10983. ;
  10984. return 0;
  10985. }
  10986. _ACEOF
  10987. rm -f conftest$ac_exeext
  10988. if { (ac_try="$ac_link"
  10989. case "(($ac_try" in
  10990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10991. *) ac_try_echo=$ac_try;;
  10992. esac
  10993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10994. (eval "$ac_link") 2>&5
  10995. ac_status=$?
  10996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10997. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10998. { (case "(($ac_try" in
  10999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11000. *) ac_try_echo=$ac_try;;
  11001. esac
  11002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11003. (eval "$ac_try") 2>&5
  11004. ac_status=$?
  11005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11006. (exit $ac_status); }; }; then
  11007. ac_cv_func_stat_empty_string_bug=no
  11008. else
  11009. echo "$as_me: program exited with status $ac_status" >&5
  11010. echo "$as_me: failed program was:" >&5
  11011. sed 's/^/| /' conftest.$ac_ext >&5
  11012. ( exit $ac_status )
  11013. ac_cv_func_stat_empty_string_bug=yes
  11014. fi
  11015. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11016. fi
  11017. fi
  11018. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11019. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  11020. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11021. case " $LIBOBJS " in
  11022. *" stat.$ac_objext "* ) ;;
  11023. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11024. ;;
  11025. esac
  11026. cat >>confdefs.h <<_ACEOF
  11027. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11028. _ACEOF
  11029. fi
  11030. for ac_func in vprintf
  11031. do
  11032. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11033. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11034. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11035. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11036. echo $ECHO_N "(cached) $ECHO_C" >&6
  11037. else
  11038. cat >conftest.$ac_ext <<_ACEOF
  11039. /* confdefs.h. */
  11040. _ACEOF
  11041. cat confdefs.h >>conftest.$ac_ext
  11042. cat >>conftest.$ac_ext <<_ACEOF
  11043. /* end confdefs.h. */
  11044. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11045. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11046. #define $ac_func innocuous_$ac_func
  11047. /* System header to define __stub macros and hopefully few prototypes,
  11048. which can conflict with char $ac_func (); below.
  11049. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11050. <limits.h> exists even on freestanding compilers. */
  11051. #ifdef __STDC__
  11052. # include <limits.h>
  11053. #else
  11054. # include <assert.h>
  11055. #endif
  11056. #undef $ac_func
  11057. /* Override any GCC internal prototype to avoid an error.
  11058. Use char because int might match the return type of a GCC
  11059. builtin and then its argument prototype would still apply. */
  11060. #ifdef __cplusplus
  11061. extern "C"
  11062. #endif
  11063. char $ac_func ();
  11064. /* The GNU C library defines this for functions which it implements
  11065. to always fail with ENOSYS. Some functions are actually named
  11066. something starting with __ and the normal name is an alias. */
  11067. #if defined __stub_$ac_func || defined __stub___$ac_func
  11068. choke me
  11069. #endif
  11070. int
  11071. main ()
  11072. {
  11073. return $ac_func ();
  11074. ;
  11075. return 0;
  11076. }
  11077. _ACEOF
  11078. rm -f conftest.$ac_objext conftest$ac_exeext
  11079. if { (ac_try="$ac_link"
  11080. case "(($ac_try" in
  11081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11082. *) ac_try_echo=$ac_try;;
  11083. esac
  11084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11085. (eval "$ac_link") 2>conftest.er1
  11086. ac_status=$?
  11087. grep -v '^ *+' conftest.er1 >conftest.err
  11088. rm -f conftest.er1
  11089. cat conftest.err >&5
  11090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11091. (exit $ac_status); } && {
  11092. test -z "$ac_c_werror_flag" ||
  11093. test ! -s conftest.err
  11094. } && test -s conftest$ac_exeext &&
  11095. $as_test_x conftest$ac_exeext; then
  11096. eval "$as_ac_var=yes"
  11097. else
  11098. echo "$as_me: failed program was:" >&5
  11099. sed 's/^/| /' conftest.$ac_ext >&5
  11100. eval "$as_ac_var=no"
  11101. fi
  11102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11103. conftest$ac_exeext conftest.$ac_ext
  11104. fi
  11105. ac_res=`eval echo '${'$as_ac_var'}'`
  11106. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11107. echo "${ECHO_T}$ac_res" >&6; }
  11108. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11109. cat >>confdefs.h <<_ACEOF
  11110. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11111. _ACEOF
  11112. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  11113. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  11114. if test "${ac_cv_func__doprnt+set}" = set; then
  11115. echo $ECHO_N "(cached) $ECHO_C" >&6
  11116. else
  11117. cat >conftest.$ac_ext <<_ACEOF
  11118. /* confdefs.h. */
  11119. _ACEOF
  11120. cat confdefs.h >>conftest.$ac_ext
  11121. cat >>conftest.$ac_ext <<_ACEOF
  11122. /* end confdefs.h. */
  11123. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  11124. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11125. #define _doprnt innocuous__doprnt
  11126. /* System header to define __stub macros and hopefully few prototypes,
  11127. which can conflict with char _doprnt (); below.
  11128. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11129. <limits.h> exists even on freestanding compilers. */
  11130. #ifdef __STDC__
  11131. # include <limits.h>
  11132. #else
  11133. # include <assert.h>
  11134. #endif
  11135. #undef _doprnt
  11136. /* Override any GCC internal prototype to avoid an error.
  11137. Use char because int might match the return type of a GCC
  11138. builtin and then its argument prototype would still apply. */
  11139. #ifdef __cplusplus
  11140. extern "C"
  11141. #endif
  11142. char _doprnt ();
  11143. /* The GNU C library defines this for functions which it implements
  11144. to always fail with ENOSYS. Some functions are actually named
  11145. something starting with __ and the normal name is an alias. */
  11146. #if defined __stub__doprnt || defined __stub____doprnt
  11147. choke me
  11148. #endif
  11149. int
  11150. main ()
  11151. {
  11152. return _doprnt ();
  11153. ;
  11154. return 0;
  11155. }
  11156. _ACEOF
  11157. rm -f conftest.$ac_objext conftest$ac_exeext
  11158. if { (ac_try="$ac_link"
  11159. case "(($ac_try" in
  11160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11161. *) ac_try_echo=$ac_try;;
  11162. esac
  11163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11164. (eval "$ac_link") 2>conftest.er1
  11165. ac_status=$?
  11166. grep -v '^ *+' conftest.er1 >conftest.err
  11167. rm -f conftest.er1
  11168. cat conftest.err >&5
  11169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11170. (exit $ac_status); } && {
  11171. test -z "$ac_c_werror_flag" ||
  11172. test ! -s conftest.err
  11173. } && test -s conftest$ac_exeext &&
  11174. $as_test_x conftest$ac_exeext; then
  11175. ac_cv_func__doprnt=yes
  11176. else
  11177. echo "$as_me: failed program was:" >&5
  11178. sed 's/^/| /' conftest.$ac_ext >&5
  11179. ac_cv_func__doprnt=no
  11180. fi
  11181. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11182. conftest$ac_exeext conftest.$ac_ext
  11183. fi
  11184. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11185. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11186. if test $ac_cv_func__doprnt = yes; then
  11187. cat >>confdefs.h <<\_ACEOF
  11188. #define HAVE_DOPRNT 1
  11189. _ACEOF
  11190. fi
  11191. fi
  11192. done
  11193. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo random rmdir select setlocale sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul unsetenv usleep
  11194. do
  11195. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11196. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11197. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11198. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11199. echo $ECHO_N "(cached) $ECHO_C" >&6
  11200. else
  11201. cat >conftest.$ac_ext <<_ACEOF
  11202. /* confdefs.h. */
  11203. _ACEOF
  11204. cat confdefs.h >>conftest.$ac_ext
  11205. cat >>conftest.$ac_ext <<_ACEOF
  11206. /* end confdefs.h. */
  11207. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11208. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11209. #define $ac_func innocuous_$ac_func
  11210. /* System header to define __stub macros and hopefully few prototypes,
  11211. which can conflict with char $ac_func (); below.
  11212. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11213. <limits.h> exists even on freestanding compilers. */
  11214. #ifdef __STDC__
  11215. # include <limits.h>
  11216. #else
  11217. # include <assert.h>
  11218. #endif
  11219. #undef $ac_func
  11220. /* Override any GCC internal prototype to avoid an error.
  11221. Use char because int might match the return type of a GCC
  11222. builtin and then its argument prototype would still apply. */
  11223. #ifdef __cplusplus
  11224. extern "C"
  11225. #endif
  11226. char $ac_func ();
  11227. /* The GNU C library defines this for functions which it implements
  11228. to always fail with ENOSYS. Some functions are actually named
  11229. something starting with __ and the normal name is an alias. */
  11230. #if defined __stub_$ac_func || defined __stub___$ac_func
  11231. choke me
  11232. #endif
  11233. int
  11234. main ()
  11235. {
  11236. return $ac_func ();
  11237. ;
  11238. return 0;
  11239. }
  11240. _ACEOF
  11241. rm -f conftest.$ac_objext conftest$ac_exeext
  11242. if { (ac_try="$ac_link"
  11243. case "(($ac_try" in
  11244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11245. *) ac_try_echo=$ac_try;;
  11246. esac
  11247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11248. (eval "$ac_link") 2>conftest.er1
  11249. ac_status=$?
  11250. grep -v '^ *+' conftest.er1 >conftest.err
  11251. rm -f conftest.er1
  11252. cat conftest.err >&5
  11253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11254. (exit $ac_status); } && {
  11255. test -z "$ac_c_werror_flag" ||
  11256. test ! -s conftest.err
  11257. } && test -s conftest$ac_exeext &&
  11258. $as_test_x conftest$ac_exeext; then
  11259. eval "$as_ac_var=yes"
  11260. else
  11261. echo "$as_me: failed program was:" >&5
  11262. sed 's/^/| /' conftest.$ac_ext >&5
  11263. eval "$as_ac_var=no"
  11264. fi
  11265. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11266. conftest$ac_exeext conftest.$ac_ext
  11267. fi
  11268. ac_res=`eval echo '${'$as_ac_var'}'`
  11269. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11270. echo "${ECHO_T}$ac_res" >&6; }
  11271. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11272. cat >>confdefs.h <<_ACEOF
  11273. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11274. _ACEOF
  11275. fi
  11276. done
  11277. for ac_func in basename
  11278. do
  11279. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11280. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11281. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11282. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11283. echo $ECHO_N "(cached) $ECHO_C" >&6
  11284. else
  11285. cat >conftest.$ac_ext <<_ACEOF
  11286. /* confdefs.h. */
  11287. _ACEOF
  11288. cat confdefs.h >>conftest.$ac_ext
  11289. cat >>conftest.$ac_ext <<_ACEOF
  11290. /* end confdefs.h. */
  11291. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11292. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11293. #define $ac_func innocuous_$ac_func
  11294. /* System header to define __stub macros and hopefully few prototypes,
  11295. which can conflict with char $ac_func (); below.
  11296. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11297. <limits.h> exists even on freestanding compilers. */
  11298. #ifdef __STDC__
  11299. # include <limits.h>
  11300. #else
  11301. # include <assert.h>
  11302. #endif
  11303. #undef $ac_func
  11304. /* Override any GCC internal prototype to avoid an error.
  11305. Use char because int might match the return type of a GCC
  11306. builtin and then its argument prototype would still apply. */
  11307. #ifdef __cplusplus
  11308. extern "C"
  11309. #endif
  11310. char $ac_func ();
  11311. /* The GNU C library defines this for functions which it implements
  11312. to always fail with ENOSYS. Some functions are actually named
  11313. something starting with __ and the normal name is an alias. */
  11314. #if defined __stub_$ac_func || defined __stub___$ac_func
  11315. choke me
  11316. #endif
  11317. int
  11318. main ()
  11319. {
  11320. return $ac_func ();
  11321. ;
  11322. return 0;
  11323. }
  11324. _ACEOF
  11325. rm -f conftest.$ac_objext conftest$ac_exeext
  11326. if { (ac_try="$ac_link"
  11327. case "(($ac_try" in
  11328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11329. *) ac_try_echo=$ac_try;;
  11330. esac
  11331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11332. (eval "$ac_link") 2>conftest.er1
  11333. ac_status=$?
  11334. grep -v '^ *+' conftest.er1 >conftest.err
  11335. rm -f conftest.er1
  11336. cat conftest.err >&5
  11337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11338. (exit $ac_status); } && {
  11339. test -z "$ac_c_werror_flag" ||
  11340. test ! -s conftest.err
  11341. } && test -s conftest$ac_exeext &&
  11342. $as_test_x conftest$ac_exeext; then
  11343. eval "$as_ac_var=yes"
  11344. else
  11345. echo "$as_me: failed program was:" >&5
  11346. sed 's/^/| /' conftest.$ac_ext >&5
  11347. eval "$as_ac_var=no"
  11348. fi
  11349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11350. conftest$ac_exeext conftest.$ac_ext
  11351. fi
  11352. ac_res=`eval echo '${'$as_ac_var'}'`
  11353. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11354. echo "${ECHO_T}$ac_res" >&6; }
  11355. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11356. cat >>confdefs.h <<_ACEOF
  11357. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11358. _ACEOF
  11359. if true; then
  11360. HAVE_BASENAME_TRUE=
  11361. HAVE_BASENAME_FALSE='#'
  11362. else
  11363. HAVE_BASENAME_TRUE='#'
  11364. HAVE_BASENAME_FALSE=
  11365. fi
  11366. else
  11367. if false; then
  11368. HAVE_BASENAME_TRUE=
  11369. HAVE_BASENAME_FALSE='#'
  11370. else
  11371. HAVE_BASENAME_TRUE='#'
  11372. HAVE_BASENAME_FALSE=
  11373. fi
  11374. fi
  11375. done
  11376. for ac_func in gai_strerror
  11377. do
  11378. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11379. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11380. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11381. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11382. echo $ECHO_N "(cached) $ECHO_C" >&6
  11383. else
  11384. cat >conftest.$ac_ext <<_ACEOF
  11385. /* confdefs.h. */
  11386. _ACEOF
  11387. cat confdefs.h >>conftest.$ac_ext
  11388. cat >>conftest.$ac_ext <<_ACEOF
  11389. /* end confdefs.h. */
  11390. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11391. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11392. #define $ac_func innocuous_$ac_func
  11393. /* System header to define __stub macros and hopefully few prototypes,
  11394. which can conflict with char $ac_func (); below.
  11395. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11396. <limits.h> exists even on freestanding compilers. */
  11397. #ifdef __STDC__
  11398. # include <limits.h>
  11399. #else
  11400. # include <assert.h>
  11401. #endif
  11402. #undef $ac_func
  11403. /* Override any GCC internal prototype to avoid an error.
  11404. Use char because int might match the return type of a GCC
  11405. builtin and then its argument prototype would still apply. */
  11406. #ifdef __cplusplus
  11407. extern "C"
  11408. #endif
  11409. char $ac_func ();
  11410. /* The GNU C library defines this for functions which it implements
  11411. to always fail with ENOSYS. Some functions are actually named
  11412. something starting with __ and the normal name is an alias. */
  11413. #if defined __stub_$ac_func || defined __stub___$ac_func
  11414. choke me
  11415. #endif
  11416. int
  11417. main ()
  11418. {
  11419. return $ac_func ();
  11420. ;
  11421. return 0;
  11422. }
  11423. _ACEOF
  11424. rm -f conftest.$ac_objext conftest$ac_exeext
  11425. if { (ac_try="$ac_link"
  11426. case "(($ac_try" in
  11427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11428. *) ac_try_echo=$ac_try;;
  11429. esac
  11430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11431. (eval "$ac_link") 2>conftest.er1
  11432. ac_status=$?
  11433. grep -v '^ *+' conftest.er1 >conftest.err
  11434. rm -f conftest.er1
  11435. cat conftest.err >&5
  11436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11437. (exit $ac_status); } && {
  11438. test -z "$ac_c_werror_flag" ||
  11439. test ! -s conftest.err
  11440. } && test -s conftest$ac_exeext &&
  11441. $as_test_x conftest$ac_exeext; then
  11442. eval "$as_ac_var=yes"
  11443. else
  11444. echo "$as_me: failed program was:" >&5
  11445. sed 's/^/| /' conftest.$ac_ext >&5
  11446. eval "$as_ac_var=no"
  11447. fi
  11448. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11449. conftest$ac_exeext conftest.$ac_ext
  11450. fi
  11451. ac_res=`eval echo '${'$as_ac_var'}'`
  11452. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11453. echo "${ECHO_T}$ac_res" >&6; }
  11454. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11455. cat >>confdefs.h <<_ACEOF
  11456. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11457. _ACEOF
  11458. if true; then
  11459. HAVE_GAI_STRERROR_TRUE=
  11460. HAVE_GAI_STRERROR_FALSE='#'
  11461. else
  11462. HAVE_GAI_STRERROR_TRUE='#'
  11463. HAVE_GAI_STRERROR_FALSE=
  11464. fi
  11465. else
  11466. if false; then
  11467. HAVE_GAI_STRERROR_TRUE=
  11468. HAVE_GAI_STRERROR_FALSE='#'
  11469. else
  11470. HAVE_GAI_STRERROR_TRUE='#'
  11471. HAVE_GAI_STRERROR_FALSE=
  11472. fi
  11473. fi
  11474. done
  11475. for ac_func in getaddrinfo
  11476. do
  11477. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11478. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11479. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11480. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11481. echo $ECHO_N "(cached) $ECHO_C" >&6
  11482. else
  11483. cat >conftest.$ac_ext <<_ACEOF
  11484. /* confdefs.h. */
  11485. _ACEOF
  11486. cat confdefs.h >>conftest.$ac_ext
  11487. cat >>conftest.$ac_ext <<_ACEOF
  11488. /* end confdefs.h. */
  11489. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11490. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11491. #define $ac_func innocuous_$ac_func
  11492. /* System header to define __stub macros and hopefully few prototypes,
  11493. which can conflict with char $ac_func (); below.
  11494. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11495. <limits.h> exists even on freestanding compilers. */
  11496. #ifdef __STDC__
  11497. # include <limits.h>
  11498. #else
  11499. # include <assert.h>
  11500. #endif
  11501. #undef $ac_func
  11502. /* Override any GCC internal prototype to avoid an error.
  11503. Use char because int might match the return type of a GCC
  11504. builtin and then its argument prototype would still apply. */
  11505. #ifdef __cplusplus
  11506. extern "C"
  11507. #endif
  11508. char $ac_func ();
  11509. /* The GNU C library defines this for functions which it implements
  11510. to always fail with ENOSYS. Some functions are actually named
  11511. something starting with __ and the normal name is an alias. */
  11512. #if defined __stub_$ac_func || defined __stub___$ac_func
  11513. choke me
  11514. #endif
  11515. int
  11516. main ()
  11517. {
  11518. return $ac_func ();
  11519. ;
  11520. return 0;
  11521. }
  11522. _ACEOF
  11523. rm -f conftest.$ac_objext conftest$ac_exeext
  11524. if { (ac_try="$ac_link"
  11525. case "(($ac_try" in
  11526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11527. *) ac_try_echo=$ac_try;;
  11528. esac
  11529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11530. (eval "$ac_link") 2>conftest.er1
  11531. ac_status=$?
  11532. grep -v '^ *+' conftest.er1 >conftest.err
  11533. rm -f conftest.er1
  11534. cat conftest.err >&5
  11535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11536. (exit $ac_status); } && {
  11537. test -z "$ac_c_werror_flag" ||
  11538. test ! -s conftest.err
  11539. } && test -s conftest$ac_exeext &&
  11540. $as_test_x conftest$ac_exeext; then
  11541. eval "$as_ac_var=yes"
  11542. else
  11543. echo "$as_me: failed program was:" >&5
  11544. sed 's/^/| /' conftest.$ac_ext >&5
  11545. eval "$as_ac_var=no"
  11546. fi
  11547. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11548. conftest$ac_exeext conftest.$ac_ext
  11549. fi
  11550. ac_res=`eval echo '${'$as_ac_var'}'`
  11551. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11552. echo "${ECHO_T}$ac_res" >&6; }
  11553. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11554. cat >>confdefs.h <<_ACEOF
  11555. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11556. _ACEOF
  11557. if true; then
  11558. HAVE_GETADDRINFO_TRUE=
  11559. HAVE_GETADDRINFO_FALSE='#'
  11560. else
  11561. HAVE_GETADDRINFO_TRUE='#'
  11562. HAVE_GETADDRINFO_FALSE=
  11563. fi
  11564. else
  11565. if false; then
  11566. HAVE_GETADDRINFO_TRUE=
  11567. HAVE_GETADDRINFO_FALSE='#'
  11568. else
  11569. HAVE_GETADDRINFO_TRUE='#'
  11570. HAVE_GETADDRINFO_FALSE=
  11571. fi
  11572. fi
  11573. done
  11574. for ac_func in gettimeofday
  11575. do
  11576. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11577. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11578. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11579. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11580. echo $ECHO_N "(cached) $ECHO_C" >&6
  11581. else
  11582. cat >conftest.$ac_ext <<_ACEOF
  11583. /* confdefs.h. */
  11584. _ACEOF
  11585. cat confdefs.h >>conftest.$ac_ext
  11586. cat >>conftest.$ac_ext <<_ACEOF
  11587. /* end confdefs.h. */
  11588. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11589. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11590. #define $ac_func innocuous_$ac_func
  11591. /* System header to define __stub macros and hopefully few prototypes,
  11592. which can conflict with char $ac_func (); below.
  11593. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11594. <limits.h> exists even on freestanding compilers. */
  11595. #ifdef __STDC__
  11596. # include <limits.h>
  11597. #else
  11598. # include <assert.h>
  11599. #endif
  11600. #undef $ac_func
  11601. /* Override any GCC internal prototype to avoid an error.
  11602. Use char because int might match the return type of a GCC
  11603. builtin and then its argument prototype would still apply. */
  11604. #ifdef __cplusplus
  11605. extern "C"
  11606. #endif
  11607. char $ac_func ();
  11608. /* The GNU C library defines this for functions which it implements
  11609. to always fail with ENOSYS. Some functions are actually named
  11610. something starting with __ and the normal name is an alias. */
  11611. #if defined __stub_$ac_func || defined __stub___$ac_func
  11612. choke me
  11613. #endif
  11614. int
  11615. main ()
  11616. {
  11617. return $ac_func ();
  11618. ;
  11619. return 0;
  11620. }
  11621. _ACEOF
  11622. rm -f conftest.$ac_objext conftest$ac_exeext
  11623. if { (ac_try="$ac_link"
  11624. case "(($ac_try" in
  11625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11626. *) ac_try_echo=$ac_try;;
  11627. esac
  11628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11629. (eval "$ac_link") 2>conftest.er1
  11630. ac_status=$?
  11631. grep -v '^ *+' conftest.er1 >conftest.err
  11632. rm -f conftest.er1
  11633. cat conftest.err >&5
  11634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11635. (exit $ac_status); } && {
  11636. test -z "$ac_c_werror_flag" ||
  11637. test ! -s conftest.err
  11638. } && test -s conftest$ac_exeext &&
  11639. $as_test_x conftest$ac_exeext; then
  11640. eval "$as_ac_var=yes"
  11641. else
  11642. echo "$as_me: failed program was:" >&5
  11643. sed 's/^/| /' conftest.$ac_ext >&5
  11644. eval "$as_ac_var=no"
  11645. fi
  11646. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11647. conftest$ac_exeext conftest.$ac_ext
  11648. fi
  11649. ac_res=`eval echo '${'$as_ac_var'}'`
  11650. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11651. echo "${ECHO_T}$ac_res" >&6; }
  11652. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11653. cat >>confdefs.h <<_ACEOF
  11654. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11655. _ACEOF
  11656. if true; then
  11657. HAVE_GETTIMEOFDAY_TRUE=
  11658. HAVE_GETTIMEOFDAY_FALSE='#'
  11659. else
  11660. HAVE_GETTIMEOFDAY_TRUE='#'
  11661. HAVE_GETTIMEOFDAY_FALSE=
  11662. fi
  11663. else
  11664. if false; then
  11665. HAVE_GETTIMEOFDAY_TRUE=
  11666. HAVE_GETTIMEOFDAY_FALSE='#'
  11667. else
  11668. HAVE_GETTIMEOFDAY_TRUE='#'
  11669. HAVE_GETTIMEOFDAY_FALSE=
  11670. fi
  11671. fi
  11672. done
  11673. for ac_func in inet_aton
  11674. do
  11675. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11676. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11677. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11678. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11679. echo $ECHO_N "(cached) $ECHO_C" >&6
  11680. else
  11681. cat >conftest.$ac_ext <<_ACEOF
  11682. /* confdefs.h. */
  11683. _ACEOF
  11684. cat confdefs.h >>conftest.$ac_ext
  11685. cat >>conftest.$ac_ext <<_ACEOF
  11686. /* end confdefs.h. */
  11687. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11688. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11689. #define $ac_func innocuous_$ac_func
  11690. /* System header to define __stub macros and hopefully few prototypes,
  11691. which can conflict with char $ac_func (); below.
  11692. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11693. <limits.h> exists even on freestanding compilers. */
  11694. #ifdef __STDC__
  11695. # include <limits.h>
  11696. #else
  11697. # include <assert.h>
  11698. #endif
  11699. #undef $ac_func
  11700. /* Override any GCC internal prototype to avoid an error.
  11701. Use char because int might match the return type of a GCC
  11702. builtin and then its argument prototype would still apply. */
  11703. #ifdef __cplusplus
  11704. extern "C"
  11705. #endif
  11706. char $ac_func ();
  11707. /* The GNU C library defines this for functions which it implements
  11708. to always fail with ENOSYS. Some functions are actually named
  11709. something starting with __ and the normal name is an alias. */
  11710. #if defined __stub_$ac_func || defined __stub___$ac_func
  11711. choke me
  11712. #endif
  11713. int
  11714. main ()
  11715. {
  11716. return $ac_func ();
  11717. ;
  11718. return 0;
  11719. }
  11720. _ACEOF
  11721. rm -f conftest.$ac_objext conftest$ac_exeext
  11722. if { (ac_try="$ac_link"
  11723. case "(($ac_try" in
  11724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11725. *) ac_try_echo=$ac_try;;
  11726. esac
  11727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11728. (eval "$ac_link") 2>conftest.er1
  11729. ac_status=$?
  11730. grep -v '^ *+' conftest.er1 >conftest.err
  11731. rm -f conftest.er1
  11732. cat conftest.err >&5
  11733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11734. (exit $ac_status); } && {
  11735. test -z "$ac_c_werror_flag" ||
  11736. test ! -s conftest.err
  11737. } && test -s conftest$ac_exeext &&
  11738. $as_test_x conftest$ac_exeext; then
  11739. eval "$as_ac_var=yes"
  11740. else
  11741. echo "$as_me: failed program was:" >&5
  11742. sed 's/^/| /' conftest.$ac_ext >&5
  11743. eval "$as_ac_var=no"
  11744. fi
  11745. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11746. conftest$ac_exeext conftest.$ac_ext
  11747. fi
  11748. ac_res=`eval echo '${'$as_ac_var'}'`
  11749. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11750. echo "${ECHO_T}$ac_res" >&6; }
  11751. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11752. cat >>confdefs.h <<_ACEOF
  11753. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11754. _ACEOF
  11755. if true; then
  11756. HAVE_INET_ATON_TRUE=
  11757. HAVE_INET_ATON_FALSE='#'
  11758. else
  11759. HAVE_INET_ATON_TRUE='#'
  11760. HAVE_INET_ATON_FALSE=
  11761. fi
  11762. else
  11763. if false; then
  11764. HAVE_INET_ATON_TRUE=
  11765. HAVE_INET_ATON_FALSE='#'
  11766. else
  11767. HAVE_INET_ATON_TRUE='#'
  11768. HAVE_INET_ATON_FALSE=
  11769. fi
  11770. fi
  11771. done
  11772. for ac_func in localtime_r
  11773. do
  11774. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11775. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11776. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11777. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11778. echo $ECHO_N "(cached) $ECHO_C" >&6
  11779. else
  11780. cat >conftest.$ac_ext <<_ACEOF
  11781. /* confdefs.h. */
  11782. _ACEOF
  11783. cat confdefs.h >>conftest.$ac_ext
  11784. cat >>conftest.$ac_ext <<_ACEOF
  11785. /* end confdefs.h. */
  11786. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11787. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11788. #define $ac_func innocuous_$ac_func
  11789. /* System header to define __stub macros and hopefully few prototypes,
  11790. which can conflict with char $ac_func (); below.
  11791. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11792. <limits.h> exists even on freestanding compilers. */
  11793. #ifdef __STDC__
  11794. # include <limits.h>
  11795. #else
  11796. # include <assert.h>
  11797. #endif
  11798. #undef $ac_func
  11799. /* Override any GCC internal prototype to avoid an error.
  11800. Use char because int might match the return type of a GCC
  11801. builtin and then its argument prototype would still apply. */
  11802. #ifdef __cplusplus
  11803. extern "C"
  11804. #endif
  11805. char $ac_func ();
  11806. /* The GNU C library defines this for functions which it implements
  11807. to always fail with ENOSYS. Some functions are actually named
  11808. something starting with __ and the normal name is an alias. */
  11809. #if defined __stub_$ac_func || defined __stub___$ac_func
  11810. choke me
  11811. #endif
  11812. int
  11813. main ()
  11814. {
  11815. return $ac_func ();
  11816. ;
  11817. return 0;
  11818. }
  11819. _ACEOF
  11820. rm -f conftest.$ac_objext conftest$ac_exeext
  11821. if { (ac_try="$ac_link"
  11822. case "(($ac_try" in
  11823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11824. *) ac_try_echo=$ac_try;;
  11825. esac
  11826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11827. (eval "$ac_link") 2>conftest.er1
  11828. ac_status=$?
  11829. grep -v '^ *+' conftest.er1 >conftest.err
  11830. rm -f conftest.er1
  11831. cat conftest.err >&5
  11832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11833. (exit $ac_status); } && {
  11834. test -z "$ac_c_werror_flag" ||
  11835. test ! -s conftest.err
  11836. } && test -s conftest$ac_exeext &&
  11837. $as_test_x conftest$ac_exeext; then
  11838. eval "$as_ac_var=yes"
  11839. else
  11840. echo "$as_me: failed program was:" >&5
  11841. sed 's/^/| /' conftest.$ac_ext >&5
  11842. eval "$as_ac_var=no"
  11843. fi
  11844. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11845. conftest$ac_exeext conftest.$ac_ext
  11846. fi
  11847. ac_res=`eval echo '${'$as_ac_var'}'`
  11848. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11849. echo "${ECHO_T}$ac_res" >&6; }
  11850. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11851. cat >>confdefs.h <<_ACEOF
  11852. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11853. _ACEOF
  11854. if true; then
  11855. HAVE_LOCALTIME_R_TRUE=
  11856. HAVE_LOCALTIME_R_FALSE='#'
  11857. else
  11858. HAVE_LOCALTIME_R_TRUE='#'
  11859. HAVE_LOCALTIME_R_FALSE=
  11860. fi
  11861. else
  11862. if false; then
  11863. HAVE_LOCALTIME_R_TRUE=
  11864. HAVE_LOCALTIME_R_FALSE='#'
  11865. else
  11866. HAVE_LOCALTIME_R_TRUE='#'
  11867. HAVE_LOCALTIME_R_FALSE=
  11868. fi
  11869. fi
  11870. done
  11871. for ac_func in strptime
  11872. do
  11873. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11874. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11875. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11876. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11877. echo $ECHO_N "(cached) $ECHO_C" >&6
  11878. else
  11879. cat >conftest.$ac_ext <<_ACEOF
  11880. /* confdefs.h. */
  11881. _ACEOF
  11882. cat confdefs.h >>conftest.$ac_ext
  11883. cat >>conftest.$ac_ext <<_ACEOF
  11884. /* end confdefs.h. */
  11885. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11887. #define $ac_func innocuous_$ac_func
  11888. /* System header to define __stub macros and hopefully few prototypes,
  11889. which can conflict with char $ac_func (); below.
  11890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11891. <limits.h> exists even on freestanding compilers. */
  11892. #ifdef __STDC__
  11893. # include <limits.h>
  11894. #else
  11895. # include <assert.h>
  11896. #endif
  11897. #undef $ac_func
  11898. /* Override any GCC internal prototype to avoid an error.
  11899. Use char because int might match the return type of a GCC
  11900. builtin and then its argument prototype would still apply. */
  11901. #ifdef __cplusplus
  11902. extern "C"
  11903. #endif
  11904. char $ac_func ();
  11905. /* The GNU C library defines this for functions which it implements
  11906. to always fail with ENOSYS. Some functions are actually named
  11907. something starting with __ and the normal name is an alias. */
  11908. #if defined __stub_$ac_func || defined __stub___$ac_func
  11909. choke me
  11910. #endif
  11911. int
  11912. main ()
  11913. {
  11914. return $ac_func ();
  11915. ;
  11916. return 0;
  11917. }
  11918. _ACEOF
  11919. rm -f conftest.$ac_objext conftest$ac_exeext
  11920. if { (ac_try="$ac_link"
  11921. case "(($ac_try" in
  11922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11923. *) ac_try_echo=$ac_try;;
  11924. esac
  11925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11926. (eval "$ac_link") 2>conftest.er1
  11927. ac_status=$?
  11928. grep -v '^ *+' conftest.er1 >conftest.err
  11929. rm -f conftest.er1
  11930. cat conftest.err >&5
  11931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11932. (exit $ac_status); } && {
  11933. test -z "$ac_c_werror_flag" ||
  11934. test ! -s conftest.err
  11935. } && test -s conftest$ac_exeext &&
  11936. $as_test_x conftest$ac_exeext; then
  11937. eval "$as_ac_var=yes"
  11938. else
  11939. echo "$as_me: failed program was:" >&5
  11940. sed 's/^/| /' conftest.$ac_ext >&5
  11941. eval "$as_ac_var=no"
  11942. fi
  11943. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11944. conftest$ac_exeext conftest.$ac_ext
  11945. fi
  11946. ac_res=`eval echo '${'$as_ac_var'}'`
  11947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11948. echo "${ECHO_T}$ac_res" >&6; }
  11949. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11950. cat >>confdefs.h <<_ACEOF
  11951. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11952. _ACEOF
  11953. if true; then
  11954. HAVE_STRPTIME_TRUE=
  11955. HAVE_STRPTIME_FALSE='#'
  11956. else
  11957. HAVE_STRPTIME_TRUE='#'
  11958. HAVE_STRPTIME_FALSE=
  11959. fi
  11960. else
  11961. if false; then
  11962. HAVE_STRPTIME_TRUE=
  11963. HAVE_STRPTIME_FALSE='#'
  11964. else
  11965. HAVE_STRPTIME_TRUE='#'
  11966. HAVE_STRPTIME_FALSE=
  11967. fi
  11968. fi
  11969. done
  11970. for ac_func in timegm
  11971. do
  11972. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11973. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11974. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11975. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11976. echo $ECHO_N "(cached) $ECHO_C" >&6
  11977. else
  11978. cat >conftest.$ac_ext <<_ACEOF
  11979. /* confdefs.h. */
  11980. _ACEOF
  11981. cat confdefs.h >>conftest.$ac_ext
  11982. cat >>conftest.$ac_ext <<_ACEOF
  11983. /* end confdefs.h. */
  11984. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11985. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11986. #define $ac_func innocuous_$ac_func
  11987. /* System header to define __stub macros and hopefully few prototypes,
  11988. which can conflict with char $ac_func (); below.
  11989. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11990. <limits.h> exists even on freestanding compilers. */
  11991. #ifdef __STDC__
  11992. # include <limits.h>
  11993. #else
  11994. # include <assert.h>
  11995. #endif
  11996. #undef $ac_func
  11997. /* Override any GCC internal prototype to avoid an error.
  11998. Use char because int might match the return type of a GCC
  11999. builtin and then its argument prototype would still apply. */
  12000. #ifdef __cplusplus
  12001. extern "C"
  12002. #endif
  12003. char $ac_func ();
  12004. /* The GNU C library defines this for functions which it implements
  12005. to always fail with ENOSYS. Some functions are actually named
  12006. something starting with __ and the normal name is an alias. */
  12007. #if defined __stub_$ac_func || defined __stub___$ac_func
  12008. choke me
  12009. #endif
  12010. int
  12011. main ()
  12012. {
  12013. return $ac_func ();
  12014. ;
  12015. return 0;
  12016. }
  12017. _ACEOF
  12018. rm -f conftest.$ac_objext conftest$ac_exeext
  12019. if { (ac_try="$ac_link"
  12020. case "(($ac_try" in
  12021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12022. *) ac_try_echo=$ac_try;;
  12023. esac
  12024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12025. (eval "$ac_link") 2>conftest.er1
  12026. ac_status=$?
  12027. grep -v '^ *+' conftest.er1 >conftest.err
  12028. rm -f conftest.er1
  12029. cat conftest.err >&5
  12030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12031. (exit $ac_status); } && {
  12032. test -z "$ac_c_werror_flag" ||
  12033. test ! -s conftest.err
  12034. } && test -s conftest$ac_exeext &&
  12035. $as_test_x conftest$ac_exeext; then
  12036. eval "$as_ac_var=yes"
  12037. else
  12038. echo "$as_me: failed program was:" >&5
  12039. sed 's/^/| /' conftest.$ac_ext >&5
  12040. eval "$as_ac_var=no"
  12041. fi
  12042. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12043. conftest$ac_exeext conftest.$ac_ext
  12044. fi
  12045. ac_res=`eval echo '${'$as_ac_var'}'`
  12046. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12047. echo "${ECHO_T}$ac_res" >&6; }
  12048. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12049. cat >>confdefs.h <<_ACEOF
  12050. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12051. _ACEOF
  12052. if true; then
  12053. HAVE_TIMEGM_TRUE=
  12054. HAVE_TIMEGM_FALSE='#'
  12055. else
  12056. HAVE_TIMEGM_TRUE='#'
  12057. HAVE_TIMEGM_FALSE=
  12058. fi
  12059. else
  12060. if false; then
  12061. HAVE_TIMEGM_TRUE=
  12062. HAVE_TIMEGM_FALSE='#'
  12063. else
  12064. HAVE_TIMEGM_TRUE='#'
  12065. HAVE_TIMEGM_FALSE=
  12066. fi
  12067. fi
  12068. done
  12069. case "$target" in
  12070. *mingw*)
  12071. if true; then
  12072. HAVE_GETADDRINFO_TRUE=
  12073. HAVE_GETADDRINFO_FALSE='#'
  12074. else
  12075. HAVE_GETADDRINFO_TRUE='#'
  12076. HAVE_GETADDRINFO_FALSE=
  12077. fi
  12078. if false; then
  12079. HAVE_GAI_STRERROR_TRUE=
  12080. HAVE_GAI_STRERROR_FALSE='#'
  12081. else
  12082. HAVE_GAI_STRERROR_TRUE='#'
  12083. HAVE_GAI_STRERROR_FALSE=
  12084. fi
  12085. ;;
  12086. esac
  12087. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  12088. cat >confcache <<\_ACEOF
  12089. # This file is a shell script that caches the results of configure
  12090. # tests run on this system so they can be shared between configure
  12091. # scripts and configure runs, see configure's option --config-cache.
  12092. # It is not useful on other systems. If it contains results you don't
  12093. # want to keep, you may remove or edit it.
  12094. #
  12095. # config.status only pays attention to the cache file if you give it
  12096. # the --recheck option to rerun configure.
  12097. #
  12098. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12099. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12100. # following values.
  12101. _ACEOF
  12102. # The following way of writing the cache mishandles newlines in values,
  12103. # but we know of no workaround that is simple, portable, and efficient.
  12104. # So, we kill variables containing newlines.
  12105. # Ultrix sh set writes to stderr and can't be redirected directly,
  12106. # and sets the high bit in the cache file unless we assign to the vars.
  12107. (
  12108. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12109. eval ac_val=\$$ac_var
  12110. case $ac_val in #(
  12111. *${as_nl}*)
  12112. case $ac_var in #(
  12113. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12114. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12115. esac
  12116. case $ac_var in #(
  12117. _ | IFS | as_nl) ;; #(
  12118. *) $as_unset $ac_var ;;
  12119. esac ;;
  12120. esac
  12121. done
  12122. (set) 2>&1 |
  12123. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12124. *${as_nl}ac_space=\ *)
  12125. # `set' does not quote correctly, so add quotes (double-quote
  12126. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12127. sed -n \
  12128. "s/'/'\\\\''/g;
  12129. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12130. ;; #(
  12131. *)
  12132. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12133. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12134. ;;
  12135. esac |
  12136. sort
  12137. ) |
  12138. sed '
  12139. /^ac_cv_env_/b end
  12140. t clear
  12141. :clear
  12142. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12143. t end
  12144. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12145. :end' >>confcache
  12146. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12147. if test -w "$cache_file"; then
  12148. test "x$cache_file" != "x/dev/null" &&
  12149. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12150. echo "$as_me: updating cache $cache_file" >&6;}
  12151. cat confcache >$cache_file
  12152. else
  12153. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12154. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12155. fi
  12156. fi
  12157. rm -f confcache
  12158. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12159. # Let make expand exec_prefix.
  12160. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12161. DEFS=-DHAVE_CONFIG_H
  12162. ac_libobjs=
  12163. ac_ltlibobjs=
  12164. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12165. # 1. Remove the extension, and $U if already installed.
  12166. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12167. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12168. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12169. # will be set to the directory where LIBOBJS objects are built.
  12170. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12171. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12172. done
  12173. LIBOBJS=$ac_libobjs
  12174. LTLIBOBJS=$ac_ltlibobjs
  12175. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12176. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12177. Usually this means the macro was only invoked conditionally." >&5
  12178. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12179. Usually this means the macro was only invoked conditionally." >&2;}
  12180. { (exit 1); exit 1; }; }
  12181. fi
  12182. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12183. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  12184. Usually this means the macro was only invoked conditionally." >&5
  12185. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  12186. Usually this means the macro was only invoked conditionally." >&2;}
  12187. { (exit 1); exit 1; }; }
  12188. fi
  12189. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12190. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12191. Usually this means the macro was only invoked conditionally." >&5
  12192. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12193. Usually this means the macro was only invoked conditionally." >&2;}
  12194. { (exit 1); exit 1; }; }
  12195. fi
  12196. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12197. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12198. Usually this means the macro was only invoked conditionally." >&5
  12199. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12200. Usually this means the macro was only invoked conditionally." >&2;}
  12201. { (exit 1); exit 1; }; }
  12202. fi
  12203. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12204. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12205. Usually this means the macro was only invoked conditionally." >&5
  12206. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12207. Usually this means the macro was only invoked conditionally." >&2;}
  12208. { (exit 1); exit 1; }; }
  12209. fi
  12210. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12211. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12212. Usually this means the macro was only invoked conditionally." >&5
  12213. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12214. Usually this means the macro was only invoked conditionally." >&2;}
  12215. { (exit 1); exit 1; }; }
  12216. fi
  12217. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12218. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12219. Usually this means the macro was only invoked conditionally." >&5
  12220. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12221. Usually this means the macro was only invoked conditionally." >&2;}
  12222. { (exit 1); exit 1; }; }
  12223. fi
  12224. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12225. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12226. Usually this means the macro was only invoked conditionally." >&5
  12227. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12228. Usually this means the macro was only invoked conditionally." >&2;}
  12229. { (exit 1); exit 1; }; }
  12230. fi
  12231. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12232. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12233. Usually this means the macro was only invoked conditionally." >&5
  12234. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12235. Usually this means the macro was only invoked conditionally." >&2;}
  12236. { (exit 1); exit 1; }; }
  12237. fi
  12238. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12239. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12240. Usually this means the macro was only invoked conditionally." >&5
  12241. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12242. Usually this means the macro was only invoked conditionally." >&2;}
  12243. { (exit 1); exit 1; }; }
  12244. fi
  12245. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12246. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12247. Usually this means the macro was only invoked conditionally." >&5
  12248. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12249. Usually this means the macro was only invoked conditionally." >&2;}
  12250. { (exit 1); exit 1; }; }
  12251. fi
  12252. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12253. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12254. Usually this means the macro was only invoked conditionally." >&5
  12255. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12256. Usually this means the macro was only invoked conditionally." >&2;}
  12257. { (exit 1); exit 1; }; }
  12258. fi
  12259. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12260. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12261. Usually this means the macro was only invoked conditionally." >&5
  12262. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12263. Usually this means the macro was only invoked conditionally." >&2;}
  12264. { (exit 1); exit 1; }; }
  12265. fi
  12266. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12267. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12268. Usually this means the macro was only invoked conditionally." >&5
  12269. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12270. Usually this means the macro was only invoked conditionally." >&2;}
  12271. { (exit 1); exit 1; }; }
  12272. fi
  12273. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12274. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12275. Usually this means the macro was only invoked conditionally." >&5
  12276. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12277. Usually this means the macro was only invoked conditionally." >&2;}
  12278. { (exit 1); exit 1; }; }
  12279. fi
  12280. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12281. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12282. Usually this means the macro was only invoked conditionally." >&5
  12283. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12284. Usually this means the macro was only invoked conditionally." >&2;}
  12285. { (exit 1); exit 1; }; }
  12286. fi
  12287. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12288. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12289. Usually this means the macro was only invoked conditionally." >&5
  12290. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12291. Usually this means the macro was only invoked conditionally." >&2;}
  12292. { (exit 1); exit 1; }; }
  12293. fi
  12294. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12295. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12296. Usually this means the macro was only invoked conditionally." >&5
  12297. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12298. Usually this means the macro was only invoked conditionally." >&2;}
  12299. { (exit 1); exit 1; }; }
  12300. fi
  12301. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12302. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12303. Usually this means the macro was only invoked conditionally." >&5
  12304. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12305. Usually this means the macro was only invoked conditionally." >&2;}
  12306. { (exit 1); exit 1; }; }
  12307. fi
  12308. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12309. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12310. Usually this means the macro was only invoked conditionally." >&5
  12311. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12312. Usually this means the macro was only invoked conditionally." >&2;}
  12313. { (exit 1); exit 1; }; }
  12314. fi
  12315. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12316. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12317. Usually this means the macro was only invoked conditionally." >&5
  12318. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12319. Usually this means the macro was only invoked conditionally." >&2;}
  12320. { (exit 1); exit 1; }; }
  12321. fi
  12322. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12323. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12324. Usually this means the macro was only invoked conditionally." >&5
  12325. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12326. Usually this means the macro was only invoked conditionally." >&2;}
  12327. { (exit 1); exit 1; }; }
  12328. fi
  12329. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12330. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12331. Usually this means the macro was only invoked conditionally." >&5
  12332. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12333. Usually this means the macro was only invoked conditionally." >&2;}
  12334. { (exit 1); exit 1; }; }
  12335. fi
  12336. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12337. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12338. Usually this means the macro was only invoked conditionally." >&5
  12339. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12340. Usually this means the macro was only invoked conditionally." >&2;}
  12341. { (exit 1); exit 1; }; }
  12342. fi
  12343. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12344. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12345. Usually this means the macro was only invoked conditionally." >&5
  12346. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12347. Usually this means the macro was only invoked conditionally." >&2;}
  12348. { (exit 1); exit 1; }; }
  12349. fi
  12350. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12351. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12352. Usually this means the macro was only invoked conditionally." >&5
  12353. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12354. Usually this means the macro was only invoked conditionally." >&2;}
  12355. { (exit 1); exit 1; }; }
  12356. fi
  12357. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12358. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12359. Usually this means the macro was only invoked conditionally." >&5
  12360. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12361. Usually this means the macro was only invoked conditionally." >&2;}
  12362. { (exit 1); exit 1; }; }
  12363. fi
  12364. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12365. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12366. Usually this means the macro was only invoked conditionally." >&5
  12367. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12368. Usually this means the macro was only invoked conditionally." >&2;}
  12369. { (exit 1); exit 1; }; }
  12370. fi
  12371. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12372. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12373. Usually this means the macro was only invoked conditionally." >&5
  12374. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12375. Usually this means the macro was only invoked conditionally." >&2;}
  12376. { (exit 1); exit 1; }; }
  12377. fi
  12378. : ${CONFIG_STATUS=./config.status}
  12379. ac_clean_files_save=$ac_clean_files
  12380. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12381. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12382. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12383. cat >$CONFIG_STATUS <<_ACEOF
  12384. #! $SHELL
  12385. # Generated by $as_me.
  12386. # Run this file to recreate the current configuration.
  12387. # Compiler output produced by configure, useful for debugging
  12388. # configure, is in config.log if it exists.
  12389. debug=false
  12390. ac_cs_recheck=false
  12391. ac_cs_silent=false
  12392. SHELL=\${CONFIG_SHELL-$SHELL}
  12393. _ACEOF
  12394. cat >>$CONFIG_STATUS <<\_ACEOF
  12395. ## --------------------- ##
  12396. ## M4sh Initialization. ##
  12397. ## --------------------- ##
  12398. # Be more Bourne compatible
  12399. DUALCASE=1; export DUALCASE # for MKS sh
  12400. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12401. emulate sh
  12402. NULLCMD=:
  12403. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12404. # is contrary to our usage. Disable this feature.
  12405. alias -g '${1+"$@"}'='"$@"'
  12406. setopt NO_GLOB_SUBST
  12407. else
  12408. case `(set -o) 2>/dev/null` in
  12409. *posix*) set -o posix ;;
  12410. esac
  12411. fi
  12412. # PATH needs CR
  12413. # Avoid depending upon Character Ranges.
  12414. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12415. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12416. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12417. as_cr_digits='0123456789'
  12418. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12419. # The user is always right.
  12420. if test "${PATH_SEPARATOR+set}" != set; then
  12421. echo "#! /bin/sh" >conf$$.sh
  12422. echo "exit 0" >>conf$$.sh
  12423. chmod +x conf$$.sh
  12424. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12425. PATH_SEPARATOR=';'
  12426. else
  12427. PATH_SEPARATOR=:
  12428. fi
  12429. rm -f conf$$.sh
  12430. fi
  12431. # Support unset when possible.
  12432. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12433. as_unset=unset
  12434. else
  12435. as_unset=false
  12436. fi
  12437. # IFS
  12438. # We need space, tab and new line, in precisely that order. Quoting is
  12439. # there to prevent editors from complaining about space-tab.
  12440. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12441. # splitting by setting IFS to empty value.)
  12442. as_nl='
  12443. '
  12444. IFS=" "" $as_nl"
  12445. # Find who we are. Look in the path if we contain no directory separator.
  12446. case $0 in
  12447. *[\\/]* ) as_myself=$0 ;;
  12448. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12449. for as_dir in $PATH
  12450. do
  12451. IFS=$as_save_IFS
  12452. test -z "$as_dir" && as_dir=.
  12453. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12454. done
  12455. IFS=$as_save_IFS
  12456. ;;
  12457. esac
  12458. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12459. # in which case we are not to be found in the path.
  12460. if test "x$as_myself" = x; then
  12461. as_myself=$0
  12462. fi
  12463. if test ! -f "$as_myself"; then
  12464. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12465. { (exit 1); exit 1; }
  12466. fi
  12467. # Work around bugs in pre-3.0 UWIN ksh.
  12468. for as_var in ENV MAIL MAILPATH
  12469. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12470. done
  12471. PS1='$ '
  12472. PS2='> '
  12473. PS4='+ '
  12474. # NLS nuisances.
  12475. for as_var in \
  12476. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12477. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12478. LC_TELEPHONE LC_TIME
  12479. do
  12480. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12481. eval $as_var=C; export $as_var
  12482. else
  12483. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12484. fi
  12485. done
  12486. # Required to use basename.
  12487. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12488. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12489. as_expr=expr
  12490. else
  12491. as_expr=false
  12492. fi
  12493. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12494. as_basename=basename
  12495. else
  12496. as_basename=false
  12497. fi
  12498. # Name of the executable.
  12499. as_me=`$as_basename -- "$0" ||
  12500. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12501. X"$0" : 'X\(//\)$' \| \
  12502. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12503. echo X/"$0" |
  12504. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12505. s//\1/
  12506. q
  12507. }
  12508. /^X\/\(\/\/\)$/{
  12509. s//\1/
  12510. q
  12511. }
  12512. /^X\/\(\/\).*/{
  12513. s//\1/
  12514. q
  12515. }
  12516. s/.*/./; q'`
  12517. # CDPATH.
  12518. $as_unset CDPATH
  12519. as_lineno_1=$LINENO
  12520. as_lineno_2=$LINENO
  12521. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12522. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12523. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12524. # uniformly replaced by the line number. The first 'sed' inserts a
  12525. # line-number line after each line using $LINENO; the second 'sed'
  12526. # does the real work. The second script uses 'N' to pair each
  12527. # line-number line with the line containing $LINENO, and appends
  12528. # trailing '-' during substitution so that $LINENO is not a special
  12529. # case at line end.
  12530. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12531. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12532. # E. McMahon (1931-1989) for sed's syntax. :-)
  12533. sed -n '
  12534. p
  12535. /[$]LINENO/=
  12536. ' <$as_myself |
  12537. sed '
  12538. s/[$]LINENO.*/&-/
  12539. t lineno
  12540. b
  12541. :lineno
  12542. N
  12543. :loop
  12544. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12545. t loop
  12546. s/-\n.*//
  12547. ' >$as_me.lineno &&
  12548. chmod +x "$as_me.lineno" ||
  12549. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12550. { (exit 1); exit 1; }; }
  12551. # Don't try to exec as it changes $[0], causing all sort of problems
  12552. # (the dirname of $[0] is not the place where we might find the
  12553. # original and so on. Autoconf is especially sensitive to this).
  12554. . "./$as_me.lineno"
  12555. # Exit status is that of the last command.
  12556. exit
  12557. }
  12558. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12559. as_dirname=dirname
  12560. else
  12561. as_dirname=false
  12562. fi
  12563. ECHO_C= ECHO_N= ECHO_T=
  12564. case `echo -n x` in
  12565. -n*)
  12566. case `echo 'x\c'` in
  12567. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12568. *) ECHO_C='\c';;
  12569. esac;;
  12570. *)
  12571. ECHO_N='-n';;
  12572. esac
  12573. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12574. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12575. as_expr=expr
  12576. else
  12577. as_expr=false
  12578. fi
  12579. rm -f conf$$ conf$$.exe conf$$.file
  12580. if test -d conf$$.dir; then
  12581. rm -f conf$$.dir/conf$$.file
  12582. else
  12583. rm -f conf$$.dir
  12584. mkdir conf$$.dir
  12585. fi
  12586. echo >conf$$.file
  12587. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12588. as_ln_s='ln -s'
  12589. # ... but there are two gotchas:
  12590. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12591. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12592. # In both cases, we have to default to `cp -p'.
  12593. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12594. as_ln_s='cp -p'
  12595. elif ln conf$$.file conf$$ 2>/dev/null; then
  12596. as_ln_s=ln
  12597. else
  12598. as_ln_s='cp -p'
  12599. fi
  12600. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12601. rmdir conf$$.dir 2>/dev/null
  12602. if mkdir -p . 2>/dev/null; then
  12603. as_mkdir_p=:
  12604. else
  12605. test -d ./-p && rmdir ./-p
  12606. as_mkdir_p=false
  12607. fi
  12608. if test -x / >/dev/null 2>&1; then
  12609. as_test_x='test -x'
  12610. else
  12611. if ls -dL / >/dev/null 2>&1; then
  12612. as_ls_L_option=L
  12613. else
  12614. as_ls_L_option=
  12615. fi
  12616. as_test_x='
  12617. eval sh -c '\''
  12618. if test -d "$1"; then
  12619. test -d "$1/.";
  12620. else
  12621. case $1 in
  12622. -*)set "./$1";;
  12623. esac;
  12624. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12625. ???[sx]*):;;*)false;;esac;fi
  12626. '\'' sh
  12627. '
  12628. fi
  12629. as_executable_p=$as_test_x
  12630. # Sed expression to map a string onto a valid CPP name.
  12631. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12632. # Sed expression to map a string onto a valid variable name.
  12633. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12634. exec 6>&1
  12635. # Save the log message, to keep $[0] and so on meaningful, and to
  12636. # report actual input values of CONFIG_FILES etc. instead of their
  12637. # values after options handling.
  12638. ac_log="
  12639. This file was extended by aria2c $as_me 0.12.0rc, which was
  12640. generated by GNU Autoconf 2.61. Invocation command line was
  12641. CONFIG_FILES = $CONFIG_FILES
  12642. CONFIG_HEADERS = $CONFIG_HEADERS
  12643. CONFIG_LINKS = $CONFIG_LINKS
  12644. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12645. $ $0 $@
  12646. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12647. "
  12648. _ACEOF
  12649. cat >>$CONFIG_STATUS <<_ACEOF
  12650. # Files that config.status was made for.
  12651. config_files="$ac_config_files"
  12652. config_headers="$ac_config_headers"
  12653. config_commands="$ac_config_commands"
  12654. _ACEOF
  12655. cat >>$CONFIG_STATUS <<\_ACEOF
  12656. ac_cs_usage="\
  12657. \`$as_me' instantiates files from templates according to the
  12658. current configuration.
  12659. Usage: $0 [OPTIONS] [FILE]...
  12660. -h, --help print this help, then exit
  12661. -V, --version print version number and configuration settings, then exit
  12662. -q, --quiet do not print progress messages
  12663. -d, --debug don't remove temporary files
  12664. --recheck update $as_me by reconfiguring in the same conditions
  12665. --file=FILE[:TEMPLATE]
  12666. instantiate the configuration file FILE
  12667. --header=FILE[:TEMPLATE]
  12668. instantiate the configuration header FILE
  12669. Configuration files:
  12670. $config_files
  12671. Configuration headers:
  12672. $config_headers
  12673. Configuration commands:
  12674. $config_commands
  12675. Report bugs to <bug-autoconf@gnu.org>."
  12676. _ACEOF
  12677. cat >>$CONFIG_STATUS <<_ACEOF
  12678. ac_cs_version="\\
  12679. aria2c config.status 0.12.0rc
  12680. configured by $0, generated by GNU Autoconf 2.61,
  12681. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12682. Copyright (C) 2006 Free Software Foundation, Inc.
  12683. This config.status script is free software; the Free Software Foundation
  12684. gives unlimited permission to copy, distribute and modify it."
  12685. ac_pwd='$ac_pwd'
  12686. srcdir='$srcdir'
  12687. INSTALL='$INSTALL'
  12688. _ACEOF
  12689. cat >>$CONFIG_STATUS <<\_ACEOF
  12690. # If no file are specified by the user, then we need to provide default
  12691. # value. By we need to know if files were specified by the user.
  12692. ac_need_defaults=:
  12693. while test $# != 0
  12694. do
  12695. case $1 in
  12696. --*=*)
  12697. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12698. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12699. ac_shift=:
  12700. ;;
  12701. *)
  12702. ac_option=$1
  12703. ac_optarg=$2
  12704. ac_shift=shift
  12705. ;;
  12706. esac
  12707. case $ac_option in
  12708. # Handling of the options.
  12709. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12710. ac_cs_recheck=: ;;
  12711. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12712. echo "$ac_cs_version"; exit ;;
  12713. --debug | --debu | --deb | --de | --d | -d )
  12714. debug=: ;;
  12715. --file | --fil | --fi | --f )
  12716. $ac_shift
  12717. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12718. ac_need_defaults=false;;
  12719. --header | --heade | --head | --hea )
  12720. $ac_shift
  12721. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12722. ac_need_defaults=false;;
  12723. --he | --h)
  12724. # Conflict between --help and --header
  12725. { echo "$as_me: error: ambiguous option: $1
  12726. Try \`$0 --help' for more information." >&2
  12727. { (exit 1); exit 1; }; };;
  12728. --help | --hel | -h )
  12729. echo "$ac_cs_usage"; exit ;;
  12730. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12731. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12732. ac_cs_silent=: ;;
  12733. # This is an error.
  12734. -*) { echo "$as_me: error: unrecognized option: $1
  12735. Try \`$0 --help' for more information." >&2
  12736. { (exit 1); exit 1; }; } ;;
  12737. *) ac_config_targets="$ac_config_targets $1"
  12738. ac_need_defaults=false ;;
  12739. esac
  12740. shift
  12741. done
  12742. ac_configure_extra_args=
  12743. if $ac_cs_silent; then
  12744. exec 6>/dev/null
  12745. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12746. fi
  12747. _ACEOF
  12748. cat >>$CONFIG_STATUS <<_ACEOF
  12749. if \$ac_cs_recheck; then
  12750. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12751. CONFIG_SHELL=$SHELL
  12752. export CONFIG_SHELL
  12753. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12754. fi
  12755. _ACEOF
  12756. cat >>$CONFIG_STATUS <<\_ACEOF
  12757. exec 5>>config.log
  12758. {
  12759. echo
  12760. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12761. ## Running $as_me. ##
  12762. _ASBOX
  12763. echo "$ac_log"
  12764. } >&5
  12765. _ACEOF
  12766. cat >>$CONFIG_STATUS <<_ACEOF
  12767. #
  12768. # INIT-COMMANDS
  12769. #
  12770. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12771. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12772. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12773. # from automake.
  12774. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12775. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12776. LINGUAS="${LINGUAS-%UNSET%}"
  12777. _ACEOF
  12778. cat >>$CONFIG_STATUS <<\_ACEOF
  12779. # Handling of arguments.
  12780. for ac_config_target in $ac_config_targets
  12781. do
  12782. case $ac_config_target in
  12783. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12784. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12785. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12786. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12787. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12788. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12789. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12790. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12791. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12792. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12793. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12794. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12795. { (exit 1); exit 1; }; };;
  12796. esac
  12797. done
  12798. # If the user did not use the arguments to specify the items to instantiate,
  12799. # then the envvar interface is used. Set only those that are not.
  12800. # We use the long form for the default assignment because of an extremely
  12801. # bizarre bug on SunOS 4.1.3.
  12802. if $ac_need_defaults; then
  12803. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12804. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12805. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12806. fi
  12807. # Have a temporary directory for convenience. Make it in the build tree
  12808. # simply because there is no reason against having it here, and in addition,
  12809. # creating and moving files from /tmp can sometimes cause problems.
  12810. # Hook for its removal unless debugging.
  12811. # Note that there is a small window in which the directory will not be cleaned:
  12812. # after its creation but before its name has been assigned to `$tmp'.
  12813. $debug ||
  12814. {
  12815. tmp=
  12816. trap 'exit_status=$?
  12817. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12818. ' 0
  12819. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12820. }
  12821. # Create a (secure) tmp directory for tmp files.
  12822. {
  12823. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12824. test -n "$tmp" && test -d "$tmp"
  12825. } ||
  12826. {
  12827. tmp=./conf$$-$RANDOM
  12828. (umask 077 && mkdir "$tmp")
  12829. } ||
  12830. {
  12831. echo "$me: cannot create a temporary directory in ." >&2
  12832. { (exit 1); exit 1; }
  12833. }
  12834. #
  12835. # Set up the sed scripts for CONFIG_FILES section.
  12836. #
  12837. # No need to generate the scripts if there are no CONFIG_FILES.
  12838. # This happens for instance when ./config.status config.h
  12839. if test -n "$CONFIG_FILES"; then
  12840. _ACEOF
  12841. ac_delim='%!_!# '
  12842. for ac_last_try in false false false false false :; do
  12843. cat >conf$$subs.sed <<_ACEOF
  12844. SHELL!$SHELL$ac_delim
  12845. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12846. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12847. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12848. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12849. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12850. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12851. exec_prefix!$exec_prefix$ac_delim
  12852. prefix!$prefix$ac_delim
  12853. program_transform_name!$program_transform_name$ac_delim
  12854. bindir!$bindir$ac_delim
  12855. sbindir!$sbindir$ac_delim
  12856. libexecdir!$libexecdir$ac_delim
  12857. datarootdir!$datarootdir$ac_delim
  12858. datadir!$datadir$ac_delim
  12859. sysconfdir!$sysconfdir$ac_delim
  12860. sharedstatedir!$sharedstatedir$ac_delim
  12861. localstatedir!$localstatedir$ac_delim
  12862. includedir!$includedir$ac_delim
  12863. oldincludedir!$oldincludedir$ac_delim
  12864. docdir!$docdir$ac_delim
  12865. infodir!$infodir$ac_delim
  12866. htmldir!$htmldir$ac_delim
  12867. dvidir!$dvidir$ac_delim
  12868. pdfdir!$pdfdir$ac_delim
  12869. psdir!$psdir$ac_delim
  12870. libdir!$libdir$ac_delim
  12871. localedir!$localedir$ac_delim
  12872. mandir!$mandir$ac_delim
  12873. DEFS!$DEFS$ac_delim
  12874. ECHO_C!$ECHO_C$ac_delim
  12875. ECHO_N!$ECHO_N$ac_delim
  12876. ECHO_T!$ECHO_T$ac_delim
  12877. LIBS!$LIBS$ac_delim
  12878. build_alias!$build_alias$ac_delim
  12879. host_alias!$host_alias$ac_delim
  12880. target_alias!$target_alias$ac_delim
  12881. build!$build$ac_delim
  12882. build_cpu!$build_cpu$ac_delim
  12883. build_vendor!$build_vendor$ac_delim
  12884. build_os!$build_os$ac_delim
  12885. host!$host$ac_delim
  12886. host_cpu!$host_cpu$ac_delim
  12887. host_vendor!$host_vendor$ac_delim
  12888. host_os!$host_os$ac_delim
  12889. target!$target$ac_delim
  12890. target_cpu!$target_cpu$ac_delim
  12891. target_vendor!$target_vendor$ac_delim
  12892. target_os!$target_os$ac_delim
  12893. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12894. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12895. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12896. CYGPATH_W!$CYGPATH_W$ac_delim
  12897. PACKAGE!$PACKAGE$ac_delim
  12898. VERSION!$VERSION$ac_delim
  12899. ACLOCAL!$ACLOCAL$ac_delim
  12900. AUTOCONF!$AUTOCONF$ac_delim
  12901. AUTOMAKE!$AUTOMAKE$ac_delim
  12902. AUTOHEADER!$AUTOHEADER$ac_delim
  12903. MAKEINFO!$MAKEINFO$ac_delim
  12904. install_sh!$install_sh$ac_delim
  12905. STRIP!$STRIP$ac_delim
  12906. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12907. mkdir_p!$mkdir_p$ac_delim
  12908. AWK!$AWK$ac_delim
  12909. SET_MAKE!$SET_MAKE$ac_delim
  12910. am__leading_dot!$am__leading_dot$ac_delim
  12911. AMTAR!$AMTAR$ac_delim
  12912. am__tar!$am__tar$ac_delim
  12913. am__untar!$am__untar$ac_delim
  12914. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12915. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12916. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12917. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  12918. CXX!$CXX$ac_delim
  12919. CXXFLAGS!$CXXFLAGS$ac_delim
  12920. LDFLAGS!$LDFLAGS$ac_delim
  12921. CPPFLAGS!$CPPFLAGS$ac_delim
  12922. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12923. EXEEXT!$EXEEXT$ac_delim
  12924. OBJEXT!$OBJEXT$ac_delim
  12925. DEPDIR!$DEPDIR$ac_delim
  12926. am__include!$am__include$ac_delim
  12927. am__quote!$am__quote$ac_delim
  12928. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12929. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12930. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12931. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12932. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12933. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12934. CC!$CC$ac_delim
  12935. CFLAGS!$CFLAGS$ac_delim
  12936. ac_ct_CC!$ac_ct_CC$ac_delim
  12937. CCDEPMODE!$CCDEPMODE$ac_delim
  12938. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12939. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12940. RANLIB!$RANLIB$ac_delim
  12941. _ACEOF
  12942. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12943. break
  12944. elif $ac_last_try; then
  12945. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12946. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12947. { (exit 1); exit 1; }; }
  12948. else
  12949. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12950. fi
  12951. done
  12952. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12953. if test -n "$ac_eof"; then
  12954. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12955. ac_eof=`expr $ac_eof + 1`
  12956. fi
  12957. cat >>$CONFIG_STATUS <<_ACEOF
  12958. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12959. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12960. _ACEOF
  12961. sed '
  12962. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12963. s/^/s,@/; s/!/@,|#_!!_#|/
  12964. :n
  12965. t n
  12966. s/'"$ac_delim"'$/,g/; t
  12967. s/$/\\/; p
  12968. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12969. ' >>$CONFIG_STATUS <conf$$subs.sed
  12970. rm -f conf$$subs.sed
  12971. cat >>$CONFIG_STATUS <<_ACEOF
  12972. CEOF$ac_eof
  12973. _ACEOF
  12974. ac_delim='%!_!# '
  12975. for ac_last_try in false false false false false :; do
  12976. cat >conf$$subs.sed <<_ACEOF
  12977. YACC!$YACC$ac_delim
  12978. YFLAGS!$YFLAGS$ac_delim
  12979. XML2_CONFIG!$XML2_CONFIG$ac_delim
  12980. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  12981. XML_LIBS!$XML_LIBS$ac_delim
  12982. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  12983. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  12984. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  12985. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  12986. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  12987. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  12988. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  12989. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  12990. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  12991. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  12992. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  12993. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  12994. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  12995. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  12996. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  12997. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  12998. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  12999. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  13000. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  13001. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  13002. ALLOCA!$ALLOCA$ac_delim
  13003. CPP!$CPP$ac_delim
  13004. GREP!$GREP$ac_delim
  13005. EGREP!$EGREP$ac_delim
  13006. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  13007. USE_NLS!$USE_NLS$ac_delim
  13008. MSGFMT!$MSGFMT$ac_delim
  13009. GMSGFMT!$GMSGFMT$ac_delim
  13010. XGETTEXT!$XGETTEXT$ac_delim
  13011. MSGMERGE!$MSGMERGE$ac_delim
  13012. GLIBC21!$GLIBC21$ac_delim
  13013. LIBICONV!$LIBICONV$ac_delim
  13014. LTLIBICONV!$LTLIBICONV$ac_delim
  13015. INTLBISON!$INTLBISON$ac_delim
  13016. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  13017. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  13018. CATOBJEXT!$CATOBJEXT$ac_delim
  13019. DATADIRNAME!$DATADIRNAME$ac_delim
  13020. INSTOBJEXT!$INSTOBJEXT$ac_delim
  13021. GENCAT!$GENCAT$ac_delim
  13022. INTLOBJS!$INTLOBJS$ac_delim
  13023. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  13024. INTLLIBS!$INTLLIBS$ac_delim
  13025. LIBINTL!$LIBINTL$ac_delim
  13026. LTLIBINTL!$LTLIBINTL$ac_delim
  13027. POSUB!$POSUB$ac_delim
  13028. LIBOBJS!$LIBOBJS$ac_delim
  13029. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  13030. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  13031. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  13032. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  13033. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  13034. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  13035. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  13036. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  13037. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  13038. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  13039. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  13040. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  13041. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  13042. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  13043. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  13044. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  13045. LTLIBOBJS!$LTLIBOBJS$ac_delim
  13046. _ACEOF
  13047. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
  13048. break
  13049. elif $ac_last_try; then
  13050. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13051. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13052. { (exit 1); exit 1; }; }
  13053. else
  13054. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13055. fi
  13056. done
  13057. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  13058. if test -n "$ac_eof"; then
  13059. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  13060. ac_eof=`expr $ac_eof + 1`
  13061. fi
  13062. cat >>$CONFIG_STATUS <<_ACEOF
  13063. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  13064. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  13065. _ACEOF
  13066. sed '
  13067. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  13068. s/^/s,@/; s/!/@,|#_!!_#|/
  13069. :n
  13070. t n
  13071. s/'"$ac_delim"'$/,g/; t
  13072. s/$/\\/; p
  13073. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  13074. ' >>$CONFIG_STATUS <conf$$subs.sed
  13075. rm -f conf$$subs.sed
  13076. cat >>$CONFIG_STATUS <<_ACEOF
  13077. :end
  13078. s/|#_!!_#|//g
  13079. CEOF$ac_eof
  13080. _ACEOF
  13081. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13082. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13083. # trailing colons and then remove the whole line if VPATH becomes empty
  13084. # (actually we leave an empty line to preserve line numbers).
  13085. if test "x$srcdir" = x.; then
  13086. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13087. s/:*\$(srcdir):*/:/
  13088. s/:*\${srcdir}:*/:/
  13089. s/:*@srcdir@:*/:/
  13090. s/^\([^=]*=[ ]*\):*/\1/
  13091. s/:*$//
  13092. s/^[^=]*=[ ]*$//
  13093. }'
  13094. fi
  13095. cat >>$CONFIG_STATUS <<\_ACEOF
  13096. fi # test -n "$CONFIG_FILES"
  13097. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  13098. do
  13099. case $ac_tag in
  13100. :[FHLC]) ac_mode=$ac_tag; continue;;
  13101. esac
  13102. case $ac_mode$ac_tag in
  13103. :[FHL]*:*);;
  13104. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  13105. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  13106. { (exit 1); exit 1; }; };;
  13107. :[FH]-) ac_tag=-:-;;
  13108. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13109. esac
  13110. ac_save_IFS=$IFS
  13111. IFS=:
  13112. set x $ac_tag
  13113. IFS=$ac_save_IFS
  13114. shift
  13115. ac_file=$1
  13116. shift
  13117. case $ac_mode in
  13118. :L) ac_source=$1;;
  13119. :[FH])
  13120. ac_file_inputs=
  13121. for ac_f
  13122. do
  13123. case $ac_f in
  13124. -) ac_f="$tmp/stdin";;
  13125. *) # Look for the file first in the build tree, then in the source tree
  13126. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13127. # because $ac_f cannot contain `:'.
  13128. test -f "$ac_f" ||
  13129. case $ac_f in
  13130. [\\/$]*) false;;
  13131. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13132. esac ||
  13133. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13134. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13135. { (exit 1); exit 1; }; };;
  13136. esac
  13137. ac_file_inputs="$ac_file_inputs $ac_f"
  13138. done
  13139. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13140. # use $as_me), people would be surprised to read:
  13141. # /* config.h. Generated by config.status. */
  13142. configure_input="Generated from "`IFS=:
  13143. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  13144. if test x"$ac_file" != x-; then
  13145. configure_input="$ac_file. $configure_input"
  13146. { echo "$as_me:$LINENO: creating $ac_file" >&5
  13147. echo "$as_me: creating $ac_file" >&6;}
  13148. fi
  13149. case $ac_tag in
  13150. *:-:* | *:-) cat >"$tmp/stdin";;
  13151. esac
  13152. ;;
  13153. esac
  13154. ac_dir=`$as_dirname -- "$ac_file" ||
  13155. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13156. X"$ac_file" : 'X\(//\)[^/]' \| \
  13157. X"$ac_file" : 'X\(//\)$' \| \
  13158. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13159. echo X"$ac_file" |
  13160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13161. s//\1/
  13162. q
  13163. }
  13164. /^X\(\/\/\)[^/].*/{
  13165. s//\1/
  13166. q
  13167. }
  13168. /^X\(\/\/\)$/{
  13169. s//\1/
  13170. q
  13171. }
  13172. /^X\(\/\).*/{
  13173. s//\1/
  13174. q
  13175. }
  13176. s/.*/./; q'`
  13177. { as_dir="$ac_dir"
  13178. case $as_dir in #(
  13179. -*) as_dir=./$as_dir;;
  13180. esac
  13181. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13182. as_dirs=
  13183. while :; do
  13184. case $as_dir in #(
  13185. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13186. *) as_qdir=$as_dir;;
  13187. esac
  13188. as_dirs="'$as_qdir' $as_dirs"
  13189. as_dir=`$as_dirname -- "$as_dir" ||
  13190. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13191. X"$as_dir" : 'X\(//\)[^/]' \| \
  13192. X"$as_dir" : 'X\(//\)$' \| \
  13193. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13194. echo X"$as_dir" |
  13195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13196. s//\1/
  13197. q
  13198. }
  13199. /^X\(\/\/\)[^/].*/{
  13200. s//\1/
  13201. q
  13202. }
  13203. /^X\(\/\/\)$/{
  13204. s//\1/
  13205. q
  13206. }
  13207. /^X\(\/\).*/{
  13208. s//\1/
  13209. q
  13210. }
  13211. s/.*/./; q'`
  13212. test -d "$as_dir" && break
  13213. done
  13214. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13215. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13216. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13217. { (exit 1); exit 1; }; }; }
  13218. ac_builddir=.
  13219. case "$ac_dir" in
  13220. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13221. *)
  13222. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13223. # A ".." for each directory in $ac_dir_suffix.
  13224. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  13225. case $ac_top_builddir_sub in
  13226. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13227. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13228. esac ;;
  13229. esac
  13230. ac_abs_top_builddir=$ac_pwd
  13231. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13232. # for backward compatibility:
  13233. ac_top_builddir=$ac_top_build_prefix
  13234. case $srcdir in
  13235. .) # We are building in place.
  13236. ac_srcdir=.
  13237. ac_top_srcdir=$ac_top_builddir_sub
  13238. ac_abs_top_srcdir=$ac_pwd ;;
  13239. [\\/]* | ?:[\\/]* ) # Absolute name.
  13240. ac_srcdir=$srcdir$ac_dir_suffix;
  13241. ac_top_srcdir=$srcdir
  13242. ac_abs_top_srcdir=$srcdir ;;
  13243. *) # Relative name.
  13244. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13245. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13246. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13247. esac
  13248. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13249. case $ac_mode in
  13250. :F)
  13251. #
  13252. # CONFIG_FILE
  13253. #
  13254. case $INSTALL in
  13255. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13256. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13257. esac
  13258. _ACEOF
  13259. cat >>$CONFIG_STATUS <<\_ACEOF
  13260. # If the template does not know about datarootdir, expand it.
  13261. # FIXME: This hack should be removed a few years after 2.60.
  13262. ac_datarootdir_hack=; ac_datarootdir_seen=
  13263. case `sed -n '/datarootdir/ {
  13264. p
  13265. q
  13266. }
  13267. /@datadir@/p
  13268. /@docdir@/p
  13269. /@infodir@/p
  13270. /@localedir@/p
  13271. /@mandir@/p
  13272. ' $ac_file_inputs` in
  13273. *datarootdir*) ac_datarootdir_seen=yes;;
  13274. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13275. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13276. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13277. _ACEOF
  13278. cat >>$CONFIG_STATUS <<_ACEOF
  13279. ac_datarootdir_hack='
  13280. s&@datadir@&$datadir&g
  13281. s&@docdir@&$docdir&g
  13282. s&@infodir@&$infodir&g
  13283. s&@localedir@&$localedir&g
  13284. s&@mandir@&$mandir&g
  13285. s&\\\${datarootdir}&$datarootdir&g' ;;
  13286. esac
  13287. _ACEOF
  13288. # Neutralize VPATH when `$srcdir' = `.'.
  13289. # Shell code in configure.ac might set extrasub.
  13290. # FIXME: do we really want to maintain this feature?
  13291. cat >>$CONFIG_STATUS <<_ACEOF
  13292. sed "$ac_vpsub
  13293. $extrasub
  13294. _ACEOF
  13295. cat >>$CONFIG_STATUS <<\_ACEOF
  13296. :t
  13297. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13298. s&@configure_input@&$configure_input&;t t
  13299. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13300. s&@srcdir@&$ac_srcdir&;t t
  13301. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13302. s&@top_srcdir@&$ac_top_srcdir&;t t
  13303. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13304. s&@builddir@&$ac_builddir&;t t
  13305. s&@abs_builddir@&$ac_abs_builddir&;t t
  13306. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13307. s&@INSTALL@&$ac_INSTALL&;t t
  13308. $ac_datarootdir_hack
  13309. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13310. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13311. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13312. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13313. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13314. which seems to be undefined. Please make sure it is defined." >&5
  13315. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13316. which seems to be undefined. Please make sure it is defined." >&2;}
  13317. rm -f "$tmp/stdin"
  13318. case $ac_file in
  13319. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13320. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13321. esac
  13322. ;;
  13323. :H)
  13324. #
  13325. # CONFIG_HEADER
  13326. #
  13327. _ACEOF
  13328. # Transform confdefs.h into a sed script `conftest.defines', that
  13329. # substitutes the proper values into config.h.in to produce config.h.
  13330. rm -f conftest.defines conftest.tail
  13331. # First, append a space to every undef/define line, to ease matching.
  13332. echo 's/$/ /' >conftest.defines
  13333. # Then, protect against being on the right side of a sed subst, or in
  13334. # an unquoted here document, in config.status. If some macros were
  13335. # called several times there might be several #defines for the same
  13336. # symbol, which is useless. But do not sort them, since the last
  13337. # AC_DEFINE must be honored.
  13338. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13339. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13340. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13341. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13342. # just an empty string.
  13343. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13344. ac_dB='\\)[ (].*,\\1define\\2'
  13345. ac_dC=' '
  13346. ac_dD=' ,'
  13347. uniq confdefs.h |
  13348. sed -n '
  13349. t rset
  13350. :rset
  13351. s/^[ ]*#[ ]*define[ ][ ]*//
  13352. t ok
  13353. d
  13354. :ok
  13355. s/[\\&,]/\\&/g
  13356. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13357. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13358. ' >>conftest.defines
  13359. # Remove the space that was appended to ease matching.
  13360. # Then replace #undef with comments. This is necessary, for
  13361. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13362. # on some systems where configure will not decide to define it.
  13363. # (The regexp can be short, since the line contains either #define or #undef.)
  13364. echo 's/ $//
  13365. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13366. # Break up conftest.defines:
  13367. ac_max_sed_lines=50
  13368. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13369. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13370. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13371. # et cetera.
  13372. ac_in='$ac_file_inputs'
  13373. ac_out='"$tmp/out1"'
  13374. ac_nxt='"$tmp/out2"'
  13375. while :
  13376. do
  13377. # Write a here document:
  13378. cat >>$CONFIG_STATUS <<_ACEOF
  13379. # First, check the format of the line:
  13380. cat >"\$tmp/defines.sed" <<\\CEOF
  13381. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13382. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13383. b
  13384. :def
  13385. _ACEOF
  13386. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13387. echo 'CEOF
  13388. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13389. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13390. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13391. grep . conftest.tail >/dev/null || break
  13392. rm -f conftest.defines
  13393. mv conftest.tail conftest.defines
  13394. done
  13395. rm -f conftest.defines conftest.tail
  13396. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13397. cat >>$CONFIG_STATUS <<\_ACEOF
  13398. if test x"$ac_file" != x-; then
  13399. echo "/* $configure_input */" >"$tmp/config.h"
  13400. cat "$ac_result" >>"$tmp/config.h"
  13401. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13402. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13403. echo "$as_me: $ac_file is unchanged" >&6;}
  13404. else
  13405. rm -f $ac_file
  13406. mv "$tmp/config.h" $ac_file
  13407. fi
  13408. else
  13409. echo "/* $configure_input */"
  13410. cat "$ac_result"
  13411. fi
  13412. rm -f "$tmp/out12"
  13413. # Compute $ac_file's index in $config_headers.
  13414. _am_stamp_count=1
  13415. for _am_header in $config_headers :; do
  13416. case $_am_header in
  13417. $ac_file | $ac_file:* )
  13418. break ;;
  13419. * )
  13420. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13421. esac
  13422. done
  13423. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13424. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13425. X$ac_file : 'X\(//\)[^/]' \| \
  13426. X$ac_file : 'X\(//\)$' \| \
  13427. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13428. echo X$ac_file |
  13429. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13430. s//\1/
  13431. q
  13432. }
  13433. /^X\(\/\/\)[^/].*/{
  13434. s//\1/
  13435. q
  13436. }
  13437. /^X\(\/\/\)$/{
  13438. s//\1/
  13439. q
  13440. }
  13441. /^X\(\/\).*/{
  13442. s//\1/
  13443. q
  13444. }
  13445. s/.*/./; q'`/stamp-h$_am_stamp_count
  13446. ;;
  13447. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13448. echo "$as_me: executing $ac_file commands" >&6;}
  13449. ;;
  13450. esac
  13451. case $ac_file$ac_mode in
  13452. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13453. # Strip MF so we end up with the name of the file.
  13454. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13455. # Check whether this is an Automake generated Makefile or not.
  13456. # We used to match only the files named `Makefile.in', but
  13457. # some people rename them; so instead we look at the file content.
  13458. # Grep'ing the first line is not enough: some people post-process
  13459. # each Makefile.in and add a new line on top of each file to say so.
  13460. # So let's grep whole file.
  13461. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13462. dirpart=`$as_dirname -- "$mf" ||
  13463. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13464. X"$mf" : 'X\(//\)[^/]' \| \
  13465. X"$mf" : 'X\(//\)$' \| \
  13466. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13467. echo X"$mf" |
  13468. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13469. s//\1/
  13470. q
  13471. }
  13472. /^X\(\/\/\)[^/].*/{
  13473. s//\1/
  13474. q
  13475. }
  13476. /^X\(\/\/\)$/{
  13477. s//\1/
  13478. q
  13479. }
  13480. /^X\(\/\).*/{
  13481. s//\1/
  13482. q
  13483. }
  13484. s/.*/./; q'`
  13485. else
  13486. continue
  13487. fi
  13488. # Extract the definition of DEPDIR, am__include, and am__quote
  13489. # from the Makefile without running `make'.
  13490. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13491. test -z "$DEPDIR" && continue
  13492. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13493. test -z "am__include" && continue
  13494. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13495. # When using ansi2knr, U may be empty or an underscore; expand it
  13496. U=`sed -n 's/^U = //p' < "$mf"`
  13497. # Find all dependency output files, they are included files with
  13498. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13499. # simplest approach to changing $(DEPDIR) to its actual value in the
  13500. # expansion.
  13501. for file in `sed -n "
  13502. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13503. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13504. # Make sure the directory exists.
  13505. test -f "$dirpart/$file" && continue
  13506. fdir=`$as_dirname -- "$file" ||
  13507. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13508. X"$file" : 'X\(//\)[^/]' \| \
  13509. X"$file" : 'X\(//\)$' \| \
  13510. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13511. echo X"$file" |
  13512. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13513. s//\1/
  13514. q
  13515. }
  13516. /^X\(\/\/\)[^/].*/{
  13517. s//\1/
  13518. q
  13519. }
  13520. /^X\(\/\/\)$/{
  13521. s//\1/
  13522. q
  13523. }
  13524. /^X\(\/\).*/{
  13525. s//\1/
  13526. q
  13527. }
  13528. s/.*/./; q'`
  13529. { as_dir=$dirpart/$fdir
  13530. case $as_dir in #(
  13531. -*) as_dir=./$as_dir;;
  13532. esac
  13533. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13534. as_dirs=
  13535. while :; do
  13536. case $as_dir in #(
  13537. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13538. *) as_qdir=$as_dir;;
  13539. esac
  13540. as_dirs="'$as_qdir' $as_dirs"
  13541. as_dir=`$as_dirname -- "$as_dir" ||
  13542. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13543. X"$as_dir" : 'X\(//\)[^/]' \| \
  13544. X"$as_dir" : 'X\(//\)$' \| \
  13545. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13546. echo X"$as_dir" |
  13547. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13548. s//\1/
  13549. q
  13550. }
  13551. /^X\(\/\/\)[^/].*/{
  13552. s//\1/
  13553. q
  13554. }
  13555. /^X\(\/\/\)$/{
  13556. s//\1/
  13557. q
  13558. }
  13559. /^X\(\/\).*/{
  13560. s//\1/
  13561. q
  13562. }
  13563. s/.*/./; q'`
  13564. test -d "$as_dir" && break
  13565. done
  13566. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13567. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13568. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13569. { (exit 1); exit 1; }; }; }
  13570. # echo "creating $dirpart/$file"
  13571. echo '# dummy' > "$dirpart/$file"
  13572. done
  13573. done
  13574. ;;
  13575. "default-1":C)
  13576. for ac_file in $CONFIG_FILES; do
  13577. # Support "outfile[:infile[:infile...]]"
  13578. case "$ac_file" in
  13579. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13580. esac
  13581. # PO directories have a Makefile.in generated from Makefile.in.in.
  13582. case "$ac_file" in */Makefile.in)
  13583. # Adjust a relative srcdir.
  13584. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13585. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13586. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13587. # In autoconf-2.13 it is called $ac_given_srcdir.
  13588. # In autoconf-2.50 it is called $srcdir.
  13589. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13590. case "$ac_given_srcdir" in
  13591. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13592. /*) top_srcdir="$ac_given_srcdir" ;;
  13593. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13594. esac
  13595. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13596. rm -f "$ac_dir/POTFILES"
  13597. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13598. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13599. POMAKEFILEDEPS="POTFILES.in"
  13600. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13601. # on $ac_dir but don't depend on user-specified configuration
  13602. # parameters.
  13603. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13604. # The LINGUAS file contains the set of available languages.
  13605. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13606. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13607. fi
  13608. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13609. # Hide the ALL_LINGUAS assigment from automake.
  13610. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13611. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13612. else
  13613. # The set of available languages was given in configure.in.
  13614. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13615. fi
  13616. case "$ac_given_srcdir" in
  13617. .) srcdirpre= ;;
  13618. *) srcdirpre='$(srcdir)/' ;;
  13619. esac
  13620. POFILES=
  13621. GMOFILES=
  13622. UPDATEPOFILES=
  13623. DUMMYPOFILES=
  13624. for lang in $ALL_LINGUAS; do
  13625. POFILES="$POFILES $srcdirpre$lang.po"
  13626. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13627. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13628. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13629. done
  13630. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13631. # environment variable.
  13632. INST_LINGUAS=
  13633. if test -n "$ALL_LINGUAS"; then
  13634. for presentlang in $ALL_LINGUAS; do
  13635. useit=no
  13636. if test "%UNSET%" != "$LINGUAS"; then
  13637. desiredlanguages="$LINGUAS"
  13638. else
  13639. desiredlanguages="$ALL_LINGUAS"
  13640. fi
  13641. for desiredlang in $desiredlanguages; do
  13642. # Use the presentlang catalog if desiredlang is
  13643. # a. equal to presentlang, or
  13644. # b. a variant of presentlang (because in this case,
  13645. # presentlang can be used as a fallback for messages
  13646. # which are not translated in the desiredlang catalog).
  13647. case "$desiredlang" in
  13648. "$presentlang"*) useit=yes;;
  13649. esac
  13650. done
  13651. if test $useit = yes; then
  13652. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13653. fi
  13654. done
  13655. fi
  13656. CATALOGS=
  13657. if test -n "$INST_LINGUAS"; then
  13658. for lang in $INST_LINGUAS; do
  13659. CATALOGS="$CATALOGS $lang.gmo"
  13660. done
  13661. fi
  13662. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13663. 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"
  13664. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13665. if test -f "$f"; then
  13666. case "$f" in
  13667. *.orig | *.bak | *~) ;;
  13668. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13669. esac
  13670. fi
  13671. done
  13672. fi
  13673. ;;
  13674. esac
  13675. done ;;
  13676. esac
  13677. done # for ac_tag
  13678. { (exit 0); exit 0; }
  13679. _ACEOF
  13680. chmod +x $CONFIG_STATUS
  13681. ac_clean_files=$ac_clean_files_save
  13682. # configure is writing to config.log, and then calls config.status.
  13683. # config.status does its own redirection, appending to config.log.
  13684. # Unfortunately, on DOS this fails, as config.log is still kept open
  13685. # by configure, so config.status won't be able to write to it; its
  13686. # output is simply discarded. So we exec the FD to /dev/null,
  13687. # effectively closing config.log, so it can be properly (re)opened and
  13688. # appended to by config.status. When coming back to configure, we
  13689. # need to make the FD available again.
  13690. if test "$no_create" != yes; then
  13691. ac_cs_success=:
  13692. ac_config_status_args=
  13693. test "$silent" = yes &&
  13694. ac_config_status_args="$ac_config_status_args --quiet"
  13695. exec 5>/dev/null
  13696. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13697. exec 5>>config.log
  13698. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13699. # would make configure fail if this is the last instruction.
  13700. $ac_cs_success || { (exit 1); exit 1; }
  13701. fi
  13702. echo " "
  13703. echo "Build: $build"
  13704. echo "Target: $target"
  13705. echo "Install prefix: $prefix"
  13706. echo "CFLAGS: $CFLAGS"
  13707. echo "CPPFLAGS: $CPPFLAGS"
  13708. echo "LDFLAGS: $LDFLAGS"
  13709. echo "LIBS: $LIBS"
  13710. echo "GnuTLS: $have_libgnutls"
  13711. echo "OpenSSL: $have_openssl"
  13712. echo "LibXML2: $have_libxml2"
  13713. echo "LibAres: $have_libares"
  13714. echo "LibCares: $have_libcares"
  13715. echo "Bittorrent: $enable_bittorrent"
  13716. echo "Metalink: $enable_metalink"