configure 430 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.11.1+1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.11.1+1'
  496. PACKAGE_STRING='aria2c 0.11.1+1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. 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. LTLIBOBJS'
  698. ac_subst_files=''
  699. ac_precious_vars='build_alias
  700. host_alias
  701. target_alias
  702. CXX
  703. CXXFLAGS
  704. LDFLAGS
  705. LIBS
  706. CPPFLAGS
  707. CCC
  708. CC
  709. CFLAGS
  710. YACC
  711. YFLAGS
  712. CPP'
  713. # Initialize some variables set by options.
  714. ac_init_help=
  715. ac_init_version=false
  716. # The variables have the same names as the options, with
  717. # dashes changed to underlines.
  718. cache_file=/dev/null
  719. exec_prefix=NONE
  720. no_create=
  721. no_recursion=
  722. prefix=NONE
  723. program_prefix=NONE
  724. program_suffix=NONE
  725. program_transform_name=s,x,x,
  726. silent=
  727. site=
  728. srcdir=
  729. verbose=
  730. x_includes=NONE
  731. x_libraries=NONE
  732. # Installation directory options.
  733. # These are left unexpanded so users can "make install exec_prefix=/foo"
  734. # and all the variables that are supposed to be based on exec_prefix
  735. # by default will actually change.
  736. # Use braces instead of parens because sh, perl, etc. also accept them.
  737. # (The list follows the same order as the GNU Coding Standards.)
  738. bindir='${exec_prefix}/bin'
  739. sbindir='${exec_prefix}/sbin'
  740. libexecdir='${exec_prefix}/libexec'
  741. datarootdir='${prefix}/share'
  742. datadir='${datarootdir}'
  743. sysconfdir='${prefix}/etc'
  744. sharedstatedir='${prefix}/com'
  745. localstatedir='${prefix}/var'
  746. includedir='${prefix}/include'
  747. oldincludedir='/usr/include'
  748. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  749. infodir='${datarootdir}/info'
  750. htmldir='${docdir}'
  751. dvidir='${docdir}'
  752. pdfdir='${docdir}'
  753. psdir='${docdir}'
  754. libdir='${exec_prefix}/lib'
  755. localedir='${datarootdir}/locale'
  756. mandir='${datarootdir}/man'
  757. ac_prev=
  758. ac_dashdash=
  759. for ac_option
  760. do
  761. # If the previous option needs an argument, assign it.
  762. if test -n "$ac_prev"; then
  763. eval $ac_prev=\$ac_option
  764. ac_prev=
  765. continue
  766. fi
  767. case $ac_option in
  768. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  769. *) ac_optarg=yes ;;
  770. esac
  771. # Accept the important Cygnus configure options, so we can diagnose typos.
  772. case $ac_dashdash$ac_option in
  773. --)
  774. ac_dashdash=yes ;;
  775. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  776. ac_prev=bindir ;;
  777. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  778. bindir=$ac_optarg ;;
  779. -build | --build | --buil | --bui | --bu)
  780. ac_prev=build_alias ;;
  781. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  782. build_alias=$ac_optarg ;;
  783. -cache-file | --cache-file | --cache-fil | --cache-fi \
  784. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  785. ac_prev=cache_file ;;
  786. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  787. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  788. cache_file=$ac_optarg ;;
  789. --config-cache | -C)
  790. cache_file=config.cache ;;
  791. -datadir | --datadir | --datadi | --datad)
  792. ac_prev=datadir ;;
  793. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  794. datadir=$ac_optarg ;;
  795. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  796. | --dataroo | --dataro | --datar)
  797. ac_prev=datarootdir ;;
  798. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  799. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  800. datarootdir=$ac_optarg ;;
  801. -disable-* | --disable-*)
  802. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  805. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  806. { (exit 1); exit 1; }; }
  807. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  808. eval enable_$ac_feature=no ;;
  809. -docdir | --docdir | --docdi | --doc | --do)
  810. ac_prev=docdir ;;
  811. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  812. docdir=$ac_optarg ;;
  813. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  814. ac_prev=dvidir ;;
  815. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  816. dvidir=$ac_optarg ;;
  817. -enable-* | --enable-*)
  818. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  819. # Reject names that are not valid shell variable names.
  820. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  821. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  822. { (exit 1); exit 1; }; }
  823. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  824. eval enable_$ac_feature=\$ac_optarg ;;
  825. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  826. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  827. | --exec | --exe | --ex)
  828. ac_prev=exec_prefix ;;
  829. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  830. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  831. | --exec=* | --exe=* | --ex=*)
  832. exec_prefix=$ac_optarg ;;
  833. -gas | --gas | --ga | --g)
  834. # Obsolete; use --with-gas.
  835. with_gas=yes ;;
  836. -help | --help | --hel | --he | -h)
  837. ac_init_help=long ;;
  838. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  839. ac_init_help=recursive ;;
  840. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  841. ac_init_help=short ;;
  842. -host | --host | --hos | --ho)
  843. ac_prev=host_alias ;;
  844. -host=* | --host=* | --hos=* | --ho=*)
  845. host_alias=$ac_optarg ;;
  846. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  847. ac_prev=htmldir ;;
  848. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  849. | --ht=*)
  850. htmldir=$ac_optarg ;;
  851. -includedir | --includedir | --includedi | --included | --include \
  852. | --includ | --inclu | --incl | --inc)
  853. ac_prev=includedir ;;
  854. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  855. | --includ=* | --inclu=* | --incl=* | --inc=*)
  856. includedir=$ac_optarg ;;
  857. -infodir | --infodir | --infodi | --infod | --info | --inf)
  858. ac_prev=infodir ;;
  859. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  860. infodir=$ac_optarg ;;
  861. -libdir | --libdir | --libdi | --libd)
  862. ac_prev=libdir ;;
  863. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  864. libdir=$ac_optarg ;;
  865. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  866. | --libexe | --libex | --libe)
  867. ac_prev=libexecdir ;;
  868. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  869. | --libexe=* | --libex=* | --libe=*)
  870. libexecdir=$ac_optarg ;;
  871. -localedir | --localedir | --localedi | --localed | --locale)
  872. ac_prev=localedir ;;
  873. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  874. localedir=$ac_optarg ;;
  875. -localstatedir | --localstatedir | --localstatedi | --localstated \
  876. | --localstate | --localstat | --localsta | --localst | --locals)
  877. ac_prev=localstatedir ;;
  878. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  879. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  880. localstatedir=$ac_optarg ;;
  881. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  882. ac_prev=mandir ;;
  883. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  884. mandir=$ac_optarg ;;
  885. -nfp | --nfp | --nf)
  886. # Obsolete; use --without-fp.
  887. with_fp=no ;;
  888. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  889. | --no-cr | --no-c | -n)
  890. no_create=yes ;;
  891. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  892. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  893. no_recursion=yes ;;
  894. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  895. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  896. | --oldin | --oldi | --old | --ol | --o)
  897. ac_prev=oldincludedir ;;
  898. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  899. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  900. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  901. oldincludedir=$ac_optarg ;;
  902. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  903. ac_prev=prefix ;;
  904. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  905. prefix=$ac_optarg ;;
  906. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  907. | --program-pre | --program-pr | --program-p)
  908. ac_prev=program_prefix ;;
  909. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  910. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  911. program_prefix=$ac_optarg ;;
  912. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  913. | --program-suf | --program-su | --program-s)
  914. ac_prev=program_suffix ;;
  915. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  916. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  917. program_suffix=$ac_optarg ;;
  918. -program-transform-name | --program-transform-name \
  919. | --program-transform-nam | --program-transform-na \
  920. | --program-transform-n | --program-transform- \
  921. | --program-transform | --program-transfor \
  922. | --program-transfo | --program-transf \
  923. | --program-trans | --program-tran \
  924. | --progr-tra | --program-tr | --program-t)
  925. ac_prev=program_transform_name ;;
  926. -program-transform-name=* | --program-transform-name=* \
  927. | --program-transform-nam=* | --program-transform-na=* \
  928. | --program-transform-n=* | --program-transform-=* \
  929. | --program-transform=* | --program-transfor=* \
  930. | --program-transfo=* | --program-transf=* \
  931. | --program-trans=* | --program-tran=* \
  932. | --progr-tra=* | --program-tr=* | --program-t=*)
  933. program_transform_name=$ac_optarg ;;
  934. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  935. ac_prev=pdfdir ;;
  936. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  937. pdfdir=$ac_optarg ;;
  938. -psdir | --psdir | --psdi | --psd | --ps)
  939. ac_prev=psdir ;;
  940. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  941. psdir=$ac_optarg ;;
  942. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  943. | -silent | --silent | --silen | --sile | --sil)
  944. silent=yes ;;
  945. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  946. ac_prev=sbindir ;;
  947. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  948. | --sbi=* | --sb=*)
  949. sbindir=$ac_optarg ;;
  950. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  951. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  952. | --sharedst | --shareds | --shared | --share | --shar \
  953. | --sha | --sh)
  954. ac_prev=sharedstatedir ;;
  955. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  956. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  957. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  958. | --sha=* | --sh=*)
  959. sharedstatedir=$ac_optarg ;;
  960. -site | --site | --sit)
  961. ac_prev=site ;;
  962. -site=* | --site=* | --sit=*)
  963. site=$ac_optarg ;;
  964. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  965. ac_prev=srcdir ;;
  966. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  967. srcdir=$ac_optarg ;;
  968. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  969. | --syscon | --sysco | --sysc | --sys | --sy)
  970. ac_prev=sysconfdir ;;
  971. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  972. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  973. sysconfdir=$ac_optarg ;;
  974. -target | --target | --targe | --targ | --tar | --ta | --t)
  975. ac_prev=target_alias ;;
  976. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  977. target_alias=$ac_optarg ;;
  978. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  979. verbose=yes ;;
  980. -version | --version | --versio | --versi | --vers | -V)
  981. ac_init_version=: ;;
  982. -with-* | --with-*)
  983. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  986. { echo "$as_me: error: invalid package name: $ac_package" >&2
  987. { (exit 1); exit 1; }; }
  988. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  989. eval with_$ac_package=\$ac_optarg ;;
  990. -without-* | --without-*)
  991. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  994. { echo "$as_me: error: invalid package name: $ac_package" >&2
  995. { (exit 1); exit 1; }; }
  996. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  997. eval with_$ac_package=no ;;
  998. --x)
  999. # Obsolete; use --with-x.
  1000. with_x=yes ;;
  1001. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1002. | --x-incl | --x-inc | --x-in | --x-i)
  1003. ac_prev=x_includes ;;
  1004. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1005. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1006. x_includes=$ac_optarg ;;
  1007. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1008. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1009. ac_prev=x_libraries ;;
  1010. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1011. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1012. x_libraries=$ac_optarg ;;
  1013. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1014. Try \`$0 --help' for more information." >&2
  1015. { (exit 1); exit 1; }; }
  1016. ;;
  1017. *=*)
  1018. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1021. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1022. { (exit 1); exit 1; }; }
  1023. eval $ac_envvar=\$ac_optarg
  1024. export $ac_envvar ;;
  1025. *)
  1026. # FIXME: should be removed in autoconf 3.0.
  1027. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1028. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1029. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1030. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1031. ;;
  1032. esac
  1033. done
  1034. if test -n "$ac_prev"; then
  1035. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1036. { echo "$as_me: error: missing argument to $ac_option" >&2
  1037. { (exit 1); exit 1; }; }
  1038. fi
  1039. # Be sure to have absolute directory names.
  1040. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1041. datadir sysconfdir sharedstatedir localstatedir includedir \
  1042. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1043. libdir localedir mandir
  1044. do
  1045. eval ac_val=\$$ac_var
  1046. case $ac_val in
  1047. [\\/$]* | ?:[\\/]* ) continue;;
  1048. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1049. esac
  1050. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1051. { (exit 1); exit 1; }; }
  1052. done
  1053. # There might be people who depend on the old broken behavior: `$host'
  1054. # used to hold the argument of --host etc.
  1055. # FIXME: To remove some day.
  1056. build=$build_alias
  1057. host=$host_alias
  1058. target=$target_alias
  1059. # FIXME: To remove some day.
  1060. if test "x$host_alias" != x; then
  1061. if test "x$build_alias" = x; then
  1062. cross_compiling=maybe
  1063. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1064. If a cross compiler is detected then cross compile mode will be used." >&2
  1065. elif test "x$build_alias" != "x$host_alias"; then
  1066. cross_compiling=yes
  1067. fi
  1068. fi
  1069. ac_tool_prefix=
  1070. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1071. test "$silent" = yes && exec 6>/dev/null
  1072. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1073. ac_ls_di=`ls -di .` &&
  1074. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1075. { echo "$as_me: error: Working directory cannot be determined" >&2
  1076. { (exit 1); exit 1; }; }
  1077. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1078. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1079. { (exit 1); exit 1; }; }
  1080. # Find the source files, if location was not specified.
  1081. if test -z "$srcdir"; then
  1082. ac_srcdir_defaulted=yes
  1083. # Try the directory containing this script, then the parent directory.
  1084. ac_confdir=`$as_dirname -- "$0" ||
  1085. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1086. X"$0" : 'X\(//\)[^/]' \| \
  1087. X"$0" : 'X\(//\)$' \| \
  1088. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1089. echo X"$0" |
  1090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)[^/].*/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\/\)$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\).*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. s/.*/./; q'`
  1107. srcdir=$ac_confdir
  1108. if test ! -r "$srcdir/$ac_unique_file"; then
  1109. srcdir=..
  1110. fi
  1111. else
  1112. ac_srcdir_defaulted=no
  1113. fi
  1114. if test ! -r "$srcdir/$ac_unique_file"; then
  1115. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1116. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1120. ac_abs_confdir=`(
  1121. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1122. { (exit 1); exit 1; }; }
  1123. pwd)`
  1124. # When building in place, set srcdir=.
  1125. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1126. srcdir=.
  1127. fi
  1128. # Remove unnecessary trailing slashes from srcdir.
  1129. # Double slashes in file names in object file debugging info
  1130. # mess up M-x gdb in Emacs.
  1131. case $srcdir in
  1132. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1133. esac
  1134. for ac_var in $ac_precious_vars; do
  1135. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1136. eval ac_env_${ac_var}_value=\$${ac_var}
  1137. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1138. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1139. done
  1140. #
  1141. # Report the --help message.
  1142. #
  1143. if test "$ac_init_help" = "long"; then
  1144. # Omit some internal or obsolete options to make the list less imposing.
  1145. # This message is too long to be a string in the A/UX 3.1 sh.
  1146. cat <<_ACEOF
  1147. \`configure' configures aria2c 0.11.1+1 to adapt to many kinds of systems.
  1148. Usage: $0 [OPTION]... [VAR=VALUE]...
  1149. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1150. VAR=VALUE. See below for descriptions of some of the useful variables.
  1151. Defaults for the options are specified in brackets.
  1152. Configuration:
  1153. -h, --help display this help and exit
  1154. --help=short display options specific to this package
  1155. --help=recursive display the short help of all the included packages
  1156. -V, --version display version information and exit
  1157. -q, --quiet, --silent do not print \`checking...' messages
  1158. --cache-file=FILE cache test results in FILE [disabled]
  1159. -C, --config-cache alias for \`--cache-file=config.cache'
  1160. -n, --no-create do not create output files
  1161. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1162. Installation directories:
  1163. --prefix=PREFIX install architecture-independent files in PREFIX
  1164. [$ac_default_prefix]
  1165. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1166. [PREFIX]
  1167. By default, \`make install' will install all the files in
  1168. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1169. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1170. for instance \`--prefix=\$HOME'.
  1171. For better control, use the options below.
  1172. Fine tuning of the installation directories:
  1173. --bindir=DIR user executables [EPREFIX/bin]
  1174. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1175. --libexecdir=DIR program executables [EPREFIX/libexec]
  1176. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1177. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1178. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1179. --libdir=DIR object code libraries [EPREFIX/lib]
  1180. --includedir=DIR C header files [PREFIX/include]
  1181. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1182. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1183. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1184. --infodir=DIR info documentation [DATAROOTDIR/info]
  1185. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1186. --mandir=DIR man documentation [DATAROOTDIR/man]
  1187. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1188. --htmldir=DIR html documentation [DOCDIR]
  1189. --dvidir=DIR dvi documentation [DOCDIR]
  1190. --pdfdir=DIR pdf documentation [DOCDIR]
  1191. --psdir=DIR ps documentation [DOCDIR]
  1192. _ACEOF
  1193. cat <<\_ACEOF
  1194. Program names:
  1195. --program-prefix=PREFIX prepend PREFIX to installed program names
  1196. --program-suffix=SUFFIX append SUFFIX to installed program names
  1197. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1198. System types:
  1199. --build=BUILD configure for building on BUILD [guessed]
  1200. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1201. --target=TARGET configure for building compilers for TARGET [HOST]
  1202. _ACEOF
  1203. fi
  1204. if test -n "$ac_init_help"; then
  1205. case $ac_init_help in
  1206. short | recursive ) echo "Configuration of aria2c 0.11.1+1:";;
  1207. esac
  1208. cat <<\_ACEOF
  1209. Optional Features:
  1210. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1211. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1212. --enable-bittorrent enable BitTorrent support. Default: yes
  1213. --enable-metalink enable Metalink support. Default: yes
  1214. --disable-dependency-tracking speeds up one-time build
  1215. --enable-dependency-tracking do not reject slow dependency extractors
  1216. --disable-xmltest Do not try to compile and run a test LIBXML program
  1217. --disable-nls do not use Native Language Support
  1218. --disable-rpath do not hardcode runtime library paths
  1219. Optional Packages:
  1220. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1221. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1222. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1223. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1224. --with-gnutls use gnutls library if installed. Default: yes
  1225. --with-openssl use openssl library if installed. Default: yes
  1226. --with-libxml2 use libxml2 library if installed. Default: yes
  1227. --with-libares use ares library if installed. Default: yes
  1228. --with-libcares use c-ares library if installed. Default: yes
  1229. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1230. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1231. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1232. --with-libgcrypt-prefix=PFX
  1233. prefix where LIBGCRYPT is installed (optional)
  1234. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1235. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1236. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1237. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1238. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1239. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1240. --with-included-gettext use the GNU gettext library included here
  1241. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1242. --without-libintl-prefix don't search for libintl in includedir and libdir
  1243. Some influential environment variables:
  1244. CXX C++ compiler command
  1245. CXXFLAGS C++ compiler flags
  1246. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1247. nonstandard directory <lib dir>
  1248. LIBS libraries to pass to the linker, e.g. -l<library>
  1249. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1250. you have headers in a nonstandard directory <include dir>
  1251. CC C compiler command
  1252. CFLAGS C compiler flags
  1253. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1254. the first program found out of: `bison -y', `byacc', `yacc'.
  1255. YFLAGS The list of arguments that will be passed by default to $YACC.
  1256. This script will default YFLAGS to the empty string to avoid a
  1257. default value of `-d' given by some make applications.
  1258. CPP C preprocessor
  1259. Use these variables to override the choices made by `configure' or to help
  1260. it to find libraries and programs with nonstandard names/locations.
  1261. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1262. _ACEOF
  1263. ac_status=$?
  1264. fi
  1265. if test "$ac_init_help" = "recursive"; then
  1266. # If there are subdirs, report their specific --help.
  1267. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1268. test -d "$ac_dir" || continue
  1269. ac_builddir=.
  1270. case "$ac_dir" in
  1271. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1272. *)
  1273. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1274. # A ".." for each directory in $ac_dir_suffix.
  1275. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1276. case $ac_top_builddir_sub in
  1277. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1278. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1279. esac ;;
  1280. esac
  1281. ac_abs_top_builddir=$ac_pwd
  1282. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1283. # for backward compatibility:
  1284. ac_top_builddir=$ac_top_build_prefix
  1285. case $srcdir in
  1286. .) # We are building in place.
  1287. ac_srcdir=.
  1288. ac_top_srcdir=$ac_top_builddir_sub
  1289. ac_abs_top_srcdir=$ac_pwd ;;
  1290. [\\/]* | ?:[\\/]* ) # Absolute name.
  1291. ac_srcdir=$srcdir$ac_dir_suffix;
  1292. ac_top_srcdir=$srcdir
  1293. ac_abs_top_srcdir=$srcdir ;;
  1294. *) # Relative name.
  1295. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1296. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1297. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1298. esac
  1299. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1300. cd "$ac_dir" || { ac_status=$?; continue; }
  1301. # Check for guested configure.
  1302. if test -f "$ac_srcdir/configure.gnu"; then
  1303. echo &&
  1304. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1305. elif test -f "$ac_srcdir/configure"; then
  1306. echo &&
  1307. $SHELL "$ac_srcdir/configure" --help=recursive
  1308. else
  1309. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1310. fi || ac_status=$?
  1311. cd "$ac_pwd" || { ac_status=$?; break; }
  1312. done
  1313. fi
  1314. test -n "$ac_init_help" && exit $ac_status
  1315. if $ac_init_version; then
  1316. cat <<\_ACEOF
  1317. aria2c configure 0.11.1+1
  1318. generated by GNU Autoconf 2.61
  1319. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1320. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1321. This configure script is free software; the Free Software Foundation
  1322. gives unlimited permission to copy, distribute and modify it.
  1323. _ACEOF
  1324. exit
  1325. fi
  1326. cat >config.log <<_ACEOF
  1327. This file contains any messages produced by compilers while
  1328. running configure, to aid debugging if configure makes a mistake.
  1329. It was created by aria2c $as_me 0.11.1+1, which was
  1330. generated by GNU Autoconf 2.61. Invocation command line was
  1331. $ $0 $@
  1332. _ACEOF
  1333. exec 5>>config.log
  1334. {
  1335. cat <<_ASUNAME
  1336. ## --------- ##
  1337. ## Platform. ##
  1338. ## --------- ##
  1339. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1340. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1341. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1342. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1343. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1344. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1345. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1346. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1347. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1348. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1349. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1350. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1351. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1352. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1353. _ASUNAME
  1354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1355. for as_dir in $PATH
  1356. do
  1357. IFS=$as_save_IFS
  1358. test -z "$as_dir" && as_dir=.
  1359. echo "PATH: $as_dir"
  1360. done
  1361. IFS=$as_save_IFS
  1362. } >&5
  1363. cat >&5 <<_ACEOF
  1364. ## ----------- ##
  1365. ## Core tests. ##
  1366. ## ----------- ##
  1367. _ACEOF
  1368. # Keep a trace of the command line.
  1369. # Strip out --no-create and --no-recursion so they do not pile up.
  1370. # Strip out --silent because we don't want to record it for future runs.
  1371. # Also quote any args containing shell meta-characters.
  1372. # Make two passes to allow for proper duplicate-argument suppression.
  1373. ac_configure_args=
  1374. ac_configure_args0=
  1375. ac_configure_args1=
  1376. ac_must_keep_next=false
  1377. for ac_pass in 1 2
  1378. do
  1379. for ac_arg
  1380. do
  1381. case $ac_arg in
  1382. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1383. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1384. | -silent | --silent | --silen | --sile | --sil)
  1385. continue ;;
  1386. *\'*)
  1387. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1388. esac
  1389. case $ac_pass in
  1390. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1391. 2)
  1392. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1393. if test $ac_must_keep_next = true; then
  1394. ac_must_keep_next=false # Got value, back to normal.
  1395. else
  1396. case $ac_arg in
  1397. *=* | --config-cache | -C | -disable-* | --disable-* \
  1398. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1399. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1400. | -with-* | --with-* | -without-* | --without-* | --x)
  1401. case "$ac_configure_args0 " in
  1402. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1403. esac
  1404. ;;
  1405. -* ) ac_must_keep_next=true ;;
  1406. esac
  1407. fi
  1408. ac_configure_args="$ac_configure_args '$ac_arg'"
  1409. ;;
  1410. esac
  1411. done
  1412. done
  1413. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1414. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1415. # When interrupted or exit'd, cleanup temporary files, and complete
  1416. # config.log. We remove comments because anyway the quotes in there
  1417. # would cause problems or look ugly.
  1418. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1419. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1420. trap 'exit_status=$?
  1421. # Save into config.log some information that might help in debugging.
  1422. {
  1423. echo
  1424. cat <<\_ASBOX
  1425. ## ---------------- ##
  1426. ## Cache variables. ##
  1427. ## ---------------- ##
  1428. _ASBOX
  1429. echo
  1430. # The following way of writing the cache mishandles newlines in values,
  1431. (
  1432. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1433. eval ac_val=\$$ac_var
  1434. case $ac_val in #(
  1435. *${as_nl}*)
  1436. case $ac_var in #(
  1437. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1438. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1439. esac
  1440. case $ac_var in #(
  1441. _ | IFS | as_nl) ;; #(
  1442. *) $as_unset $ac_var ;;
  1443. esac ;;
  1444. esac
  1445. done
  1446. (set) 2>&1 |
  1447. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1448. *${as_nl}ac_space=\ *)
  1449. sed -n \
  1450. "s/'\''/'\''\\\\'\'''\''/g;
  1451. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1452. ;; #(
  1453. *)
  1454. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1455. ;;
  1456. esac |
  1457. sort
  1458. )
  1459. echo
  1460. cat <<\_ASBOX
  1461. ## ----------------- ##
  1462. ## Output variables. ##
  1463. ## ----------------- ##
  1464. _ASBOX
  1465. echo
  1466. for ac_var in $ac_subst_vars
  1467. do
  1468. eval ac_val=\$$ac_var
  1469. case $ac_val in
  1470. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1471. esac
  1472. echo "$ac_var='\''$ac_val'\''"
  1473. done | sort
  1474. echo
  1475. if test -n "$ac_subst_files"; then
  1476. cat <<\_ASBOX
  1477. ## ------------------- ##
  1478. ## File substitutions. ##
  1479. ## ------------------- ##
  1480. _ASBOX
  1481. echo
  1482. for ac_var in $ac_subst_files
  1483. do
  1484. eval ac_val=\$$ac_var
  1485. case $ac_val in
  1486. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1487. esac
  1488. echo "$ac_var='\''$ac_val'\''"
  1489. done | sort
  1490. echo
  1491. fi
  1492. if test -s confdefs.h; then
  1493. cat <<\_ASBOX
  1494. ## ----------- ##
  1495. ## confdefs.h. ##
  1496. ## ----------- ##
  1497. _ASBOX
  1498. echo
  1499. cat confdefs.h
  1500. echo
  1501. fi
  1502. test "$ac_signal" != 0 &&
  1503. echo "$as_me: caught signal $ac_signal"
  1504. echo "$as_me: exit $exit_status"
  1505. } >&5
  1506. rm -f core *.core core.conftest.* &&
  1507. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1508. exit $exit_status
  1509. ' 0
  1510. for ac_signal in 1 2 13 15; do
  1511. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1512. done
  1513. ac_signal=0
  1514. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1515. rm -f -r conftest* confdefs.h
  1516. # Predefined preprocessor variables.
  1517. cat >>confdefs.h <<_ACEOF
  1518. #define PACKAGE_NAME "$PACKAGE_NAME"
  1519. _ACEOF
  1520. cat >>confdefs.h <<_ACEOF
  1521. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1522. _ACEOF
  1523. cat >>confdefs.h <<_ACEOF
  1524. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1525. _ACEOF
  1526. cat >>confdefs.h <<_ACEOF
  1527. #define PACKAGE_STRING "$PACKAGE_STRING"
  1528. _ACEOF
  1529. cat >>confdefs.h <<_ACEOF
  1530. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1531. _ACEOF
  1532. # Let the site file select an alternate cache file if it wants to.
  1533. # Prefer explicitly selected file to automatically selected ones.
  1534. if test -n "$CONFIG_SITE"; then
  1535. set x "$CONFIG_SITE"
  1536. elif test "x$prefix" != xNONE; then
  1537. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1538. else
  1539. set x "$ac_default_prefix/share/config.site" \
  1540. "$ac_default_prefix/etc/config.site"
  1541. fi
  1542. shift
  1543. for ac_site_file
  1544. do
  1545. if test -r "$ac_site_file"; then
  1546. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1547. echo "$as_me: loading site script $ac_site_file" >&6;}
  1548. sed 's/^/| /' "$ac_site_file" >&5
  1549. . "$ac_site_file"
  1550. fi
  1551. done
  1552. if test -r "$cache_file"; then
  1553. # Some versions of bash will fail to source /dev/null (special
  1554. # files actually), so we avoid doing that.
  1555. if test -f "$cache_file"; then
  1556. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1557. echo "$as_me: loading cache $cache_file" >&6;}
  1558. case $cache_file in
  1559. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1560. *) . "./$cache_file";;
  1561. esac
  1562. fi
  1563. else
  1564. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1565. echo "$as_me: creating cache $cache_file" >&6;}
  1566. >$cache_file
  1567. fi
  1568. # Check that the precious variables saved in the cache have kept the same
  1569. # value.
  1570. ac_cache_corrupted=false
  1571. for ac_var in $ac_precious_vars; do
  1572. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1573. eval ac_new_set=\$ac_env_${ac_var}_set
  1574. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1575. eval ac_new_val=\$ac_env_${ac_var}_value
  1576. case $ac_old_set,$ac_new_set in
  1577. set,)
  1578. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1579. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1580. ac_cache_corrupted=: ;;
  1581. ,set)
  1582. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1583. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1584. ac_cache_corrupted=: ;;
  1585. ,);;
  1586. *)
  1587. if test "x$ac_old_val" != "x$ac_new_val"; then
  1588. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1589. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1590. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1591. echo "$as_me: former value: $ac_old_val" >&2;}
  1592. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1593. echo "$as_me: current value: $ac_new_val" >&2;}
  1594. ac_cache_corrupted=:
  1595. fi;;
  1596. esac
  1597. # Pass precious variables to config.status.
  1598. if test "$ac_new_set" = set; then
  1599. case $ac_new_val in
  1600. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1601. *) ac_arg=$ac_var=$ac_new_val ;;
  1602. esac
  1603. case " $ac_configure_args " in
  1604. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1605. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1606. esac
  1607. fi
  1608. done
  1609. if $ac_cache_corrupted; then
  1610. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1611. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1612. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1613. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1614. { (exit 1); exit 1; }; }
  1615. fi
  1616. ac_ext=c
  1617. ac_cpp='$CPP $CPPFLAGS'
  1618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1621. ac_aux_dir=
  1622. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1623. if test -f "$ac_dir/install-sh"; then
  1624. ac_aux_dir=$ac_dir
  1625. ac_install_sh="$ac_aux_dir/install-sh -c"
  1626. break
  1627. elif test -f "$ac_dir/install.sh"; then
  1628. ac_aux_dir=$ac_dir
  1629. ac_install_sh="$ac_aux_dir/install.sh -c"
  1630. break
  1631. elif test -f "$ac_dir/shtool"; then
  1632. ac_aux_dir=$ac_dir
  1633. ac_install_sh="$ac_aux_dir/shtool install -c"
  1634. break
  1635. fi
  1636. done
  1637. if test -z "$ac_aux_dir"; then
  1638. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1639. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1640. { (exit 1); exit 1; }; }
  1641. fi
  1642. # These three variables are undocumented and unsupported,
  1643. # and are intended to be withdrawn in a future Autoconf release.
  1644. # They can cause serious problems if a builder's source tree is in a directory
  1645. # whose full name contains unusual characters.
  1646. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1647. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1648. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1649. # Make sure we can run config.sub.
  1650. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1651. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1652. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. { echo "$as_me:$LINENO: checking build system type" >&5
  1655. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1656. if test "${ac_cv_build+set}" = set; then
  1657. echo $ECHO_N "(cached) $ECHO_C" >&6
  1658. else
  1659. ac_build_alias=$build_alias
  1660. test "x$ac_build_alias" = x &&
  1661. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1662. test "x$ac_build_alias" = x &&
  1663. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1664. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1665. { (exit 1); exit 1; }; }
  1666. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1667. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1668. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1669. { (exit 1); exit 1; }; }
  1670. fi
  1671. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1672. echo "${ECHO_T}$ac_cv_build" >&6; }
  1673. case $ac_cv_build in
  1674. *-*-*) ;;
  1675. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1676. echo "$as_me: error: invalid value of canonical build" >&2;}
  1677. { (exit 1); exit 1; }; };;
  1678. esac
  1679. build=$ac_cv_build
  1680. ac_save_IFS=$IFS; IFS='-'
  1681. set x $ac_cv_build
  1682. shift
  1683. build_cpu=$1
  1684. build_vendor=$2
  1685. shift; shift
  1686. # Remember, the first character of IFS is used to create $*,
  1687. # except with old shells:
  1688. build_os=$*
  1689. IFS=$ac_save_IFS
  1690. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1691. { echo "$as_me:$LINENO: checking host system type" >&5
  1692. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1693. if test "${ac_cv_host+set}" = set; then
  1694. echo $ECHO_N "(cached) $ECHO_C" >&6
  1695. else
  1696. if test "x$host_alias" = x; then
  1697. ac_cv_host=$ac_cv_build
  1698. else
  1699. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1700. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1701. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1702. { (exit 1); exit 1; }; }
  1703. fi
  1704. fi
  1705. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1706. echo "${ECHO_T}$ac_cv_host" >&6; }
  1707. case $ac_cv_host in
  1708. *-*-*) ;;
  1709. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1710. echo "$as_me: error: invalid value of canonical host" >&2;}
  1711. { (exit 1); exit 1; }; };;
  1712. esac
  1713. host=$ac_cv_host
  1714. ac_save_IFS=$IFS; IFS='-'
  1715. set x $ac_cv_host
  1716. shift
  1717. host_cpu=$1
  1718. host_vendor=$2
  1719. shift; shift
  1720. # Remember, the first character of IFS is used to create $*,
  1721. # except with old shells:
  1722. host_os=$*
  1723. IFS=$ac_save_IFS
  1724. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1725. { echo "$as_me:$LINENO: checking target system type" >&5
  1726. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1727. if test "${ac_cv_target+set}" = set; then
  1728. echo $ECHO_N "(cached) $ECHO_C" >&6
  1729. else
  1730. if test "x$target_alias" = x; then
  1731. ac_cv_target=$ac_cv_host
  1732. else
  1733. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1734. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1735. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1736. { (exit 1); exit 1; }; }
  1737. fi
  1738. fi
  1739. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1740. echo "${ECHO_T}$ac_cv_target" >&6; }
  1741. case $ac_cv_target in
  1742. *-*-*) ;;
  1743. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1744. echo "$as_me: error: invalid value of canonical target" >&2;}
  1745. { (exit 1); exit 1; }; };;
  1746. esac
  1747. target=$ac_cv_target
  1748. ac_save_IFS=$IFS; IFS='-'
  1749. set x $ac_cv_target
  1750. shift
  1751. target_cpu=$1
  1752. target_vendor=$2
  1753. shift; shift
  1754. # Remember, the first character of IFS is used to create $*,
  1755. # except with old shells:
  1756. target_os=$*
  1757. IFS=$ac_save_IFS
  1758. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1759. # The aliases save the names the user supplied, while $host etc.
  1760. # will get canonicalized.
  1761. test -n "$target_alias" &&
  1762. test "$program_prefix$program_suffix$program_transform_name" = \
  1763. NONENONEs,x,x, &&
  1764. program_prefix=${target_alias}-
  1765. am__api_version="1.9"
  1766. # Find a good install program. We prefer a C program (faster),
  1767. # so one script is as good as another. But avoid the broken or
  1768. # incompatible versions:
  1769. # SysV /etc/install, /usr/sbin/install
  1770. # SunOS /usr/etc/install
  1771. # IRIX /sbin/install
  1772. # AIX /bin/install
  1773. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1774. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1775. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1776. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1777. # OS/2's system install, which has a completely different semantic
  1778. # ./install, which can be erroneously created by make from ./install.sh.
  1779. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1780. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1781. if test -z "$INSTALL"; then
  1782. if test "${ac_cv_path_install+set}" = set; then
  1783. echo $ECHO_N "(cached) $ECHO_C" >&6
  1784. else
  1785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1786. for as_dir in $PATH
  1787. do
  1788. IFS=$as_save_IFS
  1789. test -z "$as_dir" && as_dir=.
  1790. # Account for people who put trailing slashes in PATH elements.
  1791. case $as_dir/ in
  1792. ./ | .// | /cC/* | \
  1793. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1794. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1795. /usr/ucb/* ) ;;
  1796. *)
  1797. # OSF1 and SCO ODT 3.0 have their own names for install.
  1798. # Don't use installbsd from OSF since it installs stuff as root
  1799. # by default.
  1800. for ac_prog in ginstall scoinst install; do
  1801. for ac_exec_ext in '' $ac_executable_extensions; do
  1802. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1803. if test $ac_prog = install &&
  1804. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1805. # AIX install. It has an incompatible calling convention.
  1806. :
  1807. elif test $ac_prog = install &&
  1808. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1809. # program-specific install script used by HP pwplus--don't use.
  1810. :
  1811. else
  1812. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1813. break 3
  1814. fi
  1815. fi
  1816. done
  1817. done
  1818. ;;
  1819. esac
  1820. done
  1821. IFS=$as_save_IFS
  1822. fi
  1823. if test "${ac_cv_path_install+set}" = set; then
  1824. INSTALL=$ac_cv_path_install
  1825. else
  1826. # As a last resort, use the slow shell script. Don't cache a
  1827. # value for INSTALL within a source directory, because that will
  1828. # break other packages using the cache if that directory is
  1829. # removed, or if the value is a relative name.
  1830. INSTALL=$ac_install_sh
  1831. fi
  1832. fi
  1833. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1834. echo "${ECHO_T}$INSTALL" >&6; }
  1835. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1836. # It thinks the first close brace ends the variable substitution.
  1837. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1838. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1839. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1840. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1841. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1842. # Just in case
  1843. sleep 1
  1844. echo timestamp > conftest.file
  1845. # Do `set' in a subshell so we don't clobber the current shell's
  1846. # arguments. Must try -L first in case configure is actually a
  1847. # symlink; some systems play weird games with the mod time of symlinks
  1848. # (eg FreeBSD returns the mod time of the symlink's containing
  1849. # directory).
  1850. if (
  1851. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1852. if test "$*" = "X"; then
  1853. # -L didn't work.
  1854. set X `ls -t $srcdir/configure conftest.file`
  1855. fi
  1856. rm -f conftest.file
  1857. if test "$*" != "X $srcdir/configure conftest.file" \
  1858. && test "$*" != "X conftest.file $srcdir/configure"; then
  1859. # If neither matched, then we have a broken ls. This can happen
  1860. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1861. # broken ls alias from the environment. This has actually
  1862. # happened. Such a system could not be considered "sane".
  1863. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1864. alias in your environment" >&5
  1865. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1866. alias in your environment" >&2;}
  1867. { (exit 1); exit 1; }; }
  1868. fi
  1869. test "$2" = conftest.file
  1870. )
  1871. then
  1872. # Ok.
  1873. :
  1874. else
  1875. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1876. Check your system clock" >&5
  1877. echo "$as_me: error: newly created file is older than distributed files!
  1878. Check your system clock" >&2;}
  1879. { (exit 1); exit 1; }; }
  1880. fi
  1881. { echo "$as_me:$LINENO: result: yes" >&5
  1882. echo "${ECHO_T}yes" >&6; }
  1883. test "$program_prefix" != NONE &&
  1884. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1885. # Use a double $ so make ignores it.
  1886. test "$program_suffix" != NONE &&
  1887. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1888. # Double any \ or $. echo might interpret backslashes.
  1889. # By default was `s,x,x', remove it if useless.
  1890. cat <<\_ACEOF >conftest.sed
  1891. s/[\\$]/&&/g;s/;s,x,x,$//
  1892. _ACEOF
  1893. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1894. rm -f conftest.sed
  1895. # expand $ac_aux_dir to an absolute path
  1896. am_aux_dir=`cd $ac_aux_dir && pwd`
  1897. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1898. # Use eval to expand $SHELL
  1899. if eval "$MISSING --run true"; then
  1900. am_missing_run="$MISSING --run "
  1901. else
  1902. am_missing_run=
  1903. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1904. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1905. fi
  1906. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1907. # We used to keeping the `.' as first argument, in order to
  1908. # allow $(mkdir_p) to be used without argument. As in
  1909. # $(mkdir_p) $(somedir)
  1910. # where $(somedir) is conditionally defined. However this is wrong
  1911. # for two reasons:
  1912. # 1. if the package is installed by a user who cannot write `.'
  1913. # make install will fail,
  1914. # 2. the above comment should most certainly read
  1915. # $(mkdir_p) $(DESTDIR)$(somedir)
  1916. # so it does not work when $(somedir) is undefined and
  1917. # $(DESTDIR) is not.
  1918. # To support the latter case, we have to write
  1919. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1920. # so the `.' trick is pointless.
  1921. mkdir_p='mkdir -p --'
  1922. else
  1923. # On NextStep and OpenStep, the `mkdir' command does not
  1924. # recognize any option. It will interpret all options as
  1925. # directories to create, and then abort because `.' already
  1926. # exists.
  1927. for d in ./-p ./--version;
  1928. do
  1929. test -d $d && rmdir $d
  1930. done
  1931. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1932. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1933. mkdir_p='$(mkinstalldirs)'
  1934. else
  1935. mkdir_p='$(install_sh) -d'
  1936. fi
  1937. fi
  1938. for ac_prog in gawk mawk nawk awk
  1939. do
  1940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1941. set dummy $ac_prog; ac_word=$2
  1942. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1943. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1944. if test "${ac_cv_prog_AWK+set}" = set; then
  1945. echo $ECHO_N "(cached) $ECHO_C" >&6
  1946. else
  1947. if test -n "$AWK"; then
  1948. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1949. else
  1950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1951. for as_dir in $PATH
  1952. do
  1953. IFS=$as_save_IFS
  1954. test -z "$as_dir" && as_dir=.
  1955. for ac_exec_ext in '' $ac_executable_extensions; do
  1956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1957. ac_cv_prog_AWK="$ac_prog"
  1958. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1959. break 2
  1960. fi
  1961. done
  1962. done
  1963. IFS=$as_save_IFS
  1964. fi
  1965. fi
  1966. AWK=$ac_cv_prog_AWK
  1967. if test -n "$AWK"; then
  1968. { echo "$as_me:$LINENO: result: $AWK" >&5
  1969. echo "${ECHO_T}$AWK" >&6; }
  1970. else
  1971. { echo "$as_me:$LINENO: result: no" >&5
  1972. echo "${ECHO_T}no" >&6; }
  1973. fi
  1974. test -n "$AWK" && break
  1975. done
  1976. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1977. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1978. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1979. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1980. echo $ECHO_N "(cached) $ECHO_C" >&6
  1981. else
  1982. cat >conftest.make <<\_ACEOF
  1983. SHELL = /bin/sh
  1984. all:
  1985. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1986. _ACEOF
  1987. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1988. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1989. *@@@%%%=?*=@@@%%%*)
  1990. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1991. *)
  1992. eval ac_cv_prog_make_${ac_make}_set=no;;
  1993. esac
  1994. rm -f conftest.make
  1995. fi
  1996. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1997. { echo "$as_me:$LINENO: result: yes" >&5
  1998. echo "${ECHO_T}yes" >&6; }
  1999. SET_MAKE=
  2000. else
  2001. { echo "$as_me:$LINENO: result: no" >&5
  2002. echo "${ECHO_T}no" >&6; }
  2003. SET_MAKE="MAKE=${MAKE-make}"
  2004. fi
  2005. rm -rf .tst 2>/dev/null
  2006. mkdir .tst 2>/dev/null
  2007. if test -d .tst; then
  2008. am__leading_dot=.
  2009. else
  2010. am__leading_dot=_
  2011. fi
  2012. rmdir .tst 2>/dev/null
  2013. # test to see if srcdir already configured
  2014. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2015. test -f $srcdir/config.status; then
  2016. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2017. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2018. { (exit 1); exit 1; }; }
  2019. fi
  2020. # test whether we have cygpath
  2021. if test -z "$CYGPATH_W"; then
  2022. if (cygpath --version) >/dev/null 2>/dev/null; then
  2023. CYGPATH_W='cygpath -w'
  2024. else
  2025. CYGPATH_W=echo
  2026. fi
  2027. fi
  2028. # Define the identity of the package.
  2029. PACKAGE='aria2c'
  2030. VERSION='0.11.1+1'
  2031. cat >>confdefs.h <<_ACEOF
  2032. #define PACKAGE "$PACKAGE"
  2033. _ACEOF
  2034. cat >>confdefs.h <<_ACEOF
  2035. #define VERSION "$VERSION"
  2036. _ACEOF
  2037. # Some tools Automake needs.
  2038. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2039. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2040. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2041. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2042. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2043. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2044. # Installed binaries are usually stripped using `strip' when the user
  2045. # run `make install-strip'. However `strip' might not be the right
  2046. # tool to use in cross-compilation environments, therefore Automake
  2047. # will honor the `STRIP' environment variable to overrule this program.
  2048. if test "$cross_compiling" != no; then
  2049. if test -n "$ac_tool_prefix"; then
  2050. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2051. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2052. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2054. if test "${ac_cv_prog_STRIP+set}" = set; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. if test -n "$STRIP"; then
  2058. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2059. else
  2060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2061. for as_dir in $PATH
  2062. do
  2063. IFS=$as_save_IFS
  2064. test -z "$as_dir" && as_dir=.
  2065. for ac_exec_ext in '' $ac_executable_extensions; do
  2066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2067. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2069. break 2
  2070. fi
  2071. done
  2072. done
  2073. IFS=$as_save_IFS
  2074. fi
  2075. fi
  2076. STRIP=$ac_cv_prog_STRIP
  2077. if test -n "$STRIP"; then
  2078. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2079. echo "${ECHO_T}$STRIP" >&6; }
  2080. else
  2081. { echo "$as_me:$LINENO: result: no" >&5
  2082. echo "${ECHO_T}no" >&6; }
  2083. fi
  2084. fi
  2085. if test -z "$ac_cv_prog_STRIP"; then
  2086. ac_ct_STRIP=$STRIP
  2087. # Extract the first word of "strip", so it can be a program name with args.
  2088. set dummy strip; ac_word=$2
  2089. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2090. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2091. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2092. echo $ECHO_N "(cached) $ECHO_C" >&6
  2093. else
  2094. if test -n "$ac_ct_STRIP"; then
  2095. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2096. else
  2097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2098. for as_dir in $PATH
  2099. do
  2100. IFS=$as_save_IFS
  2101. test -z "$as_dir" && as_dir=.
  2102. for ac_exec_ext in '' $ac_executable_extensions; do
  2103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2104. ac_cv_prog_ac_ct_STRIP="strip"
  2105. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2106. break 2
  2107. fi
  2108. done
  2109. done
  2110. IFS=$as_save_IFS
  2111. fi
  2112. fi
  2113. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2114. if test -n "$ac_ct_STRIP"; then
  2115. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2116. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2117. else
  2118. { echo "$as_me:$LINENO: result: no" >&5
  2119. echo "${ECHO_T}no" >&6; }
  2120. fi
  2121. if test "x$ac_ct_STRIP" = x; then
  2122. STRIP=":"
  2123. else
  2124. case $cross_compiling:$ac_tool_warned in
  2125. yes:)
  2126. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2127. whose name does not start with the host triplet. If you think this
  2128. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2129. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2130. whose name does not start with the host triplet. If you think this
  2131. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2132. ac_tool_warned=yes ;;
  2133. esac
  2134. STRIP=$ac_ct_STRIP
  2135. fi
  2136. else
  2137. STRIP="$ac_cv_prog_STRIP"
  2138. fi
  2139. fi
  2140. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2141. # We need awk for the "check" target. The system "awk" is bad on
  2142. # some platforms.
  2143. # Always define AMTAR for backward compatibility.
  2144. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2145. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2146. # Check whether --with-cppunit-prefix was given.
  2147. if test "${with_cppunit_prefix+set}" = set; then
  2148. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2149. else
  2150. cppunit_config_prefix=""
  2151. fi
  2152. # Check whether --with-cppunit-exec-prefix was given.
  2153. if test "${with_cppunit_exec_prefix+set}" = set; then
  2154. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2155. else
  2156. cppunit_config_exec_prefix=""
  2157. fi
  2158. if test x$cppunit_config_exec_prefix != x ; then
  2159. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2160. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2161. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2162. fi
  2163. fi
  2164. if test x$cppunit_config_prefix != x ; then
  2165. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2166. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2167. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2168. fi
  2169. fi
  2170. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2171. set dummy cppunit-config; ac_word=$2
  2172. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2174. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2175. echo $ECHO_N "(cached) $ECHO_C" >&6
  2176. else
  2177. case $CPPUNIT_CONFIG in
  2178. [\\/]* | ?:[\\/]*)
  2179. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2180. ;;
  2181. *)
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185. IFS=$as_save_IFS
  2186. test -z "$as_dir" && as_dir=.
  2187. for ac_exec_ext in '' $ac_executable_extensions; do
  2188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2189. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191. break 2
  2192. fi
  2193. done
  2194. done
  2195. IFS=$as_save_IFS
  2196. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2197. ;;
  2198. esac
  2199. fi
  2200. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2201. if test -n "$CPPUNIT_CONFIG"; then
  2202. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2203. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2204. else
  2205. { echo "$as_me:$LINENO: result: no" >&5
  2206. echo "${ECHO_T}no" >&6; }
  2207. fi
  2208. cppunit_version_min=1.10.2
  2209. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2210. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2211. no_cppunit=""
  2212. if test "$CPPUNIT_CONFIG" = "no" ; then
  2213. { echo "$as_me:$LINENO: result: no" >&5
  2214. echo "${ECHO_T}no" >&6; }
  2215. no_cppunit=yes
  2216. else
  2217. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2218. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2219. cppunit_version=`$CPPUNIT_CONFIG --version`
  2220. cppunit_major_version=`echo $cppunit_version | \
  2221. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2222. cppunit_minor_version=`echo $cppunit_version | \
  2223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2224. cppunit_micro_version=`echo $cppunit_version | \
  2225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2226. cppunit_major_min=`echo $cppunit_version_min | \
  2227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2228. if test "x${cppunit_major_min}" = "x" ; then
  2229. cppunit_major_min=0
  2230. fi
  2231. cppunit_minor_min=`echo $cppunit_version_min | \
  2232. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2233. if test "x${cppunit_minor_min}" = "x" ; then
  2234. cppunit_minor_min=0
  2235. fi
  2236. cppunit_micro_min=`echo $cppunit_version_min | \
  2237. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2238. if test "x${cppunit_micro_min}" = "x" ; then
  2239. cppunit_micro_min=0
  2240. fi
  2241. cppunit_version_proper=`expr \
  2242. $cppunit_major_version \> $cppunit_major_min \| \
  2243. $cppunit_major_version \= $cppunit_major_min \& \
  2244. $cppunit_minor_version \> $cppunit_minor_min \| \
  2245. $cppunit_major_version \= $cppunit_major_min \& \
  2246. $cppunit_minor_version \= $cppunit_minor_min \& \
  2247. $cppunit_micro_version \>= $cppunit_micro_min `
  2248. if test "$cppunit_version_proper" = "1" ; then
  2249. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2250. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2251. else
  2252. { echo "$as_me:$LINENO: result: no" >&5
  2253. echo "${ECHO_T}no" >&6; }
  2254. no_cppunit=yes
  2255. fi
  2256. fi
  2257. if test "x$no_cppunit" = x ; then
  2258. :
  2259. else
  2260. CPPUNIT_CFLAGS=""
  2261. CPPUNIT_LIBS=""
  2262. :
  2263. fi
  2264. ac_config_headers="$ac_config_headers config.h"
  2265. case "$target" in
  2266. *mingw*|*cygwin*)
  2267. WINSOCK_LIBS="-lws2_32"
  2268. ;;
  2269. esac
  2270. # Set localedir
  2271. localedir=${datadir}/locale
  2272. # Checks for arguments.
  2273. # Check whether --with-gnutls was given.
  2274. if test "${with_gnutls+set}" = set; then
  2275. withval=$with_gnutls; with_gnutls=$withval
  2276. else
  2277. with_gnutls=yes
  2278. fi
  2279. # Check whether --with-openssl was given.
  2280. if test "${with_openssl+set}" = set; then
  2281. withval=$with_openssl; with_openssl=$withval
  2282. else
  2283. with_openssl=yes
  2284. fi
  2285. # Check whether --with-libxml2 was given.
  2286. if test "${with_libxml2+set}" = set; then
  2287. withval=$with_libxml2; with_libxml2=$withval
  2288. else
  2289. with_libxml2=yes
  2290. fi
  2291. # Check whether --with-libares was given.
  2292. if test "${with_libares+set}" = set; then
  2293. withval=$with_libares; with_libares=$withval
  2294. else
  2295. with_libares=yes
  2296. fi
  2297. # Check whether --with-libcares was given.
  2298. if test "${with_libcares+set}" = set; then
  2299. withval=$with_libcares; with_libcares=$withval
  2300. else
  2301. with_libcares=yes
  2302. fi
  2303. # Check whether --enable-bittorrent was given.
  2304. if test "${enable_bittorrent+set}" = set; then
  2305. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2306. else
  2307. enable_bittorrent=yes
  2308. fi
  2309. # Check whether --enable-metalink was given.
  2310. if test "${enable_metalink+set}" = set; then
  2311. enableval=$enable_metalink; enable_metalink=$enableval
  2312. else
  2313. enable_metalink=yes
  2314. fi
  2315. # Checks for programs.
  2316. ac_ext=cpp
  2317. ac_cpp='$CXXCPP $CPPFLAGS'
  2318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2321. if test -z "$CXX"; then
  2322. if test -n "$CCC"; then
  2323. CXX=$CCC
  2324. else
  2325. if test -n "$ac_tool_prefix"; then
  2326. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2327. do
  2328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2332. if test "${ac_cv_prog_CXX+set}" = set; then
  2333. echo $ECHO_N "(cached) $ECHO_C" >&6
  2334. else
  2335. if test -n "$CXX"; then
  2336. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2337. else
  2338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2339. for as_dir in $PATH
  2340. do
  2341. IFS=$as_save_IFS
  2342. test -z "$as_dir" && as_dir=.
  2343. for ac_exec_ext in '' $ac_executable_extensions; do
  2344. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2345. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2346. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2347. break 2
  2348. fi
  2349. done
  2350. done
  2351. IFS=$as_save_IFS
  2352. fi
  2353. fi
  2354. CXX=$ac_cv_prog_CXX
  2355. if test -n "$CXX"; then
  2356. { echo "$as_me:$LINENO: result: $CXX" >&5
  2357. echo "${ECHO_T}$CXX" >&6; }
  2358. else
  2359. { echo "$as_me:$LINENO: result: no" >&5
  2360. echo "${ECHO_T}no" >&6; }
  2361. fi
  2362. test -n "$CXX" && break
  2363. done
  2364. fi
  2365. if test -z "$CXX"; then
  2366. ac_ct_CXX=$CXX
  2367. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2368. do
  2369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2370. set dummy $ac_prog; ac_word=$2
  2371. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2373. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2374. echo $ECHO_N "(cached) $ECHO_C" >&6
  2375. else
  2376. if test -n "$ac_ct_CXX"; then
  2377. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2378. else
  2379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2380. for as_dir in $PATH
  2381. do
  2382. IFS=$as_save_IFS
  2383. test -z "$as_dir" && as_dir=.
  2384. for ac_exec_ext in '' $ac_executable_extensions; do
  2385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2386. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2387. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2388. break 2
  2389. fi
  2390. done
  2391. done
  2392. IFS=$as_save_IFS
  2393. fi
  2394. fi
  2395. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2396. if test -n "$ac_ct_CXX"; then
  2397. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2398. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2399. else
  2400. { echo "$as_me:$LINENO: result: no" >&5
  2401. echo "${ECHO_T}no" >&6; }
  2402. fi
  2403. test -n "$ac_ct_CXX" && break
  2404. done
  2405. if test "x$ac_ct_CXX" = x; then
  2406. CXX="g++"
  2407. else
  2408. case $cross_compiling:$ac_tool_warned in
  2409. yes:)
  2410. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2411. whose name does not start with the host triplet. If you think this
  2412. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2413. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2414. whose name does not start with the host triplet. If you think this
  2415. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2416. ac_tool_warned=yes ;;
  2417. esac
  2418. CXX=$ac_ct_CXX
  2419. fi
  2420. fi
  2421. fi
  2422. fi
  2423. # Provide some information about the compiler.
  2424. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2425. ac_compiler=`set X $ac_compile; echo $2`
  2426. { (ac_try="$ac_compiler --version >&5"
  2427. case "(($ac_try" in
  2428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2429. *) ac_try_echo=$ac_try;;
  2430. esac
  2431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2432. (eval "$ac_compiler --version >&5") 2>&5
  2433. ac_status=$?
  2434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2435. (exit $ac_status); }
  2436. { (ac_try="$ac_compiler -v >&5"
  2437. case "(($ac_try" in
  2438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2439. *) ac_try_echo=$ac_try;;
  2440. esac
  2441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2442. (eval "$ac_compiler -v >&5") 2>&5
  2443. ac_status=$?
  2444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2445. (exit $ac_status); }
  2446. { (ac_try="$ac_compiler -V >&5"
  2447. case "(($ac_try" in
  2448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2449. *) ac_try_echo=$ac_try;;
  2450. esac
  2451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2452. (eval "$ac_compiler -V >&5") 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }
  2456. cat >conftest.$ac_ext <<_ACEOF
  2457. /* confdefs.h. */
  2458. _ACEOF
  2459. cat confdefs.h >>conftest.$ac_ext
  2460. cat >>conftest.$ac_ext <<_ACEOF
  2461. /* end confdefs.h. */
  2462. int
  2463. main ()
  2464. {
  2465. ;
  2466. return 0;
  2467. }
  2468. _ACEOF
  2469. ac_clean_files_save=$ac_clean_files
  2470. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2471. # Try to create an executable without -o first, disregard a.out.
  2472. # It will help us diagnose broken compilers, and finding out an intuition
  2473. # of exeext.
  2474. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2475. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2476. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2477. #
  2478. # List of possible output files, starting from the most likely.
  2479. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2480. # only as a last resort. b.out is created by i960 compilers.
  2481. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2482. #
  2483. # The IRIX 6 linker writes into existing files which may not be
  2484. # executable, retaining their permissions. Remove them first so a
  2485. # subsequent execution test works.
  2486. ac_rmfiles=
  2487. for ac_file in $ac_files
  2488. do
  2489. case $ac_file in
  2490. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2491. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2492. esac
  2493. done
  2494. rm -f $ac_rmfiles
  2495. if { (ac_try="$ac_link_default"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2501. (eval "$ac_link_default") 2>&5
  2502. ac_status=$?
  2503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2504. (exit $ac_status); }; then
  2505. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2506. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2507. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2508. # so that the user can short-circuit this test for compilers unknown to
  2509. # Autoconf.
  2510. for ac_file in $ac_files ''
  2511. do
  2512. test -f "$ac_file" || continue
  2513. case $ac_file in
  2514. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2515. ;;
  2516. [ab].out )
  2517. # We found the default executable, but exeext='' is most
  2518. # certainly right.
  2519. break;;
  2520. *.* )
  2521. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2522. then :; else
  2523. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2524. fi
  2525. # We set ac_cv_exeext here because the later test for it is not
  2526. # safe: cross compilers may not add the suffix if given an `-o'
  2527. # argument, so we may need to know it at that point already.
  2528. # Even if this section looks crufty: it has the advantage of
  2529. # actually working.
  2530. break;;
  2531. * )
  2532. break;;
  2533. esac
  2534. done
  2535. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2536. else
  2537. ac_file=''
  2538. fi
  2539. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2540. echo "${ECHO_T}$ac_file" >&6; }
  2541. if test -z "$ac_file"; then
  2542. echo "$as_me: failed program was:" >&5
  2543. sed 's/^/| /' conftest.$ac_ext >&5
  2544. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2545. See \`config.log' for more details." >&5
  2546. echo "$as_me: error: C++ compiler cannot create executables
  2547. See \`config.log' for more details." >&2;}
  2548. { (exit 77); exit 77; }; }
  2549. fi
  2550. ac_exeext=$ac_cv_exeext
  2551. # Check that the compiler produces executables we can run. If not, either
  2552. # the compiler is broken, or we cross compile.
  2553. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2554. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2555. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2556. # If not cross compiling, check that we can run a simple program.
  2557. if test "$cross_compiling" != yes; then
  2558. if { ac_try='./$ac_file'
  2559. { (case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2564. (eval "$ac_try") 2>&5
  2565. ac_status=$?
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); }; }; then
  2568. cross_compiling=no
  2569. else
  2570. if test "$cross_compiling" = maybe; then
  2571. cross_compiling=yes
  2572. else
  2573. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2574. If you meant to cross compile, use \`--host'.
  2575. See \`config.log' for more details." >&5
  2576. echo "$as_me: error: cannot run C++ compiled programs.
  2577. If you meant to cross compile, use \`--host'.
  2578. See \`config.log' for more details." >&2;}
  2579. { (exit 1); exit 1; }; }
  2580. fi
  2581. fi
  2582. fi
  2583. { echo "$as_me:$LINENO: result: yes" >&5
  2584. echo "${ECHO_T}yes" >&6; }
  2585. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2586. ac_clean_files=$ac_clean_files_save
  2587. # Check that the compiler produces executables we can run. If not, either
  2588. # the compiler is broken, or we cross compile.
  2589. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2590. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2591. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2592. echo "${ECHO_T}$cross_compiling" >&6; }
  2593. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2594. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2595. if { (ac_try="$ac_link"
  2596. case "(($ac_try" in
  2597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2598. *) ac_try_echo=$ac_try;;
  2599. esac
  2600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2601. (eval "$ac_link") 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }; then
  2605. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2606. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2607. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2608. # `rm'.
  2609. for ac_file in conftest.exe conftest conftest.*; do
  2610. test -f "$ac_file" || continue
  2611. case $ac_file in
  2612. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2613. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2614. break;;
  2615. * ) break;;
  2616. esac
  2617. done
  2618. else
  2619. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2620. See \`config.log' for more details." >&5
  2621. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2622. See \`config.log' for more details." >&2;}
  2623. { (exit 1); exit 1; }; }
  2624. fi
  2625. rm -f conftest$ac_cv_exeext
  2626. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2627. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2628. rm -f conftest.$ac_ext
  2629. EXEEXT=$ac_cv_exeext
  2630. ac_exeext=$EXEEXT
  2631. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2632. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2633. if test "${ac_cv_objext+set}" = set; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.$ac_ext <<_ACEOF
  2637. /* confdefs.h. */
  2638. _ACEOF
  2639. cat confdefs.h >>conftest.$ac_ext
  2640. cat >>conftest.$ac_ext <<_ACEOF
  2641. /* end confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. rm -f conftest.o conftest.obj
  2650. if { (ac_try="$ac_compile"
  2651. case "(($ac_try" in
  2652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2653. *) ac_try_echo=$ac_try;;
  2654. esac
  2655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2656. (eval "$ac_compile") 2>&5
  2657. ac_status=$?
  2658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2659. (exit $ac_status); }; then
  2660. for ac_file in conftest.o conftest.obj conftest.*; do
  2661. test -f "$ac_file" || continue;
  2662. case $ac_file in
  2663. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2664. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2665. break;;
  2666. esac
  2667. done
  2668. else
  2669. echo "$as_me: failed program was:" >&5
  2670. sed 's/^/| /' conftest.$ac_ext >&5
  2671. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2672. See \`config.log' for more details." >&5
  2673. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2674. See \`config.log' for more details." >&2;}
  2675. { (exit 1); exit 1; }; }
  2676. fi
  2677. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2678. fi
  2679. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2680. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2681. OBJEXT=$ac_cv_objext
  2682. ac_objext=$OBJEXT
  2683. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2684. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2685. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2686. echo $ECHO_N "(cached) $ECHO_C" >&6
  2687. else
  2688. cat >conftest.$ac_ext <<_ACEOF
  2689. /* confdefs.h. */
  2690. _ACEOF
  2691. cat confdefs.h >>conftest.$ac_ext
  2692. cat >>conftest.$ac_ext <<_ACEOF
  2693. /* end confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. #ifndef __GNUC__
  2698. choke me
  2699. #endif
  2700. ;
  2701. return 0;
  2702. }
  2703. _ACEOF
  2704. rm -f conftest.$ac_objext
  2705. if { (ac_try="$ac_compile"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2711. (eval "$ac_compile") 2>conftest.er1
  2712. ac_status=$?
  2713. grep -v '^ *+' conftest.er1 >conftest.err
  2714. rm -f conftest.er1
  2715. cat conftest.err >&5
  2716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2717. (exit $ac_status); } && {
  2718. test -z "$ac_cxx_werror_flag" ||
  2719. test ! -s conftest.err
  2720. } && test -s conftest.$ac_objext; then
  2721. ac_compiler_gnu=yes
  2722. else
  2723. echo "$as_me: failed program was:" >&5
  2724. sed 's/^/| /' conftest.$ac_ext >&5
  2725. ac_compiler_gnu=no
  2726. fi
  2727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2728. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2729. fi
  2730. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2731. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2732. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2733. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2734. ac_save_CXXFLAGS=$CXXFLAGS
  2735. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2736. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2737. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2738. echo $ECHO_N "(cached) $ECHO_C" >&6
  2739. else
  2740. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2741. ac_cxx_werror_flag=yes
  2742. ac_cv_prog_cxx_g=no
  2743. CXXFLAGS="-g"
  2744. cat >conftest.$ac_ext <<_ACEOF
  2745. /* confdefs.h. */
  2746. _ACEOF
  2747. cat confdefs.h >>conftest.$ac_ext
  2748. cat >>conftest.$ac_ext <<_ACEOF
  2749. /* end confdefs.h. */
  2750. int
  2751. main ()
  2752. {
  2753. ;
  2754. return 0;
  2755. }
  2756. _ACEOF
  2757. rm -f conftest.$ac_objext
  2758. if { (ac_try="$ac_compile"
  2759. case "(($ac_try" in
  2760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761. *) ac_try_echo=$ac_try;;
  2762. esac
  2763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2764. (eval "$ac_compile") 2>conftest.er1
  2765. ac_status=$?
  2766. grep -v '^ *+' conftest.er1 >conftest.err
  2767. rm -f conftest.er1
  2768. cat conftest.err >&5
  2769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2770. (exit $ac_status); } && {
  2771. test -z "$ac_cxx_werror_flag" ||
  2772. test ! -s conftest.err
  2773. } && test -s conftest.$ac_objext; then
  2774. ac_cv_prog_cxx_g=yes
  2775. else
  2776. echo "$as_me: failed program was:" >&5
  2777. sed 's/^/| /' conftest.$ac_ext >&5
  2778. CXXFLAGS=""
  2779. cat >conftest.$ac_ext <<_ACEOF
  2780. /* confdefs.h. */
  2781. _ACEOF
  2782. cat confdefs.h >>conftest.$ac_ext
  2783. cat >>conftest.$ac_ext <<_ACEOF
  2784. /* end confdefs.h. */
  2785. int
  2786. main ()
  2787. {
  2788. ;
  2789. return 0;
  2790. }
  2791. _ACEOF
  2792. rm -f conftest.$ac_objext
  2793. if { (ac_try="$ac_compile"
  2794. case "(($ac_try" in
  2795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2796. *) ac_try_echo=$ac_try;;
  2797. esac
  2798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2799. (eval "$ac_compile") 2>conftest.er1
  2800. ac_status=$?
  2801. grep -v '^ *+' conftest.er1 >conftest.err
  2802. rm -f conftest.er1
  2803. cat conftest.err >&5
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); } && {
  2806. test -z "$ac_cxx_werror_flag" ||
  2807. test ! -s conftest.err
  2808. } && test -s conftest.$ac_objext; then
  2809. :
  2810. else
  2811. echo "$as_me: failed program was:" >&5
  2812. sed 's/^/| /' conftest.$ac_ext >&5
  2813. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2814. CXXFLAGS="-g"
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. int
  2822. main ()
  2823. {
  2824. ;
  2825. return 0;
  2826. }
  2827. _ACEOF
  2828. rm -f conftest.$ac_objext
  2829. if { (ac_try="$ac_compile"
  2830. case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2835. (eval "$ac_compile") 2>conftest.er1
  2836. ac_status=$?
  2837. grep -v '^ *+' conftest.er1 >conftest.err
  2838. rm -f conftest.er1
  2839. cat conftest.err >&5
  2840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2841. (exit $ac_status); } && {
  2842. test -z "$ac_cxx_werror_flag" ||
  2843. test ! -s conftest.err
  2844. } && test -s conftest.$ac_objext; then
  2845. ac_cv_prog_cxx_g=yes
  2846. else
  2847. echo "$as_me: failed program was:" >&5
  2848. sed 's/^/| /' conftest.$ac_ext >&5
  2849. fi
  2850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2851. fi
  2852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2853. fi
  2854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2855. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2856. fi
  2857. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2858. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2859. if test "$ac_test_CXXFLAGS" = set; then
  2860. CXXFLAGS=$ac_save_CXXFLAGS
  2861. elif test $ac_cv_prog_cxx_g = yes; then
  2862. if test "$GXX" = yes; then
  2863. CXXFLAGS="-g -O2"
  2864. else
  2865. CXXFLAGS="-g"
  2866. fi
  2867. else
  2868. if test "$GXX" = yes; then
  2869. CXXFLAGS="-O2"
  2870. else
  2871. CXXFLAGS=
  2872. fi
  2873. fi
  2874. ac_ext=c
  2875. ac_cpp='$CPP $CPPFLAGS'
  2876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2879. DEPDIR="${am__leading_dot}deps"
  2880. ac_config_commands="$ac_config_commands depfiles"
  2881. am_make=${MAKE-make}
  2882. cat > confinc << 'END'
  2883. am__doit:
  2884. @echo done
  2885. .PHONY: am__doit
  2886. END
  2887. # If we don't find an include directive, just comment out the code.
  2888. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2889. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2890. am__include="#"
  2891. am__quote=
  2892. _am_result=none
  2893. # First try GNU make style include.
  2894. echo "include confinc" > confmf
  2895. # We grep out `Entering directory' and `Leaving directory'
  2896. # messages which can occur if `w' ends up in MAKEFLAGS.
  2897. # In particular we don't look at `^make:' because GNU make might
  2898. # be invoked under some other name (usually "gmake"), in which
  2899. # case it prints its new name instead of `make'.
  2900. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2901. am__include=include
  2902. am__quote=
  2903. _am_result=GNU
  2904. fi
  2905. # Now try BSD make style include.
  2906. if test "$am__include" = "#"; then
  2907. echo '.include "confinc"' > confmf
  2908. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2909. am__include=.include
  2910. am__quote="\""
  2911. _am_result=BSD
  2912. fi
  2913. fi
  2914. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2915. echo "${ECHO_T}$_am_result" >&6; }
  2916. rm -f confinc confmf
  2917. # Check whether --enable-dependency-tracking was given.
  2918. if test "${enable_dependency_tracking+set}" = set; then
  2919. enableval=$enable_dependency_tracking;
  2920. fi
  2921. if test "x$enable_dependency_tracking" != xno; then
  2922. am_depcomp="$ac_aux_dir/depcomp"
  2923. AMDEPBACKSLASH='\'
  2924. fi
  2925. if test "x$enable_dependency_tracking" != xno; then
  2926. AMDEP_TRUE=
  2927. AMDEP_FALSE='#'
  2928. else
  2929. AMDEP_TRUE='#'
  2930. AMDEP_FALSE=
  2931. fi
  2932. depcc="$CXX" am_compiler_list=
  2933. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2934. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2935. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2936. echo $ECHO_N "(cached) $ECHO_C" >&6
  2937. else
  2938. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2939. # We make a subdir and do the tests there. Otherwise we can end up
  2940. # making bogus files that we don't know about and never remove. For
  2941. # instance it was reported that on HP-UX the gcc test will end up
  2942. # making a dummy file named `D' -- because `-MD' means `put the output
  2943. # in D'.
  2944. mkdir conftest.dir
  2945. # Copy depcomp to subdir because otherwise we won't find it if we're
  2946. # using a relative directory.
  2947. cp "$am_depcomp" conftest.dir
  2948. cd conftest.dir
  2949. # We will build objects and dependencies in a subdirectory because
  2950. # it helps to detect inapplicable dependency modes. For instance
  2951. # both Tru64's cc and ICC support -MD to output dependencies as a
  2952. # side effect of compilation, but ICC will put the dependencies in
  2953. # the current directory while Tru64 will put them in the object
  2954. # directory.
  2955. mkdir sub
  2956. am_cv_CXX_dependencies_compiler_type=none
  2957. if test "$am_compiler_list" = ""; then
  2958. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2959. fi
  2960. for depmode in $am_compiler_list; do
  2961. # Setup a source with many dependencies, because some compilers
  2962. # like to wrap large dependency lists on column 80 (with \), and
  2963. # we should not choose a depcomp mode which is confused by this.
  2964. #
  2965. # We need to recreate these files for each test, as the compiler may
  2966. # overwrite some of them when testing with obscure command lines.
  2967. # This happens at least with the AIX C compiler.
  2968. : > sub/conftest.c
  2969. for i in 1 2 3 4 5 6; do
  2970. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2971. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2972. # Solaris 8's {/usr,}/bin/sh.
  2973. touch sub/conftst$i.h
  2974. done
  2975. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2976. case $depmode in
  2977. nosideeffect)
  2978. # after this tag, mechanisms are not by side-effect, so they'll
  2979. # only be used when explicitly requested
  2980. if test "x$enable_dependency_tracking" = xyes; then
  2981. continue
  2982. else
  2983. break
  2984. fi
  2985. ;;
  2986. none) break ;;
  2987. esac
  2988. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2989. # mode. It turns out that the SunPro C++ compiler does not properly
  2990. # handle `-M -o', and we need to detect this.
  2991. if depmode=$depmode \
  2992. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2993. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2994. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2995. >/dev/null 2>conftest.err &&
  2996. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2997. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2998. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2999. # icc doesn't choke on unknown options, it will just issue warnings
  3000. # or remarks (even with -Werror). So we grep stderr for any message
  3001. # that says an option was ignored or not supported.
  3002. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3003. # icc: Command line warning: ignoring option '-M'; no argument required
  3004. # The diagnosis changed in icc 8.0:
  3005. # icc: Command line remark: option '-MP' not supported
  3006. if (grep 'ignoring option' conftest.err ||
  3007. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3008. am_cv_CXX_dependencies_compiler_type=$depmode
  3009. break
  3010. fi
  3011. fi
  3012. done
  3013. cd ..
  3014. rm -rf conftest.dir
  3015. else
  3016. am_cv_CXX_dependencies_compiler_type=none
  3017. fi
  3018. fi
  3019. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3020. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3021. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3022. if
  3023. test "x$enable_dependency_tracking" != xno \
  3024. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3025. am__fastdepCXX_TRUE=
  3026. am__fastdepCXX_FALSE='#'
  3027. else
  3028. am__fastdepCXX_TRUE='#'
  3029. am__fastdepCXX_FALSE=
  3030. fi
  3031. ac_ext=c
  3032. ac_cpp='$CPP $CPPFLAGS'
  3033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3036. if test -n "$ac_tool_prefix"; then
  3037. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3038. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3039. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3040. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3041. if test "${ac_cv_prog_CC+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -n "$CC"; then
  3045. ac_cv_prog_CC="$CC" # Let the user override the test.
  3046. else
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. for as_dir in $PATH
  3049. do
  3050. IFS=$as_save_IFS
  3051. test -z "$as_dir" && as_dir=.
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3054. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3055. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. IFS=$as_save_IFS
  3061. fi
  3062. fi
  3063. CC=$ac_cv_prog_CC
  3064. if test -n "$CC"; then
  3065. { echo "$as_me:$LINENO: result: $CC" >&5
  3066. echo "${ECHO_T}$CC" >&6; }
  3067. else
  3068. { echo "$as_me:$LINENO: result: no" >&5
  3069. echo "${ECHO_T}no" >&6; }
  3070. fi
  3071. fi
  3072. if test -z "$ac_cv_prog_CC"; then
  3073. ac_ct_CC=$CC
  3074. # Extract the first word of "gcc", so it can be a program name with args.
  3075. set dummy gcc; ac_word=$2
  3076. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3077. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3078. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3079. echo $ECHO_N "(cached) $ECHO_C" >&6
  3080. else
  3081. if test -n "$ac_ct_CC"; then
  3082. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3083. else
  3084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3085. for as_dir in $PATH
  3086. do
  3087. IFS=$as_save_IFS
  3088. test -z "$as_dir" && as_dir=.
  3089. for ac_exec_ext in '' $ac_executable_extensions; do
  3090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3091. ac_cv_prog_ac_ct_CC="gcc"
  3092. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3093. break 2
  3094. fi
  3095. done
  3096. done
  3097. IFS=$as_save_IFS
  3098. fi
  3099. fi
  3100. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3101. if test -n "$ac_ct_CC"; then
  3102. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3103. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3104. else
  3105. { echo "$as_me:$LINENO: result: no" >&5
  3106. echo "${ECHO_T}no" >&6; }
  3107. fi
  3108. if test "x$ac_ct_CC" = x; then
  3109. CC=""
  3110. else
  3111. case $cross_compiling:$ac_tool_warned in
  3112. yes:)
  3113. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3114. whose name does not start with the host triplet. If you think this
  3115. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3116. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3117. whose name does not start with the host triplet. If you think this
  3118. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3119. ac_tool_warned=yes ;;
  3120. esac
  3121. CC=$ac_ct_CC
  3122. fi
  3123. else
  3124. CC="$ac_cv_prog_CC"
  3125. fi
  3126. if test -z "$CC"; then
  3127. if test -n "$ac_tool_prefix"; then
  3128. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3129. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3130. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3131. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3132. if test "${ac_cv_prog_CC+set}" = set; then
  3133. echo $ECHO_N "(cached) $ECHO_C" >&6
  3134. else
  3135. if test -n "$CC"; then
  3136. ac_cv_prog_CC="$CC" # Let the user override the test.
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3145. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3146. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3147. break 2
  3148. fi
  3149. done
  3150. done
  3151. IFS=$as_save_IFS
  3152. fi
  3153. fi
  3154. CC=$ac_cv_prog_CC
  3155. if test -n "$CC"; then
  3156. { echo "$as_me:$LINENO: result: $CC" >&5
  3157. echo "${ECHO_T}$CC" >&6; }
  3158. else
  3159. { echo "$as_me:$LINENO: result: no" >&5
  3160. echo "${ECHO_T}no" >&6; }
  3161. fi
  3162. fi
  3163. fi
  3164. if test -z "$CC"; then
  3165. # Extract the first word of "cc", so it can be a program name with args.
  3166. set dummy cc; ac_word=$2
  3167. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3169. if test "${ac_cv_prog_CC+set}" = set; then
  3170. echo $ECHO_N "(cached) $ECHO_C" >&6
  3171. else
  3172. if test -n "$CC"; then
  3173. ac_cv_prog_CC="$CC" # Let the user override the test.
  3174. else
  3175. ac_prog_rejected=no
  3176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3177. for as_dir in $PATH
  3178. do
  3179. IFS=$as_save_IFS
  3180. test -z "$as_dir" && as_dir=.
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3183. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3184. ac_prog_rejected=yes
  3185. continue
  3186. fi
  3187. ac_cv_prog_CC="cc"
  3188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3189. break 2
  3190. fi
  3191. done
  3192. done
  3193. IFS=$as_save_IFS
  3194. if test $ac_prog_rejected = yes; then
  3195. # We found a bogon in the path, so make sure we never use it.
  3196. set dummy $ac_cv_prog_CC
  3197. shift
  3198. if test $# != 0; then
  3199. # We chose a different compiler from the bogus one.
  3200. # However, it has the same basename, so the bogon will be chosen
  3201. # first if we set CC to just the basename; use the full file name.
  3202. shift
  3203. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3204. fi
  3205. fi
  3206. fi
  3207. fi
  3208. CC=$ac_cv_prog_CC
  3209. if test -n "$CC"; then
  3210. { echo "$as_me:$LINENO: result: $CC" >&5
  3211. echo "${ECHO_T}$CC" >&6; }
  3212. else
  3213. { echo "$as_me:$LINENO: result: no" >&5
  3214. echo "${ECHO_T}no" >&6; }
  3215. fi
  3216. fi
  3217. if test -z "$CC"; then
  3218. if test -n "$ac_tool_prefix"; then
  3219. for ac_prog in cl.exe
  3220. do
  3221. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3222. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3223. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3225. if test "${ac_cv_prog_CC+set}" = set; then
  3226. echo $ECHO_N "(cached) $ECHO_C" >&6
  3227. else
  3228. if test -n "$CC"; then
  3229. ac_cv_prog_CC="$CC" # Let the user override the test.
  3230. else
  3231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3232. for as_dir in $PATH
  3233. do
  3234. IFS=$as_save_IFS
  3235. test -z "$as_dir" && as_dir=.
  3236. for ac_exec_ext in '' $ac_executable_extensions; do
  3237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3238. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3240. break 2
  3241. fi
  3242. done
  3243. done
  3244. IFS=$as_save_IFS
  3245. fi
  3246. fi
  3247. CC=$ac_cv_prog_CC
  3248. if test -n "$CC"; then
  3249. { echo "$as_me:$LINENO: result: $CC" >&5
  3250. echo "${ECHO_T}$CC" >&6; }
  3251. else
  3252. { echo "$as_me:$LINENO: result: no" >&5
  3253. echo "${ECHO_T}no" >&6; }
  3254. fi
  3255. test -n "$CC" && break
  3256. done
  3257. fi
  3258. if test -z "$CC"; then
  3259. ac_ct_CC=$CC
  3260. for ac_prog in cl.exe
  3261. do
  3262. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3263. set dummy $ac_prog; ac_word=$2
  3264. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3265. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3266. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. if test -n "$ac_ct_CC"; then
  3270. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3271. else
  3272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3273. for as_dir in $PATH
  3274. do
  3275. IFS=$as_save_IFS
  3276. test -z "$as_dir" && as_dir=.
  3277. for ac_exec_ext in '' $ac_executable_extensions; do
  3278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3279. ac_cv_prog_ac_ct_CC="$ac_prog"
  3280. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3281. break 2
  3282. fi
  3283. done
  3284. done
  3285. IFS=$as_save_IFS
  3286. fi
  3287. fi
  3288. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3289. if test -n "$ac_ct_CC"; then
  3290. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3291. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3292. else
  3293. { echo "$as_me:$LINENO: result: no" >&5
  3294. echo "${ECHO_T}no" >&6; }
  3295. fi
  3296. test -n "$ac_ct_CC" && break
  3297. done
  3298. if test "x$ac_ct_CC" = x; then
  3299. CC=""
  3300. else
  3301. case $cross_compiling:$ac_tool_warned in
  3302. yes:)
  3303. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3304. whose name does not start with the host triplet. If you think this
  3305. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3306. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3307. whose name does not start with the host triplet. If you think this
  3308. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3309. ac_tool_warned=yes ;;
  3310. esac
  3311. CC=$ac_ct_CC
  3312. fi
  3313. fi
  3314. fi
  3315. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3316. See \`config.log' for more details." >&5
  3317. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3318. See \`config.log' for more details." >&2;}
  3319. { (exit 1); exit 1; }; }
  3320. # Provide some information about the compiler.
  3321. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3322. ac_compiler=`set X $ac_compile; echo $2`
  3323. { (ac_try="$ac_compiler --version >&5"
  3324. case "(($ac_try" in
  3325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3326. *) ac_try_echo=$ac_try;;
  3327. esac
  3328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3329. (eval "$ac_compiler --version >&5") 2>&5
  3330. ac_status=$?
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); }
  3333. { (ac_try="$ac_compiler -v >&5"
  3334. case "(($ac_try" in
  3335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3336. *) ac_try_echo=$ac_try;;
  3337. esac
  3338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3339. (eval "$ac_compiler -v >&5") 2>&5
  3340. ac_status=$?
  3341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3342. (exit $ac_status); }
  3343. { (ac_try="$ac_compiler -V >&5"
  3344. case "(($ac_try" in
  3345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3346. *) ac_try_echo=$ac_try;;
  3347. esac
  3348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3349. (eval "$ac_compiler -V >&5") 2>&5
  3350. ac_status=$?
  3351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3352. (exit $ac_status); }
  3353. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3354. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3355. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3356. echo $ECHO_N "(cached) $ECHO_C" >&6
  3357. else
  3358. cat >conftest.$ac_ext <<_ACEOF
  3359. /* confdefs.h. */
  3360. _ACEOF
  3361. cat confdefs.h >>conftest.$ac_ext
  3362. cat >>conftest.$ac_ext <<_ACEOF
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. #ifndef __GNUC__
  3368. choke me
  3369. #endif
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. rm -f conftest.$ac_objext
  3375. if { (ac_try="$ac_compile"
  3376. case "(($ac_try" in
  3377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3378. *) ac_try_echo=$ac_try;;
  3379. esac
  3380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3381. (eval "$ac_compile") 2>conftest.er1
  3382. ac_status=$?
  3383. grep -v '^ *+' conftest.er1 >conftest.err
  3384. rm -f conftest.er1
  3385. cat conftest.err >&5
  3386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3387. (exit $ac_status); } && {
  3388. test -z "$ac_c_werror_flag" ||
  3389. test ! -s conftest.err
  3390. } && test -s conftest.$ac_objext; then
  3391. ac_compiler_gnu=yes
  3392. else
  3393. echo "$as_me: failed program was:" >&5
  3394. sed 's/^/| /' conftest.$ac_ext >&5
  3395. ac_compiler_gnu=no
  3396. fi
  3397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3399. fi
  3400. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3401. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3402. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3403. ac_test_CFLAGS=${CFLAGS+set}
  3404. ac_save_CFLAGS=$CFLAGS
  3405. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3406. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3407. if test "${ac_cv_prog_cc_g+set}" = set; then
  3408. echo $ECHO_N "(cached) $ECHO_C" >&6
  3409. else
  3410. ac_save_c_werror_flag=$ac_c_werror_flag
  3411. ac_c_werror_flag=yes
  3412. ac_cv_prog_cc_g=no
  3413. CFLAGS="-g"
  3414. cat >conftest.$ac_ext <<_ACEOF
  3415. /* confdefs.h. */
  3416. _ACEOF
  3417. cat confdefs.h >>conftest.$ac_ext
  3418. cat >>conftest.$ac_ext <<_ACEOF
  3419. /* end confdefs.h. */
  3420. int
  3421. main ()
  3422. {
  3423. ;
  3424. return 0;
  3425. }
  3426. _ACEOF
  3427. rm -f conftest.$ac_objext
  3428. if { (ac_try="$ac_compile"
  3429. case "(($ac_try" in
  3430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3431. *) ac_try_echo=$ac_try;;
  3432. esac
  3433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3434. (eval "$ac_compile") 2>conftest.er1
  3435. ac_status=$?
  3436. grep -v '^ *+' conftest.er1 >conftest.err
  3437. rm -f conftest.er1
  3438. cat conftest.err >&5
  3439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3440. (exit $ac_status); } && {
  3441. test -z "$ac_c_werror_flag" ||
  3442. test ! -s conftest.err
  3443. } && test -s conftest.$ac_objext; then
  3444. ac_cv_prog_cc_g=yes
  3445. else
  3446. echo "$as_me: failed program was:" >&5
  3447. sed 's/^/| /' conftest.$ac_ext >&5
  3448. CFLAGS=""
  3449. cat >conftest.$ac_ext <<_ACEOF
  3450. /* confdefs.h. */
  3451. _ACEOF
  3452. cat confdefs.h >>conftest.$ac_ext
  3453. cat >>conftest.$ac_ext <<_ACEOF
  3454. /* end confdefs.h. */
  3455. int
  3456. main ()
  3457. {
  3458. ;
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. rm -f conftest.$ac_objext
  3463. if { (ac_try="$ac_compile"
  3464. case "(($ac_try" in
  3465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3466. *) ac_try_echo=$ac_try;;
  3467. esac
  3468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3469. (eval "$ac_compile") 2>conftest.er1
  3470. ac_status=$?
  3471. grep -v '^ *+' conftest.er1 >conftest.err
  3472. rm -f conftest.er1
  3473. cat conftest.err >&5
  3474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3475. (exit $ac_status); } && {
  3476. test -z "$ac_c_werror_flag" ||
  3477. test ! -s conftest.err
  3478. } && test -s conftest.$ac_objext; then
  3479. :
  3480. else
  3481. echo "$as_me: failed program was:" >&5
  3482. sed 's/^/| /' conftest.$ac_ext >&5
  3483. ac_c_werror_flag=$ac_save_c_werror_flag
  3484. CFLAGS="-g"
  3485. cat >conftest.$ac_ext <<_ACEOF
  3486. /* confdefs.h. */
  3487. _ACEOF
  3488. cat confdefs.h >>conftest.$ac_ext
  3489. cat >>conftest.$ac_ext <<_ACEOF
  3490. /* end confdefs.h. */
  3491. int
  3492. main ()
  3493. {
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. rm -f conftest.$ac_objext
  3499. if { (ac_try="$ac_compile"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3505. (eval "$ac_compile") 2>conftest.er1
  3506. ac_status=$?
  3507. grep -v '^ *+' conftest.er1 >conftest.err
  3508. rm -f conftest.er1
  3509. cat conftest.err >&5
  3510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3511. (exit $ac_status); } && {
  3512. test -z "$ac_c_werror_flag" ||
  3513. test ! -s conftest.err
  3514. } && test -s conftest.$ac_objext; then
  3515. ac_cv_prog_cc_g=yes
  3516. else
  3517. echo "$as_me: failed program was:" >&5
  3518. sed 's/^/| /' conftest.$ac_ext >&5
  3519. fi
  3520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3521. fi
  3522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3523. fi
  3524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3525. ac_c_werror_flag=$ac_save_c_werror_flag
  3526. fi
  3527. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3528. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3529. if test "$ac_test_CFLAGS" = set; then
  3530. CFLAGS=$ac_save_CFLAGS
  3531. elif test $ac_cv_prog_cc_g = yes; then
  3532. if test "$GCC" = yes; then
  3533. CFLAGS="-g -O2"
  3534. else
  3535. CFLAGS="-g"
  3536. fi
  3537. else
  3538. if test "$GCC" = yes; then
  3539. CFLAGS="-O2"
  3540. else
  3541. CFLAGS=
  3542. fi
  3543. fi
  3544. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3545. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3546. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3547. echo $ECHO_N "(cached) $ECHO_C" >&6
  3548. else
  3549. ac_cv_prog_cc_c89=no
  3550. ac_save_CC=$CC
  3551. cat >conftest.$ac_ext <<_ACEOF
  3552. /* confdefs.h. */
  3553. _ACEOF
  3554. cat confdefs.h >>conftest.$ac_ext
  3555. cat >>conftest.$ac_ext <<_ACEOF
  3556. /* end confdefs.h. */
  3557. #include <stdarg.h>
  3558. #include <stdio.h>
  3559. #include <sys/types.h>
  3560. #include <sys/stat.h>
  3561. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3562. struct buf { int x; };
  3563. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3564. static char *e (p, i)
  3565. char **p;
  3566. int i;
  3567. {
  3568. return p[i];
  3569. }
  3570. static char *f (char * (*g) (char **, int), char **p, ...)
  3571. {
  3572. char *s;
  3573. va_list v;
  3574. va_start (v,p);
  3575. s = g (p, va_arg (v,int));
  3576. va_end (v);
  3577. return s;
  3578. }
  3579. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3580. function prototypes and stuff, but not '\xHH' hex character constants.
  3581. These don't provoke an error unfortunately, instead are silently treated
  3582. as 'x'. The following induces an error, until -std is added to get
  3583. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3584. array size at least. It's necessary to write '\x00'==0 to get something
  3585. that's true only with -std. */
  3586. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3587. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3588. inside strings and character constants. */
  3589. #define FOO(x) 'x'
  3590. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3591. int test (int i, double x);
  3592. struct s1 {int (*f) (int a);};
  3593. struct s2 {int (*f) (double a);};
  3594. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3595. int argc;
  3596. char **argv;
  3597. int
  3598. main ()
  3599. {
  3600. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3606. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3607. do
  3608. CC="$ac_save_CC $ac_arg"
  3609. rm -f conftest.$ac_objext
  3610. if { (ac_try="$ac_compile"
  3611. case "(($ac_try" in
  3612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3613. *) ac_try_echo=$ac_try;;
  3614. esac
  3615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3616. (eval "$ac_compile") 2>conftest.er1
  3617. ac_status=$?
  3618. grep -v '^ *+' conftest.er1 >conftest.err
  3619. rm -f conftest.er1
  3620. cat conftest.err >&5
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); } && {
  3623. test -z "$ac_c_werror_flag" ||
  3624. test ! -s conftest.err
  3625. } && test -s conftest.$ac_objext; then
  3626. ac_cv_prog_cc_c89=$ac_arg
  3627. else
  3628. echo "$as_me: failed program was:" >&5
  3629. sed 's/^/| /' conftest.$ac_ext >&5
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext
  3632. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3633. done
  3634. rm -f conftest.$ac_ext
  3635. CC=$ac_save_CC
  3636. fi
  3637. # AC_CACHE_VAL
  3638. case "x$ac_cv_prog_cc_c89" in
  3639. x)
  3640. { echo "$as_me:$LINENO: result: none needed" >&5
  3641. echo "${ECHO_T}none needed" >&6; } ;;
  3642. xno)
  3643. { echo "$as_me:$LINENO: result: unsupported" >&5
  3644. echo "${ECHO_T}unsupported" >&6; } ;;
  3645. *)
  3646. CC="$CC $ac_cv_prog_cc_c89"
  3647. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3648. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3649. esac
  3650. ac_ext=c
  3651. ac_cpp='$CPP $CPPFLAGS'
  3652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3655. depcc="$CC" am_compiler_list=
  3656. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3657. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3658. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3659. echo $ECHO_N "(cached) $ECHO_C" >&6
  3660. else
  3661. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3662. # We make a subdir and do the tests there. Otherwise we can end up
  3663. # making bogus files that we don't know about and never remove. For
  3664. # instance it was reported that on HP-UX the gcc test will end up
  3665. # making a dummy file named `D' -- because `-MD' means `put the output
  3666. # in D'.
  3667. mkdir conftest.dir
  3668. # Copy depcomp to subdir because otherwise we won't find it if we're
  3669. # using a relative directory.
  3670. cp "$am_depcomp" conftest.dir
  3671. cd conftest.dir
  3672. # We will build objects and dependencies in a subdirectory because
  3673. # it helps to detect inapplicable dependency modes. For instance
  3674. # both Tru64's cc and ICC support -MD to output dependencies as a
  3675. # side effect of compilation, but ICC will put the dependencies in
  3676. # the current directory while Tru64 will put them in the object
  3677. # directory.
  3678. mkdir sub
  3679. am_cv_CC_dependencies_compiler_type=none
  3680. if test "$am_compiler_list" = ""; then
  3681. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3682. fi
  3683. for depmode in $am_compiler_list; do
  3684. # Setup a source with many dependencies, because some compilers
  3685. # like to wrap large dependency lists on column 80 (with \), and
  3686. # we should not choose a depcomp mode which is confused by this.
  3687. #
  3688. # We need to recreate these files for each test, as the compiler may
  3689. # overwrite some of them when testing with obscure command lines.
  3690. # This happens at least with the AIX C compiler.
  3691. : > sub/conftest.c
  3692. for i in 1 2 3 4 5 6; do
  3693. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3694. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3695. # Solaris 8's {/usr,}/bin/sh.
  3696. touch sub/conftst$i.h
  3697. done
  3698. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3699. case $depmode in
  3700. nosideeffect)
  3701. # after this tag, mechanisms are not by side-effect, so they'll
  3702. # only be used when explicitly requested
  3703. if test "x$enable_dependency_tracking" = xyes; then
  3704. continue
  3705. else
  3706. break
  3707. fi
  3708. ;;
  3709. none) break ;;
  3710. esac
  3711. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3712. # mode. It turns out that the SunPro C++ compiler does not properly
  3713. # handle `-M -o', and we need to detect this.
  3714. if depmode=$depmode \
  3715. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3716. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3717. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3718. >/dev/null 2>conftest.err &&
  3719. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3720. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3721. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3722. # icc doesn't choke on unknown options, it will just issue warnings
  3723. # or remarks (even with -Werror). So we grep stderr for any message
  3724. # that says an option was ignored or not supported.
  3725. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3726. # icc: Command line warning: ignoring option '-M'; no argument required
  3727. # The diagnosis changed in icc 8.0:
  3728. # icc: Command line remark: option '-MP' not supported
  3729. if (grep 'ignoring option' conftest.err ||
  3730. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3731. am_cv_CC_dependencies_compiler_type=$depmode
  3732. break
  3733. fi
  3734. fi
  3735. done
  3736. cd ..
  3737. rm -rf conftest.dir
  3738. else
  3739. am_cv_CC_dependencies_compiler_type=none
  3740. fi
  3741. fi
  3742. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3743. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3744. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3745. if
  3746. test "x$enable_dependency_tracking" != xno \
  3747. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3748. am__fastdepCC_TRUE=
  3749. am__fastdepCC_FALSE='#'
  3750. else
  3751. am__fastdepCC_TRUE='#'
  3752. am__fastdepCC_FALSE=
  3753. fi
  3754. # Find a good install program. We prefer a C program (faster),
  3755. # so one script is as good as another. But avoid the broken or
  3756. # incompatible versions:
  3757. # SysV /etc/install, /usr/sbin/install
  3758. # SunOS /usr/etc/install
  3759. # IRIX /sbin/install
  3760. # AIX /bin/install
  3761. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3762. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3763. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3764. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3765. # OS/2's system install, which has a completely different semantic
  3766. # ./install, which can be erroneously created by make from ./install.sh.
  3767. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3768. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3769. if test -z "$INSTALL"; then
  3770. if test "${ac_cv_path_install+set}" = set; then
  3771. echo $ECHO_N "(cached) $ECHO_C" >&6
  3772. else
  3773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3774. for as_dir in $PATH
  3775. do
  3776. IFS=$as_save_IFS
  3777. test -z "$as_dir" && as_dir=.
  3778. # Account for people who put trailing slashes in PATH elements.
  3779. case $as_dir/ in
  3780. ./ | .// | /cC/* | \
  3781. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3782. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3783. /usr/ucb/* ) ;;
  3784. *)
  3785. # OSF1 and SCO ODT 3.0 have their own names for install.
  3786. # Don't use installbsd from OSF since it installs stuff as root
  3787. # by default.
  3788. for ac_prog in ginstall scoinst install; do
  3789. for ac_exec_ext in '' $ac_executable_extensions; do
  3790. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3791. if test $ac_prog = install &&
  3792. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3793. # AIX install. It has an incompatible calling convention.
  3794. :
  3795. elif test $ac_prog = install &&
  3796. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3797. # program-specific install script used by HP pwplus--don't use.
  3798. :
  3799. else
  3800. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3801. break 3
  3802. fi
  3803. fi
  3804. done
  3805. done
  3806. ;;
  3807. esac
  3808. done
  3809. IFS=$as_save_IFS
  3810. fi
  3811. if test "${ac_cv_path_install+set}" = set; then
  3812. INSTALL=$ac_cv_path_install
  3813. else
  3814. # As a last resort, use the slow shell script. Don't cache a
  3815. # value for INSTALL within a source directory, because that will
  3816. # break other packages using the cache if that directory is
  3817. # removed, or if the value is a relative name.
  3818. INSTALL=$ac_install_sh
  3819. fi
  3820. fi
  3821. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3822. echo "${ECHO_T}$INSTALL" >&6; }
  3823. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3824. # It thinks the first close brace ends the variable substitution.
  3825. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3826. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3827. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3828. if test -n "$ac_tool_prefix"; then
  3829. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3830. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3831. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3832. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3833. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3834. echo $ECHO_N "(cached) $ECHO_C" >&6
  3835. else
  3836. if test -n "$RANLIB"; then
  3837. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3838. else
  3839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3840. for as_dir in $PATH
  3841. do
  3842. IFS=$as_save_IFS
  3843. test -z "$as_dir" && as_dir=.
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3846. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3847. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3848. break 2
  3849. fi
  3850. done
  3851. done
  3852. IFS=$as_save_IFS
  3853. fi
  3854. fi
  3855. RANLIB=$ac_cv_prog_RANLIB
  3856. if test -n "$RANLIB"; then
  3857. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3858. echo "${ECHO_T}$RANLIB" >&6; }
  3859. else
  3860. { echo "$as_me:$LINENO: result: no" >&5
  3861. echo "${ECHO_T}no" >&6; }
  3862. fi
  3863. fi
  3864. if test -z "$ac_cv_prog_RANLIB"; then
  3865. ac_ct_RANLIB=$RANLIB
  3866. # Extract the first word of "ranlib", so it can be a program name with args.
  3867. set dummy ranlib; ac_word=$2
  3868. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3869. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3870. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3871. echo $ECHO_N "(cached) $ECHO_C" >&6
  3872. else
  3873. if test -n "$ac_ct_RANLIB"; then
  3874. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3875. else
  3876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3877. for as_dir in $PATH
  3878. do
  3879. IFS=$as_save_IFS
  3880. test -z "$as_dir" && as_dir=.
  3881. for ac_exec_ext in '' $ac_executable_extensions; do
  3882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3883. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3884. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3885. break 2
  3886. fi
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. fi
  3891. fi
  3892. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3893. if test -n "$ac_ct_RANLIB"; then
  3894. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3895. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3896. else
  3897. { echo "$as_me:$LINENO: result: no" >&5
  3898. echo "${ECHO_T}no" >&6; }
  3899. fi
  3900. if test "x$ac_ct_RANLIB" = x; then
  3901. RANLIB=":"
  3902. else
  3903. case $cross_compiling:$ac_tool_warned in
  3904. yes:)
  3905. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3906. whose name does not start with the host triplet. If you think this
  3907. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3908. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3909. whose name does not start with the host triplet. If you think this
  3910. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3911. ac_tool_warned=yes ;;
  3912. esac
  3913. RANLIB=$ac_ct_RANLIB
  3914. fi
  3915. else
  3916. RANLIB="$ac_cv_prog_RANLIB"
  3917. fi
  3918. for ac_prog in 'bison -y' byacc
  3919. do
  3920. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3921. set dummy $ac_prog; ac_word=$2
  3922. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3923. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3924. if test "${ac_cv_prog_YACC+set}" = set; then
  3925. echo $ECHO_N "(cached) $ECHO_C" >&6
  3926. else
  3927. if test -n "$YACC"; then
  3928. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_exec_ext in '' $ac_executable_extensions; do
  3936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3937. ac_cv_prog_YACC="$ac_prog"
  3938. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939. break 2
  3940. fi
  3941. done
  3942. done
  3943. IFS=$as_save_IFS
  3944. fi
  3945. fi
  3946. YACC=$ac_cv_prog_YACC
  3947. if test -n "$YACC"; then
  3948. { echo "$as_me:$LINENO: result: $YACC" >&5
  3949. echo "${ECHO_T}$YACC" >&6; }
  3950. else
  3951. { echo "$as_me:$LINENO: result: no" >&5
  3952. echo "${ECHO_T}no" >&6; }
  3953. fi
  3954. test -n "$YACC" && break
  3955. done
  3956. test -n "$YACC" || YACC="yacc"
  3957. # Checks for libraries.
  3958. if test "x$with_libxml2" = "xyes"; then
  3959. # Check whether --with-xml-prefix was given.
  3960. if test "${with_xml_prefix+set}" = set; then
  3961. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3962. else
  3963. xml_config_prefix=""
  3964. fi
  3965. # Check whether --with-xml-exec-prefix was given.
  3966. if test "${with_xml_exec_prefix+set}" = set; then
  3967. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3968. else
  3969. xml_config_exec_prefix=""
  3970. fi
  3971. # Check whether --enable-xmltest was given.
  3972. if test "${enable_xmltest+set}" = set; then
  3973. enableval=$enable_xmltest;
  3974. else
  3975. enable_xmltest=yes
  3976. fi
  3977. if test x$xml_config_exec_prefix != x ; then
  3978. xml_config_args="$xml_config_args"
  3979. if test x${XML2_CONFIG+set} != xset ; then
  3980. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3981. fi
  3982. fi
  3983. if test x$xml_config_prefix != x ; then
  3984. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3985. if test x${XML2_CONFIG+set} != xset ; then
  3986. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3987. fi
  3988. fi
  3989. # Extract the first word of "xml2-config", so it can be a program name with args.
  3990. set dummy xml2-config; ac_word=$2
  3991. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3992. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3993. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3994. echo $ECHO_N "(cached) $ECHO_C" >&6
  3995. else
  3996. case $XML2_CONFIG in
  3997. [\\/]* | ?:[\\/]*)
  3998. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3999. ;;
  4000. *)
  4001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4002. for as_dir in $PATH
  4003. do
  4004. IFS=$as_save_IFS
  4005. test -z "$as_dir" && as_dir=.
  4006. for ac_exec_ext in '' $ac_executable_extensions; do
  4007. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4008. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4009. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4010. break 2
  4011. fi
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4016. ;;
  4017. esac
  4018. fi
  4019. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4020. if test -n "$XML2_CONFIG"; then
  4021. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4022. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4023. else
  4024. { echo "$as_me:$LINENO: result: no" >&5
  4025. echo "${ECHO_T}no" >&6; }
  4026. fi
  4027. min_xml_version=2.6.24
  4028. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4029. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4030. no_xml=""
  4031. if test "$XML2_CONFIG" = "no" ; then
  4032. no_xml=yes
  4033. else
  4034. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4035. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4036. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4037. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4038. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4039. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4040. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4041. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4042. if test "x$enable_xmltest" = "xyes" ; then
  4043. ac_save_CPPFLAGS="$CPPFLAGS"
  4044. ac_save_LIBS="$LIBS"
  4045. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4046. LIBS="$XML_LIBS $LIBS"
  4047. rm -f conf.xmltest
  4048. if test "$cross_compiling" = yes; then
  4049. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4050. else
  4051. cat >conftest.$ac_ext <<_ACEOF
  4052. /* confdefs.h. */
  4053. _ACEOF
  4054. cat confdefs.h >>conftest.$ac_ext
  4055. cat >>conftest.$ac_ext <<_ACEOF
  4056. /* end confdefs.h. */
  4057. #include <stdlib.h>
  4058. #include <stdio.h>
  4059. #include <string.h>
  4060. #include <libxml/xmlversion.h>
  4061. int
  4062. main()
  4063. {
  4064. int xml_major_version, xml_minor_version, xml_micro_version;
  4065. int major, minor, micro;
  4066. char *tmp_version;
  4067. system("touch conf.xmltest");
  4068. /* Capture xml2-config output via autoconf/configure variables */
  4069. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4070. tmp_version = (char *)strdup("$min_xml_version");
  4071. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4072. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4073. exit(1);
  4074. }
  4075. free(tmp_version);
  4076. /* Capture the version information from the header files */
  4077. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4078. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4079. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4080. exit(1);
  4081. }
  4082. free(tmp_version);
  4083. /* Compare xml2-config output to the libxml headers */
  4084. if ((xml_major_version != $xml_config_major_version) ||
  4085. (xml_minor_version != $xml_config_minor_version) ||
  4086. (xml_micro_version != $xml_config_micro_version))
  4087. {
  4088. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4089. xml_major_version, xml_minor_version, xml_micro_version);
  4090. printf("*** xml2-config (version %d.%d.%d)\n",
  4091. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4092. return 1;
  4093. }
  4094. /* Compare the headers to the library to make sure we match */
  4095. /* Less than ideal -- doesn't provide us with return value feedback,
  4096. * only exits if there's a serious mismatch between header and library.
  4097. */
  4098. LIBXML_TEST_VERSION;
  4099. /* Test that the library is greater than our minimum version */
  4100. if ((xml_major_version > major) ||
  4101. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4102. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4103. (xml_micro_version >= micro)))
  4104. {
  4105. return 0;
  4106. }
  4107. else
  4108. {
  4109. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4110. xml_major_version, xml_minor_version, xml_micro_version);
  4111. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4112. major, minor, micro);
  4113. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4114. printf("***\n");
  4115. printf("*** If you have already installed a sufficiently new version, this error\n");
  4116. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4117. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4118. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4119. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4120. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4121. printf("*** so that the correct libraries are found at run-time))\n");
  4122. }
  4123. return 1;
  4124. }
  4125. _ACEOF
  4126. rm -f conftest$ac_exeext
  4127. if { (ac_try="$ac_link"
  4128. case "(($ac_try" in
  4129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4130. *) ac_try_echo=$ac_try;;
  4131. esac
  4132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4133. (eval "$ac_link") 2>&5
  4134. ac_status=$?
  4135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4136. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4137. { (case "(($ac_try" in
  4138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4139. *) ac_try_echo=$ac_try;;
  4140. esac
  4141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4142. (eval "$ac_try") 2>&5
  4143. ac_status=$?
  4144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); }; }; then
  4146. :
  4147. else
  4148. echo "$as_me: program exited with status $ac_status" >&5
  4149. echo "$as_me: failed program was:" >&5
  4150. sed 's/^/| /' conftest.$ac_ext >&5
  4151. ( exit $ac_status )
  4152. no_xml=yes
  4153. fi
  4154. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4155. fi
  4156. CPPFLAGS="$ac_save_CPPFLAGS"
  4157. LIBS="$ac_save_LIBS"
  4158. fi
  4159. fi
  4160. if test "x$no_xml" = x ; then
  4161. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4162. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4163. have_libxml2=yes
  4164. else
  4165. { echo "$as_me:$LINENO: result: no" >&5
  4166. echo "${ECHO_T}no" >&6; }
  4167. if test "$XML2_CONFIG" = "no" ; then
  4168. echo "*** The xml2-config script installed by LIBXML could not be found"
  4169. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4170. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4171. echo "*** full path to xml2-config."
  4172. else
  4173. if test -f conf.xmltest ; then
  4174. :
  4175. else
  4176. echo "*** Could not run libxml test program, checking why..."
  4177. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4178. LIBS="$LIBS $XML_LIBS"
  4179. cat >conftest.$ac_ext <<_ACEOF
  4180. /* confdefs.h. */
  4181. _ACEOF
  4182. cat confdefs.h >>conftest.$ac_ext
  4183. cat >>conftest.$ac_ext <<_ACEOF
  4184. /* end confdefs.h. */
  4185. #include <libxml/xmlversion.h>
  4186. #include <stdio.h>
  4187. int
  4188. main ()
  4189. {
  4190. LIBXML_TEST_VERSION; return 0;
  4191. ;
  4192. return 0;
  4193. }
  4194. _ACEOF
  4195. rm -f conftest.$ac_objext conftest$ac_exeext
  4196. if { (ac_try="$ac_link"
  4197. case "(($ac_try" in
  4198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4199. *) ac_try_echo=$ac_try;;
  4200. esac
  4201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4202. (eval "$ac_link") 2>conftest.er1
  4203. ac_status=$?
  4204. grep -v '^ *+' conftest.er1 >conftest.err
  4205. rm -f conftest.er1
  4206. cat conftest.err >&5
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); } && {
  4209. test -z "$ac_c_werror_flag" ||
  4210. test ! -s conftest.err
  4211. } && test -s conftest$ac_exeext &&
  4212. $as_test_x conftest$ac_exeext; then
  4213. echo "*** The test program compiled, but did not run. This usually means"
  4214. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4215. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4216. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4217. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4218. echo "*** is required on your system"
  4219. echo "***"
  4220. echo "*** If you have an old version installed, it is best to remove it, although"
  4221. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4222. else
  4223. echo "$as_me: failed program was:" >&5
  4224. sed 's/^/| /' conftest.$ac_ext >&5
  4225. echo "*** The test program failed to compile or link. See the file config.log for the"
  4226. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4227. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4228. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4231. conftest$ac_exeext conftest.$ac_ext
  4232. CPPFLAGS="$ac_save_CPPFLAGS"
  4233. LIBS="$ac_save_LIBS"
  4234. fi
  4235. fi
  4236. XML_CPPFLAGS=""
  4237. XML_LIBS=""
  4238. :
  4239. fi
  4240. rm -f conf.xmltest
  4241. if test "x$have_libxml2" = "xyes"; then
  4242. cat >>confdefs.h <<\_ACEOF
  4243. #define HAVE_LIBXML2 1
  4244. _ACEOF
  4245. fi
  4246. fi
  4247. if test "x$with_gnutls" = "xyes"; then
  4248. # Check whether --with-libgnutls-prefix was given.
  4249. if test "${with_libgnutls_prefix+set}" = set; then
  4250. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4251. else
  4252. libgnutls_config_prefix=""
  4253. fi
  4254. if test x$libgnutls_config_prefix != x ; then
  4255. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4256. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4257. fi
  4258. fi
  4259. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4260. set dummy libgnutls-config; ac_word=$2
  4261. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4262. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4263. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4264. echo $ECHO_N "(cached) $ECHO_C" >&6
  4265. else
  4266. case $LIBGNUTLS_CONFIG in
  4267. [\\/]* | ?:[\\/]*)
  4268. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4269. ;;
  4270. *)
  4271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4272. for as_dir in $PATH
  4273. do
  4274. IFS=$as_save_IFS
  4275. test -z "$as_dir" && as_dir=.
  4276. for ac_exec_ext in '' $ac_executable_extensions; do
  4277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4278. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4280. break 2
  4281. fi
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4286. ;;
  4287. esac
  4288. fi
  4289. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4290. if test -n "$LIBGNUTLS_CONFIG"; then
  4291. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4292. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4293. else
  4294. { echo "$as_me:$LINENO: result: no" >&5
  4295. echo "${ECHO_T}no" >&6; }
  4296. fi
  4297. min_libgnutls_version=1.2.9
  4298. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4299. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4300. no_libgnutls=""
  4301. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4302. no_libgnutls=yes
  4303. else
  4304. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4305. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4306. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4307. ac_save_CFLAGS="$CFLAGS"
  4308. ac_save_LIBS="$LIBS"
  4309. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4310. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4311. rm -f conf.libgnutlstest
  4312. if test "$cross_compiling" = yes; then
  4313. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4314. else
  4315. cat >conftest.$ac_ext <<_ACEOF
  4316. /* confdefs.h. */
  4317. _ACEOF
  4318. cat confdefs.h >>conftest.$ac_ext
  4319. cat >>conftest.$ac_ext <<_ACEOF
  4320. /* end confdefs.h. */
  4321. #include <stdio.h>
  4322. #include <stdlib.h>
  4323. #include <string.h>
  4324. #include <gnutls/gnutls.h>
  4325. int
  4326. main ()
  4327. {
  4328. system ("touch conf.libgnutlstest");
  4329. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4330. {
  4331. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4332. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4333. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4334. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4335. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4336. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4337. printf("*** required on your system.\n");
  4338. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4339. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4340. printf("*** before re-running configure\n");
  4341. }
  4342. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4343. {
  4344. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4345. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4346. }
  4347. else
  4348. {
  4349. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4350. {
  4351. return 0;
  4352. }
  4353. else
  4354. {
  4355. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4356. gnutls_check_version(NULL) );
  4357. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4358. "$min_libgnutls_version" );
  4359. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4360. printf("*** \n");
  4361. printf("*** If you have already installed a sufficiently new version, this error\n");
  4362. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4363. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4364. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4365. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4366. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4367. printf("*** so that the correct libraries are found at run-time))\n");
  4368. }
  4369. }
  4370. return 1;
  4371. }
  4372. _ACEOF
  4373. rm -f conftest$ac_exeext
  4374. if { (ac_try="$ac_link"
  4375. case "(($ac_try" in
  4376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4377. *) ac_try_echo=$ac_try;;
  4378. esac
  4379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4380. (eval "$ac_link") 2>&5
  4381. ac_status=$?
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4384. { (case "(($ac_try" in
  4385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4386. *) ac_try_echo=$ac_try;;
  4387. esac
  4388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4389. (eval "$ac_try") 2>&5
  4390. ac_status=$?
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); }; }; then
  4393. :
  4394. else
  4395. echo "$as_me: program exited with status $ac_status" >&5
  4396. echo "$as_me: failed program was:" >&5
  4397. sed 's/^/| /' conftest.$ac_ext >&5
  4398. ( exit $ac_status )
  4399. no_libgnutls=yes
  4400. fi
  4401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4402. fi
  4403. CFLAGS="$ac_save_CFLAGS"
  4404. LIBS="$ac_save_LIBS"
  4405. fi
  4406. if test "x$no_libgnutls" = x ; then
  4407. { echo "$as_me:$LINENO: result: yes" >&5
  4408. echo "${ECHO_T}yes" >&6; }
  4409. have_libgnutls=yes
  4410. else
  4411. if test -f conf.libgnutlstest ; then
  4412. :
  4413. else
  4414. { echo "$as_me:$LINENO: result: no" >&5
  4415. echo "${ECHO_T}no" >&6; }
  4416. fi
  4417. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4418. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4419. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4420. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4421. echo "*** full path to libgnutls-config."
  4422. else
  4423. if test -f conf.libgnutlstest ; then
  4424. :
  4425. else
  4426. echo "*** Could not run libgnutls test program, checking why..."
  4427. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4428. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4429. cat >conftest.$ac_ext <<_ACEOF
  4430. /* confdefs.h. */
  4431. _ACEOF
  4432. cat confdefs.h >>conftest.$ac_ext
  4433. cat >>conftest.$ac_ext <<_ACEOF
  4434. /* end confdefs.h. */
  4435. #include <stdio.h>
  4436. #include <stdlib.h>
  4437. #include <string.h>
  4438. #include <gnutls/gnutls.h>
  4439. int
  4440. main ()
  4441. {
  4442. return !!gnutls_check_version(NULL);
  4443. ;
  4444. return 0;
  4445. }
  4446. _ACEOF
  4447. rm -f conftest.$ac_objext conftest$ac_exeext
  4448. if { (ac_try="$ac_link"
  4449. case "(($ac_try" in
  4450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4451. *) ac_try_echo=$ac_try;;
  4452. esac
  4453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4454. (eval "$ac_link") 2>conftest.er1
  4455. ac_status=$?
  4456. grep -v '^ *+' conftest.er1 >conftest.err
  4457. rm -f conftest.er1
  4458. cat conftest.err >&5
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); } && {
  4461. test -z "$ac_c_werror_flag" ||
  4462. test ! -s conftest.err
  4463. } && test -s conftest$ac_exeext &&
  4464. $as_test_x conftest$ac_exeext; then
  4465. echo "*** The test program compiled, but did not run. This usually means"
  4466. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4467. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4468. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4469. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4470. echo "*** is required on your system"
  4471. echo "***"
  4472. echo "*** If you have an old version installed, it is best to remove it, although"
  4473. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4474. echo "***"
  4475. else
  4476. echo "$as_me: failed program was:" >&5
  4477. sed 's/^/| /' conftest.$ac_ext >&5
  4478. echo "*** The test program failed to compile or link. See the file config.log for the"
  4479. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4480. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4481. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4482. fi
  4483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4484. conftest$ac_exeext conftest.$ac_ext
  4485. CFLAGS="$ac_save_CFLAGS"
  4486. LIBS="$ac_save_LIBS"
  4487. fi
  4488. fi
  4489. LIBGNUTLS_CFLAGS=""
  4490. LIBGNUTLS_LIBS=""
  4491. :
  4492. fi
  4493. rm -f conf.libgnutlstest
  4494. if test "x$have_libgnutls" = "xyes"; then
  4495. cat >>confdefs.h <<\_ACEOF
  4496. #define HAVE_LIBGNUTLS 1
  4497. _ACEOF
  4498. fi
  4499. fi
  4500. if test "x$have_libgnutls" = "xyes"; then
  4501. # Check whether --with-libgcrypt-prefix was given.
  4502. if test "${with_libgcrypt_prefix+set}" = set; then
  4503. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4504. else
  4505. libgcrypt_config_prefix=""
  4506. fi
  4507. if test x$libgcrypt_config_prefix != x ; then
  4508. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4509. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4510. fi
  4511. fi
  4512. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4513. set dummy libgcrypt-config; ac_word=$2
  4514. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4516. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4517. echo $ECHO_N "(cached) $ECHO_C" >&6
  4518. else
  4519. case $LIBGCRYPT_CONFIG in
  4520. [\\/]* | ?:[\\/]*)
  4521. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4522. ;;
  4523. *)
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_exec_ext in '' $ac_executable_extensions; do
  4530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4531. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4532. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4533. break 2
  4534. fi
  4535. done
  4536. done
  4537. IFS=$as_save_IFS
  4538. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4539. ;;
  4540. esac
  4541. fi
  4542. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4543. if test -n "$LIBGCRYPT_CONFIG"; then
  4544. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4545. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4546. else
  4547. { echo "$as_me:$LINENO: result: no" >&5
  4548. echo "${ECHO_T}no" >&6; }
  4549. fi
  4550. tmp=1.2.2
  4551. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4552. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4553. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4554. else
  4555. req_libgcrypt_api=0
  4556. min_libgcrypt_version="$tmp"
  4557. fi
  4558. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4559. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4560. ok=no
  4561. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4562. req_major=`echo $min_libgcrypt_version | \
  4563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4564. req_minor=`echo $min_libgcrypt_version | \
  4565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4566. req_micro=`echo $min_libgcrypt_version | \
  4567. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4568. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4569. major=`echo $libgcrypt_config_version | \
  4570. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4571. minor=`echo $libgcrypt_config_version | \
  4572. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4573. micro=`echo $libgcrypt_config_version | \
  4574. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4575. if test "$major" -gt "$req_major"; then
  4576. ok=yes
  4577. else
  4578. if test "$major" -eq "$req_major"; then
  4579. if test "$minor" -gt "$req_minor"; then
  4580. ok=yes
  4581. else
  4582. if test "$minor" -eq "$req_minor"; then
  4583. if test "$micro" -ge "$req_micro"; then
  4584. ok=yes
  4585. fi
  4586. fi
  4587. fi
  4588. fi
  4589. fi
  4590. fi
  4591. if test $ok = yes; then
  4592. { echo "$as_me:$LINENO: result: yes" >&5
  4593. echo "${ECHO_T}yes" >&6; }
  4594. else
  4595. { echo "$as_me:$LINENO: result: no" >&5
  4596. echo "${ECHO_T}no" >&6; }
  4597. fi
  4598. if test $ok = yes; then
  4599. # If we have a recent libgcrypt, we should also check that the
  4600. # API is compatible
  4601. if test "$req_libgcrypt_api" -gt 0 ; then
  4602. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4603. if test "$tmp" -gt 0 ; then
  4604. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4605. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4606. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4607. { echo "$as_me:$LINENO: result: okay" >&5
  4608. echo "${ECHO_T}okay" >&6; }
  4609. else
  4610. ok=no
  4611. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4612. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4613. fi
  4614. fi
  4615. fi
  4616. fi
  4617. if test $ok = yes; then
  4618. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4619. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4620. have_libgcrypt=yes
  4621. else
  4622. LIBGCRYPT_CFLAGS=""
  4623. LIBGCRYPT_LIBS=""
  4624. :
  4625. fi
  4626. if test "x$have_libgcrypt" = "xyes"; then
  4627. cat >>confdefs.h <<\_ACEOF
  4628. #define HAVE_LIBGCRYPT 1
  4629. _ACEOF
  4630. fi
  4631. fi
  4632. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4633. # Check whether --with-openssl-prefix was given.
  4634. if test "${with_openssl_prefix+set}" = set; then
  4635. withval=$with_openssl_prefix; openssl_prefix=$withval
  4636. else
  4637. openssl_prefix=""
  4638. fi
  4639. if test "x$openssl_prefix" = "x"; then
  4640. openssl_prefix="/usr/local"
  4641. fi
  4642. openssl_prefix_lib=$openssl_prefix/lib
  4643. openssl_prefix_include=$openssl_prefix/include
  4644. LIBS_save=$LIBS
  4645. CPPFLAGS_save=$CPPFLAGS
  4646. LIBS="-L$openssl_prefix_lib $LIBS"
  4647. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4648. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4649. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4650. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. ac_check_lib_save_LIBS=$LIBS
  4654. LIBS="-lssl $LIBS"
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. /* Override any GCC internal prototype to avoid an error.
  4662. Use char because int might match the return type of a GCC
  4663. builtin and then its argument prototype would still apply. */
  4664. #ifdef __cplusplus
  4665. extern "C"
  4666. #endif
  4667. char SSL_library_init ();
  4668. int
  4669. main ()
  4670. {
  4671. return SSL_library_init ();
  4672. ;
  4673. return 0;
  4674. }
  4675. _ACEOF
  4676. rm -f conftest.$ac_objext conftest$ac_exeext
  4677. if { (ac_try="$ac_link"
  4678. case "(($ac_try" in
  4679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4680. *) ac_try_echo=$ac_try;;
  4681. esac
  4682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4683. (eval "$ac_link") 2>conftest.er1
  4684. ac_status=$?
  4685. grep -v '^ *+' conftest.er1 >conftest.err
  4686. rm -f conftest.er1
  4687. cat conftest.err >&5
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); } && {
  4690. test -z "$ac_c_werror_flag" ||
  4691. test ! -s conftest.err
  4692. } && test -s conftest$ac_exeext &&
  4693. $as_test_x conftest$ac_exeext; then
  4694. ac_cv_lib_ssl_SSL_library_init=yes
  4695. else
  4696. echo "$as_me: failed program was:" >&5
  4697. sed 's/^/| /' conftest.$ac_ext >&5
  4698. ac_cv_lib_ssl_SSL_library_init=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4701. conftest$ac_exeext conftest.$ac_ext
  4702. LIBS=$ac_check_lib_save_LIBS
  4703. fi
  4704. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4705. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4706. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4707. have_openssl=yes
  4708. fi
  4709. if test "x$have_openssl" = "xyes"; then
  4710. have_openssl=no
  4711. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4712. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4713. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4714. echo $ECHO_N "(cached) $ECHO_C" >&6
  4715. else
  4716. ac_check_lib_save_LIBS=$LIBS
  4717. LIBS="-lcrypto $LIBS"
  4718. cat >conftest.$ac_ext <<_ACEOF
  4719. /* confdefs.h. */
  4720. _ACEOF
  4721. cat confdefs.h >>conftest.$ac_ext
  4722. cat >>conftest.$ac_ext <<_ACEOF
  4723. /* end confdefs.h. */
  4724. int
  4725. main ()
  4726. {
  4727. return main ();
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. rm -f conftest.$ac_objext conftest$ac_exeext
  4733. if { (ac_try="$ac_link"
  4734. case "(($ac_try" in
  4735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4736. *) ac_try_echo=$ac_try;;
  4737. esac
  4738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4739. (eval "$ac_link") 2>conftest.er1
  4740. ac_status=$?
  4741. grep -v '^ *+' conftest.er1 >conftest.err
  4742. rm -f conftest.er1
  4743. cat conftest.err >&5
  4744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. (exit $ac_status); } && {
  4746. test -z "$ac_c_werror_flag" ||
  4747. test ! -s conftest.err
  4748. } && test -s conftest$ac_exeext &&
  4749. $as_test_x conftest$ac_exeext; then
  4750. ac_cv_lib_crypto_main=yes
  4751. else
  4752. echo "$as_me: failed program was:" >&5
  4753. sed 's/^/| /' conftest.$ac_ext >&5
  4754. ac_cv_lib_crypto_main=no
  4755. fi
  4756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4757. conftest$ac_exeext conftest.$ac_ext
  4758. LIBS=$ac_check_lib_save_LIBS
  4759. fi
  4760. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4761. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4762. if test $ac_cv_lib_crypto_main = yes; then
  4763. have_openssl=yes
  4764. fi
  4765. if test "x$have_openssl" = "xyes"; then
  4766. cat >>confdefs.h <<\_ACEOF
  4767. #define HAVE_LIBSSL 1
  4768. _ACEOF
  4769. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4770. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4771. fi
  4772. fi
  4773. LIBS=$LIBS_save
  4774. CPPFLAGS=$CPPFLAGS_save
  4775. fi
  4776. if test "x$with_libcares" = "xyes"; then
  4777. # Check whether --with-libcares-prefix was given.
  4778. if test "${with_libcares_prefix+set}" = set; then
  4779. withval=$with_libcares_prefix; libcares_prefix=$withval
  4780. else
  4781. libcares_prefix=""
  4782. fi
  4783. if test "x$libcares_prefix" = "x"; then
  4784. libcares_prefix="/usr"
  4785. fi
  4786. libcares_prefix_lib=$libcares_prefix/lib
  4787. libcares_prefix_include=$libcares_prefix/include
  4788. LIBS_save=$LIBS
  4789. CPPFLAGS_save=$CPPFLAGS
  4790. LIBS="-L$libcares_prefix_lib $LIBS"
  4791. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4792. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4793. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4794. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4795. echo $ECHO_N "(cached) $ECHO_C" >&6
  4796. else
  4797. ac_check_lib_save_LIBS=$LIBS
  4798. LIBS="-lcares $LIBS"
  4799. cat >conftest.$ac_ext <<_ACEOF
  4800. /* confdefs.h. */
  4801. _ACEOF
  4802. cat confdefs.h >>conftest.$ac_ext
  4803. cat >>conftest.$ac_ext <<_ACEOF
  4804. /* end confdefs.h. */
  4805. /* Override any GCC internal prototype to avoid an error.
  4806. Use char because int might match the return type of a GCC
  4807. builtin and then its argument prototype would still apply. */
  4808. #ifdef __cplusplus
  4809. extern "C"
  4810. #endif
  4811. char ares_init ();
  4812. int
  4813. main ()
  4814. {
  4815. return ares_init ();
  4816. ;
  4817. return 0;
  4818. }
  4819. _ACEOF
  4820. rm -f conftest.$ac_objext conftest$ac_exeext
  4821. if { (ac_try="$ac_link"
  4822. case "(($ac_try" in
  4823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4824. *) ac_try_echo=$ac_try;;
  4825. esac
  4826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4827. (eval "$ac_link") 2>conftest.er1
  4828. ac_status=$?
  4829. grep -v '^ *+' conftest.er1 >conftest.err
  4830. rm -f conftest.er1
  4831. cat conftest.err >&5
  4832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4833. (exit $ac_status); } && {
  4834. test -z "$ac_c_werror_flag" ||
  4835. test ! -s conftest.err
  4836. } && test -s conftest$ac_exeext &&
  4837. $as_test_x conftest$ac_exeext; then
  4838. ac_cv_lib_cares_ares_init=yes
  4839. else
  4840. echo "$as_me: failed program was:" >&5
  4841. sed 's/^/| /' conftest.$ac_ext >&5
  4842. ac_cv_lib_cares_ares_init=no
  4843. fi
  4844. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4845. conftest$ac_exeext conftest.$ac_ext
  4846. LIBS=$ac_check_lib_save_LIBS
  4847. fi
  4848. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4849. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  4850. if test $ac_cv_lib_cares_ares_init = yes; then
  4851. have_libcares=yes
  4852. fi
  4853. if test "x$have_libcares" = "xyes"; then
  4854. cat >>confdefs.h <<\_ACEOF
  4855. #define HAVE_LIBCARES 1
  4856. _ACEOF
  4857. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4858. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4859. fi
  4860. LIBS=$LIBS_save
  4861. CPPFLAGS=$CPPFLAGS_save
  4862. fi
  4863. if test "x$have_libcares" = "x"; then
  4864. if test "x$with_libares" = "xyes"; then
  4865. # Check whether --with-libares-prefix was given.
  4866. if test "${with_libares_prefix+set}" = set; then
  4867. withval=$with_libares_prefix; libares_prefix=$withval
  4868. else
  4869. libares_prefix=""
  4870. fi
  4871. if test "x$libares_prefix" = "x"; then
  4872. libares_prefix="/usr"
  4873. fi
  4874. libares_prefix_lib=$libares_prefix/lib
  4875. libares_prefix_include=$libares_prefix/include
  4876. LIBS_save=$LIBS
  4877. CPPFLAGS_save=$CPPFLAGS
  4878. LIBS="-L$libares_prefix_lib $LIBS"
  4879. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4880. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4881. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  4882. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4883. echo $ECHO_N "(cached) $ECHO_C" >&6
  4884. else
  4885. ac_check_lib_save_LIBS=$LIBS
  4886. LIBS="-lares $LIBS"
  4887. cat >conftest.$ac_ext <<_ACEOF
  4888. /* confdefs.h. */
  4889. _ACEOF
  4890. cat confdefs.h >>conftest.$ac_ext
  4891. cat >>conftest.$ac_ext <<_ACEOF
  4892. /* end confdefs.h. */
  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 ares_init ();
  4900. int
  4901. main ()
  4902. {
  4903. return ares_init ();
  4904. ;
  4905. return 0;
  4906. }
  4907. _ACEOF
  4908. rm -f conftest.$ac_objext conftest$ac_exeext
  4909. if { (ac_try="$ac_link"
  4910. case "(($ac_try" in
  4911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4912. *) ac_try_echo=$ac_try;;
  4913. esac
  4914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4915. (eval "$ac_link") 2>conftest.er1
  4916. ac_status=$?
  4917. grep -v '^ *+' conftest.er1 >conftest.err
  4918. rm -f conftest.er1
  4919. cat conftest.err >&5
  4920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4921. (exit $ac_status); } && {
  4922. test -z "$ac_c_werror_flag" ||
  4923. test ! -s conftest.err
  4924. } && test -s conftest$ac_exeext &&
  4925. $as_test_x conftest$ac_exeext; then
  4926. ac_cv_lib_ares_ares_init=yes
  4927. else
  4928. echo "$as_me: failed program was:" >&5
  4929. sed 's/^/| /' conftest.$ac_ext >&5
  4930. ac_cv_lib_ares_ares_init=no
  4931. fi
  4932. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4933. conftest$ac_exeext conftest.$ac_ext
  4934. LIBS=$ac_check_lib_save_LIBS
  4935. fi
  4936. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4937. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  4938. if test $ac_cv_lib_ares_ares_init = yes; then
  4939. have_libares=yes
  4940. fi
  4941. if test "x$have_libares" = "xyes"; then
  4942. cat >>confdefs.h <<\_ACEOF
  4943. #define HAVE_LIBARES 1
  4944. _ACEOF
  4945. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4946. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4947. fi
  4948. LIBS=$LIBS_save
  4949. CPPFLAGS=$CPPFLAGS_save
  4950. fi
  4951. fi
  4952. # Define variables based on the result of the checks for libraries.
  4953. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4954. cat >>confdefs.h <<\_ACEOF
  4955. #define ENABLE_SSL 1
  4956. _ACEOF
  4957. fi
  4958. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4959. cat >>confdefs.h <<\_ACEOF
  4960. #define ENABLE_MESSAGE_DIGEST 1
  4961. _ACEOF
  4962. if true; then
  4963. ENABLE_MESSAGE_DIGEST_TRUE=
  4964. ENABLE_MESSAGE_DIGEST_FALSE='#'
  4965. else
  4966. ENABLE_MESSAGE_DIGEST_TRUE='#'
  4967. ENABLE_MESSAGE_DIGEST_FALSE=
  4968. fi
  4969. enable_message_digest=yes
  4970. else
  4971. if false; then
  4972. ENABLE_MESSAGE_DIGEST_TRUE=
  4973. ENABLE_MESSAGE_DIGEST_FALSE='#'
  4974. else
  4975. ENABLE_MESSAGE_DIGEST_TRUE='#'
  4976. ENABLE_MESSAGE_DIGEST_FALSE=
  4977. fi
  4978. fi
  4979. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4980. cat >>confdefs.h <<\_ACEOF
  4981. #define ENABLE_BITTORRENT 1
  4982. _ACEOF
  4983. if true; then
  4984. ENABLE_BITTORRENT_TRUE=
  4985. ENABLE_BITTORRENT_FALSE='#'
  4986. else
  4987. ENABLE_BITTORRENT_TRUE='#'
  4988. ENABLE_BITTORRENT_FALSE=
  4989. fi
  4990. else
  4991. if false; then
  4992. ENABLE_BITTORRENT_TRUE=
  4993. ENABLE_BITTORRENT_FALSE='#'
  4994. else
  4995. ENABLE_BITTORRENT_TRUE='#'
  4996. ENABLE_BITTORRENT_FALSE=
  4997. fi
  4998. fi
  4999. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  5000. cat >>confdefs.h <<\_ACEOF
  5001. #define ENABLE_METALINK 1
  5002. _ACEOF
  5003. if true; then
  5004. ENABLE_METALINK_TRUE=
  5005. ENABLE_METALINK_FALSE='#'
  5006. else
  5007. ENABLE_METALINK_TRUE='#'
  5008. ENABLE_METALINK_FALSE=
  5009. fi
  5010. else
  5011. if false; then
  5012. ENABLE_METALINK_TRUE=
  5013. ENABLE_METALINK_FALSE='#'
  5014. else
  5015. ENABLE_METALINK_TRUE='#'
  5016. ENABLE_METALINK_FALSE=
  5017. fi
  5018. fi
  5019. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5020. cat >>confdefs.h <<\_ACEOF
  5021. #define ENABLE_ASYNC_DNS 1
  5022. _ACEOF
  5023. if true; then
  5024. ENABLE_ASYNC_DNS_TRUE=
  5025. ENABLE_ASYNC_DNS_FALSE='#'
  5026. else
  5027. ENABLE_ASYNC_DNS_TRUE='#'
  5028. ENABLE_ASYNC_DNS_FALSE=
  5029. fi
  5030. else
  5031. if false; then
  5032. ENABLE_ASYNC_DNS_TRUE=
  5033. ENABLE_ASYNC_DNS_FALSE='#'
  5034. else
  5035. ENABLE_ASYNC_DNS_TRUE='#'
  5036. ENABLE_ASYNC_DNS_FALSE=
  5037. fi
  5038. fi
  5039. # Checks for header files.
  5040. ac_ext=c
  5041. ac_cpp='$CPP $CPPFLAGS'
  5042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5045. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5046. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5047. # On Suns, sometimes $CPP names a directory.
  5048. if test -n "$CPP" && test -d "$CPP"; then
  5049. CPP=
  5050. fi
  5051. if test -z "$CPP"; then
  5052. if test "${ac_cv_prog_CPP+set}" = set; then
  5053. echo $ECHO_N "(cached) $ECHO_C" >&6
  5054. else
  5055. # Double quotes because CPP needs to be expanded
  5056. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5057. do
  5058. ac_preproc_ok=false
  5059. for ac_c_preproc_warn_flag in '' yes
  5060. do
  5061. # Use a header file that comes with gcc, so configuring glibc
  5062. # with a fresh cross-compiler works.
  5063. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5064. # <limits.h> exists even on freestanding compilers.
  5065. # On the NeXT, cc -E runs the code through the compiler's parser,
  5066. # not just through cpp. "Syntax error" is here to catch this case.
  5067. cat >conftest.$ac_ext <<_ACEOF
  5068. /* confdefs.h. */
  5069. _ACEOF
  5070. cat confdefs.h >>conftest.$ac_ext
  5071. cat >>conftest.$ac_ext <<_ACEOF
  5072. /* end confdefs.h. */
  5073. #ifdef __STDC__
  5074. # include <limits.h>
  5075. #else
  5076. # include <assert.h>
  5077. #endif
  5078. Syntax error
  5079. _ACEOF
  5080. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5081. case "(($ac_try" in
  5082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5083. *) ac_try_echo=$ac_try;;
  5084. esac
  5085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5086. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5087. ac_status=$?
  5088. grep -v '^ *+' conftest.er1 >conftest.err
  5089. rm -f conftest.er1
  5090. cat conftest.err >&5
  5091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5092. (exit $ac_status); } >/dev/null && {
  5093. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5094. test ! -s conftest.err
  5095. }; then
  5096. :
  5097. else
  5098. echo "$as_me: failed program was:" >&5
  5099. sed 's/^/| /' conftest.$ac_ext >&5
  5100. # Broken: fails on valid input.
  5101. continue
  5102. fi
  5103. rm -f conftest.err conftest.$ac_ext
  5104. # OK, works on sane cases. Now check whether nonexistent headers
  5105. # can be detected and how.
  5106. cat >conftest.$ac_ext <<_ACEOF
  5107. /* confdefs.h. */
  5108. _ACEOF
  5109. cat confdefs.h >>conftest.$ac_ext
  5110. cat >>conftest.$ac_ext <<_ACEOF
  5111. /* end confdefs.h. */
  5112. #include <ac_nonexistent.h>
  5113. _ACEOF
  5114. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5115. case "(($ac_try" in
  5116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5117. *) ac_try_echo=$ac_try;;
  5118. esac
  5119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5120. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5121. ac_status=$?
  5122. grep -v '^ *+' conftest.er1 >conftest.err
  5123. rm -f conftest.er1
  5124. cat conftest.err >&5
  5125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5126. (exit $ac_status); } >/dev/null && {
  5127. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5128. test ! -s conftest.err
  5129. }; then
  5130. # Broken: success on invalid input.
  5131. continue
  5132. else
  5133. echo "$as_me: failed program was:" >&5
  5134. sed 's/^/| /' conftest.$ac_ext >&5
  5135. # Passes both tests.
  5136. ac_preproc_ok=:
  5137. break
  5138. fi
  5139. rm -f conftest.err conftest.$ac_ext
  5140. done
  5141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5142. rm -f conftest.err conftest.$ac_ext
  5143. if $ac_preproc_ok; then
  5144. break
  5145. fi
  5146. done
  5147. ac_cv_prog_CPP=$CPP
  5148. fi
  5149. CPP=$ac_cv_prog_CPP
  5150. else
  5151. ac_cv_prog_CPP=$CPP
  5152. fi
  5153. { echo "$as_me:$LINENO: result: $CPP" >&5
  5154. echo "${ECHO_T}$CPP" >&6; }
  5155. ac_preproc_ok=false
  5156. for ac_c_preproc_warn_flag in '' yes
  5157. do
  5158. # Use a header file that comes with gcc, so configuring glibc
  5159. # with a fresh cross-compiler works.
  5160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5161. # <limits.h> exists even on freestanding compilers.
  5162. # On the NeXT, cc -E runs the code through the compiler's parser,
  5163. # not just through cpp. "Syntax error" is here to catch this case.
  5164. cat >conftest.$ac_ext <<_ACEOF
  5165. /* confdefs.h. */
  5166. _ACEOF
  5167. cat confdefs.h >>conftest.$ac_ext
  5168. cat >>conftest.$ac_ext <<_ACEOF
  5169. /* end confdefs.h. */
  5170. #ifdef __STDC__
  5171. # include <limits.h>
  5172. #else
  5173. # include <assert.h>
  5174. #endif
  5175. Syntax error
  5176. _ACEOF
  5177. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5178. case "(($ac_try" in
  5179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5180. *) ac_try_echo=$ac_try;;
  5181. esac
  5182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5183. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5184. ac_status=$?
  5185. grep -v '^ *+' conftest.er1 >conftest.err
  5186. rm -f conftest.er1
  5187. cat conftest.err >&5
  5188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5189. (exit $ac_status); } >/dev/null && {
  5190. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5191. test ! -s conftest.err
  5192. }; then
  5193. :
  5194. else
  5195. echo "$as_me: failed program was:" >&5
  5196. sed 's/^/| /' conftest.$ac_ext >&5
  5197. # Broken: fails on valid input.
  5198. continue
  5199. fi
  5200. rm -f conftest.err conftest.$ac_ext
  5201. # OK, works on sane cases. Now check whether nonexistent headers
  5202. # can be detected and how.
  5203. cat >conftest.$ac_ext <<_ACEOF
  5204. /* confdefs.h. */
  5205. _ACEOF
  5206. cat confdefs.h >>conftest.$ac_ext
  5207. cat >>conftest.$ac_ext <<_ACEOF
  5208. /* end confdefs.h. */
  5209. #include <ac_nonexistent.h>
  5210. _ACEOF
  5211. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5212. case "(($ac_try" in
  5213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5214. *) ac_try_echo=$ac_try;;
  5215. esac
  5216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5217. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5218. ac_status=$?
  5219. grep -v '^ *+' conftest.er1 >conftest.err
  5220. rm -f conftest.er1
  5221. cat conftest.err >&5
  5222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); } >/dev/null && {
  5224. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5225. test ! -s conftest.err
  5226. }; then
  5227. # Broken: success on invalid input.
  5228. continue
  5229. else
  5230. echo "$as_me: failed program was:" >&5
  5231. sed 's/^/| /' conftest.$ac_ext >&5
  5232. # Passes both tests.
  5233. ac_preproc_ok=:
  5234. break
  5235. fi
  5236. rm -f conftest.err conftest.$ac_ext
  5237. done
  5238. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5239. rm -f conftest.err conftest.$ac_ext
  5240. if $ac_preproc_ok; then
  5241. :
  5242. else
  5243. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5244. See \`config.log' for more details." >&5
  5245. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5246. See \`config.log' for more details." >&2;}
  5247. { (exit 1); exit 1; }; }
  5248. fi
  5249. ac_ext=c
  5250. ac_cpp='$CPP $CPPFLAGS'
  5251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5254. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5255. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5256. if test "${ac_cv_path_GREP+set}" = set; then
  5257. echo $ECHO_N "(cached) $ECHO_C" >&6
  5258. else
  5259. # Extract the first word of "grep ggrep" to use in msg output
  5260. if test -z "$GREP"; then
  5261. set dummy grep ggrep; ac_prog_name=$2
  5262. if test "${ac_cv_path_GREP+set}" = set; then
  5263. echo $ECHO_N "(cached) $ECHO_C" >&6
  5264. else
  5265. ac_path_GREP_found=false
  5266. # Loop through the user's path and test for each of PROGNAME-LIST
  5267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5268. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5269. do
  5270. IFS=$as_save_IFS
  5271. test -z "$as_dir" && as_dir=.
  5272. for ac_prog in grep ggrep; do
  5273. for ac_exec_ext in '' $ac_executable_extensions; do
  5274. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5275. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5276. # Check for GNU ac_path_GREP and select it if it is found.
  5277. # Check for GNU $ac_path_GREP
  5278. case `"$ac_path_GREP" --version 2>&1` in
  5279. *GNU*)
  5280. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5281. *)
  5282. ac_count=0
  5283. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5284. while :
  5285. do
  5286. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5287. mv "conftest.tmp" "conftest.in"
  5288. cp "conftest.in" "conftest.nl"
  5289. echo 'GREP' >> "conftest.nl"
  5290. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5291. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5292. ac_count=`expr $ac_count + 1`
  5293. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5294. # Best one so far, save it but keep looking for a better one
  5295. ac_cv_path_GREP="$ac_path_GREP"
  5296. ac_path_GREP_max=$ac_count
  5297. fi
  5298. # 10*(2^10) chars as input seems more than enough
  5299. test $ac_count -gt 10 && break
  5300. done
  5301. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5302. esac
  5303. $ac_path_GREP_found && break 3
  5304. done
  5305. done
  5306. done
  5307. IFS=$as_save_IFS
  5308. fi
  5309. GREP="$ac_cv_path_GREP"
  5310. if test -z "$GREP"; then
  5311. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5312. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5313. { (exit 1); exit 1; }; }
  5314. fi
  5315. else
  5316. ac_cv_path_GREP=$GREP
  5317. fi
  5318. fi
  5319. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5320. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5321. GREP="$ac_cv_path_GREP"
  5322. { echo "$as_me:$LINENO: checking for egrep" >&5
  5323. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5324. if test "${ac_cv_path_EGREP+set}" = set; then
  5325. echo $ECHO_N "(cached) $ECHO_C" >&6
  5326. else
  5327. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5328. then ac_cv_path_EGREP="$GREP -E"
  5329. else
  5330. # Extract the first word of "egrep" to use in msg output
  5331. if test -z "$EGREP"; then
  5332. set dummy egrep; ac_prog_name=$2
  5333. if test "${ac_cv_path_EGREP+set}" = set; then
  5334. echo $ECHO_N "(cached) $ECHO_C" >&6
  5335. else
  5336. ac_path_EGREP_found=false
  5337. # Loop through the user's path and test for each of PROGNAME-LIST
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5340. do
  5341. IFS=$as_save_IFS
  5342. test -z "$as_dir" && as_dir=.
  5343. for ac_prog in egrep; do
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5346. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5347. # Check for GNU ac_path_EGREP and select it if it is found.
  5348. # Check for GNU $ac_path_EGREP
  5349. case `"$ac_path_EGREP" --version 2>&1` in
  5350. *GNU*)
  5351. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5352. *)
  5353. ac_count=0
  5354. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5355. while :
  5356. do
  5357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5358. mv "conftest.tmp" "conftest.in"
  5359. cp "conftest.in" "conftest.nl"
  5360. echo 'EGREP' >> "conftest.nl"
  5361. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5363. ac_count=`expr $ac_count + 1`
  5364. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5365. # Best one so far, save it but keep looking for a better one
  5366. ac_cv_path_EGREP="$ac_path_EGREP"
  5367. ac_path_EGREP_max=$ac_count
  5368. fi
  5369. # 10*(2^10) chars as input seems more than enough
  5370. test $ac_count -gt 10 && break
  5371. done
  5372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5373. esac
  5374. $ac_path_EGREP_found && break 3
  5375. done
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. fi
  5380. EGREP="$ac_cv_path_EGREP"
  5381. if test -z "$EGREP"; then
  5382. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5383. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5384. { (exit 1); exit 1; }; }
  5385. fi
  5386. else
  5387. ac_cv_path_EGREP=$EGREP
  5388. fi
  5389. fi
  5390. fi
  5391. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5392. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5393. EGREP="$ac_cv_path_EGREP"
  5394. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5395. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5396. if test "${ac_cv_header_stdc+set}" = set; then
  5397. echo $ECHO_N "(cached) $ECHO_C" >&6
  5398. else
  5399. cat >conftest.$ac_ext <<_ACEOF
  5400. /* confdefs.h. */
  5401. _ACEOF
  5402. cat confdefs.h >>conftest.$ac_ext
  5403. cat >>conftest.$ac_ext <<_ACEOF
  5404. /* end confdefs.h. */
  5405. #include <stdlib.h>
  5406. #include <stdarg.h>
  5407. #include <string.h>
  5408. #include <float.h>
  5409. int
  5410. main ()
  5411. {
  5412. ;
  5413. return 0;
  5414. }
  5415. _ACEOF
  5416. rm -f conftest.$ac_objext
  5417. if { (ac_try="$ac_compile"
  5418. case "(($ac_try" in
  5419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5420. *) ac_try_echo=$ac_try;;
  5421. esac
  5422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5423. (eval "$ac_compile") 2>conftest.er1
  5424. ac_status=$?
  5425. grep -v '^ *+' conftest.er1 >conftest.err
  5426. rm -f conftest.er1
  5427. cat conftest.err >&5
  5428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5429. (exit $ac_status); } && {
  5430. test -z "$ac_c_werror_flag" ||
  5431. test ! -s conftest.err
  5432. } && test -s conftest.$ac_objext; then
  5433. ac_cv_header_stdc=yes
  5434. else
  5435. echo "$as_me: failed program was:" >&5
  5436. sed 's/^/| /' conftest.$ac_ext >&5
  5437. ac_cv_header_stdc=no
  5438. fi
  5439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5440. if test $ac_cv_header_stdc = yes; then
  5441. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5442. cat >conftest.$ac_ext <<_ACEOF
  5443. /* confdefs.h. */
  5444. _ACEOF
  5445. cat confdefs.h >>conftest.$ac_ext
  5446. cat >>conftest.$ac_ext <<_ACEOF
  5447. /* end confdefs.h. */
  5448. #include <string.h>
  5449. _ACEOF
  5450. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5451. $EGREP "memchr" >/dev/null 2>&1; then
  5452. :
  5453. else
  5454. ac_cv_header_stdc=no
  5455. fi
  5456. rm -f conftest*
  5457. fi
  5458. if test $ac_cv_header_stdc = yes; then
  5459. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5460. cat >conftest.$ac_ext <<_ACEOF
  5461. /* confdefs.h. */
  5462. _ACEOF
  5463. cat confdefs.h >>conftest.$ac_ext
  5464. cat >>conftest.$ac_ext <<_ACEOF
  5465. /* end confdefs.h. */
  5466. #include <stdlib.h>
  5467. _ACEOF
  5468. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5469. $EGREP "free" >/dev/null 2>&1; then
  5470. :
  5471. else
  5472. ac_cv_header_stdc=no
  5473. fi
  5474. rm -f conftest*
  5475. fi
  5476. if test $ac_cv_header_stdc = yes; then
  5477. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5478. if test "$cross_compiling" = yes; then
  5479. :
  5480. else
  5481. cat >conftest.$ac_ext <<_ACEOF
  5482. /* confdefs.h. */
  5483. _ACEOF
  5484. cat confdefs.h >>conftest.$ac_ext
  5485. cat >>conftest.$ac_ext <<_ACEOF
  5486. /* end confdefs.h. */
  5487. #include <ctype.h>
  5488. #include <stdlib.h>
  5489. #if ((' ' & 0x0FF) == 0x020)
  5490. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5491. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5492. #else
  5493. # define ISLOWER(c) \
  5494. (('a' <= (c) && (c) <= 'i') \
  5495. || ('j' <= (c) && (c) <= 'r') \
  5496. || ('s' <= (c) && (c) <= 'z'))
  5497. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5498. #endif
  5499. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5500. int
  5501. main ()
  5502. {
  5503. int i;
  5504. for (i = 0; i < 256; i++)
  5505. if (XOR (islower (i), ISLOWER (i))
  5506. || toupper (i) != TOUPPER (i))
  5507. return 2;
  5508. return 0;
  5509. }
  5510. _ACEOF
  5511. rm -f conftest$ac_exeext
  5512. if { (ac_try="$ac_link"
  5513. case "(($ac_try" in
  5514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5515. *) ac_try_echo=$ac_try;;
  5516. esac
  5517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5518. (eval "$ac_link") 2>&5
  5519. ac_status=$?
  5520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5521. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5522. { (case "(($ac_try" in
  5523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5524. *) ac_try_echo=$ac_try;;
  5525. esac
  5526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5527. (eval "$ac_try") 2>&5
  5528. ac_status=$?
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); }; }; then
  5531. :
  5532. else
  5533. echo "$as_me: program exited with status $ac_status" >&5
  5534. echo "$as_me: failed program was:" >&5
  5535. sed 's/^/| /' conftest.$ac_ext >&5
  5536. ( exit $ac_status )
  5537. ac_cv_header_stdc=no
  5538. fi
  5539. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5540. fi
  5541. fi
  5542. fi
  5543. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5544. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5545. if test $ac_cv_header_stdc = yes; then
  5546. cat >>confdefs.h <<\_ACEOF
  5547. #define STDC_HEADERS 1
  5548. _ACEOF
  5549. fi
  5550. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5551. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5552. inttypes.h stdint.h unistd.h
  5553. do
  5554. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5555. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5556. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5557. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5558. echo $ECHO_N "(cached) $ECHO_C" >&6
  5559. else
  5560. cat >conftest.$ac_ext <<_ACEOF
  5561. /* confdefs.h. */
  5562. _ACEOF
  5563. cat confdefs.h >>conftest.$ac_ext
  5564. cat >>conftest.$ac_ext <<_ACEOF
  5565. /* end confdefs.h. */
  5566. $ac_includes_default
  5567. #include <$ac_header>
  5568. _ACEOF
  5569. rm -f conftest.$ac_objext
  5570. if { (ac_try="$ac_compile"
  5571. case "(($ac_try" in
  5572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5573. *) ac_try_echo=$ac_try;;
  5574. esac
  5575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5576. (eval "$ac_compile") 2>conftest.er1
  5577. ac_status=$?
  5578. grep -v '^ *+' conftest.er1 >conftest.err
  5579. rm -f conftest.er1
  5580. cat conftest.err >&5
  5581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5582. (exit $ac_status); } && {
  5583. test -z "$ac_c_werror_flag" ||
  5584. test ! -s conftest.err
  5585. } && test -s conftest.$ac_objext; then
  5586. eval "$as_ac_Header=yes"
  5587. else
  5588. echo "$as_me: failed program was:" >&5
  5589. sed 's/^/| /' conftest.$ac_ext >&5
  5590. eval "$as_ac_Header=no"
  5591. fi
  5592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5593. fi
  5594. ac_res=`eval echo '${'$as_ac_Header'}'`
  5595. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5596. echo "${ECHO_T}$ac_res" >&6; }
  5597. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5598. cat >>confdefs.h <<_ACEOF
  5599. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5600. _ACEOF
  5601. fi
  5602. done
  5603. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5604. # for constant arguments. Useless!
  5605. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5606. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5607. if test "${ac_cv_working_alloca_h+set}" = set; then
  5608. echo $ECHO_N "(cached) $ECHO_C" >&6
  5609. else
  5610. cat >conftest.$ac_ext <<_ACEOF
  5611. /* confdefs.h. */
  5612. _ACEOF
  5613. cat confdefs.h >>conftest.$ac_ext
  5614. cat >>conftest.$ac_ext <<_ACEOF
  5615. /* end confdefs.h. */
  5616. #include <alloca.h>
  5617. int
  5618. main ()
  5619. {
  5620. char *p = (char *) alloca (2 * sizeof (int));
  5621. if (p) return 0;
  5622. ;
  5623. return 0;
  5624. }
  5625. _ACEOF
  5626. rm -f conftest.$ac_objext conftest$ac_exeext
  5627. if { (ac_try="$ac_link"
  5628. case "(($ac_try" in
  5629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5630. *) ac_try_echo=$ac_try;;
  5631. esac
  5632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5633. (eval "$ac_link") 2>conftest.er1
  5634. ac_status=$?
  5635. grep -v '^ *+' conftest.er1 >conftest.err
  5636. rm -f conftest.er1
  5637. cat conftest.err >&5
  5638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639. (exit $ac_status); } && {
  5640. test -z "$ac_c_werror_flag" ||
  5641. test ! -s conftest.err
  5642. } && test -s conftest$ac_exeext &&
  5643. $as_test_x conftest$ac_exeext; then
  5644. ac_cv_working_alloca_h=yes
  5645. else
  5646. echo "$as_me: failed program was:" >&5
  5647. sed 's/^/| /' conftest.$ac_ext >&5
  5648. ac_cv_working_alloca_h=no
  5649. fi
  5650. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5651. conftest$ac_exeext conftest.$ac_ext
  5652. fi
  5653. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5654. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5655. if test $ac_cv_working_alloca_h = yes; then
  5656. cat >>confdefs.h <<\_ACEOF
  5657. #define HAVE_ALLOCA_H 1
  5658. _ACEOF
  5659. fi
  5660. { echo "$as_me:$LINENO: checking for alloca" >&5
  5661. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5662. if test "${ac_cv_func_alloca_works+set}" = set; then
  5663. echo $ECHO_N "(cached) $ECHO_C" >&6
  5664. else
  5665. cat >conftest.$ac_ext <<_ACEOF
  5666. /* confdefs.h. */
  5667. _ACEOF
  5668. cat confdefs.h >>conftest.$ac_ext
  5669. cat >>conftest.$ac_ext <<_ACEOF
  5670. /* end confdefs.h. */
  5671. #ifdef __GNUC__
  5672. # define alloca __builtin_alloca
  5673. #else
  5674. # ifdef _MSC_VER
  5675. # include <malloc.h>
  5676. # define alloca _alloca
  5677. # else
  5678. # ifdef HAVE_ALLOCA_H
  5679. # include <alloca.h>
  5680. # else
  5681. # ifdef _AIX
  5682. #pragma alloca
  5683. # else
  5684. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5685. char *alloca ();
  5686. # endif
  5687. # endif
  5688. # endif
  5689. # endif
  5690. #endif
  5691. int
  5692. main ()
  5693. {
  5694. char *p = (char *) alloca (1);
  5695. if (p) return 0;
  5696. ;
  5697. return 0;
  5698. }
  5699. _ACEOF
  5700. rm -f conftest.$ac_objext conftest$ac_exeext
  5701. if { (ac_try="$ac_link"
  5702. case "(($ac_try" in
  5703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5704. *) ac_try_echo=$ac_try;;
  5705. esac
  5706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5707. (eval "$ac_link") 2>conftest.er1
  5708. ac_status=$?
  5709. grep -v '^ *+' conftest.er1 >conftest.err
  5710. rm -f conftest.er1
  5711. cat conftest.err >&5
  5712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5713. (exit $ac_status); } && {
  5714. test -z "$ac_c_werror_flag" ||
  5715. test ! -s conftest.err
  5716. } && test -s conftest$ac_exeext &&
  5717. $as_test_x conftest$ac_exeext; then
  5718. ac_cv_func_alloca_works=yes
  5719. else
  5720. echo "$as_me: failed program was:" >&5
  5721. sed 's/^/| /' conftest.$ac_ext >&5
  5722. ac_cv_func_alloca_works=no
  5723. fi
  5724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5725. conftest$ac_exeext conftest.$ac_ext
  5726. fi
  5727. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5728. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5729. if test $ac_cv_func_alloca_works = yes; then
  5730. cat >>confdefs.h <<\_ACEOF
  5731. #define HAVE_ALLOCA 1
  5732. _ACEOF
  5733. else
  5734. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5735. # that cause trouble. Some versions do not even contain alloca or
  5736. # contain a buggy version. If you still want to use their alloca,
  5737. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5738. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5739. cat >>confdefs.h <<\_ACEOF
  5740. #define C_ALLOCA 1
  5741. _ACEOF
  5742. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5743. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5744. if test "${ac_cv_os_cray+set}" = set; then
  5745. echo $ECHO_N "(cached) $ECHO_C" >&6
  5746. else
  5747. cat >conftest.$ac_ext <<_ACEOF
  5748. /* confdefs.h. */
  5749. _ACEOF
  5750. cat confdefs.h >>conftest.$ac_ext
  5751. cat >>conftest.$ac_ext <<_ACEOF
  5752. /* end confdefs.h. */
  5753. #if defined CRAY && ! defined CRAY2
  5754. webecray
  5755. #else
  5756. wenotbecray
  5757. #endif
  5758. _ACEOF
  5759. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5760. $EGREP "webecray" >/dev/null 2>&1; then
  5761. ac_cv_os_cray=yes
  5762. else
  5763. ac_cv_os_cray=no
  5764. fi
  5765. rm -f conftest*
  5766. fi
  5767. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5768. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5769. if test $ac_cv_os_cray = yes; then
  5770. for ac_func in _getb67 GETB67 getb67; do
  5771. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5772. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5773. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5774. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5775. echo $ECHO_N "(cached) $ECHO_C" >&6
  5776. else
  5777. cat >conftest.$ac_ext <<_ACEOF
  5778. /* confdefs.h. */
  5779. _ACEOF
  5780. cat confdefs.h >>conftest.$ac_ext
  5781. cat >>conftest.$ac_ext <<_ACEOF
  5782. /* end confdefs.h. */
  5783. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5784. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5785. #define $ac_func innocuous_$ac_func
  5786. /* System header to define __stub macros and hopefully few prototypes,
  5787. which can conflict with char $ac_func (); below.
  5788. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5789. <limits.h> exists even on freestanding compilers. */
  5790. #ifdef __STDC__
  5791. # include <limits.h>
  5792. #else
  5793. # include <assert.h>
  5794. #endif
  5795. #undef $ac_func
  5796. /* Override any GCC internal prototype to avoid an error.
  5797. Use char because int might match the return type of a GCC
  5798. builtin and then its argument prototype would still apply. */
  5799. #ifdef __cplusplus
  5800. extern "C"
  5801. #endif
  5802. char $ac_func ();
  5803. /* The GNU C library defines this for functions which it implements
  5804. to always fail with ENOSYS. Some functions are actually named
  5805. something starting with __ and the normal name is an alias. */
  5806. #if defined __stub_$ac_func || defined __stub___$ac_func
  5807. choke me
  5808. #endif
  5809. int
  5810. main ()
  5811. {
  5812. return $ac_func ();
  5813. ;
  5814. return 0;
  5815. }
  5816. _ACEOF
  5817. rm -f conftest.$ac_objext conftest$ac_exeext
  5818. if { (ac_try="$ac_link"
  5819. case "(($ac_try" in
  5820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5821. *) ac_try_echo=$ac_try;;
  5822. esac
  5823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5824. (eval "$ac_link") 2>conftest.er1
  5825. ac_status=$?
  5826. grep -v '^ *+' conftest.er1 >conftest.err
  5827. rm -f conftest.er1
  5828. cat conftest.err >&5
  5829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5830. (exit $ac_status); } && {
  5831. test -z "$ac_c_werror_flag" ||
  5832. test ! -s conftest.err
  5833. } && test -s conftest$ac_exeext &&
  5834. $as_test_x conftest$ac_exeext; then
  5835. eval "$as_ac_var=yes"
  5836. else
  5837. echo "$as_me: failed program was:" >&5
  5838. sed 's/^/| /' conftest.$ac_ext >&5
  5839. eval "$as_ac_var=no"
  5840. fi
  5841. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5842. conftest$ac_exeext conftest.$ac_ext
  5843. fi
  5844. ac_res=`eval echo '${'$as_ac_var'}'`
  5845. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5846. echo "${ECHO_T}$ac_res" >&6; }
  5847. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5848. cat >>confdefs.h <<_ACEOF
  5849. #define CRAY_STACKSEG_END $ac_func
  5850. _ACEOF
  5851. break
  5852. fi
  5853. done
  5854. fi
  5855. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  5856. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  5857. if test "${ac_cv_c_stack_direction+set}" = set; then
  5858. echo $ECHO_N "(cached) $ECHO_C" >&6
  5859. else
  5860. if test "$cross_compiling" = yes; then
  5861. ac_cv_c_stack_direction=0
  5862. else
  5863. cat >conftest.$ac_ext <<_ACEOF
  5864. /* confdefs.h. */
  5865. _ACEOF
  5866. cat confdefs.h >>conftest.$ac_ext
  5867. cat >>conftest.$ac_ext <<_ACEOF
  5868. /* end confdefs.h. */
  5869. $ac_includes_default
  5870. int
  5871. find_stack_direction ()
  5872. {
  5873. static char *addr = 0;
  5874. auto char dummy;
  5875. if (addr == 0)
  5876. {
  5877. addr = &dummy;
  5878. return find_stack_direction ();
  5879. }
  5880. else
  5881. return (&dummy > addr) ? 1 : -1;
  5882. }
  5883. int
  5884. main ()
  5885. {
  5886. return find_stack_direction () < 0;
  5887. }
  5888. _ACEOF
  5889. rm -f conftest$ac_exeext
  5890. if { (ac_try="$ac_link"
  5891. case "(($ac_try" in
  5892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5893. *) ac_try_echo=$ac_try;;
  5894. esac
  5895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5896. (eval "$ac_link") 2>&5
  5897. ac_status=$?
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5900. { (case "(($ac_try" in
  5901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5902. *) ac_try_echo=$ac_try;;
  5903. esac
  5904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5905. (eval "$ac_try") 2>&5
  5906. ac_status=$?
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); }; }; then
  5909. ac_cv_c_stack_direction=1
  5910. else
  5911. echo "$as_me: program exited with status $ac_status" >&5
  5912. echo "$as_me: failed program was:" >&5
  5913. sed 's/^/| /' conftest.$ac_ext >&5
  5914. ( exit $ac_status )
  5915. ac_cv_c_stack_direction=-1
  5916. fi
  5917. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5918. fi
  5919. fi
  5920. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  5921. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  5922. cat >>confdefs.h <<_ACEOF
  5923. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5924. _ACEOF
  5925. fi
  5926. #AC_HEADER_STDC
  5927. 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
  5928. do
  5929. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5930. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5931. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5932. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5933. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5934. echo $ECHO_N "(cached) $ECHO_C" >&6
  5935. fi
  5936. ac_res=`eval echo '${'$as_ac_Header'}'`
  5937. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5938. echo "${ECHO_T}$ac_res" >&6; }
  5939. else
  5940. # Is the header compilable?
  5941. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5942. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5943. cat >conftest.$ac_ext <<_ACEOF
  5944. /* confdefs.h. */
  5945. _ACEOF
  5946. cat confdefs.h >>conftest.$ac_ext
  5947. cat >>conftest.$ac_ext <<_ACEOF
  5948. /* end confdefs.h. */
  5949. $ac_includes_default
  5950. #include <$ac_header>
  5951. _ACEOF
  5952. rm -f conftest.$ac_objext
  5953. if { (ac_try="$ac_compile"
  5954. case "(($ac_try" in
  5955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5956. *) ac_try_echo=$ac_try;;
  5957. esac
  5958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5959. (eval "$ac_compile") 2>conftest.er1
  5960. ac_status=$?
  5961. grep -v '^ *+' conftest.er1 >conftest.err
  5962. rm -f conftest.er1
  5963. cat conftest.err >&5
  5964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5965. (exit $ac_status); } && {
  5966. test -z "$ac_c_werror_flag" ||
  5967. test ! -s conftest.err
  5968. } && test -s conftest.$ac_objext; then
  5969. ac_header_compiler=yes
  5970. else
  5971. echo "$as_me: failed program was:" >&5
  5972. sed 's/^/| /' conftest.$ac_ext >&5
  5973. ac_header_compiler=no
  5974. fi
  5975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5976. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5977. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5978. # Is the header present?
  5979. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5980. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5981. cat >conftest.$ac_ext <<_ACEOF
  5982. /* confdefs.h. */
  5983. _ACEOF
  5984. cat confdefs.h >>conftest.$ac_ext
  5985. cat >>conftest.$ac_ext <<_ACEOF
  5986. /* end confdefs.h. */
  5987. #include <$ac_header>
  5988. _ACEOF
  5989. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5990. case "(($ac_try" in
  5991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5992. *) ac_try_echo=$ac_try;;
  5993. esac
  5994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5995. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5996. ac_status=$?
  5997. grep -v '^ *+' conftest.er1 >conftest.err
  5998. rm -f conftest.er1
  5999. cat conftest.err >&5
  6000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6001. (exit $ac_status); } >/dev/null && {
  6002. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6003. test ! -s conftest.err
  6004. }; then
  6005. ac_header_preproc=yes
  6006. else
  6007. echo "$as_me: failed program was:" >&5
  6008. sed 's/^/| /' conftest.$ac_ext >&5
  6009. ac_header_preproc=no
  6010. fi
  6011. rm -f conftest.err conftest.$ac_ext
  6012. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6013. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6014. # So? What about this header?
  6015. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6016. yes:no: )
  6017. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6018. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6019. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6020. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6021. ac_header_preproc=yes
  6022. ;;
  6023. no:yes:* )
  6024. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6025. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6026. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6027. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6028. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6029. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6030. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6031. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6032. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6033. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6034. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6035. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6036. ( cat <<\_ASBOX
  6037. ## ----------------------------------------------- ##
  6038. ## Report this to t-tujikawa@users.sourceforge.net ##
  6039. ## ----------------------------------------------- ##
  6040. _ASBOX
  6041. ) | sed "s/^/$as_me: WARNING: /" >&2
  6042. ;;
  6043. esac
  6044. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6045. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6046. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6047. echo $ECHO_N "(cached) $ECHO_C" >&6
  6048. else
  6049. eval "$as_ac_Header=\$ac_header_preproc"
  6050. fi
  6051. ac_res=`eval echo '${'$as_ac_Header'}'`
  6052. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6053. echo "${ECHO_T}$ac_res" >&6; }
  6054. fi
  6055. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6056. cat >>confdefs.h <<_ACEOF
  6057. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6058. _ACEOF
  6059. fi
  6060. done
  6061. # Checks for typedefs, structures, and compiler characteristics.
  6062. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6063. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6064. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6065. echo $ECHO_N "(cached) $ECHO_C" >&6
  6066. else
  6067. cat >conftest.$ac_ext <<_ACEOF
  6068. /* confdefs.h. */
  6069. _ACEOF
  6070. cat confdefs.h >>conftest.$ac_ext
  6071. cat >>conftest.$ac_ext <<_ACEOF
  6072. /* end confdefs.h. */
  6073. #include <stdbool.h>
  6074. #ifndef bool
  6075. "error: bool is not defined"
  6076. #endif
  6077. #ifndef false
  6078. "error: false is not defined"
  6079. #endif
  6080. #if false
  6081. "error: false is not 0"
  6082. #endif
  6083. #ifndef true
  6084. "error: true is not defined"
  6085. #endif
  6086. #if true != 1
  6087. "error: true is not 1"
  6088. #endif
  6089. #ifndef __bool_true_false_are_defined
  6090. "error: __bool_true_false_are_defined is not defined"
  6091. #endif
  6092. struct s { _Bool s: 1; _Bool t; } s;
  6093. char a[true == 1 ? 1 : -1];
  6094. char b[false == 0 ? 1 : -1];
  6095. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6096. char d[(bool) 0.5 == true ? 1 : -1];
  6097. bool e = &s;
  6098. char f[(_Bool) 0.0 == false ? 1 : -1];
  6099. char g[true];
  6100. char h[sizeof (_Bool)];
  6101. char i[sizeof s.t];
  6102. enum { j = false, k = true, l = false * true, m = true * 256 };
  6103. _Bool n[m];
  6104. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6105. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6106. # if defined __xlc__ || defined __GNUC__
  6107. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6108. reported by James Lemley on 2005-10-05; see
  6109. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6110. This test is not quite right, since xlc is allowed to
  6111. reject this program, as the initializer for xlcbug is
  6112. not one of the forms that C requires support for.
  6113. However, doing the test right would require a runtime
  6114. test, and that would make cross-compilation harder.
  6115. Let us hope that IBM fixes the xlc bug, and also adds
  6116. support for this kind of constant expression. In the
  6117. meantime, this test will reject xlc, which is OK, since
  6118. our stdbool.h substitute should suffice. We also test
  6119. this with GCC, where it should work, to detect more
  6120. quickly whether someone messes up the test in the
  6121. future. */
  6122. char digs[] = "0123456789";
  6123. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6124. # endif
  6125. /* Catch a bug in an HP-UX C compiler. See
  6126. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6127. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6128. */
  6129. _Bool q = true;
  6130. _Bool *pq = &q;
  6131. int
  6132. main ()
  6133. {
  6134. *pq |= q;
  6135. *pq |= ! q;
  6136. /* Refer to every declared value, to avoid compiler optimizations. */
  6137. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6138. + !m + !n + !o + !p + !q + !pq);
  6139. ;
  6140. return 0;
  6141. }
  6142. _ACEOF
  6143. rm -f conftest.$ac_objext
  6144. if { (ac_try="$ac_compile"
  6145. case "(($ac_try" in
  6146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6147. *) ac_try_echo=$ac_try;;
  6148. esac
  6149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6150. (eval "$ac_compile") 2>conftest.er1
  6151. ac_status=$?
  6152. grep -v '^ *+' conftest.er1 >conftest.err
  6153. rm -f conftest.er1
  6154. cat conftest.err >&5
  6155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156. (exit $ac_status); } && {
  6157. test -z "$ac_c_werror_flag" ||
  6158. test ! -s conftest.err
  6159. } && test -s conftest.$ac_objext; then
  6160. ac_cv_header_stdbool_h=yes
  6161. else
  6162. echo "$as_me: failed program was:" >&5
  6163. sed 's/^/| /' conftest.$ac_ext >&5
  6164. ac_cv_header_stdbool_h=no
  6165. fi
  6166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6167. fi
  6168. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6169. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6170. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6171. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6172. if test "${ac_cv_type__Bool+set}" = set; then
  6173. echo $ECHO_N "(cached) $ECHO_C" >&6
  6174. else
  6175. cat >conftest.$ac_ext <<_ACEOF
  6176. /* confdefs.h. */
  6177. _ACEOF
  6178. cat confdefs.h >>conftest.$ac_ext
  6179. cat >>conftest.$ac_ext <<_ACEOF
  6180. /* end confdefs.h. */
  6181. $ac_includes_default
  6182. typedef _Bool ac__type_new_;
  6183. int
  6184. main ()
  6185. {
  6186. if ((ac__type_new_ *) 0)
  6187. return 0;
  6188. if (sizeof (ac__type_new_))
  6189. return 0;
  6190. ;
  6191. return 0;
  6192. }
  6193. _ACEOF
  6194. rm -f conftest.$ac_objext
  6195. if { (ac_try="$ac_compile"
  6196. case "(($ac_try" in
  6197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6198. *) ac_try_echo=$ac_try;;
  6199. esac
  6200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6201. (eval "$ac_compile") 2>conftest.er1
  6202. ac_status=$?
  6203. grep -v '^ *+' conftest.er1 >conftest.err
  6204. rm -f conftest.er1
  6205. cat conftest.err >&5
  6206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6207. (exit $ac_status); } && {
  6208. test -z "$ac_c_werror_flag" ||
  6209. test ! -s conftest.err
  6210. } && test -s conftest.$ac_objext; then
  6211. ac_cv_type__Bool=yes
  6212. else
  6213. echo "$as_me: failed program was:" >&5
  6214. sed 's/^/| /' conftest.$ac_ext >&5
  6215. ac_cv_type__Bool=no
  6216. fi
  6217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6218. fi
  6219. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6220. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6221. if test $ac_cv_type__Bool = yes; then
  6222. cat >>confdefs.h <<_ACEOF
  6223. #define HAVE__BOOL 1
  6224. _ACEOF
  6225. fi
  6226. if test $ac_cv_header_stdbool_h = yes; then
  6227. cat >>confdefs.h <<\_ACEOF
  6228. #define HAVE_STDBOOL_H 1
  6229. _ACEOF
  6230. fi
  6231. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6232. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6233. if test "${ac_cv_c_const+set}" = set; then
  6234. echo $ECHO_N "(cached) $ECHO_C" >&6
  6235. else
  6236. cat >conftest.$ac_ext <<_ACEOF
  6237. /* confdefs.h. */
  6238. _ACEOF
  6239. cat confdefs.h >>conftest.$ac_ext
  6240. cat >>conftest.$ac_ext <<_ACEOF
  6241. /* end confdefs.h. */
  6242. int
  6243. main ()
  6244. {
  6245. /* FIXME: Include the comments suggested by Paul. */
  6246. #ifndef __cplusplus
  6247. /* Ultrix mips cc rejects this. */
  6248. typedef int charset[2];
  6249. const charset cs;
  6250. /* SunOS 4.1.1 cc rejects this. */
  6251. char const *const *pcpcc;
  6252. char **ppc;
  6253. /* NEC SVR4.0.2 mips cc rejects this. */
  6254. struct point {int x, y;};
  6255. static struct point const zero = {0,0};
  6256. /* AIX XL C 1.02.0.0 rejects this.
  6257. It does not let you subtract one const X* pointer from another in
  6258. an arm of an if-expression whose if-part is not a constant
  6259. expression */
  6260. const char *g = "string";
  6261. pcpcc = &g + (g ? g-g : 0);
  6262. /* HPUX 7.0 cc rejects these. */
  6263. ++pcpcc;
  6264. ppc = (char**) pcpcc;
  6265. pcpcc = (char const *const *) ppc;
  6266. { /* SCO 3.2v4 cc rejects this. */
  6267. char *t;
  6268. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6269. *t++ = 0;
  6270. if (s) return 0;
  6271. }
  6272. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6273. int x[] = {25, 17};
  6274. const int *foo = &x[0];
  6275. ++foo;
  6276. }
  6277. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6278. typedef const int *iptr;
  6279. iptr p = 0;
  6280. ++p;
  6281. }
  6282. { /* AIX XL C 1.02.0.0 rejects this saying
  6283. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6284. struct s { int j; const int *ap[3]; };
  6285. struct s *b; b->j = 5;
  6286. }
  6287. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6288. const int foo = 10;
  6289. if (!foo) return 0;
  6290. }
  6291. return !cs[0] && !zero.x;
  6292. #endif
  6293. ;
  6294. return 0;
  6295. }
  6296. _ACEOF
  6297. rm -f conftest.$ac_objext
  6298. if { (ac_try="$ac_compile"
  6299. case "(($ac_try" in
  6300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6301. *) ac_try_echo=$ac_try;;
  6302. esac
  6303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6304. (eval "$ac_compile") 2>conftest.er1
  6305. ac_status=$?
  6306. grep -v '^ *+' conftest.er1 >conftest.err
  6307. rm -f conftest.er1
  6308. cat conftest.err >&5
  6309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6310. (exit $ac_status); } && {
  6311. test -z "$ac_c_werror_flag" ||
  6312. test ! -s conftest.err
  6313. } && test -s conftest.$ac_objext; then
  6314. ac_cv_c_const=yes
  6315. else
  6316. echo "$as_me: failed program was:" >&5
  6317. sed 's/^/| /' conftest.$ac_ext >&5
  6318. ac_cv_c_const=no
  6319. fi
  6320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6321. fi
  6322. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6323. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6324. if test $ac_cv_c_const = no; then
  6325. cat >>confdefs.h <<\_ACEOF
  6326. #define const
  6327. _ACEOF
  6328. fi
  6329. { echo "$as_me:$LINENO: checking for inline" >&5
  6330. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6331. if test "${ac_cv_c_inline+set}" = set; then
  6332. echo $ECHO_N "(cached) $ECHO_C" >&6
  6333. else
  6334. ac_cv_c_inline=no
  6335. for ac_kw in inline __inline__ __inline; do
  6336. cat >conftest.$ac_ext <<_ACEOF
  6337. /* confdefs.h. */
  6338. _ACEOF
  6339. cat confdefs.h >>conftest.$ac_ext
  6340. cat >>conftest.$ac_ext <<_ACEOF
  6341. /* end confdefs.h. */
  6342. #ifndef __cplusplus
  6343. typedef int foo_t;
  6344. static $ac_kw foo_t static_foo () {return 0; }
  6345. $ac_kw foo_t foo () {return 0; }
  6346. #endif
  6347. _ACEOF
  6348. rm -f conftest.$ac_objext
  6349. if { (ac_try="$ac_compile"
  6350. case "(($ac_try" in
  6351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6352. *) ac_try_echo=$ac_try;;
  6353. esac
  6354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6355. (eval "$ac_compile") 2>conftest.er1
  6356. ac_status=$?
  6357. grep -v '^ *+' conftest.er1 >conftest.err
  6358. rm -f conftest.er1
  6359. cat conftest.err >&5
  6360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6361. (exit $ac_status); } && {
  6362. test -z "$ac_c_werror_flag" ||
  6363. test ! -s conftest.err
  6364. } && test -s conftest.$ac_objext; then
  6365. ac_cv_c_inline=$ac_kw
  6366. else
  6367. echo "$as_me: failed program was:" >&5
  6368. sed 's/^/| /' conftest.$ac_ext >&5
  6369. fi
  6370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6371. test "$ac_cv_c_inline" != no && break
  6372. done
  6373. fi
  6374. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6375. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6376. case $ac_cv_c_inline in
  6377. inline | yes) ;;
  6378. *)
  6379. case $ac_cv_c_inline in
  6380. no) ac_val=;;
  6381. *) ac_val=$ac_cv_c_inline;;
  6382. esac
  6383. cat >>confdefs.h <<_ACEOF
  6384. #ifndef __cplusplus
  6385. #define inline $ac_val
  6386. #endif
  6387. _ACEOF
  6388. ;;
  6389. esac
  6390. { echo "$as_me:$LINENO: checking for size_t" >&5
  6391. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6392. if test "${ac_cv_type_size_t+set}" = set; then
  6393. echo $ECHO_N "(cached) $ECHO_C" >&6
  6394. else
  6395. cat >conftest.$ac_ext <<_ACEOF
  6396. /* confdefs.h. */
  6397. _ACEOF
  6398. cat confdefs.h >>conftest.$ac_ext
  6399. cat >>conftest.$ac_ext <<_ACEOF
  6400. /* end confdefs.h. */
  6401. $ac_includes_default
  6402. typedef size_t ac__type_new_;
  6403. int
  6404. main ()
  6405. {
  6406. if ((ac__type_new_ *) 0)
  6407. return 0;
  6408. if (sizeof (ac__type_new_))
  6409. return 0;
  6410. ;
  6411. return 0;
  6412. }
  6413. _ACEOF
  6414. rm -f conftest.$ac_objext
  6415. if { (ac_try="$ac_compile"
  6416. case "(($ac_try" in
  6417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6418. *) ac_try_echo=$ac_try;;
  6419. esac
  6420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6421. (eval "$ac_compile") 2>conftest.er1
  6422. ac_status=$?
  6423. grep -v '^ *+' conftest.er1 >conftest.err
  6424. rm -f conftest.er1
  6425. cat conftest.err >&5
  6426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6427. (exit $ac_status); } && {
  6428. test -z "$ac_c_werror_flag" ||
  6429. test ! -s conftest.err
  6430. } && test -s conftest.$ac_objext; then
  6431. ac_cv_type_size_t=yes
  6432. else
  6433. echo "$as_me: failed program was:" >&5
  6434. sed 's/^/| /' conftest.$ac_ext >&5
  6435. ac_cv_type_size_t=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6438. fi
  6439. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6440. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6441. if test $ac_cv_type_size_t = yes; then
  6442. :
  6443. else
  6444. cat >>confdefs.h <<_ACEOF
  6445. #define size_t unsigned int
  6446. _ACEOF
  6447. fi
  6448. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6449. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6450. if test "${ac_cv_header_time+set}" = set; then
  6451. echo $ECHO_N "(cached) $ECHO_C" >&6
  6452. else
  6453. cat >conftest.$ac_ext <<_ACEOF
  6454. /* confdefs.h. */
  6455. _ACEOF
  6456. cat confdefs.h >>conftest.$ac_ext
  6457. cat >>conftest.$ac_ext <<_ACEOF
  6458. /* end confdefs.h. */
  6459. #include <sys/types.h>
  6460. #include <sys/time.h>
  6461. #include <time.h>
  6462. int
  6463. main ()
  6464. {
  6465. if ((struct tm *) 0)
  6466. return 0;
  6467. ;
  6468. return 0;
  6469. }
  6470. _ACEOF
  6471. rm -f conftest.$ac_objext
  6472. if { (ac_try="$ac_compile"
  6473. case "(($ac_try" in
  6474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6475. *) ac_try_echo=$ac_try;;
  6476. esac
  6477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6478. (eval "$ac_compile") 2>conftest.er1
  6479. ac_status=$?
  6480. grep -v '^ *+' conftest.er1 >conftest.err
  6481. rm -f conftest.er1
  6482. cat conftest.err >&5
  6483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6484. (exit $ac_status); } && {
  6485. test -z "$ac_c_werror_flag" ||
  6486. test ! -s conftest.err
  6487. } && test -s conftest.$ac_objext; then
  6488. ac_cv_header_time=yes
  6489. else
  6490. echo "$as_me: failed program was:" >&5
  6491. sed 's/^/| /' conftest.$ac_ext >&5
  6492. ac_cv_header_time=no
  6493. fi
  6494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6495. fi
  6496. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6497. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6498. if test $ac_cv_header_time = yes; then
  6499. cat >>confdefs.h <<\_ACEOF
  6500. #define TIME_WITH_SYS_TIME 1
  6501. _ACEOF
  6502. fi
  6503. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6504. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6505. if test "${ac_cv_struct_tm+set}" = set; then
  6506. echo $ECHO_N "(cached) $ECHO_C" >&6
  6507. else
  6508. cat >conftest.$ac_ext <<_ACEOF
  6509. /* confdefs.h. */
  6510. _ACEOF
  6511. cat confdefs.h >>conftest.$ac_ext
  6512. cat >>conftest.$ac_ext <<_ACEOF
  6513. /* end confdefs.h. */
  6514. #include <sys/types.h>
  6515. #include <time.h>
  6516. int
  6517. main ()
  6518. {
  6519. struct tm tm;
  6520. int *p = &tm.tm_sec;
  6521. return !p;
  6522. ;
  6523. return 0;
  6524. }
  6525. _ACEOF
  6526. rm -f conftest.$ac_objext
  6527. if { (ac_try="$ac_compile"
  6528. case "(($ac_try" in
  6529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6530. *) ac_try_echo=$ac_try;;
  6531. esac
  6532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6533. (eval "$ac_compile") 2>conftest.er1
  6534. ac_status=$?
  6535. grep -v '^ *+' conftest.er1 >conftest.err
  6536. rm -f conftest.er1
  6537. cat conftest.err >&5
  6538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6539. (exit $ac_status); } && {
  6540. test -z "$ac_c_werror_flag" ||
  6541. test ! -s conftest.err
  6542. } && test -s conftest.$ac_objext; then
  6543. ac_cv_struct_tm=time.h
  6544. else
  6545. echo "$as_me: failed program was:" >&5
  6546. sed 's/^/| /' conftest.$ac_ext >&5
  6547. ac_cv_struct_tm=sys/time.h
  6548. fi
  6549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6550. fi
  6551. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6552. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6553. if test $ac_cv_struct_tm = sys/time.h; then
  6554. cat >>confdefs.h <<\_ACEOF
  6555. #define TM_IN_SYS_TIME 1
  6556. _ACEOF
  6557. fi
  6558. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6559. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6560. if test "${ac_cv_c_volatile+set}" = set; then
  6561. echo $ECHO_N "(cached) $ECHO_C" >&6
  6562. else
  6563. cat >conftest.$ac_ext <<_ACEOF
  6564. /* confdefs.h. */
  6565. _ACEOF
  6566. cat confdefs.h >>conftest.$ac_ext
  6567. cat >>conftest.$ac_ext <<_ACEOF
  6568. /* end confdefs.h. */
  6569. int
  6570. main ()
  6571. {
  6572. volatile int x;
  6573. int * volatile y = (int *) 0;
  6574. return !x && !y;
  6575. ;
  6576. return 0;
  6577. }
  6578. _ACEOF
  6579. rm -f conftest.$ac_objext
  6580. if { (ac_try="$ac_compile"
  6581. case "(($ac_try" in
  6582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6583. *) ac_try_echo=$ac_try;;
  6584. esac
  6585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6586. (eval "$ac_compile") 2>conftest.er1
  6587. ac_status=$?
  6588. grep -v '^ *+' conftest.er1 >conftest.err
  6589. rm -f conftest.er1
  6590. cat conftest.err >&5
  6591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6592. (exit $ac_status); } && {
  6593. test -z "$ac_c_werror_flag" ||
  6594. test ! -s conftest.err
  6595. } && test -s conftest.$ac_objext; then
  6596. ac_cv_c_volatile=yes
  6597. else
  6598. echo "$as_me: failed program was:" >&5
  6599. sed 's/^/| /' conftest.$ac_ext >&5
  6600. ac_cv_c_volatile=no
  6601. fi
  6602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6603. fi
  6604. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6605. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6606. if test $ac_cv_c_volatile = no; then
  6607. cat >>confdefs.h <<\_ACEOF
  6608. #define volatile
  6609. _ACEOF
  6610. fi
  6611. # Checks for library functions.
  6612. MKINSTALLDIRS=
  6613. if test -n "$ac_aux_dir"; then
  6614. case "$ac_aux_dir" in
  6615. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6616. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6617. esac
  6618. fi
  6619. if test -z "$MKINSTALLDIRS"; then
  6620. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6621. fi
  6622. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6623. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6624. # Check whether --enable-nls was given.
  6625. if test "${enable_nls+set}" = set; then
  6626. enableval=$enable_nls; USE_NLS=$enableval
  6627. else
  6628. USE_NLS=yes
  6629. fi
  6630. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6631. echo "${ECHO_T}$USE_NLS" >&6; }
  6632. # Prepare PATH_SEPARATOR.
  6633. # The user is always right.
  6634. if test "${PATH_SEPARATOR+set}" != set; then
  6635. echo "#! /bin/sh" >conf$$.sh
  6636. echo "exit 0" >>conf$$.sh
  6637. chmod +x conf$$.sh
  6638. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6639. PATH_SEPARATOR=';'
  6640. else
  6641. PATH_SEPARATOR=:
  6642. fi
  6643. rm -f conf$$.sh
  6644. fi
  6645. # Find out how to test for executable files. Don't use a zero-byte file,
  6646. # as systems may use methods other than mode bits to determine executability.
  6647. cat >conf$$.file <<_ASEOF
  6648. #! /bin/sh
  6649. exit 0
  6650. _ASEOF
  6651. chmod +x conf$$.file
  6652. if test -x conf$$.file >/dev/null 2>&1; then
  6653. ac_executable_p="test -x"
  6654. else
  6655. ac_executable_p="test -f"
  6656. fi
  6657. rm -f conf$$.file
  6658. # Extract the first word of "msgfmt", so it can be a program name with args.
  6659. set dummy msgfmt; ac_word=$2
  6660. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6661. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6662. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6663. echo $ECHO_N "(cached) $ECHO_C" >&6
  6664. else
  6665. case "$MSGFMT" in
  6666. [\\/]* | ?:[\\/]*)
  6667. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6668. ;;
  6669. *)
  6670. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6671. for ac_dir in $PATH; do
  6672. IFS="$ac_save_IFS"
  6673. test -z "$ac_dir" && ac_dir=.
  6674. for ac_exec_ext in '' $ac_executable_extensions; do
  6675. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6676. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6677. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6678. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6679. break 2
  6680. fi
  6681. fi
  6682. done
  6683. done
  6684. IFS="$ac_save_IFS"
  6685. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6686. ;;
  6687. esac
  6688. fi
  6689. MSGFMT="$ac_cv_path_MSGFMT"
  6690. if test "$MSGFMT" != ":"; then
  6691. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6692. echo "${ECHO_T}$MSGFMT" >&6; }
  6693. else
  6694. { echo "$as_me:$LINENO: result: no" >&5
  6695. echo "${ECHO_T}no" >&6; }
  6696. fi
  6697. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6698. set dummy gmsgfmt; ac_word=$2
  6699. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6700. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6701. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6702. echo $ECHO_N "(cached) $ECHO_C" >&6
  6703. else
  6704. case $GMSGFMT in
  6705. [\\/]* | ?:[\\/]*)
  6706. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6707. ;;
  6708. *)
  6709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6710. for as_dir in $PATH
  6711. do
  6712. IFS=$as_save_IFS
  6713. test -z "$as_dir" && as_dir=.
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6716. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6717. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6724. ;;
  6725. esac
  6726. fi
  6727. GMSGFMT=$ac_cv_path_GMSGFMT
  6728. if test -n "$GMSGFMT"; then
  6729. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6730. echo "${ECHO_T}$GMSGFMT" >&6; }
  6731. else
  6732. { echo "$as_me:$LINENO: result: no" >&5
  6733. echo "${ECHO_T}no" >&6; }
  6734. fi
  6735. # Prepare PATH_SEPARATOR.
  6736. # The user is always right.
  6737. if test "${PATH_SEPARATOR+set}" != set; then
  6738. echo "#! /bin/sh" >conf$$.sh
  6739. echo "exit 0" >>conf$$.sh
  6740. chmod +x conf$$.sh
  6741. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6742. PATH_SEPARATOR=';'
  6743. else
  6744. PATH_SEPARATOR=:
  6745. fi
  6746. rm -f conf$$.sh
  6747. fi
  6748. # Find out how to test for executable files. Don't use a zero-byte file,
  6749. # as systems may use methods other than mode bits to determine executability.
  6750. cat >conf$$.file <<_ASEOF
  6751. #! /bin/sh
  6752. exit 0
  6753. _ASEOF
  6754. chmod +x conf$$.file
  6755. if test -x conf$$.file >/dev/null 2>&1; then
  6756. ac_executable_p="test -x"
  6757. else
  6758. ac_executable_p="test -f"
  6759. fi
  6760. rm -f conf$$.file
  6761. # Extract the first word of "xgettext", so it can be a program name with args.
  6762. set dummy xgettext; ac_word=$2
  6763. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6764. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6765. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6766. echo $ECHO_N "(cached) $ECHO_C" >&6
  6767. else
  6768. case "$XGETTEXT" in
  6769. [\\/]* | ?:[\\/]*)
  6770. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6771. ;;
  6772. *)
  6773. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6774. for ac_dir in $PATH; do
  6775. IFS="$ac_save_IFS"
  6776. test -z "$ac_dir" && ac_dir=.
  6777. for ac_exec_ext in '' $ac_executable_extensions; do
  6778. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6779. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6780. (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
  6781. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6782. break 2
  6783. fi
  6784. fi
  6785. done
  6786. done
  6787. IFS="$ac_save_IFS"
  6788. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6789. ;;
  6790. esac
  6791. fi
  6792. XGETTEXT="$ac_cv_path_XGETTEXT"
  6793. if test "$XGETTEXT" != ":"; then
  6794. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6795. echo "${ECHO_T}$XGETTEXT" >&6; }
  6796. else
  6797. { echo "$as_me:$LINENO: result: no" >&5
  6798. echo "${ECHO_T}no" >&6; }
  6799. fi
  6800. rm -f messages.po
  6801. # Prepare PATH_SEPARATOR.
  6802. # The user is always right.
  6803. if test "${PATH_SEPARATOR+set}" != set; then
  6804. echo "#! /bin/sh" >conf$$.sh
  6805. echo "exit 0" >>conf$$.sh
  6806. chmod +x conf$$.sh
  6807. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6808. PATH_SEPARATOR=';'
  6809. else
  6810. PATH_SEPARATOR=:
  6811. fi
  6812. rm -f conf$$.sh
  6813. fi
  6814. # Find out how to test for executable files. Don't use a zero-byte file,
  6815. # as systems may use methods other than mode bits to determine executability.
  6816. cat >conf$$.file <<_ASEOF
  6817. #! /bin/sh
  6818. exit 0
  6819. _ASEOF
  6820. chmod +x conf$$.file
  6821. if test -x conf$$.file >/dev/null 2>&1; then
  6822. ac_executable_p="test -x"
  6823. else
  6824. ac_executable_p="test -f"
  6825. fi
  6826. rm -f conf$$.file
  6827. # Extract the first word of "msgmerge", so it can be a program name with args.
  6828. set dummy msgmerge; ac_word=$2
  6829. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6830. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6831. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6832. echo $ECHO_N "(cached) $ECHO_C" >&6
  6833. else
  6834. case "$MSGMERGE" in
  6835. [\\/]* | ?:[\\/]*)
  6836. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6837. ;;
  6838. *)
  6839. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6840. for ac_dir in $PATH; do
  6841. IFS="$ac_save_IFS"
  6842. test -z "$ac_dir" && ac_dir=.
  6843. for ac_exec_ext in '' $ac_executable_extensions; do
  6844. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6845. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6846. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6847. break 2
  6848. fi
  6849. fi
  6850. done
  6851. done
  6852. IFS="$ac_save_IFS"
  6853. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6854. ;;
  6855. esac
  6856. fi
  6857. MSGMERGE="$ac_cv_path_MSGMERGE"
  6858. if test "$MSGMERGE" != ":"; then
  6859. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6860. echo "${ECHO_T}$MSGMERGE" >&6; }
  6861. else
  6862. { echo "$as_me:$LINENO: result: no" >&5
  6863. echo "${ECHO_T}no" >&6; }
  6864. fi
  6865. if test "$GMSGFMT" != ":"; then
  6866. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6867. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6868. : ;
  6869. else
  6870. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6871. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6872. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  6873. GMSGFMT=":"
  6874. fi
  6875. fi
  6876. if test "$XGETTEXT" != ":"; then
  6877. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6878. (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
  6879. : ;
  6880. else
  6881. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6882. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  6883. XGETTEXT=":"
  6884. fi
  6885. rm -f messages.po
  6886. fi
  6887. ac_config_commands="$ac_config_commands default-1"
  6888. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  6889. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  6890. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  6891. echo $ECHO_N "(cached) $ECHO_C" >&6
  6892. else
  6893. ac_check_lib_save_LIBS=$LIBS
  6894. LIBS="-lcposix $LIBS"
  6895. cat >conftest.$ac_ext <<_ACEOF
  6896. /* confdefs.h. */
  6897. _ACEOF
  6898. cat confdefs.h >>conftest.$ac_ext
  6899. cat >>conftest.$ac_ext <<_ACEOF
  6900. /* end confdefs.h. */
  6901. /* Override any GCC internal prototype to avoid an error.
  6902. Use char because int might match the return type of a GCC
  6903. builtin and then its argument prototype would still apply. */
  6904. #ifdef __cplusplus
  6905. extern "C"
  6906. #endif
  6907. char strerror ();
  6908. int
  6909. main ()
  6910. {
  6911. return strerror ();
  6912. ;
  6913. return 0;
  6914. }
  6915. _ACEOF
  6916. rm -f conftest.$ac_objext conftest$ac_exeext
  6917. if { (ac_try="$ac_link"
  6918. case "(($ac_try" in
  6919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6920. *) ac_try_echo=$ac_try;;
  6921. esac
  6922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6923. (eval "$ac_link") 2>conftest.er1
  6924. ac_status=$?
  6925. grep -v '^ *+' conftest.er1 >conftest.err
  6926. rm -f conftest.er1
  6927. cat conftest.err >&5
  6928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6929. (exit $ac_status); } && {
  6930. test -z "$ac_c_werror_flag" ||
  6931. test ! -s conftest.err
  6932. } && test -s conftest$ac_exeext &&
  6933. $as_test_x conftest$ac_exeext; then
  6934. ac_cv_lib_cposix_strerror=yes
  6935. else
  6936. echo "$as_me: failed program was:" >&5
  6937. sed 's/^/| /' conftest.$ac_ext >&5
  6938. ac_cv_lib_cposix_strerror=no
  6939. fi
  6940. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6941. conftest$ac_exeext conftest.$ac_ext
  6942. LIBS=$ac_check_lib_save_LIBS
  6943. fi
  6944. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  6945. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  6946. if test $ac_cv_lib_cposix_strerror = yes; then
  6947. LIBS="$LIBS -lcposix"
  6948. fi
  6949. { echo "$as_me:$LINENO: checking for off_t" >&5
  6950. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  6951. if test "${ac_cv_type_off_t+set}" = set; then
  6952. echo $ECHO_N "(cached) $ECHO_C" >&6
  6953. else
  6954. cat >conftest.$ac_ext <<_ACEOF
  6955. /* confdefs.h. */
  6956. _ACEOF
  6957. cat confdefs.h >>conftest.$ac_ext
  6958. cat >>conftest.$ac_ext <<_ACEOF
  6959. /* end confdefs.h. */
  6960. $ac_includes_default
  6961. typedef off_t ac__type_new_;
  6962. int
  6963. main ()
  6964. {
  6965. if ((ac__type_new_ *) 0)
  6966. return 0;
  6967. if (sizeof (ac__type_new_))
  6968. return 0;
  6969. ;
  6970. return 0;
  6971. }
  6972. _ACEOF
  6973. rm -f conftest.$ac_objext
  6974. if { (ac_try="$ac_compile"
  6975. case "(($ac_try" in
  6976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6977. *) ac_try_echo=$ac_try;;
  6978. esac
  6979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6980. (eval "$ac_compile") 2>conftest.er1
  6981. ac_status=$?
  6982. grep -v '^ *+' conftest.er1 >conftest.err
  6983. rm -f conftest.er1
  6984. cat conftest.err >&5
  6985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6986. (exit $ac_status); } && {
  6987. test -z "$ac_c_werror_flag" ||
  6988. test ! -s conftest.err
  6989. } && test -s conftest.$ac_objext; then
  6990. ac_cv_type_off_t=yes
  6991. else
  6992. echo "$as_me: failed program was:" >&5
  6993. sed 's/^/| /' conftest.$ac_ext >&5
  6994. ac_cv_type_off_t=no
  6995. fi
  6996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6997. fi
  6998. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6999. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7000. if test $ac_cv_type_off_t = yes; then
  7001. :
  7002. else
  7003. cat >>confdefs.h <<_ACEOF
  7004. #define off_t long int
  7005. _ACEOF
  7006. fi
  7007. for ac_header in stdlib.h unistd.h
  7008. do
  7009. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7010. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7011. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7012. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7013. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7014. echo $ECHO_N "(cached) $ECHO_C" >&6
  7015. fi
  7016. ac_res=`eval echo '${'$as_ac_Header'}'`
  7017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7018. echo "${ECHO_T}$ac_res" >&6; }
  7019. else
  7020. # Is the header compilable?
  7021. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7022. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7023. cat >conftest.$ac_ext <<_ACEOF
  7024. /* confdefs.h. */
  7025. _ACEOF
  7026. cat confdefs.h >>conftest.$ac_ext
  7027. cat >>conftest.$ac_ext <<_ACEOF
  7028. /* end confdefs.h. */
  7029. $ac_includes_default
  7030. #include <$ac_header>
  7031. _ACEOF
  7032. rm -f conftest.$ac_objext
  7033. if { (ac_try="$ac_compile"
  7034. case "(($ac_try" in
  7035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7036. *) ac_try_echo=$ac_try;;
  7037. esac
  7038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7039. (eval "$ac_compile") 2>conftest.er1
  7040. ac_status=$?
  7041. grep -v '^ *+' conftest.er1 >conftest.err
  7042. rm -f conftest.er1
  7043. cat conftest.err >&5
  7044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045. (exit $ac_status); } && {
  7046. test -z "$ac_c_werror_flag" ||
  7047. test ! -s conftest.err
  7048. } && test -s conftest.$ac_objext; then
  7049. ac_header_compiler=yes
  7050. else
  7051. echo "$as_me: failed program was:" >&5
  7052. sed 's/^/| /' conftest.$ac_ext >&5
  7053. ac_header_compiler=no
  7054. fi
  7055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7056. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7057. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7058. # Is the header present?
  7059. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7060. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7061. cat >conftest.$ac_ext <<_ACEOF
  7062. /* confdefs.h. */
  7063. _ACEOF
  7064. cat confdefs.h >>conftest.$ac_ext
  7065. cat >>conftest.$ac_ext <<_ACEOF
  7066. /* end confdefs.h. */
  7067. #include <$ac_header>
  7068. _ACEOF
  7069. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7070. case "(($ac_try" in
  7071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7072. *) ac_try_echo=$ac_try;;
  7073. esac
  7074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7075. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7076. ac_status=$?
  7077. grep -v '^ *+' conftest.er1 >conftest.err
  7078. rm -f conftest.er1
  7079. cat conftest.err >&5
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); } >/dev/null && {
  7082. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7083. test ! -s conftest.err
  7084. }; then
  7085. ac_header_preproc=yes
  7086. else
  7087. echo "$as_me: failed program was:" >&5
  7088. sed 's/^/| /' conftest.$ac_ext >&5
  7089. ac_header_preproc=no
  7090. fi
  7091. rm -f conftest.err conftest.$ac_ext
  7092. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7093. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7094. # So? What about this header?
  7095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7096. yes:no: )
  7097. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7098. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7099. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7100. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7101. ac_header_preproc=yes
  7102. ;;
  7103. no:yes:* )
  7104. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7105. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7106. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7107. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7108. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7109. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7110. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7111. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7113. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7114. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7115. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7116. ( cat <<\_ASBOX
  7117. ## ----------------------------------------------- ##
  7118. ## Report this to t-tujikawa@users.sourceforge.net ##
  7119. ## ----------------------------------------------- ##
  7120. _ASBOX
  7121. ) | sed "s/^/$as_me: WARNING: /" >&2
  7122. ;;
  7123. esac
  7124. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7125. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7126. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7127. echo $ECHO_N "(cached) $ECHO_C" >&6
  7128. else
  7129. eval "$as_ac_Header=\$ac_header_preproc"
  7130. fi
  7131. ac_res=`eval echo '${'$as_ac_Header'}'`
  7132. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7133. echo "${ECHO_T}$ac_res" >&6; }
  7134. fi
  7135. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7136. cat >>confdefs.h <<_ACEOF
  7137. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7138. _ACEOF
  7139. fi
  7140. done
  7141. for ac_func in getpagesize
  7142. do
  7143. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7144. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7145. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7146. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7147. echo $ECHO_N "(cached) $ECHO_C" >&6
  7148. else
  7149. cat >conftest.$ac_ext <<_ACEOF
  7150. /* confdefs.h. */
  7151. _ACEOF
  7152. cat confdefs.h >>conftest.$ac_ext
  7153. cat >>conftest.$ac_ext <<_ACEOF
  7154. /* end confdefs.h. */
  7155. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7156. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7157. #define $ac_func innocuous_$ac_func
  7158. /* System header to define __stub macros and hopefully few prototypes,
  7159. which can conflict with char $ac_func (); below.
  7160. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7161. <limits.h> exists even on freestanding compilers. */
  7162. #ifdef __STDC__
  7163. # include <limits.h>
  7164. #else
  7165. # include <assert.h>
  7166. #endif
  7167. #undef $ac_func
  7168. /* Override any GCC internal prototype to avoid an error.
  7169. Use char because int might match the return type of a GCC
  7170. builtin and then its argument prototype would still apply. */
  7171. #ifdef __cplusplus
  7172. extern "C"
  7173. #endif
  7174. char $ac_func ();
  7175. /* The GNU C library defines this for functions which it implements
  7176. to always fail with ENOSYS. Some functions are actually named
  7177. something starting with __ and the normal name is an alias. */
  7178. #if defined __stub_$ac_func || defined __stub___$ac_func
  7179. choke me
  7180. #endif
  7181. int
  7182. main ()
  7183. {
  7184. return $ac_func ();
  7185. ;
  7186. return 0;
  7187. }
  7188. _ACEOF
  7189. rm -f conftest.$ac_objext conftest$ac_exeext
  7190. if { (ac_try="$ac_link"
  7191. case "(($ac_try" in
  7192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7193. *) ac_try_echo=$ac_try;;
  7194. esac
  7195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7196. (eval "$ac_link") 2>conftest.er1
  7197. ac_status=$?
  7198. grep -v '^ *+' conftest.er1 >conftest.err
  7199. rm -f conftest.er1
  7200. cat conftest.err >&5
  7201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7202. (exit $ac_status); } && {
  7203. test -z "$ac_c_werror_flag" ||
  7204. test ! -s conftest.err
  7205. } && test -s conftest$ac_exeext &&
  7206. $as_test_x conftest$ac_exeext; then
  7207. eval "$as_ac_var=yes"
  7208. else
  7209. echo "$as_me: failed program was:" >&5
  7210. sed 's/^/| /' conftest.$ac_ext >&5
  7211. eval "$as_ac_var=no"
  7212. fi
  7213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7214. conftest$ac_exeext conftest.$ac_ext
  7215. fi
  7216. ac_res=`eval echo '${'$as_ac_var'}'`
  7217. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7218. echo "${ECHO_T}$ac_res" >&6; }
  7219. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7220. cat >>confdefs.h <<_ACEOF
  7221. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7222. _ACEOF
  7223. fi
  7224. done
  7225. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7226. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7227. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7228. echo $ECHO_N "(cached) $ECHO_C" >&6
  7229. else
  7230. if test "$cross_compiling" = yes; then
  7231. ac_cv_func_mmap_fixed_mapped=no
  7232. else
  7233. cat >conftest.$ac_ext <<_ACEOF
  7234. /* confdefs.h. */
  7235. _ACEOF
  7236. cat confdefs.h >>conftest.$ac_ext
  7237. cat >>conftest.$ac_ext <<_ACEOF
  7238. /* end confdefs.h. */
  7239. $ac_includes_default
  7240. /* malloc might have been renamed as rpl_malloc. */
  7241. #undef malloc
  7242. /* Thanks to Mike Haertel and Jim Avera for this test.
  7243. Here is a matrix of mmap possibilities:
  7244. mmap private not fixed
  7245. mmap private fixed at somewhere currently unmapped
  7246. mmap private fixed at somewhere already mapped
  7247. mmap shared not fixed
  7248. mmap shared fixed at somewhere currently unmapped
  7249. mmap shared fixed at somewhere already mapped
  7250. For private mappings, we should verify that changes cannot be read()
  7251. back from the file, nor mmap's back from the file at a different
  7252. address. (There have been systems where private was not correctly
  7253. implemented like the infamous i386 svr4.0, and systems where the
  7254. VM page cache was not coherent with the file system buffer cache
  7255. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7256. For shared mappings, we should conversely verify that changes get
  7257. propagated back to all the places they're supposed to be.
  7258. Grep wants private fixed already mapped.
  7259. The main things grep needs to know about mmap are:
  7260. * does it exist and is it safe to write into the mmap'd area
  7261. * how to use it (BSD variants) */
  7262. #include <fcntl.h>
  7263. #include <sys/mman.h>
  7264. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7265. char *malloc ();
  7266. #endif
  7267. /* This mess was copied from the GNU getpagesize.h. */
  7268. #ifndef HAVE_GETPAGESIZE
  7269. /* Assume that all systems that can run configure have sys/param.h. */
  7270. # ifndef HAVE_SYS_PARAM_H
  7271. # define HAVE_SYS_PARAM_H 1
  7272. # endif
  7273. # ifdef _SC_PAGESIZE
  7274. # define getpagesize() sysconf(_SC_PAGESIZE)
  7275. # else /* no _SC_PAGESIZE */
  7276. # ifdef HAVE_SYS_PARAM_H
  7277. # include <sys/param.h>
  7278. # ifdef EXEC_PAGESIZE
  7279. # define getpagesize() EXEC_PAGESIZE
  7280. # else /* no EXEC_PAGESIZE */
  7281. # ifdef NBPG
  7282. # define getpagesize() NBPG * CLSIZE
  7283. # ifndef CLSIZE
  7284. # define CLSIZE 1
  7285. # endif /* no CLSIZE */
  7286. # else /* no NBPG */
  7287. # ifdef NBPC
  7288. # define getpagesize() NBPC
  7289. # else /* no NBPC */
  7290. # ifdef PAGESIZE
  7291. # define getpagesize() PAGESIZE
  7292. # endif /* PAGESIZE */
  7293. # endif /* no NBPC */
  7294. # endif /* no NBPG */
  7295. # endif /* no EXEC_PAGESIZE */
  7296. # else /* no HAVE_SYS_PARAM_H */
  7297. # define getpagesize() 8192 /* punt totally */
  7298. # endif /* no HAVE_SYS_PARAM_H */
  7299. # endif /* no _SC_PAGESIZE */
  7300. #endif /* no HAVE_GETPAGESIZE */
  7301. int
  7302. main ()
  7303. {
  7304. char *data, *data2, *data3;
  7305. int i, pagesize;
  7306. int fd;
  7307. pagesize = getpagesize ();
  7308. /* First, make a file with some known garbage in it. */
  7309. data = (char *) malloc (pagesize);
  7310. if (!data)
  7311. return 1;
  7312. for (i = 0; i < pagesize; ++i)
  7313. *(data + i) = rand ();
  7314. umask (0);
  7315. fd = creat ("conftest.mmap", 0600);
  7316. if (fd < 0)
  7317. return 1;
  7318. if (write (fd, data, pagesize) != pagesize)
  7319. return 1;
  7320. close (fd);
  7321. /* Next, try to mmap the file at a fixed address which already has
  7322. something else allocated at it. If we can, also make sure that
  7323. we see the same garbage. */
  7324. fd = open ("conftest.mmap", O_RDWR);
  7325. if (fd < 0)
  7326. return 1;
  7327. data2 = (char *) malloc (2 * pagesize);
  7328. if (!data2)
  7329. return 1;
  7330. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7331. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7332. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7333. return 1;
  7334. for (i = 0; i < pagesize; ++i)
  7335. if (*(data + i) != *(data2 + i))
  7336. return 1;
  7337. /* Finally, make sure that changes to the mapped area do not
  7338. percolate back to the file as seen by read(). (This is a bug on
  7339. some variants of i386 svr4.0.) */
  7340. for (i = 0; i < pagesize; ++i)
  7341. *(data2 + i) = *(data2 + i) + 1;
  7342. data3 = (char *) malloc (pagesize);
  7343. if (!data3)
  7344. return 1;
  7345. if (read (fd, data3, pagesize) != pagesize)
  7346. return 1;
  7347. for (i = 0; i < pagesize; ++i)
  7348. if (*(data + i) != *(data3 + i))
  7349. return 1;
  7350. close (fd);
  7351. return 0;
  7352. }
  7353. _ACEOF
  7354. rm -f conftest$ac_exeext
  7355. if { (ac_try="$ac_link"
  7356. case "(($ac_try" in
  7357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7358. *) ac_try_echo=$ac_try;;
  7359. esac
  7360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7361. (eval "$ac_link") 2>&5
  7362. ac_status=$?
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7365. { (case "(($ac_try" in
  7366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7367. *) ac_try_echo=$ac_try;;
  7368. esac
  7369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7370. (eval "$ac_try") 2>&5
  7371. ac_status=$?
  7372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7373. (exit $ac_status); }; }; then
  7374. ac_cv_func_mmap_fixed_mapped=yes
  7375. else
  7376. echo "$as_me: program exited with status $ac_status" >&5
  7377. echo "$as_me: failed program was:" >&5
  7378. sed 's/^/| /' conftest.$ac_ext >&5
  7379. ( exit $ac_status )
  7380. ac_cv_func_mmap_fixed_mapped=no
  7381. fi
  7382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7383. fi
  7384. fi
  7385. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7386. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7387. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7388. cat >>confdefs.h <<\_ACEOF
  7389. #define HAVE_MMAP 1
  7390. _ACEOF
  7391. fi
  7392. rm -f conftest.mmap
  7393. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7394. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7395. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7396. echo $ECHO_N "(cached) $ECHO_C" >&6
  7397. else
  7398. cat >conftest.$ac_ext <<_ACEOF
  7399. /* confdefs.h. */
  7400. _ACEOF
  7401. cat confdefs.h >>conftest.$ac_ext
  7402. cat >>conftest.$ac_ext <<_ACEOF
  7403. /* end confdefs.h. */
  7404. #include <features.h>
  7405. #ifdef __GNU_LIBRARY__
  7406. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7407. Lucky GNU user
  7408. #endif
  7409. #endif
  7410. _ACEOF
  7411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7412. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7413. ac_cv_gnu_library_2_1=yes
  7414. else
  7415. ac_cv_gnu_library_2_1=no
  7416. fi
  7417. rm -f conftest*
  7418. fi
  7419. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7420. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7421. GLIBC21="$ac_cv_gnu_library_2_1"
  7422. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7423. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7424. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7425. echo $ECHO_N "(cached) $ECHO_C" >&6
  7426. else
  7427. if test "$cross_compiling" = yes; then
  7428. # Guess based on the CPU.
  7429. case "$host_cpu" in
  7430. alpha* | i3456786 | m68k | s390*)
  7431. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7432. *)
  7433. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7434. esac
  7435. else
  7436. cat >conftest.$ac_ext <<_ACEOF
  7437. /* confdefs.h. */
  7438. _ACEOF
  7439. cat confdefs.h >>conftest.$ac_ext
  7440. cat >>conftest.$ac_ext <<_ACEOF
  7441. /* end confdefs.h. */
  7442. #include <stdlib.h>
  7443. #include <signal.h>
  7444. static void
  7445. #ifdef __cplusplus
  7446. sigfpe_handler (int sig)
  7447. #else
  7448. sigfpe_handler (sig) int sig;
  7449. #endif
  7450. {
  7451. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7452. exit (sig != SIGFPE);
  7453. }
  7454. int x = 1;
  7455. int y = 0;
  7456. int z;
  7457. int nan;
  7458. int main ()
  7459. {
  7460. signal (SIGFPE, sigfpe_handler);
  7461. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7462. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7463. signal (SIGTRAP, sigfpe_handler);
  7464. #endif
  7465. /* Linux/SPARC yields signal SIGILL. */
  7466. #if defined (__sparc__) && defined (__linux__)
  7467. signal (SIGILL, sigfpe_handler);
  7468. #endif
  7469. z = x / y;
  7470. nan = y / y;
  7471. exit (1);
  7472. }
  7473. _ACEOF
  7474. rm -f conftest$ac_exeext
  7475. if { (ac_try="$ac_link"
  7476. case "(($ac_try" in
  7477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7478. *) ac_try_echo=$ac_try;;
  7479. esac
  7480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7481. (eval "$ac_link") 2>&5
  7482. ac_status=$?
  7483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7485. { (case "(($ac_try" in
  7486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7487. *) ac_try_echo=$ac_try;;
  7488. esac
  7489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7490. (eval "$ac_try") 2>&5
  7491. ac_status=$?
  7492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7493. (exit $ac_status); }; }; then
  7494. gt_cv_int_divbyzero_sigfpe=yes
  7495. else
  7496. echo "$as_me: program exited with status $ac_status" >&5
  7497. echo "$as_me: failed program was:" >&5
  7498. sed 's/^/| /' conftest.$ac_ext >&5
  7499. ( exit $ac_status )
  7500. gt_cv_int_divbyzero_sigfpe=no
  7501. fi
  7502. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7503. fi
  7504. fi
  7505. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7506. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7507. case "$gt_cv_int_divbyzero_sigfpe" in
  7508. *yes) value=1;;
  7509. *) value=0;;
  7510. esac
  7511. cat >>confdefs.h <<_ACEOF
  7512. #define INTDIV0_RAISES_SIGFPE $value
  7513. _ACEOF
  7514. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7515. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7516. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7517. echo $ECHO_N "(cached) $ECHO_C" >&6
  7518. else
  7519. cat >conftest.$ac_ext <<_ACEOF
  7520. /* confdefs.h. */
  7521. _ACEOF
  7522. cat confdefs.h >>conftest.$ac_ext
  7523. cat >>conftest.$ac_ext <<_ACEOF
  7524. /* end confdefs.h. */
  7525. #include <sys/types.h>
  7526. #include <inttypes.h>
  7527. int
  7528. main ()
  7529. {
  7530. uintmax_t i = (uintmax_t) -1;
  7531. ;
  7532. return 0;
  7533. }
  7534. _ACEOF
  7535. rm -f conftest.$ac_objext
  7536. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  7543. ac_status=$?
  7544. grep -v '^ *+' conftest.er1 >conftest.err
  7545. rm -f conftest.er1
  7546. cat conftest.err >&5
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. (exit $ac_status); } && {
  7549. test -z "$ac_c_werror_flag" ||
  7550. test ! -s conftest.err
  7551. } && test -s conftest.$ac_objext; then
  7552. jm_ac_cv_header_inttypes_h=yes
  7553. else
  7554. echo "$as_me: failed program was:" >&5
  7555. sed 's/^/| /' conftest.$ac_ext >&5
  7556. jm_ac_cv_header_inttypes_h=no
  7557. fi
  7558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7559. fi
  7560. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7561. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7562. if test $jm_ac_cv_header_inttypes_h = yes; then
  7563. cat >>confdefs.h <<_ACEOF
  7564. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7565. _ACEOF
  7566. fi
  7567. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7568. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7569. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7570. echo $ECHO_N "(cached) $ECHO_C" >&6
  7571. else
  7572. cat >conftest.$ac_ext <<_ACEOF
  7573. /* confdefs.h. */
  7574. _ACEOF
  7575. cat confdefs.h >>conftest.$ac_ext
  7576. cat >>conftest.$ac_ext <<_ACEOF
  7577. /* end confdefs.h. */
  7578. #include <sys/types.h>
  7579. #include <stdint.h>
  7580. int
  7581. main ()
  7582. {
  7583. uintmax_t i = (uintmax_t) -1;
  7584. ;
  7585. return 0;
  7586. }
  7587. _ACEOF
  7588. rm -f conftest.$ac_objext
  7589. if { (ac_try="$ac_compile"
  7590. case "(($ac_try" in
  7591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7592. *) ac_try_echo=$ac_try;;
  7593. esac
  7594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7595. (eval "$ac_compile") 2>conftest.er1
  7596. ac_status=$?
  7597. grep -v '^ *+' conftest.er1 >conftest.err
  7598. rm -f conftest.er1
  7599. cat conftest.err >&5
  7600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7601. (exit $ac_status); } && {
  7602. test -z "$ac_c_werror_flag" ||
  7603. test ! -s conftest.err
  7604. } && test -s conftest.$ac_objext; then
  7605. jm_ac_cv_header_stdint_h=yes
  7606. else
  7607. echo "$as_me: failed program was:" >&5
  7608. sed 's/^/| /' conftest.$ac_ext >&5
  7609. jm_ac_cv_header_stdint_h=no
  7610. fi
  7611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7612. fi
  7613. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7614. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7615. if test $jm_ac_cv_header_stdint_h = yes; then
  7616. cat >>confdefs.h <<_ACEOF
  7617. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7618. _ACEOF
  7619. fi
  7620. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7621. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7622. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7623. echo $ECHO_N "(cached) $ECHO_C" >&6
  7624. else
  7625. cat >conftest.$ac_ext <<_ACEOF
  7626. /* confdefs.h. */
  7627. _ACEOF
  7628. cat confdefs.h >>conftest.$ac_ext
  7629. cat >>conftest.$ac_ext <<_ACEOF
  7630. /* end confdefs.h. */
  7631. unsigned long long ull = 1; int i = 63;
  7632. int
  7633. main ()
  7634. {
  7635. unsigned long long ullmax = (unsigned long long) -1;
  7636. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7637. ;
  7638. return 0;
  7639. }
  7640. _ACEOF
  7641. rm -f conftest.$ac_objext conftest$ac_exeext
  7642. if { (ac_try="$ac_link"
  7643. case "(($ac_try" in
  7644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7645. *) ac_try_echo=$ac_try;;
  7646. esac
  7647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7648. (eval "$ac_link") 2>conftest.er1
  7649. ac_status=$?
  7650. grep -v '^ *+' conftest.er1 >conftest.err
  7651. rm -f conftest.er1
  7652. cat conftest.err >&5
  7653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7654. (exit $ac_status); } && {
  7655. test -z "$ac_c_werror_flag" ||
  7656. test ! -s conftest.err
  7657. } && test -s conftest$ac_exeext &&
  7658. $as_test_x conftest$ac_exeext; then
  7659. ac_cv_type_unsigned_long_long=yes
  7660. else
  7661. echo "$as_me: failed program was:" >&5
  7662. sed 's/^/| /' conftest.$ac_ext >&5
  7663. ac_cv_type_unsigned_long_long=no
  7664. fi
  7665. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7666. conftest$ac_exeext conftest.$ac_ext
  7667. fi
  7668. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7669. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7670. if test $ac_cv_type_unsigned_long_long = yes; then
  7671. cat >>confdefs.h <<\_ACEOF
  7672. #define HAVE_UNSIGNED_LONG_LONG 1
  7673. _ACEOF
  7674. fi
  7675. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7676. test $ac_cv_type_unsigned_long_long = yes \
  7677. && ac_type='unsigned long long' \
  7678. || ac_type='unsigned long'
  7679. cat >>confdefs.h <<_ACEOF
  7680. #define uintmax_t $ac_type
  7681. _ACEOF
  7682. else
  7683. cat >>confdefs.h <<\_ACEOF
  7684. #define HAVE_UINTMAX_T 1
  7685. _ACEOF
  7686. fi
  7687. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7688. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7689. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7690. echo $ECHO_N "(cached) $ECHO_C" >&6
  7691. else
  7692. cat >conftest.$ac_ext <<_ACEOF
  7693. /* confdefs.h. */
  7694. _ACEOF
  7695. cat confdefs.h >>conftest.$ac_ext
  7696. cat >>conftest.$ac_ext <<_ACEOF
  7697. /* end confdefs.h. */
  7698. #include <sys/types.h>
  7699. #include <inttypes.h>
  7700. int
  7701. main ()
  7702. {
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext
  7708. if { (ac_try="$ac_compile"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_compile") 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } && {
  7721. test -z "$ac_c_werror_flag" ||
  7722. test ! -s conftest.err
  7723. } && test -s conftest.$ac_objext; then
  7724. gt_cv_header_inttypes_h=yes
  7725. else
  7726. echo "$as_me: failed program was:" >&5
  7727. sed 's/^/| /' conftest.$ac_ext >&5
  7728. gt_cv_header_inttypes_h=no
  7729. fi
  7730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7731. fi
  7732. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7733. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7734. if test $gt_cv_header_inttypes_h = yes; then
  7735. cat >>confdefs.h <<_ACEOF
  7736. #define HAVE_INTTYPES_H 1
  7737. _ACEOF
  7738. fi
  7739. if test $gt_cv_header_inttypes_h = yes; then
  7740. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7741. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7742. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7743. echo $ECHO_N "(cached) $ECHO_C" >&6
  7744. else
  7745. cat >conftest.$ac_ext <<_ACEOF
  7746. /* confdefs.h. */
  7747. _ACEOF
  7748. cat confdefs.h >>conftest.$ac_ext
  7749. cat >>conftest.$ac_ext <<_ACEOF
  7750. /* end confdefs.h. */
  7751. #include <inttypes.h>
  7752. #ifdef PRId32
  7753. char *p = PRId32;
  7754. #endif
  7755. int
  7756. main ()
  7757. {
  7758. ;
  7759. return 0;
  7760. }
  7761. _ACEOF
  7762. rm -f conftest.$ac_objext
  7763. if { (ac_try="$ac_compile"
  7764. case "(($ac_try" in
  7765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7766. *) ac_try_echo=$ac_try;;
  7767. esac
  7768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7769. (eval "$ac_compile") 2>conftest.er1
  7770. ac_status=$?
  7771. grep -v '^ *+' conftest.er1 >conftest.err
  7772. rm -f conftest.er1
  7773. cat conftest.err >&5
  7774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7775. (exit $ac_status); } && {
  7776. test -z "$ac_c_werror_flag" ||
  7777. test ! -s conftest.err
  7778. } && test -s conftest.$ac_objext; then
  7779. gt_cv_inttypes_pri_broken=no
  7780. else
  7781. echo "$as_me: failed program was:" >&5
  7782. sed 's/^/| /' conftest.$ac_ext >&5
  7783. gt_cv_inttypes_pri_broken=yes
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7786. fi
  7787. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7788. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7789. fi
  7790. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7791. cat >>confdefs.h <<_ACEOF
  7792. #define PRI_MACROS_BROKEN 1
  7793. _ACEOF
  7794. fi
  7795. if test "X$prefix" = "XNONE"; then
  7796. acl_final_prefix="$ac_default_prefix"
  7797. else
  7798. acl_final_prefix="$prefix"
  7799. fi
  7800. if test "X$exec_prefix" = "XNONE"; then
  7801. acl_final_exec_prefix='${prefix}'
  7802. else
  7803. acl_final_exec_prefix="$exec_prefix"
  7804. fi
  7805. acl_save_prefix="$prefix"
  7806. prefix="$acl_final_prefix"
  7807. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7808. prefix="$acl_save_prefix"
  7809. # Check whether --with-gnu-ld was given.
  7810. if test "${with_gnu_ld+set}" = set; then
  7811. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7812. else
  7813. with_gnu_ld=no
  7814. fi
  7815. # Prepare PATH_SEPARATOR.
  7816. # The user is always right.
  7817. if test "${PATH_SEPARATOR+set}" != set; then
  7818. echo "#! /bin/sh" >conf$$.sh
  7819. echo "exit 0" >>conf$$.sh
  7820. chmod +x conf$$.sh
  7821. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7822. PATH_SEPARATOR=';'
  7823. else
  7824. PATH_SEPARATOR=:
  7825. fi
  7826. rm -f conf$$.sh
  7827. fi
  7828. ac_prog=ld
  7829. if test "$GCC" = yes; then
  7830. # Check if gcc -print-prog-name=ld gives a path.
  7831. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7832. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  7833. case $host in
  7834. *-*-mingw*)
  7835. # gcc leaves a trailing carriage return which upsets mingw
  7836. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7837. *)
  7838. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7839. esac
  7840. case $ac_prog in
  7841. # Accept absolute paths.
  7842. [\\/]* | [A-Za-z]:[\\/]*)
  7843. re_direlt='/[^/][^/]*/\.\./'
  7844. # Canonicalize the path of ld
  7845. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7846. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7847. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7848. done
  7849. test -z "$LD" && LD="$ac_prog"
  7850. ;;
  7851. "")
  7852. # If it fails, then pretend we aren't using GCC.
  7853. ac_prog=ld
  7854. ;;
  7855. *)
  7856. # If it is relative, then search for the first ld in PATH.
  7857. with_gnu_ld=unknown
  7858. ;;
  7859. esac
  7860. elif test "$with_gnu_ld" = yes; then
  7861. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  7862. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  7863. else
  7864. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7865. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  7866. fi
  7867. if test "${acl_cv_path_LD+set}" = set; then
  7868. echo $ECHO_N "(cached) $ECHO_C" >&6
  7869. else
  7870. if test -z "$LD"; then
  7871. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7872. for ac_dir in $PATH; do
  7873. test -z "$ac_dir" && ac_dir=.
  7874. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7875. acl_cv_path_LD="$ac_dir/$ac_prog"
  7876. # Check to see if the program is GNU ld. I'd rather use --version,
  7877. # but apparently some GNU ld's only accept -v.
  7878. # Break only if it was the GNU/non-GNU ld that we prefer.
  7879. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7880. test "$with_gnu_ld" != no && break
  7881. else
  7882. test "$with_gnu_ld" != yes && break
  7883. fi
  7884. fi
  7885. done
  7886. IFS="$ac_save_ifs"
  7887. else
  7888. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7889. fi
  7890. fi
  7891. LD="$acl_cv_path_LD"
  7892. if test -n "$LD"; then
  7893. { echo "$as_me:$LINENO: result: $LD" >&5
  7894. echo "${ECHO_T}$LD" >&6; }
  7895. else
  7896. { echo "$as_me:$LINENO: result: no" >&5
  7897. echo "${ECHO_T}no" >&6; }
  7898. fi
  7899. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7900. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7901. { (exit 1); exit 1; }; }
  7902. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7903. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  7904. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7905. echo $ECHO_N "(cached) $ECHO_C" >&6
  7906. else
  7907. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7908. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7909. acl_cv_prog_gnu_ld=yes
  7910. else
  7911. acl_cv_prog_gnu_ld=no
  7912. fi
  7913. fi
  7914. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7915. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  7916. with_gnu_ld=$acl_cv_prog_gnu_ld
  7917. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7918. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  7919. if test "${acl_cv_rpath+set}" = set; then
  7920. echo $ECHO_N "(cached) $ECHO_C" >&6
  7921. else
  7922. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7923. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7924. . ./conftest.sh
  7925. rm -f ./conftest.sh
  7926. acl_cv_rpath=done
  7927. fi
  7928. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7929. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  7930. wl="$acl_cv_wl"
  7931. libext="$acl_cv_libext"
  7932. shlibext="$acl_cv_shlibext"
  7933. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7934. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7935. hardcode_direct="$acl_cv_hardcode_direct"
  7936. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7937. # Check whether --enable-rpath was given.
  7938. if test "${enable_rpath+set}" = set; then
  7939. enableval=$enable_rpath; :
  7940. else
  7941. enable_rpath=yes
  7942. fi
  7943. use_additional=yes
  7944. acl_save_prefix="$prefix"
  7945. prefix="$acl_final_prefix"
  7946. acl_save_exec_prefix="$exec_prefix"
  7947. exec_prefix="$acl_final_exec_prefix"
  7948. eval additional_includedir=\"$includedir\"
  7949. eval additional_libdir=\"$libdir\"
  7950. exec_prefix="$acl_save_exec_prefix"
  7951. prefix="$acl_save_prefix"
  7952. # Check whether --with-libiconv-prefix was given.
  7953. if test "${with_libiconv_prefix+set}" = set; then
  7954. withval=$with_libiconv_prefix;
  7955. if test "X$withval" = "Xno"; then
  7956. use_additional=no
  7957. else
  7958. if test "X$withval" = "X"; then
  7959. acl_save_prefix="$prefix"
  7960. prefix="$acl_final_prefix"
  7961. acl_save_exec_prefix="$exec_prefix"
  7962. exec_prefix="$acl_final_exec_prefix"
  7963. eval additional_includedir=\"$includedir\"
  7964. eval additional_libdir=\"$libdir\"
  7965. exec_prefix="$acl_save_exec_prefix"
  7966. prefix="$acl_save_prefix"
  7967. else
  7968. additional_includedir="$withval/include"
  7969. additional_libdir="$withval/lib"
  7970. fi
  7971. fi
  7972. fi
  7973. LIBICONV=
  7974. LTLIBICONV=
  7975. INCICONV=
  7976. rpathdirs=
  7977. ltrpathdirs=
  7978. names_already_handled=
  7979. names_next_round='iconv '
  7980. while test -n "$names_next_round"; do
  7981. names_this_round="$names_next_round"
  7982. names_next_round=
  7983. for name in $names_this_round; do
  7984. already_handled=
  7985. for n in $names_already_handled; do
  7986. if test "$n" = "$name"; then
  7987. already_handled=yes
  7988. break
  7989. fi
  7990. done
  7991. if test -z "$already_handled"; then
  7992. names_already_handled="$names_already_handled $name"
  7993. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7994. eval value=\"\$HAVE_LIB$uppername\"
  7995. if test -n "$value"; then
  7996. if test "$value" = yes; then
  7997. eval value=\"\$LIB$uppername\"
  7998. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7999. eval value=\"\$LTLIB$uppername\"
  8000. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8001. else
  8002. :
  8003. fi
  8004. else
  8005. found_dir=
  8006. found_la=
  8007. found_so=
  8008. found_a=
  8009. if test $use_additional = yes; then
  8010. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8011. found_dir="$additional_libdir"
  8012. found_so="$additional_libdir/lib$name.$shlibext"
  8013. if test -f "$additional_libdir/lib$name.la"; then
  8014. found_la="$additional_libdir/lib$name.la"
  8015. fi
  8016. else
  8017. if test -f "$additional_libdir/lib$name.$libext"; then
  8018. found_dir="$additional_libdir"
  8019. found_a="$additional_libdir/lib$name.$libext"
  8020. if test -f "$additional_libdir/lib$name.la"; then
  8021. found_la="$additional_libdir/lib$name.la"
  8022. fi
  8023. fi
  8024. fi
  8025. fi
  8026. if test "X$found_dir" = "X"; then
  8027. for x in $LDFLAGS $LTLIBICONV; do
  8028. acl_save_prefix="$prefix"
  8029. prefix="$acl_final_prefix"
  8030. acl_save_exec_prefix="$exec_prefix"
  8031. exec_prefix="$acl_final_exec_prefix"
  8032. eval x=\"$x\"
  8033. exec_prefix="$acl_save_exec_prefix"
  8034. prefix="$acl_save_prefix"
  8035. case "$x" in
  8036. -L*)
  8037. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8038. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8039. found_dir="$dir"
  8040. found_so="$dir/lib$name.$shlibext"
  8041. if test -f "$dir/lib$name.la"; then
  8042. found_la="$dir/lib$name.la"
  8043. fi
  8044. else
  8045. if test -f "$dir/lib$name.$libext"; then
  8046. found_dir="$dir"
  8047. found_a="$dir/lib$name.$libext"
  8048. if test -f "$dir/lib$name.la"; then
  8049. found_la="$dir/lib$name.la"
  8050. fi
  8051. fi
  8052. fi
  8053. ;;
  8054. esac
  8055. if test "X$found_dir" != "X"; then
  8056. break
  8057. fi
  8058. done
  8059. fi
  8060. if test "X$found_dir" != "X"; then
  8061. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8062. if test "X$found_so" != "X"; then
  8063. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8064. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8065. else
  8066. haveit=
  8067. for x in $ltrpathdirs; do
  8068. if test "X$x" = "X$found_dir"; then
  8069. haveit=yes
  8070. break
  8071. fi
  8072. done
  8073. if test -z "$haveit"; then
  8074. ltrpathdirs="$ltrpathdirs $found_dir"
  8075. fi
  8076. if test "$hardcode_direct" = yes; then
  8077. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8078. else
  8079. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8080. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8081. haveit=
  8082. for x in $rpathdirs; do
  8083. if test "X$x" = "X$found_dir"; then
  8084. haveit=yes
  8085. break
  8086. fi
  8087. done
  8088. if test -z "$haveit"; then
  8089. rpathdirs="$rpathdirs $found_dir"
  8090. fi
  8091. else
  8092. haveit=
  8093. for x in $LDFLAGS $LIBICONV; do
  8094. acl_save_prefix="$prefix"
  8095. prefix="$acl_final_prefix"
  8096. acl_save_exec_prefix="$exec_prefix"
  8097. exec_prefix="$acl_final_exec_prefix"
  8098. eval x=\"$x\"
  8099. exec_prefix="$acl_save_exec_prefix"
  8100. prefix="$acl_save_prefix"
  8101. if test "X$x" = "X-L$found_dir"; then
  8102. haveit=yes
  8103. break
  8104. fi
  8105. done
  8106. if test -z "$haveit"; then
  8107. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8108. fi
  8109. if test "$hardcode_minus_L" != no; then
  8110. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8111. else
  8112. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8113. fi
  8114. fi
  8115. fi
  8116. fi
  8117. else
  8118. if test "X$found_a" != "X"; then
  8119. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8120. else
  8121. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8122. fi
  8123. fi
  8124. additional_includedir=
  8125. case "$found_dir" in
  8126. */lib | */lib/)
  8127. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8128. additional_includedir="$basedir/include"
  8129. ;;
  8130. esac
  8131. if test "X$additional_includedir" != "X"; then
  8132. if test "X$additional_includedir" != "X/usr/include"; then
  8133. haveit=
  8134. if test "X$additional_includedir" = "X/usr/local/include"; then
  8135. if test -n "$GCC"; then
  8136. case $host_os in
  8137. linux*) haveit=yes;;
  8138. esac
  8139. fi
  8140. fi
  8141. if test -z "$haveit"; then
  8142. for x in $CPPFLAGS $INCICONV; do
  8143. acl_save_prefix="$prefix"
  8144. prefix="$acl_final_prefix"
  8145. acl_save_exec_prefix="$exec_prefix"
  8146. exec_prefix="$acl_final_exec_prefix"
  8147. eval x=\"$x\"
  8148. exec_prefix="$acl_save_exec_prefix"
  8149. prefix="$acl_save_prefix"
  8150. if test "X$x" = "X-I$additional_includedir"; then
  8151. haveit=yes
  8152. break
  8153. fi
  8154. done
  8155. if test -z "$haveit"; then
  8156. if test -d "$additional_includedir"; then
  8157. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8158. fi
  8159. fi
  8160. fi
  8161. fi
  8162. fi
  8163. if test -n "$found_la"; then
  8164. save_libdir="$libdir"
  8165. case "$found_la" in
  8166. */* | *\\*) . "$found_la" ;;
  8167. *) . "./$found_la" ;;
  8168. esac
  8169. libdir="$save_libdir"
  8170. for dep in $dependency_libs; do
  8171. case "$dep" in
  8172. -L*)
  8173. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8174. if test "X$additional_libdir" != "X/usr/lib"; then
  8175. haveit=
  8176. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8177. if test -n "$GCC"; then
  8178. case $host_os in
  8179. linux*) haveit=yes;;
  8180. esac
  8181. fi
  8182. fi
  8183. if test -z "$haveit"; then
  8184. haveit=
  8185. for x in $LDFLAGS $LIBICONV; do
  8186. acl_save_prefix="$prefix"
  8187. prefix="$acl_final_prefix"
  8188. acl_save_exec_prefix="$exec_prefix"
  8189. exec_prefix="$acl_final_exec_prefix"
  8190. eval x=\"$x\"
  8191. exec_prefix="$acl_save_exec_prefix"
  8192. prefix="$acl_save_prefix"
  8193. if test "X$x" = "X-L$additional_libdir"; then
  8194. haveit=yes
  8195. break
  8196. fi
  8197. done
  8198. if test -z "$haveit"; then
  8199. if test -d "$additional_libdir"; then
  8200. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8201. fi
  8202. fi
  8203. haveit=
  8204. for x in $LDFLAGS $LTLIBICONV; do
  8205. acl_save_prefix="$prefix"
  8206. prefix="$acl_final_prefix"
  8207. acl_save_exec_prefix="$exec_prefix"
  8208. exec_prefix="$acl_final_exec_prefix"
  8209. eval x=\"$x\"
  8210. exec_prefix="$acl_save_exec_prefix"
  8211. prefix="$acl_save_prefix"
  8212. if test "X$x" = "X-L$additional_libdir"; then
  8213. haveit=yes
  8214. break
  8215. fi
  8216. done
  8217. if test -z "$haveit"; then
  8218. if test -d "$additional_libdir"; then
  8219. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8220. fi
  8221. fi
  8222. fi
  8223. fi
  8224. ;;
  8225. -R*)
  8226. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8227. if test "$enable_rpath" != no; then
  8228. haveit=
  8229. for x in $rpathdirs; do
  8230. if test "X$x" = "X$dir"; then
  8231. haveit=yes
  8232. break
  8233. fi
  8234. done
  8235. if test -z "$haveit"; then
  8236. rpathdirs="$rpathdirs $dir"
  8237. fi
  8238. haveit=
  8239. for x in $ltrpathdirs; do
  8240. if test "X$x" = "X$dir"; then
  8241. haveit=yes
  8242. break
  8243. fi
  8244. done
  8245. if test -z "$haveit"; then
  8246. ltrpathdirs="$ltrpathdirs $dir"
  8247. fi
  8248. fi
  8249. ;;
  8250. -l*)
  8251. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8252. ;;
  8253. *.la)
  8254. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8255. ;;
  8256. *)
  8257. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8258. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8259. ;;
  8260. esac
  8261. done
  8262. fi
  8263. else
  8264. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8265. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8266. fi
  8267. fi
  8268. fi
  8269. done
  8270. done
  8271. if test "X$rpathdirs" != "X"; then
  8272. if test -n "$hardcode_libdir_separator"; then
  8273. alldirs=
  8274. for found_dir in $rpathdirs; do
  8275. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8276. done
  8277. acl_save_libdir="$libdir"
  8278. libdir="$alldirs"
  8279. eval flag=\"$hardcode_libdir_flag_spec\"
  8280. libdir="$acl_save_libdir"
  8281. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8282. else
  8283. for found_dir in $rpathdirs; do
  8284. acl_save_libdir="$libdir"
  8285. libdir="$found_dir"
  8286. eval flag=\"$hardcode_libdir_flag_spec\"
  8287. libdir="$acl_save_libdir"
  8288. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8289. done
  8290. fi
  8291. fi
  8292. if test "X$ltrpathdirs" != "X"; then
  8293. for found_dir in $ltrpathdirs; do
  8294. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8295. done
  8296. fi
  8297. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8298. stdlib.h string.h unistd.h sys/param.h
  8299. do
  8300. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8301. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8302. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8303. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8304. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8305. echo $ECHO_N "(cached) $ECHO_C" >&6
  8306. fi
  8307. ac_res=`eval echo '${'$as_ac_Header'}'`
  8308. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8309. echo "${ECHO_T}$ac_res" >&6; }
  8310. else
  8311. # Is the header compilable?
  8312. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8313. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8314. cat >conftest.$ac_ext <<_ACEOF
  8315. /* confdefs.h. */
  8316. _ACEOF
  8317. cat confdefs.h >>conftest.$ac_ext
  8318. cat >>conftest.$ac_ext <<_ACEOF
  8319. /* end confdefs.h. */
  8320. $ac_includes_default
  8321. #include <$ac_header>
  8322. _ACEOF
  8323. rm -f conftest.$ac_objext
  8324. if { (ac_try="$ac_compile"
  8325. case "(($ac_try" in
  8326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8327. *) ac_try_echo=$ac_try;;
  8328. esac
  8329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8330. (eval "$ac_compile") 2>conftest.er1
  8331. ac_status=$?
  8332. grep -v '^ *+' conftest.er1 >conftest.err
  8333. rm -f conftest.er1
  8334. cat conftest.err >&5
  8335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336. (exit $ac_status); } && {
  8337. test -z "$ac_c_werror_flag" ||
  8338. test ! -s conftest.err
  8339. } && test -s conftest.$ac_objext; then
  8340. ac_header_compiler=yes
  8341. else
  8342. echo "$as_me: failed program was:" >&5
  8343. sed 's/^/| /' conftest.$ac_ext >&5
  8344. ac_header_compiler=no
  8345. fi
  8346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8347. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8348. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8349. # Is the header present?
  8350. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8351. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8352. cat >conftest.$ac_ext <<_ACEOF
  8353. /* confdefs.h. */
  8354. _ACEOF
  8355. cat confdefs.h >>conftest.$ac_ext
  8356. cat >>conftest.$ac_ext <<_ACEOF
  8357. /* end confdefs.h. */
  8358. #include <$ac_header>
  8359. _ACEOF
  8360. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8361. case "(($ac_try" in
  8362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8363. *) ac_try_echo=$ac_try;;
  8364. esac
  8365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8366. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8367. ac_status=$?
  8368. grep -v '^ *+' conftest.er1 >conftest.err
  8369. rm -f conftest.er1
  8370. cat conftest.err >&5
  8371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8372. (exit $ac_status); } >/dev/null && {
  8373. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8374. test ! -s conftest.err
  8375. }; then
  8376. ac_header_preproc=yes
  8377. else
  8378. echo "$as_me: failed program was:" >&5
  8379. sed 's/^/| /' conftest.$ac_ext >&5
  8380. ac_header_preproc=no
  8381. fi
  8382. rm -f conftest.err conftest.$ac_ext
  8383. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8384. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8385. # So? What about this header?
  8386. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8387. yes:no: )
  8388. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8389. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8390. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8391. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8392. ac_header_preproc=yes
  8393. ;;
  8394. no:yes:* )
  8395. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8396. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8397. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8398. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8399. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8400. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8401. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8402. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8403. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8404. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8405. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8406. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8407. ( cat <<\_ASBOX
  8408. ## ----------------------------------------------- ##
  8409. ## Report this to t-tujikawa@users.sourceforge.net ##
  8410. ## ----------------------------------------------- ##
  8411. _ASBOX
  8412. ) | sed "s/^/$as_me: WARNING: /" >&2
  8413. ;;
  8414. esac
  8415. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8416. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8417. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8418. echo $ECHO_N "(cached) $ECHO_C" >&6
  8419. else
  8420. eval "$as_ac_Header=\$ac_header_preproc"
  8421. fi
  8422. ac_res=`eval echo '${'$as_ac_Header'}'`
  8423. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8424. echo "${ECHO_T}$ac_res" >&6; }
  8425. fi
  8426. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8427. cat >>confdefs.h <<_ACEOF
  8428. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8429. _ACEOF
  8430. fi
  8431. done
  8432. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8433. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8434. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8435. __fsetlocking
  8436. do
  8437. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8438. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8439. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8440. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8441. echo $ECHO_N "(cached) $ECHO_C" >&6
  8442. else
  8443. cat >conftest.$ac_ext <<_ACEOF
  8444. /* confdefs.h. */
  8445. _ACEOF
  8446. cat confdefs.h >>conftest.$ac_ext
  8447. cat >>conftest.$ac_ext <<_ACEOF
  8448. /* end confdefs.h. */
  8449. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8450. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8451. #define $ac_func innocuous_$ac_func
  8452. /* System header to define __stub macros and hopefully few prototypes,
  8453. which can conflict with char $ac_func (); below.
  8454. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8455. <limits.h> exists even on freestanding compilers. */
  8456. #ifdef __STDC__
  8457. # include <limits.h>
  8458. #else
  8459. # include <assert.h>
  8460. #endif
  8461. #undef $ac_func
  8462. /* Override any GCC internal prototype to avoid an error.
  8463. Use char because int might match the return type of a GCC
  8464. builtin and then its argument prototype would still apply. */
  8465. #ifdef __cplusplus
  8466. extern "C"
  8467. #endif
  8468. char $ac_func ();
  8469. /* The GNU C library defines this for functions which it implements
  8470. to always fail with ENOSYS. Some functions are actually named
  8471. something starting with __ and the normal name is an alias. */
  8472. #if defined __stub_$ac_func || defined __stub___$ac_func
  8473. choke me
  8474. #endif
  8475. int
  8476. main ()
  8477. {
  8478. return $ac_func ();
  8479. ;
  8480. return 0;
  8481. }
  8482. _ACEOF
  8483. rm -f conftest.$ac_objext conftest$ac_exeext
  8484. if { (ac_try="$ac_link"
  8485. case "(($ac_try" in
  8486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8487. *) ac_try_echo=$ac_try;;
  8488. esac
  8489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8490. (eval "$ac_link") 2>conftest.er1
  8491. ac_status=$?
  8492. grep -v '^ *+' conftest.er1 >conftest.err
  8493. rm -f conftest.er1
  8494. cat conftest.err >&5
  8495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8496. (exit $ac_status); } && {
  8497. test -z "$ac_c_werror_flag" ||
  8498. test ! -s conftest.err
  8499. } && test -s conftest$ac_exeext &&
  8500. $as_test_x conftest$ac_exeext; then
  8501. eval "$as_ac_var=yes"
  8502. else
  8503. echo "$as_me: failed program was:" >&5
  8504. sed 's/^/| /' conftest.$ac_ext >&5
  8505. eval "$as_ac_var=no"
  8506. fi
  8507. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8508. conftest$ac_exeext conftest.$ac_ext
  8509. fi
  8510. ac_res=`eval echo '${'$as_ac_var'}'`
  8511. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8512. echo "${ECHO_T}$ac_res" >&6; }
  8513. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8514. cat >>confdefs.h <<_ACEOF
  8515. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8516. _ACEOF
  8517. fi
  8518. done
  8519. am_save_CPPFLAGS="$CPPFLAGS"
  8520. for element in $INCICONV; do
  8521. haveit=
  8522. for x in $CPPFLAGS; do
  8523. acl_save_prefix="$prefix"
  8524. prefix="$acl_final_prefix"
  8525. acl_save_exec_prefix="$exec_prefix"
  8526. exec_prefix="$acl_final_exec_prefix"
  8527. eval x=\"$x\"
  8528. exec_prefix="$acl_save_exec_prefix"
  8529. prefix="$acl_save_prefix"
  8530. if test "X$x" = "X$element"; then
  8531. haveit=yes
  8532. break
  8533. fi
  8534. done
  8535. if test -z "$haveit"; then
  8536. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8537. fi
  8538. done
  8539. { echo "$as_me:$LINENO: checking for iconv" >&5
  8540. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8541. if test "${am_cv_func_iconv+set}" = set; then
  8542. echo $ECHO_N "(cached) $ECHO_C" >&6
  8543. else
  8544. am_cv_func_iconv="no, consider installing GNU libiconv"
  8545. am_cv_lib_iconv=no
  8546. cat >conftest.$ac_ext <<_ACEOF
  8547. /* confdefs.h. */
  8548. _ACEOF
  8549. cat confdefs.h >>conftest.$ac_ext
  8550. cat >>conftest.$ac_ext <<_ACEOF
  8551. /* end confdefs.h. */
  8552. #include <stdlib.h>
  8553. #include <iconv.h>
  8554. int
  8555. main ()
  8556. {
  8557. iconv_t cd = iconv_open("","");
  8558. iconv(cd,NULL,NULL,NULL,NULL);
  8559. iconv_close(cd);
  8560. ;
  8561. return 0;
  8562. }
  8563. _ACEOF
  8564. rm -f conftest.$ac_objext conftest$ac_exeext
  8565. if { (ac_try="$ac_link"
  8566. case "(($ac_try" in
  8567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8568. *) ac_try_echo=$ac_try;;
  8569. esac
  8570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8571. (eval "$ac_link") 2>conftest.er1
  8572. ac_status=$?
  8573. grep -v '^ *+' conftest.er1 >conftest.err
  8574. rm -f conftest.er1
  8575. cat conftest.err >&5
  8576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8577. (exit $ac_status); } && {
  8578. test -z "$ac_c_werror_flag" ||
  8579. test ! -s conftest.err
  8580. } && test -s conftest$ac_exeext &&
  8581. $as_test_x conftest$ac_exeext; then
  8582. am_cv_func_iconv=yes
  8583. else
  8584. echo "$as_me: failed program was:" >&5
  8585. sed 's/^/| /' conftest.$ac_ext >&5
  8586. fi
  8587. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8588. conftest$ac_exeext conftest.$ac_ext
  8589. if test "$am_cv_func_iconv" != yes; then
  8590. am_save_LIBS="$LIBS"
  8591. LIBS="$LIBS $LIBICONV"
  8592. cat >conftest.$ac_ext <<_ACEOF
  8593. /* confdefs.h. */
  8594. _ACEOF
  8595. cat confdefs.h >>conftest.$ac_ext
  8596. cat >>conftest.$ac_ext <<_ACEOF
  8597. /* end confdefs.h. */
  8598. #include <stdlib.h>
  8599. #include <iconv.h>
  8600. int
  8601. main ()
  8602. {
  8603. iconv_t cd = iconv_open("","");
  8604. iconv(cd,NULL,NULL,NULL,NULL);
  8605. iconv_close(cd);
  8606. ;
  8607. return 0;
  8608. }
  8609. _ACEOF
  8610. rm -f conftest.$ac_objext conftest$ac_exeext
  8611. if { (ac_try="$ac_link"
  8612. case "(($ac_try" in
  8613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8614. *) ac_try_echo=$ac_try;;
  8615. esac
  8616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8617. (eval "$ac_link") 2>conftest.er1
  8618. ac_status=$?
  8619. grep -v '^ *+' conftest.er1 >conftest.err
  8620. rm -f conftest.er1
  8621. cat conftest.err >&5
  8622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8623. (exit $ac_status); } && {
  8624. test -z "$ac_c_werror_flag" ||
  8625. test ! -s conftest.err
  8626. } && test -s conftest$ac_exeext &&
  8627. $as_test_x conftest$ac_exeext; then
  8628. am_cv_lib_iconv=yes
  8629. am_cv_func_iconv=yes
  8630. else
  8631. echo "$as_me: failed program was:" >&5
  8632. sed 's/^/| /' conftest.$ac_ext >&5
  8633. fi
  8634. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8635. conftest$ac_exeext conftest.$ac_ext
  8636. LIBS="$am_save_LIBS"
  8637. fi
  8638. fi
  8639. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8640. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8641. if test "$am_cv_func_iconv" = yes; then
  8642. cat >>confdefs.h <<\_ACEOF
  8643. #define HAVE_ICONV 1
  8644. _ACEOF
  8645. fi
  8646. if test "$am_cv_lib_iconv" = yes; then
  8647. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8648. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8649. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8650. echo "${ECHO_T}$LIBICONV" >&6; }
  8651. else
  8652. CPPFLAGS="$am_save_CPPFLAGS"
  8653. LIBICONV=
  8654. LTLIBICONV=
  8655. fi
  8656. if test "$am_cv_func_iconv" = yes; then
  8657. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8658. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8659. if test "${am_cv_proto_iconv+set}" = set; then
  8660. echo $ECHO_N "(cached) $ECHO_C" >&6
  8661. else
  8662. cat >conftest.$ac_ext <<_ACEOF
  8663. /* confdefs.h. */
  8664. _ACEOF
  8665. cat confdefs.h >>conftest.$ac_ext
  8666. cat >>conftest.$ac_ext <<_ACEOF
  8667. /* end confdefs.h. */
  8668. #include <stdlib.h>
  8669. #include <iconv.h>
  8670. extern
  8671. #ifdef __cplusplus
  8672. "C"
  8673. #endif
  8674. #if defined(__STDC__) || defined(__cplusplus)
  8675. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8676. #else
  8677. size_t iconv();
  8678. #endif
  8679. int
  8680. main ()
  8681. {
  8682. ;
  8683. return 0;
  8684. }
  8685. _ACEOF
  8686. rm -f conftest.$ac_objext
  8687. if { (ac_try="$ac_compile"
  8688. case "(($ac_try" in
  8689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8690. *) ac_try_echo=$ac_try;;
  8691. esac
  8692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8693. (eval "$ac_compile") 2>conftest.er1
  8694. ac_status=$?
  8695. grep -v '^ *+' conftest.er1 >conftest.err
  8696. rm -f conftest.er1
  8697. cat conftest.err >&5
  8698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8699. (exit $ac_status); } && {
  8700. test -z "$ac_c_werror_flag" ||
  8701. test ! -s conftest.err
  8702. } && test -s conftest.$ac_objext; then
  8703. am_cv_proto_iconv_arg1=""
  8704. else
  8705. echo "$as_me: failed program was:" >&5
  8706. sed 's/^/| /' conftest.$ac_ext >&5
  8707. am_cv_proto_iconv_arg1="const"
  8708. fi
  8709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8710. 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);"
  8711. fi
  8712. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8713. { echo "$as_me:$LINENO: result: ${ac_t:-
  8714. }$am_cv_proto_iconv" >&5
  8715. echo "${ECHO_T}${ac_t:-
  8716. }$am_cv_proto_iconv" >&6; }
  8717. cat >>confdefs.h <<_ACEOF
  8718. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8719. _ACEOF
  8720. fi
  8721. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8722. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8723. if test "${am_cv_langinfo_codeset+set}" = set; then
  8724. echo $ECHO_N "(cached) $ECHO_C" >&6
  8725. else
  8726. cat >conftest.$ac_ext <<_ACEOF
  8727. /* confdefs.h. */
  8728. _ACEOF
  8729. cat confdefs.h >>conftest.$ac_ext
  8730. cat >>conftest.$ac_ext <<_ACEOF
  8731. /* end confdefs.h. */
  8732. #include <langinfo.h>
  8733. int
  8734. main ()
  8735. {
  8736. char* cs = nl_langinfo(CODESET);
  8737. ;
  8738. return 0;
  8739. }
  8740. _ACEOF
  8741. rm -f conftest.$ac_objext conftest$ac_exeext
  8742. if { (ac_try="$ac_link"
  8743. case "(($ac_try" in
  8744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8745. *) ac_try_echo=$ac_try;;
  8746. esac
  8747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8748. (eval "$ac_link") 2>conftest.er1
  8749. ac_status=$?
  8750. grep -v '^ *+' conftest.er1 >conftest.err
  8751. rm -f conftest.er1
  8752. cat conftest.err >&5
  8753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8754. (exit $ac_status); } && {
  8755. test -z "$ac_c_werror_flag" ||
  8756. test ! -s conftest.err
  8757. } && test -s conftest$ac_exeext &&
  8758. $as_test_x conftest$ac_exeext; then
  8759. am_cv_langinfo_codeset=yes
  8760. else
  8761. echo "$as_me: failed program was:" >&5
  8762. sed 's/^/| /' conftest.$ac_ext >&5
  8763. am_cv_langinfo_codeset=no
  8764. fi
  8765. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8766. conftest$ac_exeext conftest.$ac_ext
  8767. fi
  8768. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8769. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8770. if test $am_cv_langinfo_codeset = yes; then
  8771. cat >>confdefs.h <<\_ACEOF
  8772. #define HAVE_LANGINFO_CODESET 1
  8773. _ACEOF
  8774. fi
  8775. if test $ac_cv_header_locale_h = yes; then
  8776. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8777. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8778. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8779. echo $ECHO_N "(cached) $ECHO_C" >&6
  8780. else
  8781. cat >conftest.$ac_ext <<_ACEOF
  8782. /* confdefs.h. */
  8783. _ACEOF
  8784. cat confdefs.h >>conftest.$ac_ext
  8785. cat >>conftest.$ac_ext <<_ACEOF
  8786. /* end confdefs.h. */
  8787. #include <locale.h>
  8788. int
  8789. main ()
  8790. {
  8791. return LC_MESSAGES
  8792. ;
  8793. return 0;
  8794. }
  8795. _ACEOF
  8796. rm -f conftest.$ac_objext conftest$ac_exeext
  8797. if { (ac_try="$ac_link"
  8798. case "(($ac_try" in
  8799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8800. *) ac_try_echo=$ac_try;;
  8801. esac
  8802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8803. (eval "$ac_link") 2>conftest.er1
  8804. ac_status=$?
  8805. grep -v '^ *+' conftest.er1 >conftest.err
  8806. rm -f conftest.er1
  8807. cat conftest.err >&5
  8808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8809. (exit $ac_status); } && {
  8810. test -z "$ac_c_werror_flag" ||
  8811. test ! -s conftest.err
  8812. } && test -s conftest$ac_exeext &&
  8813. $as_test_x conftest$ac_exeext; then
  8814. am_cv_val_LC_MESSAGES=yes
  8815. else
  8816. echo "$as_me: failed program was:" >&5
  8817. sed 's/^/| /' conftest.$ac_ext >&5
  8818. am_cv_val_LC_MESSAGES=no
  8819. fi
  8820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8821. conftest$ac_exeext conftest.$ac_ext
  8822. fi
  8823. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8824. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  8825. if test $am_cv_val_LC_MESSAGES = yes; then
  8826. cat >>confdefs.h <<\_ACEOF
  8827. #define HAVE_LC_MESSAGES 1
  8828. _ACEOF
  8829. fi
  8830. fi
  8831. for ac_prog in bison
  8832. do
  8833. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8834. set dummy $ac_prog; ac_word=$2
  8835. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8836. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8837. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8838. echo $ECHO_N "(cached) $ECHO_C" >&6
  8839. else
  8840. if test -n "$INTLBISON"; then
  8841. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8842. else
  8843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8844. for as_dir in $PATH
  8845. do
  8846. IFS=$as_save_IFS
  8847. test -z "$as_dir" && as_dir=.
  8848. for ac_exec_ext in '' $ac_executable_extensions; do
  8849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8850. ac_cv_prog_INTLBISON="$ac_prog"
  8851. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8852. break 2
  8853. fi
  8854. done
  8855. done
  8856. IFS=$as_save_IFS
  8857. fi
  8858. fi
  8859. INTLBISON=$ac_cv_prog_INTLBISON
  8860. if test -n "$INTLBISON"; then
  8861. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8862. echo "${ECHO_T}$INTLBISON" >&6; }
  8863. else
  8864. { echo "$as_me:$LINENO: result: no" >&5
  8865. echo "${ECHO_T}no" >&6; }
  8866. fi
  8867. test -n "$INTLBISON" && break
  8868. done
  8869. if test -z "$INTLBISON"; then
  8870. ac_verc_fail=yes
  8871. else
  8872. { echo "$as_me:$LINENO: checking version of bison" >&5
  8873. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  8874. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8875. case $ac_prog_version in
  8876. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8877. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8878. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8879. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8880. esac
  8881. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8882. echo "${ECHO_T}$ac_prog_version" >&6; }
  8883. fi
  8884. if test $ac_verc_fail = yes; then
  8885. INTLBISON=:
  8886. fi
  8887. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8888. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8889. # Check whether --enable-nls was given.
  8890. if test "${enable_nls+set}" = set; then
  8891. enableval=$enable_nls; USE_NLS=$enableval
  8892. else
  8893. USE_NLS=yes
  8894. fi
  8895. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8896. echo "${ECHO_T}$USE_NLS" >&6; }
  8897. BUILD_INCLUDED_LIBINTL=no
  8898. USE_INCLUDED_LIBINTL=no
  8899. LIBINTL=
  8900. LTLIBINTL=
  8901. POSUB=
  8902. if test "$USE_NLS" = "yes"; then
  8903. gt_use_preinstalled_gnugettext=no
  8904. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8905. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  8906. # Check whether --with-included-gettext was given.
  8907. if test "${with_included_gettext+set}" = set; then
  8908. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  8909. else
  8910. nls_cv_force_use_gnu_gettext=no
  8911. fi
  8912. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8913. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  8914. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8915. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8916. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8917. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  8918. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8919. echo $ECHO_N "(cached) $ECHO_C" >&6
  8920. else
  8921. cat >conftest.$ac_ext <<_ACEOF
  8922. /* confdefs.h. */
  8923. _ACEOF
  8924. cat confdefs.h >>conftest.$ac_ext
  8925. cat >>conftest.$ac_ext <<_ACEOF
  8926. /* end confdefs.h. */
  8927. #include <libintl.h>
  8928. extern int _nl_msg_cat_cntr;
  8929. extern int *_nl_domain_bindings;
  8930. int
  8931. main ()
  8932. {
  8933. bindtextdomain ("", "");
  8934. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8935. ;
  8936. return 0;
  8937. }
  8938. _ACEOF
  8939. rm -f conftest.$ac_objext conftest$ac_exeext
  8940. if { (ac_try="$ac_link"
  8941. case "(($ac_try" in
  8942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8943. *) ac_try_echo=$ac_try;;
  8944. esac
  8945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8946. (eval "$ac_link") 2>conftest.er1
  8947. ac_status=$?
  8948. grep -v '^ *+' conftest.er1 >conftest.err
  8949. rm -f conftest.er1
  8950. cat conftest.err >&5
  8951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8952. (exit $ac_status); } && {
  8953. test -z "$ac_c_werror_flag" ||
  8954. test ! -s conftest.err
  8955. } && test -s conftest$ac_exeext &&
  8956. $as_test_x conftest$ac_exeext; then
  8957. gt_cv_func_gnugettext1_libc=yes
  8958. else
  8959. echo "$as_me: failed program was:" >&5
  8960. sed 's/^/| /' conftest.$ac_ext >&5
  8961. gt_cv_func_gnugettext1_libc=no
  8962. fi
  8963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8964. conftest$ac_exeext conftest.$ac_ext
  8965. fi
  8966. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8967. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  8968. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8969. use_additional=yes
  8970. acl_save_prefix="$prefix"
  8971. prefix="$acl_final_prefix"
  8972. acl_save_exec_prefix="$exec_prefix"
  8973. exec_prefix="$acl_final_exec_prefix"
  8974. eval additional_includedir=\"$includedir\"
  8975. eval additional_libdir=\"$libdir\"
  8976. exec_prefix="$acl_save_exec_prefix"
  8977. prefix="$acl_save_prefix"
  8978. # Check whether --with-libintl-prefix was given.
  8979. if test "${with_libintl_prefix+set}" = set; then
  8980. withval=$with_libintl_prefix;
  8981. if test "X$withval" = "Xno"; then
  8982. use_additional=no
  8983. else
  8984. if test "X$withval" = "X"; then
  8985. acl_save_prefix="$prefix"
  8986. prefix="$acl_final_prefix"
  8987. acl_save_exec_prefix="$exec_prefix"
  8988. exec_prefix="$acl_final_exec_prefix"
  8989. eval additional_includedir=\"$includedir\"
  8990. eval additional_libdir=\"$libdir\"
  8991. exec_prefix="$acl_save_exec_prefix"
  8992. prefix="$acl_save_prefix"
  8993. else
  8994. additional_includedir="$withval/include"
  8995. additional_libdir="$withval/lib"
  8996. fi
  8997. fi
  8998. fi
  8999. LIBINTL=
  9000. LTLIBINTL=
  9001. INCINTL=
  9002. rpathdirs=
  9003. ltrpathdirs=
  9004. names_already_handled=
  9005. names_next_round='intl '
  9006. while test -n "$names_next_round"; do
  9007. names_this_round="$names_next_round"
  9008. names_next_round=
  9009. for name in $names_this_round; do
  9010. already_handled=
  9011. for n in $names_already_handled; do
  9012. if test "$n" = "$name"; then
  9013. already_handled=yes
  9014. break
  9015. fi
  9016. done
  9017. if test -z "$already_handled"; then
  9018. names_already_handled="$names_already_handled $name"
  9019. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9020. eval value=\"\$HAVE_LIB$uppername\"
  9021. if test -n "$value"; then
  9022. if test "$value" = yes; then
  9023. eval value=\"\$LIB$uppername\"
  9024. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9025. eval value=\"\$LTLIB$uppername\"
  9026. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9027. else
  9028. :
  9029. fi
  9030. else
  9031. found_dir=
  9032. found_la=
  9033. found_so=
  9034. found_a=
  9035. if test $use_additional = yes; then
  9036. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9037. found_dir="$additional_libdir"
  9038. found_so="$additional_libdir/lib$name.$shlibext"
  9039. if test -f "$additional_libdir/lib$name.la"; then
  9040. found_la="$additional_libdir/lib$name.la"
  9041. fi
  9042. else
  9043. if test -f "$additional_libdir/lib$name.$libext"; then
  9044. found_dir="$additional_libdir"
  9045. found_a="$additional_libdir/lib$name.$libext"
  9046. if test -f "$additional_libdir/lib$name.la"; then
  9047. found_la="$additional_libdir/lib$name.la"
  9048. fi
  9049. fi
  9050. fi
  9051. fi
  9052. if test "X$found_dir" = "X"; then
  9053. for x in $LDFLAGS $LTLIBINTL; do
  9054. acl_save_prefix="$prefix"
  9055. prefix="$acl_final_prefix"
  9056. acl_save_exec_prefix="$exec_prefix"
  9057. exec_prefix="$acl_final_exec_prefix"
  9058. eval x=\"$x\"
  9059. exec_prefix="$acl_save_exec_prefix"
  9060. prefix="$acl_save_prefix"
  9061. case "$x" in
  9062. -L*)
  9063. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9064. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9065. found_dir="$dir"
  9066. found_so="$dir/lib$name.$shlibext"
  9067. if test -f "$dir/lib$name.la"; then
  9068. found_la="$dir/lib$name.la"
  9069. fi
  9070. else
  9071. if test -f "$dir/lib$name.$libext"; then
  9072. found_dir="$dir"
  9073. found_a="$dir/lib$name.$libext"
  9074. if test -f "$dir/lib$name.la"; then
  9075. found_la="$dir/lib$name.la"
  9076. fi
  9077. fi
  9078. fi
  9079. ;;
  9080. esac
  9081. if test "X$found_dir" != "X"; then
  9082. break
  9083. fi
  9084. done
  9085. fi
  9086. if test "X$found_dir" != "X"; then
  9087. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9088. if test "X$found_so" != "X"; then
  9089. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9090. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9091. else
  9092. haveit=
  9093. for x in $ltrpathdirs; do
  9094. if test "X$x" = "X$found_dir"; then
  9095. haveit=yes
  9096. break
  9097. fi
  9098. done
  9099. if test -z "$haveit"; then
  9100. ltrpathdirs="$ltrpathdirs $found_dir"
  9101. fi
  9102. if test "$hardcode_direct" = yes; then
  9103. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9104. else
  9105. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9106. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9107. haveit=
  9108. for x in $rpathdirs; do
  9109. if test "X$x" = "X$found_dir"; then
  9110. haveit=yes
  9111. break
  9112. fi
  9113. done
  9114. if test -z "$haveit"; then
  9115. rpathdirs="$rpathdirs $found_dir"
  9116. fi
  9117. else
  9118. haveit=
  9119. for x in $LDFLAGS $LIBINTL; do
  9120. acl_save_prefix="$prefix"
  9121. prefix="$acl_final_prefix"
  9122. acl_save_exec_prefix="$exec_prefix"
  9123. exec_prefix="$acl_final_exec_prefix"
  9124. eval x=\"$x\"
  9125. exec_prefix="$acl_save_exec_prefix"
  9126. prefix="$acl_save_prefix"
  9127. if test "X$x" = "X-L$found_dir"; then
  9128. haveit=yes
  9129. break
  9130. fi
  9131. done
  9132. if test -z "$haveit"; then
  9133. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9134. fi
  9135. if test "$hardcode_minus_L" != no; then
  9136. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9137. else
  9138. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9139. fi
  9140. fi
  9141. fi
  9142. fi
  9143. else
  9144. if test "X$found_a" != "X"; then
  9145. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9146. else
  9147. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9148. fi
  9149. fi
  9150. additional_includedir=
  9151. case "$found_dir" in
  9152. */lib | */lib/)
  9153. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9154. additional_includedir="$basedir/include"
  9155. ;;
  9156. esac
  9157. if test "X$additional_includedir" != "X"; then
  9158. if test "X$additional_includedir" != "X/usr/include"; then
  9159. haveit=
  9160. if test "X$additional_includedir" = "X/usr/local/include"; then
  9161. if test -n "$GCC"; then
  9162. case $host_os in
  9163. linux*) haveit=yes;;
  9164. esac
  9165. fi
  9166. fi
  9167. if test -z "$haveit"; then
  9168. for x in $CPPFLAGS $INCINTL; do
  9169. acl_save_prefix="$prefix"
  9170. prefix="$acl_final_prefix"
  9171. acl_save_exec_prefix="$exec_prefix"
  9172. exec_prefix="$acl_final_exec_prefix"
  9173. eval x=\"$x\"
  9174. exec_prefix="$acl_save_exec_prefix"
  9175. prefix="$acl_save_prefix"
  9176. if test "X$x" = "X-I$additional_includedir"; then
  9177. haveit=yes
  9178. break
  9179. fi
  9180. done
  9181. if test -z "$haveit"; then
  9182. if test -d "$additional_includedir"; then
  9183. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9184. fi
  9185. fi
  9186. fi
  9187. fi
  9188. fi
  9189. if test -n "$found_la"; then
  9190. save_libdir="$libdir"
  9191. case "$found_la" in
  9192. */* | *\\*) . "$found_la" ;;
  9193. *) . "./$found_la" ;;
  9194. esac
  9195. libdir="$save_libdir"
  9196. for dep in $dependency_libs; do
  9197. case "$dep" in
  9198. -L*)
  9199. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9200. if test "X$additional_libdir" != "X/usr/lib"; then
  9201. haveit=
  9202. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9203. if test -n "$GCC"; then
  9204. case $host_os in
  9205. linux*) haveit=yes;;
  9206. esac
  9207. fi
  9208. fi
  9209. if test -z "$haveit"; then
  9210. haveit=
  9211. for x in $LDFLAGS $LIBINTL; do
  9212. acl_save_prefix="$prefix"
  9213. prefix="$acl_final_prefix"
  9214. acl_save_exec_prefix="$exec_prefix"
  9215. exec_prefix="$acl_final_exec_prefix"
  9216. eval x=\"$x\"
  9217. exec_prefix="$acl_save_exec_prefix"
  9218. prefix="$acl_save_prefix"
  9219. if test "X$x" = "X-L$additional_libdir"; then
  9220. haveit=yes
  9221. break
  9222. fi
  9223. done
  9224. if test -z "$haveit"; then
  9225. if test -d "$additional_libdir"; then
  9226. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9227. fi
  9228. fi
  9229. haveit=
  9230. for x in $LDFLAGS $LTLIBINTL; do
  9231. acl_save_prefix="$prefix"
  9232. prefix="$acl_final_prefix"
  9233. acl_save_exec_prefix="$exec_prefix"
  9234. exec_prefix="$acl_final_exec_prefix"
  9235. eval x=\"$x\"
  9236. exec_prefix="$acl_save_exec_prefix"
  9237. prefix="$acl_save_prefix"
  9238. if test "X$x" = "X-L$additional_libdir"; then
  9239. haveit=yes
  9240. break
  9241. fi
  9242. done
  9243. if test -z "$haveit"; then
  9244. if test -d "$additional_libdir"; then
  9245. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9246. fi
  9247. fi
  9248. fi
  9249. fi
  9250. ;;
  9251. -R*)
  9252. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9253. if test "$enable_rpath" != no; then
  9254. haveit=
  9255. for x in $rpathdirs; do
  9256. if test "X$x" = "X$dir"; then
  9257. haveit=yes
  9258. break
  9259. fi
  9260. done
  9261. if test -z "$haveit"; then
  9262. rpathdirs="$rpathdirs $dir"
  9263. fi
  9264. haveit=
  9265. for x in $ltrpathdirs; do
  9266. if test "X$x" = "X$dir"; then
  9267. haveit=yes
  9268. break
  9269. fi
  9270. done
  9271. if test -z "$haveit"; then
  9272. ltrpathdirs="$ltrpathdirs $dir"
  9273. fi
  9274. fi
  9275. ;;
  9276. -l*)
  9277. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9278. ;;
  9279. *.la)
  9280. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9281. ;;
  9282. *)
  9283. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9284. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9285. ;;
  9286. esac
  9287. done
  9288. fi
  9289. else
  9290. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9291. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9292. fi
  9293. fi
  9294. fi
  9295. done
  9296. done
  9297. if test "X$rpathdirs" != "X"; then
  9298. if test -n "$hardcode_libdir_separator"; then
  9299. alldirs=
  9300. for found_dir in $rpathdirs; do
  9301. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9302. done
  9303. acl_save_libdir="$libdir"
  9304. libdir="$alldirs"
  9305. eval flag=\"$hardcode_libdir_flag_spec\"
  9306. libdir="$acl_save_libdir"
  9307. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9308. else
  9309. for found_dir in $rpathdirs; do
  9310. acl_save_libdir="$libdir"
  9311. libdir="$found_dir"
  9312. eval flag=\"$hardcode_libdir_flag_spec\"
  9313. libdir="$acl_save_libdir"
  9314. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9315. done
  9316. fi
  9317. fi
  9318. if test "X$ltrpathdirs" != "X"; then
  9319. for found_dir in $ltrpathdirs; do
  9320. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9321. done
  9322. fi
  9323. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9324. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9325. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9326. echo $ECHO_N "(cached) $ECHO_C" >&6
  9327. else
  9328. gt_save_CPPFLAGS="$CPPFLAGS"
  9329. CPPFLAGS="$CPPFLAGS $INCINTL"
  9330. gt_save_LIBS="$LIBS"
  9331. LIBS="$LIBS $LIBINTL"
  9332. cat >conftest.$ac_ext <<_ACEOF
  9333. /* confdefs.h. */
  9334. _ACEOF
  9335. cat confdefs.h >>conftest.$ac_ext
  9336. cat >>conftest.$ac_ext <<_ACEOF
  9337. /* end confdefs.h. */
  9338. #include <libintl.h>
  9339. extern int _nl_msg_cat_cntr;
  9340. extern
  9341. #ifdef __cplusplus
  9342. "C"
  9343. #endif
  9344. const char *_nl_expand_alias ();
  9345. int
  9346. main ()
  9347. {
  9348. bindtextdomain ("", "");
  9349. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9350. ;
  9351. return 0;
  9352. }
  9353. _ACEOF
  9354. rm -f conftest.$ac_objext conftest$ac_exeext
  9355. if { (ac_try="$ac_link"
  9356. case "(($ac_try" in
  9357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9358. *) ac_try_echo=$ac_try;;
  9359. esac
  9360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9361. (eval "$ac_link") 2>conftest.er1
  9362. ac_status=$?
  9363. grep -v '^ *+' conftest.er1 >conftest.err
  9364. rm -f conftest.er1
  9365. cat conftest.err >&5
  9366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9367. (exit $ac_status); } && {
  9368. test -z "$ac_c_werror_flag" ||
  9369. test ! -s conftest.err
  9370. } && test -s conftest$ac_exeext &&
  9371. $as_test_x conftest$ac_exeext; then
  9372. gt_cv_func_gnugettext1_libintl=yes
  9373. else
  9374. echo "$as_me: failed program was:" >&5
  9375. sed 's/^/| /' conftest.$ac_ext >&5
  9376. gt_cv_func_gnugettext1_libintl=no
  9377. fi
  9378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9379. conftest$ac_exeext conftest.$ac_ext
  9380. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9381. LIBS="$LIBS $LIBICONV"
  9382. cat >conftest.$ac_ext <<_ACEOF
  9383. /* confdefs.h. */
  9384. _ACEOF
  9385. cat confdefs.h >>conftest.$ac_ext
  9386. cat >>conftest.$ac_ext <<_ACEOF
  9387. /* end confdefs.h. */
  9388. #include <libintl.h>
  9389. extern int _nl_msg_cat_cntr;
  9390. extern
  9391. #ifdef __cplusplus
  9392. "C"
  9393. #endif
  9394. const char *_nl_expand_alias ();
  9395. int
  9396. main ()
  9397. {
  9398. bindtextdomain ("", "");
  9399. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext conftest$ac_exeext
  9405. if { (ac_try="$ac_link"
  9406. case "(($ac_try" in
  9407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9408. *) ac_try_echo=$ac_try;;
  9409. esac
  9410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9411. (eval "$ac_link") 2>conftest.er1
  9412. ac_status=$?
  9413. grep -v '^ *+' conftest.er1 >conftest.err
  9414. rm -f conftest.er1
  9415. cat conftest.err >&5
  9416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9417. (exit $ac_status); } && {
  9418. test -z "$ac_c_werror_flag" ||
  9419. test ! -s conftest.err
  9420. } && test -s conftest$ac_exeext &&
  9421. $as_test_x conftest$ac_exeext; then
  9422. LIBINTL="$LIBINTL $LIBICONV"
  9423. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9424. gt_cv_func_gnugettext1_libintl=yes
  9425. else
  9426. echo "$as_me: failed program was:" >&5
  9427. sed 's/^/| /' conftest.$ac_ext >&5
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. fi
  9432. CPPFLAGS="$gt_save_CPPFLAGS"
  9433. LIBS="$gt_save_LIBS"
  9434. fi
  9435. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9436. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9437. fi
  9438. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9439. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9440. && test "$PACKAGE" != gettext-runtime \
  9441. && test "$PACKAGE" != gettext-tools; }; then
  9442. gt_use_preinstalled_gnugettext=yes
  9443. else
  9444. LIBINTL=
  9445. LTLIBINTL=
  9446. INCINTL=
  9447. fi
  9448. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9449. nls_cv_use_gnu_gettext=yes
  9450. fi
  9451. fi
  9452. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9453. BUILD_INCLUDED_LIBINTL=yes
  9454. USE_INCLUDED_LIBINTL=yes
  9455. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9456. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9457. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9458. fi
  9459. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9460. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9461. CATOBJEXT=.gmo
  9462. fi
  9463. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9464. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9465. cat >>confdefs.h <<\_ACEOF
  9466. #define ENABLE_NLS 1
  9467. _ACEOF
  9468. else
  9469. USE_NLS=no
  9470. fi
  9471. fi
  9472. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9473. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9474. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9475. echo "${ECHO_T}$USE_NLS" >&6; }
  9476. if test "$USE_NLS" = "yes"; then
  9477. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9478. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9479. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9480. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9481. gt_source="external libintl"
  9482. else
  9483. gt_source="libc"
  9484. fi
  9485. else
  9486. gt_source="included intl directory"
  9487. fi
  9488. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9489. echo "${ECHO_T}$gt_source" >&6; }
  9490. fi
  9491. if test "$USE_NLS" = "yes"; then
  9492. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9493. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9494. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9495. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9496. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9497. echo "${ECHO_T}$LIBINTL" >&6; }
  9498. for element in $INCINTL; do
  9499. haveit=
  9500. for x in $CPPFLAGS; do
  9501. acl_save_prefix="$prefix"
  9502. prefix="$acl_final_prefix"
  9503. acl_save_exec_prefix="$exec_prefix"
  9504. exec_prefix="$acl_final_exec_prefix"
  9505. eval x=\"$x\"
  9506. exec_prefix="$acl_save_exec_prefix"
  9507. prefix="$acl_save_prefix"
  9508. if test "X$x" = "X$element"; then
  9509. haveit=yes
  9510. break
  9511. fi
  9512. done
  9513. if test -z "$haveit"; then
  9514. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9515. fi
  9516. done
  9517. fi
  9518. cat >>confdefs.h <<\_ACEOF
  9519. #define HAVE_GETTEXT 1
  9520. _ACEOF
  9521. cat >>confdefs.h <<\_ACEOF
  9522. #define HAVE_DCGETTEXT 1
  9523. _ACEOF
  9524. fi
  9525. POSUB=po
  9526. fi
  9527. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9528. BUILD_INCLUDED_LIBINTL=yes
  9529. fi
  9530. nls_cv_header_intl=
  9531. nls_cv_header_libgt=
  9532. DATADIRNAME=share
  9533. INSTOBJEXT=.mo
  9534. GENCAT=gencat
  9535. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9536. INTLOBJS="\$(GETTOBJS)"
  9537. fi
  9538. INTL_LIBTOOL_SUFFIX_PREFIX=
  9539. INTLLIBS="$LIBINTL"
  9540. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9541. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9542. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9543. echo $ECHO_N "(cached) $ECHO_C" >&6
  9544. else
  9545. cat >conftest.$ac_ext <<_ACEOF
  9546. /* confdefs.h. */
  9547. _ACEOF
  9548. cat confdefs.h >>conftest.$ac_ext
  9549. cat >>conftest.$ac_ext <<_ACEOF
  9550. /* end confdefs.h. */
  9551. #include <error.h>
  9552. int
  9553. main ()
  9554. {
  9555. error_at_line (0, 0, "", 0, "an error occurred");
  9556. ;
  9557. return 0;
  9558. }
  9559. _ACEOF
  9560. rm -f conftest.$ac_objext conftest$ac_exeext
  9561. if { (ac_try="$ac_link"
  9562. case "(($ac_try" in
  9563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9564. *) ac_try_echo=$ac_try;;
  9565. esac
  9566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9567. (eval "$ac_link") 2>conftest.er1
  9568. ac_status=$?
  9569. grep -v '^ *+' conftest.er1 >conftest.err
  9570. rm -f conftest.er1
  9571. cat conftest.err >&5
  9572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9573. (exit $ac_status); } && {
  9574. test -z "$ac_c_werror_flag" ||
  9575. test ! -s conftest.err
  9576. } && test -s conftest$ac_exeext &&
  9577. $as_test_x conftest$ac_exeext; then
  9578. ac_cv_lib_error_at_line=yes
  9579. else
  9580. echo "$as_me: failed program was:" >&5
  9581. sed 's/^/| /' conftest.$ac_ext >&5
  9582. ac_cv_lib_error_at_line=no
  9583. fi
  9584. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9585. conftest$ac_exeext conftest.$ac_ext
  9586. fi
  9587. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9588. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9589. if test $ac_cv_lib_error_at_line = no; then
  9590. case " $LIBOBJS " in
  9591. *" error.$ac_objext "* ) ;;
  9592. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9593. ;;
  9594. esac
  9595. fi
  9596. case "$target" in
  9597. *mingw*)
  9598. ;;
  9599. *)
  9600. for ac_header in stdlib.h
  9601. do
  9602. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9603. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9604. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9605. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9606. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9607. echo $ECHO_N "(cached) $ECHO_C" >&6
  9608. fi
  9609. ac_res=`eval echo '${'$as_ac_Header'}'`
  9610. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9611. echo "${ECHO_T}$ac_res" >&6; }
  9612. else
  9613. # Is the header compilable?
  9614. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9615. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9616. cat >conftest.$ac_ext <<_ACEOF
  9617. /* confdefs.h. */
  9618. _ACEOF
  9619. cat confdefs.h >>conftest.$ac_ext
  9620. cat >>conftest.$ac_ext <<_ACEOF
  9621. /* end confdefs.h. */
  9622. $ac_includes_default
  9623. #include <$ac_header>
  9624. _ACEOF
  9625. rm -f conftest.$ac_objext
  9626. if { (ac_try="$ac_compile"
  9627. case "(($ac_try" in
  9628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9629. *) ac_try_echo=$ac_try;;
  9630. esac
  9631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9632. (eval "$ac_compile") 2>conftest.er1
  9633. ac_status=$?
  9634. grep -v '^ *+' conftest.er1 >conftest.err
  9635. rm -f conftest.er1
  9636. cat conftest.err >&5
  9637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9638. (exit $ac_status); } && {
  9639. test -z "$ac_c_werror_flag" ||
  9640. test ! -s conftest.err
  9641. } && test -s conftest.$ac_objext; then
  9642. ac_header_compiler=yes
  9643. else
  9644. echo "$as_me: failed program was:" >&5
  9645. sed 's/^/| /' conftest.$ac_ext >&5
  9646. ac_header_compiler=no
  9647. fi
  9648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9649. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9650. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9651. # Is the header present?
  9652. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9653. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9654. cat >conftest.$ac_ext <<_ACEOF
  9655. /* confdefs.h. */
  9656. _ACEOF
  9657. cat confdefs.h >>conftest.$ac_ext
  9658. cat >>conftest.$ac_ext <<_ACEOF
  9659. /* end confdefs.h. */
  9660. #include <$ac_header>
  9661. _ACEOF
  9662. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9663. case "(($ac_try" in
  9664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9665. *) ac_try_echo=$ac_try;;
  9666. esac
  9667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9668. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9669. ac_status=$?
  9670. grep -v '^ *+' conftest.er1 >conftest.err
  9671. rm -f conftest.er1
  9672. cat conftest.err >&5
  9673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9674. (exit $ac_status); } >/dev/null && {
  9675. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9676. test ! -s conftest.err
  9677. }; then
  9678. ac_header_preproc=yes
  9679. else
  9680. echo "$as_me: failed program was:" >&5
  9681. sed 's/^/| /' conftest.$ac_ext >&5
  9682. ac_header_preproc=no
  9683. fi
  9684. rm -f conftest.err conftest.$ac_ext
  9685. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9686. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9687. # So? What about this header?
  9688. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9689. yes:no: )
  9690. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9691. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9692. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9693. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9694. ac_header_preproc=yes
  9695. ;;
  9696. no:yes:* )
  9697. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9698. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9699. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9700. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9701. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9702. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9703. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9704. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9705. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9706. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9707. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9708. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9709. ( cat <<\_ASBOX
  9710. ## ----------------------------------------------- ##
  9711. ## Report this to t-tujikawa@users.sourceforge.net ##
  9712. ## ----------------------------------------------- ##
  9713. _ASBOX
  9714. ) | sed "s/^/$as_me: WARNING: /" >&2
  9715. ;;
  9716. esac
  9717. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9718. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9719. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9720. echo $ECHO_N "(cached) $ECHO_C" >&6
  9721. else
  9722. eval "$as_ac_Header=\$ac_header_preproc"
  9723. fi
  9724. ac_res=`eval echo '${'$as_ac_Header'}'`
  9725. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9726. echo "${ECHO_T}$ac_res" >&6; }
  9727. fi
  9728. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9729. cat >>confdefs.h <<_ACEOF
  9730. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9731. _ACEOF
  9732. fi
  9733. done
  9734. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9735. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9736. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9737. echo $ECHO_N "(cached) $ECHO_C" >&6
  9738. else
  9739. if test "$cross_compiling" = yes; then
  9740. ac_cv_func_malloc_0_nonnull=no
  9741. else
  9742. cat >conftest.$ac_ext <<_ACEOF
  9743. /* confdefs.h. */
  9744. _ACEOF
  9745. cat confdefs.h >>conftest.$ac_ext
  9746. cat >>conftest.$ac_ext <<_ACEOF
  9747. /* end confdefs.h. */
  9748. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9749. # include <stdlib.h>
  9750. #else
  9751. char *malloc ();
  9752. #endif
  9753. int
  9754. main ()
  9755. {
  9756. return ! malloc (0);
  9757. ;
  9758. return 0;
  9759. }
  9760. _ACEOF
  9761. rm -f conftest$ac_exeext
  9762. if { (ac_try="$ac_link"
  9763. case "(($ac_try" in
  9764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9765. *) ac_try_echo=$ac_try;;
  9766. esac
  9767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9768. (eval "$ac_link") 2>&5
  9769. ac_status=$?
  9770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9771. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9772. { (case "(($ac_try" in
  9773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9774. *) ac_try_echo=$ac_try;;
  9775. esac
  9776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9777. (eval "$ac_try") 2>&5
  9778. ac_status=$?
  9779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9780. (exit $ac_status); }; }; then
  9781. ac_cv_func_malloc_0_nonnull=yes
  9782. else
  9783. echo "$as_me: program exited with status $ac_status" >&5
  9784. echo "$as_me: failed program was:" >&5
  9785. sed 's/^/| /' conftest.$ac_ext >&5
  9786. ( exit $ac_status )
  9787. ac_cv_func_malloc_0_nonnull=no
  9788. fi
  9789. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9790. fi
  9791. fi
  9792. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9793. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9794. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9795. cat >>confdefs.h <<\_ACEOF
  9796. #define HAVE_MALLOC 1
  9797. _ACEOF
  9798. else
  9799. cat >>confdefs.h <<\_ACEOF
  9800. #define HAVE_MALLOC 0
  9801. _ACEOF
  9802. case " $LIBOBJS " in
  9803. *" malloc.$ac_objext "* ) ;;
  9804. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9805. ;;
  9806. esac
  9807. cat >>confdefs.h <<\_ACEOF
  9808. #define malloc rpl_malloc
  9809. _ACEOF
  9810. fi
  9811. for ac_header in stdlib.h
  9812. do
  9813. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9814. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9815. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9816. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9817. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9818. echo $ECHO_N "(cached) $ECHO_C" >&6
  9819. fi
  9820. ac_res=`eval echo '${'$as_ac_Header'}'`
  9821. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9822. echo "${ECHO_T}$ac_res" >&6; }
  9823. else
  9824. # Is the header compilable?
  9825. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9826. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9827. cat >conftest.$ac_ext <<_ACEOF
  9828. /* confdefs.h. */
  9829. _ACEOF
  9830. cat confdefs.h >>conftest.$ac_ext
  9831. cat >>conftest.$ac_ext <<_ACEOF
  9832. /* end confdefs.h. */
  9833. $ac_includes_default
  9834. #include <$ac_header>
  9835. _ACEOF
  9836. rm -f conftest.$ac_objext
  9837. if { (ac_try="$ac_compile"
  9838. case "(($ac_try" in
  9839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9840. *) ac_try_echo=$ac_try;;
  9841. esac
  9842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9843. (eval "$ac_compile") 2>conftest.er1
  9844. ac_status=$?
  9845. grep -v '^ *+' conftest.er1 >conftest.err
  9846. rm -f conftest.er1
  9847. cat conftest.err >&5
  9848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9849. (exit $ac_status); } && {
  9850. test -z "$ac_c_werror_flag" ||
  9851. test ! -s conftest.err
  9852. } && test -s conftest.$ac_objext; then
  9853. ac_header_compiler=yes
  9854. else
  9855. echo "$as_me: failed program was:" >&5
  9856. sed 's/^/| /' conftest.$ac_ext >&5
  9857. ac_header_compiler=no
  9858. fi
  9859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9860. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9861. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9862. # Is the header present?
  9863. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9864. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9865. cat >conftest.$ac_ext <<_ACEOF
  9866. /* confdefs.h. */
  9867. _ACEOF
  9868. cat confdefs.h >>conftest.$ac_ext
  9869. cat >>conftest.$ac_ext <<_ACEOF
  9870. /* end confdefs.h. */
  9871. #include <$ac_header>
  9872. _ACEOF
  9873. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9874. case "(($ac_try" in
  9875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9876. *) ac_try_echo=$ac_try;;
  9877. esac
  9878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9879. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9880. ac_status=$?
  9881. grep -v '^ *+' conftest.er1 >conftest.err
  9882. rm -f conftest.er1
  9883. cat conftest.err >&5
  9884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9885. (exit $ac_status); } >/dev/null && {
  9886. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9887. test ! -s conftest.err
  9888. }; then
  9889. ac_header_preproc=yes
  9890. else
  9891. echo "$as_me: failed program was:" >&5
  9892. sed 's/^/| /' conftest.$ac_ext >&5
  9893. ac_header_preproc=no
  9894. fi
  9895. rm -f conftest.err conftest.$ac_ext
  9896. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9897. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9898. # So? What about this header?
  9899. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9900. yes:no: )
  9901. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9902. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9903. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9904. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9905. ac_header_preproc=yes
  9906. ;;
  9907. no:yes:* )
  9908. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9909. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9910. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9911. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9912. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9913. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9914. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9915. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9916. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9917. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9918. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9919. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9920. ( cat <<\_ASBOX
  9921. ## ----------------------------------------------- ##
  9922. ## Report this to t-tujikawa@users.sourceforge.net ##
  9923. ## ----------------------------------------------- ##
  9924. _ASBOX
  9925. ) | sed "s/^/$as_me: WARNING: /" >&2
  9926. ;;
  9927. esac
  9928. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9929. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9930. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9931. echo $ECHO_N "(cached) $ECHO_C" >&6
  9932. else
  9933. eval "$as_ac_Header=\$ac_header_preproc"
  9934. fi
  9935. ac_res=`eval echo '${'$as_ac_Header'}'`
  9936. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9937. echo "${ECHO_T}$ac_res" >&6; }
  9938. fi
  9939. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9940. cat >>confdefs.h <<_ACEOF
  9941. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9942. _ACEOF
  9943. fi
  9944. done
  9945. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9946. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  9947. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9948. echo $ECHO_N "(cached) $ECHO_C" >&6
  9949. else
  9950. if test "$cross_compiling" = yes; then
  9951. ac_cv_func_realloc_0_nonnull=no
  9952. else
  9953. cat >conftest.$ac_ext <<_ACEOF
  9954. /* confdefs.h. */
  9955. _ACEOF
  9956. cat confdefs.h >>conftest.$ac_ext
  9957. cat >>conftest.$ac_ext <<_ACEOF
  9958. /* end confdefs.h. */
  9959. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9960. # include <stdlib.h>
  9961. #else
  9962. char *realloc ();
  9963. #endif
  9964. int
  9965. main ()
  9966. {
  9967. return ! realloc (0, 0);
  9968. ;
  9969. return 0;
  9970. }
  9971. _ACEOF
  9972. rm -f conftest$ac_exeext
  9973. if { (ac_try="$ac_link"
  9974. case "(($ac_try" in
  9975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9976. *) ac_try_echo=$ac_try;;
  9977. esac
  9978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9979. (eval "$ac_link") 2>&5
  9980. ac_status=$?
  9981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9982. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9983. { (case "(($ac_try" in
  9984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9985. *) ac_try_echo=$ac_try;;
  9986. esac
  9987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9988. (eval "$ac_try") 2>&5
  9989. ac_status=$?
  9990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9991. (exit $ac_status); }; }; then
  9992. ac_cv_func_realloc_0_nonnull=yes
  9993. else
  9994. echo "$as_me: program exited with status $ac_status" >&5
  9995. echo "$as_me: failed program was:" >&5
  9996. sed 's/^/| /' conftest.$ac_ext >&5
  9997. ( exit $ac_status )
  9998. ac_cv_func_realloc_0_nonnull=no
  9999. fi
  10000. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10001. fi
  10002. fi
  10003. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10004. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10005. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10006. cat >>confdefs.h <<\_ACEOF
  10007. #define HAVE_REALLOC 1
  10008. _ACEOF
  10009. else
  10010. cat >>confdefs.h <<\_ACEOF
  10011. #define HAVE_REALLOC 0
  10012. _ACEOF
  10013. case " $LIBOBJS " in
  10014. *" realloc.$ac_objext "* ) ;;
  10015. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10016. ;;
  10017. esac
  10018. cat >>confdefs.h <<\_ACEOF
  10019. #define realloc rpl_realloc
  10020. _ACEOF
  10021. fi
  10022. ;;
  10023. esac
  10024. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10025. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10026. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10027. echo $ECHO_N "(cached) $ECHO_C" >&6
  10028. else
  10029. if test "$cross_compiling" = yes; then
  10030. ac_cv_func_memcmp_working=no
  10031. else
  10032. cat >conftest.$ac_ext <<_ACEOF
  10033. /* confdefs.h. */
  10034. _ACEOF
  10035. cat confdefs.h >>conftest.$ac_ext
  10036. cat >>conftest.$ac_ext <<_ACEOF
  10037. /* end confdefs.h. */
  10038. $ac_includes_default
  10039. int
  10040. main ()
  10041. {
  10042. /* Some versions of memcmp are not 8-bit clean. */
  10043. char c0 = '\100', c1 = '\200', c2 = '\201';
  10044. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10045. return 1;
  10046. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10047. or more and with at least one buffer not starting on a 4-byte boundary.
  10048. William Lewis provided this test program. */
  10049. {
  10050. char foo[21];
  10051. char bar[21];
  10052. int i;
  10053. for (i = 0; i < 4; i++)
  10054. {
  10055. char *a = foo + i;
  10056. char *b = bar + i;
  10057. strcpy (a, "--------01111111");
  10058. strcpy (b, "--------10000000");
  10059. if (memcmp (a, b, 16) >= 0)
  10060. return 1;
  10061. }
  10062. return 0;
  10063. }
  10064. ;
  10065. return 0;
  10066. }
  10067. _ACEOF
  10068. rm -f conftest$ac_exeext
  10069. if { (ac_try="$ac_link"
  10070. case "(($ac_try" in
  10071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10072. *) ac_try_echo=$ac_try;;
  10073. esac
  10074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10075. (eval "$ac_link") 2>&5
  10076. ac_status=$?
  10077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10078. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10079. { (case "(($ac_try" in
  10080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10081. *) ac_try_echo=$ac_try;;
  10082. esac
  10083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10084. (eval "$ac_try") 2>&5
  10085. ac_status=$?
  10086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10087. (exit $ac_status); }; }; then
  10088. ac_cv_func_memcmp_working=yes
  10089. else
  10090. echo "$as_me: program exited with status $ac_status" >&5
  10091. echo "$as_me: failed program was:" >&5
  10092. sed 's/^/| /' conftest.$ac_ext >&5
  10093. ( exit $ac_status )
  10094. ac_cv_func_memcmp_working=no
  10095. fi
  10096. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10097. fi
  10098. fi
  10099. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10100. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10101. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10102. *" memcmp.$ac_objext "* ) ;;
  10103. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10104. ;;
  10105. esac
  10106. for ac_header in stdlib.h unistd.h
  10107. do
  10108. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10109. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10110. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10111. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10112. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10113. echo $ECHO_N "(cached) $ECHO_C" >&6
  10114. fi
  10115. ac_res=`eval echo '${'$as_ac_Header'}'`
  10116. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10117. echo "${ECHO_T}$ac_res" >&6; }
  10118. else
  10119. # Is the header compilable?
  10120. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10121. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10122. cat >conftest.$ac_ext <<_ACEOF
  10123. /* confdefs.h. */
  10124. _ACEOF
  10125. cat confdefs.h >>conftest.$ac_ext
  10126. cat >>conftest.$ac_ext <<_ACEOF
  10127. /* end confdefs.h. */
  10128. $ac_includes_default
  10129. #include <$ac_header>
  10130. _ACEOF
  10131. rm -f conftest.$ac_objext
  10132. if { (ac_try="$ac_compile"
  10133. case "(($ac_try" in
  10134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10135. *) ac_try_echo=$ac_try;;
  10136. esac
  10137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10138. (eval "$ac_compile") 2>conftest.er1
  10139. ac_status=$?
  10140. grep -v '^ *+' conftest.er1 >conftest.err
  10141. rm -f conftest.er1
  10142. cat conftest.err >&5
  10143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10144. (exit $ac_status); } && {
  10145. test -z "$ac_c_werror_flag" ||
  10146. test ! -s conftest.err
  10147. } && test -s conftest.$ac_objext; then
  10148. ac_header_compiler=yes
  10149. else
  10150. echo "$as_me: failed program was:" >&5
  10151. sed 's/^/| /' conftest.$ac_ext >&5
  10152. ac_header_compiler=no
  10153. fi
  10154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10155. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10156. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10157. # Is the header present?
  10158. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10159. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10160. cat >conftest.$ac_ext <<_ACEOF
  10161. /* confdefs.h. */
  10162. _ACEOF
  10163. cat confdefs.h >>conftest.$ac_ext
  10164. cat >>conftest.$ac_ext <<_ACEOF
  10165. /* end confdefs.h. */
  10166. #include <$ac_header>
  10167. _ACEOF
  10168. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10169. case "(($ac_try" in
  10170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10171. *) ac_try_echo=$ac_try;;
  10172. esac
  10173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10174. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10175. ac_status=$?
  10176. grep -v '^ *+' conftest.er1 >conftest.err
  10177. rm -f conftest.er1
  10178. cat conftest.err >&5
  10179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10180. (exit $ac_status); } >/dev/null && {
  10181. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10182. test ! -s conftest.err
  10183. }; then
  10184. ac_header_preproc=yes
  10185. else
  10186. echo "$as_me: failed program was:" >&5
  10187. sed 's/^/| /' conftest.$ac_ext >&5
  10188. ac_header_preproc=no
  10189. fi
  10190. rm -f conftest.err conftest.$ac_ext
  10191. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10192. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10193. # So? What about this header?
  10194. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10195. yes:no: )
  10196. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10197. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10198. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10199. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10200. ac_header_preproc=yes
  10201. ;;
  10202. no:yes:* )
  10203. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10204. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10205. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10206. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10207. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10208. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10209. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10210. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10211. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10212. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10213. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10214. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10215. ( cat <<\_ASBOX
  10216. ## ----------------------------------------------- ##
  10217. ## Report this to t-tujikawa@users.sourceforge.net ##
  10218. ## ----------------------------------------------- ##
  10219. _ASBOX
  10220. ) | sed "s/^/$as_me: WARNING: /" >&2
  10221. ;;
  10222. esac
  10223. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10224. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10225. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10226. echo $ECHO_N "(cached) $ECHO_C" >&6
  10227. else
  10228. eval "$as_ac_Header=\$ac_header_preproc"
  10229. fi
  10230. ac_res=`eval echo '${'$as_ac_Header'}'`
  10231. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10232. echo "${ECHO_T}$ac_res" >&6; }
  10233. fi
  10234. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10235. cat >>confdefs.h <<_ACEOF
  10236. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10237. _ACEOF
  10238. fi
  10239. done
  10240. for ac_func in getpagesize
  10241. do
  10242. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10243. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10244. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10245. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10246. echo $ECHO_N "(cached) $ECHO_C" >&6
  10247. else
  10248. cat >conftest.$ac_ext <<_ACEOF
  10249. /* confdefs.h. */
  10250. _ACEOF
  10251. cat confdefs.h >>conftest.$ac_ext
  10252. cat >>conftest.$ac_ext <<_ACEOF
  10253. /* end confdefs.h. */
  10254. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10255. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10256. #define $ac_func innocuous_$ac_func
  10257. /* System header to define __stub macros and hopefully few prototypes,
  10258. which can conflict with char $ac_func (); below.
  10259. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10260. <limits.h> exists even on freestanding compilers. */
  10261. #ifdef __STDC__
  10262. # include <limits.h>
  10263. #else
  10264. # include <assert.h>
  10265. #endif
  10266. #undef $ac_func
  10267. /* Override any GCC internal prototype to avoid an error.
  10268. Use char because int might match the return type of a GCC
  10269. builtin and then its argument prototype would still apply. */
  10270. #ifdef __cplusplus
  10271. extern "C"
  10272. #endif
  10273. char $ac_func ();
  10274. /* The GNU C library defines this for functions which it implements
  10275. to always fail with ENOSYS. Some functions are actually named
  10276. something starting with __ and the normal name is an alias. */
  10277. #if defined __stub_$ac_func || defined __stub___$ac_func
  10278. choke me
  10279. #endif
  10280. int
  10281. main ()
  10282. {
  10283. return $ac_func ();
  10284. ;
  10285. return 0;
  10286. }
  10287. _ACEOF
  10288. rm -f conftest.$ac_objext conftest$ac_exeext
  10289. if { (ac_try="$ac_link"
  10290. case "(($ac_try" in
  10291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10292. *) ac_try_echo=$ac_try;;
  10293. esac
  10294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10295. (eval "$ac_link") 2>conftest.er1
  10296. ac_status=$?
  10297. grep -v '^ *+' conftest.er1 >conftest.err
  10298. rm -f conftest.er1
  10299. cat conftest.err >&5
  10300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10301. (exit $ac_status); } && {
  10302. test -z "$ac_c_werror_flag" ||
  10303. test ! -s conftest.err
  10304. } && test -s conftest$ac_exeext &&
  10305. $as_test_x conftest$ac_exeext; then
  10306. eval "$as_ac_var=yes"
  10307. else
  10308. echo "$as_me: failed program was:" >&5
  10309. sed 's/^/| /' conftest.$ac_ext >&5
  10310. eval "$as_ac_var=no"
  10311. fi
  10312. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10313. conftest$ac_exeext conftest.$ac_ext
  10314. fi
  10315. ac_res=`eval echo '${'$as_ac_var'}'`
  10316. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10317. echo "${ECHO_T}$ac_res" >&6; }
  10318. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10319. cat >>confdefs.h <<_ACEOF
  10320. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10321. _ACEOF
  10322. fi
  10323. done
  10324. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10325. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10326. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10327. echo $ECHO_N "(cached) $ECHO_C" >&6
  10328. else
  10329. if test "$cross_compiling" = yes; then
  10330. ac_cv_func_mmap_fixed_mapped=no
  10331. else
  10332. cat >conftest.$ac_ext <<_ACEOF
  10333. /* confdefs.h. */
  10334. _ACEOF
  10335. cat confdefs.h >>conftest.$ac_ext
  10336. cat >>conftest.$ac_ext <<_ACEOF
  10337. /* end confdefs.h. */
  10338. $ac_includes_default
  10339. /* malloc might have been renamed as rpl_malloc. */
  10340. #undef malloc
  10341. /* Thanks to Mike Haertel and Jim Avera for this test.
  10342. Here is a matrix of mmap possibilities:
  10343. mmap private not fixed
  10344. mmap private fixed at somewhere currently unmapped
  10345. mmap private fixed at somewhere already mapped
  10346. mmap shared not fixed
  10347. mmap shared fixed at somewhere currently unmapped
  10348. mmap shared fixed at somewhere already mapped
  10349. For private mappings, we should verify that changes cannot be read()
  10350. back from the file, nor mmap's back from the file at a different
  10351. address. (There have been systems where private was not correctly
  10352. implemented like the infamous i386 svr4.0, and systems where the
  10353. VM page cache was not coherent with the file system buffer cache
  10354. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10355. For shared mappings, we should conversely verify that changes get
  10356. propagated back to all the places they're supposed to be.
  10357. Grep wants private fixed already mapped.
  10358. The main things grep needs to know about mmap are:
  10359. * does it exist and is it safe to write into the mmap'd area
  10360. * how to use it (BSD variants) */
  10361. #include <fcntl.h>
  10362. #include <sys/mman.h>
  10363. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10364. char *malloc ();
  10365. #endif
  10366. /* This mess was copied from the GNU getpagesize.h. */
  10367. #ifndef HAVE_GETPAGESIZE
  10368. /* Assume that all systems that can run configure have sys/param.h. */
  10369. # ifndef HAVE_SYS_PARAM_H
  10370. # define HAVE_SYS_PARAM_H 1
  10371. # endif
  10372. # ifdef _SC_PAGESIZE
  10373. # define getpagesize() sysconf(_SC_PAGESIZE)
  10374. # else /* no _SC_PAGESIZE */
  10375. # ifdef HAVE_SYS_PARAM_H
  10376. # include <sys/param.h>
  10377. # ifdef EXEC_PAGESIZE
  10378. # define getpagesize() EXEC_PAGESIZE
  10379. # else /* no EXEC_PAGESIZE */
  10380. # ifdef NBPG
  10381. # define getpagesize() NBPG * CLSIZE
  10382. # ifndef CLSIZE
  10383. # define CLSIZE 1
  10384. # endif /* no CLSIZE */
  10385. # else /* no NBPG */
  10386. # ifdef NBPC
  10387. # define getpagesize() NBPC
  10388. # else /* no NBPC */
  10389. # ifdef PAGESIZE
  10390. # define getpagesize() PAGESIZE
  10391. # endif /* PAGESIZE */
  10392. # endif /* no NBPC */
  10393. # endif /* no NBPG */
  10394. # endif /* no EXEC_PAGESIZE */
  10395. # else /* no HAVE_SYS_PARAM_H */
  10396. # define getpagesize() 8192 /* punt totally */
  10397. # endif /* no HAVE_SYS_PARAM_H */
  10398. # endif /* no _SC_PAGESIZE */
  10399. #endif /* no HAVE_GETPAGESIZE */
  10400. int
  10401. main ()
  10402. {
  10403. char *data, *data2, *data3;
  10404. int i, pagesize;
  10405. int fd;
  10406. pagesize = getpagesize ();
  10407. /* First, make a file with some known garbage in it. */
  10408. data = (char *) malloc (pagesize);
  10409. if (!data)
  10410. return 1;
  10411. for (i = 0; i < pagesize; ++i)
  10412. *(data + i) = rand ();
  10413. umask (0);
  10414. fd = creat ("conftest.mmap", 0600);
  10415. if (fd < 0)
  10416. return 1;
  10417. if (write (fd, data, pagesize) != pagesize)
  10418. return 1;
  10419. close (fd);
  10420. /* Next, try to mmap the file at a fixed address which already has
  10421. something else allocated at it. If we can, also make sure that
  10422. we see the same garbage. */
  10423. fd = open ("conftest.mmap", O_RDWR);
  10424. if (fd < 0)
  10425. return 1;
  10426. data2 = (char *) malloc (2 * pagesize);
  10427. if (!data2)
  10428. return 1;
  10429. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10430. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10431. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10432. return 1;
  10433. for (i = 0; i < pagesize; ++i)
  10434. if (*(data + i) != *(data2 + i))
  10435. return 1;
  10436. /* Finally, make sure that changes to the mapped area do not
  10437. percolate back to the file as seen by read(). (This is a bug on
  10438. some variants of i386 svr4.0.) */
  10439. for (i = 0; i < pagesize; ++i)
  10440. *(data2 + i) = *(data2 + i) + 1;
  10441. data3 = (char *) malloc (pagesize);
  10442. if (!data3)
  10443. return 1;
  10444. if (read (fd, data3, pagesize) != pagesize)
  10445. return 1;
  10446. for (i = 0; i < pagesize; ++i)
  10447. if (*(data + i) != *(data3 + i))
  10448. return 1;
  10449. close (fd);
  10450. return 0;
  10451. }
  10452. _ACEOF
  10453. rm -f conftest$ac_exeext
  10454. if { (ac_try="$ac_link"
  10455. case "(($ac_try" in
  10456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10457. *) ac_try_echo=$ac_try;;
  10458. esac
  10459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10460. (eval "$ac_link") 2>&5
  10461. ac_status=$?
  10462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10463. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10464. { (case "(($ac_try" in
  10465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10466. *) ac_try_echo=$ac_try;;
  10467. esac
  10468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10469. (eval "$ac_try") 2>&5
  10470. ac_status=$?
  10471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10472. (exit $ac_status); }; }; then
  10473. ac_cv_func_mmap_fixed_mapped=yes
  10474. else
  10475. echo "$as_me: program exited with status $ac_status" >&5
  10476. echo "$as_me: failed program was:" >&5
  10477. sed 's/^/| /' conftest.$ac_ext >&5
  10478. ( exit $ac_status )
  10479. ac_cv_func_mmap_fixed_mapped=no
  10480. fi
  10481. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10482. fi
  10483. fi
  10484. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10485. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10486. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10487. cat >>confdefs.h <<\_ACEOF
  10488. #define HAVE_MMAP 1
  10489. _ACEOF
  10490. fi
  10491. rm -f conftest.mmap
  10492. for ac_header in sys/select.h sys/socket.h
  10493. do
  10494. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10495. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10496. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10497. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10498. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10499. echo $ECHO_N "(cached) $ECHO_C" >&6
  10500. fi
  10501. ac_res=`eval echo '${'$as_ac_Header'}'`
  10502. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10503. echo "${ECHO_T}$ac_res" >&6; }
  10504. else
  10505. # Is the header compilable?
  10506. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10507. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10508. cat >conftest.$ac_ext <<_ACEOF
  10509. /* confdefs.h. */
  10510. _ACEOF
  10511. cat confdefs.h >>conftest.$ac_ext
  10512. cat >>conftest.$ac_ext <<_ACEOF
  10513. /* end confdefs.h. */
  10514. $ac_includes_default
  10515. #include <$ac_header>
  10516. _ACEOF
  10517. rm -f conftest.$ac_objext
  10518. if { (ac_try="$ac_compile"
  10519. case "(($ac_try" in
  10520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10521. *) ac_try_echo=$ac_try;;
  10522. esac
  10523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10524. (eval "$ac_compile") 2>conftest.er1
  10525. ac_status=$?
  10526. grep -v '^ *+' conftest.er1 >conftest.err
  10527. rm -f conftest.er1
  10528. cat conftest.err >&5
  10529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10530. (exit $ac_status); } && {
  10531. test -z "$ac_c_werror_flag" ||
  10532. test ! -s conftest.err
  10533. } && test -s conftest.$ac_objext; then
  10534. ac_header_compiler=yes
  10535. else
  10536. echo "$as_me: failed program was:" >&5
  10537. sed 's/^/| /' conftest.$ac_ext >&5
  10538. ac_header_compiler=no
  10539. fi
  10540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10541. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10542. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10543. # Is the header present?
  10544. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10545. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10546. cat >conftest.$ac_ext <<_ACEOF
  10547. /* confdefs.h. */
  10548. _ACEOF
  10549. cat confdefs.h >>conftest.$ac_ext
  10550. cat >>conftest.$ac_ext <<_ACEOF
  10551. /* end confdefs.h. */
  10552. #include <$ac_header>
  10553. _ACEOF
  10554. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10555. case "(($ac_try" in
  10556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10557. *) ac_try_echo=$ac_try;;
  10558. esac
  10559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10560. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10561. ac_status=$?
  10562. grep -v '^ *+' conftest.er1 >conftest.err
  10563. rm -f conftest.er1
  10564. cat conftest.err >&5
  10565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10566. (exit $ac_status); } >/dev/null && {
  10567. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10568. test ! -s conftest.err
  10569. }; then
  10570. ac_header_preproc=yes
  10571. else
  10572. echo "$as_me: failed program was:" >&5
  10573. sed 's/^/| /' conftest.$ac_ext >&5
  10574. ac_header_preproc=no
  10575. fi
  10576. rm -f conftest.err conftest.$ac_ext
  10577. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10578. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10579. # So? What about this header?
  10580. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10581. yes:no: )
  10582. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10583. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10584. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10585. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10586. ac_header_preproc=yes
  10587. ;;
  10588. no:yes:* )
  10589. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10590. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10591. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10592. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10593. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10594. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10595. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10596. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10597. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10598. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10599. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10600. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10601. ( cat <<\_ASBOX
  10602. ## ----------------------------------------------- ##
  10603. ## Report this to t-tujikawa@users.sourceforge.net ##
  10604. ## ----------------------------------------------- ##
  10605. _ASBOX
  10606. ) | sed "s/^/$as_me: WARNING: /" >&2
  10607. ;;
  10608. esac
  10609. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10610. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10611. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10612. echo $ECHO_N "(cached) $ECHO_C" >&6
  10613. else
  10614. eval "$as_ac_Header=\$ac_header_preproc"
  10615. fi
  10616. ac_res=`eval echo '${'$as_ac_Header'}'`
  10617. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10618. echo "${ECHO_T}$ac_res" >&6; }
  10619. fi
  10620. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10621. cat >>confdefs.h <<_ACEOF
  10622. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10623. _ACEOF
  10624. fi
  10625. done
  10626. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10627. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10628. if test "${ac_cv_func_select_args+set}" = set; then
  10629. echo $ECHO_N "(cached) $ECHO_C" >&6
  10630. else
  10631. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10632. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10633. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10634. cat >conftest.$ac_ext <<_ACEOF
  10635. /* confdefs.h. */
  10636. _ACEOF
  10637. cat confdefs.h >>conftest.$ac_ext
  10638. cat >>conftest.$ac_ext <<_ACEOF
  10639. /* end confdefs.h. */
  10640. $ac_includes_default
  10641. #ifdef HAVE_SYS_SELECT_H
  10642. # include <sys/select.h>
  10643. #endif
  10644. #ifdef HAVE_SYS_SOCKET_H
  10645. # include <sys/socket.h>
  10646. #endif
  10647. int
  10648. main ()
  10649. {
  10650. extern int select ($ac_arg1,
  10651. $ac_arg234, $ac_arg234, $ac_arg234,
  10652. $ac_arg5);
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. rm -f conftest.$ac_objext
  10658. if { (ac_try="$ac_compile"
  10659. case "(($ac_try" in
  10660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10661. *) ac_try_echo=$ac_try;;
  10662. esac
  10663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10664. (eval "$ac_compile") 2>conftest.er1
  10665. ac_status=$?
  10666. grep -v '^ *+' conftest.er1 >conftest.err
  10667. rm -f conftest.er1
  10668. cat conftest.err >&5
  10669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10670. (exit $ac_status); } && {
  10671. test -z "$ac_c_werror_flag" ||
  10672. test ! -s conftest.err
  10673. } && test -s conftest.$ac_objext; then
  10674. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10675. else
  10676. echo "$as_me: failed program was:" >&5
  10677. sed 's/^/| /' conftest.$ac_ext >&5
  10678. fi
  10679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10680. done
  10681. done
  10682. done
  10683. # Provide a safe default value.
  10684. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10685. fi
  10686. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10687. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10688. ac_save_IFS=$IFS; IFS=','
  10689. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10690. IFS=$ac_save_IFS
  10691. shift
  10692. cat >>confdefs.h <<_ACEOF
  10693. #define SELECT_TYPE_ARG1 $1
  10694. _ACEOF
  10695. cat >>confdefs.h <<_ACEOF
  10696. #define SELECT_TYPE_ARG234 ($2)
  10697. _ACEOF
  10698. cat >>confdefs.h <<_ACEOF
  10699. #define SELECT_TYPE_ARG5 ($3)
  10700. _ACEOF
  10701. rm -f conftest*
  10702. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10703. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10704. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10705. echo $ECHO_N "(cached) $ECHO_C" >&6
  10706. else
  10707. rm -f conftest.sym conftest.file
  10708. echo >conftest.file
  10709. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10710. if test "$cross_compiling" = yes; then
  10711. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10712. else
  10713. cat >conftest.$ac_ext <<_ACEOF
  10714. /* confdefs.h. */
  10715. _ACEOF
  10716. cat confdefs.h >>conftest.$ac_ext
  10717. cat >>conftest.$ac_ext <<_ACEOF
  10718. /* end confdefs.h. */
  10719. $ac_includes_default
  10720. int
  10721. main ()
  10722. {
  10723. struct stat sbuf;
  10724. /* Linux will dereference the symlink and fail.
  10725. That is better in the sense that it means we will not
  10726. have to compile and use the lstat wrapper. */
  10727. return lstat ("conftest.sym/", &sbuf) == 0;
  10728. ;
  10729. return 0;
  10730. }
  10731. _ACEOF
  10732. rm -f conftest$ac_exeext
  10733. if { (ac_try="$ac_link"
  10734. case "(($ac_try" in
  10735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10736. *) ac_try_echo=$ac_try;;
  10737. esac
  10738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10739. (eval "$ac_link") 2>&5
  10740. ac_status=$?
  10741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10742. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10743. { (case "(($ac_try" in
  10744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10745. *) ac_try_echo=$ac_try;;
  10746. esac
  10747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10748. (eval "$ac_try") 2>&5
  10749. ac_status=$?
  10750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10751. (exit $ac_status); }; }; then
  10752. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10753. else
  10754. echo "$as_me: program exited with status $ac_status" >&5
  10755. echo "$as_me: failed program was:" >&5
  10756. sed 's/^/| /' conftest.$ac_ext >&5
  10757. ( exit $ac_status )
  10758. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10759. fi
  10760. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10761. fi
  10762. else
  10763. # If the `ln -s' command failed, then we probably don't even
  10764. # have an lstat function.
  10765. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10766. fi
  10767. rm -f conftest.sym conftest.file
  10768. fi
  10769. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10770. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10771. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10772. cat >>confdefs.h <<_ACEOF
  10773. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10774. _ACEOF
  10775. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10776. case " $LIBOBJS " in
  10777. *" lstat.$ac_objext "* ) ;;
  10778. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10779. ;;
  10780. esac
  10781. fi
  10782. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10783. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10784. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10785. echo $ECHO_N "(cached) $ECHO_C" >&6
  10786. else
  10787. if test "$cross_compiling" = yes; then
  10788. ac_cv_func_stat_empty_string_bug=yes
  10789. else
  10790. cat >conftest.$ac_ext <<_ACEOF
  10791. /* confdefs.h. */
  10792. _ACEOF
  10793. cat confdefs.h >>conftest.$ac_ext
  10794. cat >>conftest.$ac_ext <<_ACEOF
  10795. /* end confdefs.h. */
  10796. $ac_includes_default
  10797. int
  10798. main ()
  10799. {
  10800. struct stat sbuf;
  10801. return stat ("", &sbuf) == 0;
  10802. ;
  10803. return 0;
  10804. }
  10805. _ACEOF
  10806. rm -f conftest$ac_exeext
  10807. if { (ac_try="$ac_link"
  10808. case "(($ac_try" in
  10809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10810. *) ac_try_echo=$ac_try;;
  10811. esac
  10812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10813. (eval "$ac_link") 2>&5
  10814. ac_status=$?
  10815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10816. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10817. { (case "(($ac_try" in
  10818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10819. *) ac_try_echo=$ac_try;;
  10820. esac
  10821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10822. (eval "$ac_try") 2>&5
  10823. ac_status=$?
  10824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10825. (exit $ac_status); }; }; then
  10826. ac_cv_func_stat_empty_string_bug=no
  10827. else
  10828. echo "$as_me: program exited with status $ac_status" >&5
  10829. echo "$as_me: failed program was:" >&5
  10830. sed 's/^/| /' conftest.$ac_ext >&5
  10831. ( exit $ac_status )
  10832. ac_cv_func_stat_empty_string_bug=yes
  10833. fi
  10834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10835. fi
  10836. fi
  10837. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10838. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10839. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10840. case " $LIBOBJS " in
  10841. *" stat.$ac_objext "* ) ;;
  10842. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10843. ;;
  10844. esac
  10845. cat >>confdefs.h <<_ACEOF
  10846. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10847. _ACEOF
  10848. fi
  10849. for ac_func in vprintf
  10850. do
  10851. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10852. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10853. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10854. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10855. echo $ECHO_N "(cached) $ECHO_C" >&6
  10856. else
  10857. cat >conftest.$ac_ext <<_ACEOF
  10858. /* confdefs.h. */
  10859. _ACEOF
  10860. cat confdefs.h >>conftest.$ac_ext
  10861. cat >>conftest.$ac_ext <<_ACEOF
  10862. /* end confdefs.h. */
  10863. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10864. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10865. #define $ac_func innocuous_$ac_func
  10866. /* System header to define __stub macros and hopefully few prototypes,
  10867. which can conflict with char $ac_func (); below.
  10868. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10869. <limits.h> exists even on freestanding compilers. */
  10870. #ifdef __STDC__
  10871. # include <limits.h>
  10872. #else
  10873. # include <assert.h>
  10874. #endif
  10875. #undef $ac_func
  10876. /* Override any GCC internal prototype to avoid an error.
  10877. Use char because int might match the return type of a GCC
  10878. builtin and then its argument prototype would still apply. */
  10879. #ifdef __cplusplus
  10880. extern "C"
  10881. #endif
  10882. char $ac_func ();
  10883. /* The GNU C library defines this for functions which it implements
  10884. to always fail with ENOSYS. Some functions are actually named
  10885. something starting with __ and the normal name is an alias. */
  10886. #if defined __stub_$ac_func || defined __stub___$ac_func
  10887. choke me
  10888. #endif
  10889. int
  10890. main ()
  10891. {
  10892. return $ac_func ();
  10893. ;
  10894. return 0;
  10895. }
  10896. _ACEOF
  10897. rm -f conftest.$ac_objext conftest$ac_exeext
  10898. if { (ac_try="$ac_link"
  10899. case "(($ac_try" in
  10900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10901. *) ac_try_echo=$ac_try;;
  10902. esac
  10903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10904. (eval "$ac_link") 2>conftest.er1
  10905. ac_status=$?
  10906. grep -v '^ *+' conftest.er1 >conftest.err
  10907. rm -f conftest.er1
  10908. cat conftest.err >&5
  10909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10910. (exit $ac_status); } && {
  10911. test -z "$ac_c_werror_flag" ||
  10912. test ! -s conftest.err
  10913. } && test -s conftest$ac_exeext &&
  10914. $as_test_x conftest$ac_exeext; then
  10915. eval "$as_ac_var=yes"
  10916. else
  10917. echo "$as_me: failed program was:" >&5
  10918. sed 's/^/| /' conftest.$ac_ext >&5
  10919. eval "$as_ac_var=no"
  10920. fi
  10921. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10922. conftest$ac_exeext conftest.$ac_ext
  10923. fi
  10924. ac_res=`eval echo '${'$as_ac_var'}'`
  10925. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10926. echo "${ECHO_T}$ac_res" >&6; }
  10927. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10928. cat >>confdefs.h <<_ACEOF
  10929. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10930. _ACEOF
  10931. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  10932. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  10933. if test "${ac_cv_func__doprnt+set}" = set; then
  10934. echo $ECHO_N "(cached) $ECHO_C" >&6
  10935. else
  10936. cat >conftest.$ac_ext <<_ACEOF
  10937. /* confdefs.h. */
  10938. _ACEOF
  10939. cat confdefs.h >>conftest.$ac_ext
  10940. cat >>conftest.$ac_ext <<_ACEOF
  10941. /* end confdefs.h. */
  10942. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10943. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10944. #define _doprnt innocuous__doprnt
  10945. /* System header to define __stub macros and hopefully few prototypes,
  10946. which can conflict with char _doprnt (); below.
  10947. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10948. <limits.h> exists even on freestanding compilers. */
  10949. #ifdef __STDC__
  10950. # include <limits.h>
  10951. #else
  10952. # include <assert.h>
  10953. #endif
  10954. #undef _doprnt
  10955. /* Override any GCC internal prototype to avoid an error.
  10956. Use char because int might match the return type of a GCC
  10957. builtin and then its argument prototype would still apply. */
  10958. #ifdef __cplusplus
  10959. extern "C"
  10960. #endif
  10961. char _doprnt ();
  10962. /* The GNU C library defines this for functions which it implements
  10963. to always fail with ENOSYS. Some functions are actually named
  10964. something starting with __ and the normal name is an alias. */
  10965. #if defined __stub__doprnt || defined __stub____doprnt
  10966. choke me
  10967. #endif
  10968. int
  10969. main ()
  10970. {
  10971. return _doprnt ();
  10972. ;
  10973. return 0;
  10974. }
  10975. _ACEOF
  10976. rm -f conftest.$ac_objext conftest$ac_exeext
  10977. if { (ac_try="$ac_link"
  10978. case "(($ac_try" in
  10979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10980. *) ac_try_echo=$ac_try;;
  10981. esac
  10982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10983. (eval "$ac_link") 2>conftest.er1
  10984. ac_status=$?
  10985. grep -v '^ *+' conftest.er1 >conftest.err
  10986. rm -f conftest.er1
  10987. cat conftest.err >&5
  10988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10989. (exit $ac_status); } && {
  10990. test -z "$ac_c_werror_flag" ||
  10991. test ! -s conftest.err
  10992. } && test -s conftest$ac_exeext &&
  10993. $as_test_x conftest$ac_exeext; then
  10994. ac_cv_func__doprnt=yes
  10995. else
  10996. echo "$as_me: failed program was:" >&5
  10997. sed 's/^/| /' conftest.$ac_ext >&5
  10998. ac_cv_func__doprnt=no
  10999. fi
  11000. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11001. conftest$ac_exeext conftest.$ac_ext
  11002. fi
  11003. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11004. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11005. if test $ac_cv_func__doprnt = yes; then
  11006. cat >>confdefs.h <<\_ACEOF
  11007. #define HAVE_DOPRNT 1
  11008. _ACEOF
  11009. fi
  11010. fi
  11011. done
  11012. 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 setmode sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul timegm usleep
  11013. do
  11014. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11015. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11016. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11017. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11018. echo $ECHO_N "(cached) $ECHO_C" >&6
  11019. else
  11020. cat >conftest.$ac_ext <<_ACEOF
  11021. /* confdefs.h. */
  11022. _ACEOF
  11023. cat confdefs.h >>conftest.$ac_ext
  11024. cat >>conftest.$ac_ext <<_ACEOF
  11025. /* end confdefs.h. */
  11026. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11027. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11028. #define $ac_func innocuous_$ac_func
  11029. /* System header to define __stub macros and hopefully few prototypes,
  11030. which can conflict with char $ac_func (); below.
  11031. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11032. <limits.h> exists even on freestanding compilers. */
  11033. #ifdef __STDC__
  11034. # include <limits.h>
  11035. #else
  11036. # include <assert.h>
  11037. #endif
  11038. #undef $ac_func
  11039. /* Override any GCC internal prototype to avoid an error.
  11040. Use char because int might match the return type of a GCC
  11041. builtin and then its argument prototype would still apply. */
  11042. #ifdef __cplusplus
  11043. extern "C"
  11044. #endif
  11045. char $ac_func ();
  11046. /* The GNU C library defines this for functions which it implements
  11047. to always fail with ENOSYS. Some functions are actually named
  11048. something starting with __ and the normal name is an alias. */
  11049. #if defined __stub_$ac_func || defined __stub___$ac_func
  11050. choke me
  11051. #endif
  11052. int
  11053. main ()
  11054. {
  11055. return $ac_func ();
  11056. ;
  11057. return 0;
  11058. }
  11059. _ACEOF
  11060. rm -f conftest.$ac_objext conftest$ac_exeext
  11061. if { (ac_try="$ac_link"
  11062. case "(($ac_try" in
  11063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11064. *) ac_try_echo=$ac_try;;
  11065. esac
  11066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11067. (eval "$ac_link") 2>conftest.er1
  11068. ac_status=$?
  11069. grep -v '^ *+' conftest.er1 >conftest.err
  11070. rm -f conftest.er1
  11071. cat conftest.err >&5
  11072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11073. (exit $ac_status); } && {
  11074. test -z "$ac_c_werror_flag" ||
  11075. test ! -s conftest.err
  11076. } && test -s conftest$ac_exeext &&
  11077. $as_test_x conftest$ac_exeext; then
  11078. eval "$as_ac_var=yes"
  11079. else
  11080. echo "$as_me: failed program was:" >&5
  11081. sed 's/^/| /' conftest.$ac_ext >&5
  11082. eval "$as_ac_var=no"
  11083. fi
  11084. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11085. conftest$ac_exeext conftest.$ac_ext
  11086. fi
  11087. ac_res=`eval echo '${'$as_ac_var'}'`
  11088. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11089. echo "${ECHO_T}$ac_res" >&6; }
  11090. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11091. cat >>confdefs.h <<_ACEOF
  11092. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11093. _ACEOF
  11094. fi
  11095. done
  11096. for ac_func in basename
  11097. do
  11098. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11099. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11100. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11101. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11102. echo $ECHO_N "(cached) $ECHO_C" >&6
  11103. else
  11104. cat >conftest.$ac_ext <<_ACEOF
  11105. /* confdefs.h. */
  11106. _ACEOF
  11107. cat confdefs.h >>conftest.$ac_ext
  11108. cat >>conftest.$ac_ext <<_ACEOF
  11109. /* end confdefs.h. */
  11110. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11111. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11112. #define $ac_func innocuous_$ac_func
  11113. /* System header to define __stub macros and hopefully few prototypes,
  11114. which can conflict with char $ac_func (); below.
  11115. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11116. <limits.h> exists even on freestanding compilers. */
  11117. #ifdef __STDC__
  11118. # include <limits.h>
  11119. #else
  11120. # include <assert.h>
  11121. #endif
  11122. #undef $ac_func
  11123. /* Override any GCC internal prototype to avoid an error.
  11124. Use char because int might match the return type of a GCC
  11125. builtin and then its argument prototype would still apply. */
  11126. #ifdef __cplusplus
  11127. extern "C"
  11128. #endif
  11129. char $ac_func ();
  11130. /* The GNU C library defines this for functions which it implements
  11131. to always fail with ENOSYS. Some functions are actually named
  11132. something starting with __ and the normal name is an alias. */
  11133. #if defined __stub_$ac_func || defined __stub___$ac_func
  11134. choke me
  11135. #endif
  11136. int
  11137. main ()
  11138. {
  11139. return $ac_func ();
  11140. ;
  11141. return 0;
  11142. }
  11143. _ACEOF
  11144. rm -f conftest.$ac_objext conftest$ac_exeext
  11145. if { (ac_try="$ac_link"
  11146. case "(($ac_try" in
  11147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11148. *) ac_try_echo=$ac_try;;
  11149. esac
  11150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11151. (eval "$ac_link") 2>conftest.er1
  11152. ac_status=$?
  11153. grep -v '^ *+' conftest.er1 >conftest.err
  11154. rm -f conftest.er1
  11155. cat conftest.err >&5
  11156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11157. (exit $ac_status); } && {
  11158. test -z "$ac_c_werror_flag" ||
  11159. test ! -s conftest.err
  11160. } && test -s conftest$ac_exeext &&
  11161. $as_test_x conftest$ac_exeext; then
  11162. eval "$as_ac_var=yes"
  11163. else
  11164. echo "$as_me: failed program was:" >&5
  11165. sed 's/^/| /' conftest.$ac_ext >&5
  11166. eval "$as_ac_var=no"
  11167. fi
  11168. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11169. conftest$ac_exeext conftest.$ac_ext
  11170. fi
  11171. ac_res=`eval echo '${'$as_ac_var'}'`
  11172. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11173. echo "${ECHO_T}$ac_res" >&6; }
  11174. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11175. cat >>confdefs.h <<_ACEOF
  11176. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11177. _ACEOF
  11178. if true; then
  11179. HAVE_BASENAME_TRUE=
  11180. HAVE_BASENAME_FALSE='#'
  11181. else
  11182. HAVE_BASENAME_TRUE='#'
  11183. HAVE_BASENAME_FALSE=
  11184. fi
  11185. else
  11186. if false; then
  11187. HAVE_BASENAME_TRUE=
  11188. HAVE_BASENAME_FALSE='#'
  11189. else
  11190. HAVE_BASENAME_TRUE='#'
  11191. HAVE_BASENAME_FALSE=
  11192. fi
  11193. fi
  11194. done
  11195. for ac_func in gai_strerror
  11196. do
  11197. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11198. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11199. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11200. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11201. echo $ECHO_N "(cached) $ECHO_C" >&6
  11202. else
  11203. cat >conftest.$ac_ext <<_ACEOF
  11204. /* confdefs.h. */
  11205. _ACEOF
  11206. cat confdefs.h >>conftest.$ac_ext
  11207. cat >>conftest.$ac_ext <<_ACEOF
  11208. /* end confdefs.h. */
  11209. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11210. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11211. #define $ac_func innocuous_$ac_func
  11212. /* System header to define __stub macros and hopefully few prototypes,
  11213. which can conflict with char $ac_func (); below.
  11214. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11215. <limits.h> exists even on freestanding compilers. */
  11216. #ifdef __STDC__
  11217. # include <limits.h>
  11218. #else
  11219. # include <assert.h>
  11220. #endif
  11221. #undef $ac_func
  11222. /* Override any GCC internal prototype to avoid an error.
  11223. Use char because int might match the return type of a GCC
  11224. builtin and then its argument prototype would still apply. */
  11225. #ifdef __cplusplus
  11226. extern "C"
  11227. #endif
  11228. char $ac_func ();
  11229. /* The GNU C library defines this for functions which it implements
  11230. to always fail with ENOSYS. Some functions are actually named
  11231. something starting with __ and the normal name is an alias. */
  11232. #if defined __stub_$ac_func || defined __stub___$ac_func
  11233. choke me
  11234. #endif
  11235. int
  11236. main ()
  11237. {
  11238. return $ac_func ();
  11239. ;
  11240. return 0;
  11241. }
  11242. _ACEOF
  11243. rm -f conftest.$ac_objext conftest$ac_exeext
  11244. if { (ac_try="$ac_link"
  11245. case "(($ac_try" in
  11246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11247. *) ac_try_echo=$ac_try;;
  11248. esac
  11249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11250. (eval "$ac_link") 2>conftest.er1
  11251. ac_status=$?
  11252. grep -v '^ *+' conftest.er1 >conftest.err
  11253. rm -f conftest.er1
  11254. cat conftest.err >&5
  11255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11256. (exit $ac_status); } && {
  11257. test -z "$ac_c_werror_flag" ||
  11258. test ! -s conftest.err
  11259. } && test -s conftest$ac_exeext &&
  11260. $as_test_x conftest$ac_exeext; then
  11261. eval "$as_ac_var=yes"
  11262. else
  11263. echo "$as_me: failed program was:" >&5
  11264. sed 's/^/| /' conftest.$ac_ext >&5
  11265. eval "$as_ac_var=no"
  11266. fi
  11267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11268. conftest$ac_exeext conftest.$ac_ext
  11269. fi
  11270. ac_res=`eval echo '${'$as_ac_var'}'`
  11271. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11272. echo "${ECHO_T}$ac_res" >&6; }
  11273. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11274. cat >>confdefs.h <<_ACEOF
  11275. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11276. _ACEOF
  11277. if true; then
  11278. HAVE_GAI_STRERROR_TRUE=
  11279. HAVE_GAI_STRERROR_FALSE='#'
  11280. else
  11281. HAVE_GAI_STRERROR_TRUE='#'
  11282. HAVE_GAI_STRERROR_FALSE=
  11283. fi
  11284. else
  11285. if false; then
  11286. HAVE_GAI_STRERROR_TRUE=
  11287. HAVE_GAI_STRERROR_FALSE='#'
  11288. else
  11289. HAVE_GAI_STRERROR_TRUE='#'
  11290. HAVE_GAI_STRERROR_FALSE=
  11291. fi
  11292. fi
  11293. done
  11294. for ac_func in getaddrinfo
  11295. do
  11296. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11297. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11298. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11299. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11300. echo $ECHO_N "(cached) $ECHO_C" >&6
  11301. else
  11302. cat >conftest.$ac_ext <<_ACEOF
  11303. /* confdefs.h. */
  11304. _ACEOF
  11305. cat confdefs.h >>conftest.$ac_ext
  11306. cat >>conftest.$ac_ext <<_ACEOF
  11307. /* end confdefs.h. */
  11308. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11309. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11310. #define $ac_func innocuous_$ac_func
  11311. /* System header to define __stub macros and hopefully few prototypes,
  11312. which can conflict with char $ac_func (); below.
  11313. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11314. <limits.h> exists even on freestanding compilers. */
  11315. #ifdef __STDC__
  11316. # include <limits.h>
  11317. #else
  11318. # include <assert.h>
  11319. #endif
  11320. #undef $ac_func
  11321. /* Override any GCC internal prototype to avoid an error.
  11322. Use char because int might match the return type of a GCC
  11323. builtin and then its argument prototype would still apply. */
  11324. #ifdef __cplusplus
  11325. extern "C"
  11326. #endif
  11327. char $ac_func ();
  11328. /* The GNU C library defines this for functions which it implements
  11329. to always fail with ENOSYS. Some functions are actually named
  11330. something starting with __ and the normal name is an alias. */
  11331. #if defined __stub_$ac_func || defined __stub___$ac_func
  11332. choke me
  11333. #endif
  11334. int
  11335. main ()
  11336. {
  11337. return $ac_func ();
  11338. ;
  11339. return 0;
  11340. }
  11341. _ACEOF
  11342. rm -f conftest.$ac_objext conftest$ac_exeext
  11343. if { (ac_try="$ac_link"
  11344. case "(($ac_try" in
  11345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11346. *) ac_try_echo=$ac_try;;
  11347. esac
  11348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11349. (eval "$ac_link") 2>conftest.er1
  11350. ac_status=$?
  11351. grep -v '^ *+' conftest.er1 >conftest.err
  11352. rm -f conftest.er1
  11353. cat conftest.err >&5
  11354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11355. (exit $ac_status); } && {
  11356. test -z "$ac_c_werror_flag" ||
  11357. test ! -s conftest.err
  11358. } && test -s conftest$ac_exeext &&
  11359. $as_test_x conftest$ac_exeext; then
  11360. eval "$as_ac_var=yes"
  11361. else
  11362. echo "$as_me: failed program was:" >&5
  11363. sed 's/^/| /' conftest.$ac_ext >&5
  11364. eval "$as_ac_var=no"
  11365. fi
  11366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11367. conftest$ac_exeext conftest.$ac_ext
  11368. fi
  11369. ac_res=`eval echo '${'$as_ac_var'}'`
  11370. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11371. echo "${ECHO_T}$ac_res" >&6; }
  11372. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11373. cat >>confdefs.h <<_ACEOF
  11374. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11375. _ACEOF
  11376. if true; then
  11377. HAVE_GETADDRINFO_TRUE=
  11378. HAVE_GETADDRINFO_FALSE='#'
  11379. else
  11380. HAVE_GETADDRINFO_TRUE='#'
  11381. HAVE_GETADDRINFO_FALSE=
  11382. fi
  11383. else
  11384. if false; then
  11385. HAVE_GETADDRINFO_TRUE=
  11386. HAVE_GETADDRINFO_FALSE='#'
  11387. else
  11388. HAVE_GETADDRINFO_TRUE='#'
  11389. HAVE_GETADDRINFO_FALSE=
  11390. fi
  11391. fi
  11392. done
  11393. for ac_func in gettimeofday
  11394. do
  11395. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11396. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11397. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11398. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11399. echo $ECHO_N "(cached) $ECHO_C" >&6
  11400. else
  11401. cat >conftest.$ac_ext <<_ACEOF
  11402. /* confdefs.h. */
  11403. _ACEOF
  11404. cat confdefs.h >>conftest.$ac_ext
  11405. cat >>conftest.$ac_ext <<_ACEOF
  11406. /* end confdefs.h. */
  11407. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11408. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11409. #define $ac_func innocuous_$ac_func
  11410. /* System header to define __stub macros and hopefully few prototypes,
  11411. which can conflict with char $ac_func (); below.
  11412. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11413. <limits.h> exists even on freestanding compilers. */
  11414. #ifdef __STDC__
  11415. # include <limits.h>
  11416. #else
  11417. # include <assert.h>
  11418. #endif
  11419. #undef $ac_func
  11420. /* Override any GCC internal prototype to avoid an error.
  11421. Use char because int might match the return type of a GCC
  11422. builtin and then its argument prototype would still apply. */
  11423. #ifdef __cplusplus
  11424. extern "C"
  11425. #endif
  11426. char $ac_func ();
  11427. /* The GNU C library defines this for functions which it implements
  11428. to always fail with ENOSYS. Some functions are actually named
  11429. something starting with __ and the normal name is an alias. */
  11430. #if defined __stub_$ac_func || defined __stub___$ac_func
  11431. choke me
  11432. #endif
  11433. int
  11434. main ()
  11435. {
  11436. return $ac_func ();
  11437. ;
  11438. return 0;
  11439. }
  11440. _ACEOF
  11441. rm -f conftest.$ac_objext conftest$ac_exeext
  11442. if { (ac_try="$ac_link"
  11443. case "(($ac_try" in
  11444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11445. *) ac_try_echo=$ac_try;;
  11446. esac
  11447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11448. (eval "$ac_link") 2>conftest.er1
  11449. ac_status=$?
  11450. grep -v '^ *+' conftest.er1 >conftest.err
  11451. rm -f conftest.er1
  11452. cat conftest.err >&5
  11453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11454. (exit $ac_status); } && {
  11455. test -z "$ac_c_werror_flag" ||
  11456. test ! -s conftest.err
  11457. } && test -s conftest$ac_exeext &&
  11458. $as_test_x conftest$ac_exeext; then
  11459. eval "$as_ac_var=yes"
  11460. else
  11461. echo "$as_me: failed program was:" >&5
  11462. sed 's/^/| /' conftest.$ac_ext >&5
  11463. eval "$as_ac_var=no"
  11464. fi
  11465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11466. conftest$ac_exeext conftest.$ac_ext
  11467. fi
  11468. ac_res=`eval echo '${'$as_ac_var'}'`
  11469. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11470. echo "${ECHO_T}$ac_res" >&6; }
  11471. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11472. cat >>confdefs.h <<_ACEOF
  11473. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11474. _ACEOF
  11475. if true; then
  11476. HAVE_GETTIMEOFDAY_TRUE=
  11477. HAVE_GETTIMEOFDAY_FALSE='#'
  11478. else
  11479. HAVE_GETTIMEOFDAY_TRUE='#'
  11480. HAVE_GETTIMEOFDAY_FALSE=
  11481. fi
  11482. else
  11483. if false; then
  11484. HAVE_GETTIMEOFDAY_TRUE=
  11485. HAVE_GETTIMEOFDAY_FALSE='#'
  11486. else
  11487. HAVE_GETTIMEOFDAY_TRUE='#'
  11488. HAVE_GETTIMEOFDAY_FALSE=
  11489. fi
  11490. fi
  11491. done
  11492. for ac_func in inet_aton
  11493. do
  11494. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11495. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11496. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11497. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11498. echo $ECHO_N "(cached) $ECHO_C" >&6
  11499. else
  11500. cat >conftest.$ac_ext <<_ACEOF
  11501. /* confdefs.h. */
  11502. _ACEOF
  11503. cat confdefs.h >>conftest.$ac_ext
  11504. cat >>conftest.$ac_ext <<_ACEOF
  11505. /* end confdefs.h. */
  11506. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11507. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11508. #define $ac_func innocuous_$ac_func
  11509. /* System header to define __stub macros and hopefully few prototypes,
  11510. which can conflict with char $ac_func (); below.
  11511. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11512. <limits.h> exists even on freestanding compilers. */
  11513. #ifdef __STDC__
  11514. # include <limits.h>
  11515. #else
  11516. # include <assert.h>
  11517. #endif
  11518. #undef $ac_func
  11519. /* Override any GCC internal prototype to avoid an error.
  11520. Use char because int might match the return type of a GCC
  11521. builtin and then its argument prototype would still apply. */
  11522. #ifdef __cplusplus
  11523. extern "C"
  11524. #endif
  11525. char $ac_func ();
  11526. /* The GNU C library defines this for functions which it implements
  11527. to always fail with ENOSYS. Some functions are actually named
  11528. something starting with __ and the normal name is an alias. */
  11529. #if defined __stub_$ac_func || defined __stub___$ac_func
  11530. choke me
  11531. #endif
  11532. int
  11533. main ()
  11534. {
  11535. return $ac_func ();
  11536. ;
  11537. return 0;
  11538. }
  11539. _ACEOF
  11540. rm -f conftest.$ac_objext conftest$ac_exeext
  11541. if { (ac_try="$ac_link"
  11542. case "(($ac_try" in
  11543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11544. *) ac_try_echo=$ac_try;;
  11545. esac
  11546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11547. (eval "$ac_link") 2>conftest.er1
  11548. ac_status=$?
  11549. grep -v '^ *+' conftest.er1 >conftest.err
  11550. rm -f conftest.er1
  11551. cat conftest.err >&5
  11552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11553. (exit $ac_status); } && {
  11554. test -z "$ac_c_werror_flag" ||
  11555. test ! -s conftest.err
  11556. } && test -s conftest$ac_exeext &&
  11557. $as_test_x conftest$ac_exeext; then
  11558. eval "$as_ac_var=yes"
  11559. else
  11560. echo "$as_me: failed program was:" >&5
  11561. sed 's/^/| /' conftest.$ac_ext >&5
  11562. eval "$as_ac_var=no"
  11563. fi
  11564. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11565. conftest$ac_exeext conftest.$ac_ext
  11566. fi
  11567. ac_res=`eval echo '${'$as_ac_var'}'`
  11568. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11569. echo "${ECHO_T}$ac_res" >&6; }
  11570. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11571. cat >>confdefs.h <<_ACEOF
  11572. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11573. _ACEOF
  11574. if true; then
  11575. HAVE_INET_ATON_TRUE=
  11576. HAVE_INET_ATON_FALSE='#'
  11577. else
  11578. HAVE_INET_ATON_TRUE='#'
  11579. HAVE_INET_ATON_FALSE=
  11580. fi
  11581. else
  11582. if false; then
  11583. HAVE_INET_ATON_TRUE=
  11584. HAVE_INET_ATON_FALSE='#'
  11585. else
  11586. HAVE_INET_ATON_TRUE='#'
  11587. HAVE_INET_ATON_FALSE=
  11588. fi
  11589. fi
  11590. done
  11591. for ac_func in localtime_r
  11592. do
  11593. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11594. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11595. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11596. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11597. echo $ECHO_N "(cached) $ECHO_C" >&6
  11598. else
  11599. cat >conftest.$ac_ext <<_ACEOF
  11600. /* confdefs.h. */
  11601. _ACEOF
  11602. cat confdefs.h >>conftest.$ac_ext
  11603. cat >>conftest.$ac_ext <<_ACEOF
  11604. /* end confdefs.h. */
  11605. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11607. #define $ac_func innocuous_$ac_func
  11608. /* System header to define __stub macros and hopefully few prototypes,
  11609. which can conflict with char $ac_func (); below.
  11610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11611. <limits.h> exists even on freestanding compilers. */
  11612. #ifdef __STDC__
  11613. # include <limits.h>
  11614. #else
  11615. # include <assert.h>
  11616. #endif
  11617. #undef $ac_func
  11618. /* Override any GCC internal prototype to avoid an error.
  11619. Use char because int might match the return type of a GCC
  11620. builtin and then its argument prototype would still apply. */
  11621. #ifdef __cplusplus
  11622. extern "C"
  11623. #endif
  11624. char $ac_func ();
  11625. /* The GNU C library defines this for functions which it implements
  11626. to always fail with ENOSYS. Some functions are actually named
  11627. something starting with __ and the normal name is an alias. */
  11628. #if defined __stub_$ac_func || defined __stub___$ac_func
  11629. choke me
  11630. #endif
  11631. int
  11632. main ()
  11633. {
  11634. return $ac_func ();
  11635. ;
  11636. return 0;
  11637. }
  11638. _ACEOF
  11639. rm -f conftest.$ac_objext conftest$ac_exeext
  11640. if { (ac_try="$ac_link"
  11641. case "(($ac_try" in
  11642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11643. *) ac_try_echo=$ac_try;;
  11644. esac
  11645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11646. (eval "$ac_link") 2>conftest.er1
  11647. ac_status=$?
  11648. grep -v '^ *+' conftest.er1 >conftest.err
  11649. rm -f conftest.er1
  11650. cat conftest.err >&5
  11651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11652. (exit $ac_status); } && {
  11653. test -z "$ac_c_werror_flag" ||
  11654. test ! -s conftest.err
  11655. } && test -s conftest$ac_exeext &&
  11656. $as_test_x conftest$ac_exeext; then
  11657. eval "$as_ac_var=yes"
  11658. else
  11659. echo "$as_me: failed program was:" >&5
  11660. sed 's/^/| /' conftest.$ac_ext >&5
  11661. eval "$as_ac_var=no"
  11662. fi
  11663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11664. conftest$ac_exeext conftest.$ac_ext
  11665. fi
  11666. ac_res=`eval echo '${'$as_ac_var'}'`
  11667. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11668. echo "${ECHO_T}$ac_res" >&6; }
  11669. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11670. cat >>confdefs.h <<_ACEOF
  11671. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11672. _ACEOF
  11673. if true; then
  11674. HAVE_LOCALTIME_R_TRUE=
  11675. HAVE_LOCALTIME_R_FALSE='#'
  11676. else
  11677. HAVE_LOCALTIME_R_TRUE='#'
  11678. HAVE_LOCALTIME_R_FALSE=
  11679. fi
  11680. else
  11681. if false; then
  11682. HAVE_LOCALTIME_R_TRUE=
  11683. HAVE_LOCALTIME_R_FALSE='#'
  11684. else
  11685. HAVE_LOCALTIME_R_TRUE='#'
  11686. HAVE_LOCALTIME_R_FALSE=
  11687. fi
  11688. fi
  11689. done
  11690. for ac_func in strptime
  11691. do
  11692. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11693. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11694. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11695. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11696. echo $ECHO_N "(cached) $ECHO_C" >&6
  11697. else
  11698. cat >conftest.$ac_ext <<_ACEOF
  11699. /* confdefs.h. */
  11700. _ACEOF
  11701. cat confdefs.h >>conftest.$ac_ext
  11702. cat >>conftest.$ac_ext <<_ACEOF
  11703. /* end confdefs.h. */
  11704. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11705. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11706. #define $ac_func innocuous_$ac_func
  11707. /* System header to define __stub macros and hopefully few prototypes,
  11708. which can conflict with char $ac_func (); below.
  11709. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11710. <limits.h> exists even on freestanding compilers. */
  11711. #ifdef __STDC__
  11712. # include <limits.h>
  11713. #else
  11714. # include <assert.h>
  11715. #endif
  11716. #undef $ac_func
  11717. /* Override any GCC internal prototype to avoid an error.
  11718. Use char because int might match the return type of a GCC
  11719. builtin and then its argument prototype would still apply. */
  11720. #ifdef __cplusplus
  11721. extern "C"
  11722. #endif
  11723. char $ac_func ();
  11724. /* The GNU C library defines this for functions which it implements
  11725. to always fail with ENOSYS. Some functions are actually named
  11726. something starting with __ and the normal name is an alias. */
  11727. #if defined __stub_$ac_func || defined __stub___$ac_func
  11728. choke me
  11729. #endif
  11730. int
  11731. main ()
  11732. {
  11733. return $ac_func ();
  11734. ;
  11735. return 0;
  11736. }
  11737. _ACEOF
  11738. rm -f conftest.$ac_objext conftest$ac_exeext
  11739. if { (ac_try="$ac_link"
  11740. case "(($ac_try" in
  11741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11742. *) ac_try_echo=$ac_try;;
  11743. esac
  11744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11745. (eval "$ac_link") 2>conftest.er1
  11746. ac_status=$?
  11747. grep -v '^ *+' conftest.er1 >conftest.err
  11748. rm -f conftest.er1
  11749. cat conftest.err >&5
  11750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11751. (exit $ac_status); } && {
  11752. test -z "$ac_c_werror_flag" ||
  11753. test ! -s conftest.err
  11754. } && test -s conftest$ac_exeext &&
  11755. $as_test_x conftest$ac_exeext; then
  11756. eval "$as_ac_var=yes"
  11757. else
  11758. echo "$as_me: failed program was:" >&5
  11759. sed 's/^/| /' conftest.$ac_ext >&5
  11760. eval "$as_ac_var=no"
  11761. fi
  11762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11763. conftest$ac_exeext conftest.$ac_ext
  11764. fi
  11765. ac_res=`eval echo '${'$as_ac_var'}'`
  11766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11767. echo "${ECHO_T}$ac_res" >&6; }
  11768. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11769. cat >>confdefs.h <<_ACEOF
  11770. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11771. _ACEOF
  11772. if true; then
  11773. HAVE_STRPTIME_TRUE=
  11774. HAVE_STRPTIME_FALSE='#'
  11775. else
  11776. HAVE_STRPTIME_TRUE='#'
  11777. HAVE_STRPTIME_FALSE=
  11778. fi
  11779. else
  11780. if false; then
  11781. HAVE_STRPTIME_TRUE=
  11782. HAVE_STRPTIME_FALSE='#'
  11783. else
  11784. HAVE_STRPTIME_TRUE='#'
  11785. HAVE_STRPTIME_FALSE=
  11786. fi
  11787. fi
  11788. done
  11789. case "$target" in
  11790. *mingw*)
  11791. if true; then
  11792. HAVE_GETADDRINFO_TRUE=
  11793. HAVE_GETADDRINFO_FALSE='#'
  11794. else
  11795. HAVE_GETADDRINFO_TRUE='#'
  11796. HAVE_GETADDRINFO_FALSE=
  11797. fi
  11798. ;;
  11799. esac
  11800. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  11801. cat >confcache <<\_ACEOF
  11802. # This file is a shell script that caches the results of configure
  11803. # tests run on this system so they can be shared between configure
  11804. # scripts and configure runs, see configure's option --config-cache.
  11805. # It is not useful on other systems. If it contains results you don't
  11806. # want to keep, you may remove or edit it.
  11807. #
  11808. # config.status only pays attention to the cache file if you give it
  11809. # the --recheck option to rerun configure.
  11810. #
  11811. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11812. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11813. # following values.
  11814. _ACEOF
  11815. # The following way of writing the cache mishandles newlines in values,
  11816. # but we know of no workaround that is simple, portable, and efficient.
  11817. # So, we kill variables containing newlines.
  11818. # Ultrix sh set writes to stderr and can't be redirected directly,
  11819. # and sets the high bit in the cache file unless we assign to the vars.
  11820. (
  11821. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11822. eval ac_val=\$$ac_var
  11823. case $ac_val in #(
  11824. *${as_nl}*)
  11825. case $ac_var in #(
  11826. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11827. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11828. esac
  11829. case $ac_var in #(
  11830. _ | IFS | as_nl) ;; #(
  11831. *) $as_unset $ac_var ;;
  11832. esac ;;
  11833. esac
  11834. done
  11835. (set) 2>&1 |
  11836. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11837. *${as_nl}ac_space=\ *)
  11838. # `set' does not quote correctly, so add quotes (double-quote
  11839. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11840. sed -n \
  11841. "s/'/'\\\\''/g;
  11842. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11843. ;; #(
  11844. *)
  11845. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11846. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11847. ;;
  11848. esac |
  11849. sort
  11850. ) |
  11851. sed '
  11852. /^ac_cv_env_/b end
  11853. t clear
  11854. :clear
  11855. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11856. t end
  11857. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11858. :end' >>confcache
  11859. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11860. if test -w "$cache_file"; then
  11861. test "x$cache_file" != "x/dev/null" &&
  11862. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11863. echo "$as_me: updating cache $cache_file" >&6;}
  11864. cat confcache >$cache_file
  11865. else
  11866. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11867. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11868. fi
  11869. fi
  11870. rm -f confcache
  11871. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11872. # Let make expand exec_prefix.
  11873. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11874. DEFS=-DHAVE_CONFIG_H
  11875. ac_libobjs=
  11876. ac_ltlibobjs=
  11877. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11878. # 1. Remove the extension, and $U if already installed.
  11879. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11880. ac_i=`echo "$ac_i" | sed "$ac_script"`
  11881. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11882. # will be set to the directory where LIBOBJS objects are built.
  11883. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11884. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11885. done
  11886. LIBOBJS=$ac_libobjs
  11887. LTLIBOBJS=$ac_ltlibobjs
  11888. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11889. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11890. Usually this means the macro was only invoked conditionally." >&5
  11891. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11892. Usually this means the macro was only invoked conditionally." >&2;}
  11893. { (exit 1); exit 1; }; }
  11894. fi
  11895. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  11896. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  11897. Usually this means the macro was only invoked conditionally." >&5
  11898. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  11899. Usually this means the macro was only invoked conditionally." >&2;}
  11900. { (exit 1); exit 1; }; }
  11901. fi
  11902. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11903. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11904. Usually this means the macro was only invoked conditionally." >&5
  11905. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11906. Usually this means the macro was only invoked conditionally." >&2;}
  11907. { (exit 1); exit 1; }; }
  11908. fi
  11909. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  11910. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11911. Usually this means the macro was only invoked conditionally." >&5
  11912. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11913. Usually this means the macro was only invoked conditionally." >&2;}
  11914. { (exit 1); exit 1; }; }
  11915. fi
  11916. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  11917. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11918. Usually this means the macro was only invoked conditionally." >&5
  11919. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11920. Usually this means the macro was only invoked conditionally." >&2;}
  11921. { (exit 1); exit 1; }; }
  11922. fi
  11923. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11924. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11925. Usually this means the macro was only invoked conditionally." >&5
  11926. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11927. Usually this means the macro was only invoked conditionally." >&2;}
  11928. { (exit 1); exit 1; }; }
  11929. fi
  11930. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11931. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11932. Usually this means the macro was only invoked conditionally." >&5
  11933. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11934. Usually this means the macro was only invoked conditionally." >&2;}
  11935. { (exit 1); exit 1; }; }
  11936. fi
  11937. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11938. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11939. Usually this means the macro was only invoked conditionally." >&5
  11940. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11941. Usually this means the macro was only invoked conditionally." >&2;}
  11942. { (exit 1); exit 1; }; }
  11943. fi
  11944. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11945. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11946. Usually this means the macro was only invoked conditionally." >&5
  11947. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11948. Usually this means the macro was only invoked conditionally." >&2;}
  11949. { (exit 1); exit 1; }; }
  11950. fi
  11951. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11952. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11953. Usually this means the macro was only invoked conditionally." >&5
  11954. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11955. Usually this means the macro was only invoked conditionally." >&2;}
  11956. { (exit 1); exit 1; }; }
  11957. fi
  11958. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11959. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11960. Usually this means the macro was only invoked conditionally." >&5
  11961. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11962. Usually this means the macro was only invoked conditionally." >&2;}
  11963. { (exit 1); exit 1; }; }
  11964. fi
  11965. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  11966. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  11967. Usually this means the macro was only invoked conditionally." >&5
  11968. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  11969. Usually this means the macro was only invoked conditionally." >&2;}
  11970. { (exit 1); exit 1; }; }
  11971. fi
  11972. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  11973. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  11974. Usually this means the macro was only invoked conditionally." >&5
  11975. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  11976. Usually this means the macro was only invoked conditionally." >&2;}
  11977. { (exit 1); exit 1; }; }
  11978. fi
  11979. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  11980. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  11981. Usually this means the macro was only invoked conditionally." >&5
  11982. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  11983. Usually this means the macro was only invoked conditionally." >&2;}
  11984. { (exit 1); exit 1; }; }
  11985. fi
  11986. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  11987. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  11988. Usually this means the macro was only invoked conditionally." >&5
  11989. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  11990. Usually this means the macro was only invoked conditionally." >&2;}
  11991. { (exit 1); exit 1; }; }
  11992. fi
  11993. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  11994. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11995. Usually this means the macro was only invoked conditionally." >&5
  11996. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11997. Usually this means the macro was only invoked conditionally." >&2;}
  11998. { (exit 1); exit 1; }; }
  11999. fi
  12000. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12001. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12002. Usually this means the macro was only invoked conditionally." >&5
  12003. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12004. Usually this means the macro was only invoked conditionally." >&2;}
  12005. { (exit 1); exit 1; }; }
  12006. fi
  12007. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12008. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12009. Usually this means the macro was only invoked conditionally." >&5
  12010. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12011. Usually this means the macro was only invoked conditionally." >&2;}
  12012. { (exit 1); exit 1; }; }
  12013. fi
  12014. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12015. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12016. Usually this means the macro was only invoked conditionally." >&5
  12017. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12018. Usually this means the macro was only invoked conditionally." >&2;}
  12019. { (exit 1); exit 1; }; }
  12020. fi
  12021. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12022. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12023. Usually this means the macro was only invoked conditionally." >&5
  12024. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12025. Usually this means the macro was only invoked conditionally." >&2;}
  12026. { (exit 1); exit 1; }; }
  12027. fi
  12028. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12029. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12030. Usually this means the macro was only invoked conditionally." >&5
  12031. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12032. Usually this means the macro was only invoked conditionally." >&2;}
  12033. { (exit 1); exit 1; }; }
  12034. fi
  12035. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12036. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12037. Usually this means the macro was only invoked conditionally." >&5
  12038. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12039. Usually this means the macro was only invoked conditionally." >&2;}
  12040. { (exit 1); exit 1; }; }
  12041. fi
  12042. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12043. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12044. Usually this means the macro was only invoked conditionally." >&5
  12045. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12046. Usually this means the macro was only invoked conditionally." >&2;}
  12047. { (exit 1); exit 1; }; }
  12048. fi
  12049. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12050. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12051. Usually this means the macro was only invoked conditionally." >&5
  12052. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12053. Usually this means the macro was only invoked conditionally." >&2;}
  12054. { (exit 1); exit 1; }; }
  12055. fi
  12056. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12057. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12058. Usually this means the macro was only invoked conditionally." >&5
  12059. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12060. Usually this means the macro was only invoked conditionally." >&2;}
  12061. { (exit 1); exit 1; }; }
  12062. fi
  12063. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12064. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12065. Usually this means the macro was only invoked conditionally." >&5
  12066. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12067. Usually this means the macro was only invoked conditionally." >&2;}
  12068. { (exit 1); exit 1; }; }
  12069. fi
  12070. : ${CONFIG_STATUS=./config.status}
  12071. ac_clean_files_save=$ac_clean_files
  12072. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12073. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12074. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12075. cat >$CONFIG_STATUS <<_ACEOF
  12076. #! $SHELL
  12077. # Generated by $as_me.
  12078. # Run this file to recreate the current configuration.
  12079. # Compiler output produced by configure, useful for debugging
  12080. # configure, is in config.log if it exists.
  12081. debug=false
  12082. ac_cs_recheck=false
  12083. ac_cs_silent=false
  12084. SHELL=\${CONFIG_SHELL-$SHELL}
  12085. _ACEOF
  12086. cat >>$CONFIG_STATUS <<\_ACEOF
  12087. ## --------------------- ##
  12088. ## M4sh Initialization. ##
  12089. ## --------------------- ##
  12090. # Be more Bourne compatible
  12091. DUALCASE=1; export DUALCASE # for MKS sh
  12092. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12093. emulate sh
  12094. NULLCMD=:
  12095. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12096. # is contrary to our usage. Disable this feature.
  12097. alias -g '${1+"$@"}'='"$@"'
  12098. setopt NO_GLOB_SUBST
  12099. else
  12100. case `(set -o) 2>/dev/null` in
  12101. *posix*) set -o posix ;;
  12102. esac
  12103. fi
  12104. # PATH needs CR
  12105. # Avoid depending upon Character Ranges.
  12106. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12107. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12108. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12109. as_cr_digits='0123456789'
  12110. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12111. # The user is always right.
  12112. if test "${PATH_SEPARATOR+set}" != set; then
  12113. echo "#! /bin/sh" >conf$$.sh
  12114. echo "exit 0" >>conf$$.sh
  12115. chmod +x conf$$.sh
  12116. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12117. PATH_SEPARATOR=';'
  12118. else
  12119. PATH_SEPARATOR=:
  12120. fi
  12121. rm -f conf$$.sh
  12122. fi
  12123. # Support unset when possible.
  12124. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12125. as_unset=unset
  12126. else
  12127. as_unset=false
  12128. fi
  12129. # IFS
  12130. # We need space, tab and new line, in precisely that order. Quoting is
  12131. # there to prevent editors from complaining about space-tab.
  12132. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12133. # splitting by setting IFS to empty value.)
  12134. as_nl='
  12135. '
  12136. IFS=" "" $as_nl"
  12137. # Find who we are. Look in the path if we contain no directory separator.
  12138. case $0 in
  12139. *[\\/]* ) as_myself=$0 ;;
  12140. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12141. for as_dir in $PATH
  12142. do
  12143. IFS=$as_save_IFS
  12144. test -z "$as_dir" && as_dir=.
  12145. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12146. done
  12147. IFS=$as_save_IFS
  12148. ;;
  12149. esac
  12150. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12151. # in which case we are not to be found in the path.
  12152. if test "x$as_myself" = x; then
  12153. as_myself=$0
  12154. fi
  12155. if test ! -f "$as_myself"; then
  12156. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12157. { (exit 1); exit 1; }
  12158. fi
  12159. # Work around bugs in pre-3.0 UWIN ksh.
  12160. for as_var in ENV MAIL MAILPATH
  12161. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12162. done
  12163. PS1='$ '
  12164. PS2='> '
  12165. PS4='+ '
  12166. # NLS nuisances.
  12167. for as_var in \
  12168. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12169. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12170. LC_TELEPHONE LC_TIME
  12171. do
  12172. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12173. eval $as_var=C; export $as_var
  12174. else
  12175. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12176. fi
  12177. done
  12178. # Required to use basename.
  12179. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12180. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12181. as_expr=expr
  12182. else
  12183. as_expr=false
  12184. fi
  12185. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12186. as_basename=basename
  12187. else
  12188. as_basename=false
  12189. fi
  12190. # Name of the executable.
  12191. as_me=`$as_basename -- "$0" ||
  12192. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12193. X"$0" : 'X\(//\)$' \| \
  12194. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12195. echo X/"$0" |
  12196. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12197. s//\1/
  12198. q
  12199. }
  12200. /^X\/\(\/\/\)$/{
  12201. s//\1/
  12202. q
  12203. }
  12204. /^X\/\(\/\).*/{
  12205. s//\1/
  12206. q
  12207. }
  12208. s/.*/./; q'`
  12209. # CDPATH.
  12210. $as_unset CDPATH
  12211. as_lineno_1=$LINENO
  12212. as_lineno_2=$LINENO
  12213. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12214. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12215. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12216. # uniformly replaced by the line number. The first 'sed' inserts a
  12217. # line-number line after each line using $LINENO; the second 'sed'
  12218. # does the real work. The second script uses 'N' to pair each
  12219. # line-number line with the line containing $LINENO, and appends
  12220. # trailing '-' during substitution so that $LINENO is not a special
  12221. # case at line end.
  12222. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12223. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12224. # E. McMahon (1931-1989) for sed's syntax. :-)
  12225. sed -n '
  12226. p
  12227. /[$]LINENO/=
  12228. ' <$as_myself |
  12229. sed '
  12230. s/[$]LINENO.*/&-/
  12231. t lineno
  12232. b
  12233. :lineno
  12234. N
  12235. :loop
  12236. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12237. t loop
  12238. s/-\n.*//
  12239. ' >$as_me.lineno &&
  12240. chmod +x "$as_me.lineno" ||
  12241. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12242. { (exit 1); exit 1; }; }
  12243. # Don't try to exec as it changes $[0], causing all sort of problems
  12244. # (the dirname of $[0] is not the place where we might find the
  12245. # original and so on. Autoconf is especially sensitive to this).
  12246. . "./$as_me.lineno"
  12247. # Exit status is that of the last command.
  12248. exit
  12249. }
  12250. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12251. as_dirname=dirname
  12252. else
  12253. as_dirname=false
  12254. fi
  12255. ECHO_C= ECHO_N= ECHO_T=
  12256. case `echo -n x` in
  12257. -n*)
  12258. case `echo 'x\c'` in
  12259. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12260. *) ECHO_C='\c';;
  12261. esac;;
  12262. *)
  12263. ECHO_N='-n';;
  12264. esac
  12265. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12266. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12267. as_expr=expr
  12268. else
  12269. as_expr=false
  12270. fi
  12271. rm -f conf$$ conf$$.exe conf$$.file
  12272. if test -d conf$$.dir; then
  12273. rm -f conf$$.dir/conf$$.file
  12274. else
  12275. rm -f conf$$.dir
  12276. mkdir conf$$.dir
  12277. fi
  12278. echo >conf$$.file
  12279. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12280. as_ln_s='ln -s'
  12281. # ... but there are two gotchas:
  12282. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12283. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12284. # In both cases, we have to default to `cp -p'.
  12285. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12286. as_ln_s='cp -p'
  12287. elif ln conf$$.file conf$$ 2>/dev/null; then
  12288. as_ln_s=ln
  12289. else
  12290. as_ln_s='cp -p'
  12291. fi
  12292. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12293. rmdir conf$$.dir 2>/dev/null
  12294. if mkdir -p . 2>/dev/null; then
  12295. as_mkdir_p=:
  12296. else
  12297. test -d ./-p && rmdir ./-p
  12298. as_mkdir_p=false
  12299. fi
  12300. if test -x / >/dev/null 2>&1; then
  12301. as_test_x='test -x'
  12302. else
  12303. if ls -dL / >/dev/null 2>&1; then
  12304. as_ls_L_option=L
  12305. else
  12306. as_ls_L_option=
  12307. fi
  12308. as_test_x='
  12309. eval sh -c '\''
  12310. if test -d "$1"; then
  12311. test -d "$1/.";
  12312. else
  12313. case $1 in
  12314. -*)set "./$1";;
  12315. esac;
  12316. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12317. ???[sx]*):;;*)false;;esac;fi
  12318. '\'' sh
  12319. '
  12320. fi
  12321. as_executable_p=$as_test_x
  12322. # Sed expression to map a string onto a valid CPP name.
  12323. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12324. # Sed expression to map a string onto a valid variable name.
  12325. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12326. exec 6>&1
  12327. # Save the log message, to keep $[0] and so on meaningful, and to
  12328. # report actual input values of CONFIG_FILES etc. instead of their
  12329. # values after options handling.
  12330. ac_log="
  12331. This file was extended by aria2c $as_me 0.11.1+1, which was
  12332. generated by GNU Autoconf 2.61. Invocation command line was
  12333. CONFIG_FILES = $CONFIG_FILES
  12334. CONFIG_HEADERS = $CONFIG_HEADERS
  12335. CONFIG_LINKS = $CONFIG_LINKS
  12336. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12337. $ $0 $@
  12338. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12339. "
  12340. _ACEOF
  12341. cat >>$CONFIG_STATUS <<_ACEOF
  12342. # Files that config.status was made for.
  12343. config_files="$ac_config_files"
  12344. config_headers="$ac_config_headers"
  12345. config_commands="$ac_config_commands"
  12346. _ACEOF
  12347. cat >>$CONFIG_STATUS <<\_ACEOF
  12348. ac_cs_usage="\
  12349. \`$as_me' instantiates files from templates according to the
  12350. current configuration.
  12351. Usage: $0 [OPTIONS] [FILE]...
  12352. -h, --help print this help, then exit
  12353. -V, --version print version number and configuration settings, then exit
  12354. -q, --quiet do not print progress messages
  12355. -d, --debug don't remove temporary files
  12356. --recheck update $as_me by reconfiguring in the same conditions
  12357. --file=FILE[:TEMPLATE]
  12358. instantiate the configuration file FILE
  12359. --header=FILE[:TEMPLATE]
  12360. instantiate the configuration header FILE
  12361. Configuration files:
  12362. $config_files
  12363. Configuration headers:
  12364. $config_headers
  12365. Configuration commands:
  12366. $config_commands
  12367. Report bugs to <bug-autoconf@gnu.org>."
  12368. _ACEOF
  12369. cat >>$CONFIG_STATUS <<_ACEOF
  12370. ac_cs_version="\\
  12371. aria2c config.status 0.11.1+1
  12372. configured by $0, generated by GNU Autoconf 2.61,
  12373. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12374. Copyright (C) 2006 Free Software Foundation, Inc.
  12375. This config.status script is free software; the Free Software Foundation
  12376. gives unlimited permission to copy, distribute and modify it."
  12377. ac_pwd='$ac_pwd'
  12378. srcdir='$srcdir'
  12379. INSTALL='$INSTALL'
  12380. _ACEOF
  12381. cat >>$CONFIG_STATUS <<\_ACEOF
  12382. # If no file are specified by the user, then we need to provide default
  12383. # value. By we need to know if files were specified by the user.
  12384. ac_need_defaults=:
  12385. while test $# != 0
  12386. do
  12387. case $1 in
  12388. --*=*)
  12389. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12390. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12391. ac_shift=:
  12392. ;;
  12393. *)
  12394. ac_option=$1
  12395. ac_optarg=$2
  12396. ac_shift=shift
  12397. ;;
  12398. esac
  12399. case $ac_option in
  12400. # Handling of the options.
  12401. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12402. ac_cs_recheck=: ;;
  12403. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12404. echo "$ac_cs_version"; exit ;;
  12405. --debug | --debu | --deb | --de | --d | -d )
  12406. debug=: ;;
  12407. --file | --fil | --fi | --f )
  12408. $ac_shift
  12409. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12410. ac_need_defaults=false;;
  12411. --header | --heade | --head | --hea )
  12412. $ac_shift
  12413. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12414. ac_need_defaults=false;;
  12415. --he | --h)
  12416. # Conflict between --help and --header
  12417. { echo "$as_me: error: ambiguous option: $1
  12418. Try \`$0 --help' for more information." >&2
  12419. { (exit 1); exit 1; }; };;
  12420. --help | --hel | -h )
  12421. echo "$ac_cs_usage"; exit ;;
  12422. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12423. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12424. ac_cs_silent=: ;;
  12425. # This is an error.
  12426. -*) { echo "$as_me: error: unrecognized option: $1
  12427. Try \`$0 --help' for more information." >&2
  12428. { (exit 1); exit 1; }; } ;;
  12429. *) ac_config_targets="$ac_config_targets $1"
  12430. ac_need_defaults=false ;;
  12431. esac
  12432. shift
  12433. done
  12434. ac_configure_extra_args=
  12435. if $ac_cs_silent; then
  12436. exec 6>/dev/null
  12437. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12438. fi
  12439. _ACEOF
  12440. cat >>$CONFIG_STATUS <<_ACEOF
  12441. if \$ac_cs_recheck; then
  12442. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12443. CONFIG_SHELL=$SHELL
  12444. export CONFIG_SHELL
  12445. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12446. fi
  12447. _ACEOF
  12448. cat >>$CONFIG_STATUS <<\_ACEOF
  12449. exec 5>>config.log
  12450. {
  12451. echo
  12452. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12453. ## Running $as_me. ##
  12454. _ASBOX
  12455. echo "$ac_log"
  12456. } >&5
  12457. _ACEOF
  12458. cat >>$CONFIG_STATUS <<_ACEOF
  12459. #
  12460. # INIT-COMMANDS
  12461. #
  12462. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12463. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12464. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12465. # from automake.
  12466. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12467. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12468. LINGUAS="${LINGUAS-%UNSET%}"
  12469. _ACEOF
  12470. cat >>$CONFIG_STATUS <<\_ACEOF
  12471. # Handling of arguments.
  12472. for ac_config_target in $ac_config_targets
  12473. do
  12474. case $ac_config_target in
  12475. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12476. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12477. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12478. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12479. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12480. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12481. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12482. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12483. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12484. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12485. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12486. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12487. { (exit 1); exit 1; }; };;
  12488. esac
  12489. done
  12490. # If the user did not use the arguments to specify the items to instantiate,
  12491. # then the envvar interface is used. Set only those that are not.
  12492. # We use the long form for the default assignment because of an extremely
  12493. # bizarre bug on SunOS 4.1.3.
  12494. if $ac_need_defaults; then
  12495. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12496. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12497. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12498. fi
  12499. # Have a temporary directory for convenience. Make it in the build tree
  12500. # simply because there is no reason against having it here, and in addition,
  12501. # creating and moving files from /tmp can sometimes cause problems.
  12502. # Hook for its removal unless debugging.
  12503. # Note that there is a small window in which the directory will not be cleaned:
  12504. # after its creation but before its name has been assigned to `$tmp'.
  12505. $debug ||
  12506. {
  12507. tmp=
  12508. trap 'exit_status=$?
  12509. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12510. ' 0
  12511. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12512. }
  12513. # Create a (secure) tmp directory for tmp files.
  12514. {
  12515. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12516. test -n "$tmp" && test -d "$tmp"
  12517. } ||
  12518. {
  12519. tmp=./conf$$-$RANDOM
  12520. (umask 077 && mkdir "$tmp")
  12521. } ||
  12522. {
  12523. echo "$me: cannot create a temporary directory in ." >&2
  12524. { (exit 1); exit 1; }
  12525. }
  12526. #
  12527. # Set up the sed scripts for CONFIG_FILES section.
  12528. #
  12529. # No need to generate the scripts if there are no CONFIG_FILES.
  12530. # This happens for instance when ./config.status config.h
  12531. if test -n "$CONFIG_FILES"; then
  12532. _ACEOF
  12533. ac_delim='%!_!# '
  12534. for ac_last_try in false false false false false :; do
  12535. cat >conf$$subs.sed <<_ACEOF
  12536. SHELL!$SHELL$ac_delim
  12537. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12538. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12539. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12540. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12541. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12542. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12543. exec_prefix!$exec_prefix$ac_delim
  12544. prefix!$prefix$ac_delim
  12545. program_transform_name!$program_transform_name$ac_delim
  12546. bindir!$bindir$ac_delim
  12547. sbindir!$sbindir$ac_delim
  12548. libexecdir!$libexecdir$ac_delim
  12549. datarootdir!$datarootdir$ac_delim
  12550. datadir!$datadir$ac_delim
  12551. sysconfdir!$sysconfdir$ac_delim
  12552. sharedstatedir!$sharedstatedir$ac_delim
  12553. localstatedir!$localstatedir$ac_delim
  12554. includedir!$includedir$ac_delim
  12555. oldincludedir!$oldincludedir$ac_delim
  12556. docdir!$docdir$ac_delim
  12557. infodir!$infodir$ac_delim
  12558. htmldir!$htmldir$ac_delim
  12559. dvidir!$dvidir$ac_delim
  12560. pdfdir!$pdfdir$ac_delim
  12561. psdir!$psdir$ac_delim
  12562. libdir!$libdir$ac_delim
  12563. localedir!$localedir$ac_delim
  12564. mandir!$mandir$ac_delim
  12565. DEFS!$DEFS$ac_delim
  12566. ECHO_C!$ECHO_C$ac_delim
  12567. ECHO_N!$ECHO_N$ac_delim
  12568. ECHO_T!$ECHO_T$ac_delim
  12569. LIBS!$LIBS$ac_delim
  12570. build_alias!$build_alias$ac_delim
  12571. host_alias!$host_alias$ac_delim
  12572. target_alias!$target_alias$ac_delim
  12573. build!$build$ac_delim
  12574. build_cpu!$build_cpu$ac_delim
  12575. build_vendor!$build_vendor$ac_delim
  12576. build_os!$build_os$ac_delim
  12577. host!$host$ac_delim
  12578. host_cpu!$host_cpu$ac_delim
  12579. host_vendor!$host_vendor$ac_delim
  12580. host_os!$host_os$ac_delim
  12581. target!$target$ac_delim
  12582. target_cpu!$target_cpu$ac_delim
  12583. target_vendor!$target_vendor$ac_delim
  12584. target_os!$target_os$ac_delim
  12585. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12586. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12587. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12588. CYGPATH_W!$CYGPATH_W$ac_delim
  12589. PACKAGE!$PACKAGE$ac_delim
  12590. VERSION!$VERSION$ac_delim
  12591. ACLOCAL!$ACLOCAL$ac_delim
  12592. AUTOCONF!$AUTOCONF$ac_delim
  12593. AUTOMAKE!$AUTOMAKE$ac_delim
  12594. AUTOHEADER!$AUTOHEADER$ac_delim
  12595. MAKEINFO!$MAKEINFO$ac_delim
  12596. install_sh!$install_sh$ac_delim
  12597. STRIP!$STRIP$ac_delim
  12598. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12599. mkdir_p!$mkdir_p$ac_delim
  12600. AWK!$AWK$ac_delim
  12601. SET_MAKE!$SET_MAKE$ac_delim
  12602. am__leading_dot!$am__leading_dot$ac_delim
  12603. AMTAR!$AMTAR$ac_delim
  12604. am__tar!$am__tar$ac_delim
  12605. am__untar!$am__untar$ac_delim
  12606. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12607. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12608. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12609. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  12610. CXX!$CXX$ac_delim
  12611. CXXFLAGS!$CXXFLAGS$ac_delim
  12612. LDFLAGS!$LDFLAGS$ac_delim
  12613. CPPFLAGS!$CPPFLAGS$ac_delim
  12614. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12615. EXEEXT!$EXEEXT$ac_delim
  12616. OBJEXT!$OBJEXT$ac_delim
  12617. DEPDIR!$DEPDIR$ac_delim
  12618. am__include!$am__include$ac_delim
  12619. am__quote!$am__quote$ac_delim
  12620. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12621. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12622. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12623. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12624. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12625. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12626. CC!$CC$ac_delim
  12627. CFLAGS!$CFLAGS$ac_delim
  12628. ac_ct_CC!$ac_ct_CC$ac_delim
  12629. CCDEPMODE!$CCDEPMODE$ac_delim
  12630. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12631. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12632. RANLIB!$RANLIB$ac_delim
  12633. _ACEOF
  12634. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12635. break
  12636. elif $ac_last_try; then
  12637. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12638. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12639. { (exit 1); exit 1; }; }
  12640. else
  12641. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12642. fi
  12643. done
  12644. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12645. if test -n "$ac_eof"; then
  12646. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12647. ac_eof=`expr $ac_eof + 1`
  12648. fi
  12649. cat >>$CONFIG_STATUS <<_ACEOF
  12650. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12651. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12652. _ACEOF
  12653. sed '
  12654. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12655. s/^/s,@/; s/!/@,|#_!!_#|/
  12656. :n
  12657. t n
  12658. s/'"$ac_delim"'$/,g/; t
  12659. s/$/\\/; p
  12660. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12661. ' >>$CONFIG_STATUS <conf$$subs.sed
  12662. rm -f conf$$subs.sed
  12663. cat >>$CONFIG_STATUS <<_ACEOF
  12664. CEOF$ac_eof
  12665. _ACEOF
  12666. ac_delim='%!_!# '
  12667. for ac_last_try in false false false false false :; do
  12668. cat >conf$$subs.sed <<_ACEOF
  12669. YACC!$YACC$ac_delim
  12670. YFLAGS!$YFLAGS$ac_delim
  12671. XML2_CONFIG!$XML2_CONFIG$ac_delim
  12672. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  12673. XML_LIBS!$XML_LIBS$ac_delim
  12674. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  12675. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  12676. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  12677. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  12678. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  12679. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  12680. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  12681. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  12682. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  12683. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  12684. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  12685. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  12686. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  12687. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  12688. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  12689. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  12690. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  12691. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  12692. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  12693. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  12694. ALLOCA!$ALLOCA$ac_delim
  12695. CPP!$CPP$ac_delim
  12696. GREP!$GREP$ac_delim
  12697. EGREP!$EGREP$ac_delim
  12698. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  12699. USE_NLS!$USE_NLS$ac_delim
  12700. MSGFMT!$MSGFMT$ac_delim
  12701. GMSGFMT!$GMSGFMT$ac_delim
  12702. XGETTEXT!$XGETTEXT$ac_delim
  12703. MSGMERGE!$MSGMERGE$ac_delim
  12704. GLIBC21!$GLIBC21$ac_delim
  12705. LIBICONV!$LIBICONV$ac_delim
  12706. LTLIBICONV!$LTLIBICONV$ac_delim
  12707. INTLBISON!$INTLBISON$ac_delim
  12708. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  12709. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  12710. CATOBJEXT!$CATOBJEXT$ac_delim
  12711. DATADIRNAME!$DATADIRNAME$ac_delim
  12712. INSTOBJEXT!$INSTOBJEXT$ac_delim
  12713. GENCAT!$GENCAT$ac_delim
  12714. INTLOBJS!$INTLOBJS$ac_delim
  12715. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  12716. INTLLIBS!$INTLLIBS$ac_delim
  12717. LIBINTL!$LIBINTL$ac_delim
  12718. LTLIBINTL!$LTLIBINTL$ac_delim
  12719. POSUB!$POSUB$ac_delim
  12720. LIBOBJS!$LIBOBJS$ac_delim
  12721. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  12722. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  12723. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  12724. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  12725. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  12726. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  12727. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  12728. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  12729. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  12730. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  12731. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  12732. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  12733. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  12734. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  12735. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12736. _ACEOF
  12737. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
  12738. break
  12739. elif $ac_last_try; then
  12740. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12741. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12742. { (exit 1); exit 1; }; }
  12743. else
  12744. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12745. fi
  12746. done
  12747. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12748. if test -n "$ac_eof"; then
  12749. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12750. ac_eof=`expr $ac_eof + 1`
  12751. fi
  12752. cat >>$CONFIG_STATUS <<_ACEOF
  12753. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  12754. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12755. _ACEOF
  12756. sed '
  12757. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12758. s/^/s,@/; s/!/@,|#_!!_#|/
  12759. :n
  12760. t n
  12761. s/'"$ac_delim"'$/,g/; t
  12762. s/$/\\/; p
  12763. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12764. ' >>$CONFIG_STATUS <conf$$subs.sed
  12765. rm -f conf$$subs.sed
  12766. cat >>$CONFIG_STATUS <<_ACEOF
  12767. :end
  12768. s/|#_!!_#|//g
  12769. CEOF$ac_eof
  12770. _ACEOF
  12771. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12772. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12773. # trailing colons and then remove the whole line if VPATH becomes empty
  12774. # (actually we leave an empty line to preserve line numbers).
  12775. if test "x$srcdir" = x.; then
  12776. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12777. s/:*\$(srcdir):*/:/
  12778. s/:*\${srcdir}:*/:/
  12779. s/:*@srcdir@:*/:/
  12780. s/^\([^=]*=[ ]*\):*/\1/
  12781. s/:*$//
  12782. s/^[^=]*=[ ]*$//
  12783. }'
  12784. fi
  12785. cat >>$CONFIG_STATUS <<\_ACEOF
  12786. fi # test -n "$CONFIG_FILES"
  12787. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  12788. do
  12789. case $ac_tag in
  12790. :[FHLC]) ac_mode=$ac_tag; continue;;
  12791. esac
  12792. case $ac_mode$ac_tag in
  12793. :[FHL]*:*);;
  12794. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12795. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12796. { (exit 1); exit 1; }; };;
  12797. :[FH]-) ac_tag=-:-;;
  12798. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12799. esac
  12800. ac_save_IFS=$IFS
  12801. IFS=:
  12802. set x $ac_tag
  12803. IFS=$ac_save_IFS
  12804. shift
  12805. ac_file=$1
  12806. shift
  12807. case $ac_mode in
  12808. :L) ac_source=$1;;
  12809. :[FH])
  12810. ac_file_inputs=
  12811. for ac_f
  12812. do
  12813. case $ac_f in
  12814. -) ac_f="$tmp/stdin";;
  12815. *) # Look for the file first in the build tree, then in the source tree
  12816. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12817. # because $ac_f cannot contain `:'.
  12818. test -f "$ac_f" ||
  12819. case $ac_f in
  12820. [\\/$]*) false;;
  12821. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12822. esac ||
  12823. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12824. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12825. { (exit 1); exit 1; }; };;
  12826. esac
  12827. ac_file_inputs="$ac_file_inputs $ac_f"
  12828. done
  12829. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12830. # use $as_me), people would be surprised to read:
  12831. # /* config.h. Generated by config.status. */
  12832. configure_input="Generated from "`IFS=:
  12833. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12834. if test x"$ac_file" != x-; then
  12835. configure_input="$ac_file. $configure_input"
  12836. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12837. echo "$as_me: creating $ac_file" >&6;}
  12838. fi
  12839. case $ac_tag in
  12840. *:-:* | *:-) cat >"$tmp/stdin";;
  12841. esac
  12842. ;;
  12843. esac
  12844. ac_dir=`$as_dirname -- "$ac_file" ||
  12845. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12846. X"$ac_file" : 'X\(//\)[^/]' \| \
  12847. X"$ac_file" : 'X\(//\)$' \| \
  12848. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12849. echo X"$ac_file" |
  12850. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12851. s//\1/
  12852. q
  12853. }
  12854. /^X\(\/\/\)[^/].*/{
  12855. s//\1/
  12856. q
  12857. }
  12858. /^X\(\/\/\)$/{
  12859. s//\1/
  12860. q
  12861. }
  12862. /^X\(\/\).*/{
  12863. s//\1/
  12864. q
  12865. }
  12866. s/.*/./; q'`
  12867. { as_dir="$ac_dir"
  12868. case $as_dir in #(
  12869. -*) as_dir=./$as_dir;;
  12870. esac
  12871. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12872. as_dirs=
  12873. while :; do
  12874. case $as_dir in #(
  12875. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12876. *) as_qdir=$as_dir;;
  12877. esac
  12878. as_dirs="'$as_qdir' $as_dirs"
  12879. as_dir=`$as_dirname -- "$as_dir" ||
  12880. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12881. X"$as_dir" : 'X\(//\)[^/]' \| \
  12882. X"$as_dir" : 'X\(//\)$' \| \
  12883. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12884. echo X"$as_dir" |
  12885. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12886. s//\1/
  12887. q
  12888. }
  12889. /^X\(\/\/\)[^/].*/{
  12890. s//\1/
  12891. q
  12892. }
  12893. /^X\(\/\/\)$/{
  12894. s//\1/
  12895. q
  12896. }
  12897. /^X\(\/\).*/{
  12898. s//\1/
  12899. q
  12900. }
  12901. s/.*/./; q'`
  12902. test -d "$as_dir" && break
  12903. done
  12904. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12905. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12906. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12907. { (exit 1); exit 1; }; }; }
  12908. ac_builddir=.
  12909. case "$ac_dir" in
  12910. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12911. *)
  12912. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12913. # A ".." for each directory in $ac_dir_suffix.
  12914. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12915. case $ac_top_builddir_sub in
  12916. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12917. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12918. esac ;;
  12919. esac
  12920. ac_abs_top_builddir=$ac_pwd
  12921. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12922. # for backward compatibility:
  12923. ac_top_builddir=$ac_top_build_prefix
  12924. case $srcdir in
  12925. .) # We are building in place.
  12926. ac_srcdir=.
  12927. ac_top_srcdir=$ac_top_builddir_sub
  12928. ac_abs_top_srcdir=$ac_pwd ;;
  12929. [\\/]* | ?:[\\/]* ) # Absolute name.
  12930. ac_srcdir=$srcdir$ac_dir_suffix;
  12931. ac_top_srcdir=$srcdir
  12932. ac_abs_top_srcdir=$srcdir ;;
  12933. *) # Relative name.
  12934. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12935. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12936. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12937. esac
  12938. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12939. case $ac_mode in
  12940. :F)
  12941. #
  12942. # CONFIG_FILE
  12943. #
  12944. case $INSTALL in
  12945. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12946. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12947. esac
  12948. _ACEOF
  12949. cat >>$CONFIG_STATUS <<\_ACEOF
  12950. # If the template does not know about datarootdir, expand it.
  12951. # FIXME: This hack should be removed a few years after 2.60.
  12952. ac_datarootdir_hack=; ac_datarootdir_seen=
  12953. case `sed -n '/datarootdir/ {
  12954. p
  12955. q
  12956. }
  12957. /@datadir@/p
  12958. /@docdir@/p
  12959. /@infodir@/p
  12960. /@localedir@/p
  12961. /@mandir@/p
  12962. ' $ac_file_inputs` in
  12963. *datarootdir*) ac_datarootdir_seen=yes;;
  12964. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12965. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12966. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12967. _ACEOF
  12968. cat >>$CONFIG_STATUS <<_ACEOF
  12969. ac_datarootdir_hack='
  12970. s&@datadir@&$datadir&g
  12971. s&@docdir@&$docdir&g
  12972. s&@infodir@&$infodir&g
  12973. s&@localedir@&$localedir&g
  12974. s&@mandir@&$mandir&g
  12975. s&\\\${datarootdir}&$datarootdir&g' ;;
  12976. esac
  12977. _ACEOF
  12978. # Neutralize VPATH when `$srcdir' = `.'.
  12979. # Shell code in configure.ac might set extrasub.
  12980. # FIXME: do we really want to maintain this feature?
  12981. cat >>$CONFIG_STATUS <<_ACEOF
  12982. sed "$ac_vpsub
  12983. $extrasub
  12984. _ACEOF
  12985. cat >>$CONFIG_STATUS <<\_ACEOF
  12986. :t
  12987. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12988. s&@configure_input@&$configure_input&;t t
  12989. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12990. s&@srcdir@&$ac_srcdir&;t t
  12991. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12992. s&@top_srcdir@&$ac_top_srcdir&;t t
  12993. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12994. s&@builddir@&$ac_builddir&;t t
  12995. s&@abs_builddir@&$ac_abs_builddir&;t t
  12996. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12997. s&@INSTALL@&$ac_INSTALL&;t t
  12998. $ac_datarootdir_hack
  12999. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13000. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13001. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13002. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13003. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13004. which seems to be undefined. Please make sure it is defined." >&5
  13005. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13006. which seems to be undefined. Please make sure it is defined." >&2;}
  13007. rm -f "$tmp/stdin"
  13008. case $ac_file in
  13009. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13010. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13011. esac
  13012. ;;
  13013. :H)
  13014. #
  13015. # CONFIG_HEADER
  13016. #
  13017. _ACEOF
  13018. # Transform confdefs.h into a sed script `conftest.defines', that
  13019. # substitutes the proper values into config.h.in to produce config.h.
  13020. rm -f conftest.defines conftest.tail
  13021. # First, append a space to every undef/define line, to ease matching.
  13022. echo 's/$/ /' >conftest.defines
  13023. # Then, protect against being on the right side of a sed subst, or in
  13024. # an unquoted here document, in config.status. If some macros were
  13025. # called several times there might be several #defines for the same
  13026. # symbol, which is useless. But do not sort them, since the last
  13027. # AC_DEFINE must be honored.
  13028. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13029. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13030. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13031. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13032. # just an empty string.
  13033. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13034. ac_dB='\\)[ (].*,\\1define\\2'
  13035. ac_dC=' '
  13036. ac_dD=' ,'
  13037. uniq confdefs.h |
  13038. sed -n '
  13039. t rset
  13040. :rset
  13041. s/^[ ]*#[ ]*define[ ][ ]*//
  13042. t ok
  13043. d
  13044. :ok
  13045. s/[\\&,]/\\&/g
  13046. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13047. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13048. ' >>conftest.defines
  13049. # Remove the space that was appended to ease matching.
  13050. # Then replace #undef with comments. This is necessary, for
  13051. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13052. # on some systems where configure will not decide to define it.
  13053. # (The regexp can be short, since the line contains either #define or #undef.)
  13054. echo 's/ $//
  13055. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13056. # Break up conftest.defines:
  13057. ac_max_sed_lines=50
  13058. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13059. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13060. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13061. # et cetera.
  13062. ac_in='$ac_file_inputs'
  13063. ac_out='"$tmp/out1"'
  13064. ac_nxt='"$tmp/out2"'
  13065. while :
  13066. do
  13067. # Write a here document:
  13068. cat >>$CONFIG_STATUS <<_ACEOF
  13069. # First, check the format of the line:
  13070. cat >"\$tmp/defines.sed" <<\\CEOF
  13071. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13072. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13073. b
  13074. :def
  13075. _ACEOF
  13076. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13077. echo 'CEOF
  13078. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13079. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13080. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13081. grep . conftest.tail >/dev/null || break
  13082. rm -f conftest.defines
  13083. mv conftest.tail conftest.defines
  13084. done
  13085. rm -f conftest.defines conftest.tail
  13086. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13087. cat >>$CONFIG_STATUS <<\_ACEOF
  13088. if test x"$ac_file" != x-; then
  13089. echo "/* $configure_input */" >"$tmp/config.h"
  13090. cat "$ac_result" >>"$tmp/config.h"
  13091. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13092. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13093. echo "$as_me: $ac_file is unchanged" >&6;}
  13094. else
  13095. rm -f $ac_file
  13096. mv "$tmp/config.h" $ac_file
  13097. fi
  13098. else
  13099. echo "/* $configure_input */"
  13100. cat "$ac_result"
  13101. fi
  13102. rm -f "$tmp/out12"
  13103. # Compute $ac_file's index in $config_headers.
  13104. _am_stamp_count=1
  13105. for _am_header in $config_headers :; do
  13106. case $_am_header in
  13107. $ac_file | $ac_file:* )
  13108. break ;;
  13109. * )
  13110. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13111. esac
  13112. done
  13113. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13114. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13115. X$ac_file : 'X\(//\)[^/]' \| \
  13116. X$ac_file : 'X\(//\)$' \| \
  13117. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13118. echo X$ac_file |
  13119. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13120. s//\1/
  13121. q
  13122. }
  13123. /^X\(\/\/\)[^/].*/{
  13124. s//\1/
  13125. q
  13126. }
  13127. /^X\(\/\/\)$/{
  13128. s//\1/
  13129. q
  13130. }
  13131. /^X\(\/\).*/{
  13132. s//\1/
  13133. q
  13134. }
  13135. s/.*/./; q'`/stamp-h$_am_stamp_count
  13136. ;;
  13137. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13138. echo "$as_me: executing $ac_file commands" >&6;}
  13139. ;;
  13140. esac
  13141. case $ac_file$ac_mode in
  13142. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13143. # Strip MF so we end up with the name of the file.
  13144. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13145. # Check whether this is an Automake generated Makefile or not.
  13146. # We used to match only the files named `Makefile.in', but
  13147. # some people rename them; so instead we look at the file content.
  13148. # Grep'ing the first line is not enough: some people post-process
  13149. # each Makefile.in and add a new line on top of each file to say so.
  13150. # So let's grep whole file.
  13151. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13152. dirpart=`$as_dirname -- "$mf" ||
  13153. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13154. X"$mf" : 'X\(//\)[^/]' \| \
  13155. X"$mf" : 'X\(//\)$' \| \
  13156. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13157. echo X"$mf" |
  13158. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13159. s//\1/
  13160. q
  13161. }
  13162. /^X\(\/\/\)[^/].*/{
  13163. s//\1/
  13164. q
  13165. }
  13166. /^X\(\/\/\)$/{
  13167. s//\1/
  13168. q
  13169. }
  13170. /^X\(\/\).*/{
  13171. s//\1/
  13172. q
  13173. }
  13174. s/.*/./; q'`
  13175. else
  13176. continue
  13177. fi
  13178. # Extract the definition of DEPDIR, am__include, and am__quote
  13179. # from the Makefile without running `make'.
  13180. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13181. test -z "$DEPDIR" && continue
  13182. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13183. test -z "am__include" && continue
  13184. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13185. # When using ansi2knr, U may be empty or an underscore; expand it
  13186. U=`sed -n 's/^U = //p' < "$mf"`
  13187. # Find all dependency output files, they are included files with
  13188. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13189. # simplest approach to changing $(DEPDIR) to its actual value in the
  13190. # expansion.
  13191. for file in `sed -n "
  13192. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13193. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13194. # Make sure the directory exists.
  13195. test -f "$dirpart/$file" && continue
  13196. fdir=`$as_dirname -- "$file" ||
  13197. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13198. X"$file" : 'X\(//\)[^/]' \| \
  13199. X"$file" : 'X\(//\)$' \| \
  13200. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13201. echo X"$file" |
  13202. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13203. s//\1/
  13204. q
  13205. }
  13206. /^X\(\/\/\)[^/].*/{
  13207. s//\1/
  13208. q
  13209. }
  13210. /^X\(\/\/\)$/{
  13211. s//\1/
  13212. q
  13213. }
  13214. /^X\(\/\).*/{
  13215. s//\1/
  13216. q
  13217. }
  13218. s/.*/./; q'`
  13219. { as_dir=$dirpart/$fdir
  13220. case $as_dir in #(
  13221. -*) as_dir=./$as_dir;;
  13222. esac
  13223. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13224. as_dirs=
  13225. while :; do
  13226. case $as_dir in #(
  13227. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13228. *) as_qdir=$as_dir;;
  13229. esac
  13230. as_dirs="'$as_qdir' $as_dirs"
  13231. as_dir=`$as_dirname -- "$as_dir" ||
  13232. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13233. X"$as_dir" : 'X\(//\)[^/]' \| \
  13234. X"$as_dir" : 'X\(//\)$' \| \
  13235. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13236. echo X"$as_dir" |
  13237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13238. s//\1/
  13239. q
  13240. }
  13241. /^X\(\/\/\)[^/].*/{
  13242. s//\1/
  13243. q
  13244. }
  13245. /^X\(\/\/\)$/{
  13246. s//\1/
  13247. q
  13248. }
  13249. /^X\(\/\).*/{
  13250. s//\1/
  13251. q
  13252. }
  13253. s/.*/./; q'`
  13254. test -d "$as_dir" && break
  13255. done
  13256. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13257. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13258. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13259. { (exit 1); exit 1; }; }; }
  13260. # echo "creating $dirpart/$file"
  13261. echo '# dummy' > "$dirpart/$file"
  13262. done
  13263. done
  13264. ;;
  13265. "default-1":C)
  13266. for ac_file in $CONFIG_FILES; do
  13267. # Support "outfile[:infile[:infile...]]"
  13268. case "$ac_file" in
  13269. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13270. esac
  13271. # PO directories have a Makefile.in generated from Makefile.in.in.
  13272. case "$ac_file" in */Makefile.in)
  13273. # Adjust a relative srcdir.
  13274. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13275. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13276. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13277. # In autoconf-2.13 it is called $ac_given_srcdir.
  13278. # In autoconf-2.50 it is called $srcdir.
  13279. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13280. case "$ac_given_srcdir" in
  13281. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13282. /*) top_srcdir="$ac_given_srcdir" ;;
  13283. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13284. esac
  13285. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13286. rm -f "$ac_dir/POTFILES"
  13287. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13288. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13289. POMAKEFILEDEPS="POTFILES.in"
  13290. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13291. # on $ac_dir but don't depend on user-specified configuration
  13292. # parameters.
  13293. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13294. # The LINGUAS file contains the set of available languages.
  13295. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13296. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13297. fi
  13298. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13299. # Hide the ALL_LINGUAS assigment from automake.
  13300. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13301. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13302. else
  13303. # The set of available languages was given in configure.in.
  13304. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13305. fi
  13306. case "$ac_given_srcdir" in
  13307. .) srcdirpre= ;;
  13308. *) srcdirpre='$(srcdir)/' ;;
  13309. esac
  13310. POFILES=
  13311. GMOFILES=
  13312. UPDATEPOFILES=
  13313. DUMMYPOFILES=
  13314. for lang in $ALL_LINGUAS; do
  13315. POFILES="$POFILES $srcdirpre$lang.po"
  13316. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13317. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13318. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13319. done
  13320. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13321. # environment variable.
  13322. INST_LINGUAS=
  13323. if test -n "$ALL_LINGUAS"; then
  13324. for presentlang in $ALL_LINGUAS; do
  13325. useit=no
  13326. if test "%UNSET%" != "$LINGUAS"; then
  13327. desiredlanguages="$LINGUAS"
  13328. else
  13329. desiredlanguages="$ALL_LINGUAS"
  13330. fi
  13331. for desiredlang in $desiredlanguages; do
  13332. # Use the presentlang catalog if desiredlang is
  13333. # a. equal to presentlang, or
  13334. # b. a variant of presentlang (because in this case,
  13335. # presentlang can be used as a fallback for messages
  13336. # which are not translated in the desiredlang catalog).
  13337. case "$desiredlang" in
  13338. "$presentlang"*) useit=yes;;
  13339. esac
  13340. done
  13341. if test $useit = yes; then
  13342. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13343. fi
  13344. done
  13345. fi
  13346. CATALOGS=
  13347. if test -n "$INST_LINGUAS"; then
  13348. for lang in $INST_LINGUAS; do
  13349. CATALOGS="$CATALOGS $lang.gmo"
  13350. done
  13351. fi
  13352. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13353. 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"
  13354. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13355. if test -f "$f"; then
  13356. case "$f" in
  13357. *.orig | *.bak | *~) ;;
  13358. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13359. esac
  13360. fi
  13361. done
  13362. fi
  13363. ;;
  13364. esac
  13365. done ;;
  13366. esac
  13367. done # for ac_tag
  13368. { (exit 0); exit 0; }
  13369. _ACEOF
  13370. chmod +x $CONFIG_STATUS
  13371. ac_clean_files=$ac_clean_files_save
  13372. # configure is writing to config.log, and then calls config.status.
  13373. # config.status does its own redirection, appending to config.log.
  13374. # Unfortunately, on DOS this fails, as config.log is still kept open
  13375. # by configure, so config.status won't be able to write to it; its
  13376. # output is simply discarded. So we exec the FD to /dev/null,
  13377. # effectively closing config.log, so it can be properly (re)opened and
  13378. # appended to by config.status. When coming back to configure, we
  13379. # need to make the FD available again.
  13380. if test "$no_create" != yes; then
  13381. ac_cs_success=:
  13382. ac_config_status_args=
  13383. test "$silent" = yes &&
  13384. ac_config_status_args="$ac_config_status_args --quiet"
  13385. exec 5>/dev/null
  13386. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13387. exec 5>>config.log
  13388. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13389. # would make configure fail if this is the last instruction.
  13390. $ac_cs_success || { (exit 1); exit 1; }
  13391. fi