configure 396 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for aria2c 0.7.1.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='aria2c'
  237. PACKAGE_TARNAME='aria2c'
  238. PACKAGE_VERSION='0.7.1'
  239. PACKAGE_STRING='aria2c 0.7.1'
  240. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  241. ac_unique_file="src/Socket.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPPUNIT_CONFIG CPPUNIT_CFLAGS CPPUNIT_LIBS localedir CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC XML2_CONFIG XML_CPPFLAGS XML_LIBS LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS OPENSSL_LIBS OPENSSL_CFLAGS LIBCARES_LIBS LIBCARES_CPPFLAGS LIBARES_LIBS LIBARES_CPPFLAGS ENABLE_BITTORRENT_TRUE ENABLE_BITTORRENT_FALSE ENABLE_METALINK_TRUE ENABLE_METALINK_FALSE ENABLE_ASYNC_DNS_TRUE ENABLE_ASYNC_DNS_FALSE ALLOCA CPP EGREP MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CXX_set=${CXX+set}
  662. ac_env_CXX_value=$CXX
  663. ac_cv_env_CXX_set=${CXX+set}
  664. ac_cv_env_CXX_value=$CXX
  665. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  666. ac_env_CXXFLAGS_value=$CXXFLAGS
  667. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CC_set=${CC+set}
  678. ac_env_CC_value=$CC
  679. ac_cv_env_CC_set=${CC+set}
  680. ac_cv_env_CC_value=$CC
  681. ac_env_CFLAGS_set=${CFLAGS+set}
  682. ac_env_CFLAGS_value=$CFLAGS
  683. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  684. ac_cv_env_CFLAGS_value=$CFLAGS
  685. ac_env_CPP_set=${CPP+set}
  686. ac_env_CPP_value=$CPP
  687. ac_cv_env_CPP_set=${CPP+set}
  688. ac_cv_env_CPP_value=$CPP
  689. #
  690. # Report the --help message.
  691. #
  692. if test "$ac_init_help" = "long"; then
  693. # Omit some internal or obsolete options to make the list less imposing.
  694. # This message is too long to be a string in the A/UX 3.1 sh.
  695. cat <<_ACEOF
  696. \`configure' configures aria2c 0.7.1 to adapt to many kinds of systems.
  697. Usage: $0 [OPTION]... [VAR=VALUE]...
  698. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  699. VAR=VALUE. See below for descriptions of some of the useful variables.
  700. Defaults for the options are specified in brackets.
  701. Configuration:
  702. -h, --help display this help and exit
  703. --help=short display options specific to this package
  704. --help=recursive display the short help of all the included packages
  705. -V, --version display version information and exit
  706. -q, --quiet, --silent do not print \`checking...' messages
  707. --cache-file=FILE cache test results in FILE [disabled]
  708. -C, --config-cache alias for \`--cache-file=config.cache'
  709. -n, --no-create do not create output files
  710. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  711. _ACEOF
  712. cat <<_ACEOF
  713. Installation directories:
  714. --prefix=PREFIX install architecture-independent files in PREFIX
  715. [$ac_default_prefix]
  716. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  717. [PREFIX]
  718. By default, \`make install' will install all the files in
  719. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  720. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  721. for instance \`--prefix=\$HOME'.
  722. For better control, use the options below.
  723. Fine tuning of the installation directories:
  724. --bindir=DIR user executables [EPREFIX/bin]
  725. --sbindir=DIR system admin executables [EPREFIX/sbin]
  726. --libexecdir=DIR program executables [EPREFIX/libexec]
  727. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  728. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  729. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  730. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  731. --libdir=DIR object code libraries [EPREFIX/lib]
  732. --includedir=DIR C header files [PREFIX/include]
  733. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  734. --infodir=DIR info documentation [PREFIX/info]
  735. --mandir=DIR man documentation [PREFIX/man]
  736. _ACEOF
  737. cat <<\_ACEOF
  738. Program names:
  739. --program-prefix=PREFIX prepend PREFIX to installed program names
  740. --program-suffix=SUFFIX append SUFFIX to installed program names
  741. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  742. System types:
  743. --build=BUILD configure for building on BUILD [guessed]
  744. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  745. _ACEOF
  746. fi
  747. if test -n "$ac_init_help"; then
  748. case $ac_init_help in
  749. short | recursive ) echo "Configuration of aria2c 0.7.1:";;
  750. esac
  751. cat <<\_ACEOF
  752. Optional Features:
  753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  755. --enable-bittorrent enable BitTorrent support. Default: yes
  756. --enable-metalink enable Metalink support. Default: yes
  757. --disable-dependency-tracking speeds up one-time build
  758. --enable-dependency-tracking do not reject slow dependency extractors
  759. --disable-xmltest Do not try to compile and run a test LIBXML program
  760. --disable-nls do not use Native Language Support
  761. --disable-rpath do not hardcode runtime library paths
  762. Optional Packages:
  763. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  764. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  765. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  766. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  767. --with-gnutls use gnutls library if installed. Default: yes
  768. --with-openssl use openssl library if installed. Default: yes
  769. --with-libxml2 use libxml2 library if installed. Default: yes
  770. --with-libares use ares library if installed. Default: yes
  771. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  772. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  773. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  774. --with-libgcrypt-prefix=PFX
  775. prefix where LIBGCRYPT is installed (optional)
  776. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  777. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  778. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  779. --with-gnu-ld assume the C compiler uses GNU ld default=no
  780. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  781. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  782. --with-included-gettext use the GNU gettext library included here
  783. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  784. --without-libintl-prefix don't search for libintl in includedir and libdir
  785. Some influential environment variables:
  786. CXX C++ compiler command
  787. CXXFLAGS C++ compiler flags
  788. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  789. nonstandard directory <lib dir>
  790. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  791. headers in a nonstandard directory <include dir>
  792. CC C compiler command
  793. CFLAGS C compiler flags
  794. CPP C preprocessor
  795. Use these variables to override the choices made by `configure' or to help
  796. it to find libraries and programs with nonstandard names/locations.
  797. Report bugs to <tujikawa@rednoah.com>.
  798. _ACEOF
  799. fi
  800. if test "$ac_init_help" = "recursive"; then
  801. # If there are subdirs, report their specific --help.
  802. ac_popdir=`pwd`
  803. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  804. test -d $ac_dir || continue
  805. ac_builddir=.
  806. if test "$ac_dir" != .; then
  807. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  808. # A "../" for each directory in $ac_dir_suffix.
  809. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  810. else
  811. ac_dir_suffix= ac_top_builddir=
  812. fi
  813. case $srcdir in
  814. .) # No --srcdir option. We are building in place.
  815. ac_srcdir=.
  816. if test -z "$ac_top_builddir"; then
  817. ac_top_srcdir=.
  818. else
  819. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  820. fi ;;
  821. [\\/]* | ?:[\\/]* ) # Absolute path.
  822. ac_srcdir=$srcdir$ac_dir_suffix;
  823. ac_top_srcdir=$srcdir ;;
  824. *) # Relative path.
  825. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  826. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  827. esac
  828. # Do not use `cd foo && pwd` to compute absolute paths, because
  829. # the directories may not exist.
  830. case `pwd` in
  831. .) ac_abs_builddir="$ac_dir";;
  832. *)
  833. case "$ac_dir" in
  834. .) ac_abs_builddir=`pwd`;;
  835. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  836. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  837. esac;;
  838. esac
  839. case $ac_abs_builddir in
  840. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  841. *)
  842. case ${ac_top_builddir}. in
  843. .) ac_abs_top_builddir=$ac_abs_builddir;;
  844. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  845. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  846. esac;;
  847. esac
  848. case $ac_abs_builddir in
  849. .) ac_abs_srcdir=$ac_srcdir;;
  850. *)
  851. case $ac_srcdir in
  852. .) ac_abs_srcdir=$ac_abs_builddir;;
  853. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  854. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  855. esac;;
  856. esac
  857. case $ac_abs_builddir in
  858. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  859. *)
  860. case $ac_top_srcdir in
  861. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  862. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  863. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  864. esac;;
  865. esac
  866. cd $ac_dir
  867. # Check for guested configure; otherwise get Cygnus style configure.
  868. if test -f $ac_srcdir/configure.gnu; then
  869. echo
  870. $SHELL $ac_srcdir/configure.gnu --help=recursive
  871. elif test -f $ac_srcdir/configure; then
  872. echo
  873. $SHELL $ac_srcdir/configure --help=recursive
  874. elif test -f $ac_srcdir/configure.ac ||
  875. test -f $ac_srcdir/configure.in; then
  876. echo
  877. $ac_configure --help
  878. else
  879. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  880. fi
  881. cd "$ac_popdir"
  882. done
  883. fi
  884. test -n "$ac_init_help" && exit 0
  885. if $ac_init_version; then
  886. cat <<\_ACEOF
  887. aria2c configure 0.7.1
  888. generated by GNU Autoconf 2.59
  889. Copyright (C) 2003 Free Software Foundation, Inc.
  890. This configure script is free software; the Free Software Foundation
  891. gives unlimited permission to copy, distribute and modify it.
  892. _ACEOF
  893. exit 0
  894. fi
  895. exec 5>config.log
  896. cat >&5 <<_ACEOF
  897. This file contains any messages produced by compilers while
  898. running configure, to aid debugging if configure makes a mistake.
  899. It was created by aria2c $as_me 0.7.1, which was
  900. generated by GNU Autoconf 2.59. Invocation command line was
  901. $ $0 $@
  902. _ACEOF
  903. {
  904. cat <<_ASUNAME
  905. ## --------- ##
  906. ## Platform. ##
  907. ## --------- ##
  908. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  909. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  910. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  911. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  912. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  913. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  914. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  915. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  916. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  917. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  918. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  919. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  920. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  921. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  922. _ASUNAME
  923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  924. for as_dir in $PATH
  925. do
  926. IFS=$as_save_IFS
  927. test -z "$as_dir" && as_dir=.
  928. echo "PATH: $as_dir"
  929. done
  930. } >&5
  931. cat >&5 <<_ACEOF
  932. ## ----------- ##
  933. ## Core tests. ##
  934. ## ----------- ##
  935. _ACEOF
  936. # Keep a trace of the command line.
  937. # Strip out --no-create and --no-recursion so they do not pile up.
  938. # Strip out --silent because we don't want to record it for future runs.
  939. # Also quote any args containing shell meta-characters.
  940. # Make two passes to allow for proper duplicate-argument suppression.
  941. ac_configure_args=
  942. ac_configure_args0=
  943. ac_configure_args1=
  944. ac_sep=
  945. ac_must_keep_next=false
  946. for ac_pass in 1 2
  947. do
  948. for ac_arg
  949. do
  950. case $ac_arg in
  951. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  952. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  953. | -silent | --silent | --silen | --sile | --sil)
  954. continue ;;
  955. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  956. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  957. esac
  958. case $ac_pass in
  959. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  960. 2)
  961. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  962. if test $ac_must_keep_next = true; then
  963. ac_must_keep_next=false # Got value, back to normal.
  964. else
  965. case $ac_arg in
  966. *=* | --config-cache | -C | -disable-* | --disable-* \
  967. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  968. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  969. | -with-* | --with-* | -without-* | --without-* | --x)
  970. case "$ac_configure_args0 " in
  971. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  972. esac
  973. ;;
  974. -* ) ac_must_keep_next=true ;;
  975. esac
  976. fi
  977. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  978. # Get rid of the leading space.
  979. ac_sep=" "
  980. ;;
  981. esac
  982. done
  983. done
  984. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  985. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  986. # When interrupted or exit'd, cleanup temporary files, and complete
  987. # config.log. We remove comments because anyway the quotes in there
  988. # would cause problems or look ugly.
  989. # WARNING: Be sure not to use single quotes in there, as some shells,
  990. # such as our DU 5.0 friend, will then `close' the trap.
  991. trap 'exit_status=$?
  992. # Save into config.log some information that might help in debugging.
  993. {
  994. echo
  995. cat <<\_ASBOX
  996. ## ---------------- ##
  997. ## Cache variables. ##
  998. ## ---------------- ##
  999. _ASBOX
  1000. echo
  1001. # The following way of writing the cache mishandles newlines in values,
  1002. {
  1003. (set) 2>&1 |
  1004. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1005. *ac_space=\ *)
  1006. sed -n \
  1007. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1008. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1009. ;;
  1010. *)
  1011. sed -n \
  1012. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1013. ;;
  1014. esac;
  1015. }
  1016. echo
  1017. cat <<\_ASBOX
  1018. ## ----------------- ##
  1019. ## Output variables. ##
  1020. ## ----------------- ##
  1021. _ASBOX
  1022. echo
  1023. for ac_var in $ac_subst_vars
  1024. do
  1025. eval ac_val=$`echo $ac_var`
  1026. echo "$ac_var='"'"'$ac_val'"'"'"
  1027. done | sort
  1028. echo
  1029. if test -n "$ac_subst_files"; then
  1030. cat <<\_ASBOX
  1031. ## ------------- ##
  1032. ## Output files. ##
  1033. ## ------------- ##
  1034. _ASBOX
  1035. echo
  1036. for ac_var in $ac_subst_files
  1037. do
  1038. eval ac_val=$`echo $ac_var`
  1039. echo "$ac_var='"'"'$ac_val'"'"'"
  1040. done | sort
  1041. echo
  1042. fi
  1043. if test -s confdefs.h; then
  1044. cat <<\_ASBOX
  1045. ## ----------- ##
  1046. ## confdefs.h. ##
  1047. ## ----------- ##
  1048. _ASBOX
  1049. echo
  1050. sed "/^$/d" confdefs.h | sort
  1051. echo
  1052. fi
  1053. test "$ac_signal" != 0 &&
  1054. echo "$as_me: caught signal $ac_signal"
  1055. echo "$as_me: exit $exit_status"
  1056. } >&5
  1057. rm -f core *.core &&
  1058. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1059. exit $exit_status
  1060. ' 0
  1061. for ac_signal in 1 2 13 15; do
  1062. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1063. done
  1064. ac_signal=0
  1065. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1066. rm -rf conftest* confdefs.h
  1067. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1068. echo >confdefs.h
  1069. # Predefined preprocessor variables.
  1070. cat >>confdefs.h <<_ACEOF
  1071. #define PACKAGE_NAME "$PACKAGE_NAME"
  1072. _ACEOF
  1073. cat >>confdefs.h <<_ACEOF
  1074. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1075. _ACEOF
  1076. cat >>confdefs.h <<_ACEOF
  1077. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1078. _ACEOF
  1079. cat >>confdefs.h <<_ACEOF
  1080. #define PACKAGE_STRING "$PACKAGE_STRING"
  1081. _ACEOF
  1082. cat >>confdefs.h <<_ACEOF
  1083. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1084. _ACEOF
  1085. # Let the site file select an alternate cache file if it wants to.
  1086. # Prefer explicitly selected file to automatically selected ones.
  1087. if test -z "$CONFIG_SITE"; then
  1088. if test "x$prefix" != xNONE; then
  1089. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1090. else
  1091. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1092. fi
  1093. fi
  1094. for ac_site_file in $CONFIG_SITE; do
  1095. if test -r "$ac_site_file"; then
  1096. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1097. echo "$as_me: loading site script $ac_site_file" >&6;}
  1098. sed 's/^/| /' "$ac_site_file" >&5
  1099. . "$ac_site_file"
  1100. fi
  1101. done
  1102. if test -r "$cache_file"; then
  1103. # Some versions of bash will fail to source /dev/null (special
  1104. # files actually), so we avoid doing that.
  1105. if test -f "$cache_file"; then
  1106. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1107. echo "$as_me: loading cache $cache_file" >&6;}
  1108. case $cache_file in
  1109. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1110. *) . ./$cache_file;;
  1111. esac
  1112. fi
  1113. else
  1114. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1115. echo "$as_me: creating cache $cache_file" >&6;}
  1116. >$cache_file
  1117. fi
  1118. # Check that the precious variables saved in the cache have kept the same
  1119. # value.
  1120. ac_cache_corrupted=false
  1121. for ac_var in `(set) 2>&1 |
  1122. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1123. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1124. eval ac_new_set=\$ac_env_${ac_var}_set
  1125. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1126. eval ac_new_val="\$ac_env_${ac_var}_value"
  1127. case $ac_old_set,$ac_new_set in
  1128. set,)
  1129. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1130. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1131. ac_cache_corrupted=: ;;
  1132. ,set)
  1133. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1134. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1135. ac_cache_corrupted=: ;;
  1136. ,);;
  1137. *)
  1138. if test "x$ac_old_val" != "x$ac_new_val"; then
  1139. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1140. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1141. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1142. echo "$as_me: former value: $ac_old_val" >&2;}
  1143. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1144. echo "$as_me: current value: $ac_new_val" >&2;}
  1145. ac_cache_corrupted=:
  1146. fi;;
  1147. esac
  1148. # Pass precious variables to config.status.
  1149. if test "$ac_new_set" = set; then
  1150. case $ac_new_val in
  1151. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1152. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1153. *) ac_arg=$ac_var=$ac_new_val ;;
  1154. esac
  1155. case " $ac_configure_args " in
  1156. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1157. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1158. esac
  1159. fi
  1160. done
  1161. if $ac_cache_corrupted; then
  1162. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1163. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1164. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1165. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1166. { (exit 1); exit 1; }; }
  1167. fi
  1168. ac_ext=c
  1169. ac_cpp='$CPP $CPPFLAGS'
  1170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1173. am__api_version="1.9"
  1174. ac_aux_dir=
  1175. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1176. if test -f $ac_dir/install-sh; then
  1177. ac_aux_dir=$ac_dir
  1178. ac_install_sh="$ac_aux_dir/install-sh -c"
  1179. break
  1180. elif test -f $ac_dir/install.sh; then
  1181. ac_aux_dir=$ac_dir
  1182. ac_install_sh="$ac_aux_dir/install.sh -c"
  1183. break
  1184. elif test -f $ac_dir/shtool; then
  1185. ac_aux_dir=$ac_dir
  1186. ac_install_sh="$ac_aux_dir/shtool install -c"
  1187. break
  1188. fi
  1189. done
  1190. if test -z "$ac_aux_dir"; then
  1191. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1192. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1193. { (exit 1); exit 1; }; }
  1194. fi
  1195. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1196. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1197. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1198. # Find a good install program. We prefer a C program (faster),
  1199. # so one script is as good as another. But avoid the broken or
  1200. # incompatible versions:
  1201. # SysV /etc/install, /usr/sbin/install
  1202. # SunOS /usr/etc/install
  1203. # IRIX /sbin/install
  1204. # AIX /bin/install
  1205. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1206. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1207. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1208. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1209. # OS/2's system install, which has a completely different semantic
  1210. # ./install, which can be erroneously created by make from ./install.sh.
  1211. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1212. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1213. if test -z "$INSTALL"; then
  1214. if test "${ac_cv_path_install+set}" = set; then
  1215. echo $ECHO_N "(cached) $ECHO_C" >&6
  1216. else
  1217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1218. for as_dir in $PATH
  1219. do
  1220. IFS=$as_save_IFS
  1221. test -z "$as_dir" && as_dir=.
  1222. # Account for people who put trailing slashes in PATH elements.
  1223. case $as_dir/ in
  1224. ./ | .// | /cC/* | \
  1225. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1226. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1227. /usr/ucb/* ) ;;
  1228. *)
  1229. # OSF1 and SCO ODT 3.0 have their own names for install.
  1230. # Don't use installbsd from OSF since it installs stuff as root
  1231. # by default.
  1232. for ac_prog in ginstall scoinst install; do
  1233. for ac_exec_ext in '' $ac_executable_extensions; do
  1234. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1235. if test $ac_prog = install &&
  1236. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1237. # AIX install. It has an incompatible calling convention.
  1238. :
  1239. elif test $ac_prog = install &&
  1240. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1241. # program-specific install script used by HP pwplus--don't use.
  1242. :
  1243. else
  1244. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1245. break 3
  1246. fi
  1247. fi
  1248. done
  1249. done
  1250. ;;
  1251. esac
  1252. done
  1253. fi
  1254. if test "${ac_cv_path_install+set}" = set; then
  1255. INSTALL=$ac_cv_path_install
  1256. else
  1257. # As a last resort, use the slow shell script. We don't cache a
  1258. # path for INSTALL within a source directory, because that will
  1259. # break other packages using the cache if that directory is
  1260. # removed, or if the path is relative.
  1261. INSTALL=$ac_install_sh
  1262. fi
  1263. fi
  1264. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1265. echo "${ECHO_T}$INSTALL" >&6
  1266. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1267. # It thinks the first close brace ends the variable substitution.
  1268. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1269. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1270. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1271. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1272. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1273. # Just in case
  1274. sleep 1
  1275. echo timestamp > conftest.file
  1276. # Do `set' in a subshell so we don't clobber the current shell's
  1277. # arguments. Must try -L first in case configure is actually a
  1278. # symlink; some systems play weird games with the mod time of symlinks
  1279. # (eg FreeBSD returns the mod time of the symlink's containing
  1280. # directory).
  1281. if (
  1282. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1283. if test "$*" = "X"; then
  1284. # -L didn't work.
  1285. set X `ls -t $srcdir/configure conftest.file`
  1286. fi
  1287. rm -f conftest.file
  1288. if test "$*" != "X $srcdir/configure conftest.file" \
  1289. && test "$*" != "X conftest.file $srcdir/configure"; then
  1290. # If neither matched, then we have a broken ls. This can happen
  1291. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1292. # broken ls alias from the environment. This has actually
  1293. # happened. Such a system could not be considered "sane".
  1294. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1295. alias in your environment" >&5
  1296. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1297. alias in your environment" >&2;}
  1298. { (exit 1); exit 1; }; }
  1299. fi
  1300. test "$2" = conftest.file
  1301. )
  1302. then
  1303. # Ok.
  1304. :
  1305. else
  1306. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1307. Check your system clock" >&5
  1308. echo "$as_me: error: newly created file is older than distributed files!
  1309. Check your system clock" >&2;}
  1310. { (exit 1); exit 1; }; }
  1311. fi
  1312. echo "$as_me:$LINENO: result: yes" >&5
  1313. echo "${ECHO_T}yes" >&6
  1314. test "$program_prefix" != NONE &&
  1315. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1316. # Use a double $ so make ignores it.
  1317. test "$program_suffix" != NONE &&
  1318. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1319. # Double any \ or $. echo might interpret backslashes.
  1320. # By default was `s,x,x', remove it if useless.
  1321. cat <<\_ACEOF >conftest.sed
  1322. s/[\\$]/&&/g;s/;s,x,x,$//
  1323. _ACEOF
  1324. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1325. rm conftest.sed
  1326. # expand $ac_aux_dir to an absolute path
  1327. am_aux_dir=`cd $ac_aux_dir && pwd`
  1328. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1329. # Use eval to expand $SHELL
  1330. if eval "$MISSING --run true"; then
  1331. am_missing_run="$MISSING --run "
  1332. else
  1333. am_missing_run=
  1334. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1335. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1336. fi
  1337. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1338. # We used to keeping the `.' as first argument, in order to
  1339. # allow $(mkdir_p) to be used without argument. As in
  1340. # $(mkdir_p) $(somedir)
  1341. # where $(somedir) is conditionally defined. However this is wrong
  1342. # for two reasons:
  1343. # 1. if the package is installed by a user who cannot write `.'
  1344. # make install will fail,
  1345. # 2. the above comment should most certainly read
  1346. # $(mkdir_p) $(DESTDIR)$(somedir)
  1347. # so it does not work when $(somedir) is undefined and
  1348. # $(DESTDIR) is not.
  1349. # To support the latter case, we have to write
  1350. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1351. # so the `.' trick is pointless.
  1352. mkdir_p='mkdir -p --'
  1353. else
  1354. # On NextStep and OpenStep, the `mkdir' command does not
  1355. # recognize any option. It will interpret all options as
  1356. # directories to create, and then abort because `.' already
  1357. # exists.
  1358. for d in ./-p ./--version;
  1359. do
  1360. test -d $d && rmdir $d
  1361. done
  1362. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1363. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1364. mkdir_p='$(mkinstalldirs)'
  1365. else
  1366. mkdir_p='$(install_sh) -d'
  1367. fi
  1368. fi
  1369. for ac_prog in gawk mawk nawk awk
  1370. do
  1371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1372. set dummy $ac_prog; ac_word=$2
  1373. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1374. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1375. if test "${ac_cv_prog_AWK+set}" = set; then
  1376. echo $ECHO_N "(cached) $ECHO_C" >&6
  1377. else
  1378. if test -n "$AWK"; then
  1379. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1380. else
  1381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1382. for as_dir in $PATH
  1383. do
  1384. IFS=$as_save_IFS
  1385. test -z "$as_dir" && as_dir=.
  1386. for ac_exec_ext in '' $ac_executable_extensions; do
  1387. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1388. ac_cv_prog_AWK="$ac_prog"
  1389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1390. break 2
  1391. fi
  1392. done
  1393. done
  1394. fi
  1395. fi
  1396. AWK=$ac_cv_prog_AWK
  1397. if test -n "$AWK"; then
  1398. echo "$as_me:$LINENO: result: $AWK" >&5
  1399. echo "${ECHO_T}$AWK" >&6
  1400. else
  1401. echo "$as_me:$LINENO: result: no" >&5
  1402. echo "${ECHO_T}no" >&6
  1403. fi
  1404. test -n "$AWK" && break
  1405. done
  1406. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1407. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1408. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1409. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1410. echo $ECHO_N "(cached) $ECHO_C" >&6
  1411. else
  1412. cat >conftest.make <<\_ACEOF
  1413. all:
  1414. @echo 'ac_maketemp="$(MAKE)"'
  1415. _ACEOF
  1416. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1417. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1418. if test -n "$ac_maketemp"; then
  1419. eval ac_cv_prog_make_${ac_make}_set=yes
  1420. else
  1421. eval ac_cv_prog_make_${ac_make}_set=no
  1422. fi
  1423. rm -f conftest.make
  1424. fi
  1425. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1426. echo "$as_me:$LINENO: result: yes" >&5
  1427. echo "${ECHO_T}yes" >&6
  1428. SET_MAKE=
  1429. else
  1430. echo "$as_me:$LINENO: result: no" >&5
  1431. echo "${ECHO_T}no" >&6
  1432. SET_MAKE="MAKE=${MAKE-make}"
  1433. fi
  1434. rm -rf .tst 2>/dev/null
  1435. mkdir .tst 2>/dev/null
  1436. if test -d .tst; then
  1437. am__leading_dot=.
  1438. else
  1439. am__leading_dot=_
  1440. fi
  1441. rmdir .tst 2>/dev/null
  1442. # test to see if srcdir already configured
  1443. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1444. test -f $srcdir/config.status; then
  1445. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1446. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1447. { (exit 1); exit 1; }; }
  1448. fi
  1449. # test whether we have cygpath
  1450. if test -z "$CYGPATH_W"; then
  1451. if (cygpath --version) >/dev/null 2>/dev/null; then
  1452. CYGPATH_W='cygpath -w'
  1453. else
  1454. CYGPATH_W=echo
  1455. fi
  1456. fi
  1457. # Define the identity of the package.
  1458. PACKAGE='aria2c'
  1459. VERSION='0.7.1'
  1460. cat >>confdefs.h <<_ACEOF
  1461. #define PACKAGE "$PACKAGE"
  1462. _ACEOF
  1463. cat >>confdefs.h <<_ACEOF
  1464. #define VERSION "$VERSION"
  1465. _ACEOF
  1466. # Some tools Automake needs.
  1467. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1468. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1469. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1470. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1471. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1472. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1473. # Installed binaries are usually stripped using `strip' when the user
  1474. # run `make install-strip'. However `strip' might not be the right
  1475. # tool to use in cross-compilation environments, therefore Automake
  1476. # will honor the `STRIP' environment variable to overrule this program.
  1477. if test "$cross_compiling" != no; then
  1478. if test -n "$ac_tool_prefix"; then
  1479. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1480. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1481. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1482. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1483. if test "${ac_cv_prog_STRIP+set}" = set; then
  1484. echo $ECHO_N "(cached) $ECHO_C" >&6
  1485. else
  1486. if test -n "$STRIP"; then
  1487. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1488. else
  1489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1490. for as_dir in $PATH
  1491. do
  1492. IFS=$as_save_IFS
  1493. test -z "$as_dir" && as_dir=.
  1494. for ac_exec_ext in '' $ac_executable_extensions; do
  1495. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1496. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1497. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1498. break 2
  1499. fi
  1500. done
  1501. done
  1502. fi
  1503. fi
  1504. STRIP=$ac_cv_prog_STRIP
  1505. if test -n "$STRIP"; then
  1506. echo "$as_me:$LINENO: result: $STRIP" >&5
  1507. echo "${ECHO_T}$STRIP" >&6
  1508. else
  1509. echo "$as_me:$LINENO: result: no" >&5
  1510. echo "${ECHO_T}no" >&6
  1511. fi
  1512. fi
  1513. if test -z "$ac_cv_prog_STRIP"; then
  1514. ac_ct_STRIP=$STRIP
  1515. # Extract the first word of "strip", so it can be a program name with args.
  1516. set dummy strip; ac_word=$2
  1517. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1518. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1519. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1520. echo $ECHO_N "(cached) $ECHO_C" >&6
  1521. else
  1522. if test -n "$ac_ct_STRIP"; then
  1523. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1524. else
  1525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1526. for as_dir in $PATH
  1527. do
  1528. IFS=$as_save_IFS
  1529. test -z "$as_dir" && as_dir=.
  1530. for ac_exec_ext in '' $ac_executable_extensions; do
  1531. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1532. ac_cv_prog_ac_ct_STRIP="strip"
  1533. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1534. break 2
  1535. fi
  1536. done
  1537. done
  1538. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1539. fi
  1540. fi
  1541. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1542. if test -n "$ac_ct_STRIP"; then
  1543. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1544. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1545. else
  1546. echo "$as_me:$LINENO: result: no" >&5
  1547. echo "${ECHO_T}no" >&6
  1548. fi
  1549. STRIP=$ac_ct_STRIP
  1550. else
  1551. STRIP="$ac_cv_prog_STRIP"
  1552. fi
  1553. fi
  1554. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1555. # We need awk for the "check" target. The system "awk" is bad on
  1556. # some platforms.
  1557. # Always define AMTAR for backward compatibility.
  1558. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1559. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1560. # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
  1561. if test "${with_cppunit_prefix+set}" = set; then
  1562. withval="$with_cppunit_prefix"
  1563. cppunit_config_prefix="$withval"
  1564. else
  1565. cppunit_config_prefix=""
  1566. fi;
  1567. # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
  1568. if test "${with_cppunit_exec_prefix+set}" = set; then
  1569. withval="$with_cppunit_exec_prefix"
  1570. cppunit_config_exec_prefix="$withval"
  1571. else
  1572. cppunit_config_exec_prefix=""
  1573. fi;
  1574. if test x$cppunit_config_exec_prefix != x ; then
  1575. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  1576. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1577. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  1578. fi
  1579. fi
  1580. if test x$cppunit_config_prefix != x ; then
  1581. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  1582. if test x${CPPUNIT_CONFIG+set} != xset ; then
  1583. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  1584. fi
  1585. fi
  1586. # Extract the first word of "cppunit-config", so it can be a program name with args.
  1587. set dummy cppunit-config; ac_word=$2
  1588. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1589. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1590. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  1591. echo $ECHO_N "(cached) $ECHO_C" >&6
  1592. else
  1593. case $CPPUNIT_CONFIG in
  1594. [\\/]* | ?:[\\/]*)
  1595. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  1596. ;;
  1597. *)
  1598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1599. for as_dir in $PATH
  1600. do
  1601. IFS=$as_save_IFS
  1602. test -z "$as_dir" && as_dir=.
  1603. for ac_exec_ext in '' $ac_executable_extensions; do
  1604. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1605. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1606. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1607. break 2
  1608. fi
  1609. done
  1610. done
  1611. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  1612. ;;
  1613. esac
  1614. fi
  1615. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  1616. if test -n "$CPPUNIT_CONFIG"; then
  1617. echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  1618. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
  1619. else
  1620. echo "$as_me:$LINENO: result: no" >&5
  1621. echo "${ECHO_T}no" >&6
  1622. fi
  1623. cppunit_version_min=1.10.2
  1624. echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  1625. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
  1626. no_cppunit=""
  1627. if test "$CPPUNIT_CONFIG" = "no" ; then
  1628. no_cppunit=yes
  1629. else
  1630. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  1631. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  1632. cppunit_version=`$CPPUNIT_CONFIG --version`
  1633. cppunit_major_version=`echo $cppunit_version | \
  1634. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1635. cppunit_minor_version=`echo $cppunit_version | \
  1636. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1637. cppunit_micro_version=`echo $cppunit_version | \
  1638. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1639. cppunit_major_min=`echo $cppunit_version_min | \
  1640. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1641. cppunit_minor_min=`echo $cppunit_version_min | \
  1642. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1643. cppunit_micro_min=`echo $cppunit_version_min | \
  1644. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1645. cppunit_version_proper=`expr \
  1646. $cppunit_major_version \> $cppunit_major_min \| \
  1647. $cppunit_major_version \= $cppunit_major_min \& \
  1648. $cppunit_minor_version \> $cppunit_minor_min \| \
  1649. $cppunit_major_version \= $cppunit_major_min \& \
  1650. $cppunit_minor_version \= $cppunit_minor_min \& \
  1651. $cppunit_micro_version \>= $cppunit_micro_min `
  1652. if test "$cppunit_version_proper" = "1" ; then
  1653. echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  1654. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
  1655. else
  1656. echo "$as_me:$LINENO: result: no" >&5
  1657. echo "${ECHO_T}no" >&6
  1658. no_cppunit=yes
  1659. fi
  1660. fi
  1661. if test "x$no_cppunit" = x ; then
  1662. :
  1663. else
  1664. CPPUNIT_CFLAGS=""
  1665. CPPUNIT_LIBS=""
  1666. :
  1667. fi
  1668. ac_config_headers="$ac_config_headers config.h"
  1669. # Set localedir
  1670. localedir=${datadir}/locale
  1671. # Checks for arguments.
  1672. # Check whether --with-gnutls or --without-gnutls was given.
  1673. if test "${with_gnutls+set}" = set; then
  1674. withval="$with_gnutls"
  1675. with_gnutls=$withval
  1676. else
  1677. with_gnutls=yes
  1678. fi;
  1679. # Check whether --with-openssl or --without-openssl was given.
  1680. if test "${with_openssl+set}" = set; then
  1681. withval="$with_openssl"
  1682. with_openssl=$withval
  1683. else
  1684. with_openssl=yes
  1685. fi;
  1686. # Check whether --with-libxml2 or --without-libxml2 was given.
  1687. if test "${with_libxml2+set}" = set; then
  1688. withval="$with_libxml2"
  1689. with_libxml2=$withval
  1690. else
  1691. with_libxml2=yes
  1692. fi;
  1693. # Check whether --with-libares or --without-libares was given.
  1694. if test "${with_libares+set}" = set; then
  1695. withval="$with_libares"
  1696. with_libares=$withval
  1697. else
  1698. with_libares=yes
  1699. fi;
  1700. # Check whether --enable-bittorrent or --disable-bittorrent was given.
  1701. if test "${enable_bittorrent+set}" = set; then
  1702. enableval="$enable_bittorrent"
  1703. enable_bittorrent=$enableval
  1704. else
  1705. enable_bittorrent=yes
  1706. fi;
  1707. # Check whether --enable-metalink or --disable-metalink was given.
  1708. if test "${enable_metalink+set}" = set; then
  1709. enableval="$enable_metalink"
  1710. enable_metalink=$enableval
  1711. else
  1712. enable_metalink=yes
  1713. fi;
  1714. # Checks for programs.
  1715. ac_ext=cc
  1716. ac_cpp='$CXXCPP $CPPFLAGS'
  1717. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1718. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1719. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1720. if test -n "$ac_tool_prefix"; then
  1721. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1722. do
  1723. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1724. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1725. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1726. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1727. if test "${ac_cv_prog_CXX+set}" = set; then
  1728. echo $ECHO_N "(cached) $ECHO_C" >&6
  1729. else
  1730. if test -n "$CXX"; then
  1731. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1732. else
  1733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1734. for as_dir in $PATH
  1735. do
  1736. IFS=$as_save_IFS
  1737. test -z "$as_dir" && as_dir=.
  1738. for ac_exec_ext in '' $ac_executable_extensions; do
  1739. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1740. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1741. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1742. break 2
  1743. fi
  1744. done
  1745. done
  1746. fi
  1747. fi
  1748. CXX=$ac_cv_prog_CXX
  1749. if test -n "$CXX"; then
  1750. echo "$as_me:$LINENO: result: $CXX" >&5
  1751. echo "${ECHO_T}$CXX" >&6
  1752. else
  1753. echo "$as_me:$LINENO: result: no" >&5
  1754. echo "${ECHO_T}no" >&6
  1755. fi
  1756. test -n "$CXX" && break
  1757. done
  1758. fi
  1759. if test -z "$CXX"; then
  1760. ac_ct_CXX=$CXX
  1761. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1762. do
  1763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1764. set dummy $ac_prog; ac_word=$2
  1765. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1766. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1767. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1768. echo $ECHO_N "(cached) $ECHO_C" >&6
  1769. else
  1770. if test -n "$ac_ct_CXX"; then
  1771. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1772. else
  1773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1774. for as_dir in $PATH
  1775. do
  1776. IFS=$as_save_IFS
  1777. test -z "$as_dir" && as_dir=.
  1778. for ac_exec_ext in '' $ac_executable_extensions; do
  1779. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1780. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1781. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1782. break 2
  1783. fi
  1784. done
  1785. done
  1786. fi
  1787. fi
  1788. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1789. if test -n "$ac_ct_CXX"; then
  1790. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1791. echo "${ECHO_T}$ac_ct_CXX" >&6
  1792. else
  1793. echo "$as_me:$LINENO: result: no" >&5
  1794. echo "${ECHO_T}no" >&6
  1795. fi
  1796. test -n "$ac_ct_CXX" && break
  1797. done
  1798. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1799. CXX=$ac_ct_CXX
  1800. fi
  1801. # Provide some information about the compiler.
  1802. echo "$as_me:$LINENO:" \
  1803. "checking for C++ compiler version" >&5
  1804. ac_compiler=`set X $ac_compile; echo $2`
  1805. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1806. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1807. ac_status=$?
  1808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1809. (exit $ac_status); }
  1810. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1811. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1812. ac_status=$?
  1813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1814. (exit $ac_status); }
  1815. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1816. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1817. ac_status=$?
  1818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1819. (exit $ac_status); }
  1820. cat >conftest.$ac_ext <<_ACEOF
  1821. /* confdefs.h. */
  1822. _ACEOF
  1823. cat confdefs.h >>conftest.$ac_ext
  1824. cat >>conftest.$ac_ext <<_ACEOF
  1825. /* end confdefs.h. */
  1826. int
  1827. main ()
  1828. {
  1829. ;
  1830. return 0;
  1831. }
  1832. _ACEOF
  1833. ac_clean_files_save=$ac_clean_files
  1834. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1835. # Try to create an executable without -o first, disregard a.out.
  1836. # It will help us diagnose broken compilers, and finding out an intuition
  1837. # of exeext.
  1838. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1839. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1840. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1841. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1842. (eval $ac_link_default) 2>&5
  1843. ac_status=$?
  1844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1845. (exit $ac_status); }; then
  1846. # Find the output, starting from the most likely. This scheme is
  1847. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1848. # resort.
  1849. # Be careful to initialize this variable, since it used to be cached.
  1850. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1851. ac_cv_exeext=
  1852. # b.out is created by i960 compilers.
  1853. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1854. do
  1855. test -f "$ac_file" || continue
  1856. case $ac_file in
  1857. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1858. ;;
  1859. conftest.$ac_ext )
  1860. # This is the source file.
  1861. ;;
  1862. [ab].out )
  1863. # We found the default executable, but exeext='' is most
  1864. # certainly right.
  1865. break;;
  1866. *.* )
  1867. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1868. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1869. # but it would be cool to find out if it's true. Does anybody
  1870. # maintain Libtool? --akim.
  1871. export ac_cv_exeext
  1872. break;;
  1873. * )
  1874. break;;
  1875. esac
  1876. done
  1877. else
  1878. echo "$as_me: failed program was:" >&5
  1879. sed 's/^/| /' conftest.$ac_ext >&5
  1880. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1881. See \`config.log' for more details." >&5
  1882. echo "$as_me: error: C++ compiler cannot create executables
  1883. See \`config.log' for more details." >&2;}
  1884. { (exit 77); exit 77; }; }
  1885. fi
  1886. ac_exeext=$ac_cv_exeext
  1887. echo "$as_me:$LINENO: result: $ac_file" >&5
  1888. echo "${ECHO_T}$ac_file" >&6
  1889. # Check the compiler produces executables we can run. If not, either
  1890. # the compiler is broken, or we cross compile.
  1891. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1892. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1893. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1894. # If not cross compiling, check that we can run a simple program.
  1895. if test "$cross_compiling" != yes; then
  1896. if { ac_try='./$ac_file'
  1897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1898. (eval $ac_try) 2>&5
  1899. ac_status=$?
  1900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1901. (exit $ac_status); }; }; then
  1902. cross_compiling=no
  1903. else
  1904. if test "$cross_compiling" = maybe; then
  1905. cross_compiling=yes
  1906. else
  1907. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1908. If you meant to cross compile, use \`--host'.
  1909. See \`config.log' for more details." >&5
  1910. echo "$as_me: error: cannot run C++ compiled programs.
  1911. If you meant to cross compile, use \`--host'.
  1912. See \`config.log' for more details." >&2;}
  1913. { (exit 1); exit 1; }; }
  1914. fi
  1915. fi
  1916. fi
  1917. echo "$as_me:$LINENO: result: yes" >&5
  1918. echo "${ECHO_T}yes" >&6
  1919. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1920. ac_clean_files=$ac_clean_files_save
  1921. # Check the compiler produces executables we can run. If not, either
  1922. # the compiler is broken, or we cross compile.
  1923. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1924. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1925. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1926. echo "${ECHO_T}$cross_compiling" >&6
  1927. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1928. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1929. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1930. (eval $ac_link) 2>&5
  1931. ac_status=$?
  1932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1933. (exit $ac_status); }; then
  1934. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1935. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1936. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1937. # `rm'.
  1938. for ac_file in conftest.exe conftest conftest.*; do
  1939. test -f "$ac_file" || continue
  1940. case $ac_file in
  1941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1942. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1943. export ac_cv_exeext
  1944. break;;
  1945. * ) break;;
  1946. esac
  1947. done
  1948. else
  1949. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1950. See \`config.log' for more details." >&5
  1951. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1952. See \`config.log' for more details." >&2;}
  1953. { (exit 1); exit 1; }; }
  1954. fi
  1955. rm -f conftest$ac_cv_exeext
  1956. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1957. echo "${ECHO_T}$ac_cv_exeext" >&6
  1958. rm -f conftest.$ac_ext
  1959. EXEEXT=$ac_cv_exeext
  1960. ac_exeext=$EXEEXT
  1961. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1962. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1963. if test "${ac_cv_objext+set}" = set; then
  1964. echo $ECHO_N "(cached) $ECHO_C" >&6
  1965. else
  1966. cat >conftest.$ac_ext <<_ACEOF
  1967. /* confdefs.h. */
  1968. _ACEOF
  1969. cat confdefs.h >>conftest.$ac_ext
  1970. cat >>conftest.$ac_ext <<_ACEOF
  1971. /* end confdefs.h. */
  1972. int
  1973. main ()
  1974. {
  1975. ;
  1976. return 0;
  1977. }
  1978. _ACEOF
  1979. rm -f conftest.o conftest.obj
  1980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1981. (eval $ac_compile) 2>&5
  1982. ac_status=$?
  1983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1984. (exit $ac_status); }; then
  1985. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1986. case $ac_file in
  1987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1988. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1989. break;;
  1990. esac
  1991. done
  1992. else
  1993. echo "$as_me: failed program was:" >&5
  1994. sed 's/^/| /' conftest.$ac_ext >&5
  1995. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1996. See \`config.log' for more details." >&5
  1997. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1998. See \`config.log' for more details." >&2;}
  1999. { (exit 1); exit 1; }; }
  2000. fi
  2001. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2002. fi
  2003. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2004. echo "${ECHO_T}$ac_cv_objext" >&6
  2005. OBJEXT=$ac_cv_objext
  2006. ac_objext=$OBJEXT
  2007. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2008. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2009. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2010. echo $ECHO_N "(cached) $ECHO_C" >&6
  2011. else
  2012. cat >conftest.$ac_ext <<_ACEOF
  2013. /* confdefs.h. */
  2014. _ACEOF
  2015. cat confdefs.h >>conftest.$ac_ext
  2016. cat >>conftest.$ac_ext <<_ACEOF
  2017. /* end confdefs.h. */
  2018. int
  2019. main ()
  2020. {
  2021. #ifndef __GNUC__
  2022. choke me
  2023. #endif
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. rm -f conftest.$ac_objext
  2029. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2030. (eval $ac_compile) 2>conftest.er1
  2031. ac_status=$?
  2032. grep -v '^ *+' conftest.er1 >conftest.err
  2033. rm -f conftest.er1
  2034. cat conftest.err >&5
  2035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2036. (exit $ac_status); } &&
  2037. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2039. (eval $ac_try) 2>&5
  2040. ac_status=$?
  2041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2042. (exit $ac_status); }; } &&
  2043. { ac_try='test -s conftest.$ac_objext'
  2044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2045. (eval $ac_try) 2>&5
  2046. ac_status=$?
  2047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2048. (exit $ac_status); }; }; then
  2049. ac_compiler_gnu=yes
  2050. else
  2051. echo "$as_me: failed program was:" >&5
  2052. sed 's/^/| /' conftest.$ac_ext >&5
  2053. ac_compiler_gnu=no
  2054. fi
  2055. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2056. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2057. fi
  2058. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2059. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2060. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2061. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2062. ac_save_CXXFLAGS=$CXXFLAGS
  2063. CXXFLAGS="-g"
  2064. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2065. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2066. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2067. echo $ECHO_N "(cached) $ECHO_C" >&6
  2068. else
  2069. cat >conftest.$ac_ext <<_ACEOF
  2070. /* confdefs.h. */
  2071. _ACEOF
  2072. cat confdefs.h >>conftest.$ac_ext
  2073. cat >>conftest.$ac_ext <<_ACEOF
  2074. /* end confdefs.h. */
  2075. int
  2076. main ()
  2077. {
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. rm -f conftest.$ac_objext
  2083. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2084. (eval $ac_compile) 2>conftest.er1
  2085. ac_status=$?
  2086. grep -v '^ *+' conftest.er1 >conftest.err
  2087. rm -f conftest.er1
  2088. cat conftest.err >&5
  2089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090. (exit $ac_status); } &&
  2091. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2093. (eval $ac_try) 2>&5
  2094. ac_status=$?
  2095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2096. (exit $ac_status); }; } &&
  2097. { ac_try='test -s conftest.$ac_objext'
  2098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2099. (eval $ac_try) 2>&5
  2100. ac_status=$?
  2101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2102. (exit $ac_status); }; }; then
  2103. ac_cv_prog_cxx_g=yes
  2104. else
  2105. echo "$as_me: failed program was:" >&5
  2106. sed 's/^/| /' conftest.$ac_ext >&5
  2107. ac_cv_prog_cxx_g=no
  2108. fi
  2109. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2110. fi
  2111. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2112. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2113. if test "$ac_test_CXXFLAGS" = set; then
  2114. CXXFLAGS=$ac_save_CXXFLAGS
  2115. elif test $ac_cv_prog_cxx_g = yes; then
  2116. if test "$GXX" = yes; then
  2117. CXXFLAGS="-g -O2"
  2118. else
  2119. CXXFLAGS="-g"
  2120. fi
  2121. else
  2122. if test "$GXX" = yes; then
  2123. CXXFLAGS="-O2"
  2124. else
  2125. CXXFLAGS=
  2126. fi
  2127. fi
  2128. for ac_declaration in \
  2129. '' \
  2130. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2131. 'extern "C" void std::exit (int); using std::exit;' \
  2132. 'extern "C" void exit (int) throw ();' \
  2133. 'extern "C" void exit (int);' \
  2134. 'void exit (int);'
  2135. do
  2136. cat >conftest.$ac_ext <<_ACEOF
  2137. /* confdefs.h. */
  2138. _ACEOF
  2139. cat confdefs.h >>conftest.$ac_ext
  2140. cat >>conftest.$ac_ext <<_ACEOF
  2141. /* end confdefs.h. */
  2142. $ac_declaration
  2143. #include <stdlib.h>
  2144. int
  2145. main ()
  2146. {
  2147. exit (42);
  2148. ;
  2149. return 0;
  2150. }
  2151. _ACEOF
  2152. rm -f conftest.$ac_objext
  2153. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2154. (eval $ac_compile) 2>conftest.er1
  2155. ac_status=$?
  2156. grep -v '^ *+' conftest.er1 >conftest.err
  2157. rm -f conftest.er1
  2158. cat conftest.err >&5
  2159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2160. (exit $ac_status); } &&
  2161. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2163. (eval $ac_try) 2>&5
  2164. ac_status=$?
  2165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2166. (exit $ac_status); }; } &&
  2167. { ac_try='test -s conftest.$ac_objext'
  2168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2169. (eval $ac_try) 2>&5
  2170. ac_status=$?
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); }; }; then
  2173. :
  2174. else
  2175. echo "$as_me: failed program was:" >&5
  2176. sed 's/^/| /' conftest.$ac_ext >&5
  2177. continue
  2178. fi
  2179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. cat >conftest.$ac_ext <<_ACEOF
  2181. /* confdefs.h. */
  2182. _ACEOF
  2183. cat confdefs.h >>conftest.$ac_ext
  2184. cat >>conftest.$ac_ext <<_ACEOF
  2185. /* end confdefs.h. */
  2186. $ac_declaration
  2187. int
  2188. main ()
  2189. {
  2190. exit (42);
  2191. ;
  2192. return 0;
  2193. }
  2194. _ACEOF
  2195. rm -f conftest.$ac_objext
  2196. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2197. (eval $ac_compile) 2>conftest.er1
  2198. ac_status=$?
  2199. grep -v '^ *+' conftest.er1 >conftest.err
  2200. rm -f conftest.er1
  2201. cat conftest.err >&5
  2202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2203. (exit $ac_status); } &&
  2204. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2206. (eval $ac_try) 2>&5
  2207. ac_status=$?
  2208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2209. (exit $ac_status); }; } &&
  2210. { ac_try='test -s conftest.$ac_objext'
  2211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2212. (eval $ac_try) 2>&5
  2213. ac_status=$?
  2214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2215. (exit $ac_status); }; }; then
  2216. break
  2217. else
  2218. echo "$as_me: failed program was:" >&5
  2219. sed 's/^/| /' conftest.$ac_ext >&5
  2220. fi
  2221. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2222. done
  2223. rm -f conftest*
  2224. if test -n "$ac_declaration"; then
  2225. echo '#ifdef __cplusplus' >>confdefs.h
  2226. echo $ac_declaration >>confdefs.h
  2227. echo '#endif' >>confdefs.h
  2228. fi
  2229. ac_ext=c
  2230. ac_cpp='$CPP $CPPFLAGS'
  2231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2234. DEPDIR="${am__leading_dot}deps"
  2235. ac_config_commands="$ac_config_commands depfiles"
  2236. am_make=${MAKE-make}
  2237. cat > confinc << 'END'
  2238. am__doit:
  2239. @echo done
  2240. .PHONY: am__doit
  2241. END
  2242. # If we don't find an include directive, just comment out the code.
  2243. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2244. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2245. am__include="#"
  2246. am__quote=
  2247. _am_result=none
  2248. # First try GNU make style include.
  2249. echo "include confinc" > confmf
  2250. # We grep out `Entering directory' and `Leaving directory'
  2251. # messages which can occur if `w' ends up in MAKEFLAGS.
  2252. # In particular we don't look at `^make:' because GNU make might
  2253. # be invoked under some other name (usually "gmake"), in which
  2254. # case it prints its new name instead of `make'.
  2255. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2256. am__include=include
  2257. am__quote=
  2258. _am_result=GNU
  2259. fi
  2260. # Now try BSD make style include.
  2261. if test "$am__include" = "#"; then
  2262. echo '.include "confinc"' > confmf
  2263. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2264. am__include=.include
  2265. am__quote="\""
  2266. _am_result=BSD
  2267. fi
  2268. fi
  2269. echo "$as_me:$LINENO: result: $_am_result" >&5
  2270. echo "${ECHO_T}$_am_result" >&6
  2271. rm -f confinc confmf
  2272. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2273. if test "${enable_dependency_tracking+set}" = set; then
  2274. enableval="$enable_dependency_tracking"
  2275. fi;
  2276. if test "x$enable_dependency_tracking" != xno; then
  2277. am_depcomp="$ac_aux_dir/depcomp"
  2278. AMDEPBACKSLASH='\'
  2279. fi
  2280. if test "x$enable_dependency_tracking" != xno; then
  2281. AMDEP_TRUE=
  2282. AMDEP_FALSE='#'
  2283. else
  2284. AMDEP_TRUE='#'
  2285. AMDEP_FALSE=
  2286. fi
  2287. depcc="$CXX" am_compiler_list=
  2288. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2289. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2290. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2291. echo $ECHO_N "(cached) $ECHO_C" >&6
  2292. else
  2293. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2294. # We make a subdir and do the tests there. Otherwise we can end up
  2295. # making bogus files that we don't know about and never remove. For
  2296. # instance it was reported that on HP-UX the gcc test will end up
  2297. # making a dummy file named `D' -- because `-MD' means `put the output
  2298. # in D'.
  2299. mkdir conftest.dir
  2300. # Copy depcomp to subdir because otherwise we won't find it if we're
  2301. # using a relative directory.
  2302. cp "$am_depcomp" conftest.dir
  2303. cd conftest.dir
  2304. # We will build objects and dependencies in a subdirectory because
  2305. # it helps to detect inapplicable dependency modes. For instance
  2306. # both Tru64's cc and ICC support -MD to output dependencies as a
  2307. # side effect of compilation, but ICC will put the dependencies in
  2308. # the current directory while Tru64 will put them in the object
  2309. # directory.
  2310. mkdir sub
  2311. am_cv_CXX_dependencies_compiler_type=none
  2312. if test "$am_compiler_list" = ""; then
  2313. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2314. fi
  2315. for depmode in $am_compiler_list; do
  2316. # Setup a source with many dependencies, because some compilers
  2317. # like to wrap large dependency lists on column 80 (with \), and
  2318. # we should not choose a depcomp mode which is confused by this.
  2319. #
  2320. # We need to recreate these files for each test, as the compiler may
  2321. # overwrite some of them when testing with obscure command lines.
  2322. # This happens at least with the AIX C compiler.
  2323. : > sub/conftest.c
  2324. for i in 1 2 3 4 5 6; do
  2325. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2326. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2327. # Solaris 8's {/usr,}/bin/sh.
  2328. touch sub/conftst$i.h
  2329. done
  2330. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2331. case $depmode in
  2332. nosideeffect)
  2333. # after this tag, mechanisms are not by side-effect, so they'll
  2334. # only be used when explicitly requested
  2335. if test "x$enable_dependency_tracking" = xyes; then
  2336. continue
  2337. else
  2338. break
  2339. fi
  2340. ;;
  2341. none) break ;;
  2342. esac
  2343. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2344. # mode. It turns out that the SunPro C++ compiler does not properly
  2345. # handle `-M -o', and we need to detect this.
  2346. if depmode=$depmode \
  2347. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2348. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2349. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2350. >/dev/null 2>conftest.err &&
  2351. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2352. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2353. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2354. # icc doesn't choke on unknown options, it will just issue warnings
  2355. # or remarks (even with -Werror). So we grep stderr for any message
  2356. # that says an option was ignored or not supported.
  2357. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2358. # icc: Command line warning: ignoring option '-M'; no argument required
  2359. # The diagnosis changed in icc 8.0:
  2360. # icc: Command line remark: option '-MP' not supported
  2361. if (grep 'ignoring option' conftest.err ||
  2362. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2363. am_cv_CXX_dependencies_compiler_type=$depmode
  2364. break
  2365. fi
  2366. fi
  2367. done
  2368. cd ..
  2369. rm -rf conftest.dir
  2370. else
  2371. am_cv_CXX_dependencies_compiler_type=none
  2372. fi
  2373. fi
  2374. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2375. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2376. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2377. if
  2378. test "x$enable_dependency_tracking" != xno \
  2379. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2380. am__fastdepCXX_TRUE=
  2381. am__fastdepCXX_FALSE='#'
  2382. else
  2383. am__fastdepCXX_TRUE='#'
  2384. am__fastdepCXX_FALSE=
  2385. fi
  2386. ac_ext=c
  2387. ac_cpp='$CPP $CPPFLAGS'
  2388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2391. if test -n "$ac_tool_prefix"; then
  2392. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2393. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2394. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2396. if test "${ac_cv_prog_CC+set}" = set; then
  2397. echo $ECHO_N "(cached) $ECHO_C" >&6
  2398. else
  2399. if test -n "$CC"; then
  2400. ac_cv_prog_CC="$CC" # Let the user override the test.
  2401. else
  2402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2403. for as_dir in $PATH
  2404. do
  2405. IFS=$as_save_IFS
  2406. test -z "$as_dir" && as_dir=.
  2407. for ac_exec_ext in '' $ac_executable_extensions; do
  2408. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2409. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. fi
  2416. fi
  2417. CC=$ac_cv_prog_CC
  2418. if test -n "$CC"; then
  2419. echo "$as_me:$LINENO: result: $CC" >&5
  2420. echo "${ECHO_T}$CC" >&6
  2421. else
  2422. echo "$as_me:$LINENO: result: no" >&5
  2423. echo "${ECHO_T}no" >&6
  2424. fi
  2425. fi
  2426. if test -z "$ac_cv_prog_CC"; then
  2427. ac_ct_CC=$CC
  2428. # Extract the first word of "gcc", so it can be a program name with args.
  2429. set dummy gcc; ac_word=$2
  2430. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2431. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2432. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2433. echo $ECHO_N "(cached) $ECHO_C" >&6
  2434. else
  2435. if test -n "$ac_ct_CC"; then
  2436. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2437. else
  2438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2439. for as_dir in $PATH
  2440. do
  2441. IFS=$as_save_IFS
  2442. test -z "$as_dir" && as_dir=.
  2443. for ac_exec_ext in '' $ac_executable_extensions; do
  2444. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2445. ac_cv_prog_ac_ct_CC="gcc"
  2446. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2447. break 2
  2448. fi
  2449. done
  2450. done
  2451. fi
  2452. fi
  2453. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2454. if test -n "$ac_ct_CC"; then
  2455. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2456. echo "${ECHO_T}$ac_ct_CC" >&6
  2457. else
  2458. echo "$as_me:$LINENO: result: no" >&5
  2459. echo "${ECHO_T}no" >&6
  2460. fi
  2461. CC=$ac_ct_CC
  2462. else
  2463. CC="$ac_cv_prog_CC"
  2464. fi
  2465. if test -z "$CC"; then
  2466. if test -n "$ac_tool_prefix"; then
  2467. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2468. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2469. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2470. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2471. if test "${ac_cv_prog_CC+set}" = set; then
  2472. echo $ECHO_N "(cached) $ECHO_C" >&6
  2473. else
  2474. if test -n "$CC"; then
  2475. ac_cv_prog_CC="$CC" # Let the user override the test.
  2476. else
  2477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2478. for as_dir in $PATH
  2479. do
  2480. IFS=$as_save_IFS
  2481. test -z "$as_dir" && as_dir=.
  2482. for ac_exec_ext in '' $ac_executable_extensions; do
  2483. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2484. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2485. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2486. break 2
  2487. fi
  2488. done
  2489. done
  2490. fi
  2491. fi
  2492. CC=$ac_cv_prog_CC
  2493. if test -n "$CC"; then
  2494. echo "$as_me:$LINENO: result: $CC" >&5
  2495. echo "${ECHO_T}$CC" >&6
  2496. else
  2497. echo "$as_me:$LINENO: result: no" >&5
  2498. echo "${ECHO_T}no" >&6
  2499. fi
  2500. fi
  2501. if test -z "$ac_cv_prog_CC"; then
  2502. ac_ct_CC=$CC
  2503. # Extract the first word of "cc", so it can be a program name with args.
  2504. set dummy cc; ac_word=$2
  2505. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2506. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2507. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2508. echo $ECHO_N "(cached) $ECHO_C" >&6
  2509. else
  2510. if test -n "$ac_ct_CC"; then
  2511. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2512. else
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. for as_dir in $PATH
  2515. do
  2516. IFS=$as_save_IFS
  2517. test -z "$as_dir" && as_dir=.
  2518. for ac_exec_ext in '' $ac_executable_extensions; do
  2519. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2520. ac_cv_prog_ac_ct_CC="cc"
  2521. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522. break 2
  2523. fi
  2524. done
  2525. done
  2526. fi
  2527. fi
  2528. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2529. if test -n "$ac_ct_CC"; then
  2530. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2531. echo "${ECHO_T}$ac_ct_CC" >&6
  2532. else
  2533. echo "$as_me:$LINENO: result: no" >&5
  2534. echo "${ECHO_T}no" >&6
  2535. fi
  2536. CC=$ac_ct_CC
  2537. else
  2538. CC="$ac_cv_prog_CC"
  2539. fi
  2540. fi
  2541. if test -z "$CC"; then
  2542. # Extract the first word of "cc", so it can be a program name with args.
  2543. set dummy cc; ac_word=$2
  2544. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2545. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2546. if test "${ac_cv_prog_CC+set}" = set; then
  2547. echo $ECHO_N "(cached) $ECHO_C" >&6
  2548. else
  2549. if test -n "$CC"; then
  2550. ac_cv_prog_CC="$CC" # Let the user override the test.
  2551. else
  2552. ac_prog_rejected=no
  2553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2554. for as_dir in $PATH
  2555. do
  2556. IFS=$as_save_IFS
  2557. test -z "$as_dir" && as_dir=.
  2558. for ac_exec_ext in '' $ac_executable_extensions; do
  2559. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2560. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2561. ac_prog_rejected=yes
  2562. continue
  2563. fi
  2564. ac_cv_prog_CC="cc"
  2565. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566. break 2
  2567. fi
  2568. done
  2569. done
  2570. if test $ac_prog_rejected = yes; then
  2571. # We found a bogon in the path, so make sure we never use it.
  2572. set dummy $ac_cv_prog_CC
  2573. shift
  2574. if test $# != 0; then
  2575. # We chose a different compiler from the bogus one.
  2576. # However, it has the same basename, so the bogon will be chosen
  2577. # first if we set CC to just the basename; use the full file name.
  2578. shift
  2579. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2580. fi
  2581. fi
  2582. fi
  2583. fi
  2584. CC=$ac_cv_prog_CC
  2585. if test -n "$CC"; then
  2586. echo "$as_me:$LINENO: result: $CC" >&5
  2587. echo "${ECHO_T}$CC" >&6
  2588. else
  2589. echo "$as_me:$LINENO: result: no" >&5
  2590. echo "${ECHO_T}no" >&6
  2591. fi
  2592. fi
  2593. if test -z "$CC"; then
  2594. if test -n "$ac_tool_prefix"; then
  2595. for ac_prog in cl
  2596. do
  2597. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2598. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2599. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2600. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2601. if test "${ac_cv_prog_CC+set}" = set; then
  2602. echo $ECHO_N "(cached) $ECHO_C" >&6
  2603. else
  2604. if test -n "$CC"; then
  2605. ac_cv_prog_CC="$CC" # Let the user override the test.
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_exec_ext in '' $ac_executable_extensions; do
  2613. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2614. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2615. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2616. break 2
  2617. fi
  2618. done
  2619. done
  2620. fi
  2621. fi
  2622. CC=$ac_cv_prog_CC
  2623. if test -n "$CC"; then
  2624. echo "$as_me:$LINENO: result: $CC" >&5
  2625. echo "${ECHO_T}$CC" >&6
  2626. else
  2627. echo "$as_me:$LINENO: result: no" >&5
  2628. echo "${ECHO_T}no" >&6
  2629. fi
  2630. test -n "$CC" && break
  2631. done
  2632. fi
  2633. if test -z "$CC"; then
  2634. ac_ct_CC=$CC
  2635. for ac_prog in cl
  2636. do
  2637. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2638. set dummy $ac_prog; ac_word=$2
  2639. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2640. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2641. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2642. echo $ECHO_N "(cached) $ECHO_C" >&6
  2643. else
  2644. if test -n "$ac_ct_CC"; then
  2645. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2646. else
  2647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2648. for as_dir in $PATH
  2649. do
  2650. IFS=$as_save_IFS
  2651. test -z "$as_dir" && as_dir=.
  2652. for ac_exec_ext in '' $ac_executable_extensions; do
  2653. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2654. ac_cv_prog_ac_ct_CC="$ac_prog"
  2655. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2656. break 2
  2657. fi
  2658. done
  2659. done
  2660. fi
  2661. fi
  2662. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2663. if test -n "$ac_ct_CC"; then
  2664. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2665. echo "${ECHO_T}$ac_ct_CC" >&6
  2666. else
  2667. echo "$as_me:$LINENO: result: no" >&5
  2668. echo "${ECHO_T}no" >&6
  2669. fi
  2670. test -n "$ac_ct_CC" && break
  2671. done
  2672. CC=$ac_ct_CC
  2673. fi
  2674. fi
  2675. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2676. See \`config.log' for more details." >&5
  2677. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2678. See \`config.log' for more details." >&2;}
  2679. { (exit 1); exit 1; }; }
  2680. # Provide some information about the compiler.
  2681. echo "$as_me:$LINENO:" \
  2682. "checking for C compiler version" >&5
  2683. ac_compiler=`set X $ac_compile; echo $2`
  2684. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2685. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2686. ac_status=$?
  2687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2688. (exit $ac_status); }
  2689. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2690. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2691. ac_status=$?
  2692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2693. (exit $ac_status); }
  2694. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2695. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2696. ac_status=$?
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); }
  2699. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2700. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2701. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2702. echo $ECHO_N "(cached) $ECHO_C" >&6
  2703. else
  2704. cat >conftest.$ac_ext <<_ACEOF
  2705. /* confdefs.h. */
  2706. _ACEOF
  2707. cat confdefs.h >>conftest.$ac_ext
  2708. cat >>conftest.$ac_ext <<_ACEOF
  2709. /* end confdefs.h. */
  2710. int
  2711. main ()
  2712. {
  2713. #ifndef __GNUC__
  2714. choke me
  2715. #endif
  2716. ;
  2717. return 0;
  2718. }
  2719. _ACEOF
  2720. rm -f conftest.$ac_objext
  2721. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2722. (eval $ac_compile) 2>conftest.er1
  2723. ac_status=$?
  2724. grep -v '^ *+' conftest.er1 >conftest.err
  2725. rm -f conftest.er1
  2726. cat conftest.err >&5
  2727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2728. (exit $ac_status); } &&
  2729. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2731. (eval $ac_try) 2>&5
  2732. ac_status=$?
  2733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2734. (exit $ac_status); }; } &&
  2735. { ac_try='test -s conftest.$ac_objext'
  2736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2737. (eval $ac_try) 2>&5
  2738. ac_status=$?
  2739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2740. (exit $ac_status); }; }; then
  2741. ac_compiler_gnu=yes
  2742. else
  2743. echo "$as_me: failed program was:" >&5
  2744. sed 's/^/| /' conftest.$ac_ext >&5
  2745. ac_compiler_gnu=no
  2746. fi
  2747. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2748. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2749. fi
  2750. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2751. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2752. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2753. ac_test_CFLAGS=${CFLAGS+set}
  2754. ac_save_CFLAGS=$CFLAGS
  2755. CFLAGS="-g"
  2756. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2757. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2758. if test "${ac_cv_prog_cc_g+set}" = set; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. else
  2761. cat >conftest.$ac_ext <<_ACEOF
  2762. /* confdefs.h. */
  2763. _ACEOF
  2764. cat confdefs.h >>conftest.$ac_ext
  2765. cat >>conftest.$ac_ext <<_ACEOF
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. rm -f conftest.$ac_objext
  2775. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2776. (eval $ac_compile) 2>conftest.er1
  2777. ac_status=$?
  2778. grep -v '^ *+' conftest.er1 >conftest.err
  2779. rm -f conftest.er1
  2780. cat conftest.err >&5
  2781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2782. (exit $ac_status); } &&
  2783. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2785. (eval $ac_try) 2>&5
  2786. ac_status=$?
  2787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2788. (exit $ac_status); }; } &&
  2789. { ac_try='test -s conftest.$ac_objext'
  2790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2791. (eval $ac_try) 2>&5
  2792. ac_status=$?
  2793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2794. (exit $ac_status); }; }; then
  2795. ac_cv_prog_cc_g=yes
  2796. else
  2797. echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799. ac_cv_prog_cc_g=no
  2800. fi
  2801. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2802. fi
  2803. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2804. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2805. if test "$ac_test_CFLAGS" = set; then
  2806. CFLAGS=$ac_save_CFLAGS
  2807. elif test $ac_cv_prog_cc_g = yes; then
  2808. if test "$GCC" = yes; then
  2809. CFLAGS="-g -O2"
  2810. else
  2811. CFLAGS="-g"
  2812. fi
  2813. else
  2814. if test "$GCC" = yes; then
  2815. CFLAGS="-O2"
  2816. else
  2817. CFLAGS=
  2818. fi
  2819. fi
  2820. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2821. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2822. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2823. echo $ECHO_N "(cached) $ECHO_C" >&6
  2824. else
  2825. ac_cv_prog_cc_stdc=no
  2826. ac_save_CC=$CC
  2827. cat >conftest.$ac_ext <<_ACEOF
  2828. /* confdefs.h. */
  2829. _ACEOF
  2830. cat confdefs.h >>conftest.$ac_ext
  2831. cat >>conftest.$ac_ext <<_ACEOF
  2832. /* end confdefs.h. */
  2833. #include <stdarg.h>
  2834. #include <stdio.h>
  2835. #include <sys/types.h>
  2836. #include <sys/stat.h>
  2837. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2838. struct buf { int x; };
  2839. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2840. static char *e (p, i)
  2841. char **p;
  2842. int i;
  2843. {
  2844. return p[i];
  2845. }
  2846. static char *f (char * (*g) (char **, int), char **p, ...)
  2847. {
  2848. char *s;
  2849. va_list v;
  2850. va_start (v,p);
  2851. s = g (p, va_arg (v,int));
  2852. va_end (v);
  2853. return s;
  2854. }
  2855. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2856. function prototypes and stuff, but not '\xHH' hex character constants.
  2857. These don't provoke an error unfortunately, instead are silently treated
  2858. as 'x'. The following induces an error, until -std1 is added to get
  2859. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2860. array size at least. It's necessary to write '\x00'==0 to get something
  2861. that's true only with -std1. */
  2862. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2863. int test (int i, double x);
  2864. struct s1 {int (*f) (int a);};
  2865. struct s2 {int (*f) (double a);};
  2866. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2867. int argc;
  2868. char **argv;
  2869. int
  2870. main ()
  2871. {
  2872. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2873. ;
  2874. return 0;
  2875. }
  2876. _ACEOF
  2877. # Don't try gcc -ansi; that turns off useful extensions and
  2878. # breaks some systems' header files.
  2879. # AIX -qlanglvl=ansi
  2880. # Ultrix and OSF/1 -std1
  2881. # HP-UX 10.20 and later -Ae
  2882. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2883. # SVR4 -Xc -D__EXTENSIONS__
  2884. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2885. do
  2886. CC="$ac_save_CC $ac_arg"
  2887. rm -f conftest.$ac_objext
  2888. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2889. (eval $ac_compile) 2>conftest.er1
  2890. ac_status=$?
  2891. grep -v '^ *+' conftest.er1 >conftest.err
  2892. rm -f conftest.er1
  2893. cat conftest.err >&5
  2894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2895. (exit $ac_status); } &&
  2896. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2898. (eval $ac_try) 2>&5
  2899. ac_status=$?
  2900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2901. (exit $ac_status); }; } &&
  2902. { ac_try='test -s conftest.$ac_objext'
  2903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2904. (eval $ac_try) 2>&5
  2905. ac_status=$?
  2906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2907. (exit $ac_status); }; }; then
  2908. ac_cv_prog_cc_stdc=$ac_arg
  2909. break
  2910. else
  2911. echo "$as_me: failed program was:" >&5
  2912. sed 's/^/| /' conftest.$ac_ext >&5
  2913. fi
  2914. rm -f conftest.err conftest.$ac_objext
  2915. done
  2916. rm -f conftest.$ac_ext conftest.$ac_objext
  2917. CC=$ac_save_CC
  2918. fi
  2919. case "x$ac_cv_prog_cc_stdc" in
  2920. x|xno)
  2921. echo "$as_me:$LINENO: result: none needed" >&5
  2922. echo "${ECHO_T}none needed" >&6 ;;
  2923. *)
  2924. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2925. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2926. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2927. esac
  2928. # Some people use a C++ compiler to compile C. Since we use `exit',
  2929. # in C++ we need to declare it. In case someone uses the same compiler
  2930. # for both compiling C and C++ we need to have the C++ compiler decide
  2931. # the declaration of exit, since it's the most demanding environment.
  2932. cat >conftest.$ac_ext <<_ACEOF
  2933. #ifndef __cplusplus
  2934. choke me
  2935. #endif
  2936. _ACEOF
  2937. rm -f conftest.$ac_objext
  2938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2939. (eval $ac_compile) 2>conftest.er1
  2940. ac_status=$?
  2941. grep -v '^ *+' conftest.er1 >conftest.err
  2942. rm -f conftest.er1
  2943. cat conftest.err >&5
  2944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2945. (exit $ac_status); } &&
  2946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2948. (eval $ac_try) 2>&5
  2949. ac_status=$?
  2950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2951. (exit $ac_status); }; } &&
  2952. { ac_try='test -s conftest.$ac_objext'
  2953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2954. (eval $ac_try) 2>&5
  2955. ac_status=$?
  2956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2957. (exit $ac_status); }; }; then
  2958. for ac_declaration in \
  2959. '' \
  2960. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2961. 'extern "C" void std::exit (int); using std::exit;' \
  2962. 'extern "C" void exit (int) throw ();' \
  2963. 'extern "C" void exit (int);' \
  2964. 'void exit (int);'
  2965. do
  2966. cat >conftest.$ac_ext <<_ACEOF
  2967. /* confdefs.h. */
  2968. _ACEOF
  2969. cat confdefs.h >>conftest.$ac_ext
  2970. cat >>conftest.$ac_ext <<_ACEOF
  2971. /* end confdefs.h. */
  2972. $ac_declaration
  2973. #include <stdlib.h>
  2974. int
  2975. main ()
  2976. {
  2977. exit (42);
  2978. ;
  2979. return 0;
  2980. }
  2981. _ACEOF
  2982. rm -f conftest.$ac_objext
  2983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2984. (eval $ac_compile) 2>conftest.er1
  2985. ac_status=$?
  2986. grep -v '^ *+' conftest.er1 >conftest.err
  2987. rm -f conftest.er1
  2988. cat conftest.err >&5
  2989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2990. (exit $ac_status); } &&
  2991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2993. (eval $ac_try) 2>&5
  2994. ac_status=$?
  2995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. (exit $ac_status); }; } &&
  2997. { ac_try='test -s conftest.$ac_objext'
  2998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2999. (eval $ac_try) 2>&5
  3000. ac_status=$?
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); }; }; then
  3003. :
  3004. else
  3005. echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. continue
  3008. fi
  3009. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3010. cat >conftest.$ac_ext <<_ACEOF
  3011. /* confdefs.h. */
  3012. _ACEOF
  3013. cat confdefs.h >>conftest.$ac_ext
  3014. cat >>conftest.$ac_ext <<_ACEOF
  3015. /* end confdefs.h. */
  3016. $ac_declaration
  3017. int
  3018. main ()
  3019. {
  3020. exit (42);
  3021. ;
  3022. return 0;
  3023. }
  3024. _ACEOF
  3025. rm -f conftest.$ac_objext
  3026. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3027. (eval $ac_compile) 2>conftest.er1
  3028. ac_status=$?
  3029. grep -v '^ *+' conftest.er1 >conftest.err
  3030. rm -f conftest.er1
  3031. cat conftest.err >&5
  3032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3033. (exit $ac_status); } &&
  3034. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3036. (eval $ac_try) 2>&5
  3037. ac_status=$?
  3038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3039. (exit $ac_status); }; } &&
  3040. { ac_try='test -s conftest.$ac_objext'
  3041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3042. (eval $ac_try) 2>&5
  3043. ac_status=$?
  3044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3045. (exit $ac_status); }; }; then
  3046. break
  3047. else
  3048. echo "$as_me: failed program was:" >&5
  3049. sed 's/^/| /' conftest.$ac_ext >&5
  3050. fi
  3051. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3052. done
  3053. rm -f conftest*
  3054. if test -n "$ac_declaration"; then
  3055. echo '#ifdef __cplusplus' >>confdefs.h
  3056. echo $ac_declaration >>confdefs.h
  3057. echo '#endif' >>confdefs.h
  3058. fi
  3059. else
  3060. echo "$as_me: failed program was:" >&5
  3061. sed 's/^/| /' conftest.$ac_ext >&5
  3062. fi
  3063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3064. ac_ext=c
  3065. ac_cpp='$CPP $CPPFLAGS'
  3066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3069. depcc="$CC" am_compiler_list=
  3070. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3071. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3072. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3073. echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. else
  3075. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3076. # We make a subdir and do the tests there. Otherwise we can end up
  3077. # making bogus files that we don't know about and never remove. For
  3078. # instance it was reported that on HP-UX the gcc test will end up
  3079. # making a dummy file named `D' -- because `-MD' means `put the output
  3080. # in D'.
  3081. mkdir conftest.dir
  3082. # Copy depcomp to subdir because otherwise we won't find it if we're
  3083. # using a relative directory.
  3084. cp "$am_depcomp" conftest.dir
  3085. cd conftest.dir
  3086. # We will build objects and dependencies in a subdirectory because
  3087. # it helps to detect inapplicable dependency modes. For instance
  3088. # both Tru64's cc and ICC support -MD to output dependencies as a
  3089. # side effect of compilation, but ICC will put the dependencies in
  3090. # the current directory while Tru64 will put them in the object
  3091. # directory.
  3092. mkdir sub
  3093. am_cv_CC_dependencies_compiler_type=none
  3094. if test "$am_compiler_list" = ""; then
  3095. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3096. fi
  3097. for depmode in $am_compiler_list; do
  3098. # Setup a source with many dependencies, because some compilers
  3099. # like to wrap large dependency lists on column 80 (with \), and
  3100. # we should not choose a depcomp mode which is confused by this.
  3101. #
  3102. # We need to recreate these files for each test, as the compiler may
  3103. # overwrite some of them when testing with obscure command lines.
  3104. # This happens at least with the AIX C compiler.
  3105. : > sub/conftest.c
  3106. for i in 1 2 3 4 5 6; do
  3107. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3108. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3109. # Solaris 8's {/usr,}/bin/sh.
  3110. touch sub/conftst$i.h
  3111. done
  3112. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3113. case $depmode in
  3114. nosideeffect)
  3115. # after this tag, mechanisms are not by side-effect, so they'll
  3116. # only be used when explicitly requested
  3117. if test "x$enable_dependency_tracking" = xyes; then
  3118. continue
  3119. else
  3120. break
  3121. fi
  3122. ;;
  3123. none) break ;;
  3124. esac
  3125. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3126. # mode. It turns out that the SunPro C++ compiler does not properly
  3127. # handle `-M -o', and we need to detect this.
  3128. if depmode=$depmode \
  3129. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3130. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3131. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3132. >/dev/null 2>conftest.err &&
  3133. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3134. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3135. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3136. # icc doesn't choke on unknown options, it will just issue warnings
  3137. # or remarks (even with -Werror). So we grep stderr for any message
  3138. # that says an option was ignored or not supported.
  3139. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3140. # icc: Command line warning: ignoring option '-M'; no argument required
  3141. # The diagnosis changed in icc 8.0:
  3142. # icc: Command line remark: option '-MP' not supported
  3143. if (grep 'ignoring option' conftest.err ||
  3144. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3145. am_cv_CC_dependencies_compiler_type=$depmode
  3146. break
  3147. fi
  3148. fi
  3149. done
  3150. cd ..
  3151. rm -rf conftest.dir
  3152. else
  3153. am_cv_CC_dependencies_compiler_type=none
  3154. fi
  3155. fi
  3156. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3157. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3158. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3159. if
  3160. test "x$enable_dependency_tracking" != xno \
  3161. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3162. am__fastdepCC_TRUE=
  3163. am__fastdepCC_FALSE='#'
  3164. else
  3165. am__fastdepCC_TRUE='#'
  3166. am__fastdepCC_FALSE=
  3167. fi
  3168. # Find a good install program. We prefer a C program (faster),
  3169. # so one script is as good as another. But avoid the broken or
  3170. # incompatible versions:
  3171. # SysV /etc/install, /usr/sbin/install
  3172. # SunOS /usr/etc/install
  3173. # IRIX /sbin/install
  3174. # AIX /bin/install
  3175. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3176. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3177. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3178. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3179. # OS/2's system install, which has a completely different semantic
  3180. # ./install, which can be erroneously created by make from ./install.sh.
  3181. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3182. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3183. if test -z "$INSTALL"; then
  3184. if test "${ac_cv_path_install+set}" = set; then
  3185. echo $ECHO_N "(cached) $ECHO_C" >&6
  3186. else
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. # Account for people who put trailing slashes in PATH elements.
  3193. case $as_dir/ in
  3194. ./ | .// | /cC/* | \
  3195. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3196. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3197. /usr/ucb/* ) ;;
  3198. *)
  3199. # OSF1 and SCO ODT 3.0 have their own names for install.
  3200. # Don't use installbsd from OSF since it installs stuff as root
  3201. # by default.
  3202. for ac_prog in ginstall scoinst install; do
  3203. for ac_exec_ext in '' $ac_executable_extensions; do
  3204. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3205. if test $ac_prog = install &&
  3206. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3207. # AIX install. It has an incompatible calling convention.
  3208. :
  3209. elif test $ac_prog = install &&
  3210. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3211. # program-specific install script used by HP pwplus--don't use.
  3212. :
  3213. else
  3214. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3215. break 3
  3216. fi
  3217. fi
  3218. done
  3219. done
  3220. ;;
  3221. esac
  3222. done
  3223. fi
  3224. if test "${ac_cv_path_install+set}" = set; then
  3225. INSTALL=$ac_cv_path_install
  3226. else
  3227. # As a last resort, use the slow shell script. We don't cache a
  3228. # path for INSTALL within a source directory, because that will
  3229. # break other packages using the cache if that directory is
  3230. # removed, or if the path is relative.
  3231. INSTALL=$ac_install_sh
  3232. fi
  3233. fi
  3234. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3235. echo "${ECHO_T}$INSTALL" >&6
  3236. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3237. # It thinks the first close brace ends the variable substitution.
  3238. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3239. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3240. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3241. if test -n "$ac_tool_prefix"; then
  3242. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3243. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3246. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3247. echo $ECHO_N "(cached) $ECHO_C" >&6
  3248. else
  3249. if test -n "$RANLIB"; then
  3250. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3251. else
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3259. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3261. break 2
  3262. fi
  3263. done
  3264. done
  3265. fi
  3266. fi
  3267. RANLIB=$ac_cv_prog_RANLIB
  3268. if test -n "$RANLIB"; then
  3269. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3270. echo "${ECHO_T}$RANLIB" >&6
  3271. else
  3272. echo "$as_me:$LINENO: result: no" >&5
  3273. echo "${ECHO_T}no" >&6
  3274. fi
  3275. fi
  3276. if test -z "$ac_cv_prog_RANLIB"; then
  3277. ac_ct_RANLIB=$RANLIB
  3278. # Extract the first word of "ranlib", so it can be a program name with args.
  3279. set dummy ranlib; ac_word=$2
  3280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3282. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3283. echo $ECHO_N "(cached) $ECHO_C" >&6
  3284. else
  3285. if test -n "$ac_ct_RANLIB"; then
  3286. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3287. else
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH
  3290. do
  3291. IFS=$as_save_IFS
  3292. test -z "$as_dir" && as_dir=.
  3293. for ac_exec_ext in '' $ac_executable_extensions; do
  3294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3295. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3297. break 2
  3298. fi
  3299. done
  3300. done
  3301. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3302. fi
  3303. fi
  3304. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3305. if test -n "$ac_ct_RANLIB"; then
  3306. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3307. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3308. else
  3309. echo "$as_me:$LINENO: result: no" >&5
  3310. echo "${ECHO_T}no" >&6
  3311. fi
  3312. RANLIB=$ac_ct_RANLIB
  3313. else
  3314. RANLIB="$ac_cv_prog_RANLIB"
  3315. fi
  3316. for ac_prog in 'bison -y' byacc
  3317. do
  3318. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3319. set dummy $ac_prog; ac_word=$2
  3320. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3321. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3322. if test "${ac_cv_prog_YACC+set}" = set; then
  3323. echo $ECHO_N "(cached) $ECHO_C" >&6
  3324. else
  3325. if test -n "$YACC"; then
  3326. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3327. else
  3328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3329. for as_dir in $PATH
  3330. do
  3331. IFS=$as_save_IFS
  3332. test -z "$as_dir" && as_dir=.
  3333. for ac_exec_ext in '' $ac_executable_extensions; do
  3334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3335. ac_cv_prog_YACC="$ac_prog"
  3336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3337. break 2
  3338. fi
  3339. done
  3340. done
  3341. fi
  3342. fi
  3343. YACC=$ac_cv_prog_YACC
  3344. if test -n "$YACC"; then
  3345. echo "$as_me:$LINENO: result: $YACC" >&5
  3346. echo "${ECHO_T}$YACC" >&6
  3347. else
  3348. echo "$as_me:$LINENO: result: no" >&5
  3349. echo "${ECHO_T}no" >&6
  3350. fi
  3351. test -n "$YACC" && break
  3352. done
  3353. test -n "$YACC" || YACC="yacc"
  3354. # Checks for libraries.
  3355. if test "x$with_libxml2" = "xyes"; then
  3356. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  3357. if test "${with_xml_prefix+set}" = set; then
  3358. withval="$with_xml_prefix"
  3359. xml_config_prefix="$withval"
  3360. else
  3361. xml_config_prefix=""
  3362. fi;
  3363. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  3364. if test "${with_xml_exec_prefix+set}" = set; then
  3365. withval="$with_xml_exec_prefix"
  3366. xml_config_exec_prefix="$withval"
  3367. else
  3368. xml_config_exec_prefix=""
  3369. fi;
  3370. # Check whether --enable-xmltest or --disable-xmltest was given.
  3371. if test "${enable_xmltest+set}" = set; then
  3372. enableval="$enable_xmltest"
  3373. else
  3374. enable_xmltest=yes
  3375. fi;
  3376. if test x$xml_config_exec_prefix != x ; then
  3377. xml_config_args="$xml_config_args"
  3378. if test x${XML2_CONFIG+set} != xset ; then
  3379. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3380. fi
  3381. fi
  3382. if test x$xml_config_prefix != x ; then
  3383. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3384. if test x${XML2_CONFIG+set} != xset ; then
  3385. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3386. fi
  3387. fi
  3388. # Extract the first word of "xml2-config", so it can be a program name with args.
  3389. set dummy xml2-config; ac_word=$2
  3390. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3391. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3392. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3393. echo $ECHO_N "(cached) $ECHO_C" >&6
  3394. else
  3395. case $XML2_CONFIG in
  3396. [\\/]* | ?:[\\/]*)
  3397. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3398. ;;
  3399. *)
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3407. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3408. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3409. break 2
  3410. fi
  3411. done
  3412. done
  3413. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3414. ;;
  3415. esac
  3416. fi
  3417. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3418. if test -n "$XML2_CONFIG"; then
  3419. echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3420. echo "${ECHO_T}$XML2_CONFIG" >&6
  3421. else
  3422. echo "$as_me:$LINENO: result: no" >&5
  3423. echo "${ECHO_T}no" >&6
  3424. fi
  3425. min_xml_version=2.6.26
  3426. echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3427. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  3428. no_xml=""
  3429. if test "$XML2_CONFIG" = "no" ; then
  3430. no_xml=yes
  3431. else
  3432. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3433. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3434. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3435. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3436. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3437. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3438. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3439. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3440. if test "x$enable_xmltest" = "xyes" ; then
  3441. ac_save_CPPFLAGS="$CPPFLAGS"
  3442. ac_save_LIBS="$LIBS"
  3443. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3444. LIBS="$XML_LIBS $LIBS"
  3445. rm -f conf.xmltest
  3446. if test "$cross_compiling" = yes; then
  3447. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3448. else
  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. #include <stdlib.h>
  3456. #include <stdio.h>
  3457. #include <string.h>
  3458. #include <libxml/xmlversion.h>
  3459. int
  3460. main()
  3461. {
  3462. int xml_major_version, xml_minor_version, xml_micro_version;
  3463. int major, minor, micro;
  3464. char *tmp_version;
  3465. system("touch conf.xmltest");
  3466. /* Capture xml2-config output via autoconf/configure variables */
  3467. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3468. tmp_version = (char *)strdup("$min_xml_version");
  3469. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3470. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3471. exit(1);
  3472. }
  3473. free(tmp_version);
  3474. /* Capture the version information from the header files */
  3475. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3476. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3477. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3478. exit(1);
  3479. }
  3480. free(tmp_version);
  3481. /* Compare xml2-config output to the libxml headers */
  3482. if ((xml_major_version != $xml_config_major_version) ||
  3483. (xml_minor_version != $xml_config_minor_version) ||
  3484. (xml_micro_version != $xml_config_micro_version))
  3485. {
  3486. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3487. xml_major_version, xml_minor_version, xml_micro_version);
  3488. printf("*** xml2-config (version %d.%d.%d)\n",
  3489. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3490. return 1;
  3491. }
  3492. /* Compare the headers to the library to make sure we match */
  3493. /* Less than ideal -- doesn't provide us with return value feedback,
  3494. * only exits if there's a serious mismatch between header and library.
  3495. */
  3496. LIBXML_TEST_VERSION;
  3497. /* Test that the library is greater than our minimum version */
  3498. if ((xml_major_version > major) ||
  3499. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3500. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3501. (xml_micro_version >= micro)))
  3502. {
  3503. return 0;
  3504. }
  3505. else
  3506. {
  3507. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3508. xml_major_version, xml_minor_version, xml_micro_version);
  3509. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3510. major, minor, micro);
  3511. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3512. printf("***\n");
  3513. printf("*** If you have already installed a sufficiently new version, this error\n");
  3514. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3515. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3516. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3517. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3518. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3519. printf("*** so that the correct libraries are found at run-time))\n");
  3520. }
  3521. return 1;
  3522. }
  3523. _ACEOF
  3524. rm -f conftest$ac_exeext
  3525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3526. (eval $ac_link) 2>&5
  3527. ac_status=$?
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3531. (eval $ac_try) 2>&5
  3532. ac_status=$?
  3533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3534. (exit $ac_status); }; }; then
  3535. :
  3536. else
  3537. echo "$as_me: program exited with status $ac_status" >&5
  3538. echo "$as_me: failed program was:" >&5
  3539. sed 's/^/| /' conftest.$ac_ext >&5
  3540. ( exit $ac_status )
  3541. no_xml=yes
  3542. fi
  3543. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3544. fi
  3545. CPPFLAGS="$ac_save_CPPFLAGS"
  3546. LIBS="$ac_save_LIBS"
  3547. fi
  3548. fi
  3549. if test "x$no_xml" = x ; then
  3550. echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  3551. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  3552. have_libxml2=yes
  3553. else
  3554. echo "$as_me:$LINENO: result: no" >&5
  3555. echo "${ECHO_T}no" >&6
  3556. if test "$XML2_CONFIG" = "no" ; then
  3557. echo "*** The xml2-config script installed by LIBXML could not be found"
  3558. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  3559. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  3560. echo "*** full path to xml2-config."
  3561. else
  3562. if test -f conf.xmltest ; then
  3563. :
  3564. else
  3565. echo "*** Could not run libxml test program, checking why..."
  3566. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3567. LIBS="$LIBS $XML_LIBS"
  3568. cat >conftest.$ac_ext <<_ACEOF
  3569. /* confdefs.h. */
  3570. _ACEOF
  3571. cat confdefs.h >>conftest.$ac_ext
  3572. cat >>conftest.$ac_ext <<_ACEOF
  3573. /* end confdefs.h. */
  3574. #include <libxml/xmlversion.h>
  3575. #include <stdio.h>
  3576. int
  3577. main ()
  3578. {
  3579. LIBXML_TEST_VERSION; return 0;
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. rm -f conftest.$ac_objext conftest$ac_exeext
  3585. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3586. (eval $ac_link) 2>conftest.er1
  3587. ac_status=$?
  3588. grep -v '^ *+' conftest.er1 >conftest.err
  3589. rm -f conftest.er1
  3590. cat conftest.err >&5
  3591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); } &&
  3593. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3595. (eval $ac_try) 2>&5
  3596. ac_status=$?
  3597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); }; } &&
  3599. { ac_try='test -s conftest$ac_exeext'
  3600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3601. (eval $ac_try) 2>&5
  3602. ac_status=$?
  3603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3604. (exit $ac_status); }; }; then
  3605. echo "*** The test program compiled, but did not run. This usually means"
  3606. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  3607. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  3608. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3609. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3610. echo "*** is required on your system"
  3611. echo "***"
  3612. echo "*** If you have an old version installed, it is best to remove it, although"
  3613. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3614. else
  3615. echo "$as_me: failed program was:" >&5
  3616. sed 's/^/| /' conftest.$ac_ext >&5
  3617. echo "*** The test program failed to compile or link. See the file config.log for the"
  3618. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  3619. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  3620. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  3621. fi
  3622. rm -f conftest.err conftest.$ac_objext \
  3623. conftest$ac_exeext conftest.$ac_ext
  3624. CPPFLAGS="$ac_save_CPPFLAGS"
  3625. LIBS="$ac_save_LIBS"
  3626. fi
  3627. fi
  3628. XML_CPPFLAGS=""
  3629. XML_LIBS=""
  3630. :
  3631. fi
  3632. rm -f conf.xmltest
  3633. if test "x$have_libxml2" = "xyes"; then
  3634. cat >>confdefs.h <<\_ACEOF
  3635. #define HAVE_LIBXML2 1
  3636. _ACEOF
  3637. fi
  3638. fi
  3639. if test "x$with_gnutls" = "xyes"; then
  3640. # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
  3641. if test "${with_libgnutls_prefix+set}" = set; then
  3642. withval="$with_libgnutls_prefix"
  3643. libgnutls_config_prefix="$withval"
  3644. else
  3645. libgnutls_config_prefix=""
  3646. fi;
  3647. if test x$libgnutls_config_prefix != x ; then
  3648. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  3649. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  3650. fi
  3651. fi
  3652. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  3653. set dummy libgnutls-config; ac_word=$2
  3654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3656. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  3657. echo $ECHO_N "(cached) $ECHO_C" >&6
  3658. else
  3659. case $LIBGNUTLS_CONFIG in
  3660. [\\/]* | ?:[\\/]*)
  3661. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  3662. ;;
  3663. *)
  3664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3665. for as_dir in $PATH
  3666. do
  3667. IFS=$as_save_IFS
  3668. test -z "$as_dir" && as_dir=.
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3671. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3672. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3673. break 2
  3674. fi
  3675. done
  3676. done
  3677. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  3678. ;;
  3679. esac
  3680. fi
  3681. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  3682. if test -n "$LIBGNUTLS_CONFIG"; then
  3683. echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  3684. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
  3685. else
  3686. echo "$as_me:$LINENO: result: no" >&5
  3687. echo "${ECHO_T}no" >&6
  3688. fi
  3689. min_libgnutls_version=1.2.9
  3690. echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  3691. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
  3692. no_libgnutls=""
  3693. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3694. no_libgnutls=yes
  3695. else
  3696. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  3697. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  3698. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  3699. ac_save_CFLAGS="$CFLAGS"
  3700. ac_save_LIBS="$LIBS"
  3701. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3702. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3703. rm -f conf.libgnutlstest
  3704. if test "$cross_compiling" = yes; then
  3705. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3706. else
  3707. cat >conftest.$ac_ext <<_ACEOF
  3708. /* confdefs.h. */
  3709. _ACEOF
  3710. cat confdefs.h >>conftest.$ac_ext
  3711. cat >>conftest.$ac_ext <<_ACEOF
  3712. /* end confdefs.h. */
  3713. #include <stdio.h>
  3714. #include <stdlib.h>
  3715. #include <string.h>
  3716. #include <gnutls/gnutls.h>
  3717. int
  3718. main ()
  3719. {
  3720. system ("touch conf.libgnutlstest");
  3721. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  3722. {
  3723. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  3724. "$libgnutls_config_version", gnutls_check_version(NULL) );
  3725. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  3726. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  3727. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  3728. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  3729. printf("*** required on your system.\n");
  3730. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  3731. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  3732. printf("*** before re-running configure\n");
  3733. }
  3734. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  3735. {
  3736. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  3737. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  3738. }
  3739. else
  3740. {
  3741. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  3742. {
  3743. return 0;
  3744. }
  3745. else
  3746. {
  3747. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  3748. gnutls_check_version(NULL) );
  3749. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  3750. "$min_libgnutls_version" );
  3751. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  3752. printf("*** \n");
  3753. printf("*** If you have already installed a sufficiently new version, this error\n");
  3754. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  3755. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3756. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  3757. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  3758. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3759. printf("*** so that the correct libraries are found at run-time))\n");
  3760. }
  3761. }
  3762. return 1;
  3763. }
  3764. _ACEOF
  3765. rm -f conftest$ac_exeext
  3766. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3767. (eval $ac_link) 2>&5
  3768. ac_status=$?
  3769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3770. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3772. (eval $ac_try) 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); }; }; then
  3776. :
  3777. else
  3778. echo "$as_me: program exited with status $ac_status" >&5
  3779. echo "$as_me: failed program was:" >&5
  3780. sed 's/^/| /' conftest.$ac_ext >&5
  3781. ( exit $ac_status )
  3782. no_libgnutls=yes
  3783. fi
  3784. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3785. fi
  3786. CFLAGS="$ac_save_CFLAGS"
  3787. LIBS="$ac_save_LIBS"
  3788. fi
  3789. if test "x$no_libgnutls" = x ; then
  3790. echo "$as_me:$LINENO: result: yes" >&5
  3791. echo "${ECHO_T}yes" >&6
  3792. have_libgnutls=yes
  3793. else
  3794. if test -f conf.libgnutlstest ; then
  3795. :
  3796. else
  3797. echo "$as_me:$LINENO: result: no" >&5
  3798. echo "${ECHO_T}no" >&6
  3799. fi
  3800. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  3801. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  3802. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  3803. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  3804. echo "*** full path to libgnutls-config."
  3805. else
  3806. if test -f conf.libgnutlstest ; then
  3807. :
  3808. else
  3809. echo "*** Could not run libgnutls test program, checking why..."
  3810. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  3811. LIBS="$LIBS $LIBGNUTLS_LIBS"
  3812. cat >conftest.$ac_ext <<_ACEOF
  3813. /* confdefs.h. */
  3814. _ACEOF
  3815. cat confdefs.h >>conftest.$ac_ext
  3816. cat >>conftest.$ac_ext <<_ACEOF
  3817. /* end confdefs.h. */
  3818. #include <stdio.h>
  3819. #include <stdlib.h>
  3820. #include <string.h>
  3821. #include <gnutls/gnutls.h>
  3822. int
  3823. main ()
  3824. {
  3825. return !!gnutls_check_version(NULL);
  3826. ;
  3827. return 0;
  3828. }
  3829. _ACEOF
  3830. rm -f conftest.$ac_objext conftest$ac_exeext
  3831. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3832. (eval $ac_link) 2>conftest.er1
  3833. ac_status=$?
  3834. grep -v '^ *+' conftest.er1 >conftest.err
  3835. rm -f conftest.er1
  3836. cat conftest.err >&5
  3837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3838. (exit $ac_status); } &&
  3839. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3841. (eval $ac_try) 2>&5
  3842. ac_status=$?
  3843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3844. (exit $ac_status); }; } &&
  3845. { ac_try='test -s conftest$ac_exeext'
  3846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3847. (eval $ac_try) 2>&5
  3848. ac_status=$?
  3849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850. (exit $ac_status); }; }; then
  3851. echo "*** The test program compiled, but did not run. This usually means"
  3852. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  3853. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  3854. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3855. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3856. echo "*** is required on your system"
  3857. echo "***"
  3858. echo "*** If you have an old version installed, it is best to remove it, although"
  3859. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3860. echo "***"
  3861. else
  3862. echo "$as_me: failed program was:" >&5
  3863. sed 's/^/| /' conftest.$ac_ext >&5
  3864. echo "*** The test program failed to compile or link. See the file config.log for the"
  3865. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  3866. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  3867. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  3868. fi
  3869. rm -f conftest.err conftest.$ac_objext \
  3870. conftest$ac_exeext conftest.$ac_ext
  3871. CFLAGS="$ac_save_CFLAGS"
  3872. LIBS="$ac_save_LIBS"
  3873. fi
  3874. fi
  3875. LIBGNUTLS_CFLAGS=""
  3876. LIBGNUTLS_LIBS=""
  3877. :
  3878. fi
  3879. rm -f conf.libgnutlstest
  3880. if test "x$have_libgnutls" = "xyes"; then
  3881. cat >>confdefs.h <<\_ACEOF
  3882. #define HAVE_LIBGNUTLS 1
  3883. _ACEOF
  3884. fi
  3885. fi
  3886. if test "x$have_libgnutls" = "xyes"; then
  3887. # Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
  3888. if test "${with_libgcrypt_prefix+set}" = set; then
  3889. withval="$with_libgcrypt_prefix"
  3890. libgcrypt_config_prefix="$withval"
  3891. else
  3892. libgcrypt_config_prefix=""
  3893. fi;
  3894. if test x$libgcrypt_config_prefix != x ; then
  3895. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  3896. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  3897. fi
  3898. fi
  3899. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  3900. set dummy libgcrypt-config; ac_word=$2
  3901. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3902. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3903. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  3904. echo $ECHO_N "(cached) $ECHO_C" >&6
  3905. else
  3906. case $LIBGCRYPT_CONFIG in
  3907. [\\/]* | ?:[\\/]*)
  3908. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  3909. ;;
  3910. *)
  3911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3912. for as_dir in $PATH
  3913. do
  3914. IFS=$as_save_IFS
  3915. test -z "$as_dir" && as_dir=.
  3916. for ac_exec_ext in '' $ac_executable_extensions; do
  3917. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3918. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3919. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3920. break 2
  3921. fi
  3922. done
  3923. done
  3924. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  3925. ;;
  3926. esac
  3927. fi
  3928. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  3929. if test -n "$LIBGCRYPT_CONFIG"; then
  3930. echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  3931. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
  3932. else
  3933. echo "$as_me:$LINENO: result: no" >&5
  3934. echo "${ECHO_T}no" >&6
  3935. fi
  3936. tmp=1.2.2
  3937. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  3938. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  3939. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  3940. else
  3941. req_libgcrypt_api=0
  3942. min_libgcrypt_version="$tmp"
  3943. fi
  3944. echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  3945. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
  3946. ok=no
  3947. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  3948. req_major=`echo $min_libgcrypt_version | \
  3949. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3950. req_minor=`echo $min_libgcrypt_version | \
  3951. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3952. req_micro=`echo $min_libgcrypt_version | \
  3953. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3954. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  3955. major=`echo $libgcrypt_config_version | \
  3956. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  3957. minor=`echo $libgcrypt_config_version | \
  3958. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  3959. micro=`echo $libgcrypt_config_version | \
  3960. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  3961. if test "$major" -gt "$req_major"; then
  3962. ok=yes
  3963. else
  3964. if test "$major" -eq "$req_major"; then
  3965. if test "$minor" -gt "$req_minor"; then
  3966. ok=yes
  3967. else
  3968. if test "$minor" -eq "$req_minor"; then
  3969. if test "$micro" -ge "$req_micro"; then
  3970. ok=yes
  3971. fi
  3972. fi
  3973. fi
  3974. fi
  3975. fi
  3976. fi
  3977. if test $ok = yes; then
  3978. echo "$as_me:$LINENO: result: yes" >&5
  3979. echo "${ECHO_T}yes" >&6
  3980. else
  3981. echo "$as_me:$LINENO: result: no" >&5
  3982. echo "${ECHO_T}no" >&6
  3983. fi
  3984. if test $ok = yes; then
  3985. # If we have a recent libgcrypt, we should also check that the
  3986. # API is compatible
  3987. if test "$req_libgcrypt_api" -gt 0 ; then
  3988. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  3989. if test "$tmp" -gt 0 ; then
  3990. echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  3991. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
  3992. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  3993. echo "$as_me:$LINENO: result: okay" >&5
  3994. echo "${ECHO_T}okay" >&6
  3995. else
  3996. ok=no
  3997. echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  3998. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
  3999. fi
  4000. fi
  4001. fi
  4002. fi
  4003. if test $ok = yes; then
  4004. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4005. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4006. have_libgcrypt=yes
  4007. else
  4008. LIBGCRYPT_CFLAGS=""
  4009. LIBGCRYPT_LIBS=""
  4010. :
  4011. fi
  4012. if test "x$have_libgcrypt" = "xyes"; then
  4013. cat >>confdefs.h <<\_ACEOF
  4014. #define HAVE_LIBGCRYPT 1
  4015. _ACEOF
  4016. fi
  4017. fi
  4018. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4019. # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
  4020. if test "${with_openssl_prefix+set}" = set; then
  4021. withval="$with_openssl_prefix"
  4022. openssl_prefix=$withval
  4023. else
  4024. openssl_prefix=""
  4025. fi;
  4026. if test "x$openssl_prefix" = "x"; then
  4027. openssl_prefix="/usr/local"
  4028. fi
  4029. openssl_prefix_lib=$openssl_prefix/lib
  4030. openssl_prefix_include=$openssl_prefix/include
  4031. LIBS_save=$LIBS
  4032. CPPFLAGS_save=$CPPFLAGS
  4033. LIBS="-L$openssl_prefix_lib $LIBS"
  4034. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4035. echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4036. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
  4037. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4038. echo $ECHO_N "(cached) $ECHO_C" >&6
  4039. else
  4040. ac_check_lib_save_LIBS=$LIBS
  4041. LIBS="-lssl $LIBS"
  4042. cat >conftest.$ac_ext <<_ACEOF
  4043. /* confdefs.h. */
  4044. _ACEOF
  4045. cat confdefs.h >>conftest.$ac_ext
  4046. cat >>conftest.$ac_ext <<_ACEOF
  4047. /* end confdefs.h. */
  4048. /* Override any gcc2 internal prototype to avoid an error. */
  4049. #ifdef __cplusplus
  4050. extern "C"
  4051. #endif
  4052. /* We use char because int might match the return type of a gcc2
  4053. builtin and then its argument prototype would still apply. */
  4054. char SSL_library_init ();
  4055. int
  4056. main ()
  4057. {
  4058. SSL_library_init ();
  4059. ;
  4060. return 0;
  4061. }
  4062. _ACEOF
  4063. rm -f conftest.$ac_objext conftest$ac_exeext
  4064. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4065. (eval $ac_link) 2>conftest.er1
  4066. ac_status=$?
  4067. grep -v '^ *+' conftest.er1 >conftest.err
  4068. rm -f conftest.er1
  4069. cat conftest.err >&5
  4070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4071. (exit $ac_status); } &&
  4072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4074. (eval $ac_try) 2>&5
  4075. ac_status=$?
  4076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4077. (exit $ac_status); }; } &&
  4078. { ac_try='test -s conftest$ac_exeext'
  4079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4080. (eval $ac_try) 2>&5
  4081. ac_status=$?
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); }; }; then
  4084. ac_cv_lib_ssl_SSL_library_init=yes
  4085. else
  4086. echo "$as_me: failed program was:" >&5
  4087. sed 's/^/| /' conftest.$ac_ext >&5
  4088. ac_cv_lib_ssl_SSL_library_init=no
  4089. fi
  4090. rm -f conftest.err conftest.$ac_objext \
  4091. conftest$ac_exeext conftest.$ac_ext
  4092. LIBS=$ac_check_lib_save_LIBS
  4093. fi
  4094. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4095. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
  4096. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4097. have_openssl=yes
  4098. fi
  4099. if test "x$have_openssl" = "xyes"; then
  4100. have_openssl=no
  4101. echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4102. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
  4103. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4104. echo $ECHO_N "(cached) $ECHO_C" >&6
  4105. else
  4106. ac_check_lib_save_LIBS=$LIBS
  4107. LIBS="-lcrypto $LIBS"
  4108. cat >conftest.$ac_ext <<_ACEOF
  4109. /* confdefs.h. */
  4110. _ACEOF
  4111. cat confdefs.h >>conftest.$ac_ext
  4112. cat >>conftest.$ac_ext <<_ACEOF
  4113. /* end confdefs.h. */
  4114. int
  4115. main ()
  4116. {
  4117. main ();
  4118. ;
  4119. return 0;
  4120. }
  4121. _ACEOF
  4122. rm -f conftest.$ac_objext conftest$ac_exeext
  4123. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4124. (eval $ac_link) 2>conftest.er1
  4125. ac_status=$?
  4126. grep -v '^ *+' conftest.er1 >conftest.err
  4127. rm -f conftest.er1
  4128. cat conftest.err >&5
  4129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4130. (exit $ac_status); } &&
  4131. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4133. (eval $ac_try) 2>&5
  4134. ac_status=$?
  4135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4136. (exit $ac_status); }; } &&
  4137. { ac_try='test -s conftest$ac_exeext'
  4138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4139. (eval $ac_try) 2>&5
  4140. ac_status=$?
  4141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4142. (exit $ac_status); }; }; then
  4143. ac_cv_lib_crypto_main=yes
  4144. else
  4145. echo "$as_me: failed program was:" >&5
  4146. sed 's/^/| /' conftest.$ac_ext >&5
  4147. ac_cv_lib_crypto_main=no
  4148. fi
  4149. rm -f conftest.err conftest.$ac_objext \
  4150. conftest$ac_exeext conftest.$ac_ext
  4151. LIBS=$ac_check_lib_save_LIBS
  4152. fi
  4153. echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4154. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
  4155. if test $ac_cv_lib_crypto_main = yes; then
  4156. have_openssl=yes
  4157. fi
  4158. if test "x$have_openssl" = "xyes"; then
  4159. cat >>confdefs.h <<\_ACEOF
  4160. #define HAVE_LIBSSL 1
  4161. _ACEOF
  4162. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4163. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4164. fi
  4165. fi
  4166. LIBS=$LIBS_save
  4167. CPPFLAGS=$CPPFLAGS_save
  4168. fi
  4169. if test "x$with_libcares" = "xyes"; then
  4170. # Check whether --with-libcares-prefix or --without-libcares-prefix was given.
  4171. if test "${with_libcares_prefix+set}" = set; then
  4172. withval="$with_libcares_prefix"
  4173. libcares_prefix=$withval
  4174. else
  4175. libcares_prefix=""
  4176. fi;
  4177. if test "x$libcares_prefix" = "x"; then
  4178. libcares_prefix="/usr"
  4179. fi
  4180. libcares_prefix_lib=$libcares_prefix/lib
  4181. libcares_prefix_include=$libcares_prefix/include
  4182. LIBS_save=$LIBS
  4183. CPPFLAGS_save=$CPPFLAGS
  4184. LIBS="-L$libcares_prefix_lib $LIBS"
  4185. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4186. echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4187. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6
  4188. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4189. echo $ECHO_N "(cached) $ECHO_C" >&6
  4190. else
  4191. ac_check_lib_save_LIBS=$LIBS
  4192. LIBS="-lcares $LIBS"
  4193. cat >conftest.$ac_ext <<_ACEOF
  4194. /* confdefs.h. */
  4195. _ACEOF
  4196. cat confdefs.h >>conftest.$ac_ext
  4197. cat >>conftest.$ac_ext <<_ACEOF
  4198. /* end confdefs.h. */
  4199. /* Override any gcc2 internal prototype to avoid an error. */
  4200. #ifdef __cplusplus
  4201. extern "C"
  4202. #endif
  4203. /* We use char because int might match the return type of a gcc2
  4204. builtin and then its argument prototype would still apply. */
  4205. char ares_init ();
  4206. int
  4207. main ()
  4208. {
  4209. ares_init ();
  4210. ;
  4211. return 0;
  4212. }
  4213. _ACEOF
  4214. rm -f conftest.$ac_objext conftest$ac_exeext
  4215. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4216. (eval $ac_link) 2>conftest.er1
  4217. ac_status=$?
  4218. grep -v '^ *+' conftest.er1 >conftest.err
  4219. rm -f conftest.er1
  4220. cat conftest.err >&5
  4221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4222. (exit $ac_status); } &&
  4223. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4225. (eval $ac_try) 2>&5
  4226. ac_status=$?
  4227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4228. (exit $ac_status); }; } &&
  4229. { ac_try='test -s conftest$ac_exeext'
  4230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4231. (eval $ac_try) 2>&5
  4232. ac_status=$?
  4233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4234. (exit $ac_status); }; }; then
  4235. ac_cv_lib_cares_ares_init=yes
  4236. else
  4237. echo "$as_me: failed program was:" >&5
  4238. sed 's/^/| /' conftest.$ac_ext >&5
  4239. ac_cv_lib_cares_ares_init=no
  4240. fi
  4241. rm -f conftest.err conftest.$ac_objext \
  4242. conftest$ac_exeext conftest.$ac_ext
  4243. LIBS=$ac_check_lib_save_LIBS
  4244. fi
  4245. echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4246. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6
  4247. if test $ac_cv_lib_cares_ares_init = yes; then
  4248. have_libcares=yes
  4249. fi
  4250. if test "x$have_libcares" = "xyes"; then
  4251. cat >>confdefs.h <<\_ACEOF
  4252. #define HAVE_LIBCARES 1
  4253. _ACEOF
  4254. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4255. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4256. fi
  4257. LIBS=$LIBS_save
  4258. CPPFLAGS=$CPPFLAGS_save
  4259. fi
  4260. if test "x$have_libcares" = "x"; then
  4261. if test "x$with_libares" = "xyes"; then
  4262. # Check whether --with-libares-prefix or --without-libares-prefix was given.
  4263. if test "${with_libares_prefix+set}" = set; then
  4264. withval="$with_libares_prefix"
  4265. libares_prefix=$withval
  4266. else
  4267. libares_prefix=""
  4268. fi;
  4269. if test "x$libares_prefix" = "x"; then
  4270. libares_prefix="/usr"
  4271. fi
  4272. libares_prefix_lib=$libares_prefix/lib
  4273. libares_prefix_include=$libares_prefix/include
  4274. LIBS_save=$LIBS
  4275. CPPFLAGS_save=$CPPFLAGS
  4276. LIBS="-L$libares_prefix_lib $LIBS"
  4277. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4278. echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4279. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6
  4280. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4281. echo $ECHO_N "(cached) $ECHO_C" >&6
  4282. else
  4283. ac_check_lib_save_LIBS=$LIBS
  4284. LIBS="-lares $LIBS"
  4285. cat >conftest.$ac_ext <<_ACEOF
  4286. /* confdefs.h. */
  4287. _ACEOF
  4288. cat confdefs.h >>conftest.$ac_ext
  4289. cat >>conftest.$ac_ext <<_ACEOF
  4290. /* end confdefs.h. */
  4291. /* Override any gcc2 internal prototype to avoid an error. */
  4292. #ifdef __cplusplus
  4293. extern "C"
  4294. #endif
  4295. /* We use char because int might match the return type of a gcc2
  4296. builtin and then its argument prototype would still apply. */
  4297. char ares_init ();
  4298. int
  4299. main ()
  4300. {
  4301. ares_init ();
  4302. ;
  4303. return 0;
  4304. }
  4305. _ACEOF
  4306. rm -f conftest.$ac_objext conftest$ac_exeext
  4307. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4308. (eval $ac_link) 2>conftest.er1
  4309. ac_status=$?
  4310. grep -v '^ *+' conftest.er1 >conftest.err
  4311. rm -f conftest.er1
  4312. cat conftest.err >&5
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); } &&
  4315. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; } &&
  4321. { ac_try='test -s conftest$ac_exeext'
  4322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4323. (eval $ac_try) 2>&5
  4324. ac_status=$?
  4325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4326. (exit $ac_status); }; }; then
  4327. ac_cv_lib_ares_ares_init=yes
  4328. else
  4329. echo "$as_me: failed program was:" >&5
  4330. sed 's/^/| /' conftest.$ac_ext >&5
  4331. ac_cv_lib_ares_ares_init=no
  4332. fi
  4333. rm -f conftest.err conftest.$ac_objext \
  4334. conftest$ac_exeext conftest.$ac_ext
  4335. LIBS=$ac_check_lib_save_LIBS
  4336. fi
  4337. echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4338. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6
  4339. if test $ac_cv_lib_ares_ares_init = yes; then
  4340. have_libares=yes
  4341. fi
  4342. if test "x$have_libares" = "xyes"; then
  4343. cat >>confdefs.h <<\_ACEOF
  4344. #define HAVE_LIBARES 1
  4345. _ACEOF
  4346. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4347. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4348. fi
  4349. LIBS=$LIBS_save
  4350. CPPFLAGS=$CPPFLAGS_save
  4351. fi
  4352. fi
  4353. # Define variables based on the result of the checks for libraries.
  4354. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4355. cat >>confdefs.h <<\_ACEOF
  4356. #define ENABLE_SSL 1
  4357. _ACEOF
  4358. fi
  4359. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4360. cat >>confdefs.h <<\_ACEOF
  4361. #define ENABLE_MESSAGE_DIGEST 1
  4362. _ACEOF
  4363. enable_message_digest=yes
  4364. fi
  4365. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4366. cat >>confdefs.h <<\_ACEOF
  4367. #define ENABLE_BITTORRENT 1
  4368. _ACEOF
  4369. if true; then
  4370. ENABLE_BITTORRENT_TRUE=
  4371. ENABLE_BITTORRENT_FALSE='#'
  4372. else
  4373. ENABLE_BITTORRENT_TRUE='#'
  4374. ENABLE_BITTORRENT_FALSE=
  4375. fi
  4376. else
  4377. if false; then
  4378. ENABLE_BITTORRENT_TRUE=
  4379. ENABLE_BITTORRENT_FALSE='#'
  4380. else
  4381. ENABLE_BITTORRENT_TRUE='#'
  4382. ENABLE_BITTORRENT_FALSE=
  4383. fi
  4384. fi
  4385. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4386. cat >>confdefs.h <<\_ACEOF
  4387. #define ENABLE_METALINK 1
  4388. _ACEOF
  4389. if true; then
  4390. ENABLE_METALINK_TRUE=
  4391. ENABLE_METALINK_FALSE='#'
  4392. else
  4393. ENABLE_METALINK_TRUE='#'
  4394. ENABLE_METALINK_FALSE=
  4395. fi
  4396. else
  4397. if false; then
  4398. ENABLE_METALINK_TRUE=
  4399. ENABLE_METALINK_FALSE='#'
  4400. else
  4401. ENABLE_METALINK_TRUE='#'
  4402. ENABLE_METALINK_FALSE=
  4403. fi
  4404. fi
  4405. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  4406. cat >>confdefs.h <<\_ACEOF
  4407. #define ENABLE_ASYNC_DNS 1
  4408. _ACEOF
  4409. if true; then
  4410. ENABLE_ASYNC_DNS_TRUE=
  4411. ENABLE_ASYNC_DNS_FALSE='#'
  4412. else
  4413. ENABLE_ASYNC_DNS_TRUE='#'
  4414. ENABLE_ASYNC_DNS_FALSE=
  4415. fi
  4416. else
  4417. if false; then
  4418. ENABLE_ASYNC_DNS_TRUE=
  4419. ENABLE_ASYNC_DNS_FALSE='#'
  4420. else
  4421. ENABLE_ASYNC_DNS_TRUE='#'
  4422. ENABLE_ASYNC_DNS_FALSE=
  4423. fi
  4424. fi
  4425. # Checks for header files.
  4426. ac_ext=c
  4427. ac_cpp='$CPP $CPPFLAGS'
  4428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4431. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4432. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4433. # On Suns, sometimes $CPP names a directory.
  4434. if test -n "$CPP" && test -d "$CPP"; then
  4435. CPP=
  4436. fi
  4437. if test -z "$CPP"; then
  4438. if test "${ac_cv_prog_CPP+set}" = set; then
  4439. echo $ECHO_N "(cached) $ECHO_C" >&6
  4440. else
  4441. # Double quotes because CPP needs to be expanded
  4442. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4443. do
  4444. ac_preproc_ok=false
  4445. for ac_c_preproc_warn_flag in '' yes
  4446. do
  4447. # Use a header file that comes with gcc, so configuring glibc
  4448. # with a fresh cross-compiler works.
  4449. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4450. # <limits.h> exists even on freestanding compilers.
  4451. # On the NeXT, cc -E runs the code through the compiler's parser,
  4452. # not just through cpp. "Syntax error" is here to catch this case.
  4453. cat >conftest.$ac_ext <<_ACEOF
  4454. /* confdefs.h. */
  4455. _ACEOF
  4456. cat confdefs.h >>conftest.$ac_ext
  4457. cat >>conftest.$ac_ext <<_ACEOF
  4458. /* end confdefs.h. */
  4459. #ifdef __STDC__
  4460. # include <limits.h>
  4461. #else
  4462. # include <assert.h>
  4463. #endif
  4464. Syntax error
  4465. _ACEOF
  4466. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4467. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4468. ac_status=$?
  4469. grep -v '^ *+' conftest.er1 >conftest.err
  4470. rm -f conftest.er1
  4471. cat conftest.err >&5
  4472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); } >/dev/null; then
  4474. if test -s conftest.err; then
  4475. ac_cpp_err=$ac_c_preproc_warn_flag
  4476. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4477. else
  4478. ac_cpp_err=
  4479. fi
  4480. else
  4481. ac_cpp_err=yes
  4482. fi
  4483. if test -z "$ac_cpp_err"; then
  4484. :
  4485. else
  4486. echo "$as_me: failed program was:" >&5
  4487. sed 's/^/| /' conftest.$ac_ext >&5
  4488. # Broken: fails on valid input.
  4489. continue
  4490. fi
  4491. rm -f conftest.err conftest.$ac_ext
  4492. # OK, works on sane cases. Now check whether non-existent headers
  4493. # can be detected and how.
  4494. cat >conftest.$ac_ext <<_ACEOF
  4495. /* confdefs.h. */
  4496. _ACEOF
  4497. cat confdefs.h >>conftest.$ac_ext
  4498. cat >>conftest.$ac_ext <<_ACEOF
  4499. /* end confdefs.h. */
  4500. #include <ac_nonexistent.h>
  4501. _ACEOF
  4502. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4503. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4504. ac_status=$?
  4505. grep -v '^ *+' conftest.er1 >conftest.err
  4506. rm -f conftest.er1
  4507. cat conftest.err >&5
  4508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4509. (exit $ac_status); } >/dev/null; then
  4510. if test -s conftest.err; then
  4511. ac_cpp_err=$ac_c_preproc_warn_flag
  4512. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4513. else
  4514. ac_cpp_err=
  4515. fi
  4516. else
  4517. ac_cpp_err=yes
  4518. fi
  4519. if test -z "$ac_cpp_err"; then
  4520. # Broken: success on invalid input.
  4521. continue
  4522. else
  4523. echo "$as_me: failed program was:" >&5
  4524. sed 's/^/| /' conftest.$ac_ext >&5
  4525. # Passes both tests.
  4526. ac_preproc_ok=:
  4527. break
  4528. fi
  4529. rm -f conftest.err conftest.$ac_ext
  4530. done
  4531. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4532. rm -f conftest.err conftest.$ac_ext
  4533. if $ac_preproc_ok; then
  4534. break
  4535. fi
  4536. done
  4537. ac_cv_prog_CPP=$CPP
  4538. fi
  4539. CPP=$ac_cv_prog_CPP
  4540. else
  4541. ac_cv_prog_CPP=$CPP
  4542. fi
  4543. echo "$as_me:$LINENO: result: $CPP" >&5
  4544. echo "${ECHO_T}$CPP" >&6
  4545. ac_preproc_ok=false
  4546. for ac_c_preproc_warn_flag in '' yes
  4547. do
  4548. # Use a header file that comes with gcc, so configuring glibc
  4549. # with a fresh cross-compiler works.
  4550. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4551. # <limits.h> exists even on freestanding compilers.
  4552. # On the NeXT, cc -E runs the code through the compiler's parser,
  4553. # not just through cpp. "Syntax error" is here to catch this case.
  4554. cat >conftest.$ac_ext <<_ACEOF
  4555. /* confdefs.h. */
  4556. _ACEOF
  4557. cat confdefs.h >>conftest.$ac_ext
  4558. cat >>conftest.$ac_ext <<_ACEOF
  4559. /* end confdefs.h. */
  4560. #ifdef __STDC__
  4561. # include <limits.h>
  4562. #else
  4563. # include <assert.h>
  4564. #endif
  4565. Syntax error
  4566. _ACEOF
  4567. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4568. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4569. ac_status=$?
  4570. grep -v '^ *+' conftest.er1 >conftest.err
  4571. rm -f conftest.er1
  4572. cat conftest.err >&5
  4573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. (exit $ac_status); } >/dev/null; then
  4575. if test -s conftest.err; then
  4576. ac_cpp_err=$ac_c_preproc_warn_flag
  4577. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4578. else
  4579. ac_cpp_err=
  4580. fi
  4581. else
  4582. ac_cpp_err=yes
  4583. fi
  4584. if test -z "$ac_cpp_err"; then
  4585. :
  4586. else
  4587. echo "$as_me: failed program was:" >&5
  4588. sed 's/^/| /' conftest.$ac_ext >&5
  4589. # Broken: fails on valid input.
  4590. continue
  4591. fi
  4592. rm -f conftest.err conftest.$ac_ext
  4593. # OK, works on sane cases. Now check whether non-existent headers
  4594. # can be detected and how.
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #include <ac_nonexistent.h>
  4602. _ACEOF
  4603. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4604. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4605. ac_status=$?
  4606. grep -v '^ *+' conftest.er1 >conftest.err
  4607. rm -f conftest.er1
  4608. cat conftest.err >&5
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); } >/dev/null; then
  4611. if test -s conftest.err; then
  4612. ac_cpp_err=$ac_c_preproc_warn_flag
  4613. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4614. else
  4615. ac_cpp_err=
  4616. fi
  4617. else
  4618. ac_cpp_err=yes
  4619. fi
  4620. if test -z "$ac_cpp_err"; then
  4621. # Broken: success on invalid input.
  4622. continue
  4623. else
  4624. echo "$as_me: failed program was:" >&5
  4625. sed 's/^/| /' conftest.$ac_ext >&5
  4626. # Passes both tests.
  4627. ac_preproc_ok=:
  4628. break
  4629. fi
  4630. rm -f conftest.err conftest.$ac_ext
  4631. done
  4632. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4633. rm -f conftest.err conftest.$ac_ext
  4634. if $ac_preproc_ok; then
  4635. :
  4636. else
  4637. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4638. See \`config.log' for more details." >&5
  4639. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4640. See \`config.log' for more details." >&2;}
  4641. { (exit 1); exit 1; }; }
  4642. fi
  4643. ac_ext=c
  4644. ac_cpp='$CPP $CPPFLAGS'
  4645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4648. echo "$as_me:$LINENO: checking for egrep" >&5
  4649. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4650. if test "${ac_cv_prog_egrep+set}" = set; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4654. then ac_cv_prog_egrep='grep -E'
  4655. else ac_cv_prog_egrep='egrep'
  4656. fi
  4657. fi
  4658. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4659. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4660. EGREP=$ac_cv_prog_egrep
  4661. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4662. # for constant arguments. Useless!
  4663. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4664. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4665. if test "${ac_cv_working_alloca_h+set}" = set; then
  4666. echo $ECHO_N "(cached) $ECHO_C" >&6
  4667. else
  4668. cat >conftest.$ac_ext <<_ACEOF
  4669. /* confdefs.h. */
  4670. _ACEOF
  4671. cat confdefs.h >>conftest.$ac_ext
  4672. cat >>conftest.$ac_ext <<_ACEOF
  4673. /* end confdefs.h. */
  4674. #include <alloca.h>
  4675. int
  4676. main ()
  4677. {
  4678. char *p = (char *) alloca (2 * sizeof (int));
  4679. ;
  4680. return 0;
  4681. }
  4682. _ACEOF
  4683. rm -f conftest.$ac_objext conftest$ac_exeext
  4684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4685. (eval $ac_link) 2>conftest.er1
  4686. ac_status=$?
  4687. grep -v '^ *+' conftest.er1 >conftest.err
  4688. rm -f conftest.er1
  4689. cat conftest.err >&5
  4690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4691. (exit $ac_status); } &&
  4692. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4694. (eval $ac_try) 2>&5
  4695. ac_status=$?
  4696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4697. (exit $ac_status); }; } &&
  4698. { ac_try='test -s conftest$ac_exeext'
  4699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4700. (eval $ac_try) 2>&5
  4701. ac_status=$?
  4702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4703. (exit $ac_status); }; }; then
  4704. ac_cv_working_alloca_h=yes
  4705. else
  4706. echo "$as_me: failed program was:" >&5
  4707. sed 's/^/| /' conftest.$ac_ext >&5
  4708. ac_cv_working_alloca_h=no
  4709. fi
  4710. rm -f conftest.err conftest.$ac_objext \
  4711. conftest$ac_exeext conftest.$ac_ext
  4712. fi
  4713. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4714. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4715. if test $ac_cv_working_alloca_h = yes; then
  4716. cat >>confdefs.h <<\_ACEOF
  4717. #define HAVE_ALLOCA_H 1
  4718. _ACEOF
  4719. fi
  4720. echo "$as_me:$LINENO: checking for alloca" >&5
  4721. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4722. if test "${ac_cv_func_alloca_works+set}" = set; then
  4723. echo $ECHO_N "(cached) $ECHO_C" >&6
  4724. else
  4725. cat >conftest.$ac_ext <<_ACEOF
  4726. /* confdefs.h. */
  4727. _ACEOF
  4728. cat confdefs.h >>conftest.$ac_ext
  4729. cat >>conftest.$ac_ext <<_ACEOF
  4730. /* end confdefs.h. */
  4731. #ifdef __GNUC__
  4732. # define alloca __builtin_alloca
  4733. #else
  4734. # ifdef _MSC_VER
  4735. # include <malloc.h>
  4736. # define alloca _alloca
  4737. # else
  4738. # if HAVE_ALLOCA_H
  4739. # include <alloca.h>
  4740. # else
  4741. # ifdef _AIX
  4742. #pragma alloca
  4743. # else
  4744. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4745. char *alloca ();
  4746. # endif
  4747. # endif
  4748. # endif
  4749. # endif
  4750. #endif
  4751. int
  4752. main ()
  4753. {
  4754. char *p = (char *) alloca (1);
  4755. ;
  4756. return 0;
  4757. }
  4758. _ACEOF
  4759. rm -f conftest.$ac_objext conftest$ac_exeext
  4760. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4761. (eval $ac_link) 2>conftest.er1
  4762. ac_status=$?
  4763. grep -v '^ *+' conftest.er1 >conftest.err
  4764. rm -f conftest.er1
  4765. cat conftest.err >&5
  4766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4767. (exit $ac_status); } &&
  4768. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4770. (eval $ac_try) 2>&5
  4771. ac_status=$?
  4772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4773. (exit $ac_status); }; } &&
  4774. { ac_try='test -s conftest$ac_exeext'
  4775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4776. (eval $ac_try) 2>&5
  4777. ac_status=$?
  4778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4779. (exit $ac_status); }; }; then
  4780. ac_cv_func_alloca_works=yes
  4781. else
  4782. echo "$as_me: failed program was:" >&5
  4783. sed 's/^/| /' conftest.$ac_ext >&5
  4784. ac_cv_func_alloca_works=no
  4785. fi
  4786. rm -f conftest.err conftest.$ac_objext \
  4787. conftest$ac_exeext conftest.$ac_ext
  4788. fi
  4789. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4790. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4791. if test $ac_cv_func_alloca_works = yes; then
  4792. cat >>confdefs.h <<\_ACEOF
  4793. #define HAVE_ALLOCA 1
  4794. _ACEOF
  4795. else
  4796. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4797. # that cause trouble. Some versions do not even contain alloca or
  4798. # contain a buggy version. If you still want to use their alloca,
  4799. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4800. ALLOCA=alloca.$ac_objext
  4801. cat >>confdefs.h <<\_ACEOF
  4802. #define C_ALLOCA 1
  4803. _ACEOF
  4804. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4805. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4806. if test "${ac_cv_os_cray+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. cat >conftest.$ac_ext <<_ACEOF
  4810. /* confdefs.h. */
  4811. _ACEOF
  4812. cat confdefs.h >>conftest.$ac_ext
  4813. cat >>conftest.$ac_ext <<_ACEOF
  4814. /* end confdefs.h. */
  4815. #if defined(CRAY) && ! defined(CRAY2)
  4816. webecray
  4817. #else
  4818. wenotbecray
  4819. #endif
  4820. _ACEOF
  4821. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4822. $EGREP "webecray" >/dev/null 2>&1; then
  4823. ac_cv_os_cray=yes
  4824. else
  4825. ac_cv_os_cray=no
  4826. fi
  4827. rm -f conftest*
  4828. fi
  4829. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4830. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4831. if test $ac_cv_os_cray = yes; then
  4832. for ac_func in _getb67 GETB67 getb67; do
  4833. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4834. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4835. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4836. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4837. echo $ECHO_N "(cached) $ECHO_C" >&6
  4838. else
  4839. cat >conftest.$ac_ext <<_ACEOF
  4840. /* confdefs.h. */
  4841. _ACEOF
  4842. cat confdefs.h >>conftest.$ac_ext
  4843. cat >>conftest.$ac_ext <<_ACEOF
  4844. /* end confdefs.h. */
  4845. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4847. #define $ac_func innocuous_$ac_func
  4848. /* System header to define __stub macros and hopefully few prototypes,
  4849. which can conflict with char $ac_func (); below.
  4850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4851. <limits.h> exists even on freestanding compilers. */
  4852. #ifdef __STDC__
  4853. # include <limits.h>
  4854. #else
  4855. # include <assert.h>
  4856. #endif
  4857. #undef $ac_func
  4858. /* Override any gcc2 internal prototype to avoid an error. */
  4859. #ifdef __cplusplus
  4860. extern "C"
  4861. {
  4862. #endif
  4863. /* We use char because int might match the return type of a gcc2
  4864. builtin and then its argument prototype would still apply. */
  4865. char $ac_func ();
  4866. /* The GNU C library defines this for functions which it implements
  4867. to always fail with ENOSYS. Some functions are actually named
  4868. something starting with __ and the normal name is an alias. */
  4869. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4870. choke me
  4871. #else
  4872. char (*f) () = $ac_func;
  4873. #endif
  4874. #ifdef __cplusplus
  4875. }
  4876. #endif
  4877. int
  4878. main ()
  4879. {
  4880. return f != $ac_func;
  4881. ;
  4882. return 0;
  4883. }
  4884. _ACEOF
  4885. rm -f conftest.$ac_objext conftest$ac_exeext
  4886. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4887. (eval $ac_link) 2>conftest.er1
  4888. ac_status=$?
  4889. grep -v '^ *+' conftest.er1 >conftest.err
  4890. rm -f conftest.er1
  4891. cat conftest.err >&5
  4892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893. (exit $ac_status); } &&
  4894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4896. (eval $ac_try) 2>&5
  4897. ac_status=$?
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); }; } &&
  4900. { ac_try='test -s conftest$ac_exeext'
  4901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4902. (eval $ac_try) 2>&5
  4903. ac_status=$?
  4904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4905. (exit $ac_status); }; }; then
  4906. eval "$as_ac_var=yes"
  4907. else
  4908. echo "$as_me: failed program was:" >&5
  4909. sed 's/^/| /' conftest.$ac_ext >&5
  4910. eval "$as_ac_var=no"
  4911. fi
  4912. rm -f conftest.err conftest.$ac_objext \
  4913. conftest$ac_exeext conftest.$ac_ext
  4914. fi
  4915. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4916. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4917. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4918. cat >>confdefs.h <<_ACEOF
  4919. #define CRAY_STACKSEG_END $ac_func
  4920. _ACEOF
  4921. break
  4922. fi
  4923. done
  4924. fi
  4925. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4926. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4927. if test "${ac_cv_c_stack_direction+set}" = set; then
  4928. echo $ECHO_N "(cached) $ECHO_C" >&6
  4929. else
  4930. if test "$cross_compiling" = yes; then
  4931. ac_cv_c_stack_direction=0
  4932. else
  4933. cat >conftest.$ac_ext <<_ACEOF
  4934. /* confdefs.h. */
  4935. _ACEOF
  4936. cat confdefs.h >>conftest.$ac_ext
  4937. cat >>conftest.$ac_ext <<_ACEOF
  4938. /* end confdefs.h. */
  4939. int
  4940. find_stack_direction ()
  4941. {
  4942. static char *addr = 0;
  4943. auto char dummy;
  4944. if (addr == 0)
  4945. {
  4946. addr = &dummy;
  4947. return find_stack_direction ();
  4948. }
  4949. else
  4950. return (&dummy > addr) ? 1 : -1;
  4951. }
  4952. int
  4953. main ()
  4954. {
  4955. exit (find_stack_direction () < 0);
  4956. }
  4957. _ACEOF
  4958. rm -f conftest$ac_exeext
  4959. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4960. (eval $ac_link) 2>&5
  4961. ac_status=$?
  4962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4963. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4965. (eval $ac_try) 2>&5
  4966. ac_status=$?
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); }; }; then
  4969. ac_cv_c_stack_direction=1
  4970. else
  4971. echo "$as_me: program exited with status $ac_status" >&5
  4972. echo "$as_me: failed program was:" >&5
  4973. sed 's/^/| /' conftest.$ac_ext >&5
  4974. ( exit $ac_status )
  4975. ac_cv_c_stack_direction=-1
  4976. fi
  4977. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4978. fi
  4979. fi
  4980. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4981. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4982. cat >>confdefs.h <<_ACEOF
  4983. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4984. _ACEOF
  4985. fi
  4986. #AC_HEADER_STDC
  4987. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4988. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4989. if test "${ac_cv_header_stdc+set}" = set; then
  4990. echo $ECHO_N "(cached) $ECHO_C" >&6
  4991. else
  4992. cat >conftest.$ac_ext <<_ACEOF
  4993. /* confdefs.h. */
  4994. _ACEOF
  4995. cat confdefs.h >>conftest.$ac_ext
  4996. cat >>conftest.$ac_ext <<_ACEOF
  4997. /* end confdefs.h. */
  4998. #include <stdlib.h>
  4999. #include <stdarg.h>
  5000. #include <string.h>
  5001. #include <float.h>
  5002. int
  5003. main ()
  5004. {
  5005. ;
  5006. return 0;
  5007. }
  5008. _ACEOF
  5009. rm -f conftest.$ac_objext
  5010. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5011. (eval $ac_compile) 2>conftest.er1
  5012. ac_status=$?
  5013. grep -v '^ *+' conftest.er1 >conftest.err
  5014. rm -f conftest.er1
  5015. cat conftest.err >&5
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); } &&
  5018. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5020. (eval $ac_try) 2>&5
  5021. ac_status=$?
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); }; } &&
  5024. { ac_try='test -s conftest.$ac_objext'
  5025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5026. (eval $ac_try) 2>&5
  5027. ac_status=$?
  5028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5029. (exit $ac_status); }; }; then
  5030. ac_cv_header_stdc=yes
  5031. else
  5032. echo "$as_me: failed program was:" >&5
  5033. sed 's/^/| /' conftest.$ac_ext >&5
  5034. ac_cv_header_stdc=no
  5035. fi
  5036. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5037. if test $ac_cv_header_stdc = yes; then
  5038. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5039. cat >conftest.$ac_ext <<_ACEOF
  5040. /* confdefs.h. */
  5041. _ACEOF
  5042. cat confdefs.h >>conftest.$ac_ext
  5043. cat >>conftest.$ac_ext <<_ACEOF
  5044. /* end confdefs.h. */
  5045. #include <string.h>
  5046. _ACEOF
  5047. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5048. $EGREP "memchr" >/dev/null 2>&1; then
  5049. :
  5050. else
  5051. ac_cv_header_stdc=no
  5052. fi
  5053. rm -f conftest*
  5054. fi
  5055. if test $ac_cv_header_stdc = yes; then
  5056. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5057. cat >conftest.$ac_ext <<_ACEOF
  5058. /* confdefs.h. */
  5059. _ACEOF
  5060. cat confdefs.h >>conftest.$ac_ext
  5061. cat >>conftest.$ac_ext <<_ACEOF
  5062. /* end confdefs.h. */
  5063. #include <stdlib.h>
  5064. _ACEOF
  5065. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5066. $EGREP "free" >/dev/null 2>&1; then
  5067. :
  5068. else
  5069. ac_cv_header_stdc=no
  5070. fi
  5071. rm -f conftest*
  5072. fi
  5073. if test $ac_cv_header_stdc = yes; then
  5074. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5075. if test "$cross_compiling" = yes; then
  5076. :
  5077. else
  5078. cat >conftest.$ac_ext <<_ACEOF
  5079. /* confdefs.h. */
  5080. _ACEOF
  5081. cat confdefs.h >>conftest.$ac_ext
  5082. cat >>conftest.$ac_ext <<_ACEOF
  5083. /* end confdefs.h. */
  5084. #include <ctype.h>
  5085. #if ((' ' & 0x0FF) == 0x020)
  5086. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5087. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5088. #else
  5089. # define ISLOWER(c) \
  5090. (('a' <= (c) && (c) <= 'i') \
  5091. || ('j' <= (c) && (c) <= 'r') \
  5092. || ('s' <= (c) && (c) <= 'z'))
  5093. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5094. #endif
  5095. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5096. int
  5097. main ()
  5098. {
  5099. int i;
  5100. for (i = 0; i < 256; i++)
  5101. if (XOR (islower (i), ISLOWER (i))
  5102. || toupper (i) != TOUPPER (i))
  5103. exit(2);
  5104. exit (0);
  5105. }
  5106. _ACEOF
  5107. rm -f conftest$ac_exeext
  5108. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5109. (eval $ac_link) 2>&5
  5110. ac_status=$?
  5111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5114. (eval $ac_try) 2>&5
  5115. ac_status=$?
  5116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5117. (exit $ac_status); }; }; then
  5118. :
  5119. else
  5120. echo "$as_me: program exited with status $ac_status" >&5
  5121. echo "$as_me: failed program was:" >&5
  5122. sed 's/^/| /' conftest.$ac_ext >&5
  5123. ( exit $ac_status )
  5124. ac_cv_header_stdc=no
  5125. fi
  5126. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5127. fi
  5128. fi
  5129. fi
  5130. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5131. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5132. if test $ac_cv_header_stdc = yes; then
  5133. cat >>confdefs.h <<\_ACEOF
  5134. #define STDC_HEADERS 1
  5135. _ACEOF
  5136. fi
  5137. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5138. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5139. inttypes.h stdint.h unistd.h
  5140. do
  5141. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5142. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5143. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5144. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5145. echo $ECHO_N "(cached) $ECHO_C" >&6
  5146. else
  5147. cat >conftest.$ac_ext <<_ACEOF
  5148. /* confdefs.h. */
  5149. _ACEOF
  5150. cat confdefs.h >>conftest.$ac_ext
  5151. cat >>conftest.$ac_ext <<_ACEOF
  5152. /* end confdefs.h. */
  5153. $ac_includes_default
  5154. #include <$ac_header>
  5155. _ACEOF
  5156. rm -f conftest.$ac_objext
  5157. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5158. (eval $ac_compile) 2>conftest.er1
  5159. ac_status=$?
  5160. grep -v '^ *+' conftest.er1 >conftest.err
  5161. rm -f conftest.er1
  5162. cat conftest.err >&5
  5163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5164. (exit $ac_status); } &&
  5165. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5167. (eval $ac_try) 2>&5
  5168. ac_status=$?
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); }; } &&
  5171. { ac_try='test -s conftest.$ac_objext'
  5172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5173. (eval $ac_try) 2>&5
  5174. ac_status=$?
  5175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176. (exit $ac_status); }; }; then
  5177. eval "$as_ac_Header=yes"
  5178. else
  5179. echo "$as_me: failed program was:" >&5
  5180. sed 's/^/| /' conftest.$ac_ext >&5
  5181. eval "$as_ac_Header=no"
  5182. fi
  5183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5184. fi
  5185. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5186. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5187. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5188. cat >>confdefs.h <<_ACEOF
  5189. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5190. _ACEOF
  5191. fi
  5192. done
  5193. for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.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
  5194. do
  5195. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5196. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5197. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5199. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5200. echo $ECHO_N "(cached) $ECHO_C" >&6
  5201. fi
  5202. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5203. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5204. else
  5205. # Is the header compilable?
  5206. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5207. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5208. cat >conftest.$ac_ext <<_ACEOF
  5209. /* confdefs.h. */
  5210. _ACEOF
  5211. cat confdefs.h >>conftest.$ac_ext
  5212. cat >>conftest.$ac_ext <<_ACEOF
  5213. /* end confdefs.h. */
  5214. $ac_includes_default
  5215. #include <$ac_header>
  5216. _ACEOF
  5217. rm -f conftest.$ac_objext
  5218. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5219. (eval $ac_compile) 2>conftest.er1
  5220. ac_status=$?
  5221. grep -v '^ *+' conftest.er1 >conftest.err
  5222. rm -f conftest.er1
  5223. cat conftest.err >&5
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); } &&
  5226. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5228. (eval $ac_try) 2>&5
  5229. ac_status=$?
  5230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); }; } &&
  5232. { ac_try='test -s conftest.$ac_objext'
  5233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5234. (eval $ac_try) 2>&5
  5235. ac_status=$?
  5236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5237. (exit $ac_status); }; }; then
  5238. ac_header_compiler=yes
  5239. else
  5240. echo "$as_me: failed program was:" >&5
  5241. sed 's/^/| /' conftest.$ac_ext >&5
  5242. ac_header_compiler=no
  5243. fi
  5244. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5245. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5246. echo "${ECHO_T}$ac_header_compiler" >&6
  5247. # Is the header present?
  5248. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5249. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5250. cat >conftest.$ac_ext <<_ACEOF
  5251. /* confdefs.h. */
  5252. _ACEOF
  5253. cat confdefs.h >>conftest.$ac_ext
  5254. cat >>conftest.$ac_ext <<_ACEOF
  5255. /* end confdefs.h. */
  5256. #include <$ac_header>
  5257. _ACEOF
  5258. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5259. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5260. ac_status=$?
  5261. grep -v '^ *+' conftest.er1 >conftest.err
  5262. rm -f conftest.er1
  5263. cat conftest.err >&5
  5264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5265. (exit $ac_status); } >/dev/null; then
  5266. if test -s conftest.err; then
  5267. ac_cpp_err=$ac_c_preproc_warn_flag
  5268. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5269. else
  5270. ac_cpp_err=
  5271. fi
  5272. else
  5273. ac_cpp_err=yes
  5274. fi
  5275. if test -z "$ac_cpp_err"; then
  5276. ac_header_preproc=yes
  5277. else
  5278. echo "$as_me: failed program was:" >&5
  5279. sed 's/^/| /' conftest.$ac_ext >&5
  5280. ac_header_preproc=no
  5281. fi
  5282. rm -f conftest.err conftest.$ac_ext
  5283. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5284. echo "${ECHO_T}$ac_header_preproc" >&6
  5285. # So? What about this header?
  5286. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5287. yes:no: )
  5288. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5289. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5290. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5291. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5292. ac_header_preproc=yes
  5293. ;;
  5294. no:yes:* )
  5295. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5296. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5297. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5298. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5299. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5300. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5301. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5302. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5303. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5304. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5305. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5306. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5307. (
  5308. cat <<\_ASBOX
  5309. ## ----------------------------------- ##
  5310. ## Report this to tujikawa@rednoah.com ##
  5311. ## ----------------------------------- ##
  5312. _ASBOX
  5313. ) |
  5314. sed "s/^/$as_me: WARNING: /" >&2
  5315. ;;
  5316. esac
  5317. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5318. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5319. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5320. echo $ECHO_N "(cached) $ECHO_C" >&6
  5321. else
  5322. eval "$as_ac_Header=\$ac_header_preproc"
  5323. fi
  5324. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5325. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5326. fi
  5327. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5328. cat >>confdefs.h <<_ACEOF
  5329. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5330. _ACEOF
  5331. fi
  5332. done
  5333. # Checks for typedefs, structures, and compiler characteristics.
  5334. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5335. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  5336. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5337. echo $ECHO_N "(cached) $ECHO_C" >&6
  5338. else
  5339. cat >conftest.$ac_ext <<_ACEOF
  5340. /* confdefs.h. */
  5341. _ACEOF
  5342. cat confdefs.h >>conftest.$ac_ext
  5343. cat >>conftest.$ac_ext <<_ACEOF
  5344. /* end confdefs.h. */
  5345. #include <stdbool.h>
  5346. #ifndef bool
  5347. # error bool is not defined
  5348. #endif
  5349. #ifndef false
  5350. # error false is not defined
  5351. #endif
  5352. #if false
  5353. # error false is not 0
  5354. #endif
  5355. #ifndef true
  5356. # error true is not defined
  5357. #endif
  5358. #if true != 1
  5359. # error true is not 1
  5360. #endif
  5361. #ifndef __bool_true_false_are_defined
  5362. # error __bool_true_false_are_defined is not defined
  5363. #endif
  5364. struct s { _Bool s: 1; _Bool t; } s;
  5365. char a[true == 1 ? 1 : -1];
  5366. char b[false == 0 ? 1 : -1];
  5367. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5368. char d[(bool) -0.5 == true ? 1 : -1];
  5369. bool e = &s;
  5370. char f[(_Bool) -0.0 == false ? 1 : -1];
  5371. char g[true];
  5372. char h[sizeof (_Bool)];
  5373. char i[sizeof s.t];
  5374. int
  5375. main ()
  5376. {
  5377. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  5378. ;
  5379. return 0;
  5380. }
  5381. _ACEOF
  5382. rm -f conftest.$ac_objext
  5383. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5384. (eval $ac_compile) 2>conftest.er1
  5385. ac_status=$?
  5386. grep -v '^ *+' conftest.er1 >conftest.err
  5387. rm -f conftest.er1
  5388. cat conftest.err >&5
  5389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5390. (exit $ac_status); } &&
  5391. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5393. (eval $ac_try) 2>&5
  5394. ac_status=$?
  5395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5396. (exit $ac_status); }; } &&
  5397. { ac_try='test -s conftest.$ac_objext'
  5398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5399. (eval $ac_try) 2>&5
  5400. ac_status=$?
  5401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5402. (exit $ac_status); }; }; then
  5403. ac_cv_header_stdbool_h=yes
  5404. else
  5405. echo "$as_me: failed program was:" >&5
  5406. sed 's/^/| /' conftest.$ac_ext >&5
  5407. ac_cv_header_stdbool_h=no
  5408. fi
  5409. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5410. fi
  5411. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  5412. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  5413. echo "$as_me:$LINENO: checking for _Bool" >&5
  5414. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  5415. if test "${ac_cv_type__Bool+set}" = set; then
  5416. echo $ECHO_N "(cached) $ECHO_C" >&6
  5417. else
  5418. cat >conftest.$ac_ext <<_ACEOF
  5419. /* confdefs.h. */
  5420. _ACEOF
  5421. cat confdefs.h >>conftest.$ac_ext
  5422. cat >>conftest.$ac_ext <<_ACEOF
  5423. /* end confdefs.h. */
  5424. $ac_includes_default
  5425. int
  5426. main ()
  5427. {
  5428. if ((_Bool *) 0)
  5429. return 0;
  5430. if (sizeof (_Bool))
  5431. return 0;
  5432. ;
  5433. return 0;
  5434. }
  5435. _ACEOF
  5436. rm -f conftest.$ac_objext
  5437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5438. (eval $ac_compile) 2>conftest.er1
  5439. ac_status=$?
  5440. grep -v '^ *+' conftest.er1 >conftest.err
  5441. rm -f conftest.er1
  5442. cat conftest.err >&5
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); } &&
  5445. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5447. (eval $ac_try) 2>&5
  5448. ac_status=$?
  5449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5450. (exit $ac_status); }; } &&
  5451. { ac_try='test -s conftest.$ac_objext'
  5452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5453. (eval $ac_try) 2>&5
  5454. ac_status=$?
  5455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5456. (exit $ac_status); }; }; then
  5457. ac_cv_type__Bool=yes
  5458. else
  5459. echo "$as_me: failed program was:" >&5
  5460. sed 's/^/| /' conftest.$ac_ext >&5
  5461. ac_cv_type__Bool=no
  5462. fi
  5463. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5464. fi
  5465. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  5466. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  5467. if test $ac_cv_type__Bool = yes; then
  5468. cat >>confdefs.h <<_ACEOF
  5469. #define HAVE__BOOL 1
  5470. _ACEOF
  5471. fi
  5472. if test $ac_cv_header_stdbool_h = yes; then
  5473. cat >>confdefs.h <<\_ACEOF
  5474. #define HAVE_STDBOOL_H 1
  5475. _ACEOF
  5476. fi
  5477. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5478. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5479. if test "${ac_cv_c_const+set}" = set; then
  5480. echo $ECHO_N "(cached) $ECHO_C" >&6
  5481. else
  5482. cat >conftest.$ac_ext <<_ACEOF
  5483. /* confdefs.h. */
  5484. _ACEOF
  5485. cat confdefs.h >>conftest.$ac_ext
  5486. cat >>conftest.$ac_ext <<_ACEOF
  5487. /* end confdefs.h. */
  5488. int
  5489. main ()
  5490. {
  5491. /* FIXME: Include the comments suggested by Paul. */
  5492. #ifndef __cplusplus
  5493. /* Ultrix mips cc rejects this. */
  5494. typedef int charset[2];
  5495. const charset x;
  5496. /* SunOS 4.1.1 cc rejects this. */
  5497. char const *const *ccp;
  5498. char **p;
  5499. /* NEC SVR4.0.2 mips cc rejects this. */
  5500. struct point {int x, y;};
  5501. static struct point const zero = {0,0};
  5502. /* AIX XL C 1.02.0.0 rejects this.
  5503. It does not let you subtract one const X* pointer from another in
  5504. an arm of an if-expression whose if-part is not a constant
  5505. expression */
  5506. const char *g = "string";
  5507. ccp = &g + (g ? g-g : 0);
  5508. /* HPUX 7.0 cc rejects these. */
  5509. ++ccp;
  5510. p = (char**) ccp;
  5511. ccp = (char const *const *) p;
  5512. { /* SCO 3.2v4 cc rejects this. */
  5513. char *t;
  5514. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5515. *t++ = 0;
  5516. }
  5517. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5518. int x[] = {25, 17};
  5519. const int *foo = &x[0];
  5520. ++foo;
  5521. }
  5522. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5523. typedef const int *iptr;
  5524. iptr p = 0;
  5525. ++p;
  5526. }
  5527. { /* AIX XL C 1.02.0.0 rejects this saying
  5528. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5529. struct s { int j; const int *ap[3]; };
  5530. struct s *b; b->j = 5;
  5531. }
  5532. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5533. const int foo = 10;
  5534. }
  5535. #endif
  5536. ;
  5537. return 0;
  5538. }
  5539. _ACEOF
  5540. rm -f conftest.$ac_objext
  5541. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5542. (eval $ac_compile) 2>conftest.er1
  5543. ac_status=$?
  5544. grep -v '^ *+' conftest.er1 >conftest.err
  5545. rm -f conftest.er1
  5546. cat conftest.err >&5
  5547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5548. (exit $ac_status); } &&
  5549. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5551. (eval $ac_try) 2>&5
  5552. ac_status=$?
  5553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554. (exit $ac_status); }; } &&
  5555. { ac_try='test -s conftest.$ac_objext'
  5556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5557. (eval $ac_try) 2>&5
  5558. ac_status=$?
  5559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5560. (exit $ac_status); }; }; then
  5561. ac_cv_c_const=yes
  5562. else
  5563. echo "$as_me: failed program was:" >&5
  5564. sed 's/^/| /' conftest.$ac_ext >&5
  5565. ac_cv_c_const=no
  5566. fi
  5567. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5568. fi
  5569. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5570. echo "${ECHO_T}$ac_cv_c_const" >&6
  5571. if test $ac_cv_c_const = no; then
  5572. cat >>confdefs.h <<\_ACEOF
  5573. #define const
  5574. _ACEOF
  5575. fi
  5576. echo "$as_me:$LINENO: checking for inline" >&5
  5577. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5578. if test "${ac_cv_c_inline+set}" = set; then
  5579. echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. ac_cv_c_inline=no
  5582. for ac_kw in inline __inline__ __inline; do
  5583. cat >conftest.$ac_ext <<_ACEOF
  5584. /* confdefs.h. */
  5585. _ACEOF
  5586. cat confdefs.h >>conftest.$ac_ext
  5587. cat >>conftest.$ac_ext <<_ACEOF
  5588. /* end confdefs.h. */
  5589. #ifndef __cplusplus
  5590. typedef int foo_t;
  5591. static $ac_kw foo_t static_foo () {return 0; }
  5592. $ac_kw foo_t foo () {return 0; }
  5593. #endif
  5594. _ACEOF
  5595. rm -f conftest.$ac_objext
  5596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5597. (eval $ac_compile) 2>conftest.er1
  5598. ac_status=$?
  5599. grep -v '^ *+' conftest.er1 >conftest.err
  5600. rm -f conftest.er1
  5601. cat conftest.err >&5
  5602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); } &&
  5604. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5606. (eval $ac_try) 2>&5
  5607. ac_status=$?
  5608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5609. (exit $ac_status); }; } &&
  5610. { ac_try='test -s conftest.$ac_objext'
  5611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5612. (eval $ac_try) 2>&5
  5613. ac_status=$?
  5614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); }; }; then
  5616. ac_cv_c_inline=$ac_kw; break
  5617. else
  5618. echo "$as_me: failed program was:" >&5
  5619. sed 's/^/| /' conftest.$ac_ext >&5
  5620. fi
  5621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5622. done
  5623. fi
  5624. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5625. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5626. case $ac_cv_c_inline in
  5627. inline | yes) ;;
  5628. *)
  5629. case $ac_cv_c_inline in
  5630. no) ac_val=;;
  5631. *) ac_val=$ac_cv_c_inline;;
  5632. esac
  5633. cat >>confdefs.h <<_ACEOF
  5634. #ifndef __cplusplus
  5635. #define inline $ac_val
  5636. #endif
  5637. _ACEOF
  5638. ;;
  5639. esac
  5640. echo "$as_me:$LINENO: checking for size_t" >&5
  5641. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5642. if test "${ac_cv_type_size_t+set}" = set; then
  5643. echo $ECHO_N "(cached) $ECHO_C" >&6
  5644. else
  5645. cat >conftest.$ac_ext <<_ACEOF
  5646. /* confdefs.h. */
  5647. _ACEOF
  5648. cat confdefs.h >>conftest.$ac_ext
  5649. cat >>conftest.$ac_ext <<_ACEOF
  5650. /* end confdefs.h. */
  5651. $ac_includes_default
  5652. int
  5653. main ()
  5654. {
  5655. if ((size_t *) 0)
  5656. return 0;
  5657. if (sizeof (size_t))
  5658. return 0;
  5659. ;
  5660. return 0;
  5661. }
  5662. _ACEOF
  5663. rm -f conftest.$ac_objext
  5664. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5665. (eval $ac_compile) 2>conftest.er1
  5666. ac_status=$?
  5667. grep -v '^ *+' conftest.er1 >conftest.err
  5668. rm -f conftest.er1
  5669. cat conftest.err >&5
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); } &&
  5672. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; } &&
  5678. { ac_try='test -s conftest.$ac_objext'
  5679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5680. (eval $ac_try) 2>&5
  5681. ac_status=$?
  5682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5683. (exit $ac_status); }; }; then
  5684. ac_cv_type_size_t=yes
  5685. else
  5686. echo "$as_me: failed program was:" >&5
  5687. sed 's/^/| /' conftest.$ac_ext >&5
  5688. ac_cv_type_size_t=no
  5689. fi
  5690. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5691. fi
  5692. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5693. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5694. if test $ac_cv_type_size_t = yes; then
  5695. :
  5696. else
  5697. cat >>confdefs.h <<_ACEOF
  5698. #define size_t unsigned
  5699. _ACEOF
  5700. fi
  5701. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5702. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5703. if test "${ac_cv_header_time+set}" = set; then
  5704. echo $ECHO_N "(cached) $ECHO_C" >&6
  5705. else
  5706. cat >conftest.$ac_ext <<_ACEOF
  5707. /* confdefs.h. */
  5708. _ACEOF
  5709. cat confdefs.h >>conftest.$ac_ext
  5710. cat >>conftest.$ac_ext <<_ACEOF
  5711. /* end confdefs.h. */
  5712. #include <sys/types.h>
  5713. #include <sys/time.h>
  5714. #include <time.h>
  5715. int
  5716. main ()
  5717. {
  5718. if ((struct tm *) 0)
  5719. return 0;
  5720. ;
  5721. return 0;
  5722. }
  5723. _ACEOF
  5724. rm -f conftest.$ac_objext
  5725. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5726. (eval $ac_compile) 2>conftest.er1
  5727. ac_status=$?
  5728. grep -v '^ *+' conftest.er1 >conftest.err
  5729. rm -f conftest.er1
  5730. cat conftest.err >&5
  5731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5732. (exit $ac_status); } &&
  5733. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5735. (eval $ac_try) 2>&5
  5736. ac_status=$?
  5737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); }; } &&
  5739. { ac_try='test -s conftest.$ac_objext'
  5740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5741. (eval $ac_try) 2>&5
  5742. ac_status=$?
  5743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5744. (exit $ac_status); }; }; then
  5745. ac_cv_header_time=yes
  5746. else
  5747. echo "$as_me: failed program was:" >&5
  5748. sed 's/^/| /' conftest.$ac_ext >&5
  5749. ac_cv_header_time=no
  5750. fi
  5751. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5752. fi
  5753. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5754. echo "${ECHO_T}$ac_cv_header_time" >&6
  5755. if test $ac_cv_header_time = yes; then
  5756. cat >>confdefs.h <<\_ACEOF
  5757. #define TIME_WITH_SYS_TIME 1
  5758. _ACEOF
  5759. fi
  5760. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5761. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5762. if test "${ac_cv_struct_tm+set}" = set; then
  5763. echo $ECHO_N "(cached) $ECHO_C" >&6
  5764. else
  5765. cat >conftest.$ac_ext <<_ACEOF
  5766. /* confdefs.h. */
  5767. _ACEOF
  5768. cat confdefs.h >>conftest.$ac_ext
  5769. cat >>conftest.$ac_ext <<_ACEOF
  5770. /* end confdefs.h. */
  5771. #include <sys/types.h>
  5772. #include <time.h>
  5773. int
  5774. main ()
  5775. {
  5776. struct tm *tp; tp->tm_sec;
  5777. ;
  5778. return 0;
  5779. }
  5780. _ACEOF
  5781. rm -f conftest.$ac_objext
  5782. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5783. (eval $ac_compile) 2>conftest.er1
  5784. ac_status=$?
  5785. grep -v '^ *+' conftest.er1 >conftest.err
  5786. rm -f conftest.er1
  5787. cat conftest.err >&5
  5788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5789. (exit $ac_status); } &&
  5790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5792. (eval $ac_try) 2>&5
  5793. ac_status=$?
  5794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5795. (exit $ac_status); }; } &&
  5796. { ac_try='test -s conftest.$ac_objext'
  5797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5798. (eval $ac_try) 2>&5
  5799. ac_status=$?
  5800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5801. (exit $ac_status); }; }; then
  5802. ac_cv_struct_tm=time.h
  5803. else
  5804. echo "$as_me: failed program was:" >&5
  5805. sed 's/^/| /' conftest.$ac_ext >&5
  5806. ac_cv_struct_tm=sys/time.h
  5807. fi
  5808. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5809. fi
  5810. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5811. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5812. if test $ac_cv_struct_tm = sys/time.h; then
  5813. cat >>confdefs.h <<\_ACEOF
  5814. #define TM_IN_SYS_TIME 1
  5815. _ACEOF
  5816. fi
  5817. echo "$as_me:$LINENO: checking for working volatile" >&5
  5818. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5819. if test "${ac_cv_c_volatile+set}" = set; then
  5820. echo $ECHO_N "(cached) $ECHO_C" >&6
  5821. else
  5822. cat >conftest.$ac_ext <<_ACEOF
  5823. /* confdefs.h. */
  5824. _ACEOF
  5825. cat confdefs.h >>conftest.$ac_ext
  5826. cat >>conftest.$ac_ext <<_ACEOF
  5827. /* end confdefs.h. */
  5828. int
  5829. main ()
  5830. {
  5831. volatile int x;
  5832. int * volatile y;
  5833. ;
  5834. return 0;
  5835. }
  5836. _ACEOF
  5837. rm -f conftest.$ac_objext
  5838. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5839. (eval $ac_compile) 2>conftest.er1
  5840. ac_status=$?
  5841. grep -v '^ *+' conftest.er1 >conftest.err
  5842. rm -f conftest.er1
  5843. cat conftest.err >&5
  5844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5845. (exit $ac_status); } &&
  5846. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5848. (eval $ac_try) 2>&5
  5849. ac_status=$?
  5850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5851. (exit $ac_status); }; } &&
  5852. { ac_try='test -s conftest.$ac_objext'
  5853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5854. (eval $ac_try) 2>&5
  5855. ac_status=$?
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); }; }; then
  5858. ac_cv_c_volatile=yes
  5859. else
  5860. echo "$as_me: failed program was:" >&5
  5861. sed 's/^/| /' conftest.$ac_ext >&5
  5862. ac_cv_c_volatile=no
  5863. fi
  5864. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5865. fi
  5866. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5867. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5868. if test $ac_cv_c_volatile = no; then
  5869. cat >>confdefs.h <<\_ACEOF
  5870. #define volatile
  5871. _ACEOF
  5872. fi
  5873. # Checks for library functions.
  5874. MKINSTALLDIRS=
  5875. if test -n "$ac_aux_dir"; then
  5876. case "$ac_aux_dir" in
  5877. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5878. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5879. esac
  5880. fi
  5881. if test -z "$MKINSTALLDIRS"; then
  5882. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5883. fi
  5884. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5885. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5886. # Check whether --enable-nls or --disable-nls was given.
  5887. if test "${enable_nls+set}" = set; then
  5888. enableval="$enable_nls"
  5889. USE_NLS=$enableval
  5890. else
  5891. USE_NLS=yes
  5892. fi;
  5893. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5894. echo "${ECHO_T}$USE_NLS" >&6
  5895. # Prepare PATH_SEPARATOR.
  5896. # The user is always right.
  5897. if test "${PATH_SEPARATOR+set}" != set; then
  5898. echo "#! /bin/sh" >conf$$.sh
  5899. echo "exit 0" >>conf$$.sh
  5900. chmod +x conf$$.sh
  5901. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5902. PATH_SEPARATOR=';'
  5903. else
  5904. PATH_SEPARATOR=:
  5905. fi
  5906. rm -f conf$$.sh
  5907. fi
  5908. # Find out how to test for executable files. Don't use a zero-byte file,
  5909. # as systems may use methods other than mode bits to determine executability.
  5910. cat >conf$$.file <<_ASEOF
  5911. #! /bin/sh
  5912. exit 0
  5913. _ASEOF
  5914. chmod +x conf$$.file
  5915. if test -x conf$$.file >/dev/null 2>&1; then
  5916. ac_executable_p="test -x"
  5917. else
  5918. ac_executable_p="test -f"
  5919. fi
  5920. rm -f conf$$.file
  5921. # Extract the first word of "msgfmt", so it can be a program name with args.
  5922. set dummy msgfmt; ac_word=$2
  5923. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5924. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5925. if test "${ac_cv_path_MSGFMT+set}" = set; then
  5926. echo $ECHO_N "(cached) $ECHO_C" >&6
  5927. else
  5928. case "$MSGFMT" in
  5929. [\\/]* | ?:[\\/]*)
  5930. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5931. ;;
  5932. *)
  5933. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  5934. for ac_dir in $PATH; do
  5935. IFS="$ac_save_IFS"
  5936. test -z "$ac_dir" && ac_dir=.
  5937. for ac_exec_ext in '' $ac_executable_extensions; do
  5938. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  5939. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  5940. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  5941. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  5942. break 2
  5943. fi
  5944. fi
  5945. done
  5946. done
  5947. IFS="$ac_save_IFS"
  5948. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  5949. ;;
  5950. esac
  5951. fi
  5952. MSGFMT="$ac_cv_path_MSGFMT"
  5953. if test "$MSGFMT" != ":"; then
  5954. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  5955. echo "${ECHO_T}$MSGFMT" >&6
  5956. else
  5957. echo "$as_me:$LINENO: result: no" >&5
  5958. echo "${ECHO_T}no" >&6
  5959. fi
  5960. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5961. set dummy gmsgfmt; ac_word=$2
  5962. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5963. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5964. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  5965. echo $ECHO_N "(cached) $ECHO_C" >&6
  5966. else
  5967. case $GMSGFMT in
  5968. [\\/]* | ?:[\\/]*)
  5969. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5970. ;;
  5971. *)
  5972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5973. for as_dir in $PATH
  5974. do
  5975. IFS=$as_save_IFS
  5976. test -z "$as_dir" && as_dir=.
  5977. for ac_exec_ext in '' $ac_executable_extensions; do
  5978. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5979. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  5980. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5981. break 2
  5982. fi
  5983. done
  5984. done
  5985. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5986. ;;
  5987. esac
  5988. fi
  5989. GMSGFMT=$ac_cv_path_GMSGFMT
  5990. if test -n "$GMSGFMT"; then
  5991. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  5992. echo "${ECHO_T}$GMSGFMT" >&6
  5993. else
  5994. echo "$as_me:$LINENO: result: no" >&5
  5995. echo "${ECHO_T}no" >&6
  5996. fi
  5997. # Prepare PATH_SEPARATOR.
  5998. # The user is always right.
  5999. if test "${PATH_SEPARATOR+set}" != set; then
  6000. echo "#! /bin/sh" >conf$$.sh
  6001. echo "exit 0" >>conf$$.sh
  6002. chmod +x conf$$.sh
  6003. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6004. PATH_SEPARATOR=';'
  6005. else
  6006. PATH_SEPARATOR=:
  6007. fi
  6008. rm -f conf$$.sh
  6009. fi
  6010. # Find out how to test for executable files. Don't use a zero-byte file,
  6011. # as systems may use methods other than mode bits to determine executability.
  6012. cat >conf$$.file <<_ASEOF
  6013. #! /bin/sh
  6014. exit 0
  6015. _ASEOF
  6016. chmod +x conf$$.file
  6017. if test -x conf$$.file >/dev/null 2>&1; then
  6018. ac_executable_p="test -x"
  6019. else
  6020. ac_executable_p="test -f"
  6021. fi
  6022. rm -f conf$$.file
  6023. # Extract the first word of "xgettext", so it can be a program name with args.
  6024. set dummy xgettext; ac_word=$2
  6025. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6026. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6027. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6028. echo $ECHO_N "(cached) $ECHO_C" >&6
  6029. else
  6030. case "$XGETTEXT" in
  6031. [\\/]* | ?:[\\/]*)
  6032. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6033. ;;
  6034. *)
  6035. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6036. for ac_dir in $PATH; do
  6037. IFS="$ac_save_IFS"
  6038. test -z "$ac_dir" && ac_dir=.
  6039. for ac_exec_ext in '' $ac_executable_extensions; do
  6040. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6041. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6042. (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
  6043. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6044. break 2
  6045. fi
  6046. fi
  6047. done
  6048. done
  6049. IFS="$ac_save_IFS"
  6050. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6051. ;;
  6052. esac
  6053. fi
  6054. XGETTEXT="$ac_cv_path_XGETTEXT"
  6055. if test "$XGETTEXT" != ":"; then
  6056. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6057. echo "${ECHO_T}$XGETTEXT" >&6
  6058. else
  6059. echo "$as_me:$LINENO: result: no" >&5
  6060. echo "${ECHO_T}no" >&6
  6061. fi
  6062. rm -f messages.po
  6063. # Prepare PATH_SEPARATOR.
  6064. # The user is always right.
  6065. if test "${PATH_SEPARATOR+set}" != set; then
  6066. echo "#! /bin/sh" >conf$$.sh
  6067. echo "exit 0" >>conf$$.sh
  6068. chmod +x conf$$.sh
  6069. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6070. PATH_SEPARATOR=';'
  6071. else
  6072. PATH_SEPARATOR=:
  6073. fi
  6074. rm -f conf$$.sh
  6075. fi
  6076. # Find out how to test for executable files. Don't use a zero-byte file,
  6077. # as systems may use methods other than mode bits to determine executability.
  6078. cat >conf$$.file <<_ASEOF
  6079. #! /bin/sh
  6080. exit 0
  6081. _ASEOF
  6082. chmod +x conf$$.file
  6083. if test -x conf$$.file >/dev/null 2>&1; then
  6084. ac_executable_p="test -x"
  6085. else
  6086. ac_executable_p="test -f"
  6087. fi
  6088. rm -f conf$$.file
  6089. # Extract the first word of "msgmerge", so it can be a program name with args.
  6090. set dummy msgmerge; ac_word=$2
  6091. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6093. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6094. echo $ECHO_N "(cached) $ECHO_C" >&6
  6095. else
  6096. case "$MSGMERGE" in
  6097. [\\/]* | ?:[\\/]*)
  6098. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6099. ;;
  6100. *)
  6101. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6102. for ac_dir in $PATH; do
  6103. IFS="$ac_save_IFS"
  6104. test -z "$ac_dir" && ac_dir=.
  6105. for ac_exec_ext in '' $ac_executable_extensions; do
  6106. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6107. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6108. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6109. break 2
  6110. fi
  6111. fi
  6112. done
  6113. done
  6114. IFS="$ac_save_IFS"
  6115. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6116. ;;
  6117. esac
  6118. fi
  6119. MSGMERGE="$ac_cv_path_MSGMERGE"
  6120. if test "$MSGMERGE" != ":"; then
  6121. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6122. echo "${ECHO_T}$MSGMERGE" >&6
  6123. else
  6124. echo "$as_me:$LINENO: result: no" >&5
  6125. echo "${ECHO_T}no" >&6
  6126. fi
  6127. if test "$GMSGFMT" != ":"; then
  6128. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6129. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6130. : ;
  6131. else
  6132. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6133. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6134. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  6135. GMSGFMT=":"
  6136. fi
  6137. fi
  6138. if test "$XGETTEXT" != ":"; then
  6139. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6140. (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
  6141. : ;
  6142. else
  6143. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6144. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  6145. XGETTEXT=":"
  6146. fi
  6147. rm -f messages.po
  6148. fi
  6149. ac_config_commands="$ac_config_commands default-1"
  6150. # Make sure we can run config.sub.
  6151. $ac_config_sub sun4 >/dev/null 2>&1 ||
  6152. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  6153. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  6154. { (exit 1); exit 1; }; }
  6155. echo "$as_me:$LINENO: checking build system type" >&5
  6156. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  6157. if test "${ac_cv_build+set}" = set; then
  6158. echo $ECHO_N "(cached) $ECHO_C" >&6
  6159. else
  6160. ac_cv_build_alias=$build_alias
  6161. test -z "$ac_cv_build_alias" &&
  6162. ac_cv_build_alias=`$ac_config_guess`
  6163. test -z "$ac_cv_build_alias" &&
  6164. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6165. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6166. { (exit 1); exit 1; }; }
  6167. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  6168. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  6169. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  6170. { (exit 1); exit 1; }; }
  6171. fi
  6172. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6173. echo "${ECHO_T}$ac_cv_build" >&6
  6174. build=$ac_cv_build
  6175. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6176. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6177. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6178. echo "$as_me:$LINENO: checking host system type" >&5
  6179. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  6180. if test "${ac_cv_host+set}" = set; then
  6181. echo $ECHO_N "(cached) $ECHO_C" >&6
  6182. else
  6183. ac_cv_host_alias=$host_alias
  6184. test -z "$ac_cv_host_alias" &&
  6185. ac_cv_host_alias=$ac_cv_build_alias
  6186. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  6187. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  6188. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  6189. { (exit 1); exit 1; }; }
  6190. fi
  6191. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6192. echo "${ECHO_T}$ac_cv_host" >&6
  6193. host=$ac_cv_host
  6194. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  6195. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  6196. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6197. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  6198. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  6199. if test "${ac_cv_search_strerror+set}" = set; then
  6200. echo $ECHO_N "(cached) $ECHO_C" >&6
  6201. else
  6202. ac_func_search_save_LIBS=$LIBS
  6203. ac_cv_search_strerror=no
  6204. cat >conftest.$ac_ext <<_ACEOF
  6205. /* confdefs.h. */
  6206. _ACEOF
  6207. cat confdefs.h >>conftest.$ac_ext
  6208. cat >>conftest.$ac_ext <<_ACEOF
  6209. /* end confdefs.h. */
  6210. /* Override any gcc2 internal prototype to avoid an error. */
  6211. #ifdef __cplusplus
  6212. extern "C"
  6213. #endif
  6214. /* We use char because int might match the return type of a gcc2
  6215. builtin and then its argument prototype would still apply. */
  6216. char strerror ();
  6217. int
  6218. main ()
  6219. {
  6220. strerror ();
  6221. ;
  6222. return 0;
  6223. }
  6224. _ACEOF
  6225. rm -f conftest.$ac_objext conftest$ac_exeext
  6226. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6227. (eval $ac_link) 2>conftest.er1
  6228. ac_status=$?
  6229. grep -v '^ *+' conftest.er1 >conftest.err
  6230. rm -f conftest.er1
  6231. cat conftest.err >&5
  6232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6233. (exit $ac_status); } &&
  6234. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6236. (eval $ac_try) 2>&5
  6237. ac_status=$?
  6238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6239. (exit $ac_status); }; } &&
  6240. { ac_try='test -s conftest$ac_exeext'
  6241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6242. (eval $ac_try) 2>&5
  6243. ac_status=$?
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); }; }; then
  6246. ac_cv_search_strerror="none required"
  6247. else
  6248. echo "$as_me: failed program was:" >&5
  6249. sed 's/^/| /' conftest.$ac_ext >&5
  6250. fi
  6251. rm -f conftest.err conftest.$ac_objext \
  6252. conftest$ac_exeext conftest.$ac_ext
  6253. if test "$ac_cv_search_strerror" = no; then
  6254. for ac_lib in cposix; do
  6255. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6256. cat >conftest.$ac_ext <<_ACEOF
  6257. /* confdefs.h. */
  6258. _ACEOF
  6259. cat confdefs.h >>conftest.$ac_ext
  6260. cat >>conftest.$ac_ext <<_ACEOF
  6261. /* end confdefs.h. */
  6262. /* Override any gcc2 internal prototype to avoid an error. */
  6263. #ifdef __cplusplus
  6264. extern "C"
  6265. #endif
  6266. /* We use char because int might match the return type of a gcc2
  6267. builtin and then its argument prototype would still apply. */
  6268. char strerror ();
  6269. int
  6270. main ()
  6271. {
  6272. strerror ();
  6273. ;
  6274. return 0;
  6275. }
  6276. _ACEOF
  6277. rm -f conftest.$ac_objext conftest$ac_exeext
  6278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6279. (eval $ac_link) 2>conftest.er1
  6280. ac_status=$?
  6281. grep -v '^ *+' conftest.er1 >conftest.err
  6282. rm -f conftest.er1
  6283. cat conftest.err >&5
  6284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6285. (exit $ac_status); } &&
  6286. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6288. (eval $ac_try) 2>&5
  6289. ac_status=$?
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); }; } &&
  6292. { ac_try='test -s conftest$ac_exeext'
  6293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6294. (eval $ac_try) 2>&5
  6295. ac_status=$?
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); }; }; then
  6298. ac_cv_search_strerror="-l$ac_lib"
  6299. break
  6300. else
  6301. echo "$as_me: failed program was:" >&5
  6302. sed 's/^/| /' conftest.$ac_ext >&5
  6303. fi
  6304. rm -f conftest.err conftest.$ac_objext \
  6305. conftest$ac_exeext conftest.$ac_ext
  6306. done
  6307. fi
  6308. LIBS=$ac_func_search_save_LIBS
  6309. fi
  6310. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  6311. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  6312. if test "$ac_cv_search_strerror" != no; then
  6313. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  6314. fi
  6315. echo "$as_me:$LINENO: checking for off_t" >&5
  6316. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  6317. if test "${ac_cv_type_off_t+set}" = set; then
  6318. echo $ECHO_N "(cached) $ECHO_C" >&6
  6319. else
  6320. cat >conftest.$ac_ext <<_ACEOF
  6321. /* confdefs.h. */
  6322. _ACEOF
  6323. cat confdefs.h >>conftest.$ac_ext
  6324. cat >>conftest.$ac_ext <<_ACEOF
  6325. /* end confdefs.h. */
  6326. $ac_includes_default
  6327. int
  6328. main ()
  6329. {
  6330. if ((off_t *) 0)
  6331. return 0;
  6332. if (sizeof (off_t))
  6333. return 0;
  6334. ;
  6335. return 0;
  6336. }
  6337. _ACEOF
  6338. rm -f conftest.$ac_objext
  6339. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6340. (eval $ac_compile) 2>conftest.er1
  6341. ac_status=$?
  6342. grep -v '^ *+' conftest.er1 >conftest.err
  6343. rm -f conftest.er1
  6344. cat conftest.err >&5
  6345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6346. (exit $ac_status); } &&
  6347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6349. (eval $ac_try) 2>&5
  6350. ac_status=$?
  6351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6352. (exit $ac_status); }; } &&
  6353. { ac_try='test -s conftest.$ac_objext'
  6354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6355. (eval $ac_try) 2>&5
  6356. ac_status=$?
  6357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6358. (exit $ac_status); }; }; then
  6359. ac_cv_type_off_t=yes
  6360. else
  6361. echo "$as_me: failed program was:" >&5
  6362. sed 's/^/| /' conftest.$ac_ext >&5
  6363. ac_cv_type_off_t=no
  6364. fi
  6365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6366. fi
  6367. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6368. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  6369. if test $ac_cv_type_off_t = yes; then
  6370. :
  6371. else
  6372. cat >>confdefs.h <<_ACEOF
  6373. #define off_t long
  6374. _ACEOF
  6375. fi
  6376. for ac_header in stdlib.h unistd.h
  6377. do
  6378. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6379. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6380. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6381. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6382. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6383. echo $ECHO_N "(cached) $ECHO_C" >&6
  6384. fi
  6385. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6386. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6387. else
  6388. # Is the header compilable?
  6389. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6390. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6391. cat >conftest.$ac_ext <<_ACEOF
  6392. /* confdefs.h. */
  6393. _ACEOF
  6394. cat confdefs.h >>conftest.$ac_ext
  6395. cat >>conftest.$ac_ext <<_ACEOF
  6396. /* end confdefs.h. */
  6397. $ac_includes_default
  6398. #include <$ac_header>
  6399. _ACEOF
  6400. rm -f conftest.$ac_objext
  6401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6402. (eval $ac_compile) 2>conftest.er1
  6403. ac_status=$?
  6404. grep -v '^ *+' conftest.er1 >conftest.err
  6405. rm -f conftest.er1
  6406. cat conftest.err >&5
  6407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6408. (exit $ac_status); } &&
  6409. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6411. (eval $ac_try) 2>&5
  6412. ac_status=$?
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); }; } &&
  6415. { ac_try='test -s conftest.$ac_objext'
  6416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6417. (eval $ac_try) 2>&5
  6418. ac_status=$?
  6419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6420. (exit $ac_status); }; }; then
  6421. ac_header_compiler=yes
  6422. else
  6423. echo "$as_me: failed program was:" >&5
  6424. sed 's/^/| /' conftest.$ac_ext >&5
  6425. ac_header_compiler=no
  6426. fi
  6427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6428. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6429. echo "${ECHO_T}$ac_header_compiler" >&6
  6430. # Is the header present?
  6431. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6432. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6433. cat >conftest.$ac_ext <<_ACEOF
  6434. /* confdefs.h. */
  6435. _ACEOF
  6436. cat confdefs.h >>conftest.$ac_ext
  6437. cat >>conftest.$ac_ext <<_ACEOF
  6438. /* end confdefs.h. */
  6439. #include <$ac_header>
  6440. _ACEOF
  6441. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6442. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6443. ac_status=$?
  6444. grep -v '^ *+' conftest.er1 >conftest.err
  6445. rm -f conftest.er1
  6446. cat conftest.err >&5
  6447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6448. (exit $ac_status); } >/dev/null; then
  6449. if test -s conftest.err; then
  6450. ac_cpp_err=$ac_c_preproc_warn_flag
  6451. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6452. else
  6453. ac_cpp_err=
  6454. fi
  6455. else
  6456. ac_cpp_err=yes
  6457. fi
  6458. if test -z "$ac_cpp_err"; then
  6459. ac_header_preproc=yes
  6460. else
  6461. echo "$as_me: failed program was:" >&5
  6462. sed 's/^/| /' conftest.$ac_ext >&5
  6463. ac_header_preproc=no
  6464. fi
  6465. rm -f conftest.err conftest.$ac_ext
  6466. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6467. echo "${ECHO_T}$ac_header_preproc" >&6
  6468. # So? What about this header?
  6469. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6470. yes:no: )
  6471. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6472. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6473. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6474. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6475. ac_header_preproc=yes
  6476. ;;
  6477. no:yes:* )
  6478. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6479. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6480. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6481. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6482. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6483. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6484. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6485. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6486. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6487. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6488. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6489. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6490. (
  6491. cat <<\_ASBOX
  6492. ## ----------------------------------- ##
  6493. ## Report this to tujikawa@rednoah.com ##
  6494. ## ----------------------------------- ##
  6495. _ASBOX
  6496. ) |
  6497. sed "s/^/$as_me: WARNING: /" >&2
  6498. ;;
  6499. esac
  6500. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6501. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6502. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6503. echo $ECHO_N "(cached) $ECHO_C" >&6
  6504. else
  6505. eval "$as_ac_Header=\$ac_header_preproc"
  6506. fi
  6507. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6508. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6509. fi
  6510. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6511. cat >>confdefs.h <<_ACEOF
  6512. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6513. _ACEOF
  6514. fi
  6515. done
  6516. for ac_func in getpagesize
  6517. do
  6518. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6519. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6520. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6521. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6522. echo $ECHO_N "(cached) $ECHO_C" >&6
  6523. else
  6524. cat >conftest.$ac_ext <<_ACEOF
  6525. /* confdefs.h. */
  6526. _ACEOF
  6527. cat confdefs.h >>conftest.$ac_ext
  6528. cat >>conftest.$ac_ext <<_ACEOF
  6529. /* end confdefs.h. */
  6530. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6531. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6532. #define $ac_func innocuous_$ac_func
  6533. /* System header to define __stub macros and hopefully few prototypes,
  6534. which can conflict with char $ac_func (); below.
  6535. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6536. <limits.h> exists even on freestanding compilers. */
  6537. #ifdef __STDC__
  6538. # include <limits.h>
  6539. #else
  6540. # include <assert.h>
  6541. #endif
  6542. #undef $ac_func
  6543. /* Override any gcc2 internal prototype to avoid an error. */
  6544. #ifdef __cplusplus
  6545. extern "C"
  6546. {
  6547. #endif
  6548. /* We use char because int might match the return type of a gcc2
  6549. builtin and then its argument prototype would still apply. */
  6550. char $ac_func ();
  6551. /* The GNU C library defines this for functions which it implements
  6552. to always fail with ENOSYS. Some functions are actually named
  6553. something starting with __ and the normal name is an alias. */
  6554. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6555. choke me
  6556. #else
  6557. char (*f) () = $ac_func;
  6558. #endif
  6559. #ifdef __cplusplus
  6560. }
  6561. #endif
  6562. int
  6563. main ()
  6564. {
  6565. return f != $ac_func;
  6566. ;
  6567. return 0;
  6568. }
  6569. _ACEOF
  6570. rm -f conftest.$ac_objext conftest$ac_exeext
  6571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6572. (eval $ac_link) 2>conftest.er1
  6573. ac_status=$?
  6574. grep -v '^ *+' conftest.er1 >conftest.err
  6575. rm -f conftest.er1
  6576. cat conftest.err >&5
  6577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6578. (exit $ac_status); } &&
  6579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6581. (eval $ac_try) 2>&5
  6582. ac_status=$?
  6583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6584. (exit $ac_status); }; } &&
  6585. { ac_try='test -s conftest$ac_exeext'
  6586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6587. (eval $ac_try) 2>&5
  6588. ac_status=$?
  6589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6590. (exit $ac_status); }; }; then
  6591. eval "$as_ac_var=yes"
  6592. else
  6593. echo "$as_me: failed program was:" >&5
  6594. sed 's/^/| /' conftest.$ac_ext >&5
  6595. eval "$as_ac_var=no"
  6596. fi
  6597. rm -f conftest.err conftest.$ac_objext \
  6598. conftest$ac_exeext conftest.$ac_ext
  6599. fi
  6600. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6601. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6602. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6603. cat >>confdefs.h <<_ACEOF
  6604. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6605. _ACEOF
  6606. fi
  6607. done
  6608. echo "$as_me:$LINENO: checking for working mmap" >&5
  6609. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  6610. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  6611. echo $ECHO_N "(cached) $ECHO_C" >&6
  6612. else
  6613. if test "$cross_compiling" = yes; then
  6614. ac_cv_func_mmap_fixed_mapped=no
  6615. else
  6616. cat >conftest.$ac_ext <<_ACEOF
  6617. /* confdefs.h. */
  6618. _ACEOF
  6619. cat confdefs.h >>conftest.$ac_ext
  6620. cat >>conftest.$ac_ext <<_ACEOF
  6621. /* end confdefs.h. */
  6622. $ac_includes_default
  6623. /* malloc might have been renamed as rpl_malloc. */
  6624. #undef malloc
  6625. /* Thanks to Mike Haertel and Jim Avera for this test.
  6626. Here is a matrix of mmap possibilities:
  6627. mmap private not fixed
  6628. mmap private fixed at somewhere currently unmapped
  6629. mmap private fixed at somewhere already mapped
  6630. mmap shared not fixed
  6631. mmap shared fixed at somewhere currently unmapped
  6632. mmap shared fixed at somewhere already mapped
  6633. For private mappings, we should verify that changes cannot be read()
  6634. back from the file, nor mmap's back from the file at a different
  6635. address. (There have been systems where private was not correctly
  6636. implemented like the infamous i386 svr4.0, and systems where the
  6637. VM page cache was not coherent with the file system buffer cache
  6638. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6639. For shared mappings, we should conversely verify that changes get
  6640. propagated back to all the places they're supposed to be.
  6641. Grep wants private fixed already mapped.
  6642. The main things grep needs to know about mmap are:
  6643. * does it exist and is it safe to write into the mmap'd area
  6644. * how to use it (BSD variants) */
  6645. #include <fcntl.h>
  6646. #include <sys/mman.h>
  6647. #if !STDC_HEADERS && !HAVE_STDLIB_H
  6648. char *malloc ();
  6649. #endif
  6650. /* This mess was copied from the GNU getpagesize.h. */
  6651. #if !HAVE_GETPAGESIZE
  6652. /* Assume that all systems that can run configure have sys/param.h. */
  6653. # if !HAVE_SYS_PARAM_H
  6654. # define HAVE_SYS_PARAM_H 1
  6655. # endif
  6656. # ifdef _SC_PAGESIZE
  6657. # define getpagesize() sysconf(_SC_PAGESIZE)
  6658. # else /* no _SC_PAGESIZE */
  6659. # if HAVE_SYS_PARAM_H
  6660. # include <sys/param.h>
  6661. # ifdef EXEC_PAGESIZE
  6662. # define getpagesize() EXEC_PAGESIZE
  6663. # else /* no EXEC_PAGESIZE */
  6664. # ifdef NBPG
  6665. # define getpagesize() NBPG * CLSIZE
  6666. # ifndef CLSIZE
  6667. # define CLSIZE 1
  6668. # endif /* no CLSIZE */
  6669. # else /* no NBPG */
  6670. # ifdef NBPC
  6671. # define getpagesize() NBPC
  6672. # else /* no NBPC */
  6673. # ifdef PAGESIZE
  6674. # define getpagesize() PAGESIZE
  6675. # endif /* PAGESIZE */
  6676. # endif /* no NBPC */
  6677. # endif /* no NBPG */
  6678. # endif /* no EXEC_PAGESIZE */
  6679. # else /* no HAVE_SYS_PARAM_H */
  6680. # define getpagesize() 8192 /* punt totally */
  6681. # endif /* no HAVE_SYS_PARAM_H */
  6682. # endif /* no _SC_PAGESIZE */
  6683. #endif /* no HAVE_GETPAGESIZE */
  6684. int
  6685. main ()
  6686. {
  6687. char *data, *data2, *data3;
  6688. int i, pagesize;
  6689. int fd;
  6690. pagesize = getpagesize ();
  6691. /* First, make a file with some known garbage in it. */
  6692. data = (char *) malloc (pagesize);
  6693. if (!data)
  6694. exit (1);
  6695. for (i = 0; i < pagesize; ++i)
  6696. *(data + i) = rand ();
  6697. umask (0);
  6698. fd = creat ("conftest.mmap", 0600);
  6699. if (fd < 0)
  6700. exit (1);
  6701. if (write (fd, data, pagesize) != pagesize)
  6702. exit (1);
  6703. close (fd);
  6704. /* Next, try to mmap the file at a fixed address which already has
  6705. something else allocated at it. If we can, also make sure that
  6706. we see the same garbage. */
  6707. fd = open ("conftest.mmap", O_RDWR);
  6708. if (fd < 0)
  6709. exit (1);
  6710. data2 = (char *) malloc (2 * pagesize);
  6711. if (!data2)
  6712. exit (1);
  6713. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  6714. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6715. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6716. exit (1);
  6717. for (i = 0; i < pagesize; ++i)
  6718. if (*(data + i) != *(data2 + i))
  6719. exit (1);
  6720. /* Finally, make sure that changes to the mapped area do not
  6721. percolate back to the file as seen by read(). (This is a bug on
  6722. some variants of i386 svr4.0.) */
  6723. for (i = 0; i < pagesize; ++i)
  6724. *(data2 + i) = *(data2 + i) + 1;
  6725. data3 = (char *) malloc (pagesize);
  6726. if (!data3)
  6727. exit (1);
  6728. if (read (fd, data3, pagesize) != pagesize)
  6729. exit (1);
  6730. for (i = 0; i < pagesize; ++i)
  6731. if (*(data + i) != *(data3 + i))
  6732. exit (1);
  6733. close (fd);
  6734. exit (0);
  6735. }
  6736. _ACEOF
  6737. rm -f conftest$ac_exeext
  6738. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6739. (eval $ac_link) 2>&5
  6740. ac_status=$?
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6744. (eval $ac_try) 2>&5
  6745. ac_status=$?
  6746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6747. (exit $ac_status); }; }; then
  6748. ac_cv_func_mmap_fixed_mapped=yes
  6749. else
  6750. echo "$as_me: program exited with status $ac_status" >&5
  6751. echo "$as_me: failed program was:" >&5
  6752. sed 's/^/| /' conftest.$ac_ext >&5
  6753. ( exit $ac_status )
  6754. ac_cv_func_mmap_fixed_mapped=no
  6755. fi
  6756. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6757. fi
  6758. fi
  6759. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6760. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  6761. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6762. cat >>confdefs.h <<\_ACEOF
  6763. #define HAVE_MMAP 1
  6764. _ACEOF
  6765. fi
  6766. rm -f conftest.mmap
  6767. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  6768. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  6769. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  6770. echo $ECHO_N "(cached) $ECHO_C" >&6
  6771. else
  6772. cat >conftest.$ac_ext <<_ACEOF
  6773. /* confdefs.h. */
  6774. _ACEOF
  6775. cat confdefs.h >>conftest.$ac_ext
  6776. cat >>conftest.$ac_ext <<_ACEOF
  6777. /* end confdefs.h. */
  6778. #include <features.h>
  6779. #ifdef __GNU_LIBRARY__
  6780. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  6781. Lucky GNU user
  6782. #endif
  6783. #endif
  6784. _ACEOF
  6785. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6786. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  6787. ac_cv_gnu_library_2_1=yes
  6788. else
  6789. ac_cv_gnu_library_2_1=no
  6790. fi
  6791. rm -f conftest*
  6792. fi
  6793. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  6794. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  6795. GLIBC21="$ac_cv_gnu_library_2_1"
  6796. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  6797. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  6798. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  6799. echo $ECHO_N "(cached) $ECHO_C" >&6
  6800. else
  6801. if test "$cross_compiling" = yes; then
  6802. # Guess based on the CPU.
  6803. case "$host_cpu" in
  6804. alpha* | i3456786 | m68k | s390*)
  6805. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  6806. *)
  6807. gt_cv_int_divbyzero_sigfpe="guessing no";;
  6808. esac
  6809. else
  6810. cat >conftest.$ac_ext <<_ACEOF
  6811. /* confdefs.h. */
  6812. _ACEOF
  6813. cat confdefs.h >>conftest.$ac_ext
  6814. cat >>conftest.$ac_ext <<_ACEOF
  6815. /* end confdefs.h. */
  6816. #include <stdlib.h>
  6817. #include <signal.h>
  6818. static void
  6819. #ifdef __cplusplus
  6820. sigfpe_handler (int sig)
  6821. #else
  6822. sigfpe_handler (sig) int sig;
  6823. #endif
  6824. {
  6825. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  6826. exit (sig != SIGFPE);
  6827. }
  6828. int x = 1;
  6829. int y = 0;
  6830. int z;
  6831. int nan;
  6832. int main ()
  6833. {
  6834. signal (SIGFPE, sigfpe_handler);
  6835. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  6836. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  6837. signal (SIGTRAP, sigfpe_handler);
  6838. #endif
  6839. /* Linux/SPARC yields signal SIGILL. */
  6840. #if defined (__sparc__) && defined (__linux__)
  6841. signal (SIGILL, sigfpe_handler);
  6842. #endif
  6843. z = x / y;
  6844. nan = y / y;
  6845. exit (1);
  6846. }
  6847. _ACEOF
  6848. rm -f conftest$ac_exeext
  6849. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6850. (eval $ac_link) 2>&5
  6851. ac_status=$?
  6852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6853. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6855. (eval $ac_try) 2>&5
  6856. ac_status=$?
  6857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6858. (exit $ac_status); }; }; then
  6859. gt_cv_int_divbyzero_sigfpe=yes
  6860. else
  6861. echo "$as_me: program exited with status $ac_status" >&5
  6862. echo "$as_me: failed program was:" >&5
  6863. sed 's/^/| /' conftest.$ac_ext >&5
  6864. ( exit $ac_status )
  6865. gt_cv_int_divbyzero_sigfpe=no
  6866. fi
  6867. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6868. fi
  6869. fi
  6870. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  6871. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  6872. case "$gt_cv_int_divbyzero_sigfpe" in
  6873. *yes) value=1;;
  6874. *) value=0;;
  6875. esac
  6876. cat >>confdefs.h <<_ACEOF
  6877. #define INTDIV0_RAISES_SIGFPE $value
  6878. _ACEOF
  6879. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  6880. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  6881. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  6882. echo $ECHO_N "(cached) $ECHO_C" >&6
  6883. else
  6884. cat >conftest.$ac_ext <<_ACEOF
  6885. /* confdefs.h. */
  6886. _ACEOF
  6887. cat confdefs.h >>conftest.$ac_ext
  6888. cat >>conftest.$ac_ext <<_ACEOF
  6889. /* end confdefs.h. */
  6890. #include <sys/types.h>
  6891. #include <inttypes.h>
  6892. int
  6893. main ()
  6894. {
  6895. uintmax_t i = (uintmax_t) -1;
  6896. ;
  6897. return 0;
  6898. }
  6899. _ACEOF
  6900. rm -f conftest.$ac_objext
  6901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6902. (eval $ac_compile) 2>conftest.er1
  6903. ac_status=$?
  6904. grep -v '^ *+' conftest.er1 >conftest.err
  6905. rm -f conftest.er1
  6906. cat conftest.err >&5
  6907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6908. (exit $ac_status); } &&
  6909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6911. (eval $ac_try) 2>&5
  6912. ac_status=$?
  6913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. (exit $ac_status); }; } &&
  6915. { ac_try='test -s conftest.$ac_objext'
  6916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6917. (eval $ac_try) 2>&5
  6918. ac_status=$?
  6919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. (exit $ac_status); }; }; then
  6921. jm_ac_cv_header_inttypes_h=yes
  6922. else
  6923. echo "$as_me: failed program was:" >&5
  6924. sed 's/^/| /' conftest.$ac_ext >&5
  6925. jm_ac_cv_header_inttypes_h=no
  6926. fi
  6927. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6928. fi
  6929. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  6930. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  6931. if test $jm_ac_cv_header_inttypes_h = yes; then
  6932. cat >>confdefs.h <<_ACEOF
  6933. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  6934. _ACEOF
  6935. fi
  6936. echo "$as_me:$LINENO: checking for stdint.h" >&5
  6937. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  6938. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  6939. echo $ECHO_N "(cached) $ECHO_C" >&6
  6940. else
  6941. cat >conftest.$ac_ext <<_ACEOF
  6942. /* confdefs.h. */
  6943. _ACEOF
  6944. cat confdefs.h >>conftest.$ac_ext
  6945. cat >>conftest.$ac_ext <<_ACEOF
  6946. /* end confdefs.h. */
  6947. #include <sys/types.h>
  6948. #include <stdint.h>
  6949. int
  6950. main ()
  6951. {
  6952. uintmax_t i = (uintmax_t) -1;
  6953. ;
  6954. return 0;
  6955. }
  6956. _ACEOF
  6957. rm -f conftest.$ac_objext
  6958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6959. (eval $ac_compile) 2>conftest.er1
  6960. ac_status=$?
  6961. grep -v '^ *+' conftest.er1 >conftest.err
  6962. rm -f conftest.er1
  6963. cat conftest.err >&5
  6964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6965. (exit $ac_status); } &&
  6966. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6968. (eval $ac_try) 2>&5
  6969. ac_status=$?
  6970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6971. (exit $ac_status); }; } &&
  6972. { ac_try='test -s conftest.$ac_objext'
  6973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6974. (eval $ac_try) 2>&5
  6975. ac_status=$?
  6976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6977. (exit $ac_status); }; }; then
  6978. jm_ac_cv_header_stdint_h=yes
  6979. else
  6980. echo "$as_me: failed program was:" >&5
  6981. sed 's/^/| /' conftest.$ac_ext >&5
  6982. jm_ac_cv_header_stdint_h=no
  6983. fi
  6984. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6985. fi
  6986. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  6987. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  6988. if test $jm_ac_cv_header_stdint_h = yes; then
  6989. cat >>confdefs.h <<_ACEOF
  6990. #define HAVE_STDINT_H_WITH_UINTMAX 1
  6991. _ACEOF
  6992. fi
  6993. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  6994. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  6995. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  6996. echo $ECHO_N "(cached) $ECHO_C" >&6
  6997. else
  6998. cat >conftest.$ac_ext <<_ACEOF
  6999. /* confdefs.h. */
  7000. _ACEOF
  7001. cat confdefs.h >>conftest.$ac_ext
  7002. cat >>conftest.$ac_ext <<_ACEOF
  7003. /* end confdefs.h. */
  7004. unsigned long long ull = 1; int i = 63;
  7005. int
  7006. main ()
  7007. {
  7008. unsigned long long ullmax = (unsigned long long) -1;
  7009. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7010. ;
  7011. return 0;
  7012. }
  7013. _ACEOF
  7014. rm -f conftest.$ac_objext conftest$ac_exeext
  7015. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7016. (eval $ac_link) 2>conftest.er1
  7017. ac_status=$?
  7018. grep -v '^ *+' conftest.er1 >conftest.err
  7019. rm -f conftest.er1
  7020. cat conftest.err >&5
  7021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7022. (exit $ac_status); } &&
  7023. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7025. (eval $ac_try) 2>&5
  7026. ac_status=$?
  7027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7028. (exit $ac_status); }; } &&
  7029. { ac_try='test -s conftest$ac_exeext'
  7030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7031. (eval $ac_try) 2>&5
  7032. ac_status=$?
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); }; }; then
  7035. ac_cv_type_unsigned_long_long=yes
  7036. else
  7037. echo "$as_me: failed program was:" >&5
  7038. sed 's/^/| /' conftest.$ac_ext >&5
  7039. ac_cv_type_unsigned_long_long=no
  7040. fi
  7041. rm -f conftest.err conftest.$ac_objext \
  7042. conftest$ac_exeext conftest.$ac_ext
  7043. fi
  7044. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7045. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  7046. if test $ac_cv_type_unsigned_long_long = yes; then
  7047. cat >>confdefs.h <<\_ACEOF
  7048. #define HAVE_UNSIGNED_LONG_LONG 1
  7049. _ACEOF
  7050. fi
  7051. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7052. test $ac_cv_type_unsigned_long_long = yes \
  7053. && ac_type='unsigned long long' \
  7054. || ac_type='unsigned long'
  7055. cat >>confdefs.h <<_ACEOF
  7056. #define uintmax_t $ac_type
  7057. _ACEOF
  7058. else
  7059. cat >>confdefs.h <<\_ACEOF
  7060. #define HAVE_UINTMAX_T 1
  7061. _ACEOF
  7062. fi
  7063. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7064. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  7065. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7066. echo $ECHO_N "(cached) $ECHO_C" >&6
  7067. else
  7068. cat >conftest.$ac_ext <<_ACEOF
  7069. /* confdefs.h. */
  7070. _ACEOF
  7071. cat confdefs.h >>conftest.$ac_ext
  7072. cat >>conftest.$ac_ext <<_ACEOF
  7073. /* end confdefs.h. */
  7074. #include <sys/types.h>
  7075. #include <inttypes.h>
  7076. int
  7077. main ()
  7078. {
  7079. ;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. rm -f conftest.$ac_objext
  7084. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7085. (eval $ac_compile) 2>conftest.er1
  7086. ac_status=$?
  7087. grep -v '^ *+' conftest.er1 >conftest.err
  7088. rm -f conftest.er1
  7089. cat conftest.err >&5
  7090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7091. (exit $ac_status); } &&
  7092. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7094. (eval $ac_try) 2>&5
  7095. ac_status=$?
  7096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7097. (exit $ac_status); }; } &&
  7098. { ac_try='test -s conftest.$ac_objext'
  7099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7100. (eval $ac_try) 2>&5
  7101. ac_status=$?
  7102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7103. (exit $ac_status); }; }; then
  7104. gt_cv_header_inttypes_h=yes
  7105. else
  7106. echo "$as_me: failed program was:" >&5
  7107. sed 's/^/| /' conftest.$ac_ext >&5
  7108. gt_cv_header_inttypes_h=no
  7109. fi
  7110. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7111. fi
  7112. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7113. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  7114. if test $gt_cv_header_inttypes_h = yes; then
  7115. cat >>confdefs.h <<_ACEOF
  7116. #define HAVE_INTTYPES_H 1
  7117. _ACEOF
  7118. fi
  7119. if test $gt_cv_header_inttypes_h = yes; then
  7120. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7121. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  7122. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7123. echo $ECHO_N "(cached) $ECHO_C" >&6
  7124. else
  7125. cat >conftest.$ac_ext <<_ACEOF
  7126. /* confdefs.h. */
  7127. _ACEOF
  7128. cat confdefs.h >>conftest.$ac_ext
  7129. cat >>conftest.$ac_ext <<_ACEOF
  7130. /* end confdefs.h. */
  7131. #include <inttypes.h>
  7132. #ifdef PRId32
  7133. char *p = PRId32;
  7134. #endif
  7135. int
  7136. main ()
  7137. {
  7138. ;
  7139. return 0;
  7140. }
  7141. _ACEOF
  7142. rm -f conftest.$ac_objext
  7143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7144. (eval $ac_compile) 2>conftest.er1
  7145. ac_status=$?
  7146. grep -v '^ *+' conftest.er1 >conftest.err
  7147. rm -f conftest.er1
  7148. cat conftest.err >&5
  7149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150. (exit $ac_status); } &&
  7151. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7153. (eval $ac_try) 2>&5
  7154. ac_status=$?
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. (exit $ac_status); }; } &&
  7157. { ac_try='test -s conftest.$ac_objext'
  7158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7159. (eval $ac_try) 2>&5
  7160. ac_status=$?
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); }; }; then
  7163. gt_cv_inttypes_pri_broken=no
  7164. else
  7165. echo "$as_me: failed program was:" >&5
  7166. sed 's/^/| /' conftest.$ac_ext >&5
  7167. gt_cv_inttypes_pri_broken=yes
  7168. fi
  7169. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7170. fi
  7171. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7172. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  7173. fi
  7174. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7175. cat >>confdefs.h <<_ACEOF
  7176. #define PRI_MACROS_BROKEN 1
  7177. _ACEOF
  7178. fi
  7179. if test "X$prefix" = "XNONE"; then
  7180. acl_final_prefix="$ac_default_prefix"
  7181. else
  7182. acl_final_prefix="$prefix"
  7183. fi
  7184. if test "X$exec_prefix" = "XNONE"; then
  7185. acl_final_exec_prefix='${prefix}'
  7186. else
  7187. acl_final_exec_prefix="$exec_prefix"
  7188. fi
  7189. acl_save_prefix="$prefix"
  7190. prefix="$acl_final_prefix"
  7191. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7192. prefix="$acl_save_prefix"
  7193. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  7194. if test "${with_gnu_ld+set}" = set; then
  7195. withval="$with_gnu_ld"
  7196. test "$withval" = no || with_gnu_ld=yes
  7197. else
  7198. with_gnu_ld=no
  7199. fi;
  7200. # Prepare PATH_SEPARATOR.
  7201. # The user is always right.
  7202. if test "${PATH_SEPARATOR+set}" != set; then
  7203. echo "#! /bin/sh" >conf$$.sh
  7204. echo "exit 0" >>conf$$.sh
  7205. chmod +x conf$$.sh
  7206. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7207. PATH_SEPARATOR=';'
  7208. else
  7209. PATH_SEPARATOR=:
  7210. fi
  7211. rm -f conf$$.sh
  7212. fi
  7213. ac_prog=ld
  7214. if test "$GCC" = yes; then
  7215. # Check if gcc -print-prog-name=ld gives a path.
  7216. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7217. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  7218. case $host in
  7219. *-*-mingw*)
  7220. # gcc leaves a trailing carriage return which upsets mingw
  7221. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7222. *)
  7223. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7224. esac
  7225. case $ac_prog in
  7226. # Accept absolute paths.
  7227. [\\/]* | [A-Za-z]:[\\/]*)
  7228. re_direlt='/[^/][^/]*/\.\./'
  7229. # Canonicalize the path of ld
  7230. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7231. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7232. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7233. done
  7234. test -z "$LD" && LD="$ac_prog"
  7235. ;;
  7236. "")
  7237. # If it fails, then pretend we aren't using GCC.
  7238. ac_prog=ld
  7239. ;;
  7240. *)
  7241. # If it is relative, then search for the first ld in PATH.
  7242. with_gnu_ld=unknown
  7243. ;;
  7244. esac
  7245. elif test "$with_gnu_ld" = yes; then
  7246. echo "$as_me:$LINENO: checking for GNU ld" >&5
  7247. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  7248. else
  7249. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7250. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  7251. fi
  7252. if test "${acl_cv_path_LD+set}" = set; then
  7253. echo $ECHO_N "(cached) $ECHO_C" >&6
  7254. else
  7255. if test -z "$LD"; then
  7256. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7257. for ac_dir in $PATH; do
  7258. test -z "$ac_dir" && ac_dir=.
  7259. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7260. acl_cv_path_LD="$ac_dir/$ac_prog"
  7261. # Check to see if the program is GNU ld. I'd rather use --version,
  7262. # but apparently some GNU ld's only accept -v.
  7263. # Break only if it was the GNU/non-GNU ld that we prefer.
  7264. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7265. test "$with_gnu_ld" != no && break
  7266. else
  7267. test "$with_gnu_ld" != yes && break
  7268. fi
  7269. fi
  7270. done
  7271. IFS="$ac_save_ifs"
  7272. else
  7273. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7274. fi
  7275. fi
  7276. LD="$acl_cv_path_LD"
  7277. if test -n "$LD"; then
  7278. echo "$as_me:$LINENO: result: $LD" >&5
  7279. echo "${ECHO_T}$LD" >&6
  7280. else
  7281. echo "$as_me:$LINENO: result: no" >&5
  7282. echo "${ECHO_T}no" >&6
  7283. fi
  7284. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7285. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7286. { (exit 1); exit 1; }; }
  7287. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7288. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  7289. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7290. echo $ECHO_N "(cached) $ECHO_C" >&6
  7291. else
  7292. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7293. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7294. acl_cv_prog_gnu_ld=yes
  7295. else
  7296. acl_cv_prog_gnu_ld=no
  7297. fi
  7298. fi
  7299. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7300. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  7301. with_gnu_ld=$acl_cv_prog_gnu_ld
  7302. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7303. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  7304. if test "${acl_cv_rpath+set}" = set; then
  7305. echo $ECHO_N "(cached) $ECHO_C" >&6
  7306. else
  7307. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7308. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7309. . ./conftest.sh
  7310. rm -f ./conftest.sh
  7311. acl_cv_rpath=done
  7312. fi
  7313. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7314. echo "${ECHO_T}$acl_cv_rpath" >&6
  7315. wl="$acl_cv_wl"
  7316. libext="$acl_cv_libext"
  7317. shlibext="$acl_cv_shlibext"
  7318. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7319. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7320. hardcode_direct="$acl_cv_hardcode_direct"
  7321. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7322. # Check whether --enable-rpath or --disable-rpath was given.
  7323. if test "${enable_rpath+set}" = set; then
  7324. enableval="$enable_rpath"
  7325. :
  7326. else
  7327. enable_rpath=yes
  7328. fi;
  7329. use_additional=yes
  7330. acl_save_prefix="$prefix"
  7331. prefix="$acl_final_prefix"
  7332. acl_save_exec_prefix="$exec_prefix"
  7333. exec_prefix="$acl_final_exec_prefix"
  7334. eval additional_includedir=\"$includedir\"
  7335. eval additional_libdir=\"$libdir\"
  7336. exec_prefix="$acl_save_exec_prefix"
  7337. prefix="$acl_save_prefix"
  7338. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  7339. if test "${with_libiconv_prefix+set}" = set; then
  7340. withval="$with_libiconv_prefix"
  7341. if test "X$withval" = "Xno"; then
  7342. use_additional=no
  7343. else
  7344. if test "X$withval" = "X"; then
  7345. acl_save_prefix="$prefix"
  7346. prefix="$acl_final_prefix"
  7347. acl_save_exec_prefix="$exec_prefix"
  7348. exec_prefix="$acl_final_exec_prefix"
  7349. eval additional_includedir=\"$includedir\"
  7350. eval additional_libdir=\"$libdir\"
  7351. exec_prefix="$acl_save_exec_prefix"
  7352. prefix="$acl_save_prefix"
  7353. else
  7354. additional_includedir="$withval/include"
  7355. additional_libdir="$withval/lib"
  7356. fi
  7357. fi
  7358. fi;
  7359. LIBICONV=
  7360. LTLIBICONV=
  7361. INCICONV=
  7362. rpathdirs=
  7363. ltrpathdirs=
  7364. names_already_handled=
  7365. names_next_round='iconv '
  7366. while test -n "$names_next_round"; do
  7367. names_this_round="$names_next_round"
  7368. names_next_round=
  7369. for name in $names_this_round; do
  7370. already_handled=
  7371. for n in $names_already_handled; do
  7372. if test "$n" = "$name"; then
  7373. already_handled=yes
  7374. break
  7375. fi
  7376. done
  7377. if test -z "$already_handled"; then
  7378. names_already_handled="$names_already_handled $name"
  7379. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7380. eval value=\"\$HAVE_LIB$uppername\"
  7381. if test -n "$value"; then
  7382. if test "$value" = yes; then
  7383. eval value=\"\$LIB$uppername\"
  7384. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7385. eval value=\"\$LTLIB$uppername\"
  7386. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7387. else
  7388. :
  7389. fi
  7390. else
  7391. found_dir=
  7392. found_la=
  7393. found_so=
  7394. found_a=
  7395. if test $use_additional = yes; then
  7396. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7397. found_dir="$additional_libdir"
  7398. found_so="$additional_libdir/lib$name.$shlibext"
  7399. if test -f "$additional_libdir/lib$name.la"; then
  7400. found_la="$additional_libdir/lib$name.la"
  7401. fi
  7402. else
  7403. if test -f "$additional_libdir/lib$name.$libext"; then
  7404. found_dir="$additional_libdir"
  7405. found_a="$additional_libdir/lib$name.$libext"
  7406. if test -f "$additional_libdir/lib$name.la"; then
  7407. found_la="$additional_libdir/lib$name.la"
  7408. fi
  7409. fi
  7410. fi
  7411. fi
  7412. if test "X$found_dir" = "X"; then
  7413. for x in $LDFLAGS $LTLIBICONV; do
  7414. acl_save_prefix="$prefix"
  7415. prefix="$acl_final_prefix"
  7416. acl_save_exec_prefix="$exec_prefix"
  7417. exec_prefix="$acl_final_exec_prefix"
  7418. eval x=\"$x\"
  7419. exec_prefix="$acl_save_exec_prefix"
  7420. prefix="$acl_save_prefix"
  7421. case "$x" in
  7422. -L*)
  7423. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7424. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7425. found_dir="$dir"
  7426. found_so="$dir/lib$name.$shlibext"
  7427. if test -f "$dir/lib$name.la"; then
  7428. found_la="$dir/lib$name.la"
  7429. fi
  7430. else
  7431. if test -f "$dir/lib$name.$libext"; then
  7432. found_dir="$dir"
  7433. found_a="$dir/lib$name.$libext"
  7434. if test -f "$dir/lib$name.la"; then
  7435. found_la="$dir/lib$name.la"
  7436. fi
  7437. fi
  7438. fi
  7439. ;;
  7440. esac
  7441. if test "X$found_dir" != "X"; then
  7442. break
  7443. fi
  7444. done
  7445. fi
  7446. if test "X$found_dir" != "X"; then
  7447. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7448. if test "X$found_so" != "X"; then
  7449. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7450. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7451. else
  7452. haveit=
  7453. for x in $ltrpathdirs; do
  7454. if test "X$x" = "X$found_dir"; then
  7455. haveit=yes
  7456. break
  7457. fi
  7458. done
  7459. if test -z "$haveit"; then
  7460. ltrpathdirs="$ltrpathdirs $found_dir"
  7461. fi
  7462. if test "$hardcode_direct" = yes; then
  7463. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7464. else
  7465. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7466. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7467. haveit=
  7468. for x in $rpathdirs; do
  7469. if test "X$x" = "X$found_dir"; then
  7470. haveit=yes
  7471. break
  7472. fi
  7473. done
  7474. if test -z "$haveit"; then
  7475. rpathdirs="$rpathdirs $found_dir"
  7476. fi
  7477. else
  7478. haveit=
  7479. for x in $LDFLAGS $LIBICONV; do
  7480. acl_save_prefix="$prefix"
  7481. prefix="$acl_final_prefix"
  7482. acl_save_exec_prefix="$exec_prefix"
  7483. exec_prefix="$acl_final_exec_prefix"
  7484. eval x=\"$x\"
  7485. exec_prefix="$acl_save_exec_prefix"
  7486. prefix="$acl_save_prefix"
  7487. if test "X$x" = "X-L$found_dir"; then
  7488. haveit=yes
  7489. break
  7490. fi
  7491. done
  7492. if test -z "$haveit"; then
  7493. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7494. fi
  7495. if test "$hardcode_minus_L" != no; then
  7496. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7497. else
  7498. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7499. fi
  7500. fi
  7501. fi
  7502. fi
  7503. else
  7504. if test "X$found_a" != "X"; then
  7505. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7506. else
  7507. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7508. fi
  7509. fi
  7510. additional_includedir=
  7511. case "$found_dir" in
  7512. */lib | */lib/)
  7513. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7514. additional_includedir="$basedir/include"
  7515. ;;
  7516. esac
  7517. if test "X$additional_includedir" != "X"; then
  7518. if test "X$additional_includedir" != "X/usr/include"; then
  7519. haveit=
  7520. if test "X$additional_includedir" = "X/usr/local/include"; then
  7521. if test -n "$GCC"; then
  7522. case $host_os in
  7523. linux*) haveit=yes;;
  7524. esac
  7525. fi
  7526. fi
  7527. if test -z "$haveit"; then
  7528. for x in $CPPFLAGS $INCICONV; do
  7529. acl_save_prefix="$prefix"
  7530. prefix="$acl_final_prefix"
  7531. acl_save_exec_prefix="$exec_prefix"
  7532. exec_prefix="$acl_final_exec_prefix"
  7533. eval x=\"$x\"
  7534. exec_prefix="$acl_save_exec_prefix"
  7535. prefix="$acl_save_prefix"
  7536. if test "X$x" = "X-I$additional_includedir"; then
  7537. haveit=yes
  7538. break
  7539. fi
  7540. done
  7541. if test -z "$haveit"; then
  7542. if test -d "$additional_includedir"; then
  7543. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7544. fi
  7545. fi
  7546. fi
  7547. fi
  7548. fi
  7549. if test -n "$found_la"; then
  7550. save_libdir="$libdir"
  7551. case "$found_la" in
  7552. */* | *\\*) . "$found_la" ;;
  7553. *) . "./$found_la" ;;
  7554. esac
  7555. libdir="$save_libdir"
  7556. for dep in $dependency_libs; do
  7557. case "$dep" in
  7558. -L*)
  7559. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7560. if test "X$additional_libdir" != "X/usr/lib"; then
  7561. haveit=
  7562. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7563. if test -n "$GCC"; then
  7564. case $host_os in
  7565. linux*) haveit=yes;;
  7566. esac
  7567. fi
  7568. fi
  7569. if test -z "$haveit"; then
  7570. haveit=
  7571. for x in $LDFLAGS $LIBICONV; do
  7572. acl_save_prefix="$prefix"
  7573. prefix="$acl_final_prefix"
  7574. acl_save_exec_prefix="$exec_prefix"
  7575. exec_prefix="$acl_final_exec_prefix"
  7576. eval x=\"$x\"
  7577. exec_prefix="$acl_save_exec_prefix"
  7578. prefix="$acl_save_prefix"
  7579. if test "X$x" = "X-L$additional_libdir"; then
  7580. haveit=yes
  7581. break
  7582. fi
  7583. done
  7584. if test -z "$haveit"; then
  7585. if test -d "$additional_libdir"; then
  7586. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7587. fi
  7588. fi
  7589. haveit=
  7590. for x in $LDFLAGS $LTLIBICONV; do
  7591. acl_save_prefix="$prefix"
  7592. prefix="$acl_final_prefix"
  7593. acl_save_exec_prefix="$exec_prefix"
  7594. exec_prefix="$acl_final_exec_prefix"
  7595. eval x=\"$x\"
  7596. exec_prefix="$acl_save_exec_prefix"
  7597. prefix="$acl_save_prefix"
  7598. if test "X$x" = "X-L$additional_libdir"; then
  7599. haveit=yes
  7600. break
  7601. fi
  7602. done
  7603. if test -z "$haveit"; then
  7604. if test -d "$additional_libdir"; then
  7605. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7606. fi
  7607. fi
  7608. fi
  7609. fi
  7610. ;;
  7611. -R*)
  7612. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7613. if test "$enable_rpath" != no; then
  7614. haveit=
  7615. for x in $rpathdirs; do
  7616. if test "X$x" = "X$dir"; then
  7617. haveit=yes
  7618. break
  7619. fi
  7620. done
  7621. if test -z "$haveit"; then
  7622. rpathdirs="$rpathdirs $dir"
  7623. fi
  7624. haveit=
  7625. for x in $ltrpathdirs; do
  7626. if test "X$x" = "X$dir"; then
  7627. haveit=yes
  7628. break
  7629. fi
  7630. done
  7631. if test -z "$haveit"; then
  7632. ltrpathdirs="$ltrpathdirs $dir"
  7633. fi
  7634. fi
  7635. ;;
  7636. -l*)
  7637. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7638. ;;
  7639. *.la)
  7640. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7641. ;;
  7642. *)
  7643. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7644. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7645. ;;
  7646. esac
  7647. done
  7648. fi
  7649. else
  7650. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7651. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7652. fi
  7653. fi
  7654. fi
  7655. done
  7656. done
  7657. if test "X$rpathdirs" != "X"; then
  7658. if test -n "$hardcode_libdir_separator"; then
  7659. alldirs=
  7660. for found_dir in $rpathdirs; do
  7661. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7662. done
  7663. acl_save_libdir="$libdir"
  7664. libdir="$alldirs"
  7665. eval flag=\"$hardcode_libdir_flag_spec\"
  7666. libdir="$acl_save_libdir"
  7667. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7668. else
  7669. for found_dir in $rpathdirs; do
  7670. acl_save_libdir="$libdir"
  7671. libdir="$found_dir"
  7672. eval flag=\"$hardcode_libdir_flag_spec\"
  7673. libdir="$acl_save_libdir"
  7674. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7675. done
  7676. fi
  7677. fi
  7678. if test "X$ltrpathdirs" != "X"; then
  7679. for found_dir in $ltrpathdirs; do
  7680. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7681. done
  7682. fi
  7683. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7684. stdlib.h string.h unistd.h sys/param.h
  7685. do
  7686. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7687. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7688. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7689. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7690. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7691. echo $ECHO_N "(cached) $ECHO_C" >&6
  7692. fi
  7693. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7694. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7695. else
  7696. # Is the header compilable?
  7697. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7698. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7699. cat >conftest.$ac_ext <<_ACEOF
  7700. /* confdefs.h. */
  7701. _ACEOF
  7702. cat confdefs.h >>conftest.$ac_ext
  7703. cat >>conftest.$ac_ext <<_ACEOF
  7704. /* end confdefs.h. */
  7705. $ac_includes_default
  7706. #include <$ac_header>
  7707. _ACEOF
  7708. rm -f conftest.$ac_objext
  7709. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7710. (eval $ac_compile) 2>conftest.er1
  7711. ac_status=$?
  7712. grep -v '^ *+' conftest.er1 >conftest.err
  7713. rm -f conftest.er1
  7714. cat conftest.err >&5
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. (exit $ac_status); } &&
  7717. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7719. (eval $ac_try) 2>&5
  7720. ac_status=$?
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. (exit $ac_status); }; } &&
  7723. { ac_try='test -s conftest.$ac_objext'
  7724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7725. (eval $ac_try) 2>&5
  7726. ac_status=$?
  7727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7728. (exit $ac_status); }; }; then
  7729. ac_header_compiler=yes
  7730. else
  7731. echo "$as_me: failed program was:" >&5
  7732. sed 's/^/| /' conftest.$ac_ext >&5
  7733. ac_header_compiler=no
  7734. fi
  7735. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7736. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7737. echo "${ECHO_T}$ac_header_compiler" >&6
  7738. # Is the header present?
  7739. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7740. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7741. cat >conftest.$ac_ext <<_ACEOF
  7742. /* confdefs.h. */
  7743. _ACEOF
  7744. cat confdefs.h >>conftest.$ac_ext
  7745. cat >>conftest.$ac_ext <<_ACEOF
  7746. /* end confdefs.h. */
  7747. #include <$ac_header>
  7748. _ACEOF
  7749. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7750. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7751. ac_status=$?
  7752. grep -v '^ *+' conftest.er1 >conftest.err
  7753. rm -f conftest.er1
  7754. cat conftest.err >&5
  7755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7756. (exit $ac_status); } >/dev/null; then
  7757. if test -s conftest.err; then
  7758. ac_cpp_err=$ac_c_preproc_warn_flag
  7759. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7760. else
  7761. ac_cpp_err=
  7762. fi
  7763. else
  7764. ac_cpp_err=yes
  7765. fi
  7766. if test -z "$ac_cpp_err"; then
  7767. ac_header_preproc=yes
  7768. else
  7769. echo "$as_me: failed program was:" >&5
  7770. sed 's/^/| /' conftest.$ac_ext >&5
  7771. ac_header_preproc=no
  7772. fi
  7773. rm -f conftest.err conftest.$ac_ext
  7774. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7775. echo "${ECHO_T}$ac_header_preproc" >&6
  7776. # So? What about this header?
  7777. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7778. yes:no: )
  7779. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7780. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7781. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7782. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7783. ac_header_preproc=yes
  7784. ;;
  7785. no:yes:* )
  7786. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7787. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7788. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7789. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7790. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7791. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7792. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7793. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7794. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7795. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7796. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7797. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7798. (
  7799. cat <<\_ASBOX
  7800. ## ----------------------------------- ##
  7801. ## Report this to tujikawa@rednoah.com ##
  7802. ## ----------------------------------- ##
  7803. _ASBOX
  7804. ) |
  7805. sed "s/^/$as_me: WARNING: /" >&2
  7806. ;;
  7807. esac
  7808. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7809. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7810. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7811. echo $ECHO_N "(cached) $ECHO_C" >&6
  7812. else
  7813. eval "$as_ac_Header=\$ac_header_preproc"
  7814. fi
  7815. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7816. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7817. fi
  7818. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7819. cat >>confdefs.h <<_ACEOF
  7820. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7821. _ACEOF
  7822. fi
  7823. done
  7824. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  7825. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  7826. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  7827. __fsetlocking
  7828. do
  7829. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7830. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7831. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7832. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7833. echo $ECHO_N "(cached) $ECHO_C" >&6
  7834. else
  7835. cat >conftest.$ac_ext <<_ACEOF
  7836. /* confdefs.h. */
  7837. _ACEOF
  7838. cat confdefs.h >>conftest.$ac_ext
  7839. cat >>conftest.$ac_ext <<_ACEOF
  7840. /* end confdefs.h. */
  7841. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7842. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7843. #define $ac_func innocuous_$ac_func
  7844. /* System header to define __stub macros and hopefully few prototypes,
  7845. which can conflict with char $ac_func (); below.
  7846. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7847. <limits.h> exists even on freestanding compilers. */
  7848. #ifdef __STDC__
  7849. # include <limits.h>
  7850. #else
  7851. # include <assert.h>
  7852. #endif
  7853. #undef $ac_func
  7854. /* Override any gcc2 internal prototype to avoid an error. */
  7855. #ifdef __cplusplus
  7856. extern "C"
  7857. {
  7858. #endif
  7859. /* We use char because int might match the return type of a gcc2
  7860. builtin and then its argument prototype would still apply. */
  7861. char $ac_func ();
  7862. /* The GNU C library defines this for functions which it implements
  7863. to always fail with ENOSYS. Some functions are actually named
  7864. something starting with __ and the normal name is an alias. */
  7865. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7866. choke me
  7867. #else
  7868. char (*f) () = $ac_func;
  7869. #endif
  7870. #ifdef __cplusplus
  7871. }
  7872. #endif
  7873. int
  7874. main ()
  7875. {
  7876. return f != $ac_func;
  7877. ;
  7878. return 0;
  7879. }
  7880. _ACEOF
  7881. rm -f conftest.$ac_objext conftest$ac_exeext
  7882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7883. (eval $ac_link) 2>conftest.er1
  7884. ac_status=$?
  7885. grep -v '^ *+' conftest.er1 >conftest.err
  7886. rm -f conftest.er1
  7887. cat conftest.err >&5
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); } &&
  7890. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7892. (eval $ac_try) 2>&5
  7893. ac_status=$?
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. (exit $ac_status); }; } &&
  7896. { ac_try='test -s conftest$ac_exeext'
  7897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7898. (eval $ac_try) 2>&5
  7899. ac_status=$?
  7900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7901. (exit $ac_status); }; }; then
  7902. eval "$as_ac_var=yes"
  7903. else
  7904. echo "$as_me: failed program was:" >&5
  7905. sed 's/^/| /' conftest.$ac_ext >&5
  7906. eval "$as_ac_var=no"
  7907. fi
  7908. rm -f conftest.err conftest.$ac_objext \
  7909. conftest$ac_exeext conftest.$ac_ext
  7910. fi
  7911. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7912. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7913. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7914. cat >>confdefs.h <<_ACEOF
  7915. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7916. _ACEOF
  7917. fi
  7918. done
  7919. am_save_CPPFLAGS="$CPPFLAGS"
  7920. for element in $INCICONV; do
  7921. haveit=
  7922. for x in $CPPFLAGS; do
  7923. acl_save_prefix="$prefix"
  7924. prefix="$acl_final_prefix"
  7925. acl_save_exec_prefix="$exec_prefix"
  7926. exec_prefix="$acl_final_exec_prefix"
  7927. eval x=\"$x\"
  7928. exec_prefix="$acl_save_exec_prefix"
  7929. prefix="$acl_save_prefix"
  7930. if test "X$x" = "X$element"; then
  7931. haveit=yes
  7932. break
  7933. fi
  7934. done
  7935. if test -z "$haveit"; then
  7936. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7937. fi
  7938. done
  7939. echo "$as_me:$LINENO: checking for iconv" >&5
  7940. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7941. if test "${am_cv_func_iconv+set}" = set; then
  7942. echo $ECHO_N "(cached) $ECHO_C" >&6
  7943. else
  7944. am_cv_func_iconv="no, consider installing GNU libiconv"
  7945. am_cv_lib_iconv=no
  7946. cat >conftest.$ac_ext <<_ACEOF
  7947. /* confdefs.h. */
  7948. _ACEOF
  7949. cat confdefs.h >>conftest.$ac_ext
  7950. cat >>conftest.$ac_ext <<_ACEOF
  7951. /* end confdefs.h. */
  7952. #include <stdlib.h>
  7953. #include <iconv.h>
  7954. int
  7955. main ()
  7956. {
  7957. iconv_t cd = iconv_open("","");
  7958. iconv(cd,NULL,NULL,NULL,NULL);
  7959. iconv_close(cd);
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. rm -f conftest.$ac_objext conftest$ac_exeext
  7965. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7966. (eval $ac_link) 2>conftest.er1
  7967. ac_status=$?
  7968. grep -v '^ *+' conftest.er1 >conftest.err
  7969. rm -f conftest.er1
  7970. cat conftest.err >&5
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); } &&
  7973. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7975. (eval $ac_try) 2>&5
  7976. ac_status=$?
  7977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7978. (exit $ac_status); }; } &&
  7979. { ac_try='test -s conftest$ac_exeext'
  7980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7981. (eval $ac_try) 2>&5
  7982. ac_status=$?
  7983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7984. (exit $ac_status); }; }; then
  7985. am_cv_func_iconv=yes
  7986. else
  7987. echo "$as_me: failed program was:" >&5
  7988. sed 's/^/| /' conftest.$ac_ext >&5
  7989. fi
  7990. rm -f conftest.err conftest.$ac_objext \
  7991. conftest$ac_exeext conftest.$ac_ext
  7992. if test "$am_cv_func_iconv" != yes; then
  7993. am_save_LIBS="$LIBS"
  7994. LIBS="$LIBS $LIBICONV"
  7995. cat >conftest.$ac_ext <<_ACEOF
  7996. /* confdefs.h. */
  7997. _ACEOF
  7998. cat confdefs.h >>conftest.$ac_ext
  7999. cat >>conftest.$ac_ext <<_ACEOF
  8000. /* end confdefs.h. */
  8001. #include <stdlib.h>
  8002. #include <iconv.h>
  8003. int
  8004. main ()
  8005. {
  8006. iconv_t cd = iconv_open("","");
  8007. iconv(cd,NULL,NULL,NULL,NULL);
  8008. iconv_close(cd);
  8009. ;
  8010. return 0;
  8011. }
  8012. _ACEOF
  8013. rm -f conftest.$ac_objext conftest$ac_exeext
  8014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8015. (eval $ac_link) 2>conftest.er1
  8016. ac_status=$?
  8017. grep -v '^ *+' conftest.er1 >conftest.err
  8018. rm -f conftest.er1
  8019. cat conftest.err >&5
  8020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8021. (exit $ac_status); } &&
  8022. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8024. (eval $ac_try) 2>&5
  8025. ac_status=$?
  8026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8027. (exit $ac_status); }; } &&
  8028. { ac_try='test -s conftest$ac_exeext'
  8029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8030. (eval $ac_try) 2>&5
  8031. ac_status=$?
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. (exit $ac_status); }; }; then
  8034. am_cv_lib_iconv=yes
  8035. am_cv_func_iconv=yes
  8036. else
  8037. echo "$as_me: failed program was:" >&5
  8038. sed 's/^/| /' conftest.$ac_ext >&5
  8039. fi
  8040. rm -f conftest.err conftest.$ac_objext \
  8041. conftest$ac_exeext conftest.$ac_ext
  8042. LIBS="$am_save_LIBS"
  8043. fi
  8044. fi
  8045. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8046. echo "${ECHO_T}$am_cv_func_iconv" >&6
  8047. if test "$am_cv_func_iconv" = yes; then
  8048. cat >>confdefs.h <<\_ACEOF
  8049. #define HAVE_ICONV 1
  8050. _ACEOF
  8051. fi
  8052. if test "$am_cv_lib_iconv" = yes; then
  8053. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8054. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  8055. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8056. echo "${ECHO_T}$LIBICONV" >&6
  8057. else
  8058. CPPFLAGS="$am_save_CPPFLAGS"
  8059. LIBICONV=
  8060. LTLIBICONV=
  8061. fi
  8062. if test "$am_cv_func_iconv" = yes; then
  8063. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8064. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  8065. if test "${am_cv_proto_iconv+set}" = set; then
  8066. echo $ECHO_N "(cached) $ECHO_C" >&6
  8067. else
  8068. cat >conftest.$ac_ext <<_ACEOF
  8069. /* confdefs.h. */
  8070. _ACEOF
  8071. cat confdefs.h >>conftest.$ac_ext
  8072. cat >>conftest.$ac_ext <<_ACEOF
  8073. /* end confdefs.h. */
  8074. #include <stdlib.h>
  8075. #include <iconv.h>
  8076. extern
  8077. #ifdef __cplusplus
  8078. "C"
  8079. #endif
  8080. #if defined(__STDC__) || defined(__cplusplus)
  8081. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8082. #else
  8083. size_t iconv();
  8084. #endif
  8085. int
  8086. main ()
  8087. {
  8088. ;
  8089. return 0;
  8090. }
  8091. _ACEOF
  8092. rm -f conftest.$ac_objext
  8093. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8094. (eval $ac_compile) 2>conftest.er1
  8095. ac_status=$?
  8096. grep -v '^ *+' conftest.er1 >conftest.err
  8097. rm -f conftest.er1
  8098. cat conftest.err >&5
  8099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8100. (exit $ac_status); } &&
  8101. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8103. (eval $ac_try) 2>&5
  8104. ac_status=$?
  8105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8106. (exit $ac_status); }; } &&
  8107. { ac_try='test -s conftest.$ac_objext'
  8108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8109. (eval $ac_try) 2>&5
  8110. ac_status=$?
  8111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8112. (exit $ac_status); }; }; then
  8113. am_cv_proto_iconv_arg1=""
  8114. else
  8115. echo "$as_me: failed program was:" >&5
  8116. sed 's/^/| /' conftest.$ac_ext >&5
  8117. am_cv_proto_iconv_arg1="const"
  8118. fi
  8119. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8120. 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);"
  8121. fi
  8122. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8123. echo "$as_me:$LINENO: result: ${ac_t:-
  8124. }$am_cv_proto_iconv" >&5
  8125. echo "${ECHO_T}${ac_t:-
  8126. }$am_cv_proto_iconv" >&6
  8127. cat >>confdefs.h <<_ACEOF
  8128. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8129. _ACEOF
  8130. fi
  8131. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8132. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  8133. if test "${am_cv_langinfo_codeset+set}" = set; then
  8134. echo $ECHO_N "(cached) $ECHO_C" >&6
  8135. else
  8136. cat >conftest.$ac_ext <<_ACEOF
  8137. /* confdefs.h. */
  8138. _ACEOF
  8139. cat confdefs.h >>conftest.$ac_ext
  8140. cat >>conftest.$ac_ext <<_ACEOF
  8141. /* end confdefs.h. */
  8142. #include <langinfo.h>
  8143. int
  8144. main ()
  8145. {
  8146. char* cs = nl_langinfo(CODESET);
  8147. ;
  8148. return 0;
  8149. }
  8150. _ACEOF
  8151. rm -f conftest.$ac_objext conftest$ac_exeext
  8152. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8153. (eval $ac_link) 2>conftest.er1
  8154. ac_status=$?
  8155. grep -v '^ *+' conftest.er1 >conftest.err
  8156. rm -f conftest.er1
  8157. cat conftest.err >&5
  8158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8159. (exit $ac_status); } &&
  8160. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8162. (eval $ac_try) 2>&5
  8163. ac_status=$?
  8164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8165. (exit $ac_status); }; } &&
  8166. { ac_try='test -s conftest$ac_exeext'
  8167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8168. (eval $ac_try) 2>&5
  8169. ac_status=$?
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. (exit $ac_status); }; }; then
  8172. am_cv_langinfo_codeset=yes
  8173. else
  8174. echo "$as_me: failed program was:" >&5
  8175. sed 's/^/| /' conftest.$ac_ext >&5
  8176. am_cv_langinfo_codeset=no
  8177. fi
  8178. rm -f conftest.err conftest.$ac_objext \
  8179. conftest$ac_exeext conftest.$ac_ext
  8180. fi
  8181. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8182. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  8183. if test $am_cv_langinfo_codeset = yes; then
  8184. cat >>confdefs.h <<\_ACEOF
  8185. #define HAVE_LANGINFO_CODESET 1
  8186. _ACEOF
  8187. fi
  8188. if test $ac_cv_header_locale_h = yes; then
  8189. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8190. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  8191. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8192. echo $ECHO_N "(cached) $ECHO_C" >&6
  8193. else
  8194. cat >conftest.$ac_ext <<_ACEOF
  8195. /* confdefs.h. */
  8196. _ACEOF
  8197. cat confdefs.h >>conftest.$ac_ext
  8198. cat >>conftest.$ac_ext <<_ACEOF
  8199. /* end confdefs.h. */
  8200. #include <locale.h>
  8201. int
  8202. main ()
  8203. {
  8204. return LC_MESSAGES
  8205. ;
  8206. return 0;
  8207. }
  8208. _ACEOF
  8209. rm -f conftest.$ac_objext conftest$ac_exeext
  8210. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8211. (eval $ac_link) 2>conftest.er1
  8212. ac_status=$?
  8213. grep -v '^ *+' conftest.er1 >conftest.err
  8214. rm -f conftest.er1
  8215. cat conftest.err >&5
  8216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8217. (exit $ac_status); } &&
  8218. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8220. (eval $ac_try) 2>&5
  8221. ac_status=$?
  8222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8223. (exit $ac_status); }; } &&
  8224. { ac_try='test -s conftest$ac_exeext'
  8225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8226. (eval $ac_try) 2>&5
  8227. ac_status=$?
  8228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. (exit $ac_status); }; }; then
  8230. am_cv_val_LC_MESSAGES=yes
  8231. else
  8232. echo "$as_me: failed program was:" >&5
  8233. sed 's/^/| /' conftest.$ac_ext >&5
  8234. am_cv_val_LC_MESSAGES=no
  8235. fi
  8236. rm -f conftest.err conftest.$ac_objext \
  8237. conftest$ac_exeext conftest.$ac_ext
  8238. fi
  8239. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8240. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8241. if test $am_cv_val_LC_MESSAGES = yes; then
  8242. cat >>confdefs.h <<\_ACEOF
  8243. #define HAVE_LC_MESSAGES 1
  8244. _ACEOF
  8245. fi
  8246. fi
  8247. for ac_prog in bison
  8248. do
  8249. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8250. set dummy $ac_prog; ac_word=$2
  8251. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8253. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8254. echo $ECHO_N "(cached) $ECHO_C" >&6
  8255. else
  8256. if test -n "$INTLBISON"; then
  8257. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8258. else
  8259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8260. for as_dir in $PATH
  8261. do
  8262. IFS=$as_save_IFS
  8263. test -z "$as_dir" && as_dir=.
  8264. for ac_exec_ext in '' $ac_executable_extensions; do
  8265. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8266. ac_cv_prog_INTLBISON="$ac_prog"
  8267. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8268. break 2
  8269. fi
  8270. done
  8271. done
  8272. fi
  8273. fi
  8274. INTLBISON=$ac_cv_prog_INTLBISON
  8275. if test -n "$INTLBISON"; then
  8276. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8277. echo "${ECHO_T}$INTLBISON" >&6
  8278. else
  8279. echo "$as_me:$LINENO: result: no" >&5
  8280. echo "${ECHO_T}no" >&6
  8281. fi
  8282. test -n "$INTLBISON" && break
  8283. done
  8284. if test -z "$INTLBISON"; then
  8285. ac_verc_fail=yes
  8286. else
  8287. echo "$as_me:$LINENO: checking version of bison" >&5
  8288. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8289. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8290. case $ac_prog_version in
  8291. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8292. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8293. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8294. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8295. esac
  8296. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8297. echo "${ECHO_T}$ac_prog_version" >&6
  8298. fi
  8299. if test $ac_verc_fail = yes; then
  8300. INTLBISON=:
  8301. fi
  8302. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8303. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8304. # Check whether --enable-nls or --disable-nls was given.
  8305. if test "${enable_nls+set}" = set; then
  8306. enableval="$enable_nls"
  8307. USE_NLS=$enableval
  8308. else
  8309. USE_NLS=yes
  8310. fi;
  8311. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8312. echo "${ECHO_T}$USE_NLS" >&6
  8313. BUILD_INCLUDED_LIBINTL=no
  8314. USE_INCLUDED_LIBINTL=no
  8315. LIBINTL=
  8316. LTLIBINTL=
  8317. POSUB=
  8318. if test "$USE_NLS" = "yes"; then
  8319. gt_use_preinstalled_gnugettext=no
  8320. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8321. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8322. # Check whether --with-included-gettext or --without-included-gettext was given.
  8323. if test "${with_included_gettext+set}" = set; then
  8324. withval="$with_included_gettext"
  8325. nls_cv_force_use_gnu_gettext=$withval
  8326. else
  8327. nls_cv_force_use_gnu_gettext=no
  8328. fi;
  8329. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8330. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8331. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8332. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8333. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8334. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8335. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8336. echo $ECHO_N "(cached) $ECHO_C" >&6
  8337. else
  8338. cat >conftest.$ac_ext <<_ACEOF
  8339. /* confdefs.h. */
  8340. _ACEOF
  8341. cat confdefs.h >>conftest.$ac_ext
  8342. cat >>conftest.$ac_ext <<_ACEOF
  8343. /* end confdefs.h. */
  8344. #include <libintl.h>
  8345. extern int _nl_msg_cat_cntr;
  8346. extern int *_nl_domain_bindings;
  8347. int
  8348. main ()
  8349. {
  8350. bindtextdomain ("", "");
  8351. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8352. ;
  8353. return 0;
  8354. }
  8355. _ACEOF
  8356. rm -f conftest.$ac_objext conftest$ac_exeext
  8357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8358. (eval $ac_link) 2>conftest.er1
  8359. ac_status=$?
  8360. grep -v '^ *+' conftest.er1 >conftest.err
  8361. rm -f conftest.er1
  8362. cat conftest.err >&5
  8363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8364. (exit $ac_status); } &&
  8365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8367. (eval $ac_try) 2>&5
  8368. ac_status=$?
  8369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8370. (exit $ac_status); }; } &&
  8371. { ac_try='test -s conftest$ac_exeext'
  8372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8373. (eval $ac_try) 2>&5
  8374. ac_status=$?
  8375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8376. (exit $ac_status); }; }; then
  8377. gt_cv_func_gnugettext1_libc=yes
  8378. else
  8379. echo "$as_me: failed program was:" >&5
  8380. sed 's/^/| /' conftest.$ac_ext >&5
  8381. gt_cv_func_gnugettext1_libc=no
  8382. fi
  8383. rm -f conftest.err conftest.$ac_objext \
  8384. conftest$ac_exeext conftest.$ac_ext
  8385. fi
  8386. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8387. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8388. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8389. use_additional=yes
  8390. acl_save_prefix="$prefix"
  8391. prefix="$acl_final_prefix"
  8392. acl_save_exec_prefix="$exec_prefix"
  8393. exec_prefix="$acl_final_exec_prefix"
  8394. eval additional_includedir=\"$includedir\"
  8395. eval additional_libdir=\"$libdir\"
  8396. exec_prefix="$acl_save_exec_prefix"
  8397. prefix="$acl_save_prefix"
  8398. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8399. if test "${with_libintl_prefix+set}" = set; then
  8400. withval="$with_libintl_prefix"
  8401. if test "X$withval" = "Xno"; then
  8402. use_additional=no
  8403. else
  8404. if test "X$withval" = "X"; then
  8405. acl_save_prefix="$prefix"
  8406. prefix="$acl_final_prefix"
  8407. acl_save_exec_prefix="$exec_prefix"
  8408. exec_prefix="$acl_final_exec_prefix"
  8409. eval additional_includedir=\"$includedir\"
  8410. eval additional_libdir=\"$libdir\"
  8411. exec_prefix="$acl_save_exec_prefix"
  8412. prefix="$acl_save_prefix"
  8413. else
  8414. additional_includedir="$withval/include"
  8415. additional_libdir="$withval/lib"
  8416. fi
  8417. fi
  8418. fi;
  8419. LIBINTL=
  8420. LTLIBINTL=
  8421. INCINTL=
  8422. rpathdirs=
  8423. ltrpathdirs=
  8424. names_already_handled=
  8425. names_next_round='intl '
  8426. while test -n "$names_next_round"; do
  8427. names_this_round="$names_next_round"
  8428. names_next_round=
  8429. for name in $names_this_round; do
  8430. already_handled=
  8431. for n in $names_already_handled; do
  8432. if test "$n" = "$name"; then
  8433. already_handled=yes
  8434. break
  8435. fi
  8436. done
  8437. if test -z "$already_handled"; then
  8438. names_already_handled="$names_already_handled $name"
  8439. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8440. eval value=\"\$HAVE_LIB$uppername\"
  8441. if test -n "$value"; then
  8442. if test "$value" = yes; then
  8443. eval value=\"\$LIB$uppername\"
  8444. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8445. eval value=\"\$LTLIB$uppername\"
  8446. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8447. else
  8448. :
  8449. fi
  8450. else
  8451. found_dir=
  8452. found_la=
  8453. found_so=
  8454. found_a=
  8455. if test $use_additional = yes; then
  8456. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8457. found_dir="$additional_libdir"
  8458. found_so="$additional_libdir/lib$name.$shlibext"
  8459. if test -f "$additional_libdir/lib$name.la"; then
  8460. found_la="$additional_libdir/lib$name.la"
  8461. fi
  8462. else
  8463. if test -f "$additional_libdir/lib$name.$libext"; then
  8464. found_dir="$additional_libdir"
  8465. found_a="$additional_libdir/lib$name.$libext"
  8466. if test -f "$additional_libdir/lib$name.la"; then
  8467. found_la="$additional_libdir/lib$name.la"
  8468. fi
  8469. fi
  8470. fi
  8471. fi
  8472. if test "X$found_dir" = "X"; then
  8473. for x in $LDFLAGS $LTLIBINTL; do
  8474. acl_save_prefix="$prefix"
  8475. prefix="$acl_final_prefix"
  8476. acl_save_exec_prefix="$exec_prefix"
  8477. exec_prefix="$acl_final_exec_prefix"
  8478. eval x=\"$x\"
  8479. exec_prefix="$acl_save_exec_prefix"
  8480. prefix="$acl_save_prefix"
  8481. case "$x" in
  8482. -L*)
  8483. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8484. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8485. found_dir="$dir"
  8486. found_so="$dir/lib$name.$shlibext"
  8487. if test -f "$dir/lib$name.la"; then
  8488. found_la="$dir/lib$name.la"
  8489. fi
  8490. else
  8491. if test -f "$dir/lib$name.$libext"; then
  8492. found_dir="$dir"
  8493. found_a="$dir/lib$name.$libext"
  8494. if test -f "$dir/lib$name.la"; then
  8495. found_la="$dir/lib$name.la"
  8496. fi
  8497. fi
  8498. fi
  8499. ;;
  8500. esac
  8501. if test "X$found_dir" != "X"; then
  8502. break
  8503. fi
  8504. done
  8505. fi
  8506. if test "X$found_dir" != "X"; then
  8507. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8508. if test "X$found_so" != "X"; then
  8509. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8510. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8511. else
  8512. haveit=
  8513. for x in $ltrpathdirs; do
  8514. if test "X$x" = "X$found_dir"; then
  8515. haveit=yes
  8516. break
  8517. fi
  8518. done
  8519. if test -z "$haveit"; then
  8520. ltrpathdirs="$ltrpathdirs $found_dir"
  8521. fi
  8522. if test "$hardcode_direct" = yes; then
  8523. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8524. else
  8525. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8526. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8527. haveit=
  8528. for x in $rpathdirs; do
  8529. if test "X$x" = "X$found_dir"; then
  8530. haveit=yes
  8531. break
  8532. fi
  8533. done
  8534. if test -z "$haveit"; then
  8535. rpathdirs="$rpathdirs $found_dir"
  8536. fi
  8537. else
  8538. haveit=
  8539. for x in $LDFLAGS $LIBINTL; do
  8540. acl_save_prefix="$prefix"
  8541. prefix="$acl_final_prefix"
  8542. acl_save_exec_prefix="$exec_prefix"
  8543. exec_prefix="$acl_final_exec_prefix"
  8544. eval x=\"$x\"
  8545. exec_prefix="$acl_save_exec_prefix"
  8546. prefix="$acl_save_prefix"
  8547. if test "X$x" = "X-L$found_dir"; then
  8548. haveit=yes
  8549. break
  8550. fi
  8551. done
  8552. if test -z "$haveit"; then
  8553. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8554. fi
  8555. if test "$hardcode_minus_L" != no; then
  8556. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8557. else
  8558. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8559. fi
  8560. fi
  8561. fi
  8562. fi
  8563. else
  8564. if test "X$found_a" != "X"; then
  8565. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8566. else
  8567. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8568. fi
  8569. fi
  8570. additional_includedir=
  8571. case "$found_dir" in
  8572. */lib | */lib/)
  8573. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8574. additional_includedir="$basedir/include"
  8575. ;;
  8576. esac
  8577. if test "X$additional_includedir" != "X"; then
  8578. if test "X$additional_includedir" != "X/usr/include"; then
  8579. haveit=
  8580. if test "X$additional_includedir" = "X/usr/local/include"; then
  8581. if test -n "$GCC"; then
  8582. case $host_os in
  8583. linux*) haveit=yes;;
  8584. esac
  8585. fi
  8586. fi
  8587. if test -z "$haveit"; then
  8588. for x in $CPPFLAGS $INCINTL; do
  8589. acl_save_prefix="$prefix"
  8590. prefix="$acl_final_prefix"
  8591. acl_save_exec_prefix="$exec_prefix"
  8592. exec_prefix="$acl_final_exec_prefix"
  8593. eval x=\"$x\"
  8594. exec_prefix="$acl_save_exec_prefix"
  8595. prefix="$acl_save_prefix"
  8596. if test "X$x" = "X-I$additional_includedir"; then
  8597. haveit=yes
  8598. break
  8599. fi
  8600. done
  8601. if test -z "$haveit"; then
  8602. if test -d "$additional_includedir"; then
  8603. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8604. fi
  8605. fi
  8606. fi
  8607. fi
  8608. fi
  8609. if test -n "$found_la"; then
  8610. save_libdir="$libdir"
  8611. case "$found_la" in
  8612. */* | *\\*) . "$found_la" ;;
  8613. *) . "./$found_la" ;;
  8614. esac
  8615. libdir="$save_libdir"
  8616. for dep in $dependency_libs; do
  8617. case "$dep" in
  8618. -L*)
  8619. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8620. if test "X$additional_libdir" != "X/usr/lib"; then
  8621. haveit=
  8622. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8623. if test -n "$GCC"; then
  8624. case $host_os in
  8625. linux*) haveit=yes;;
  8626. esac
  8627. fi
  8628. fi
  8629. if test -z "$haveit"; then
  8630. haveit=
  8631. for x in $LDFLAGS $LIBINTL; do
  8632. acl_save_prefix="$prefix"
  8633. prefix="$acl_final_prefix"
  8634. acl_save_exec_prefix="$exec_prefix"
  8635. exec_prefix="$acl_final_exec_prefix"
  8636. eval x=\"$x\"
  8637. exec_prefix="$acl_save_exec_prefix"
  8638. prefix="$acl_save_prefix"
  8639. if test "X$x" = "X-L$additional_libdir"; then
  8640. haveit=yes
  8641. break
  8642. fi
  8643. done
  8644. if test -z "$haveit"; then
  8645. if test -d "$additional_libdir"; then
  8646. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8647. fi
  8648. fi
  8649. haveit=
  8650. for x in $LDFLAGS $LTLIBINTL; do
  8651. acl_save_prefix="$prefix"
  8652. prefix="$acl_final_prefix"
  8653. acl_save_exec_prefix="$exec_prefix"
  8654. exec_prefix="$acl_final_exec_prefix"
  8655. eval x=\"$x\"
  8656. exec_prefix="$acl_save_exec_prefix"
  8657. prefix="$acl_save_prefix"
  8658. if test "X$x" = "X-L$additional_libdir"; then
  8659. haveit=yes
  8660. break
  8661. fi
  8662. done
  8663. if test -z "$haveit"; then
  8664. if test -d "$additional_libdir"; then
  8665. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8666. fi
  8667. fi
  8668. fi
  8669. fi
  8670. ;;
  8671. -R*)
  8672. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8673. if test "$enable_rpath" != no; then
  8674. haveit=
  8675. for x in $rpathdirs; do
  8676. if test "X$x" = "X$dir"; then
  8677. haveit=yes
  8678. break
  8679. fi
  8680. done
  8681. if test -z "$haveit"; then
  8682. rpathdirs="$rpathdirs $dir"
  8683. fi
  8684. haveit=
  8685. for x in $ltrpathdirs; do
  8686. if test "X$x" = "X$dir"; then
  8687. haveit=yes
  8688. break
  8689. fi
  8690. done
  8691. if test -z "$haveit"; then
  8692. ltrpathdirs="$ltrpathdirs $dir"
  8693. fi
  8694. fi
  8695. ;;
  8696. -l*)
  8697. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8698. ;;
  8699. *.la)
  8700. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8701. ;;
  8702. *)
  8703. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8704. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8705. ;;
  8706. esac
  8707. done
  8708. fi
  8709. else
  8710. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8711. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8712. fi
  8713. fi
  8714. fi
  8715. done
  8716. done
  8717. if test "X$rpathdirs" != "X"; then
  8718. if test -n "$hardcode_libdir_separator"; then
  8719. alldirs=
  8720. for found_dir in $rpathdirs; do
  8721. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8722. done
  8723. acl_save_libdir="$libdir"
  8724. libdir="$alldirs"
  8725. eval flag=\"$hardcode_libdir_flag_spec\"
  8726. libdir="$acl_save_libdir"
  8727. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8728. else
  8729. for found_dir in $rpathdirs; do
  8730. acl_save_libdir="$libdir"
  8731. libdir="$found_dir"
  8732. eval flag=\"$hardcode_libdir_flag_spec\"
  8733. libdir="$acl_save_libdir"
  8734. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8735. done
  8736. fi
  8737. fi
  8738. if test "X$ltrpathdirs" != "X"; then
  8739. for found_dir in $ltrpathdirs; do
  8740. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8741. done
  8742. fi
  8743. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8744. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8745. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8746. echo $ECHO_N "(cached) $ECHO_C" >&6
  8747. else
  8748. gt_save_CPPFLAGS="$CPPFLAGS"
  8749. CPPFLAGS="$CPPFLAGS $INCINTL"
  8750. gt_save_LIBS="$LIBS"
  8751. LIBS="$LIBS $LIBINTL"
  8752. cat >conftest.$ac_ext <<_ACEOF
  8753. /* confdefs.h. */
  8754. _ACEOF
  8755. cat confdefs.h >>conftest.$ac_ext
  8756. cat >>conftest.$ac_ext <<_ACEOF
  8757. /* end confdefs.h. */
  8758. #include <libintl.h>
  8759. extern int _nl_msg_cat_cntr;
  8760. extern
  8761. #ifdef __cplusplus
  8762. "C"
  8763. #endif
  8764. const char *_nl_expand_alias ();
  8765. int
  8766. main ()
  8767. {
  8768. bindtextdomain ("", "");
  8769. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8770. ;
  8771. return 0;
  8772. }
  8773. _ACEOF
  8774. rm -f conftest.$ac_objext conftest$ac_exeext
  8775. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8776. (eval $ac_link) 2>conftest.er1
  8777. ac_status=$?
  8778. grep -v '^ *+' conftest.er1 >conftest.err
  8779. rm -f conftest.er1
  8780. cat conftest.err >&5
  8781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8782. (exit $ac_status); } &&
  8783. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8785. (eval $ac_try) 2>&5
  8786. ac_status=$?
  8787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8788. (exit $ac_status); }; } &&
  8789. { ac_try='test -s conftest$ac_exeext'
  8790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8791. (eval $ac_try) 2>&5
  8792. ac_status=$?
  8793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794. (exit $ac_status); }; }; then
  8795. gt_cv_func_gnugettext1_libintl=yes
  8796. else
  8797. echo "$as_me: failed program was:" >&5
  8798. sed 's/^/| /' conftest.$ac_ext >&5
  8799. gt_cv_func_gnugettext1_libintl=no
  8800. fi
  8801. rm -f conftest.err conftest.$ac_objext \
  8802. conftest$ac_exeext conftest.$ac_ext
  8803. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8804. LIBS="$LIBS $LIBICONV"
  8805. cat >conftest.$ac_ext <<_ACEOF
  8806. /* confdefs.h. */
  8807. _ACEOF
  8808. cat confdefs.h >>conftest.$ac_ext
  8809. cat >>conftest.$ac_ext <<_ACEOF
  8810. /* end confdefs.h. */
  8811. #include <libintl.h>
  8812. extern int _nl_msg_cat_cntr;
  8813. extern
  8814. #ifdef __cplusplus
  8815. "C"
  8816. #endif
  8817. const char *_nl_expand_alias ();
  8818. int
  8819. main ()
  8820. {
  8821. bindtextdomain ("", "");
  8822. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8823. ;
  8824. return 0;
  8825. }
  8826. _ACEOF
  8827. rm -f conftest.$ac_objext conftest$ac_exeext
  8828. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8829. (eval $ac_link) 2>conftest.er1
  8830. ac_status=$?
  8831. grep -v '^ *+' conftest.er1 >conftest.err
  8832. rm -f conftest.er1
  8833. cat conftest.err >&5
  8834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8835. (exit $ac_status); } &&
  8836. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8838. (eval $ac_try) 2>&5
  8839. ac_status=$?
  8840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8841. (exit $ac_status); }; } &&
  8842. { ac_try='test -s conftest$ac_exeext'
  8843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8844. (eval $ac_try) 2>&5
  8845. ac_status=$?
  8846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8847. (exit $ac_status); }; }; then
  8848. LIBINTL="$LIBINTL $LIBICONV"
  8849. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8850. gt_cv_func_gnugettext1_libintl=yes
  8851. else
  8852. echo "$as_me: failed program was:" >&5
  8853. sed 's/^/| /' conftest.$ac_ext >&5
  8854. fi
  8855. rm -f conftest.err conftest.$ac_objext \
  8856. conftest$ac_exeext conftest.$ac_ext
  8857. fi
  8858. CPPFLAGS="$gt_save_CPPFLAGS"
  8859. LIBS="$gt_save_LIBS"
  8860. fi
  8861. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8862. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8863. fi
  8864. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8865. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8866. && test "$PACKAGE" != gettext-runtime \
  8867. && test "$PACKAGE" != gettext-tools; }; then
  8868. gt_use_preinstalled_gnugettext=yes
  8869. else
  8870. LIBINTL=
  8871. LTLIBINTL=
  8872. INCINTL=
  8873. fi
  8874. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8875. nls_cv_use_gnu_gettext=yes
  8876. fi
  8877. fi
  8878. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8879. BUILD_INCLUDED_LIBINTL=yes
  8880. USE_INCLUDED_LIBINTL=yes
  8881. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8882. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8883. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8884. fi
  8885. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8886. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8887. CATOBJEXT=.gmo
  8888. fi
  8889. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8890. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8891. cat >>confdefs.h <<\_ACEOF
  8892. #define ENABLE_NLS 1
  8893. _ACEOF
  8894. else
  8895. USE_NLS=no
  8896. fi
  8897. fi
  8898. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8899. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8900. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8901. echo "${ECHO_T}$USE_NLS" >&6
  8902. if test "$USE_NLS" = "yes"; then
  8903. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8904. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8905. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8906. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8907. gt_source="external libintl"
  8908. else
  8909. gt_source="libc"
  8910. fi
  8911. else
  8912. gt_source="included intl directory"
  8913. fi
  8914. echo "$as_me:$LINENO: result: $gt_source" >&5
  8915. echo "${ECHO_T}$gt_source" >&6
  8916. fi
  8917. if test "$USE_NLS" = "yes"; then
  8918. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8919. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8920. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8921. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8922. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8923. echo "${ECHO_T}$LIBINTL" >&6
  8924. for element in $INCINTL; do
  8925. haveit=
  8926. for x in $CPPFLAGS; do
  8927. acl_save_prefix="$prefix"
  8928. prefix="$acl_final_prefix"
  8929. acl_save_exec_prefix="$exec_prefix"
  8930. exec_prefix="$acl_final_exec_prefix"
  8931. eval x=\"$x\"
  8932. exec_prefix="$acl_save_exec_prefix"
  8933. prefix="$acl_save_prefix"
  8934. if test "X$x" = "X$element"; then
  8935. haveit=yes
  8936. break
  8937. fi
  8938. done
  8939. if test -z "$haveit"; then
  8940. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8941. fi
  8942. done
  8943. fi
  8944. cat >>confdefs.h <<\_ACEOF
  8945. #define HAVE_GETTEXT 1
  8946. _ACEOF
  8947. cat >>confdefs.h <<\_ACEOF
  8948. #define HAVE_DCGETTEXT 1
  8949. _ACEOF
  8950. fi
  8951. POSUB=po
  8952. fi
  8953. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8954. BUILD_INCLUDED_LIBINTL=yes
  8955. fi
  8956. nls_cv_header_intl=
  8957. nls_cv_header_libgt=
  8958. DATADIRNAME=share
  8959. INSTOBJEXT=.mo
  8960. GENCAT=gencat
  8961. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8962. INTLOBJS="\$(GETTOBJS)"
  8963. fi
  8964. INTL_LIBTOOL_SUFFIX_PREFIX=
  8965. INTLLIBS="$LIBINTL"
  8966. echo "$as_me:$LINENO: checking for error_at_line" >&5
  8967. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  8968. if test "${ac_cv_lib_error_at_line+set}" = set; then
  8969. echo $ECHO_N "(cached) $ECHO_C" >&6
  8970. else
  8971. cat >conftest.$ac_ext <<_ACEOF
  8972. /* confdefs.h. */
  8973. _ACEOF
  8974. cat confdefs.h >>conftest.$ac_ext
  8975. cat >>conftest.$ac_ext <<_ACEOF
  8976. /* end confdefs.h. */
  8977. $ac_includes_default
  8978. int
  8979. main ()
  8980. {
  8981. error_at_line (0, 0, "", 0, "");
  8982. ;
  8983. return 0;
  8984. }
  8985. _ACEOF
  8986. rm -f conftest.$ac_objext conftest$ac_exeext
  8987. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8988. (eval $ac_link) 2>conftest.er1
  8989. ac_status=$?
  8990. grep -v '^ *+' conftest.er1 >conftest.err
  8991. rm -f conftest.er1
  8992. cat conftest.err >&5
  8993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8994. (exit $ac_status); } &&
  8995. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8997. (eval $ac_try) 2>&5
  8998. ac_status=$?
  8999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9000. (exit $ac_status); }; } &&
  9001. { ac_try='test -s conftest$ac_exeext'
  9002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9003. (eval $ac_try) 2>&5
  9004. ac_status=$?
  9005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9006. (exit $ac_status); }; }; then
  9007. ac_cv_lib_error_at_line=yes
  9008. else
  9009. echo "$as_me: failed program was:" >&5
  9010. sed 's/^/| /' conftest.$ac_ext >&5
  9011. ac_cv_lib_error_at_line=no
  9012. fi
  9013. rm -f conftest.err conftest.$ac_objext \
  9014. conftest$ac_exeext conftest.$ac_ext
  9015. fi
  9016. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9017. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  9018. if test $ac_cv_lib_error_at_line = no; then
  9019. case $LIBOBJS in
  9020. "error.$ac_objext" | \
  9021. *" error.$ac_objext" | \
  9022. "error.$ac_objext "* | \
  9023. *" error.$ac_objext "* ) ;;
  9024. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  9025. esac
  9026. fi
  9027. for ac_header in stdlib.h
  9028. do
  9029. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9030. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9031. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9032. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9033. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9034. echo $ECHO_N "(cached) $ECHO_C" >&6
  9035. fi
  9036. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9037. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9038. else
  9039. # Is the header compilable?
  9040. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9041. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9042. cat >conftest.$ac_ext <<_ACEOF
  9043. /* confdefs.h. */
  9044. _ACEOF
  9045. cat confdefs.h >>conftest.$ac_ext
  9046. cat >>conftest.$ac_ext <<_ACEOF
  9047. /* end confdefs.h. */
  9048. $ac_includes_default
  9049. #include <$ac_header>
  9050. _ACEOF
  9051. rm -f conftest.$ac_objext
  9052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9053. (eval $ac_compile) 2>conftest.er1
  9054. ac_status=$?
  9055. grep -v '^ *+' conftest.er1 >conftest.err
  9056. rm -f conftest.er1
  9057. cat conftest.err >&5
  9058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9059. (exit $ac_status); } &&
  9060. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9062. (eval $ac_try) 2>&5
  9063. ac_status=$?
  9064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9065. (exit $ac_status); }; } &&
  9066. { ac_try='test -s conftest.$ac_objext'
  9067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9068. (eval $ac_try) 2>&5
  9069. ac_status=$?
  9070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9071. (exit $ac_status); }; }; then
  9072. ac_header_compiler=yes
  9073. else
  9074. echo "$as_me: failed program was:" >&5
  9075. sed 's/^/| /' conftest.$ac_ext >&5
  9076. ac_header_compiler=no
  9077. fi
  9078. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9079. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9080. echo "${ECHO_T}$ac_header_compiler" >&6
  9081. # Is the header present?
  9082. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9083. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9084. cat >conftest.$ac_ext <<_ACEOF
  9085. /* confdefs.h. */
  9086. _ACEOF
  9087. cat confdefs.h >>conftest.$ac_ext
  9088. cat >>conftest.$ac_ext <<_ACEOF
  9089. /* end confdefs.h. */
  9090. #include <$ac_header>
  9091. _ACEOF
  9092. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9093. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9094. ac_status=$?
  9095. grep -v '^ *+' conftest.er1 >conftest.err
  9096. rm -f conftest.er1
  9097. cat conftest.err >&5
  9098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9099. (exit $ac_status); } >/dev/null; then
  9100. if test -s conftest.err; then
  9101. ac_cpp_err=$ac_c_preproc_warn_flag
  9102. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9103. else
  9104. ac_cpp_err=
  9105. fi
  9106. else
  9107. ac_cpp_err=yes
  9108. fi
  9109. if test -z "$ac_cpp_err"; then
  9110. ac_header_preproc=yes
  9111. else
  9112. echo "$as_me: failed program was:" >&5
  9113. sed 's/^/| /' conftest.$ac_ext >&5
  9114. ac_header_preproc=no
  9115. fi
  9116. rm -f conftest.err conftest.$ac_ext
  9117. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9118. echo "${ECHO_T}$ac_header_preproc" >&6
  9119. # So? What about this header?
  9120. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9121. yes:no: )
  9122. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9123. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9124. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9125. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9126. ac_header_preproc=yes
  9127. ;;
  9128. no:yes:* )
  9129. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9130. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9131. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9132. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9133. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9134. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9135. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9136. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9138. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9139. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9140. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9141. (
  9142. cat <<\_ASBOX
  9143. ## ----------------------------------- ##
  9144. ## Report this to tujikawa@rednoah.com ##
  9145. ## ----------------------------------- ##
  9146. _ASBOX
  9147. ) |
  9148. sed "s/^/$as_me: WARNING: /" >&2
  9149. ;;
  9150. esac
  9151. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9152. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9153. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9154. echo $ECHO_N "(cached) $ECHO_C" >&6
  9155. else
  9156. eval "$as_ac_Header=\$ac_header_preproc"
  9157. fi
  9158. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9159. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9160. fi
  9161. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9162. cat >>confdefs.h <<_ACEOF
  9163. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9164. _ACEOF
  9165. fi
  9166. done
  9167. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9168. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9169. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9170. echo $ECHO_N "(cached) $ECHO_C" >&6
  9171. else
  9172. if test "$cross_compiling" = yes; then
  9173. ac_cv_func_malloc_0_nonnull=no
  9174. else
  9175. cat >conftest.$ac_ext <<_ACEOF
  9176. /* confdefs.h. */
  9177. _ACEOF
  9178. cat confdefs.h >>conftest.$ac_ext
  9179. cat >>conftest.$ac_ext <<_ACEOF
  9180. /* end confdefs.h. */
  9181. #if STDC_HEADERS || HAVE_STDLIB_H
  9182. # include <stdlib.h>
  9183. #else
  9184. char *malloc ();
  9185. #endif
  9186. int
  9187. main ()
  9188. {
  9189. exit (malloc (0) ? 0 : 1);
  9190. ;
  9191. return 0;
  9192. }
  9193. _ACEOF
  9194. rm -f conftest$ac_exeext
  9195. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9196. (eval $ac_link) 2>&5
  9197. ac_status=$?
  9198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9199. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9201. (eval $ac_try) 2>&5
  9202. ac_status=$?
  9203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9204. (exit $ac_status); }; }; then
  9205. ac_cv_func_malloc_0_nonnull=yes
  9206. else
  9207. echo "$as_me: program exited with status $ac_status" >&5
  9208. echo "$as_me: failed program was:" >&5
  9209. sed 's/^/| /' conftest.$ac_ext >&5
  9210. ( exit $ac_status )
  9211. ac_cv_func_malloc_0_nonnull=no
  9212. fi
  9213. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9214. fi
  9215. fi
  9216. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9217. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9218. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9219. cat >>confdefs.h <<\_ACEOF
  9220. #define HAVE_MALLOC 1
  9221. _ACEOF
  9222. else
  9223. cat >>confdefs.h <<\_ACEOF
  9224. #define HAVE_MALLOC 0
  9225. _ACEOF
  9226. case $LIBOBJS in
  9227. "malloc.$ac_objext" | \
  9228. *" malloc.$ac_objext" | \
  9229. "malloc.$ac_objext "* | \
  9230. *" malloc.$ac_objext "* ) ;;
  9231. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9232. esac
  9233. cat >>confdefs.h <<\_ACEOF
  9234. #define malloc rpl_malloc
  9235. _ACEOF
  9236. fi
  9237. echo "$as_me:$LINENO: checking for working memcmp" >&5
  9238. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  9239. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9240. echo $ECHO_N "(cached) $ECHO_C" >&6
  9241. else
  9242. if test "$cross_compiling" = yes; then
  9243. ac_cv_func_memcmp_working=no
  9244. else
  9245. cat >conftest.$ac_ext <<_ACEOF
  9246. /* confdefs.h. */
  9247. _ACEOF
  9248. cat confdefs.h >>conftest.$ac_ext
  9249. cat >>conftest.$ac_ext <<_ACEOF
  9250. /* end confdefs.h. */
  9251. $ac_includes_default
  9252. int
  9253. main ()
  9254. {
  9255. /* Some versions of memcmp are not 8-bit clean. */
  9256. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9257. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9258. exit (1);
  9259. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9260. or more and with at least one buffer not starting on a 4-byte boundary.
  9261. William Lewis provided this test program. */
  9262. {
  9263. char foo[21];
  9264. char bar[21];
  9265. int i;
  9266. for (i = 0; i < 4; i++)
  9267. {
  9268. char *a = foo + i;
  9269. char *b = bar + i;
  9270. strcpy (a, "--------01111111");
  9271. strcpy (b, "--------10000000");
  9272. if (memcmp (a, b, 16) >= 0)
  9273. exit (1);
  9274. }
  9275. exit (0);
  9276. }
  9277. ;
  9278. return 0;
  9279. }
  9280. _ACEOF
  9281. rm -f conftest$ac_exeext
  9282. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9283. (eval $ac_link) 2>&5
  9284. ac_status=$?
  9285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9286. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9288. (eval $ac_try) 2>&5
  9289. ac_status=$?
  9290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9291. (exit $ac_status); }; }; then
  9292. ac_cv_func_memcmp_working=yes
  9293. else
  9294. echo "$as_me: program exited with status $ac_status" >&5
  9295. echo "$as_me: failed program was:" >&5
  9296. sed 's/^/| /' conftest.$ac_ext >&5
  9297. ( exit $ac_status )
  9298. ac_cv_func_memcmp_working=no
  9299. fi
  9300. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9301. fi
  9302. fi
  9303. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9304. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  9305. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  9306. "memcmp.$ac_objext" | \
  9307. *" memcmp.$ac_objext" | \
  9308. "memcmp.$ac_objext "* | \
  9309. *" memcmp.$ac_objext "* ) ;;
  9310. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  9311. esac
  9312. for ac_header in stdlib.h unistd.h
  9313. do
  9314. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9316. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9317. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9319. echo $ECHO_N "(cached) $ECHO_C" >&6
  9320. fi
  9321. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9322. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9323. else
  9324. # Is the header compilable?
  9325. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9326. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9327. cat >conftest.$ac_ext <<_ACEOF
  9328. /* confdefs.h. */
  9329. _ACEOF
  9330. cat confdefs.h >>conftest.$ac_ext
  9331. cat >>conftest.$ac_ext <<_ACEOF
  9332. /* end confdefs.h. */
  9333. $ac_includes_default
  9334. #include <$ac_header>
  9335. _ACEOF
  9336. rm -f conftest.$ac_objext
  9337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9338. (eval $ac_compile) 2>conftest.er1
  9339. ac_status=$?
  9340. grep -v '^ *+' conftest.er1 >conftest.err
  9341. rm -f conftest.er1
  9342. cat conftest.err >&5
  9343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9344. (exit $ac_status); } &&
  9345. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9347. (eval $ac_try) 2>&5
  9348. ac_status=$?
  9349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9350. (exit $ac_status); }; } &&
  9351. { ac_try='test -s conftest.$ac_objext'
  9352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9353. (eval $ac_try) 2>&5
  9354. ac_status=$?
  9355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9356. (exit $ac_status); }; }; then
  9357. ac_header_compiler=yes
  9358. else
  9359. echo "$as_me: failed program was:" >&5
  9360. sed 's/^/| /' conftest.$ac_ext >&5
  9361. ac_header_compiler=no
  9362. fi
  9363. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9364. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9365. echo "${ECHO_T}$ac_header_compiler" >&6
  9366. # Is the header present?
  9367. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9368. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9369. cat >conftest.$ac_ext <<_ACEOF
  9370. /* confdefs.h. */
  9371. _ACEOF
  9372. cat confdefs.h >>conftest.$ac_ext
  9373. cat >>conftest.$ac_ext <<_ACEOF
  9374. /* end confdefs.h. */
  9375. #include <$ac_header>
  9376. _ACEOF
  9377. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9378. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9379. ac_status=$?
  9380. grep -v '^ *+' conftest.er1 >conftest.err
  9381. rm -f conftest.er1
  9382. cat conftest.err >&5
  9383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9384. (exit $ac_status); } >/dev/null; then
  9385. if test -s conftest.err; then
  9386. ac_cpp_err=$ac_c_preproc_warn_flag
  9387. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9388. else
  9389. ac_cpp_err=
  9390. fi
  9391. else
  9392. ac_cpp_err=yes
  9393. fi
  9394. if test -z "$ac_cpp_err"; then
  9395. ac_header_preproc=yes
  9396. else
  9397. echo "$as_me: failed program was:" >&5
  9398. sed 's/^/| /' conftest.$ac_ext >&5
  9399. ac_header_preproc=no
  9400. fi
  9401. rm -f conftest.err conftest.$ac_ext
  9402. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9403. echo "${ECHO_T}$ac_header_preproc" >&6
  9404. # So? What about this header?
  9405. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9406. yes:no: )
  9407. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9408. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9409. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9410. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9411. ac_header_preproc=yes
  9412. ;;
  9413. no:yes:* )
  9414. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9415. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9416. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9417. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9418. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9419. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9420. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9421. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9423. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9424. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9425. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9426. (
  9427. cat <<\_ASBOX
  9428. ## ----------------------------------- ##
  9429. ## Report this to tujikawa@rednoah.com ##
  9430. ## ----------------------------------- ##
  9431. _ASBOX
  9432. ) |
  9433. sed "s/^/$as_me: WARNING: /" >&2
  9434. ;;
  9435. esac
  9436. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9438. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9439. echo $ECHO_N "(cached) $ECHO_C" >&6
  9440. else
  9441. eval "$as_ac_Header=\$ac_header_preproc"
  9442. fi
  9443. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9444. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9445. fi
  9446. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9447. cat >>confdefs.h <<_ACEOF
  9448. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9449. _ACEOF
  9450. fi
  9451. done
  9452. for ac_func in getpagesize
  9453. do
  9454. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9455. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9456. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9457. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9458. echo $ECHO_N "(cached) $ECHO_C" >&6
  9459. else
  9460. cat >conftest.$ac_ext <<_ACEOF
  9461. /* confdefs.h. */
  9462. _ACEOF
  9463. cat confdefs.h >>conftest.$ac_ext
  9464. cat >>conftest.$ac_ext <<_ACEOF
  9465. /* end confdefs.h. */
  9466. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9467. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9468. #define $ac_func innocuous_$ac_func
  9469. /* System header to define __stub macros and hopefully few prototypes,
  9470. which can conflict with char $ac_func (); below.
  9471. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9472. <limits.h> exists even on freestanding compilers. */
  9473. #ifdef __STDC__
  9474. # include <limits.h>
  9475. #else
  9476. # include <assert.h>
  9477. #endif
  9478. #undef $ac_func
  9479. /* Override any gcc2 internal prototype to avoid an error. */
  9480. #ifdef __cplusplus
  9481. extern "C"
  9482. {
  9483. #endif
  9484. /* We use char because int might match the return type of a gcc2
  9485. builtin and then its argument prototype would still apply. */
  9486. char $ac_func ();
  9487. /* The GNU C library defines this for functions which it implements
  9488. to always fail with ENOSYS. Some functions are actually named
  9489. something starting with __ and the normal name is an alias. */
  9490. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9491. choke me
  9492. #else
  9493. char (*f) () = $ac_func;
  9494. #endif
  9495. #ifdef __cplusplus
  9496. }
  9497. #endif
  9498. int
  9499. main ()
  9500. {
  9501. return f != $ac_func;
  9502. ;
  9503. return 0;
  9504. }
  9505. _ACEOF
  9506. rm -f conftest.$ac_objext conftest$ac_exeext
  9507. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9508. (eval $ac_link) 2>conftest.er1
  9509. ac_status=$?
  9510. grep -v '^ *+' conftest.er1 >conftest.err
  9511. rm -f conftest.er1
  9512. cat conftest.err >&5
  9513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9514. (exit $ac_status); } &&
  9515. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9517. (eval $ac_try) 2>&5
  9518. ac_status=$?
  9519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9520. (exit $ac_status); }; } &&
  9521. { ac_try='test -s conftest$ac_exeext'
  9522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9523. (eval $ac_try) 2>&5
  9524. ac_status=$?
  9525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); }; }; then
  9527. eval "$as_ac_var=yes"
  9528. else
  9529. echo "$as_me: failed program was:" >&5
  9530. sed 's/^/| /' conftest.$ac_ext >&5
  9531. eval "$as_ac_var=no"
  9532. fi
  9533. rm -f conftest.err conftest.$ac_objext \
  9534. conftest$ac_exeext conftest.$ac_ext
  9535. fi
  9536. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9537. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9538. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9539. cat >>confdefs.h <<_ACEOF
  9540. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9541. _ACEOF
  9542. fi
  9543. done
  9544. echo "$as_me:$LINENO: checking for working mmap" >&5
  9545. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9546. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9547. echo $ECHO_N "(cached) $ECHO_C" >&6
  9548. else
  9549. if test "$cross_compiling" = yes; then
  9550. ac_cv_func_mmap_fixed_mapped=no
  9551. else
  9552. cat >conftest.$ac_ext <<_ACEOF
  9553. /* confdefs.h. */
  9554. _ACEOF
  9555. cat confdefs.h >>conftest.$ac_ext
  9556. cat >>conftest.$ac_ext <<_ACEOF
  9557. /* end confdefs.h. */
  9558. $ac_includes_default
  9559. /* malloc might have been renamed as rpl_malloc. */
  9560. #undef malloc
  9561. /* Thanks to Mike Haertel and Jim Avera for this test.
  9562. Here is a matrix of mmap possibilities:
  9563. mmap private not fixed
  9564. mmap private fixed at somewhere currently unmapped
  9565. mmap private fixed at somewhere already mapped
  9566. mmap shared not fixed
  9567. mmap shared fixed at somewhere currently unmapped
  9568. mmap shared fixed at somewhere already mapped
  9569. For private mappings, we should verify that changes cannot be read()
  9570. back from the file, nor mmap's back from the file at a different
  9571. address. (There have been systems where private was not correctly
  9572. implemented like the infamous i386 svr4.0, and systems where the
  9573. VM page cache was not coherent with the file system buffer cache
  9574. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9575. For shared mappings, we should conversely verify that changes get
  9576. propagated back to all the places they're supposed to be.
  9577. Grep wants private fixed already mapped.
  9578. The main things grep needs to know about mmap are:
  9579. * does it exist and is it safe to write into the mmap'd area
  9580. * how to use it (BSD variants) */
  9581. #include <fcntl.h>
  9582. #include <sys/mman.h>
  9583. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9584. char *malloc ();
  9585. #endif
  9586. /* This mess was copied from the GNU getpagesize.h. */
  9587. #if !HAVE_GETPAGESIZE
  9588. /* Assume that all systems that can run configure have sys/param.h. */
  9589. # if !HAVE_SYS_PARAM_H
  9590. # define HAVE_SYS_PARAM_H 1
  9591. # endif
  9592. # ifdef _SC_PAGESIZE
  9593. # define getpagesize() sysconf(_SC_PAGESIZE)
  9594. # else /* no _SC_PAGESIZE */
  9595. # if HAVE_SYS_PARAM_H
  9596. # include <sys/param.h>
  9597. # ifdef EXEC_PAGESIZE
  9598. # define getpagesize() EXEC_PAGESIZE
  9599. # else /* no EXEC_PAGESIZE */
  9600. # ifdef NBPG
  9601. # define getpagesize() NBPG * CLSIZE
  9602. # ifndef CLSIZE
  9603. # define CLSIZE 1
  9604. # endif /* no CLSIZE */
  9605. # else /* no NBPG */
  9606. # ifdef NBPC
  9607. # define getpagesize() NBPC
  9608. # else /* no NBPC */
  9609. # ifdef PAGESIZE
  9610. # define getpagesize() PAGESIZE
  9611. # endif /* PAGESIZE */
  9612. # endif /* no NBPC */
  9613. # endif /* no NBPG */
  9614. # endif /* no EXEC_PAGESIZE */
  9615. # else /* no HAVE_SYS_PARAM_H */
  9616. # define getpagesize() 8192 /* punt totally */
  9617. # endif /* no HAVE_SYS_PARAM_H */
  9618. # endif /* no _SC_PAGESIZE */
  9619. #endif /* no HAVE_GETPAGESIZE */
  9620. int
  9621. main ()
  9622. {
  9623. char *data, *data2, *data3;
  9624. int i, pagesize;
  9625. int fd;
  9626. pagesize = getpagesize ();
  9627. /* First, make a file with some known garbage in it. */
  9628. data = (char *) malloc (pagesize);
  9629. if (!data)
  9630. exit (1);
  9631. for (i = 0; i < pagesize; ++i)
  9632. *(data + i) = rand ();
  9633. umask (0);
  9634. fd = creat ("conftest.mmap", 0600);
  9635. if (fd < 0)
  9636. exit (1);
  9637. if (write (fd, data, pagesize) != pagesize)
  9638. exit (1);
  9639. close (fd);
  9640. /* Next, try to mmap the file at a fixed address which already has
  9641. something else allocated at it. If we can, also make sure that
  9642. we see the same garbage. */
  9643. fd = open ("conftest.mmap", O_RDWR);
  9644. if (fd < 0)
  9645. exit (1);
  9646. data2 = (char *) malloc (2 * pagesize);
  9647. if (!data2)
  9648. exit (1);
  9649. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9650. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9651. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9652. exit (1);
  9653. for (i = 0; i < pagesize; ++i)
  9654. if (*(data + i) != *(data2 + i))
  9655. exit (1);
  9656. /* Finally, make sure that changes to the mapped area do not
  9657. percolate back to the file as seen by read(). (This is a bug on
  9658. some variants of i386 svr4.0.) */
  9659. for (i = 0; i < pagesize; ++i)
  9660. *(data2 + i) = *(data2 + i) + 1;
  9661. data3 = (char *) malloc (pagesize);
  9662. if (!data3)
  9663. exit (1);
  9664. if (read (fd, data3, pagesize) != pagesize)
  9665. exit (1);
  9666. for (i = 0; i < pagesize; ++i)
  9667. if (*(data + i) != *(data3 + i))
  9668. exit (1);
  9669. close (fd);
  9670. exit (0);
  9671. }
  9672. _ACEOF
  9673. rm -f conftest$ac_exeext
  9674. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9675. (eval $ac_link) 2>&5
  9676. ac_status=$?
  9677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9678. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9680. (eval $ac_try) 2>&5
  9681. ac_status=$?
  9682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9683. (exit $ac_status); }; }; then
  9684. ac_cv_func_mmap_fixed_mapped=yes
  9685. else
  9686. echo "$as_me: program exited with status $ac_status" >&5
  9687. echo "$as_me: failed program was:" >&5
  9688. sed 's/^/| /' conftest.$ac_ext >&5
  9689. ( exit $ac_status )
  9690. ac_cv_func_mmap_fixed_mapped=no
  9691. fi
  9692. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9693. fi
  9694. fi
  9695. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9696. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9697. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9698. cat >>confdefs.h <<\_ACEOF
  9699. #define HAVE_MMAP 1
  9700. _ACEOF
  9701. fi
  9702. rm -f conftest.mmap
  9703. for ac_header in stdlib.h
  9704. do
  9705. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9706. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9707. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9708. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9709. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9710. echo $ECHO_N "(cached) $ECHO_C" >&6
  9711. fi
  9712. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9713. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9714. else
  9715. # Is the header compilable?
  9716. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9717. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9718. cat >conftest.$ac_ext <<_ACEOF
  9719. /* confdefs.h. */
  9720. _ACEOF
  9721. cat confdefs.h >>conftest.$ac_ext
  9722. cat >>conftest.$ac_ext <<_ACEOF
  9723. /* end confdefs.h. */
  9724. $ac_includes_default
  9725. #include <$ac_header>
  9726. _ACEOF
  9727. rm -f conftest.$ac_objext
  9728. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9729. (eval $ac_compile) 2>conftest.er1
  9730. ac_status=$?
  9731. grep -v '^ *+' conftest.er1 >conftest.err
  9732. rm -f conftest.er1
  9733. cat conftest.err >&5
  9734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9735. (exit $ac_status); } &&
  9736. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9738. (eval $ac_try) 2>&5
  9739. ac_status=$?
  9740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9741. (exit $ac_status); }; } &&
  9742. { ac_try='test -s conftest.$ac_objext'
  9743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9744. (eval $ac_try) 2>&5
  9745. ac_status=$?
  9746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9747. (exit $ac_status); }; }; then
  9748. ac_header_compiler=yes
  9749. else
  9750. echo "$as_me: failed program was:" >&5
  9751. sed 's/^/| /' conftest.$ac_ext >&5
  9752. ac_header_compiler=no
  9753. fi
  9754. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9755. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9756. echo "${ECHO_T}$ac_header_compiler" >&6
  9757. # Is the header present?
  9758. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9759. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9760. cat >conftest.$ac_ext <<_ACEOF
  9761. /* confdefs.h. */
  9762. _ACEOF
  9763. cat confdefs.h >>conftest.$ac_ext
  9764. cat >>conftest.$ac_ext <<_ACEOF
  9765. /* end confdefs.h. */
  9766. #include <$ac_header>
  9767. _ACEOF
  9768. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9769. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9770. ac_status=$?
  9771. grep -v '^ *+' conftest.er1 >conftest.err
  9772. rm -f conftest.er1
  9773. cat conftest.err >&5
  9774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9775. (exit $ac_status); } >/dev/null; then
  9776. if test -s conftest.err; then
  9777. ac_cpp_err=$ac_c_preproc_warn_flag
  9778. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9779. else
  9780. ac_cpp_err=
  9781. fi
  9782. else
  9783. ac_cpp_err=yes
  9784. fi
  9785. if test -z "$ac_cpp_err"; then
  9786. ac_header_preproc=yes
  9787. else
  9788. echo "$as_me: failed program was:" >&5
  9789. sed 's/^/| /' conftest.$ac_ext >&5
  9790. ac_header_preproc=no
  9791. fi
  9792. rm -f conftest.err conftest.$ac_ext
  9793. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9794. echo "${ECHO_T}$ac_header_preproc" >&6
  9795. # So? What about this header?
  9796. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9797. yes:no: )
  9798. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9799. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9800. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9801. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9802. ac_header_preproc=yes
  9803. ;;
  9804. no:yes:* )
  9805. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9806. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9807. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9808. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9809. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9810. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9811. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9812. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9813. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9814. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9815. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9816. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9817. (
  9818. cat <<\_ASBOX
  9819. ## ----------------------------------- ##
  9820. ## Report this to tujikawa@rednoah.com ##
  9821. ## ----------------------------------- ##
  9822. _ASBOX
  9823. ) |
  9824. sed "s/^/$as_me: WARNING: /" >&2
  9825. ;;
  9826. esac
  9827. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9828. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9829. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9830. echo $ECHO_N "(cached) $ECHO_C" >&6
  9831. else
  9832. eval "$as_ac_Header=\$ac_header_preproc"
  9833. fi
  9834. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9835. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9836. fi
  9837. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9838. cat >>confdefs.h <<_ACEOF
  9839. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9840. _ACEOF
  9841. fi
  9842. done
  9843. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9844. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9845. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9846. echo $ECHO_N "(cached) $ECHO_C" >&6
  9847. else
  9848. if test "$cross_compiling" = yes; then
  9849. ac_cv_func_realloc_0_nonnull=no
  9850. else
  9851. cat >conftest.$ac_ext <<_ACEOF
  9852. /* confdefs.h. */
  9853. _ACEOF
  9854. cat confdefs.h >>conftest.$ac_ext
  9855. cat >>conftest.$ac_ext <<_ACEOF
  9856. /* end confdefs.h. */
  9857. #if STDC_HEADERS || HAVE_STDLIB_H
  9858. # include <stdlib.h>
  9859. #else
  9860. char *realloc ();
  9861. #endif
  9862. int
  9863. main ()
  9864. {
  9865. exit (realloc (0, 0) ? 0 : 1);
  9866. ;
  9867. return 0;
  9868. }
  9869. _ACEOF
  9870. rm -f conftest$ac_exeext
  9871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9872. (eval $ac_link) 2>&5
  9873. ac_status=$?
  9874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9875. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9876. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9877. (eval $ac_try) 2>&5
  9878. ac_status=$?
  9879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9880. (exit $ac_status); }; }; then
  9881. ac_cv_func_realloc_0_nonnull=yes
  9882. else
  9883. echo "$as_me: program exited with status $ac_status" >&5
  9884. echo "$as_me: failed program was:" >&5
  9885. sed 's/^/| /' conftest.$ac_ext >&5
  9886. ( exit $ac_status )
  9887. ac_cv_func_realloc_0_nonnull=no
  9888. fi
  9889. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9890. fi
  9891. fi
  9892. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9893. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9894. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9895. cat >>confdefs.h <<\_ACEOF
  9896. #define HAVE_REALLOC 1
  9897. _ACEOF
  9898. else
  9899. cat >>confdefs.h <<\_ACEOF
  9900. #define HAVE_REALLOC 0
  9901. _ACEOF
  9902. case $LIBOBJS in
  9903. "realloc.$ac_objext" | \
  9904. *" realloc.$ac_objext" | \
  9905. "realloc.$ac_objext "* | \
  9906. *" realloc.$ac_objext "* ) ;;
  9907. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9908. esac
  9909. cat >>confdefs.h <<\_ACEOF
  9910. #define realloc rpl_realloc
  9911. _ACEOF
  9912. fi
  9913. for ac_header in sys/select.h sys/socket.h
  9914. do
  9915. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9916. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9917. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9918. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9919. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9920. echo $ECHO_N "(cached) $ECHO_C" >&6
  9921. fi
  9922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9923. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9924. else
  9925. # Is the header compilable?
  9926. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9927. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9928. cat >conftest.$ac_ext <<_ACEOF
  9929. /* confdefs.h. */
  9930. _ACEOF
  9931. cat confdefs.h >>conftest.$ac_ext
  9932. cat >>conftest.$ac_ext <<_ACEOF
  9933. /* end confdefs.h. */
  9934. $ac_includes_default
  9935. #include <$ac_header>
  9936. _ACEOF
  9937. rm -f conftest.$ac_objext
  9938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9939. (eval $ac_compile) 2>conftest.er1
  9940. ac_status=$?
  9941. grep -v '^ *+' conftest.er1 >conftest.err
  9942. rm -f conftest.er1
  9943. cat conftest.err >&5
  9944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9945. (exit $ac_status); } &&
  9946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9948. (eval $ac_try) 2>&5
  9949. ac_status=$?
  9950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9951. (exit $ac_status); }; } &&
  9952. { ac_try='test -s conftest.$ac_objext'
  9953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9954. (eval $ac_try) 2>&5
  9955. ac_status=$?
  9956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9957. (exit $ac_status); }; }; then
  9958. ac_header_compiler=yes
  9959. else
  9960. echo "$as_me: failed program was:" >&5
  9961. sed 's/^/| /' conftest.$ac_ext >&5
  9962. ac_header_compiler=no
  9963. fi
  9964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9965. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9966. echo "${ECHO_T}$ac_header_compiler" >&6
  9967. # Is the header present?
  9968. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9969. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9970. cat >conftest.$ac_ext <<_ACEOF
  9971. /* confdefs.h. */
  9972. _ACEOF
  9973. cat confdefs.h >>conftest.$ac_ext
  9974. cat >>conftest.$ac_ext <<_ACEOF
  9975. /* end confdefs.h. */
  9976. #include <$ac_header>
  9977. _ACEOF
  9978. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9979. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9980. ac_status=$?
  9981. grep -v '^ *+' conftest.er1 >conftest.err
  9982. rm -f conftest.er1
  9983. cat conftest.err >&5
  9984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9985. (exit $ac_status); } >/dev/null; then
  9986. if test -s conftest.err; then
  9987. ac_cpp_err=$ac_c_preproc_warn_flag
  9988. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9989. else
  9990. ac_cpp_err=
  9991. fi
  9992. else
  9993. ac_cpp_err=yes
  9994. fi
  9995. if test -z "$ac_cpp_err"; then
  9996. ac_header_preproc=yes
  9997. else
  9998. echo "$as_me: failed program was:" >&5
  9999. sed 's/^/| /' conftest.$ac_ext >&5
  10000. ac_header_preproc=no
  10001. fi
  10002. rm -f conftest.err conftest.$ac_ext
  10003. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10004. echo "${ECHO_T}$ac_header_preproc" >&6
  10005. # So? What about this header?
  10006. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10007. yes:no: )
  10008. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10009. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10011. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10012. ac_header_preproc=yes
  10013. ;;
  10014. no:yes:* )
  10015. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10016. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10017. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10018. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10019. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10020. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10021. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10022. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10023. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10024. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10025. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10026. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10027. (
  10028. cat <<\_ASBOX
  10029. ## ----------------------------------- ##
  10030. ## Report this to tujikawa@rednoah.com ##
  10031. ## ----------------------------------- ##
  10032. _ASBOX
  10033. ) |
  10034. sed "s/^/$as_me: WARNING: /" >&2
  10035. ;;
  10036. esac
  10037. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10039. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10040. echo $ECHO_N "(cached) $ECHO_C" >&6
  10041. else
  10042. eval "$as_ac_Header=\$ac_header_preproc"
  10043. fi
  10044. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10045. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10046. fi
  10047. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10048. cat >>confdefs.h <<_ACEOF
  10049. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10050. _ACEOF
  10051. fi
  10052. done
  10053. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10054. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10055. if test "${ac_cv_func_select_args+set}" = set; then
  10056. echo $ECHO_N "(cached) $ECHO_C" >&6
  10057. else
  10058. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10059. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10060. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10061. cat >conftest.$ac_ext <<_ACEOF
  10062. /* confdefs.h. */
  10063. _ACEOF
  10064. cat confdefs.h >>conftest.$ac_ext
  10065. cat >>conftest.$ac_ext <<_ACEOF
  10066. /* end confdefs.h. */
  10067. $ac_includes_default
  10068. #if HAVE_SYS_SELECT_H
  10069. # include <sys/select.h>
  10070. #endif
  10071. #if HAVE_SYS_SOCKET_H
  10072. # include <sys/socket.h>
  10073. #endif
  10074. int
  10075. main ()
  10076. {
  10077. extern int select ($ac_arg1,
  10078. $ac_arg234, $ac_arg234, $ac_arg234,
  10079. $ac_arg5);
  10080. ;
  10081. return 0;
  10082. }
  10083. _ACEOF
  10084. rm -f conftest.$ac_objext
  10085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10086. (eval $ac_compile) 2>conftest.er1
  10087. ac_status=$?
  10088. grep -v '^ *+' conftest.er1 >conftest.err
  10089. rm -f conftest.er1
  10090. cat conftest.err >&5
  10091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10092. (exit $ac_status); } &&
  10093. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10095. (eval $ac_try) 2>&5
  10096. ac_status=$?
  10097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10098. (exit $ac_status); }; } &&
  10099. { ac_try='test -s conftest.$ac_objext'
  10100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10101. (eval $ac_try) 2>&5
  10102. ac_status=$?
  10103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10104. (exit $ac_status); }; }; then
  10105. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10106. else
  10107. echo "$as_me: failed program was:" >&5
  10108. sed 's/^/| /' conftest.$ac_ext >&5
  10109. fi
  10110. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10111. done
  10112. done
  10113. done
  10114. # Provide a safe default value.
  10115. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10116. fi
  10117. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10118. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10119. ac_save_IFS=$IFS; IFS=','
  10120. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10121. IFS=$ac_save_IFS
  10122. shift
  10123. cat >>confdefs.h <<_ACEOF
  10124. #define SELECT_TYPE_ARG1 $1
  10125. _ACEOF
  10126. cat >>confdefs.h <<_ACEOF
  10127. #define SELECT_TYPE_ARG234 ($2)
  10128. _ACEOF
  10129. cat >>confdefs.h <<_ACEOF
  10130. #define SELECT_TYPE_ARG5 ($3)
  10131. _ACEOF
  10132. rm -f conftest*
  10133. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10134. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  10135. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10136. echo $ECHO_N "(cached) $ECHO_C" >&6
  10137. else
  10138. rm -f conftest.sym conftest.file
  10139. echo >conftest.file
  10140. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10141. if test "$cross_compiling" = yes; then
  10142. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10143. else
  10144. cat >conftest.$ac_ext <<_ACEOF
  10145. /* confdefs.h. */
  10146. _ACEOF
  10147. cat confdefs.h >>conftest.$ac_ext
  10148. cat >>conftest.$ac_ext <<_ACEOF
  10149. /* end confdefs.h. */
  10150. $ac_includes_default
  10151. int
  10152. main ()
  10153. {
  10154. struct stat sbuf;
  10155. /* Linux will dereference the symlink and fail.
  10156. That is better in the sense that it means we will not
  10157. have to compile and use the lstat wrapper. */
  10158. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  10159. ;
  10160. return 0;
  10161. }
  10162. _ACEOF
  10163. rm -f conftest$ac_exeext
  10164. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10165. (eval $ac_link) 2>&5
  10166. ac_status=$?
  10167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10168. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10170. (eval $ac_try) 2>&5
  10171. ac_status=$?
  10172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10173. (exit $ac_status); }; }; then
  10174. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10175. else
  10176. echo "$as_me: program exited with status $ac_status" >&5
  10177. echo "$as_me: failed program was:" >&5
  10178. sed 's/^/| /' conftest.$ac_ext >&5
  10179. ( exit $ac_status )
  10180. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10181. fi
  10182. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10183. fi
  10184. else
  10185. # If the `ln -s' command failed, then we probably don't even
  10186. # have an lstat function.
  10187. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10188. fi
  10189. rm -f conftest.sym conftest.file
  10190. fi
  10191. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10192. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  10193. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10194. cat >>confdefs.h <<_ACEOF
  10195. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10196. _ACEOF
  10197. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10198. case $LIBOBJS in
  10199. "lstat.$ac_objext" | \
  10200. *" lstat.$ac_objext" | \
  10201. "lstat.$ac_objext "* | \
  10202. *" lstat.$ac_objext "* ) ;;
  10203. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  10204. esac
  10205. fi
  10206. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10207. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10208. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10209. echo $ECHO_N "(cached) $ECHO_C" >&6
  10210. else
  10211. if test "$cross_compiling" = yes; then
  10212. ac_cv_func_stat_empty_string_bug=yes
  10213. else
  10214. cat >conftest.$ac_ext <<_ACEOF
  10215. /* confdefs.h. */
  10216. _ACEOF
  10217. cat confdefs.h >>conftest.$ac_ext
  10218. cat >>conftest.$ac_ext <<_ACEOF
  10219. /* end confdefs.h. */
  10220. $ac_includes_default
  10221. int
  10222. main ()
  10223. {
  10224. struct stat sbuf;
  10225. exit (stat ("", &sbuf) ? 1 : 0);
  10226. ;
  10227. return 0;
  10228. }
  10229. _ACEOF
  10230. rm -f conftest$ac_exeext
  10231. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10232. (eval $ac_link) 2>&5
  10233. ac_status=$?
  10234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10235. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10237. (eval $ac_try) 2>&5
  10238. ac_status=$?
  10239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10240. (exit $ac_status); }; }; then
  10241. ac_cv_func_stat_empty_string_bug=yes
  10242. else
  10243. echo "$as_me: program exited with status $ac_status" >&5
  10244. echo "$as_me: failed program was:" >&5
  10245. sed 's/^/| /' conftest.$ac_ext >&5
  10246. ( exit $ac_status )
  10247. ac_cv_func_stat_empty_string_bug=no
  10248. fi
  10249. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10250. fi
  10251. fi
  10252. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10253. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10254. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10255. case $LIBOBJS in
  10256. "stat.$ac_objext" | \
  10257. *" stat.$ac_objext" | \
  10258. "stat.$ac_objext "* | \
  10259. *" stat.$ac_objext "* ) ;;
  10260. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10261. esac
  10262. cat >>confdefs.h <<_ACEOF
  10263. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10264. _ACEOF
  10265. fi
  10266. for ac_func in vprintf
  10267. do
  10268. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10269. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10270. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10271. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10272. echo $ECHO_N "(cached) $ECHO_C" >&6
  10273. else
  10274. cat >conftest.$ac_ext <<_ACEOF
  10275. /* confdefs.h. */
  10276. _ACEOF
  10277. cat confdefs.h >>conftest.$ac_ext
  10278. cat >>conftest.$ac_ext <<_ACEOF
  10279. /* end confdefs.h. */
  10280. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10281. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10282. #define $ac_func innocuous_$ac_func
  10283. /* System header to define __stub macros and hopefully few prototypes,
  10284. which can conflict with char $ac_func (); below.
  10285. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10286. <limits.h> exists even on freestanding compilers. */
  10287. #ifdef __STDC__
  10288. # include <limits.h>
  10289. #else
  10290. # include <assert.h>
  10291. #endif
  10292. #undef $ac_func
  10293. /* Override any gcc2 internal prototype to avoid an error. */
  10294. #ifdef __cplusplus
  10295. extern "C"
  10296. {
  10297. #endif
  10298. /* We use char because int might match the return type of a gcc2
  10299. builtin and then its argument prototype would still apply. */
  10300. char $ac_func ();
  10301. /* The GNU C library defines this for functions which it implements
  10302. to always fail with ENOSYS. Some functions are actually named
  10303. something starting with __ and the normal name is an alias. */
  10304. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10305. choke me
  10306. #else
  10307. char (*f) () = $ac_func;
  10308. #endif
  10309. #ifdef __cplusplus
  10310. }
  10311. #endif
  10312. int
  10313. main ()
  10314. {
  10315. return f != $ac_func;
  10316. ;
  10317. return 0;
  10318. }
  10319. _ACEOF
  10320. rm -f conftest.$ac_objext conftest$ac_exeext
  10321. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10322. (eval $ac_link) 2>conftest.er1
  10323. ac_status=$?
  10324. grep -v '^ *+' conftest.er1 >conftest.err
  10325. rm -f conftest.er1
  10326. cat conftest.err >&5
  10327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10328. (exit $ac_status); } &&
  10329. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10331. (eval $ac_try) 2>&5
  10332. ac_status=$?
  10333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. (exit $ac_status); }; } &&
  10335. { ac_try='test -s conftest$ac_exeext'
  10336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10337. (eval $ac_try) 2>&5
  10338. ac_status=$?
  10339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10340. (exit $ac_status); }; }; then
  10341. eval "$as_ac_var=yes"
  10342. else
  10343. echo "$as_me: failed program was:" >&5
  10344. sed 's/^/| /' conftest.$ac_ext >&5
  10345. eval "$as_ac_var=no"
  10346. fi
  10347. rm -f conftest.err conftest.$ac_objext \
  10348. conftest$ac_exeext conftest.$ac_ext
  10349. fi
  10350. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10351. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10352. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10353. cat >>confdefs.h <<_ACEOF
  10354. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10355. _ACEOF
  10356. echo "$as_me:$LINENO: checking for _doprnt" >&5
  10357. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  10358. if test "${ac_cv_func__doprnt+set}" = set; then
  10359. echo $ECHO_N "(cached) $ECHO_C" >&6
  10360. else
  10361. cat >conftest.$ac_ext <<_ACEOF
  10362. /* confdefs.h. */
  10363. _ACEOF
  10364. cat confdefs.h >>conftest.$ac_ext
  10365. cat >>conftest.$ac_ext <<_ACEOF
  10366. /* end confdefs.h. */
  10367. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10368. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10369. #define _doprnt innocuous__doprnt
  10370. /* System header to define __stub macros and hopefully few prototypes,
  10371. which can conflict with char _doprnt (); below.
  10372. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10373. <limits.h> exists even on freestanding compilers. */
  10374. #ifdef __STDC__
  10375. # include <limits.h>
  10376. #else
  10377. # include <assert.h>
  10378. #endif
  10379. #undef _doprnt
  10380. /* Override any gcc2 internal prototype to avoid an error. */
  10381. #ifdef __cplusplus
  10382. extern "C"
  10383. {
  10384. #endif
  10385. /* We use char because int might match the return type of a gcc2
  10386. builtin and then its argument prototype would still apply. */
  10387. char _doprnt ();
  10388. /* The GNU C library defines this for functions which it implements
  10389. to always fail with ENOSYS. Some functions are actually named
  10390. something starting with __ and the normal name is an alias. */
  10391. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  10392. choke me
  10393. #else
  10394. char (*f) () = _doprnt;
  10395. #endif
  10396. #ifdef __cplusplus
  10397. }
  10398. #endif
  10399. int
  10400. main ()
  10401. {
  10402. return f != _doprnt;
  10403. ;
  10404. return 0;
  10405. }
  10406. _ACEOF
  10407. rm -f conftest.$ac_objext conftest$ac_exeext
  10408. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10409. (eval $ac_link) 2>conftest.er1
  10410. ac_status=$?
  10411. grep -v '^ *+' conftest.er1 >conftest.err
  10412. rm -f conftest.er1
  10413. cat conftest.err >&5
  10414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. (exit $ac_status); } &&
  10416. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10418. (eval $ac_try) 2>&5
  10419. ac_status=$?
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); }; } &&
  10422. { ac_try='test -s conftest$ac_exeext'
  10423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10424. (eval $ac_try) 2>&5
  10425. ac_status=$?
  10426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10427. (exit $ac_status); }; }; then
  10428. ac_cv_func__doprnt=yes
  10429. else
  10430. echo "$as_me: failed program was:" >&5
  10431. sed 's/^/| /' conftest.$ac_ext >&5
  10432. ac_cv_func__doprnt=no
  10433. fi
  10434. rm -f conftest.err conftest.$ac_objext \
  10435. conftest$ac_exeext conftest.$ac_ext
  10436. fi
  10437. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10438. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  10439. if test $ac_cv_func__doprnt = yes; then
  10440. cat >>confdefs.h <<\_ACEOF
  10441. #define HAVE_DOPRNT 1
  10442. _ACEOF
  10443. fi
  10444. fi
  10445. done
  10446. for ac_func in __argz_count __argz_next __argz_stringify ftruncate getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo rmdir select setlocale socket stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul
  10447. do
  10448. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10449. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10450. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10451. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10452. echo $ECHO_N "(cached) $ECHO_C" >&6
  10453. else
  10454. cat >conftest.$ac_ext <<_ACEOF
  10455. /* confdefs.h. */
  10456. _ACEOF
  10457. cat confdefs.h >>conftest.$ac_ext
  10458. cat >>conftest.$ac_ext <<_ACEOF
  10459. /* end confdefs.h. */
  10460. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10461. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10462. #define $ac_func innocuous_$ac_func
  10463. /* System header to define __stub macros and hopefully few prototypes,
  10464. which can conflict with char $ac_func (); below.
  10465. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10466. <limits.h> exists even on freestanding compilers. */
  10467. #ifdef __STDC__
  10468. # include <limits.h>
  10469. #else
  10470. # include <assert.h>
  10471. #endif
  10472. #undef $ac_func
  10473. /* Override any gcc2 internal prototype to avoid an error. */
  10474. #ifdef __cplusplus
  10475. extern "C"
  10476. {
  10477. #endif
  10478. /* We use char because int might match the return type of a gcc2
  10479. builtin and then its argument prototype would still apply. */
  10480. char $ac_func ();
  10481. /* The GNU C library defines this for functions which it implements
  10482. to always fail with ENOSYS. Some functions are actually named
  10483. something starting with __ and the normal name is an alias. */
  10484. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10485. choke me
  10486. #else
  10487. char (*f) () = $ac_func;
  10488. #endif
  10489. #ifdef __cplusplus
  10490. }
  10491. #endif
  10492. int
  10493. main ()
  10494. {
  10495. return f != $ac_func;
  10496. ;
  10497. return 0;
  10498. }
  10499. _ACEOF
  10500. rm -f conftest.$ac_objext conftest$ac_exeext
  10501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10502. (eval $ac_link) 2>conftest.er1
  10503. ac_status=$?
  10504. grep -v '^ *+' conftest.er1 >conftest.err
  10505. rm -f conftest.er1
  10506. cat conftest.err >&5
  10507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10508. (exit $ac_status); } &&
  10509. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10511. (eval $ac_try) 2>&5
  10512. ac_status=$?
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); }; } &&
  10515. { ac_try='test -s conftest$ac_exeext'
  10516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10517. (eval $ac_try) 2>&5
  10518. ac_status=$?
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); }; }; then
  10521. eval "$as_ac_var=yes"
  10522. else
  10523. echo "$as_me: failed program was:" >&5
  10524. sed 's/^/| /' conftest.$ac_ext >&5
  10525. eval "$as_ac_var=no"
  10526. fi
  10527. rm -f conftest.err conftest.$ac_objext \
  10528. conftest$ac_exeext conftest.$ac_ext
  10529. fi
  10530. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10531. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10532. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10533. cat >>confdefs.h <<_ACEOF
  10534. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10535. _ACEOF
  10536. fi
  10537. done
  10538. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile"
  10539. cat >confcache <<\_ACEOF
  10540. # This file is a shell script that caches the results of configure
  10541. # tests run on this system so they can be shared between configure
  10542. # scripts and configure runs, see configure's option --config-cache.
  10543. # It is not useful on other systems. If it contains results you don't
  10544. # want to keep, you may remove or edit it.
  10545. #
  10546. # config.status only pays attention to the cache file if you give it
  10547. # the --recheck option to rerun configure.
  10548. #
  10549. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10550. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10551. # following values.
  10552. _ACEOF
  10553. # The following way of writing the cache mishandles newlines in values,
  10554. # but we know of no workaround that is simple, portable, and efficient.
  10555. # So, don't put newlines in cache variables' values.
  10556. # Ultrix sh set writes to stderr and can't be redirected directly,
  10557. # and sets the high bit in the cache file unless we assign to the vars.
  10558. {
  10559. (set) 2>&1 |
  10560. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10561. *ac_space=\ *)
  10562. # `set' does not quote correctly, so add quotes (double-quote
  10563. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10564. sed -n \
  10565. "s/'/'\\\\''/g;
  10566. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10567. ;;
  10568. *)
  10569. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10570. sed -n \
  10571. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10572. ;;
  10573. esac;
  10574. } |
  10575. sed '
  10576. t clear
  10577. : clear
  10578. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10579. t end
  10580. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10581. : end' >>confcache
  10582. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10583. if test -w $cache_file; then
  10584. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10585. cat confcache >$cache_file
  10586. else
  10587. echo "not updating unwritable cache $cache_file"
  10588. fi
  10589. fi
  10590. rm -f confcache
  10591. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10592. # Let make expand exec_prefix.
  10593. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10594. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10595. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10596. # trailing colons and then remove the whole line if VPATH becomes empty
  10597. # (actually we leave an empty line to preserve line numbers).
  10598. if test "x$srcdir" = x.; then
  10599. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10600. s/:*\$(srcdir):*/:/;
  10601. s/:*\${srcdir}:*/:/;
  10602. s/:*@srcdir@:*/:/;
  10603. s/^\([^=]*=[ ]*\):*/\1/;
  10604. s/:*$//;
  10605. s/^[^=]*=[ ]*$//;
  10606. }'
  10607. fi
  10608. DEFS=-DHAVE_CONFIG_H
  10609. ac_libobjs=
  10610. ac_ltlibobjs=
  10611. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10612. # 1. Remove the extension, and $U if already installed.
  10613. ac_i=`echo "$ac_i" |
  10614. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10615. # 2. Add them.
  10616. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10617. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10618. done
  10619. LIBOBJS=$ac_libobjs
  10620. LTLIBOBJS=$ac_ltlibobjs
  10621. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10622. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10623. Usually this means the macro was only invoked conditionally." >&5
  10624. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10625. Usually this means the macro was only invoked conditionally." >&2;}
  10626. { (exit 1); exit 1; }; }
  10627. fi
  10628. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  10629. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  10630. Usually this means the macro was only invoked conditionally." >&5
  10631. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  10632. Usually this means the macro was only invoked conditionally." >&2;}
  10633. { (exit 1); exit 1; }; }
  10634. fi
  10635. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10636. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10637. Usually this means the macro was only invoked conditionally." >&5
  10638. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10639. Usually this means the macro was only invoked conditionally." >&2;}
  10640. { (exit 1); exit 1; }; }
  10641. fi
  10642. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10643. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10644. Usually this means the macro was only invoked conditionally." >&5
  10645. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10646. Usually this means the macro was only invoked conditionally." >&2;}
  10647. { (exit 1); exit 1; }; }
  10648. fi
  10649. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  10650. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10651. Usually this means the macro was only invoked conditionally." >&5
  10652. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  10653. Usually this means the macro was only invoked conditionally." >&2;}
  10654. { (exit 1); exit 1; }; }
  10655. fi
  10656. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10657. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10658. Usually this means the macro was only invoked conditionally." >&5
  10659. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10660. Usually this means the macro was only invoked conditionally." >&2;}
  10661. { (exit 1); exit 1; }; }
  10662. fi
  10663. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  10664. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  10665. Usually this means the macro was only invoked conditionally." >&5
  10666. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  10667. Usually this means the macro was only invoked conditionally." >&2;}
  10668. { (exit 1); exit 1; }; }
  10669. fi
  10670. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  10671. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10672. Usually this means the macro was only invoked conditionally." >&5
  10673. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10674. Usually this means the macro was only invoked conditionally." >&2;}
  10675. { (exit 1); exit 1; }; }
  10676. fi
  10677. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  10678. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10679. Usually this means the macro was only invoked conditionally." >&5
  10680. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  10681. Usually this means the macro was only invoked conditionally." >&2;}
  10682. { (exit 1); exit 1; }; }
  10683. fi
  10684. : ${CONFIG_STATUS=./config.status}
  10685. ac_clean_files_save=$ac_clean_files
  10686. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10687. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10688. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10689. cat >$CONFIG_STATUS <<_ACEOF
  10690. #! $SHELL
  10691. # Generated by $as_me.
  10692. # Run this file to recreate the current configuration.
  10693. # Compiler output produced by configure, useful for debugging
  10694. # configure, is in config.log if it exists.
  10695. debug=false
  10696. ac_cs_recheck=false
  10697. ac_cs_silent=false
  10698. SHELL=\${CONFIG_SHELL-$SHELL}
  10699. _ACEOF
  10700. cat >>$CONFIG_STATUS <<\_ACEOF
  10701. ## --------------------- ##
  10702. ## M4sh Initialization. ##
  10703. ## --------------------- ##
  10704. # Be Bourne compatible
  10705. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10706. emulate sh
  10707. NULLCMD=:
  10708. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10709. # is contrary to our usage. Disable this feature.
  10710. alias -g '${1+"$@"}'='"$@"'
  10711. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10712. set -o posix
  10713. fi
  10714. DUALCASE=1; export DUALCASE # for MKS sh
  10715. # Support unset when possible.
  10716. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10717. as_unset=unset
  10718. else
  10719. as_unset=false
  10720. fi
  10721. # Work around bugs in pre-3.0 UWIN ksh.
  10722. $as_unset ENV MAIL MAILPATH
  10723. PS1='$ '
  10724. PS2='> '
  10725. PS4='+ '
  10726. # NLS nuisances.
  10727. for as_var in \
  10728. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10729. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10730. LC_TELEPHONE LC_TIME
  10731. do
  10732. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10733. eval $as_var=C; export $as_var
  10734. else
  10735. $as_unset $as_var
  10736. fi
  10737. done
  10738. # Required to use basename.
  10739. if expr a : '\(a\)' >/dev/null 2>&1; then
  10740. as_expr=expr
  10741. else
  10742. as_expr=false
  10743. fi
  10744. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10745. as_basename=basename
  10746. else
  10747. as_basename=false
  10748. fi
  10749. # Name of the executable.
  10750. as_me=`$as_basename "$0" ||
  10751. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10752. X"$0" : 'X\(//\)$' \| \
  10753. X"$0" : 'X\(/\)$' \| \
  10754. . : '\(.\)' 2>/dev/null ||
  10755. echo X/"$0" |
  10756. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10757. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10758. /^X\/\(\/\).*/{ s//\1/; q; }
  10759. s/.*/./; q'`
  10760. # PATH needs CR, and LINENO needs CR and PATH.
  10761. # Avoid depending upon Character Ranges.
  10762. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10763. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10764. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10765. as_cr_digits='0123456789'
  10766. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10767. # The user is always right.
  10768. if test "${PATH_SEPARATOR+set}" != set; then
  10769. echo "#! /bin/sh" >conf$$.sh
  10770. echo "exit 0" >>conf$$.sh
  10771. chmod +x conf$$.sh
  10772. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10773. PATH_SEPARATOR=';'
  10774. else
  10775. PATH_SEPARATOR=:
  10776. fi
  10777. rm -f conf$$.sh
  10778. fi
  10779. as_lineno_1=$LINENO
  10780. as_lineno_2=$LINENO
  10781. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10782. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10783. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10784. # Find who we are. Look in the path if we contain no path at all
  10785. # relative or not.
  10786. case $0 in
  10787. *[\\/]* ) as_myself=$0 ;;
  10788. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10789. for as_dir in $PATH
  10790. do
  10791. IFS=$as_save_IFS
  10792. test -z "$as_dir" && as_dir=.
  10793. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10794. done
  10795. ;;
  10796. esac
  10797. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10798. # in which case we are not to be found in the path.
  10799. if test "x$as_myself" = x; then
  10800. as_myself=$0
  10801. fi
  10802. if test ! -f "$as_myself"; then
  10803. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10804. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10805. { (exit 1); exit 1; }; }
  10806. fi
  10807. case $CONFIG_SHELL in
  10808. '')
  10809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10810. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10811. do
  10812. IFS=$as_save_IFS
  10813. test -z "$as_dir" && as_dir=.
  10814. for as_base in sh bash ksh sh5; do
  10815. case $as_dir in
  10816. /*)
  10817. if ("$as_dir/$as_base" -c '
  10818. as_lineno_1=$LINENO
  10819. as_lineno_2=$LINENO
  10820. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10821. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10822. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10823. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10824. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10825. CONFIG_SHELL=$as_dir/$as_base
  10826. export CONFIG_SHELL
  10827. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10828. fi;;
  10829. esac
  10830. done
  10831. done
  10832. ;;
  10833. esac
  10834. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10835. # uniformly replaced by the line number. The first 'sed' inserts a
  10836. # line-number line before each line; the second 'sed' does the real
  10837. # work. The second script uses 'N' to pair each line-number line
  10838. # with the numbered line, and appends trailing '-' during
  10839. # substitution so that $LINENO is not a special case at line end.
  10840. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10841. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10842. sed '=' <$as_myself |
  10843. sed '
  10844. N
  10845. s,$,-,
  10846. : loop
  10847. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10848. t loop
  10849. s,-$,,
  10850. s,^['$as_cr_digits']*\n,,
  10851. ' >$as_me.lineno &&
  10852. chmod +x $as_me.lineno ||
  10853. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10854. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10855. { (exit 1); exit 1; }; }
  10856. # Don't try to exec as it changes $[0], causing all sort of problems
  10857. # (the dirname of $[0] is not the place where we might find the
  10858. # original and so on. Autoconf is especially sensible to this).
  10859. . ./$as_me.lineno
  10860. # Exit status is that of the last command.
  10861. exit
  10862. }
  10863. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10864. *c*,-n*) ECHO_N= ECHO_C='
  10865. ' ECHO_T=' ' ;;
  10866. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10867. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10868. esac
  10869. if expr a : '\(a\)' >/dev/null 2>&1; then
  10870. as_expr=expr
  10871. else
  10872. as_expr=false
  10873. fi
  10874. rm -f conf$$ conf$$.exe conf$$.file
  10875. echo >conf$$.file
  10876. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10877. # We could just check for DJGPP; but this test a) works b) is more generic
  10878. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10879. if test -f conf$$.exe; then
  10880. # Don't use ln at all; we don't have any links
  10881. as_ln_s='cp -p'
  10882. else
  10883. as_ln_s='ln -s'
  10884. fi
  10885. elif ln conf$$.file conf$$ 2>/dev/null; then
  10886. as_ln_s=ln
  10887. else
  10888. as_ln_s='cp -p'
  10889. fi
  10890. rm -f conf$$ conf$$.exe conf$$.file
  10891. if mkdir -p . 2>/dev/null; then
  10892. as_mkdir_p=:
  10893. else
  10894. test -d ./-p && rmdir ./-p
  10895. as_mkdir_p=false
  10896. fi
  10897. as_executable_p="test -f"
  10898. # Sed expression to map a string onto a valid CPP name.
  10899. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10900. # Sed expression to map a string onto a valid variable name.
  10901. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10902. # IFS
  10903. # We need space, tab and new line, in precisely that order.
  10904. as_nl='
  10905. '
  10906. IFS=" $as_nl"
  10907. # CDPATH.
  10908. $as_unset CDPATH
  10909. exec 6>&1
  10910. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10911. # report actual input values of CONFIG_FILES etc. instead of their
  10912. # values after options handling. Logging --version etc. is OK.
  10913. exec 5>>config.log
  10914. {
  10915. echo
  10916. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10917. ## Running $as_me. ##
  10918. _ASBOX
  10919. } >&5
  10920. cat >&5 <<_CSEOF
  10921. This file was extended by aria2c $as_me 0.7.1, which was
  10922. generated by GNU Autoconf 2.59. Invocation command line was
  10923. CONFIG_FILES = $CONFIG_FILES
  10924. CONFIG_HEADERS = $CONFIG_HEADERS
  10925. CONFIG_LINKS = $CONFIG_LINKS
  10926. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10927. $ $0 $@
  10928. _CSEOF
  10929. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10930. echo >&5
  10931. _ACEOF
  10932. # Files that config.status was made for.
  10933. if test -n "$ac_config_files"; then
  10934. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10935. fi
  10936. if test -n "$ac_config_headers"; then
  10937. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10938. fi
  10939. if test -n "$ac_config_links"; then
  10940. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10941. fi
  10942. if test -n "$ac_config_commands"; then
  10943. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10944. fi
  10945. cat >>$CONFIG_STATUS <<\_ACEOF
  10946. ac_cs_usage="\
  10947. \`$as_me' instantiates files from templates according to the
  10948. current configuration.
  10949. Usage: $0 [OPTIONS] [FILE]...
  10950. -h, --help print this help, then exit
  10951. -V, --version print version number, then exit
  10952. -q, --quiet do not print progress messages
  10953. -d, --debug don't remove temporary files
  10954. --recheck update $as_me by reconfiguring in the same conditions
  10955. --file=FILE[:TEMPLATE]
  10956. instantiate the configuration file FILE
  10957. --header=FILE[:TEMPLATE]
  10958. instantiate the configuration header FILE
  10959. Configuration files:
  10960. $config_files
  10961. Configuration headers:
  10962. $config_headers
  10963. Configuration commands:
  10964. $config_commands
  10965. Report bugs to <bug-autoconf@gnu.org>."
  10966. _ACEOF
  10967. cat >>$CONFIG_STATUS <<_ACEOF
  10968. ac_cs_version="\\
  10969. aria2c config.status 0.7.1
  10970. configured by $0, generated by GNU Autoconf 2.59,
  10971. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10972. Copyright (C) 2003 Free Software Foundation, Inc.
  10973. This config.status script is free software; the Free Software Foundation
  10974. gives unlimited permission to copy, distribute and modify it."
  10975. srcdir=$srcdir
  10976. INSTALL="$INSTALL"
  10977. _ACEOF
  10978. cat >>$CONFIG_STATUS <<\_ACEOF
  10979. # If no file are specified by the user, then we need to provide default
  10980. # value. By we need to know if files were specified by the user.
  10981. ac_need_defaults=:
  10982. while test $# != 0
  10983. do
  10984. case $1 in
  10985. --*=*)
  10986. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10987. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10988. ac_shift=:
  10989. ;;
  10990. -*)
  10991. ac_option=$1
  10992. ac_optarg=$2
  10993. ac_shift=shift
  10994. ;;
  10995. *) # This is not an option, so the user has probably given explicit
  10996. # arguments.
  10997. ac_option=$1
  10998. ac_need_defaults=false;;
  10999. esac
  11000. case $ac_option in
  11001. # Handling of the options.
  11002. _ACEOF
  11003. cat >>$CONFIG_STATUS <<\_ACEOF
  11004. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11005. ac_cs_recheck=: ;;
  11006. --version | --vers* | -V )
  11007. echo "$ac_cs_version"; exit 0 ;;
  11008. --he | --h)
  11009. # Conflict between --help and --header
  11010. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11011. Try \`$0 --help' for more information." >&5
  11012. echo "$as_me: error: ambiguous option: $1
  11013. Try \`$0 --help' for more information." >&2;}
  11014. { (exit 1); exit 1; }; };;
  11015. --help | --hel | -h )
  11016. echo "$ac_cs_usage"; exit 0 ;;
  11017. --debug | --d* | -d )
  11018. debug=: ;;
  11019. --file | --fil | --fi | --f )
  11020. $ac_shift
  11021. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11022. ac_need_defaults=false;;
  11023. --header | --heade | --head | --hea )
  11024. $ac_shift
  11025. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11026. ac_need_defaults=false;;
  11027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11028. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11029. ac_cs_silent=: ;;
  11030. # This is an error.
  11031. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11032. Try \`$0 --help' for more information." >&5
  11033. echo "$as_me: error: unrecognized option: $1
  11034. Try \`$0 --help' for more information." >&2;}
  11035. { (exit 1); exit 1; }; } ;;
  11036. *) ac_config_targets="$ac_config_targets $1" ;;
  11037. esac
  11038. shift
  11039. done
  11040. ac_configure_extra_args=
  11041. if $ac_cs_silent; then
  11042. exec 6>/dev/null
  11043. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11044. fi
  11045. _ACEOF
  11046. cat >>$CONFIG_STATUS <<_ACEOF
  11047. if \$ac_cs_recheck; then
  11048. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11049. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11050. fi
  11051. _ACEOF
  11052. cat >>$CONFIG_STATUS <<_ACEOF
  11053. #
  11054. # INIT-COMMANDS section.
  11055. #
  11056. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11057. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11058. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11059. # from automake.
  11060. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11061. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11062. LINGUAS="${LINGUAS-%UNSET%}"
  11063. _ACEOF
  11064. cat >>$CONFIG_STATUS <<\_ACEOF
  11065. for ac_config_target in $ac_config_targets
  11066. do
  11067. case "$ac_config_target" in
  11068. # Handling of arguments.
  11069. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11070. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11071. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  11072. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  11073. "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11074. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  11075. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11076. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11077. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11078. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11079. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11080. { (exit 1); exit 1; }; };;
  11081. esac
  11082. done
  11083. # If the user did not use the arguments to specify the items to instantiate,
  11084. # then the envvar interface is used. Set only those that are not.
  11085. # We use the long form for the default assignment because of an extremely
  11086. # bizarre bug on SunOS 4.1.3.
  11087. if $ac_need_defaults; then
  11088. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11089. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11090. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11091. fi
  11092. # Have a temporary directory for convenience. Make it in the build tree
  11093. # simply because there is no reason to put it here, and in addition,
  11094. # creating and moving files from /tmp can sometimes cause problems.
  11095. # Create a temporary directory, and hook for its removal unless debugging.
  11096. $debug ||
  11097. {
  11098. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11099. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11100. }
  11101. # Create a (secure) tmp directory for tmp files.
  11102. {
  11103. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11104. test -n "$tmp" && test -d "$tmp"
  11105. } ||
  11106. {
  11107. tmp=./confstat$$-$RANDOM
  11108. (umask 077 && mkdir $tmp)
  11109. } ||
  11110. {
  11111. echo "$me: cannot create a temporary directory in ." >&2
  11112. { (exit 1); exit 1; }
  11113. }
  11114. _ACEOF
  11115. cat >>$CONFIG_STATUS <<_ACEOF
  11116. #
  11117. # CONFIG_FILES section.
  11118. #
  11119. # No need to generate the scripts if there are no CONFIG_FILES.
  11120. # This happens for instance when ./config.status config.h
  11121. if test -n "\$CONFIG_FILES"; then
  11122. # Protect against being on the right side of a sed subst in config.status.
  11123. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11124. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11125. s,@SHELL@,$SHELL,;t t
  11126. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11127. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11128. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11129. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11130. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11131. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11132. s,@exec_prefix@,$exec_prefix,;t t
  11133. s,@prefix@,$prefix,;t t
  11134. s,@program_transform_name@,$program_transform_name,;t t
  11135. s,@bindir@,$bindir,;t t
  11136. s,@sbindir@,$sbindir,;t t
  11137. s,@libexecdir@,$libexecdir,;t t
  11138. s,@datadir@,$datadir,;t t
  11139. s,@sysconfdir@,$sysconfdir,;t t
  11140. s,@sharedstatedir@,$sharedstatedir,;t t
  11141. s,@localstatedir@,$localstatedir,;t t
  11142. s,@libdir@,$libdir,;t t
  11143. s,@includedir@,$includedir,;t t
  11144. s,@oldincludedir@,$oldincludedir,;t t
  11145. s,@infodir@,$infodir,;t t
  11146. s,@mandir@,$mandir,;t t
  11147. s,@build_alias@,$build_alias,;t t
  11148. s,@host_alias@,$host_alias,;t t
  11149. s,@target_alias@,$target_alias,;t t
  11150. s,@DEFS@,$DEFS,;t t
  11151. s,@ECHO_C@,$ECHO_C,;t t
  11152. s,@ECHO_N@,$ECHO_N,;t t
  11153. s,@ECHO_T@,$ECHO_T,;t t
  11154. s,@LIBS@,$LIBS,;t t
  11155. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11156. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11157. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11158. s,@CYGPATH_W@,$CYGPATH_W,;t t
  11159. s,@PACKAGE@,$PACKAGE,;t t
  11160. s,@VERSION@,$VERSION,;t t
  11161. s,@ACLOCAL@,$ACLOCAL,;t t
  11162. s,@AUTOCONF@,$AUTOCONF,;t t
  11163. s,@AUTOMAKE@,$AUTOMAKE,;t t
  11164. s,@AUTOHEADER@,$AUTOHEADER,;t t
  11165. s,@MAKEINFO@,$MAKEINFO,;t t
  11166. s,@install_sh@,$install_sh,;t t
  11167. s,@STRIP@,$STRIP,;t t
  11168. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11169. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  11170. s,@mkdir_p@,$mkdir_p,;t t
  11171. s,@AWK@,$AWK,;t t
  11172. s,@SET_MAKE@,$SET_MAKE,;t t
  11173. s,@am__leading_dot@,$am__leading_dot,;t t
  11174. s,@AMTAR@,$AMTAR,;t t
  11175. s,@am__tar@,$am__tar,;t t
  11176. s,@am__untar@,$am__untar,;t t
  11177. s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
  11178. s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
  11179. s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
  11180. s,@localedir@,$localedir,;t t
  11181. s,@CXX@,$CXX,;t t
  11182. s,@CXXFLAGS@,$CXXFLAGS,;t t
  11183. s,@LDFLAGS@,$LDFLAGS,;t t
  11184. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11185. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  11186. s,@EXEEXT@,$EXEEXT,;t t
  11187. s,@OBJEXT@,$OBJEXT,;t t
  11188. s,@DEPDIR@,$DEPDIR,;t t
  11189. s,@am__include@,$am__include,;t t
  11190. s,@am__quote@,$am__quote,;t t
  11191. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  11192. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  11193. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  11194. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  11195. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  11196. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  11197. s,@CC@,$CC,;t t
  11198. s,@CFLAGS@,$CFLAGS,;t t
  11199. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11200. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11201. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  11202. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  11203. s,@RANLIB@,$RANLIB,;t t
  11204. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11205. s,@YACC@,$YACC,;t t
  11206. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  11207. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  11208. s,@XML_LIBS@,$XML_LIBS,;t t
  11209. s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
  11210. s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
  11211. s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
  11212. s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
  11213. s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
  11214. s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
  11215. s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
  11216. s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
  11217. s,@LIBCARES_LIBS@,$LIBCARES_LIBS,;t t
  11218. s,@LIBCARES_CPPFLAGS@,$LIBCARES_CPPFLAGS,;t t
  11219. s,@LIBARES_LIBS@,$LIBARES_LIBS,;t t
  11220. s,@LIBARES_CPPFLAGS@,$LIBARES_CPPFLAGS,;t t
  11221. s,@ENABLE_BITTORRENT_TRUE@,$ENABLE_BITTORRENT_TRUE,;t t
  11222. s,@ENABLE_BITTORRENT_FALSE@,$ENABLE_BITTORRENT_FALSE,;t t
  11223. s,@ENABLE_METALINK_TRUE@,$ENABLE_METALINK_TRUE,;t t
  11224. s,@ENABLE_METALINK_FALSE@,$ENABLE_METALINK_FALSE,;t t
  11225. s,@ENABLE_ASYNC_DNS_TRUE@,$ENABLE_ASYNC_DNS_TRUE,;t t
  11226. s,@ENABLE_ASYNC_DNS_FALSE@,$ENABLE_ASYNC_DNS_FALSE,;t t
  11227. s,@ALLOCA@,$ALLOCA,;t t
  11228. s,@CPP@,$CPP,;t t
  11229. s,@EGREP@,$EGREP,;t t
  11230. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  11231. s,@USE_NLS@,$USE_NLS,;t t
  11232. s,@MSGFMT@,$MSGFMT,;t t
  11233. s,@GMSGFMT@,$GMSGFMT,;t t
  11234. s,@XGETTEXT@,$XGETTEXT,;t t
  11235. s,@MSGMERGE@,$MSGMERGE,;t t
  11236. s,@build@,$build,;t t
  11237. s,@build_cpu@,$build_cpu,;t t
  11238. s,@build_vendor@,$build_vendor,;t t
  11239. s,@build_os@,$build_os,;t t
  11240. s,@host@,$host,;t t
  11241. s,@host_cpu@,$host_cpu,;t t
  11242. s,@host_vendor@,$host_vendor,;t t
  11243. s,@host_os@,$host_os,;t t
  11244. s,@GLIBC21@,$GLIBC21,;t t
  11245. s,@LIBICONV@,$LIBICONV,;t t
  11246. s,@LTLIBICONV@,$LTLIBICONV,;t t
  11247. s,@INTLBISON@,$INTLBISON,;t t
  11248. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  11249. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  11250. s,@CATOBJEXT@,$CATOBJEXT,;t t
  11251. s,@DATADIRNAME@,$DATADIRNAME,;t t
  11252. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  11253. s,@GENCAT@,$GENCAT,;t t
  11254. s,@INTLOBJS@,$INTLOBJS,;t t
  11255. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  11256. s,@INTLLIBS@,$INTLLIBS,;t t
  11257. s,@LIBINTL@,$LIBINTL,;t t
  11258. s,@LTLIBINTL@,$LTLIBINTL,;t t
  11259. s,@POSUB@,$POSUB,;t t
  11260. s,@LIBOBJS@,$LIBOBJS,;t t
  11261. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11262. CEOF
  11263. _ACEOF
  11264. cat >>$CONFIG_STATUS <<\_ACEOF
  11265. # Split the substitutions into bite-sized pieces for seds with
  11266. # small command number limits, like on Digital OSF/1 and HP-UX.
  11267. ac_max_sed_lines=48
  11268. ac_sed_frag=1 # Number of current file.
  11269. ac_beg=1 # First line for current file.
  11270. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11271. ac_more_lines=:
  11272. ac_sed_cmds=
  11273. while $ac_more_lines; do
  11274. if test $ac_beg -gt 1; then
  11275. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11276. else
  11277. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11278. fi
  11279. if test ! -s $tmp/subs.frag; then
  11280. ac_more_lines=false
  11281. else
  11282. # The purpose of the label and of the branching condition is to
  11283. # speed up the sed processing (if there are no `@' at all, there
  11284. # is no need to browse any of the substitutions).
  11285. # These are the two extra sed commands mentioned above.
  11286. (echo ':t
  11287. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11288. if test -z "$ac_sed_cmds"; then
  11289. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11290. else
  11291. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11292. fi
  11293. ac_sed_frag=`expr $ac_sed_frag + 1`
  11294. ac_beg=$ac_end
  11295. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11296. fi
  11297. done
  11298. if test -z "$ac_sed_cmds"; then
  11299. ac_sed_cmds=cat
  11300. fi
  11301. fi # test -n "$CONFIG_FILES"
  11302. _ACEOF
  11303. cat >>$CONFIG_STATUS <<\_ACEOF
  11304. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11305. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11306. case $ac_file in
  11307. - | *:- | *:-:* ) # input from stdin
  11308. cat >$tmp/stdin
  11309. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11310. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11311. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11312. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11313. * ) ac_file_in=$ac_file.in ;;
  11314. esac
  11315. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11316. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11317. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11318. X"$ac_file" : 'X\(//\)[^/]' \| \
  11319. X"$ac_file" : 'X\(//\)$' \| \
  11320. X"$ac_file" : 'X\(/\)' \| \
  11321. . : '\(.\)' 2>/dev/null ||
  11322. echo X"$ac_file" |
  11323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11324. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11325. /^X\(\/\/\)$/{ s//\1/; q; }
  11326. /^X\(\/\).*/{ s//\1/; q; }
  11327. s/.*/./; q'`
  11328. { if $as_mkdir_p; then
  11329. mkdir -p "$ac_dir"
  11330. else
  11331. as_dir="$ac_dir"
  11332. as_dirs=
  11333. while test ! -d "$as_dir"; do
  11334. as_dirs="$as_dir $as_dirs"
  11335. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11336. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11337. X"$as_dir" : 'X\(//\)[^/]' \| \
  11338. X"$as_dir" : 'X\(//\)$' \| \
  11339. X"$as_dir" : 'X\(/\)' \| \
  11340. . : '\(.\)' 2>/dev/null ||
  11341. echo X"$as_dir" |
  11342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11343. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11344. /^X\(\/\/\)$/{ s//\1/; q; }
  11345. /^X\(\/\).*/{ s//\1/; q; }
  11346. s/.*/./; q'`
  11347. done
  11348. test ! -n "$as_dirs" || mkdir $as_dirs
  11349. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11350. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11351. { (exit 1); exit 1; }; }; }
  11352. ac_builddir=.
  11353. if test "$ac_dir" != .; then
  11354. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11355. # A "../" for each directory in $ac_dir_suffix.
  11356. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11357. else
  11358. ac_dir_suffix= ac_top_builddir=
  11359. fi
  11360. case $srcdir in
  11361. .) # No --srcdir option. We are building in place.
  11362. ac_srcdir=.
  11363. if test -z "$ac_top_builddir"; then
  11364. ac_top_srcdir=.
  11365. else
  11366. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11367. fi ;;
  11368. [\\/]* | ?:[\\/]* ) # Absolute path.
  11369. ac_srcdir=$srcdir$ac_dir_suffix;
  11370. ac_top_srcdir=$srcdir ;;
  11371. *) # Relative path.
  11372. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11373. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11374. esac
  11375. # Do not use `cd foo && pwd` to compute absolute paths, because
  11376. # the directories may not exist.
  11377. case `pwd` in
  11378. .) ac_abs_builddir="$ac_dir";;
  11379. *)
  11380. case "$ac_dir" in
  11381. .) ac_abs_builddir=`pwd`;;
  11382. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11383. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11384. esac;;
  11385. esac
  11386. case $ac_abs_builddir in
  11387. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11388. *)
  11389. case ${ac_top_builddir}. in
  11390. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11391. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11392. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11393. esac;;
  11394. esac
  11395. case $ac_abs_builddir in
  11396. .) ac_abs_srcdir=$ac_srcdir;;
  11397. *)
  11398. case $ac_srcdir in
  11399. .) ac_abs_srcdir=$ac_abs_builddir;;
  11400. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11401. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11402. esac;;
  11403. esac
  11404. case $ac_abs_builddir in
  11405. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11406. *)
  11407. case $ac_top_srcdir in
  11408. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11409. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11410. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11411. esac;;
  11412. esac
  11413. case $INSTALL in
  11414. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11415. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11416. esac
  11417. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11418. # use $as_me), people would be surprised to read:
  11419. # /* config.h. Generated by config.status. */
  11420. if test x"$ac_file" = x-; then
  11421. configure_input=
  11422. else
  11423. configure_input="$ac_file. "
  11424. fi
  11425. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11426. sed 's,.*/,,'` by configure."
  11427. # First look for the input files in the build tree, otherwise in the
  11428. # src tree.
  11429. ac_file_inputs=`IFS=:
  11430. for f in $ac_file_in; do
  11431. case $f in
  11432. -) echo $tmp/stdin ;;
  11433. [\\/$]*)
  11434. # Absolute (can't be DOS-style, as IFS=:)
  11435. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11436. echo "$as_me: error: cannot find input file: $f" >&2;}
  11437. { (exit 1); exit 1; }; }
  11438. echo "$f";;
  11439. *) # Relative
  11440. if test -f "$f"; then
  11441. # Build tree
  11442. echo "$f"
  11443. elif test -f "$srcdir/$f"; then
  11444. # Source tree
  11445. echo "$srcdir/$f"
  11446. else
  11447. # /dev/null tree
  11448. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11449. echo "$as_me: error: cannot find input file: $f" >&2;}
  11450. { (exit 1); exit 1; }; }
  11451. fi;;
  11452. esac
  11453. done` || { (exit 1); exit 1; }
  11454. if test x"$ac_file" != x-; then
  11455. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11456. echo "$as_me: creating $ac_file" >&6;}
  11457. rm -f "$ac_file"
  11458. fi
  11459. _ACEOF
  11460. cat >>$CONFIG_STATUS <<_ACEOF
  11461. sed "$ac_vpsub
  11462. $extrasub
  11463. _ACEOF
  11464. cat >>$CONFIG_STATUS <<\_ACEOF
  11465. :t
  11466. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11467. s,@configure_input@,$configure_input,;t t
  11468. s,@srcdir@,$ac_srcdir,;t t
  11469. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11470. s,@top_srcdir@,$ac_top_srcdir,;t t
  11471. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11472. s,@builddir@,$ac_builddir,;t t
  11473. s,@abs_builddir@,$ac_abs_builddir,;t t
  11474. s,@top_builddir@,$ac_top_builddir,;t t
  11475. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11476. s,@INSTALL@,$ac_INSTALL,;t t
  11477. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11478. rm -f $tmp/stdin
  11479. if test x"$ac_file" != x-; then
  11480. mv $tmp/out $ac_file
  11481. else
  11482. cat $tmp/out
  11483. rm -f $tmp/out
  11484. fi
  11485. done
  11486. _ACEOF
  11487. cat >>$CONFIG_STATUS <<\_ACEOF
  11488. #
  11489. # CONFIG_HEADER section.
  11490. #
  11491. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11492. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11493. #
  11494. # ac_d sets the value in "#define NAME VALUE" lines.
  11495. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11496. ac_dB='[ ].*$,\1#\2'
  11497. ac_dC=' '
  11498. ac_dD=',;t'
  11499. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11500. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11501. ac_uB='$,\1#\2define\3'
  11502. ac_uC=' '
  11503. ac_uD=',;t'
  11504. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11505. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11506. case $ac_file in
  11507. - | *:- | *:-:* ) # input from stdin
  11508. cat >$tmp/stdin
  11509. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11510. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11511. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11512. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11513. * ) ac_file_in=$ac_file.in ;;
  11514. esac
  11515. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11516. echo "$as_me: creating $ac_file" >&6;}
  11517. # First look for the input files in the build tree, otherwise in the
  11518. # src tree.
  11519. ac_file_inputs=`IFS=:
  11520. for f in $ac_file_in; do
  11521. case $f in
  11522. -) echo $tmp/stdin ;;
  11523. [\\/$]*)
  11524. # Absolute (can't be DOS-style, as IFS=:)
  11525. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11526. echo "$as_me: error: cannot find input file: $f" >&2;}
  11527. { (exit 1); exit 1; }; }
  11528. # Do quote $f, to prevent DOS paths from being IFS'd.
  11529. echo "$f";;
  11530. *) # Relative
  11531. if test -f "$f"; then
  11532. # Build tree
  11533. echo "$f"
  11534. elif test -f "$srcdir/$f"; then
  11535. # Source tree
  11536. echo "$srcdir/$f"
  11537. else
  11538. # /dev/null tree
  11539. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11540. echo "$as_me: error: cannot find input file: $f" >&2;}
  11541. { (exit 1); exit 1; }; }
  11542. fi;;
  11543. esac
  11544. done` || { (exit 1); exit 1; }
  11545. # Remove the trailing spaces.
  11546. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11547. _ACEOF
  11548. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11549. # `conftest.undefs', that substitutes the proper values into
  11550. # config.h.in to produce config.h. The first handles `#define'
  11551. # templates, and the second `#undef' templates.
  11552. # And first: Protect against being on the right side of a sed subst in
  11553. # config.status. Protect against being in an unquoted here document
  11554. # in config.status.
  11555. rm -f conftest.defines conftest.undefs
  11556. # Using a here document instead of a string reduces the quoting nightmare.
  11557. # Putting comments in sed scripts is not portable.
  11558. #
  11559. # `end' is used to avoid that the second main sed command (meant for
  11560. # 0-ary CPP macros) applies to n-ary macro definitions.
  11561. # See the Autoconf documentation for `clear'.
  11562. cat >confdef2sed.sed <<\_ACEOF
  11563. s/[\\&,]/\\&/g
  11564. s,[\\$`],\\&,g
  11565. t clear
  11566. : clear
  11567. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11568. t end
  11569. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11570. : end
  11571. _ACEOF
  11572. # If some macros were called several times there might be several times
  11573. # the same #defines, which is useless. Nevertheless, we may not want to
  11574. # sort them, since we want the *last* AC-DEFINE to be honored.
  11575. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11576. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11577. rm -f confdef2sed.sed
  11578. # This sed command replaces #undef with comments. This is necessary, for
  11579. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11580. # on some systems where configure will not decide to define it.
  11581. cat >>conftest.undefs <<\_ACEOF
  11582. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11583. _ACEOF
  11584. # Break up conftest.defines because some shells have a limit on the size
  11585. # of here documents, and old seds have small limits too (100 cmds).
  11586. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11587. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11588. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11589. echo ' :' >>$CONFIG_STATUS
  11590. rm -f conftest.tail
  11591. while grep . conftest.defines >/dev/null
  11592. do
  11593. # Write a limited-size here document to $tmp/defines.sed.
  11594. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11595. # Speed up: don't consider the non `#define' lines.
  11596. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11597. # Work around the forget-to-reset-the-flag bug.
  11598. echo 't clr' >>$CONFIG_STATUS
  11599. echo ': clr' >>$CONFIG_STATUS
  11600. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11601. echo 'CEOF
  11602. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11603. rm -f $tmp/in
  11604. mv $tmp/out $tmp/in
  11605. ' >>$CONFIG_STATUS
  11606. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11607. rm -f conftest.defines
  11608. mv conftest.tail conftest.defines
  11609. done
  11610. rm -f conftest.defines
  11611. echo ' fi # grep' >>$CONFIG_STATUS
  11612. echo >>$CONFIG_STATUS
  11613. # Break up conftest.undefs because some shells have a limit on the size
  11614. # of here documents, and old seds have small limits too (100 cmds).
  11615. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11616. rm -f conftest.tail
  11617. while grep . conftest.undefs >/dev/null
  11618. do
  11619. # Write a limited-size here document to $tmp/undefs.sed.
  11620. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11621. # Speed up: don't consider the non `#undef'
  11622. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11623. # Work around the forget-to-reset-the-flag bug.
  11624. echo 't clr' >>$CONFIG_STATUS
  11625. echo ': clr' >>$CONFIG_STATUS
  11626. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11627. echo 'CEOF
  11628. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11629. rm -f $tmp/in
  11630. mv $tmp/out $tmp/in
  11631. ' >>$CONFIG_STATUS
  11632. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11633. rm -f conftest.undefs
  11634. mv conftest.tail conftest.undefs
  11635. done
  11636. rm -f conftest.undefs
  11637. cat >>$CONFIG_STATUS <<\_ACEOF
  11638. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11639. # use $as_me), people would be surprised to read:
  11640. # /* config.h. Generated by config.status. */
  11641. if test x"$ac_file" = x-; then
  11642. echo "/* Generated by configure. */" >$tmp/config.h
  11643. else
  11644. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11645. fi
  11646. cat $tmp/in >>$tmp/config.h
  11647. rm -f $tmp/in
  11648. if test x"$ac_file" != x-; then
  11649. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11650. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11651. echo "$as_me: $ac_file is unchanged" >&6;}
  11652. else
  11653. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11654. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11655. X"$ac_file" : 'X\(//\)[^/]' \| \
  11656. X"$ac_file" : 'X\(//\)$' \| \
  11657. X"$ac_file" : 'X\(/\)' \| \
  11658. . : '\(.\)' 2>/dev/null ||
  11659. echo X"$ac_file" |
  11660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11661. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11662. /^X\(\/\/\)$/{ s//\1/; q; }
  11663. /^X\(\/\).*/{ s//\1/; q; }
  11664. s/.*/./; q'`
  11665. { if $as_mkdir_p; then
  11666. mkdir -p "$ac_dir"
  11667. else
  11668. as_dir="$ac_dir"
  11669. as_dirs=
  11670. while test ! -d "$as_dir"; do
  11671. as_dirs="$as_dir $as_dirs"
  11672. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11673. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11674. X"$as_dir" : 'X\(//\)[^/]' \| \
  11675. X"$as_dir" : 'X\(//\)$' \| \
  11676. X"$as_dir" : 'X\(/\)' \| \
  11677. . : '\(.\)' 2>/dev/null ||
  11678. echo X"$as_dir" |
  11679. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11680. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11681. /^X\(\/\/\)$/{ s//\1/; q; }
  11682. /^X\(\/\).*/{ s//\1/; q; }
  11683. s/.*/./; q'`
  11684. done
  11685. test ! -n "$as_dirs" || mkdir $as_dirs
  11686. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11687. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11688. { (exit 1); exit 1; }; }; }
  11689. rm -f $ac_file
  11690. mv $tmp/config.h $ac_file
  11691. fi
  11692. else
  11693. cat $tmp/config.h
  11694. rm -f $tmp/config.h
  11695. fi
  11696. # Compute $ac_file's index in $config_headers.
  11697. _am_stamp_count=1
  11698. for _am_header in $config_headers :; do
  11699. case $_am_header in
  11700. $ac_file | $ac_file:* )
  11701. break ;;
  11702. * )
  11703. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11704. esac
  11705. done
  11706. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11707. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11708. X$ac_file : 'X\(//\)[^/]' \| \
  11709. X$ac_file : 'X\(//\)$' \| \
  11710. X$ac_file : 'X\(/\)' \| \
  11711. . : '\(.\)' 2>/dev/null ||
  11712. echo X$ac_file |
  11713. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11714. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11715. /^X\(\/\/\)$/{ s//\1/; q; }
  11716. /^X\(\/\).*/{ s//\1/; q; }
  11717. s/.*/./; q'`/stamp-h$_am_stamp_count
  11718. done
  11719. _ACEOF
  11720. cat >>$CONFIG_STATUS <<\_ACEOF
  11721. #
  11722. # CONFIG_COMMANDS section.
  11723. #
  11724. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11725. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11726. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11727. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11728. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11729. X"$ac_dest" : 'X\(//\)[^/]' \| \
  11730. X"$ac_dest" : 'X\(//\)$' \| \
  11731. X"$ac_dest" : 'X\(/\)' \| \
  11732. . : '\(.\)' 2>/dev/null ||
  11733. echo X"$ac_dest" |
  11734. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11735. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11736. /^X\(\/\/\)$/{ s//\1/; q; }
  11737. /^X\(\/\).*/{ s//\1/; q; }
  11738. s/.*/./; q'`
  11739. { if $as_mkdir_p; then
  11740. mkdir -p "$ac_dir"
  11741. else
  11742. as_dir="$ac_dir"
  11743. as_dirs=
  11744. while test ! -d "$as_dir"; do
  11745. as_dirs="$as_dir $as_dirs"
  11746. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11747. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11748. X"$as_dir" : 'X\(//\)[^/]' \| \
  11749. X"$as_dir" : 'X\(//\)$' \| \
  11750. X"$as_dir" : 'X\(/\)' \| \
  11751. . : '\(.\)' 2>/dev/null ||
  11752. echo X"$as_dir" |
  11753. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11754. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11755. /^X\(\/\/\)$/{ s//\1/; q; }
  11756. /^X\(\/\).*/{ s//\1/; q; }
  11757. s/.*/./; q'`
  11758. done
  11759. test ! -n "$as_dirs" || mkdir $as_dirs
  11760. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11761. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11762. { (exit 1); exit 1; }; }; }
  11763. ac_builddir=.
  11764. if test "$ac_dir" != .; then
  11765. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11766. # A "../" for each directory in $ac_dir_suffix.
  11767. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11768. else
  11769. ac_dir_suffix= ac_top_builddir=
  11770. fi
  11771. case $srcdir in
  11772. .) # No --srcdir option. We are building in place.
  11773. ac_srcdir=.
  11774. if test -z "$ac_top_builddir"; then
  11775. ac_top_srcdir=.
  11776. else
  11777. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11778. fi ;;
  11779. [\\/]* | ?:[\\/]* ) # Absolute path.
  11780. ac_srcdir=$srcdir$ac_dir_suffix;
  11781. ac_top_srcdir=$srcdir ;;
  11782. *) # Relative path.
  11783. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11784. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11785. esac
  11786. # Do not use `cd foo && pwd` to compute absolute paths, because
  11787. # the directories may not exist.
  11788. case `pwd` in
  11789. .) ac_abs_builddir="$ac_dir";;
  11790. *)
  11791. case "$ac_dir" in
  11792. .) ac_abs_builddir=`pwd`;;
  11793. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11794. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11795. esac;;
  11796. esac
  11797. case $ac_abs_builddir in
  11798. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11799. *)
  11800. case ${ac_top_builddir}. in
  11801. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11802. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11803. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11804. esac;;
  11805. esac
  11806. case $ac_abs_builddir in
  11807. .) ac_abs_srcdir=$ac_srcdir;;
  11808. *)
  11809. case $ac_srcdir in
  11810. .) ac_abs_srcdir=$ac_abs_builddir;;
  11811. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11812. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11813. esac;;
  11814. esac
  11815. case $ac_abs_builddir in
  11816. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11817. *)
  11818. case $ac_top_srcdir in
  11819. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11820. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11821. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11822. esac;;
  11823. esac
  11824. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11825. echo "$as_me: executing $ac_dest commands" >&6;}
  11826. case $ac_dest in
  11827. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11828. # Strip MF so we end up with the name of the file.
  11829. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11830. # Check whether this is an Automake generated Makefile or not.
  11831. # We used to match only the files named `Makefile.in', but
  11832. # some people rename them; so instead we look at the file content.
  11833. # Grep'ing the first line is not enough: some people post-process
  11834. # each Makefile.in and add a new line on top of each file to say so.
  11835. # So let's grep whole file.
  11836. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11837. dirpart=`(dirname "$mf") 2>/dev/null ||
  11838. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11839. X"$mf" : 'X\(//\)[^/]' \| \
  11840. X"$mf" : 'X\(//\)$' \| \
  11841. X"$mf" : 'X\(/\)' \| \
  11842. . : '\(.\)' 2>/dev/null ||
  11843. echo X"$mf" |
  11844. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11845. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11846. /^X\(\/\/\)$/{ s//\1/; q; }
  11847. /^X\(\/\).*/{ s//\1/; q; }
  11848. s/.*/./; q'`
  11849. else
  11850. continue
  11851. fi
  11852. # Extract the definition of DEPDIR, am__include, and am__quote
  11853. # from the Makefile without running `make'.
  11854. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11855. test -z "$DEPDIR" && continue
  11856. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11857. test -z "am__include" && continue
  11858. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11859. # When using ansi2knr, U may be empty or an underscore; expand it
  11860. U=`sed -n 's/^U = //p' < "$mf"`
  11861. # Find all dependency output files, they are included files with
  11862. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11863. # simplest approach to changing $(DEPDIR) to its actual value in the
  11864. # expansion.
  11865. for file in `sed -n "
  11866. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11867. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11868. # Make sure the directory exists.
  11869. test -f "$dirpart/$file" && continue
  11870. fdir=`(dirname "$file") 2>/dev/null ||
  11871. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11872. X"$file" : 'X\(//\)[^/]' \| \
  11873. X"$file" : 'X\(//\)$' \| \
  11874. X"$file" : 'X\(/\)' \| \
  11875. . : '\(.\)' 2>/dev/null ||
  11876. echo X"$file" |
  11877. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11878. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11879. /^X\(\/\/\)$/{ s//\1/; q; }
  11880. /^X\(\/\).*/{ s//\1/; q; }
  11881. s/.*/./; q'`
  11882. { if $as_mkdir_p; then
  11883. mkdir -p $dirpart/$fdir
  11884. else
  11885. as_dir=$dirpart/$fdir
  11886. as_dirs=
  11887. while test ! -d "$as_dir"; do
  11888. as_dirs="$as_dir $as_dirs"
  11889. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11890. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11891. X"$as_dir" : 'X\(//\)[^/]' \| \
  11892. X"$as_dir" : 'X\(//\)$' \| \
  11893. X"$as_dir" : 'X\(/\)' \| \
  11894. . : '\(.\)' 2>/dev/null ||
  11895. echo X"$as_dir" |
  11896. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11897. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11898. /^X\(\/\/\)$/{ s//\1/; q; }
  11899. /^X\(\/\).*/{ s//\1/; q; }
  11900. s/.*/./; q'`
  11901. done
  11902. test ! -n "$as_dirs" || mkdir $as_dirs
  11903. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  11904. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  11905. { (exit 1); exit 1; }; }; }
  11906. # echo "creating $dirpart/$file"
  11907. echo '# dummy' > "$dirpart/$file"
  11908. done
  11909. done
  11910. ;;
  11911. default-1 )
  11912. for ac_file in $CONFIG_FILES; do
  11913. # Support "outfile[:infile[:infile...]]"
  11914. case "$ac_file" in
  11915. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11916. esac
  11917. # PO directories have a Makefile.in generated from Makefile.in.in.
  11918. case "$ac_file" in */Makefile.in)
  11919. # Adjust a relative srcdir.
  11920. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  11921. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  11922. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  11923. # In autoconf-2.13 it is called $ac_given_srcdir.
  11924. # In autoconf-2.50 it is called $srcdir.
  11925. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  11926. case "$ac_given_srcdir" in
  11927. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  11928. /*) top_srcdir="$ac_given_srcdir" ;;
  11929. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11930. esac
  11931. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  11932. rm -f "$ac_dir/POTFILES"
  11933. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  11934. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  11935. POMAKEFILEDEPS="POTFILES.in"
  11936. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  11937. # on $ac_dir but don't depend on user-specified configuration
  11938. # parameters.
  11939. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  11940. # The LINGUAS file contains the set of available languages.
  11941. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  11942. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  11943. fi
  11944. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  11945. # Hide the ALL_LINGUAS assigment from automake.
  11946. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  11947. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  11948. else
  11949. # The set of available languages was given in configure.in.
  11950. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  11951. fi
  11952. case "$ac_given_srcdir" in
  11953. .) srcdirpre= ;;
  11954. *) srcdirpre='$(srcdir)/' ;;
  11955. esac
  11956. POFILES=
  11957. GMOFILES=
  11958. UPDATEPOFILES=
  11959. DUMMYPOFILES=
  11960. for lang in $ALL_LINGUAS; do
  11961. POFILES="$POFILES $srcdirpre$lang.po"
  11962. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  11963. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  11964. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  11965. done
  11966. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  11967. # environment variable.
  11968. INST_LINGUAS=
  11969. if test -n "$ALL_LINGUAS"; then
  11970. for presentlang in $ALL_LINGUAS; do
  11971. useit=no
  11972. if test "%UNSET%" != "$LINGUAS"; then
  11973. desiredlanguages="$LINGUAS"
  11974. else
  11975. desiredlanguages="$ALL_LINGUAS"
  11976. fi
  11977. for desiredlang in $desiredlanguages; do
  11978. # Use the presentlang catalog if desiredlang is
  11979. # a. equal to presentlang, or
  11980. # b. a variant of presentlang (because in this case,
  11981. # presentlang can be used as a fallback for messages
  11982. # which are not translated in the desiredlang catalog).
  11983. case "$desiredlang" in
  11984. "$presentlang"*) useit=yes;;
  11985. esac
  11986. done
  11987. if test $useit = yes; then
  11988. INST_LINGUAS="$INST_LINGUAS $presentlang"
  11989. fi
  11990. done
  11991. fi
  11992. CATALOGS=
  11993. if test -n "$INST_LINGUAS"; then
  11994. for lang in $INST_LINGUAS; do
  11995. CATALOGS="$CATALOGS $lang.gmo"
  11996. done
  11997. fi
  11998. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  11999. 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"
  12000. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12001. if test -f "$f"; then
  12002. case "$f" in
  12003. *.orig | *.bak | *~) ;;
  12004. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12005. esac
  12006. fi
  12007. done
  12008. fi
  12009. ;;
  12010. esac
  12011. done ;;
  12012. esac
  12013. done
  12014. _ACEOF
  12015. cat >>$CONFIG_STATUS <<\_ACEOF
  12016. { (exit 0); exit 0; }
  12017. _ACEOF
  12018. chmod +x $CONFIG_STATUS
  12019. ac_clean_files=$ac_clean_files_save
  12020. # configure is writing to config.log, and then calls config.status.
  12021. # config.status does its own redirection, appending to config.log.
  12022. # Unfortunately, on DOS this fails, as config.log is still kept open
  12023. # by configure, so config.status won't be able to write to it; its
  12024. # output is simply discarded. So we exec the FD to /dev/null,
  12025. # effectively closing config.log, so it can be properly (re)opened and
  12026. # appended to by config.status. When coming back to configure, we
  12027. # need to make the FD available again.
  12028. if test "$no_create" != yes; then
  12029. ac_cs_success=:
  12030. ac_config_status_args=
  12031. test "$silent" = yes &&
  12032. ac_config_status_args="$ac_config_status_args --quiet"
  12033. exec 5>/dev/null
  12034. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12035. exec 5>>config.log
  12036. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12037. # would make configure fail if this is the last instruction.
  12038. $ac_cs_success || { (exit 1); exit 1; }
  12039. fi